/* ==========================================================================
   Commande Repas — Espace convive (v2.3)
   Portage direct de la maquette : coque d'application, rayons 8 px,
   filets fins, une seule couleur d'accent (--crp-primary, réglable).
   ========================================================================== */

.crp-scope,
.crp-dialog,
.crp-sheet,
.crp-tabbar {
	--crp-primary: #D9202F;
	--crp-primary-700: #A31522;
	--crp-primary-600: color-mix(in srgb, var(--crp-primary) 84%, #000);
	--crp-primary-50: color-mix(in srgb, var(--crp-primary) 5%, #fff);
	--crp-primary-100: color-mix(in srgb, var(--crp-primary) 11%, #fff);
	--crp-primary-200: color-mix(in srgb, var(--crp-primary) 22%, #fff);
	--crp-on-primary: #fff;

	--crp-font: inherit;
	--crp-text: #141b24;
	--crp-text-2: #3f3a3c;
	--crp-muted: #5d5457;
	--crp-border: #e7dedb;
	--crp-border-strong: #cfc3bf;
	--crp-surface: #fff;
	--crp-bg: #fff;
	--crp-canvas: #FFFAF8;
	--crp-soft: #f6f1ef;
	--crp-soft-2: #efe7e4;

	--crp-success: #00622d;
	--crp-success-bg: #d9f8e0;
	--crp-warning: #7a5406;
	--crp-warning-bg: #fff0d4;
	--crp-danger: #8F1220;
	--crp-danger-bg: #fbeced;
	--crp-info: #2a5f96;
	--crp-info-bg: #e9f1fa;

	--crp-max: 1680px;

	--crp-radius-xl: 12px;
	--crp-radius-lg: 8px;
	--crp-radius: 8px;
	--crp-radius-sm: 6px;

	--crp-shadow-xs: 0 1px 2px rgba(38, 45, 56, .05);
	--crp-shadow-sm: 0 1px 5px rgba(38, 45, 56, .08);
	--crp-shadow: 0 8px 30px rgba(38, 45, 56, .07);
	--crp-shadow-lg: 0 24px 60px rgba(38, 45, 56, .22);
	--crp-focus: 0 0 0 3px color-mix(in srgb, var(--crp-primary) 42%, transparent);
	--crp-ease: .15s ease;

	font-family: var(--crp-font);
	color: var(--crp-text);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0;
	-webkit-text-size-adjust: 100%;
}

.crp-scope {
	container: crpshell / inline-size;
	width: 100%;
	max-width: var(--crp-max, 1680px);
	margin: 50px auto;
}

/* Thèmes à largeur contrainte : le module déborde de la colonne de contenu
   pour occuper la largeur demandée, sans jamais créer de défilement horizontal. */
body.crp-body .crp-scope { margin-top: 50px; margin-bottom: 50px; }

.is-layout-constrained > .crp-scope,
.entry-content > .crp-scope {
	--crp-width: min(var(--crp-max, 1680px), calc(100vw - 56px));
	width: var(--crp-width);
	max-width: var(--crp-width);
	/* WordPress impose « margin-inline: auto !important » aux blocs contraints :
	   on doit être aussi prioritaire pour laisser le module dépasser la colonne. */
	margin-left: calc(50% - var(--crp-width) / 2) !important;
	margin-right: calc(50% - var(--crp-width) / 2) !important;
	margin-top: 50px;
	margin-bottom: 50px;
}

.crp-scope *,
.crp-scope *::before,
.crp-scope *::after,
.crp-dialog *,
.crp-sheet * { box-sizing: border-box; }

.crp-scope img { max-width: 100%; height: auto; }
.crp-scope .crp-main,
.crp-scope .crp-shell { min-width: 0; }
.crp-scope fieldset { min-width: 0; }
.crp-scope .crp-quick__body,
.crp-scope .crp-day-card__body,
.crp-scope .crp-offer__body,
.crp-scope .crp-order__info,
.crp-scope .crp-rowlist__body,
.crp-scope .crp-product__body,
.crp-scope .crp-mine__body,
.crp-scope .crp-history__body,
.crp-scope .crp-formula__heading,
.crp-scope .crp-side__link span,
.crp-scope .crp-tile__name { min-width: 0; overflow-wrap: anywhere; }
.crp-scope .crp-help__chips,
.crp-scope .crp-chips-nav,
.crp-scope .crp-segment { max-width: 100%; min-width: 0; }
/* Grilles en une colonne : la colonne ne doit jamais dépasser son conteneur */
.crp-scope .crp-form,
.crp-scope .crp-field,
.crp-scope .crp-stack,
.crp-scope .crp-home,
.crp-scope .crp-account,
.crp-scope .crp-products,
.crp-scope .crp-quick,
.crp-scope .crp-days-list,
.crp-scope .crp-formulas,
.crp-scope .crp-tiles,
.crp-scope .crp-options,
.crp-scope .crp-grid-2,
.crp-scope .crp-mine,
.crp-scope .crp-infolist,
.crp-scope .crp-how,
.crp-scope .crp-results,
.crp-scope .crp-recap,
.crp-scope .crp-side__list { grid-template-columns: minmax(0, 1fr); }
.crp-scope [hidden],
.crp-sheet [hidden] { display: none !important; }
.crp-scope a { color: var(--crp-primary-700); }
.crp-scope p { margin: 0 0 .85em; }
.crp-scope button:focus-visible,
.crp-scope a:focus-visible,
.crp-scope input:focus-visible,
.crp-scope textarea:focus-visible,
.crp-scope select:focus-visible,
.crp-scope summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--crp-primary) 42%, transparent); outline-offset: 2px; }

.crp-main { container: crp / inline-size; }

/* Titre de la page WordPress masqué sur les pages du module (réglable) */
body.crp-body--no-title .wp-block-post-title,
body.crp-body--no-title .entry-title,
body.crp-body--no-title .page-title,
body.crp-body--no-title .entry-header .wp-block-post-title,
body.crp-body--no-title .nv-page-title-wrap,
body.crp-body--no-title .nv-title-meta-wrap,
body.crp-body--no-title .ast-single-entry-banner,
body.crp-body--no-title .page-header,
body.crp-body--no-title .elementor-page-title { display: none !important; }
body.crp-body--no-title .entry-header:empty { display: none; }

.crp-icon { flex: 0 0 auto; vertical-align: middle; }

.crp-scope .screen-reader-text,
.crp-sheet .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}

/* ---------- Utilitaires ---------- */
.crp-scope .crp-muted,
.crp-sheet .crp-muted { color: var(--crp-muted); }
.crp-scope .crp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-word; }
.crp-scope .crp-center { margin-top: 24px; text-align: center; }
.crp-scope .crp-ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crp-scope .crp-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crp-scope .crp-optional { font-weight: 400; color: var(--crp-muted); font-size: .85em; }
.crp-scope .crp-stack { display: grid; gap: 16px; }
.crp-scope .crp-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crp-scope .crp-inline { display: inline; margin: 0; }
.crp-scope .crp-eyebrow { font-size: .78rem; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--crp-muted); margin: 0; }

/* ==========================================================================
   Coque d'application
   ========================================================================== */
.crp-scope--shell {
	background: var(--crp-canvas);
	border: 1px solid var(--crp-border);
	border-radius: var(--crp-radius-xl);
	overflow: hidden;
}

.crp-scope .crp-appbar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	height: 72px; padding: 0 20px; background: var(--crp-bg); border-bottom: 1px solid var(--crp-border);
}
.crp-scope .crp-appbar__brand { display: flex; align-items: center; gap: .65rem; min-height: 44px; color: var(--crp-text); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.crp-scope .crp-appbar__brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.crp-scope .crp-appbar__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-appbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48vw; }
.crp-scope .crp-appbar__right { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.crp-scope .crp-appbar__balance-label { display: none; color: var(--crp-muted); }
.crp-scope .crp-appbar__balance { padding: .45rem .7rem; border-radius: 99px; background: var(--crp-primary-100); color: var(--crp-primary-700); font-weight: 700; }
.crp-scope .crp-appbar__account { display: inline-grid; place-items: center; border-radius: 50%; text-decoration: none; }
.crp-scope .crp-appbar__account.is-active .crp-avatar { box-shadow: 0 0 0 2px var(--crp-primary); }
.crp-scope .crp-appbar__logout { display: none; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--crp-muted); }
.crp-scope .crp-appbar__logout:hover { background: var(--crp-soft); color: var(--crp-danger); }

.crp-scope .crp-avatar,
.crp-sheet .crp-avatar {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--crp-soft); color: var(--crp-text); font-size: .78rem; font-weight: 800;
}
.crp-sheet .crp-avatar--lg { width: 48px; height: 48px; font-size: .95rem; }
.crp-scope .crp-avatar--xl { width: 56px; height: 56px; font-size: 1rem; }

.crp-scope .crp-shell { display: block; }
.crp-scope .crp-main { padding: 24px 18px 36px; }

.crp-scope .crp-side { display: none; }
.crp-scope .crp-side__title { margin: 0 0 8px; padding: 0 12px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--crp-muted); }
.crp-scope .crp-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.crp-scope .crp-side__list li { margin: 0; }
.crp-scope .crp-side__link {
	display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .7rem .8rem; border-radius: 7px;
	color: var(--crp-muted); font-size: .9rem; font-weight: 650; text-decoration: none; text-align: left;
	transition: background var(--crp-ease), color var(--crp-ease);
}
.crp-scope .crp-side__link .crp-icon { width: 18px; }
.crp-scope .crp-side__link span { flex: 1; }
.crp-scope .crp-side__link .crp-dot { flex: 0 0 auto; }
.crp-scope .crp-side__link:hover { background: var(--crp-soft); color: var(--crp-text); }
.crp-scope .crp-side__link.is-active { background: var(--crp-primary-100); color: var(--crp-primary-700); }
.crp-scope .crp-side__foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--crp-border); display: grid; gap: 10px; }
.crp-scope .crp-side__id { display: grid; gap: .1rem; min-width: 0; font-size: .72rem; color: var(--crp-muted); }
.crp-scope .crp-side__id strong { min-width: 0; font-size: .88rem; line-height: 1.35; color: var(--crp-text); overflow-wrap: anywhere; word-break: break-word; }
.crp-scope .crp-side__logout { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--crp-muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.crp-scope .crp-side__logout:hover { color: var(--crp-danger); }

/* En-tête de vue : surtitre + titre (+ retour) */
.crp-scope .crp-viewhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 30px; }
.crp-scope .crp-viewhead__title { margin: 4px 0 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }

@container crpshell (min-width: 880px) {
	.crp-scope .crp-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
	.crp-scope .crp-side { display: flex; flex-direction: column; padding: 28px 14px; background: var(--crp-bg); border-right: 1px solid var(--crp-border); }
	.crp-scope .crp-main { padding: 40px 44px 48px; }
	.crp-scope .crp-main > * { max-width: 1180px; }
	.crp-scope .crp-appbar__balance-label { display: inline; }
	.crp-scope .crp-appbar__logout { display: grid; }
	.crp-scope .crp-viewhead__title { font-size: 2rem; }
}

/* ==========================================================================
   Boutons, liens, formulaires
   ========================================================================== */
.crp-scope .crp-btn,
.crp-dialog .crp-btn,
.crp-sheet .crp-btn {
	max-width: 100%;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 20px;
	border: 1px solid transparent; border-radius: var(--crp-radius);
	background: var(--crp-soft); color: var(--crp-text);
	font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.25;
	text-decoration: none; text-transform: none; letter-spacing: normal;
	cursor: pointer; box-shadow: none; white-space: normal; text-align: center;
	transition: background-color var(--crp-ease), border-color var(--crp-ease), color var(--crp-ease);
	-webkit-tap-highlight-color: transparent;
}
.crp-scope .crp-btn:hover { text-decoration: none; }
.crp-scope .crp-btn--primary,
.crp-dialog .crp-btn--primary { background: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-btn--primary:hover { background: var(--crp-primary-600); color: var(--crp-on-primary); }
.crp-scope .crp-btn--success { background: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-btn--success:hover { background: var(--crp-primary-600); color: var(--crp-on-primary); }
.crp-scope .crp-btn--ghost,
.crp-dialog .crp-btn--ghost,
.crp-sheet .crp-btn--ghost { background: var(--crp-bg); border-color: var(--crp-border-strong); color: var(--crp-text); }
.crp-scope .crp-btn--ghost:hover { background: var(--crp-soft); color: var(--crp-text); }
.crp-scope .crp-btn--quiet { background: transparent; color: var(--crp-text-2); }
.crp-scope .crp-btn--quiet:hover { background: var(--crp-soft); color: var(--crp-text); }
.crp-scope .crp-btn--light { background: #fff; color: var(--crp-primary-700); }
.crp-scope .crp-btn--danger,
.crp-dialog .crp-btn--danger { background: var(--crp-danger); color: #fff; }
.crp-scope .crp-btn--danger-ghost { background: var(--crp-bg); border-color: color-mix(in srgb, var(--crp-danger) 30%, #fff); color: var(--crp-danger); }
.crp-scope .crp-btn--danger-ghost:hover { background: var(--crp-danger-bg); color: var(--crp-danger); }
.crp-scope .crp-btn--sm { min-height: 40px; padding: 8px 14px; font-size: .85rem; }
.crp-scope .crp-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.crp-scope .crp-btn--block,
.crp-sheet .crp-btn--block { width: 100%; }
.crp-scope .crp-btn.is-disabled,
.crp-scope .crp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.crp-scope .crp-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.crp-scope .crp-btn.is-loading > * { visibility: hidden; }
.crp-scope .crp-btn.is-loading::after {
	content: ""; position: absolute; width: 18px; height: 18px;
	border: 2px solid rgba(255, 255, 255, .6); border-top-color: #fff; border-radius: 50%; animation: crp-spin .7s linear infinite;
}
.crp-scope .crp-btn--ghost.is-loading::after,
.crp-scope .crp-btn--quiet.is-loading::after { border-color: var(--crp-border-strong); border-top-color: var(--crp-primary); }
@keyframes crp-spin { to { transform: rotate(360deg); } }

.crp-scope .crp-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: .93rem; color: var(--crp-primary-700); text-decoration: none; }
.crp-scope .crp-link:hover { text-decoration: underline; }
.crp-scope .crp-link-button { display: inline-flex; align-items: center; min-height: 40px; border: 0; background: none; padding: 0; margin: 0; color: var(--crp-primary-700); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.crp-scope .crp-link-button:hover { text-decoration: underline; }
.crp-scope .crp-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--crp-border); border-radius: var(--crp-radius-sm); background: var(--crp-bg); color: var(--crp-muted); cursor: pointer;
}
.crp-scope .crp-icon-btn:hover { background: var(--crp-soft); color: var(--crp-text); }
.crp-scope .crp-icon-btn.is-copied { background: var(--crp-success-bg); color: var(--crp-success); border-color: transparent; }
.crp-scope .crp-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; font-size: .9rem; font-weight: 650; color: var(--crp-muted); text-decoration: none; }
.crp-scope .crp-back-link:hover { color: var(--crp-primary-700); }

.crp-scope .crp-form { display: grid; gap: 24px; margin: 0; }
.crp-scope .crp-field { display: grid; gap: 10px; min-width: 0; border: 0; padding: 0; margin: 0; }
.crp-scope .crp-label { display: block; font-size: .93rem; font-weight: 750; padding: 0; }
.crp-scope .crp-hint { display: flex; gap: 6px; align-items: flex-start; color: var(--crp-muted); font-size: .9rem; margin: 0; }
.crp-scope .crp-hint--error { color: var(--crp-danger); }
.crp-scope .crp-input {
	width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
	border: 1px solid var(--crp-border-strong); border-radius: var(--crp-radius);
	background: var(--crp-bg); color: var(--crp-text); font: inherit; font-size: 16px; box-shadow: none;
	transition: border-color var(--crp-ease), box-shadow var(--crp-ease);
}
.crp-scope .crp-input::placeholder { color: color-mix(in srgb, var(--crp-muted) 70%, #fff); }
.crp-scope .crp-input:focus { outline: none; border-color: var(--crp-primary); box-shadow: var(--crp-focus); }
.crp-scope textarea.crp-input { resize: vertical; min-height: 96px; }
.crp-scope .crp-input--lg { min-height: 52px; }
.crp-scope .crp-input--auto { width: auto; }
.crp-scope .crp-input--sm { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.crp-scope .crp-select-inline { display: inline-flex; align-items: center; gap: 8px; }
.crp-scope .crp-input-icon { position: relative; }
.crp-scope .crp-input-icon > .crp-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--crp-muted); pointer-events: none; }
.crp-scope .crp-input-icon .crp-input { padding-left: 44px; }
.crp-scope .crp-password { position: relative; }
.crp-scope .crp-password .crp-input { padding-right: 96px; }
.crp-scope .crp-password__toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	min-height: 40px; padding: 6px 14px; border: 0; border-radius: var(--crp-radius-sm);
	background: var(--crp-soft); color: var(--crp-text-2); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.crp-scope .crp-charcount { justify-self: end; font-size: .78rem; color: var(--crp-muted); }
.crp-scope .crp-charcount.is-near { color: var(--crp-warning); }
.crp-scope .crp-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; align-items: center; font-size: .92rem; cursor: pointer; }
.crp-scope .crp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--crp-primary); }
.crp-scope .crp-switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; }
.crp-scope .crp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.crp-scope .crp-switch__ui { flex: 0 0 auto; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--crp-border-strong); transition: background var(--crp-ease); }
.crp-scope .crp-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--crp-shadow-xs); transition: transform var(--crp-ease); }
.crp-scope .crp-switch input:checked + .crp-switch__ui { background: var(--crp-primary); }
.crp-scope .crp-switch input:checked + .crp-switch__ui::after { transform: translateX(18px); }
.crp-scope .crp-strength { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--crp-muted); min-height: 18px; }
.crp-scope .crp-strength__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--crp-soft); overflow: hidden; }
.crp-scope .crp-strength__bar span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s, background .25s; }
.crp-scope .crp-strength.is-0 .crp-strength__bar span { width: 20%; background: var(--crp-danger); }
.crp-scope .crp-strength.is-1 .crp-strength__bar span { width: 50%; background: #d18a17; }
.crp-scope .crp-strength.is-2 .crp-strength__bar span { width: 75%; background: #5e9e4d; }
.crp-scope .crp-strength.is-3 .crp-strength__bar span { width: 100%; background: var(--crp-success); }

/* ==========================================================================
   Alertes, badges, pastilles
   ========================================================================== */
.crp-scope .crp-alert {
	display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 24px; padding: 1.05rem 1.15rem;
	border: 1px solid var(--crp-border); border-radius: 7px; background: var(--crp-soft); font-size: .93rem; line-height: 1.6; color: var(--crp-text);
}
.crp-scope .crp-alert > .crp-icon { width: 19px; margin-top: 1px; color: var(--crp-primary); }
.crp-scope .crp-alert > div { flex: 1; }
.crp-scope .crp-alert strong { display: block; }
.crp-scope .crp-alert p { margin: .15rem 0 0; color: var(--crp-muted); }
.crp-scope .crp-alert--success { border-color: color-mix(in srgb, var(--crp-success) 35%, var(--crp-border)); background: color-mix(in srgb, var(--crp-success) 7%, var(--crp-bg)); }
.crp-scope .crp-alert--success > .crp-icon,
.crp-scope .crp-alert--success strong { color: var(--crp-success); }
.crp-scope .crp-alert--error { border-color: color-mix(in srgb, var(--crp-danger) 35%, var(--crp-border)); background: color-mix(in srgb, var(--crp-danger) 7%, var(--crp-bg)); }
.crp-scope .crp-alert--error,
.crp-scope .crp-alert--error > .crp-icon,
.crp-scope .crp-alert--error strong { color: var(--crp-danger); }
.crp-scope .crp-alert--info { border-color: color-mix(in srgb, var(--crp-info) 30%, var(--crp-border)); background: color-mix(in srgb, var(--crp-info) 6%, var(--crp-bg)); }
.crp-scope .crp-alert--info > .crp-icon { color: var(--crp-info); }
.crp-scope .crp-alert__close { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px; opacity: .6; }

.crp-scope .crp-announcement {
	display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 24px; padding: 1.05rem 1.15rem;
	border: 1px solid var(--crp-border); border-radius: 7px; background: var(--crp-soft); font-size: .93rem;
}
.crp-scope .crp-announcement p { margin: 0; }
.crp-scope .crp-announcement .crp-icon { color: var(--crp-primary); margin-top: 1px; }
.crp-scope .crp-announcement--warning { border-color: color-mix(in srgb, var(--crp-warning) 35%, var(--crp-border)); background: var(--crp-warning-bg); color: var(--crp-warning); }
.crp-scope .crp-announcement--warning .crp-icon { color: var(--crp-warning); }
.crp-scope .crp-announcement--success { border-color: color-mix(in srgb, var(--crp-success) 30%, var(--crp-border)); background: var(--crp-success-bg); color: var(--crp-success); }
.crp-scope .crp-announcement--success .crp-icon { color: var(--crp-success); }

.crp-scope .crp-badge,
.crp-sheet .crp-badge {
	display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .25rem .5rem; border-radius: 99px;
	background: var(--crp-soft); color: var(--crp-muted); font-size: .76rem; font-weight: 750; line-height: 1.45; vertical-align: middle;
}
.crp-scope .crp-badge .crp-icon { width: 12px; height: 12px; }
.crp-scope .crp-badge--ok,
.crp-scope .crp-badge--confirmed { background: var(--crp-success-bg); color: var(--crp-success); }
.crp-scope .crp-badge--collected,
.crp-scope .crp-badge--info { background: var(--crp-info-bg); color: var(--crp-info); }
.crp-scope .crp-badge--cancelled,
.crp-scope .crp-badge--danger { background: var(--crp-danger-bg); color: var(--crp-danger); }
.crp-scope .crp-badge--warning { background: var(--crp-warning-bg); color: var(--crp-warning); }
.crp-scope .crp-badge--primary { background: var(--crp-primary-100); color: var(--crp-primary-700); }
.crp-scope .crp-badge--locked { background: var(--crp-soft); color: var(--crp-muted); }

.crp-scope .crp-dot,
.crp-sheet .crp-dot {
	display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 99px; background: var(--crp-danger); color: #fff; font-size: .7rem; font-weight: 750; line-height: 1;
}
.crp-scope .crp-dot--neutral { background: var(--crp-soft); color: var(--crp-muted); }
.crp-scope .crp-dot--small { position: absolute; top: -2px; right: -4px; min-width: 9px; width: 9px; height: 9px; padding: 0; }
.crp-scope .crp-price-tag { display: inline-flex; align-items: center; padding: .45rem .7rem; border-radius: 99px; background: var(--crp-primary-100); color: var(--crp-primary-700); font-weight: 800; white-space: nowrap; }

/* ==========================================================================
   Blocs de contenu
   ========================================================================== */
.crp-scope .crp-card,
.crp-scope .crp-section-box {
	margin: 0 0 24px; padding: 1.6rem;
	border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg);
}
.crp-scope .crp-card--muted { background: var(--crp-soft); border-color: transparent; }
.crp-scope .crp-card--green { background: var(--crp-bg); border-color: var(--crp-border); }
.crp-scope .crp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.crp-scope .crp-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.12rem; font-weight: 800; }
.crp-scope .crp-card__title .crp-icon { color: var(--crp-muted); }
.crp-scope .crp-card__head .crp-card__title { margin: 0; }
.crp-scope .crp-card__lead { margin: 0 0 6px; }

.crp-scope .crp-section { margin: 38px 0; }
.crp-scope .crp-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.crp-scope .crp-section__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; }
.crp-scope .crp-section__head .crp-section__title { margin: 0; }

.crp-scope .crp-page-head { margin: 0 0 28px; }
.crp-scope .crp-page-head__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.crp-scope .crp-page-head__intro { margin: 0 0 18px; color: var(--crp-muted); font-size: 1.02rem; max-width: 70ch; }

.crp-scope .crp-empty {
	display: flex; flex-direction: column; align-items: center; max-width: 520px; margin: 3rem auto; padding: 0; text-align: center;
	border: 0; background: none; color: var(--crp-muted);
}
.crp-scope .crp-empty > .crp-icon { width: 42px; height: 42px; color: var(--crp-border-strong); }
.crp-scope .crp-empty p { margin: .4rem 0 0; }
.crp-scope .crp-empty strong { display: block; margin-top: 1rem; font-size: 1.15rem; font-weight: 800; color: var(--crp-text); }
.crp-scope .crp-empty .crp-btn { margin-top: 1.25rem; }
.crp-scope .crp-empty--small { margin: 1.5rem auto; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.crp-scope .crp-home { display: grid; gap: 40px; }
.crp-scope .crp-hello { margin: 0; }
.crp-scope .crp-hello__title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.crp-scope .crp-hello__intro { margin: 0; color: var(--crp-muted); }

.crp-scope .crp-next {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 0;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid color-mix(in srgb, var(--crp-primary) 20%, var(--crp-border)); border-radius: var(--crp-radius);
	background: var(--crp-bg); box-shadow: var(--crp-shadow);
}
.crp-scope .crp-next__hello { margin: 0 0 6px; font-size: .95rem; font-weight: 700; color: var(--crp-primary-700); }
.crp-scope .crp-next__title { margin: 0 0 10px; font-size: 1.65rem; font-weight: 800; line-height: 1.25; }
.crp-scope .crp-next__sub { margin: 0; color: var(--crp-muted); font-size: 1.02rem; }
.crp-scope .crp-next__sub strong { color: var(--crp-text-2); font-weight: 700; }
.crp-scope .crp-next__actions { grid-column: 1 / -1; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crp-scope .crp-next__actions .crp-btn--primary { min-height: 48px; padding: 12px 24px; font-size: 1rem; }

.crp-scope .crp-countdown {
	display: flex; align-items: center; gap: .7rem; width: max-content; max-width: 100%;
	padding: .8rem 1rem; border-radius: 7px; background: var(--crp-primary-100); color: var(--crp-primary-700);
}
.crp-scope .crp-countdown__icon { display: grid; place-items: center; }
.crp-scope .crp-countdown__icon .crp-icon { width: 22px; height: 22px; }
.crp-scope .crp-countdown__label { display: block; font-size: .76rem; font-weight: 700; }
.crp-scope .crp-countdown__value { display: block; margin-top: .1rem; font-size: 1.05rem; font-weight: 800; color: var(--crp-text); }

.crp-scope .crp-quick { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.crp-scope .crp-quick__item {
	display: flex; align-items: center; gap: .9rem; min-height: 88px; padding: 1.1rem;
	border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg);
	color: var(--crp-text); text-decoration: none; transition: border-color var(--crp-ease);
}
.crp-scope .crp-quick__item:hover { border-color: var(--crp-primary); }
.crp-scope .crp-quick__icon { color: var(--crp-primary); }
.crp-scope .crp-quick__icon .crp-icon { width: 22px; height: 22px; }
.crp-scope .crp-quick__body { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.crp-scope .crp-quick__label { font-size: .96rem; font-weight: 800; }
.crp-scope .crp-quick__meta { font-size: .82rem; color: var(--crp-muted); }
.crp-scope .crp-quick__meta.is-highlight { color: var(--crp-primary-700); font-weight: 700; }
.crp-scope .crp-quick__arrow { width: 17px; color: var(--crp-muted); }

.crp-scope .crp-rowlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--crp-border); border-bottom: 1px solid var(--crp-border); }
.crp-scope .crp-rowlist li { margin: 0; }
.crp-scope .crp-rowlist li + li { border-top: 1px solid var(--crp-border); }
.crp-scope .crp-rowlist a { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 0; color: var(--crp-text); text-decoration: none; min-width: 0; }
.crp-scope .crp-rowlist__body { display: grid; gap: .35rem; flex: 1; min-width: 0; }
.crp-scope .crp-rowlist__body > strong { font-weight: 700; }
.crp-scope .crp-rowlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; }
.crp-scope .crp-rowlist__num { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.crp-scope .crp-rowlist__arrow { color: var(--crp-muted); }
.crp-scope .crp-datebox { display: flex; align-items: center; gap: .45rem; min-width: 120px; font-size: .85rem; font-weight: 700; }
.crp-scope .crp-datebox .crp-icon { width: 17px; color: var(--crp-primary); }

.crp-scope .crp-how-band { padding: 1.8rem; border-radius: var(--crp-radius); background: var(--crp-soft); }
.crp-scope .crp-how-band__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.25rem; }
.crp-scope .crp-how-band__title { margin: 0; font-size: 1.125rem; font-weight: 800; }
.crp-scope .crp-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.crp-scope .crp-how li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; }
.crp-scope .crp-how li div { display: grid; }
.crp-scope .crp-how li div span { margin-top: .25rem; font-size: .88rem; color: var(--crp-muted); }
.crp-scope .crp-how__num { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--crp-primary); color: var(--crp-on-primary); font-size: .75rem; font-weight: 800; }
.crp-scope .crp-how--inline { margin: 0 0 20px; padding: 1.25rem; border-radius: var(--crp-radius); background: var(--crp-soft); }

.crp-scope .crp-answer { display: grid; gap: .2rem; padding: 1rem 0; color: var(--crp-text); text-decoration: none; }
.crp-scope .crp-answer + .crp-answer { border-top: 1px solid var(--crp-border); }
.crp-scope .crp-answer:hover strong { color: var(--crp-primary-700); }

/* ==========================================================================
   Onglets, pastilles de filtre
   ========================================================================== */
.crp-scope .crp-segment { display: flex; width: max-content; max-width: 100%; overflow: auto; margin: 0 0 24px; padding: 3px; border-radius: var(--crp-radius); background: var(--crp-soft); scrollbar-width: none; }
.crp-scope .crp-segment::-webkit-scrollbar { display: none; }
.crp-scope .crp-segment__item {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: .5rem .8rem; border-radius: var(--crp-radius-sm);
	color: var(--crp-muted); font-size: .8rem; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.crp-scope .crp-segment__item.is-active { background: var(--crp-bg); color: var(--crp-text); box-shadow: 0 1px 5px rgba(38, 45, 56, .1); }
.crp-scope .crp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crp-scope .crp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.crp-scope .crp-pill { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--crp-border); border-radius: 99px; background: var(--crp-bg); color: var(--crp-muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.crp-scope .crp-pill.is-active { background: var(--crp-text); border-color: var(--crp-text); color: #fff; }
.crp-scope .crp-chips-nav,
.crp-scope .crp-help__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.crp-scope .crp-chips-nav::-webkit-scrollbar,
.crp-scope .crp-help__chips::-webkit-scrollbar { display: none; }
.crp-scope .crp-chip-link { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; max-width: 100%; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--crp-border); border-radius: 99px; background: var(--crp-bg); color: var(--crp-muted); font-size: .88rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.crp-scope .crp-chip-link:hover { border-color: var(--crp-primary); color: var(--crp-primary-700); }

/* ==========================================================================
   Choix du jour
   ========================================================================== */
.crp-scope .crp-week { margin: 0 0 34px; }
.crp-scope .crp-week__title { margin: 0 0 14px; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--crp-muted); }
.crp-scope .crp-days-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.crp-scope .crp-days-list li { margin: 0; }
.crp-scope .crp-day-card {
	display: flex; align-items: center; gap: 1rem; min-height: 104px; height: 100%; padding: 1.25rem;
	border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg);
	color: var(--crp-text); text-decoration: none; transition: border-color var(--crp-ease);
}
.crp-scope a.crp-day-card:hover { border-color: var(--crp-primary); color: var(--crp-text); }
.crp-scope .crp-day-card__body { flex: 1; min-width: 0; }
.crp-scope .crp-day-card__title { display: block; }
.crp-scope .crp-day-card__title strong { display: block; font-weight: 800; }
.crp-scope .crp-day-card__date { display: block; margin-top: .25rem; font-size: .9rem; color: var(--crp-muted); }
.crp-scope .crp-day-card__title .crp-badge { margin-top: .35rem; white-space: nowrap; }
.crp-scope .crp-day-card__action { flex: 0 0 auto; }
.crp-scope .crp-day-card__status { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; max-width: 100%; padding: .3rem .7rem; border-radius: 99px; background: var(--crp-soft); color: var(--crp-muted); font-size: .78rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crp-scope .crp-day-card__status .crp-icon { width: 12px; height: 12px; }
.crp-scope .crp-day-card__action { display: inline-flex; align-items: center; gap: .35rem; color: var(--crp-primary); font-size: .92rem; font-weight: 750; white-space: nowrap; }
.crp-scope .crp-day-card__action .crp-icon { width: 19px; }
.crp-scope .crp-day-card--ordered { border-style: dashed; }
.crp-scope .crp-day-card--ordered .crp-day-card__status { background: var(--crp-success-bg); color: var(--crp-success); }
.crp-scope .crp-day-card--full { background: var(--crp-warning-bg); opacity: .85; }
.crp-scope .crp-day-card--full .crp-day-card__status { background: color-mix(in srgb, #fff 50%, transparent); color: var(--crp-warning); }
.crp-scope .crp-day-card--closed { background: var(--crp-soft); opacity: .8; }
.crp-scope .crp-day-card--closed .crp-day-card__status { background: color-mix(in srgb, #fff 60%, transparent); }
.crp-scope .crp-note-block { margin: 28px 0 0; padding: 1rem; border-left: 4px solid var(--crp-primary); background: var(--crp-primary-50); }
.crp-scope .crp-note-block p { margin: .25rem 0 0; font-size: .875rem; color: var(--crp-muted); }

/* ==========================================================================
   Formulaire de commande
   ========================================================================== */
.crp-scope .crp-wizard { position: relative; margin: 0; }
.crp-scope .crp-wizard__head { margin: 0 0 28px; }
.crp-scope .crp-wizard__context { display: grid; gap: 8px; margin: 0 0 20px; }
.crp-scope .crp-wizard__context .crp-back-link { margin: 0; }
.crp-scope .crp-wizard__date { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; }
.crp-scope .crp-wizard__date .crp-icon { color: var(--crp-muted); }
.crp-scope .crp-wizard__deadline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .78rem; color: var(--crp-muted); }
.crp-scope .crp-wizard__deadline .crp-icon { width: 15px; }

.crp-scope .crp-steps { margin: 0; }
.crp-scope .crp-steps__top { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; }
.crp-scope .crp-steps__now,
.crp-scope .crp-steps__total { display: block; margin: 0; }
.crp-scope .crp-steps__total { text-align: right; }
.crp-scope .crp-steps__count,
.crp-scope .crp-steps__total-label { display: block; color: var(--crp-muted); font-size: .78rem; }
.crp-scope .crp-steps__of { margin-left: .25rem; }
.crp-scope .crp-steps__label,
.crp-scope .crp-steps__total strong { display: block; margin-top: .15rem; font-weight: 800; }
.crp-scope .crp-steps__total small { font-size: .8rem; font-weight: 700; color: var(--crp-muted); }
.crp-scope .crp-progress__bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--crp-soft); }
.crp-scope .crp-progress__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--crp-primary); transition: width .2s ease; }
.crp-scope .crp-progress__steps { display: none; }

.crp-scope .crp-wizard__layout { display: block; }
.crp-scope .crp-wizard__summary { display: none; }

.crp-scope .crp-wizard:not(.is-ready) .crp-wizard__bar [data-next],
.crp-scope .crp-wizard:not(.is-ready) .crp-wizard__bar [data-prev],
.crp-scope .crp-wizard:not(.is-ready) .crp-steps__top { display: none; }
.crp-scope .crp-wizard:not(.is-ready) [data-submit] { display: inline-flex !important; }
.crp-scope .crp-wizard.is-ready .crp-panel:not(.is-current) { display: none; }

/* Montants en euros (suppléments) */
.crp-scope .crp-euros { margin-left: .2rem; font-weight: 800; color: var(--crp-text); white-space: nowrap; }
.crp-scope .crp-product__price.is-euro,
.crp-scope .crp-recap__value.is-euro,
.crp-scope .crp-lines .is-euro { color: var(--crp-text); font-weight: 750; }
.crp-scope .crp-extras-notice { margin: 0 0 1.5rem; }
.crp-scope .crp-panel__help:empty { display: none; }

.crp-scope .crp-panel { margin: 34px 0 0; min-height: 420px; outline: none; }
.crp-scope .crp-panel__header { margin: 0 0 1.85rem; }
.crp-scope .crp-panel__kicker { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--crp-primary-700); }
.crp-scope .crp-panel__title { margin: 0; font-size: 1.4rem; font-weight: 800; line-height: 1.3; }
.crp-scope .crp-panel__help { margin: .4rem 0 0; color: var(--crp-muted); font-size: 1rem; }
.crp-scope .crp-counter { display: inline-flex; margin-left: .5rem; padding: .35rem .7rem; border-radius: 99px; background: var(--crp-primary-100); color: var(--crp-primary-700); font-size: .8rem; font-weight: 750; }
.crp-scope .crp-counter.is-complete { background: var(--crp-success-bg); color: var(--crp-success); }

/* Formules */
.crp-scope .crp-formulas { display: grid; gap: 1.25rem; }
.crp-scope .crp-formula { position: relative; display: block; margin: 0; cursor: pointer; }
.crp-scope .crp-formula input,
.crp-scope .crp-tile input,
.crp-scope .crp-option input,
.crp-scope .crp-choice-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.crp-scope .crp-formula__card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; min-height: 190px; padding: 1.6rem;
	border: 2px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); text-align: left;
	transition: border-color var(--crp-ease), background var(--crp-ease);
}
.crp-scope .crp-formula:hover .crp-formula__card { border-color: color-mix(in srgb, var(--crp-primary) 55%, var(--crp-border)); }
.crp-scope .crp-formula__top { display: flex; align-items: center; gap: .9rem; width: 100%; }
.crp-scope .crp-formula__icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--crp-radius-sm); background: var(--crp-soft); color: var(--crp-muted); }
.crp-scope .crp-formula__heading { display: grid; flex: 1; min-width: 0; }
.crp-scope .crp-formula__name { font-size: 1.15rem; font-weight: 800; }
.crp-scope .crp-formula__price { margin-top: .35rem; color: var(--crp-primary-700); font-weight: 750; }
.crp-scope .crp-formula__points { display: block; margin-top: .9rem; color: var(--crp-primary-700); font-size: .95rem; font-weight: 700; }
.crp-scope .crp-formula__points strong { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.crp-scope .crp-formula__radio { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--crp-border-strong); border-radius: 50%; background: var(--crp-bg); color: transparent; }
.crp-scope .crp-formula__desc { margin-top: .75rem; color: var(--crp-muted); font-size: .92rem; }
.crp-scope .crp-formula__incl { display: grid; gap: .4rem; width: 100%; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--crp-radius-sm); background: var(--crp-soft); font-size: .88rem; }
.crp-scope .crp-formula__incl-title { font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--crp-muted); }
.crp-scope .crp-formula__incl-line { display: flex; gap: .4rem; align-items: flex-start; }
.crp-scope .crp-formula__incl-line .crp-icon { color: var(--crp-success); margin-top: 3px; }
.crp-scope .crp-formula input:checked + .crp-formula__card { border-color: var(--crp-primary); background: var(--crp-primary-50); }
.crp-scope .crp-formula input:checked + .crp-formula__card .crp-formula__radio,
.crp-scope .crp-tile input:checked + .crp-tile__card .crp-tile__check,
.crp-scope .crp-option input:checked + .crp-option__card .crp-option__mark { background: var(--crp-primary); border-color: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-formula input:checked + .crp-formula__card .crp-formula__incl { background: var(--crp-bg); }
.crp-scope .crp-formula input:checked + .crp-formula__card .crp-formula__icon { background: var(--crp-primary); color: var(--crp-on-primary); }

/* Articles */
.crp-scope .crp-group { margin: 0 0 2rem; scroll-margin-top: 90px; }
.crp-scope .crp-group__title { margin: 0 0 .9rem; font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--crp-muted); }
.crp-scope .crp-group__limit { margin-left: .4rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.crp-scope .crp-group__desc { margin: .25rem 0 .75rem; font-size: .84rem; color: var(--crp-muted); }
.crp-scope .crp-products { display: grid; gap: .9rem; }
.crp-scope .crp-product { position: relative; display: grid; border: 2px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); overflow: hidden; transition: border-color var(--crp-ease), background var(--crp-ease); }
.crp-scope .crp-product:hover { border-color: color-mix(in srgb, var(--crp-primary) 40%, var(--crp-border)); }
.crp-scope .crp-product__main {
	display: flex; align-items: center; gap: 1.1rem; width: 100%; min-height: 116px; margin: 0; padding: 1rem;
	border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: none;
}
.crp-scope .crp-product__main:hover,
.crp-scope .crp-product__main:focus { background: transparent; color: inherit; }
.crp-scope .crp-product__media { position: relative; display: grid; place-items: center; width: 74px; height: 74px; flex: 0 0 auto; overflow: hidden; border-radius: var(--crp-radius-sm); background: var(--crp-soft); }
.crp-scope .crp-product__media img { width: 100%; height: 100%; object-fit: cover; }
.crp-scope .crp-product__body { display: block; flex: 1; min-width: 0; }
.crp-scope .crp-product__name { display: block; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.crp-scope .crp-product__desc { display: block; margin-top: .3rem; font-size: .88rem; color: var(--crp-muted); }
.crp-scope .crp-product__allergens { display: block; margin-top: .3rem; font-size: .78rem; color: var(--crp-muted); }
.crp-scope .crp-product__price { display: block; margin-top: .45rem; font-size: .84rem; font-weight: 750; color: var(--crp-primary-700); }
.crp-scope .crp-product__price.is-extra { color: var(--crp-warning); }
.crp-scope .crp-product__side { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.crp-scope .crp-product__radio { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--crp-border-strong); border-radius: 50%; background: var(--crp-bg); color: transparent; }
.crp-scope .crp-product.is-selected { border-color: var(--crp-primary); background: var(--crp-primary-50); }
.crp-scope .crp-product.is-selected .crp-product__radio { background: var(--crp-primary); border-color: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-product.is-soldout,
.crp-scope .crp-product.is-blocked { opacity: .7; }
.crp-scope .crp-product.is-soldout .crp-product__main,
.crp-scope .crp-product.is-blocked .crp-product__main { cursor: not-allowed; }
.crp-scope .crp-product.is-soldout .crp-product__price { color: var(--crp-danger); }
.crp-scope .crp-product__foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .75rem 1rem; border-top: 1px solid var(--crp-border); }
.crp-scope .crp-product__qty-label { font-size: .85rem; font-weight: 750; color: var(--crp-muted); }
.crp-scope .crp-wizard.is-ready .crp-product:not(.has-qty) .crp-product__foot { display: none; }
.crp-scope .crp-qty { display: flex; align-items: center; gap: .7rem; }
.crp-scope .crp-qty__btn {
	display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0;
	border: 1px solid var(--crp-border-strong); border-radius: var(--crp-radius-sm); background: var(--crp-bg); color: var(--crp-text); cursor: pointer; box-shadow: none;
}
.crp-scope .crp-qty__btn:hover:not([disabled]) { background: var(--crp-soft); }
.crp-scope .crp-qty__btn[disabled] { color: var(--crp-border-strong); cursor: not-allowed; }
.crp-scope .crp-qty__input { width: 40px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--crp-text); font: inherit; font-weight: 800; text-align: center; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.crp-scope .crp-qty__input::-webkit-outer-spin-button,
.crp-scope .crp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tuiles (salade sur mesure) */
.crp-scope .crp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.crp-scope .crp-tile { position: relative; display: block; margin: 0; cursor: pointer; }
.crp-scope .crp-tile__card {
	position: relative; display: flex; align-items: center; gap: .9rem; height: 100%; min-height: 86px; padding: 1rem;
	border: 2px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); text-align: left;
}
.crp-scope .crp-tile:hover .crp-tile__card { border-color: color-mix(in srgb, var(--crp-primary) 40%, var(--crp-border)); }
.crp-scope .crp-tile__media { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border-radius: var(--crp-radius-sm); background: var(--crp-soft); }
.crp-scope .crp-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.crp-scope .crp-tile__name { display: block; flex: 1; font-size: .98rem; font-weight: 750; }
.crp-scope .crp-tile__meta { display: block; margin-top: .2rem; font-size: .72rem; color: var(--crp-muted); }
.crp-scope .crp-tile__check { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--crp-border-strong); border-radius: 50%; background: var(--crp-bg); color: transparent; }
.crp-scope .crp-tile input:checked + .crp-tile__card { border-color: var(--crp-primary); background: var(--crp-primary-50); }
.crp-scope .crp-tile.is-locked,
.crp-scope .crp-tile.is-soldout { cursor: not-allowed; }
.crp-scope .crp-tile.is-locked .crp-tile__card,
.crp-scope .crp-tile.is-soldout .crp-tile__card { opacity: .5; }
.crp-scope .crp-initial { font-size: 1.5rem; font-weight: 800; color: var(--crp-muted); }
.crp-scope .crp-tile__card .crp-initial { font-size: 1.1rem; }

/* Récapitulatif */
.crp-scope .crp-recap { display: grid; gap: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--crp-border); border-bottom: 1px solid var(--crp-border); }
.crp-scope .crp-recap__section { padding: 1.1rem 0; border: 0; border-radius: 0; background: none; }
.crp-scope .crp-recap__section + .crp-recap__section { border-top: 1px solid var(--crp-border); }
.crp-scope .crp-recap__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .25rem; }
.crp-scope .crp-recap__title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--crp-muted); }
.crp-scope .crp-recap__row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.crp-scope .crp-recap__name { font-weight: 700; }
.crp-scope .crp-recap__value { text-align: right; font-weight: 750; color: var(--crp-success); white-space: nowrap; }
.crp-scope .crp-recap__value.is-extra { color: var(--crp-warning); }
.crp-scope .crp-recap__value.is-muted { color: var(--crp-muted); font-weight: 500; white-space: normal; }
.crp-scope .crp-recap__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--crp-radius); background: var(--crp-text); color: #fff; }
.crp-scope .crp-recap__total strong { font-size: 1.25rem; font-weight: 800; }
.crp-scope .crp-recap__note { margin: .5rem 0 0; font-size: .82rem; color: var(--crp-muted); text-align: right; }
.crp-scope .crp-recap__note.is-error { color: var(--crp-danger); font-weight: 700; }

.crp-scope .crp-infolist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.crp-scope .crp-infolist li { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: 1.05rem 1.15rem; border: 1px solid var(--crp-border); border-radius: 7px; background: var(--crp-soft); font-size: .93rem; color: var(--crp-muted); }
.crp-scope .crp-infolist .crp-icon { width: 19px; color: var(--crp-primary); margin-top: 1px; }
.crp-scope .crp-infolist strong { color: var(--crp-text); }

/* Barre d'action */
.crp-scope .crp-wizard__message { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 41; margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 7px; background: var(--crp-danger); color: #fff; font-weight: 750; }
.crp-scope .crp-wizard__message.is-shake { animation: crp-shake .35s; }
@keyframes crp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.crp-scope .crp-wizard__bar {
	position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; gap: .7rem;
	min-height: 76px; margin: 1.5rem 0 0; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--crp-border); background: color-mix(in srgb, var(--crp-bg) 96%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.crp-scope .crp-wizard__bar .crp-btn { min-height: 48px; }
.crp-scope .crp-wizard__bar [data-next],
.crp-scope .crp-wizard__bar [data-submit] { margin-left: auto; min-width: 128px; }
.crp-scope .crp-wizard__bar .crp-btn.is-hidden { visibility: hidden; }
.crp-scope .crp-wizard__bar .is-soft-disabled { opacity: .6; }
.crp-scope .crp-wizard__bar-total { margin-left: auto; text-align: right; }
.crp-scope .crp-wizard__bar-amount { display: block; font-size: 1.05rem; font-weight: 800; }
.crp-scope .crp-wizard__bar-amount small { font-size: .78rem; font-weight: 700; color: var(--crp-muted); }
.crp-scope .crp-wizard__bar-hint { display: block; font-size: .7rem; color: var(--crp-muted); }

/* ==========================================================================
   Confirmation
   ========================================================================== */
.crp-scope .crp-success { max-width: 620px; margin: 0 auto; text-align: center; }
.crp-scope .crp-success__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--crp-success-bg); color: var(--crp-success); }
.crp-scope .crp-success__icon .crp-icon { width: 28px; height: 28px; }
.crp-scope .crp-success__title { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 800; }
.crp-scope .crp-success__intro { color: var(--crp-muted); }
.crp-scope .crp-success .crp-infolist { text-align: left; }
.crp-scope .crp-success__actions { display: grid; gap: .75rem; margin-top: 1.5rem; }

.crp-scope .crp-ordernum { margin: 1.5rem 0 1rem; padding: 1.5rem; border: 2px solid var(--crp-primary); border-radius: var(--crp-radius); background: var(--crp-primary-50); }
.crp-scope .crp-ordernum__label { display: block; font-size: .8rem; font-weight: 700; color: var(--crp-primary-700); }
.crp-scope .crp-ordernum__value { display: block; margin: .2rem 0; font-size: clamp(3rem, 12vw, 5rem); line-height: 1; font-weight: 800; color: var(--crp-primary-700); }
.crp-scope .crp-ordernum__id { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .9rem; min-width: 0; font-size: .8rem; color: var(--crp-muted); }
.crp-scope .crp-ordernum__id strong,
.crp-scope .crp-ordernum__ref { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.crp-scope .crp-ordernum__ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; }
.crp-scope .crp-receipt { padding: 1.25rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); text-align: left; }
.crp-scope .crp-lines { display: grid; gap: .1rem; font-size: .9rem; }
.crp-scope .crp-lines__row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.crp-scope .crp-lines__row span:last-child { text-align: right; white-space: nowrap; }
.crp-scope .crp-lines__row--head { font-weight: 800; }
.crp-scope .crp-lines__row--sub { padding-left: .75rem; font-size: .84rem; color: var(--crp-muted); }
.crp-scope .crp-lines__row--sub span:last-child { white-space: normal; }
.crp-scope .crp-lines .is-included { color: var(--crp-success); font-weight: 700; }
.crp-scope .crp-lines .is-extra { color: var(--crp-warning); font-weight: 700; }
.crp-scope .crp-lines__total { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--crp-border); font-weight: 800; }
.crp-scope .crp-lines__note { display: flex; gap: .4rem; margin: .75rem 0 0; font-size: .84rem; color: var(--crp-muted); font-style: italic; }

/* ==========================================================================
   Mes commandes
   ========================================================================== */
.crp-scope .crp-order { padding: 1.6rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); }
.crp-scope .crp-order__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; }
.crp-scope .crp-order__info { display: block; flex: 1; min-width: 0; }
.crp-scope .crp-order__date { display: block; margin-top: .85rem; font-size: 1.2rem; font-weight: 800; }
.crp-scope .crp-order__type { display: flex; align-items: center; gap: .45rem; margin-top: .35rem; font-size: .92rem; color: var(--crp-muted); }
.crp-scope .crp-order__number { flex: 0 0 auto; text-align: right; }
.crp-scope .crp-order__n { display: block; font-size: 1.25rem; font-weight: 800; }
.crp-scope .crp-order__ref { display: block; font-size: .62rem; color: var(--crp-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.crp-scope .crp-order__details { margin-top: .75rem; }
.crp-scope .crp-order__details summary { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .65rem 0; cursor: pointer; font-size: .93rem; font-weight: 750; color: var(--crp-primary-700); list-style: none; }
.crp-scope .crp-order__details summary::-webkit-details-marker { display: none; }
.crp-scope .crp-order__details summary::before { content: "▸"; transition: transform var(--crp-ease); }
.crp-scope .crp-order__details[open] summary::before { transform: rotate(90deg); }
.crp-scope .crp-order__details[open] summary .crp-ellipsis { display: none; }
.crp-scope .crp-order__details summary .crp-ellipsis { font-weight: 400; color: var(--crp-muted); }
.crp-scope .crp-order__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--crp-border); }
.crp-scope .crp-order__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.crp-scope .crp-order--cancelled { opacity: .7; }

.crp-scope .crp-history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--crp-border); border-bottom: 1px solid var(--crp-border); }
.crp-scope .crp-history__item { display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1.15rem 0; }
.crp-scope .crp-history__item + .crp-history__item { border-top: 1px solid var(--crp-border); }
.crp-scope .crp-history__item--cancelled { opacity: .65; }
.crp-scope .crp-history__body { display: grid; flex: 1; min-width: 0; }
.crp-scope .crp-history__side { display: grid; justify-items: end; gap: .25rem; font-size: .82rem; }
.crp-scope .crp-pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1.5rem 0; }
.crp-scope .crp-pagination__info { font-size: .86rem; color: var(--crp-muted); }

/* ==========================================================================
   Anti-gaspi
   ========================================================================== */
.crp-scope .crp-grid-2 { display: grid; gap: 1rem; }
.crp-scope .crp-offer { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); }
.crp-scope .crp-offer__img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.crp-scope .crp-offer--noimg { grid-template-columns: minmax(0, 1fr); }
.crp-scope .crp-offer__body { padding: 1.35rem; }
.crp-scope .crp-offer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.crp-scope .crp-offer__title { margin: .6rem 0 0; font-size: 1rem; font-weight: 800; }
.crp-scope .crp-offer__price { display: block; margin-top: .45rem; color: var(--crp-primary-700); font-size: 1.4rem; font-weight: 800; }
.crp-scope .crp-offer__content { margin: .65rem 0 0; font-size: .93rem; color: var(--crp-muted); }
.crp-scope .crp-facts { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .45rem; }
.crp-scope .crp-facts li { display: flex; align-items: flex-start; gap: .4rem; margin: 0; font-size: .85rem; color: var(--crp-muted); }
.crp-scope .crp-facts .crp-icon { width: 14px; margin-top: 2px; }
.crp-scope .crp-stock { display: grid; gap: .3rem; margin: .75rem 0 0; }
.crp-scope .crp-stock__bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--crp-soft); }
.crp-scope .crp-stock__bar span { display: block; height: 100%; border-radius: 99px; background: var(--crp-primary); }
.crp-scope .crp-stock__label { font-size: .76rem; color: var(--crp-muted); }
.crp-scope .crp-offer__form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.crp-scope .crp-offer__form .crp-btn { width: 100%; }
.crp-scope .crp-inline-success,
.crp-scope .crp-inline-info { display: flex; gap: .5rem; align-items: center; margin: .75rem 0 0; font-weight: 750; font-size: .86rem; }
.crp-scope .crp-inline-success { color: var(--crp-success); }
.crp-scope .crp-inline-info { color: var(--crp-info); font-weight: 600; }

/* ==========================================================================
   Suggestions, sondages
   ========================================================================== */
.crp-scope .crp-compose { margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); }
.crp-scope .crp-compose__toggle { display: flex; align-items: center; gap: .75rem; cursor: pointer; list-style: none; }
.crp-scope .crp-compose__toggle::-webkit-details-marker { display: none; }
.crp-scope .crp-compose__toggle > span:nth-child(2) { display: grid; flex: 1; }
.crp-scope .crp-compose__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--crp-radius-sm); background: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-compose__plus { color: var(--crp-muted); transition: transform var(--crp-ease); }
.crp-scope .crp-compose[open] .crp-compose__plus { transform: rotate(45deg); }
.crp-scope .crp-compose__form { margin-top: 1rem; }
.crp-scope .crp-choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.crp-scope .crp-choice-pill { position: relative; margin: 0; cursor: pointer; }
.crp-scope .crp-choice-pill span { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem 1rem; border: 2px solid var(--crp-border); border-radius: 99px; font-weight: 700; font-size: .875rem; }
.crp-scope .crp-choice-pill input:checked + span { border-color: var(--crp-primary); background: var(--crp-primary-50); color: var(--crp-primary-700); }

.crp-scope .crp-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.crp-scope .crp-mine__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0; padding: 1rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); }
.crp-scope .crp-mine__body { display: grid; min-width: 0; }
.crp-scope .crp-mine__body a { color: var(--crp-text); text-decoration: none; }
.crp-scope .crp-mine__body .crp-muted { font-size: .82rem; }

.crp-scope .crp-message { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin: 0; padding: 1.6rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); scroll-margin-top: 20px; }
.crp-scope .crp-message__body { flex: 1 1 320px; min-width: 0; }
.crp-scope .crp-message__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; }
.crp-scope .crp-message__title { margin: .75rem 0 .5rem; font-size: 1.05rem; font-weight: 800; }
.crp-scope .crp-message__content { color: var(--crp-muted); font-size: .97rem; }
.crp-scope .crp-message__content p:last-child { margin-bottom: 0; }
.crp-scope .crp-reply { margin-top: .75rem; padding-left: .75rem; border-left: 3px solid var(--crp-primary); }
.crp-scope .crp-reply__label { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--crp-primary-700); }
.crp-scope .crp-reply__content { color: var(--crp-muted); font-size: .97rem; }
.crp-scope .crp-reply__content p:last-child { margin-bottom: 0; }
.crp-scope .crp-message__foot { display: flex; align-items: flex-start; justify-content: flex-end; margin: 0; flex: 0 0 auto; }
.crp-scope .crp-like {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; margin: 0;
	border: 1px solid var(--crp-border-strong); border-radius: var(--crp-radius); background: var(--crp-bg); color: var(--crp-text);
	font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; box-shadow: none;
}
.crp-scope .crp-like.is-liked { background: var(--crp-primary); border-color: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-like.is-liked .crp-icon { fill: currentColor; }
.crp-scope .crp-like[disabled] { cursor: default; opacity: .6; }
.crp-scope .crp-like.is-bump .crp-icon { animation: crp-bump .35s; }
@keyframes crp-bump { 50% { transform: scale(1.35); } }

.crp-scope .crp-poll { margin: 0; padding: 1.25rem; border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); overflow: hidden; scroll-margin-top: 20px; }
.crp-scope .crp-poll__cover { display: block; width: calc(100% + 2.5rem); margin: -1.25rem -1.25rem 1rem; aspect-ratio: 16 / 7; object-fit: cover; }
.crp-scope .crp-poll__body { padding: 0; }
.crp-scope .crp-poll__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; }
.crp-scope .crp-poll__title { margin: .5rem 0 .5rem; font-size: 1.125rem; font-weight: 800; }
.crp-scope .crp-poll__content { color: var(--crp-muted); font-size: .9rem; }
.crp-scope .crp-options { display: grid; gap: .75rem; margin-top: 1.25rem; }
.crp-scope .crp-options--images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crp-scope .crp-option { position: relative; display: block; margin: 0; cursor: pointer; }
.crp-scope .crp-option__card { position: relative; display: flex; align-items: center; gap: .75rem; height: 100%; min-height: 52px; padding: .75rem 1rem; border: 2px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); font-weight: 700; }
.crp-scope .crp-option:hover .crp-option__card { border-color: var(--crp-primary); }
.crp-scope .crp-option__mark { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--crp-border-strong); border-radius: 50%; color: transparent; }
.crp-scope .crp-option input[type="checkbox"] + .crp-option__card .crp-option__mark { border-radius: 7px; }
.crp-scope .crp-option input:checked + .crp-option__card { border-color: var(--crp-primary); background: var(--crp-primary-50); }
.crp-scope .crp-option.is-locked { opacity: .45; cursor: not-allowed; }
.crp-scope .crp-options--images .crp-option__card { flex-direction: column; align-items: stretch; padding: .5rem; }
.crp-scope .crp-options--images .crp-option__mark { position: absolute; top: .875rem; left: .875rem; background: var(--crp-bg); }
.crp-scope .crp-option__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--crp-radius-sm); }
.crp-scope .crp-options--images .crp-option__label { padding: .25rem; text-align: center; }
.crp-scope .crp-disclosure summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--crp-primary-700); }
.crp-scope .crp-results { display: grid; gap: 1rem; margin-top: 1rem; }
.crp-scope .crp-result__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; font-size: .875rem; }
.crp-scope .crp-result__img { width: 34px; height: 34px; border-radius: var(--crp-radius-sm); object-fit: cover; }
.crp-scope .crp-result__label { flex: 1; min-width: 0; font-weight: 750; }
.crp-scope .crp-result__mine { display: block; font-size: .78rem; color: var(--crp-primary-700); font-weight: 700; }
.crp-scope .crp-result__value { font-weight: 800; white-space: nowrap; }
.crp-scope .crp-result__value small { color: var(--crp-muted); font-weight: 500; }
.crp-scope .crp-result__bar { height: 10px; overflow: hidden; border-radius: 99px; background: var(--crp-soft); }
.crp-scope .crp-result__bar span { display: block; height: 100%; background: var(--crp-border-strong); transition: width .6s ease; }
.crp-scope .crp-result.is-winner .crp-result__bar span { background: var(--crp-primary); }
.crp-scope .crp-results__total { margin: 1rem 0 0; font-size: .82rem; color: var(--crp-muted); }

/* ==========================================================================
   Mon compte, aide, connexion
   ========================================================================== */
.crp-scope .crp-account { display: grid; gap: 1.75rem; }
.crp-scope .crp-idcard { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; margin: 0; padding: 1.6rem; border: 0; border-radius: var(--crp-radius); background: var(--crp-primary-50); }
.crp-scope .crp-idcard .crp-avatar--xl { flex: 0 0 auto; }
.crp-scope .crp-idcard__body { display: grid; gap: .2rem; flex: 1 1 260px; min-width: 0; }
.crp-scope .crp-idcard__label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--crp-muted); }
.crp-scope .crp-idcard__id { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; min-width: 0; font-size: 1.25rem; font-weight: 800; }
.crp-scope .crp-idcard__id strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; line-height: 1.25; }
/* Identifiant long (adresse e-mail) : on réduit le corps et on autorise la coupure */
.crp-scope .crp-idcard__body--long .crp-idcard__id { display: block; font-size: clamp(.95rem, .82rem + .8cqi, 1.15rem); letter-spacing: 0; }
.crp-scope .crp-idcard__body--long .crp-idcard__id strong { display: inline; letter-spacing: .01em; }
.crp-scope .crp-idcard__body--long .crp-idcard__id .crp-icon-btn { display: inline-grid; vertical-align: middle; width: 30px; height: 30px; margin-left: .4rem; }
.crp-scope .crp-idcard__balance { display: grid; margin-left: auto; text-align: right; }
.crp-scope .crp-idcard__balance strong { font-size: 1.25rem; font-weight: 800; color: var(--crp-primary-700); }
.crp-scope .crp-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; padding-block: .9rem; border-bottom: 1px solid var(--crp-border); }

.crp-scope .crp-search { display: flex; align-items: center; gap: .4rem; margin: 0 0 1.5rem; padding-left: .8rem; border: 1px solid var(--crp-border-strong); border-radius: var(--crp-radius); background: var(--crp-bg); }
.crp-scope .crp-search > .crp-icon { width: 19px; color: var(--crp-muted); }
.crp-scope .crp-search .crp-input { height: 50px; min-height: 50px; border: 0; box-shadow: none; background: transparent; }
.crp-scope .crp-search .crp-input:focus { box-shadow: none; }
.crp-scope .crp-help__section { margin: 0 0 2.5rem; scroll-margin-top: 20px; }
.crp-scope .crp-help__title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 800; }
.crp-scope .crp-help__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--crp-radius-sm); background: var(--crp-primary-100); color: var(--crp-primary-700); }
.crp-scope .crp-accordion { border: 0; border-top: 1px solid var(--crp-border); border-bottom: 1px solid var(--crp-border); border-radius: 0; background: none; }
.crp-scope .crp-accordion__item + .crp-accordion__item { border-top: 1px solid var(--crp-border); }
.crp-scope .crp-accordion__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 1rem 0; cursor: pointer; font-size: 1.02rem; font-weight: 750; list-style: none; }
.crp-scope .crp-accordion__item summary::-webkit-details-marker { display: none; }
.crp-scope .crp-accordion__icon { width: 18px; color: var(--crp-muted); transition: transform var(--crp-ease); }
.crp-scope .crp-accordion__item[open] .crp-accordion__icon { transform: rotate(45deg); color: var(--crp-primary); }
.crp-scope .crp-accordion__content { padding: 0 2rem 1.25rem 0; color: var(--crp-muted); font-size: .95rem; line-height: 1.65; }
.crp-scope .crp-accordion__content p,
.crp-scope .crp-accordion__content ul,
.crp-scope .crp-accordion__content ol { margin: 0 0 .6em; }
.crp-scope .crp-accordion__content ul,
.crp-scope .crp-accordion__content ol { padding-left: 1.2em; }

.crp-scope .crp-auth { display: flex; justify-content: center; padding: 8px 0 40px; }
.crp-scope .crp-auth__card { width: 100%; max-width: 500px; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--crp-border); border-radius: var(--crp-radius); background: var(--crp-bg); box-shadow: var(--crp-shadow); }
.crp-scope .crp-auth__card--wide { max-width: 540px; }
.crp-scope .crp-auth__brand { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.crp-scope .crp-auth__brand img { border-radius: var(--crp-radius); }
.crp-scope .crp-auth__site { font-weight: 750; color: var(--crp-muted); font-size: .88rem; }
.crp-scope .crp-auth__logo { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: var(--crp-radius); background: var(--crp-primary); color: var(--crp-on-primary); }
.crp-scope .crp-auth__brand .crp-auth__logo { margin: 0; }
.crp-scope .crp-auth__logo--success { background: var(--crp-success-bg); color: var(--crp-success); }
.crp-scope .crp-auth__title { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 800; }
.crp-scope .crp-auth__intro { margin: 0 0 1.75rem; color: var(--crp-muted); }
.crp-scope .crp-auth__help { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--crp-border); font-size: .88rem; }
.crp-scope .crp-auth__help summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--crp-primary-700); list-style: none; }
.crp-scope .crp-auth__help summary::-webkit-details-marker { display: none; }
.crp-scope .crp-auth__help div { padding-top: .5rem; color: var(--crp-muted); }
.crp-scope .crp-mini-steps { display: flex; justify-content: center; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .8rem; font-weight: 700; color: var(--crp-muted); }
.crp-scope .crp-mini-steps li { display: flex; align-items: center; gap: .4rem; }
.crp-scope .crp-mini-steps li + li::before { content: ""; width: 18px; height: 2px; background: var(--crp-border-strong); }
.crp-scope .crp-mini-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--crp-soft); }
.crp-scope .crp-mini-steps .is-done span { background: var(--crp-success); color: #fff; }
.crp-scope .crp-mini-steps .is-current { color: var(--crp-primary-700); }
.crp-scope .crp-mini-steps .is-current span { background: var(--crp-primary); color: #fff; }
.crp-scope .crp-identity-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: var(--crp-radius); background: var(--crp-soft); font-size: .9rem; }

/* ==========================================================================
   Onglets mobiles, panneaux, dialogues
   ========================================================================== */
.crp-tabbar { display: none; }
.crp-sheet { width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--crp-text); }
.crp-sheet::backdrop { background: rgba(38, 45, 56, .35); }
.crp-sheet__panel { padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--crp-bg); border-radius: 12px 12px 0 0; }
.crp-sheet__handle { width: 42px; height: 4px; margin: 0 auto 1rem; border-radius: 99px; background: var(--crp-border); }
.crp-sheet__user { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--crp-border); }
.crp-sheet__user div { display: grid; min-width: 0; line-height: 1.3; }
.crp-sheet__user div strong { overflow-wrap: anywhere; }
.crp-sheet__user .crp-muted { font-size: .82rem; overflow-wrap: anywhere; word-break: break-word; }
.crp-sheet__list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .25rem; }
.crp-sheet__list a { display: flex; align-items: center; gap: .9rem; min-height: 48px; padding: .8rem .5rem; border-radius: 7px; color: var(--crp-text); font-weight: 650; text-decoration: none; }
.crp-sheet__list a .crp-icon { color: var(--crp-muted); }
.crp-sheet__list a span:not(.crp-dot) { flex: 1; }
.crp-sheet__list a:hover,
.crp-sheet__list a.is-active { background: var(--crp-primary-100); color: var(--crp-primary-700); }
.crp-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--crp-radius); background: var(--crp-bg); color: var(--crp-text); box-shadow: var(--crp-shadow-lg); }
.crp-dialog::backdrop { background: rgba(38, 45, 56, .45); }
.crp-dialog__box { padding: 1.5rem; }
.crp-dialog__text { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.5; }
.crp-dialog__actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 781px) {
	.crp-body--tabbar .crp-scope .crp-appbar__account { display: none; }
	.crp-body--tabbar .crp-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		display: grid; grid-template-columns: repeat(4, 1fr); min-height: 70px;
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 1px solid var(--crp-border); background: var(--crp-bg); box-shadow: 0 -6px 20px rgba(38, 45, 56, .08);
	}
	body.crp-body--tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.crp-scope .crp-tabbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
		min-height: 60px; margin: 0; padding: .25rem; border: 0; background: none;
		color: var(--crp-muted); font: inherit; font-size: .65rem; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: none;
	}
	.crp-scope .crp-tabbar__item .crp-icon { width: 21px; height: 21px; }
	.crp-scope .crp-tabbar__item.is-active { color: var(--crp-primary); }
	.crp-scope .crp-tabbar__icon { position: relative; display: inline-flex; }
	.crp-scope .crp-wizard__bar [data-prev] span { display: none; }
	.crp-scope .crp-wizard__bar [data-prev] { min-width: 48px; padding: 10px; }
	.crp-scope .crp-offer { grid-template-columns: 110px 1fr; }
	.crp-scope .crp-offer--noimg { grid-template-columns: minmax(0, 1fr); }
	.crp-scope .crp-offer__img { min-height: 0; }
}

@container crpshell (max-width: 380px) {
	.crp-scope .crp-day-card__status { font-size: .74rem; padding-inline: .55rem; }
	.crp-scope .crp-day-card__label { display: none; }
	.crp-scope .crp-day-card { gap: .7rem; padding: 1rem; }
	.crp-scope .crp-wizard__bar { gap: .4rem; }
	.crp-scope .crp-wizard__bar .crp-btn { padding-inline: 12px; }
	.crp-scope .crp-wizard__bar [data-next],
	.crp-scope .crp-wizard__bar [data-submit] { min-width: 0; }
	.crp-scope .crp-wizard__bar-total { min-width: 0; }
	.crp-scope .crp-wizard__bar-hint { display: none; }

	.crp-scope .crp-offer { grid-template-columns: 1fr; }
	.crp-scope .crp-offer__img { min-height: 140px; max-height: 160px; }
}

@container crpshell (max-width: 430px) {
	/* Cartes d'article : plus de place au texte sur téléphone */
	.crp-scope .crp-product__main { gap: .85rem; padding: .85rem; min-height: 0; }
	.crp-scope .crp-product__media { width: 60px; height: 60px; }
	.crp-scope .crp-product__media .crp-initial { font-size: 1.25rem; }
	.crp-scope .crp-product__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.crp-scope .crp-tile__card { padding: .85rem; }
}

@container crpshell (max-width: 560px) {
	/* Barre d'action : le total passe au-dessus des boutons pour ne rien comprimer */
	.crp-scope .crp-wizard__bar { flex-wrap: wrap; row-gap: .6rem; padding-top: .9rem; }
	.crp-scope .crp-wizard__bar-total { order: -1; flex: 1 0 100%; margin-left: 0; text-align: left; }
	.crp-scope .crp-wizard__bar-amount { display: inline; }
	.crp-scope .crp-wizard__bar-hint { display: inline; margin-left: .5rem; }
	.crp-scope .crp-wizard__bar [data-next],
	.crp-scope .crp-wizard__bar [data-submit] { flex: 1 1 auto; }
}

@container crpshell (max-width: 520px) {
	.crp-scope .crp-rowlist a { flex-wrap: wrap; gap: .4rem .75rem; }
	.crp-scope .crp-datebox { min-width: 0; }
	.crp-scope .crp-datebox { order: 1; }
	.crp-scope .crp-rowlist__num { order: 2; margin-left: auto; }
	.crp-scope .crp-rowlist__body { order: 3; flex: 1 0 100%; }
	.crp-scope .crp-rowlist__body .crp-ellipsis { white-space: normal; }
	.crp-scope .crp-viewhead__back { display: none; }
}

@container crpshell (min-width: 560px) {
	.crp-scope .crp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crp-scope .crp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.crp-scope .crp-next { grid-template-columns: minmax(0, 1fr) auto; }
	.crp-scope .crp-success__actions { grid-template-columns: 1fr 1fr; }
	.crp-scope .crp-options--images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.crp-scope .crp-how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container crpshell (min-width: 880px) {
	.crp-scope .crp-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.crp-scope .crp-formulas--2,
	.crp-scope .crp-formulas--4 { grid-template-columns: 1fr 1fr; }
	.crp-scope .crp-formulas--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.crp-scope .crp-products { grid-template-columns: 1fr 1fr; }
	.crp-scope .crp-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.crp-scope *,
	.crp-scope *::before,
	.crp-scope *::after,
	.crp-sheet,
	.crp-dialog { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.crp-scope .crp-panel:focus:not(:focus-visible),
.crp-scope .crp-panel__title:focus:not(:focus-visible),
.crp-scope .crp-product__main:focus:not(:focus-visible),
.crp-scope .crp-tabbar__item:focus:not(:focus-visible),
.crp-scope summary:focus:not(:focus-visible) { outline: none; box-shadow: none; }
