/* Fidelop — feuille de style unique, sans framework ni compilation. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --ink: #0f1b2d;
  --ink-2: #3b4658;
  --muted: #5b6678;
  --faint: #8a94a6;
  --line: #e1e6ed;
  --line-strong: #cdd5df;
  --primary: #2552d0;
  --primary-hover: #1d43af;
  --primary-soft: #eaf0fd;
  --primary-ink: #173a9a;
  --accent: #b7791f;
  --accent-soft: #fbf1dc;
  --success: #17803d;
  --success-soft: #e6f4ea;
  --danger: #c0352b;
  --danger-soft: #fdecea;
  --warning: #9a6200;
  --warning-soft: #fff4dc;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow: 0 1px 3px rgba(15, 27, 45, 0.06), 0 6px 16px -8px rgba(15, 27, 45, 0.12);
  --shadow-lg: 0 12px 40px -12px rgba(15, 27, 45, 0.3);
  --sidebar: 248px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.125rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 3px solid rgba(37, 82, 208, 0.35); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-lg { width: 22px; height: 22px; flex: none; }

/* Texte utilitaire */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack > *, .grid > * { min-width: 0; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--faint); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary-ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a32a21; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f3c7c2; }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #12672f; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Formulaires */
.field { display: block; }
.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 16px; }
.field-row > .field { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 88px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6678' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 82, 208, 0.15); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 500; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-size: 14px; white-space: nowrap; }
.input-xl { min-height: 60px; font-size: 26px; font-weight: 650; text-align: center; letter-spacing: 0.02em; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check + .check { margin-top: 10px; }
.color-input { display: flex; gap: 10px; align-items: center; }
.color-input input[type="color"] { width: 48px; height: 42px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body { display: block; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background-color .15s; }
.choice-body strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.choice-body span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--primary); background: var(--primary-soft); }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 3px rgba(37, 82, 208, 0.25); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

/* Messages */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: 14px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-soft); border-color: #bfe3c9; color: #0f5c2b; }
.alert-error { background: var(--danger-soft); border-color: #f5c4bf; color: #8f241c; }
.alert-info { background: var(--primary-soft); border-color: #c9d6f7; color: var(--primary-ink); }
.alert-warning { background: var(--warning-soft); border-color: #f2d9a6; color: #6f4700; }
.flashes { display: grid; gap: 8px; margin-bottom: 20px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-blue { background: var(--primary-soft); color: var(--primary-ink); border-color: #c9d6f7; }
.badge-green { background: var(--success-soft); color: #0f5c2b; border-color: #bfe3c9; }
.badge-red { background: var(--danger-soft); color: #8f241c; border-color: #f5c4bf; }
.badge-amber { background: var(--accent-soft); color: #7a4f0f; border-color: #efd6a5; }

/* Panneaux */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-body { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat-value { font-size: 22px; } }

.stat { padding: 16px 18px; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-value { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 2px; font-size: 12px; color: var(--faint); }
.stat-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon-lg { margin: 0 auto 10px; color: var(--faint); width: 32px; height: 32px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover td { background: var(--surface-2); }
.table .right { text-align: right; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-weight: 650; font-size: 13px; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-cards td { padding: 2px 0; border: 0; }
  .table-cards td.right { text-align: left; }
  .table-cards td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); font-size: 13px; }
  .table-cards td.hide-sm { display: none; }
}

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.segmented { display: inline-flex; padding: 3px; background: #edf0f5; border-radius: 8px; gap: 2px; }
.segmented a, .segmented button { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; font-family: inherit; }
.segmented a[aria-current="page"], .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Structure de l'application */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav-section { margin: 14px 8px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 14px; text-decoration: none !important; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.nav-item[aria-current="page"] .icon { color: var(--primary); }
.nav-item .icon { color: var(--faint); }
.nav-cta { margin: 6px 0 10px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); text-decoration: none !important; }
.user-chip:hover { background: var(--surface-2); }
.user-chip .avatar { width: 32px; height: 32px; font-size: 12px; }
.main { margin-left: var(--sidebar); min-width: 0; overflow-x: clip; }
.content { max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.page-head p { margin-top: 4px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.topbar { display: none; }
.bottom-nav { display: none; }
.org-switch { margin: 0 18px 8px; }
.org-switch .select { min-height: 34px; padding: 5px 30px 5px 10px; font-size: 13px; }
.admin-tag { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 960px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 84px; }
  .content { padding: 18px 16px 32px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 12px 0 16px;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .topbar .brand-mark { width: 30px; height: 30px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; inset: auto 0 0 0; z-index: 25; height: 68px; padding: 0 4px env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px -8px rgba(15, 27, 45, .15);
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .bottom-nav a[aria-current="page"] { color: var(--primary); }
  .bottom-nav .scan-fab { position: relative; top: -14px; height: auto; color: var(--ink); }
  .bottom-nav .scan-fab span.fab { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(37, 82, 208, .6); border: 4px solid var(--surface); }
  .bottom-nav .scan-fab .icon { width: 24px; height: 24px; }
  .page-head h1 { font-size: 1.3rem; }
}

/* Menu mobile « Plus » */
.sheet { border: 0; padding: 0; width: 100%; max-width: 520px; margin: auto auto 0; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: rgba(15, 27, 45, .45); }
.sheet-body { padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 10px auto 6px; }

/* Boîtes de dialogue */
.dialog { border: 0; padding: 0; width: calc(100% - 32px); max-width: 460px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(15, 27, 45, .45); }
.dialog-body { padding: 22px; }
.dialog-body h2 { margin-bottom: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Carte de fidélité au format « pass » */
.loyalty-card {
  --card: var(--primary); --card-ink: #fff; --strip-ink: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; max-width: 360px; padding: 16px 0 16px;
  border-radius: 22px; background: var(--card); color: var(--card-ink);
  box-shadow: 0 24px 50px -24px rgba(11, 20, 38, .6);
}
.lc-top { display: flex; align-items: center; gap: 11px; padding: 0 18px; }
.lc-logo { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .95); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--card); font-weight: 800; font-size: 14px; }
.lc-logo img { width: 100%; height: 100%; object-fit: contain; }
.lc-org { font-weight: 750; font-size: 16px; line-height: 1.2; }
.lc-title { font-size: 12px; opacity: .78; }
.lc-strip { position: relative; margin: 14px 0 12px; min-height: 116px; padding: 16px 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--strip-ink); }
.lc-strip-image { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.lc-strip-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .35)); pointer-events: none; }
.lc-strip > * { position: relative; z-index: 1; }
.lc-strip::after { content: ""; position: absolute; inset: 0; pointer-events: none; --pat: color-mix(in srgb, var(--strip-ink) 16%, transparent); }
.lc-pat-none::after { display: none; }
.lc-pat-dots::after { background: radial-gradient(circle, var(--pat) 2.2px, transparent 2.6px) 0 0 / 16px 16px; }
.lc-pat-stripes::after { background: repeating-linear-gradient(115deg, var(--pat) 0 6px, transparent 6px 16px); }
.lc-pat-waves::after { background: radial-gradient(circle at 50% 100%, transparent 9px, var(--pat) 9px 11px, transparent 11px) 0 0 / 24px 12px; }
.lc-pat-grid::after { background: linear-gradient(var(--pat) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, var(--pat) 1px, transparent 1px) 0 0 / 14px 14px; }
.loyalty-card.lc-c-square { border-radius: 10px; }
.loyalty-card.lc-c-extra { border-radius: 34px; }
.loyalty-card.no-name .lc-org { display: none; }
.loyalty-card.no-name .lc-title { font-size: 14px; font-weight: 700; opacity: .9; }
.lc-strip-body { min-height: 96px; padding-top: 4px; }
.lc-points { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.lc-points span { font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-size: 54px; line-height: .92; letter-spacing: .005em; }
.lc-points small { margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.lc-fields { display: flex; gap: 16px; padding: 0 18px; font-size: 13px; font-weight: 650; }
.lc-fields > div { min-width: 0; display: flex; flex-direction: column; }
.lc-fields small { font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--card-label, inherit); opacity: .7; margin-bottom: 2px; white-space: nowrap; }
.loyalty-card.has-label .lc-fields small { opacity: 1; }
.lc-code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.lc-qr { margin: 14px auto 0; width: 156px; background: #fff; border-radius: 16px; padding: 12px 12px 8px; text-align: center; color: #4b5872; }
.lc-qr .qr-box { display: block; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; }
.lc-qr .qr-box svg { width: 132px; height: 132px; display: block; margin: 0 auto; }
.lc-qr small { display: block; margin-top: 5px; font-size: 10.5px; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qr-box svg, .qr-box img, .qr-box canvas { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-box.qr-lg svg, .qr-box.qr-lg canvas { width: 280px; height: 280px; }

.progress { height: 8px; border-radius: 99px; background: #e8ecf2; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }

/* Graphique en barres (SVG généré côté serveur) */
.chart { width: 100%; height: 180px; }
.chart .bar { fill: var(--primary); }
.chart .bar-2 { fill: #9db4ee; }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--faint); font-size: 10px; font-family: var(--font); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Scanner */
.scanner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0b1220; aspect-ratio: 1 / 1; max-height: 62vh; width: 100%; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 14%; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(11, 18, 32, .45); pointer-events: none; }
.scanner-frame::before, .scanner-frame::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .9); clip-path: polygon(0 0, 22% 0, 22% 3px, 3px 3px, 3px 22%, 0 22%, 0 78%, 3px 78%, 3px calc(100% - 3px), 22% calc(100% - 3px), 22% 100%, 78% 100%, 78% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 78%, 100% 78%, 100% 22%, calc(100% - 3px) 22%, calc(100% - 3px) 3px, 78% 3px, 78% 0, 100% 0, 100% 100%, 0 100%); }
.scanner-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #dfe6f3; font-size: 14px; }
.scanner-msg .btn { margin-top: 12px; }
.scan-line { position: absolute; left: 16%; right: 16%; height: 2px; top: 50%; background: linear-gradient(90deg, transparent, #7ea2ff, transparent); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-90px); opacity: .3; } 50% { transform: translateY(90px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; } }
.customer-head { display: flex; align-items: center; gap: 14px; }
.balance-big { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.reward-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); text-align: left; font: inherit; cursor: pointer; }
.reward-option:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.reward-option:disabled { opacity: .5; cursor: not-allowed; }
.reward-option .grow strong { display: block; }
.success-burst { text-align: center; padding: 18px 0 6px; }
.success-burst .check-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 12px; }
.success-burst .check-circle .icon { width: 32px; height: 32px; }

/* Pages d'authentification */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 500px at 50% -10%, #e3eafc 0%, var(--paper) 60%); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box.wide { max-width: 640px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font-weight: 700; font-size: 18px; }
.auth .panel-body { padding: 28px; }
.auth h1 { font-size: 1.35rem; margin-bottom: 6px; }
.auth .lead { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checklist .ok { color: var(--success); }
.checklist .ko { color: var(--danger); }
.code-input { font-family: var(--mono); letter-spacing: .3em; text-align: center; font-size: 22px; }

/* Pages publiques (client) */
.public { min-height: 100vh; background: var(--paper); }
.public-wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 40px; }
.public-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.public-head .lc-logo { width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; }
.public-foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--faint); }
.history-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-item:last-child { border-bottom: 0; }
.wallet-btns { display: grid; gap: 8px; }
.btn-wallet { background: #000; color: #fff; min-height: 46px; border-radius: 10px; }

/* Assistant de démarrage */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.wizard-preview { position: sticky; top: 24px; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
@media (max-width: 1100px) { .wizard { grid-template-columns: minmax(0, 1fr); } .wizard-preview { position: static; order: -1; } }

/* Copie de lien */
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: var(--mono); font-size: 13px; background: var(--surface-2); }

/* Impression (affiche du QR code) */
.print-page { background: #fff; }
.poster { width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 40px; text-align: center; }
.poster h1 { font-size: 34px; margin: 18px 0 8px; }
.poster .lead { font-size: 18px; color: var(--ink-2); }
.poster .qr-box { margin: 28px auto; padding: 20px; border: 2px solid var(--ink); }
.poster .qr-box svg { width: 320px; height: 320px; }
.poster-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; text-align: center; font-size: 15px; }
.poster-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--poster, var(--primary)); color: #fff; margin: 0 auto 8px; }
.no-print { margin: 16px auto; text-align: center; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .poster { padding: 0; }
}

/* Pages d'erreur */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-code { font-size: 64px; font-weight: 800; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toolbar .search .input { padding-left: 38px; }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; font-family: var(--mono); font-size: 12px; background: var(--surface); }
.callout { padding: 16px 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; }
.callout strong { color: var(--primary-ink); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }

/* ===================== Site public ===================== */
.site-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-container.narrow { max-width: 800px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }


.section { padding: 88px 0; }
.section-alt { background: var(--paper); }
.step-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split h2 { margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 14px; }
.check-list li > .icon { color: var(--primary); margin-top: 2px; width: 22px; height: 22px; }
.check-list p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.page-section { padding: 56px 0 88px; background: linear-gradient(180deg, #f6f8fe 0%, #fff 320px); }
.page-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.12; font-weight: 800; }
.split-form { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.form-card { padding: 30px; box-shadow: var(--shadow); }
.mini-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-weight: 600; }
.mini-steps li { display: flex; align-items: center; gap: 12px; }
.legal h2 { margin: 30px 0 10px; font-size: 19px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-dl { margin-top: 12px; }

@media (max-width: 960px) {
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .site-container { padding: 0 16px; }
  .form-card { padding: 20px; }
}
.split .form-card h2 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
.checklist li > span { flex: none; }

/* ===================== Site public — style Revenzo ===================== */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin.woff2") format("woff2"); }

.rv {
  --rv-blue: #2552d0; --rv-blue-deep: #1d43af; --rv-navy: #0b1426; --rv-cream: #eef2f9; --rv-ink: #0f1b2d;
  --rv-display: "Anton", "Impact", "Arial Narrow", sans-serif; --rv-hand: "Caveat", "Comic Sans MS", cursive;
  background: #fff; color: var(--rv-ink);
}
.brand-mark .logo-r, .rv-mark .logo-r { width: 72%; height: 72%; }
.rv-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }
.rv-narrow { max-width: 820px; }
.rv-center { text-align: center; }
.rv .skip, .skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--rv-navy, #0b1426); color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }
.rv-display { font-family: var(--rv-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
.rv-hand { font-family: var(--rv-hand); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--rv-blue); transform: rotate(-2deg); margin-bottom: 6px; }
.rv-hand-light { color: #cfe0ff; }
.rv-h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--rv-ink); }
.rv-h2.rv-left { text-align: left; }
.rv-light { color: #fff; }
.rv-sub { margin-top: 14px; color: #4b5872; font-size: 17px; }

/* Étiquettes manuscrites */
.rv-tag { display: inline-block; padding: 7px 16px 8px; border-radius: 999px; font-family: var(--rv-hand); font-weight: 700; font-size: 19px; line-height: 1.1; background: #fff; color: var(--rv-ink); box-shadow: 0 6px 0 rgba(11, 20, 38, .18); transform: rotate(-4deg); white-space: nowrap; }
.rv-tag-dark { background: var(--rv-navy); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.rv-tag-light { background: #fff; color: var(--rv-blue); }

/* Boutons */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none !important; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background-color .15s; cursor: pointer; font-family: inherit; }
.rv-btn .icon { width: 20px; height: 20px; }
.rv-btn:hover { transform: translateY(-2px); }
.rv-btn-dark { background: var(--rv-navy); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.rv-btn-dark:hover { box-shadow: 0 8px 0 rgba(0, 0, 0, .3); }
.rv-btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.rv-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.rv-btn-white { background: #fff; color: var(--rv-blue-deep); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.rv-btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; border-radius: 11px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.rv-btn-block { width: 100%; }
.rv-link { color: #fff; font-weight: 600; text-decoration: none; padding: 8px 10px; }
.rv-link:hover { text-decoration: underline; }

/* Barre de navigation flottante */
.rv-header { position: absolute; top: 18px; left: 0; right: 0; z-index: 30; padding: 0 16px; }
.rv-bar { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 66px; padding: 0 12px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35); }
.rv-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none !important; }
.rv-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--rv-blue); display: grid; place-items: center; flex: none; }
.rv-nav { display: flex; gap: 6px; margin: 0 auto; }
.rv-nav a { color: #fff; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; text-decoration: none; }
.rv-nav a:hover { background: rgba(255, 255, 255, .14); }
.rv-actions { display: flex; align-items: center; gap: 6px; }

/* Haut de page */
.rv-hero { position: relative; background: var(--rv-blue); color: #fff; padding: 150px 0 150px; overflow: hidden; }
.rv-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 80% 30%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(500px 360px at 0% 100%, rgba(11, 20, 38, .25), transparent 70%); pointer-events: none; }
.rv-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.rv-hero-copy .rv-tag { margin-bottom: 26px; }
.rv-hero-title { font-size: clamp(3.4rem, 8.4vw, 7rem); color: #fff; text-shadow: 0 4px 0 rgba(11, 20, 38, .12); }
.rv-hero-lead { margin-top: 26px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .92); max-width: 540px; }
.rv-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.rv-cta-center { justify-content: center; }
.rv-hero-note { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.rv-hero-page { padding: 140px 0 120px; }
.rv-page-title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; }

/* Cartes en éventail */
.rv-fan { position: relative; height: 470px; }
.rv-pass { position: absolute; width: 250px; border-radius: 22px; background: var(--c); color: #fff; padding: 16px; box-shadow: 0 30px 60px -24px rgba(11, 20, 38, .65); }
.rv-pass-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rv-pass-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.rv-pass-ico .icon { width: 17px; height: 17px; }
.rv-pass-strip { position: relative; margin: 14px -16px 12px; height: 108px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.rv-pattern-1 { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 12px, rgba(255, 255, 255, .02) 12px 24px), linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .2)); }
.rv-pattern-2 { background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25) 0 14px, transparent 15px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .18) 0 22px, transparent 23px), radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .15) 0 10px, transparent 11px), linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .2)); }
.rv-pattern-3 { background: radial-gradient(120px 80px at 85% 20%, rgba(37, 82, 208, .9), transparent 70%), radial-gradient(140px 90px at 10% 100%, rgba(80, 130, 255, .55), transparent 70%), #13213c; }
.rv-pass-points { font-family: var(--rv-display); font-size: 52px; line-height: .9; }
.rv-pass-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rv-pass-meta { display: flex; gap: 14px; font-size: 12px; font-weight: 600; }
.rv-pass-meta small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.rv-pass-qr { margin: 14px auto 0; width: 132px; background: #fff; border-radius: 14px; padding: 10px 10px 8px; text-align: center; color: #4b5872; }
.rv-pass-qr .qr-box { padding: 0; border: 0; box-shadow: none; display: block; }
.rv-pass-qr .qr-box svg { width: 112px; height: 112px; }
.rv-pass-qr small { display: block; margin-top: 4px; font-size: 9.5px; }
.rv-pass-left { left: 0; top: 70px; transform: rotate(-11deg); }
.rv-pass-right { right: 0; top: 40px; transform: rotate(10deg); }
.rv-pass-front { left: 50%; top: 20px; transform: translateX(-50%) rotate(-1.5deg); z-index: 2; width: 268px; }
.rv-sticker { position: absolute; z-index: 3; }
.rv-sticker-a { right: 4%; top: 0; transform: rotate(8deg); }
.rv-sticker-b { left: 6%; bottom: 40px; transform: rotate(-9deg); }

/* Vagues */
.rv-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; line-height: 0; pointer-events: none; }
.rv-wave svg { width: 100%; height: 100%; display: block; }

/* Sections */
.rv-section { position: relative; padding: 96px 0 170px; }
.rv-cream { background: var(--rv-cream); }
.rv-white { background: #fff; }
.rv-blue { background: var(--rv-blue); color: #fff; }
.rv-float { position: absolute; top: -10px; }
.rv-float-l { left: 24px; transform: rotate(-8deg); }
.rv-float-r { right: 24px; top: 30px; transform: rotate(7deg); }
.rv-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; text-align: left; }
.rv-values article { background: #fff; border-radius: 24px; padding: 30px 28px; box-shadow: 0 8px 0 rgba(37, 82, 208, .12); }
.rv-values h3, .rv-steps h3, .rv-features h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 16px 0 8px; }
.rv-values p, .rv-steps p { color: #4b5872; line-height: 1.6; }
.rv-value-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--rv-blue); color: #fff; transform: rotate(-6deg); }
.rv-value-ico .icon { width: 24px; height: 24px; }
.rv-steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rv-steps li { border: 2px solid var(--rv-ink); border-radius: 24px; padding: 28px; background: #fff; box-shadow: 8px 8px 0 var(--rv-blue); }
.rv-step-num { font-family: var(--rv-display); font-size: 64px; line-height: 1; color: var(--rv-blue); }
.rv-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.rv-features article { border-radius: 22px; padding: 26px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.rv-features article > span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--rv-blue); }
.rv-features p { color: rgba(255, 255, 255, .85); line-height: 1.6; }
.rv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.rv-split .rv-h2 { margin-bottom: 30px; }
.rv-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.rv-checks li { display: flex; gap: 14px; }
.rv-checks li > .icon { width: 26px; height: 26px; color: var(--rv-blue); flex: none; margin-top: 1px; }
.rv-checks strong { font-size: 17px; }
.rv-checks p { color: #4b5872; margin-top: 3px; line-height: 1.55; }
.rv-trust { position: relative; background: var(--rv-navy); color: #fff; border-radius: 28px; padding: 44px 36px 36px; transform: rotate(1.5deg); box-shadow: 0 10px 0 var(--rv-blue); }
.rv-trust h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.rv-trust ul { margin: 0; padding-left: 18px; display: grid; gap: 12px; color: #d4ddf0; line-height: 1.55; }
.rv-trust-tag { position: absolute; top: -18px; left: 28px; }
.rv-sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rv-sectors span { padding: 11px 20px; border-radius: 999px; background: var(--rv-cream); font-weight: 650; font-size: 15px; }
.rv-sectors span:nth-child(3n+1) { transform: rotate(-2deg); }
.rv-sectors span:nth-child(3n+2) { transform: rotate(1.5deg); background: var(--rv-blue); color: #fff; }
.rv-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 48px; align-items: stretch; }
.rv-plan { position: relative; display: flex; flex-direction: column; border-radius: 26px; padding: 34px 28px 28px; background: #fff; border: 2px solid var(--rv-ink); box-shadow: 8px 8px 0 var(--rv-ink); }
.rv-plan h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.rv-price { margin: 14px 0 22px; display: flex; align-items: baseline; gap: 8px; }
.rv-price .rv-display { font-size: 52px; }
.rv-price small { color: #4b5872; font-weight: 600; }
.rv-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.rv-plan li { display: flex; gap: 9px; align-items: flex-start; }
.rv-plan li .icon-sm { color: var(--rv-blue); margin-top: 3px; }
.rv-plan-featured { background: var(--rv-blue); color: #fff; border-color: var(--rv-navy); box-shadow: 8px 8px 0 var(--rv-navy); transform: translateY(-10px); }
.rv-plan-featured .rv-price small, .rv-plan-featured li .icon-sm { color: #dbe6ff; }
.rv-plan-tag { position: absolute; top: -20px; right: 22px; }
.rv-faq { display: grid; gap: 14px; margin-top: 44px; }
.rv-faq details { background: #fff; border-radius: 18px; padding: 0 24px; border: 2px solid transparent; }
.rv-faq details[open] { border-color: var(--rv-blue); }
.rv-faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; line-height: 1; color: var(--rv-blue); }
.rv-faq details[open] summary::after { content: "−"; }
.rv-faq p { padding: 0 0 20px; color: #39465e; line-height: 1.65; }
.rv-final { padding-top: 110px; }
.rv-final .rv-float-l { top: -56px; left: 12%; }
.rv-final-title { font-size: clamp(2.8rem, 7.4vw, 6rem); }
.rv-final-lead { margin: 20px auto 0; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.rv-footer { background: var(--rv-navy); color: #c7d1e6; padding: 30px 0 26px; }
.rv-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.rv-footer a:not(.rv-brand) { display: block; color: #c7d1e6; font-size: 14px; padding: 4px 0; }
.rv-footer-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7d8bab; margin-bottom: 8px; }
.rv-footer-text { margin-top: 12px; font-size: 14px; max-width: 320px; line-height: 1.6; }
.rv-footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #7d8bab; }

/* Pages intérieures (démo, inscription, légales) */
.rv .page-section { background: var(--rv-cream); padding: 30px 0 100px; }
.rv .page-title { font-family: var(--rv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; letter-spacing: .005em; }
.rv .eyebrow { font-family: var(--rv-hand); text-transform: none; letter-spacing: 0; font-size: 24px; font-weight: 700; }
.rv .form-card { border-radius: 24px; border: 2px solid var(--rv-ink); box-shadow: 8px 8px 0 var(--rv-blue); }
.rv .legal { background: #fff; border-radius: 24px; padding: 36px 40px; }
.hero-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: #39465e; max-width: 560px; }

@media (max-width: 1000px) {
  .rv-nav { display: none; }
  .rv-bar { justify-content: space-between; }
  .rv-hero { padding: 124px 0 130px; }
  .rv-hero-grid, .rv-split, .split, .split-form { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rv-fan { height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .rv-values, .rv-steps, .rv-features { grid-template-columns: minmax(0, 1fr); }
  .rv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-section { padding: 70px 0 140px; }
  .rv-float { display: none; }
  .rv-plan-featured { transform: none; }
}
@media (max-width: 560px) {
  .rv-container { padding: 0 18px; }
  .rv-header { top: 10px; padding: 0 10px; }
  .rv-bar { height: 58px; padding: 0 8px 0 12px; gap: 8px; }
  .rv-brand { font-size: 17px; }
  .rv-mark { width: 32px; height: 32px; }
  .rv-link { padding: 6px 4px; font-size: 14px; }
  .rv-btn-sm { padding: 0 14px; min-height: 38px; font-size: 14px; }
  .rv-cta .rv-btn { width: 100%; }
  .rv-fan { height: 400px; transform: scale(.86); transform-origin: top center; margin-bottom: -40px; }
  .rv-pass-left { left: -6px; } .rv-pass-right { right: -6px; }
  .rv-tag { font-size: 17px; white-space: normal; }
  .rv-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-wave { height: 54px; }
  .rv .legal { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .rv-btn:hover { transform: none; } }

/* Logo Fidelop : le symbole F + « idelop » en texte */
.fl { display: inline-flex; align-items: baseline; font-family: var(--font); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; color: #0b1426; -webkit-font-smoothing: antialiased; }
.fl-mark { width: auto; height: 0.76em; margin-right: 0.035em; color: #2552d0; flex: none; }
.fl-blanc, .fl-blanc .fl-mark { color: #fff; }
.es-welcome-head .fl { display: inline-flex; }
.es-welcome-head > .fl { margin-bottom: 16px; }
.brand-mark .logo-r { width: 64%; height: 64%; }
.rv-logo { font-size: 31px; }
.auth-logo { font-size: 34px; }
.brand-text-logo { display: inline-flex; align-items: center; gap: 10px; }
.rv-brand .brand-mark { background: #fff; color: var(--rv-blue); }
.rv-footer .rv-logo { font-size: 26px; }
@media (max-width: 560px) { .rv-logo { font-size: 24px; } }

/* Barre de défilement : discrète, visible seulement pendant le défilement */
html { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
html.is-scrolling { scrollbar-color: rgba(37, 82, 208, .75) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
html.is-scrolling ::-webkit-scrollbar-thumb { background-color: rgba(37, 82, 208, .75); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(37, 82, 208, .95); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* Boutons de la barre : pilules concentriques avec l'arrondi de la barre */
.rv-bar { padding: 0 9px 0 22px; }
.rv-btn-sm { min-height: 48px; padding: 0 24px; border-radius: 999px; }
.rv-btn { border-radius: 999px; }
.rv-link { padding: 10px 16px; border-radius: 999px; }
.rv-link:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
@media (max-width: 560px) { .rv-bar { padding: 0 7px 0 14px; } .rv-btn-sm { min-height: 42px; padding: 0 16px; } .rv-link { padding: 8px 10px; } }

/* Alternance des fonds */
.rv-cream .rv-sectors span:not(:nth-child(3n+2)) { background: #fff; }
.rv-white .rv-faq details { background: var(--rv-cream); }
.rv-white .rv-checks p { color: #4b5872; }

/* Simulateur */
.rv-sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; margin-top: 52px; align-items: stretch; }
.rv-sim-inputs { background: #fff; border-radius: 28px; padding: 34px 32px; border: 2px solid var(--rv-ink); box-shadow: 8px 8px 0 var(--rv-blue); }
.rv-sim-inputs h3 { font-size: 20px; font-weight: 800; }
.rv-sim-help { color: #5b6678; font-size: 14px; margin: 4px 0 18px; }
.rv-range { display: block; padding: 14px 0 6px; }
.rv-range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 650; font-size: 15px; }
.rv-range-head output { color: var(--rv-blue); font-size: 26px; line-height: 1; white-space: nowrap; }
.rv-range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin: 16px 0 6px; border-radius: 999px; background: linear-gradient(90deg, var(--rv-blue) 0 var(--p, 50%), #dfe6f3 var(--p, 50%) 100%); outline: none; cursor: pointer; }
.rv-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 7px solid var(--rv-blue); box-shadow: 0 4px 0 var(--rv-navy); transition: transform .12s; }
.rv-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 7px solid var(--rv-blue); box-shadow: 0 4px 0 var(--rv-navy); }
.rv-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.rv-range input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(37, 82, 208, .25); }
.rv-sim-note { margin-top: 16px; font-size: 13px; color: #5b6678; line-height: 1.55; }
.rv-sim-result { position: relative; display: flex; flex-direction: column; background: var(--rv-navy); color: #fff; border-radius: 28px; padding: 34px 32px 32px; box-shadow: 0 30px 60px -30px rgba(11, 20, 38, .7); overflow: hidden; }
.rv-sim-result::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 82, 208, .55), transparent 70%); pointer-events: none; }
.rv-sim-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(37, 82, 208, .25); color: #a9c1ff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rv-sim-label { margin-top: 22px; color: #a8b4cc; font-size: 15px; }
.rv-sim-big { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.rv-sim-big .rv-display { font-size: clamp(3rem, 6vw, 4.6rem); line-height: .95; }
.rv-sim-big small { color: #a8b4cc; font-size: 16px; }
.rv-sim-rows { margin: 18px 0 22px; }
.rv-sim-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.rv-sim-rows dt { color: #c3cde2; font-size: 15px; }
.rv-sim-rows dd { margin: 0; font-weight: 700; font-size: 16px; }
.rv-sim-rows dd.rv-display { font-size: 28px; font-weight: 400; }
.rv-sim-accent { color: #7fa2ff; }
.rv-sim-year { margin-top: auto; border-radius: 20px; padding: 18px 20px; background: var(--rv-blue); text-align: center; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.rv-sim-year span { display: block; font-size: 15px; color: #dbe6ff; }
.rv-sim-year strong { display: block; margin-top: 4px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1; }
@media (max-width: 1000px) { .rv-sim { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rv-sim-inputs, .rv-sim-result { padding: 26px 20px; } }

/* ===================== Espace commerçant — DA Fidelop ===================== */
.es {
  --rv-blue: #2552d0; --rv-blue-deep: #1d43af; --rv-navy: #0b1426; --rv-cream: #eef2f9; --rv-ink: #0f1b2d;
  --rv-display: "Anton", "Impact", "Arial Narrow", sans-serif; --rv-hand: "Caveat", "Comic Sans MS", cursive;
  --es-bg: #eef2f9; --es-card: #fff; --es-soft: #f5f7fc; --es-line: #e3e9f3; --es-radius: 22px;
  --es-shadow: 0 1px 2px rgba(11, 20, 38, .04), 0 14px 34px -22px rgba(11, 20, 38, .28);
  --line: var(--es-line);
  background: radial-gradient(1100px 600px at 100% -10%, #dfe8fb 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #e6ecf8 0%, transparent 60%), var(--es-bg);
  background-attachment: fixed;
  color: var(--rv-ink);
}
.es-shell { min-height: 100vh; }

/* Barre latérale flottante */
.es-side { position: fixed; z-index: 30; top: 16px; bottom: 16px; left: 16px; width: 252px; }
.es-side-in { height: 100%; display: flex; flex-direction: column; padding: 22px 16px 14px; background: var(--es-card); border-radius: 28px; box-shadow: var(--es-shadow); overflow-y: auto; scrollbar-width: none; }
.es-brand { display: block; padding: 0 8px 18px; }
.es-logo { font-size: 29px; }
.es-scan { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--rv-blue); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: 0 12px 24px -12px rgba(37, 82, 208, .9), inset 0 -3px 0 rgba(11, 20, 38, .18); transition: transform .15s, background-color .15s; }
.es-scan:hover { background: var(--rv-blue-deep); transform: translateY(-1px); }
.es-scan .icon { width: 19px; height: 19px; }
.es-nav { display: grid; gap: 2px; margin-top: 18px; }
.es-nav a, .es-sheet a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; color: #3b4658; font-weight: 600; font-size: 14.5px; text-decoration: none !important; transition: background-color .15s, color .15s; }
.es-nav a .icon, .es-sheet a .icon { color: #8a94a6; width: 19px; height: 19px; }
.es-nav a:hover, .es-sheet a:hover { background: var(--es-soft); color: var(--rv-ink); }
.es-nav a[aria-current="page"], .es-sheet a[aria-current="page"] { background: #e8eefc; color: var(--rv-blue-deep); }
.es-nav a[aria-current="page"] .icon, .es-sheet a[aria-current="page"] .icon { color: var(--rv-blue); }
.es-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--rv-blue); }
.es-sec { margin: 18px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9aa4b6; }
.es-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--es-line); display: grid; gap: 2px; }
.es-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: var(--rv-ink); text-decoration: none !important; }
.es-me:hover { background: var(--es-soft); }
.es .es-me .avatar { width: 34px; height: 34px; font-size: 12px; background: var(--rv-navy); color: #fff; }
.es-logout { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: #5b6678; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.es-logout:hover { background: #fdecea; color: var(--danger); }
.es-logout .icon { width: 19px; height: 19px; }

/* Zone principale */
.es-main { margin-left: 284px; padding: 18px 28px 56px 16px; min-width: 0; }
.es-content { max-width: 1120px; }
.es-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.es-org-pill { position: relative; display: inline-flex; align-items: center; gap: 9px; max-width: 360px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--es-card); box-shadow: var(--es-shadow); font-weight: 700; font-size: 14px; }
.es-org-pill select { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; padding: 0 22px 0 0; cursor: pointer; max-width: 260px; }
.es-org-pill select:focus-visible { outline: 2px solid var(--rv-blue); outline-offset: 4px; border-radius: 6px; }
.es-org-pill > .icon { position: absolute; right: 14px; pointer-events: none; color: #8a94a6; }
.es-org-logo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; background: var(--rv-blue); color: #fff; font-size: 12px; font-weight: 800; }
.es-org-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* Bandeau de l'offre */
.es-plan { max-width: 1120px; display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding: 16px 18px 16px 22px; border-radius: var(--es-radius); background: var(--es-card); box-shadow: var(--es-shadow); }
.es-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.es-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a94a6; }
.es-plan-count { font-size: 13px; color: #5b6678; white-space: nowrap; }
.es-plan-count b { font-family: var(--rv-display); font-weight: 400; font-size: 20px; color: var(--rv-ink); }
.es-plan-bar { height: 6px; margin: 8px 0 6px; border-radius: 99px; background: #e6ebf4; overflow: hidden; }
.es-plan-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5b82f0, var(--rv-blue)); }
.es-plan.is-full .es-plan-bar span { background: var(--danger); }
.es-plan-text { font-size: 13px; color: #5b6678; }

/* Titres et composants dans l'espace */
.es .page-head { align-items: flex-end; margin-bottom: 22px; }
.es .page-head h1, .es-title { font-family: var(--rv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.2vw, 3.2rem); line-height: .95; letter-spacing: .005em; color: var(--rv-ink); }
.es .page-head p { margin-top: 8px; color: #5b6678; max-width: 680px; }
.es h2 { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.es .panel { border: 0; border-radius: var(--es-radius); box-shadow: var(--es-shadow); }
.es .panel-head { border-bottom-color: var(--es-line); padding: 18px 22px; }
.es .panel-body { padding: 22px; }
.es .panel-foot { background: var(--es-soft); border-top-color: var(--es-line); border-radius: 0 0 var(--es-radius) var(--es-radius); padding: 14px 22px; }
.es .btn { border-radius: 999px; min-height: 42px; padding: 8px 18px; }
.es .btn-sm { min-height: 34px; padding: 5px 13px; }
.es .btn-lg { min-height: 54px; padding: 12px 26px; border-radius: 999px; }
.es .btn-icon { padding: 0; }
.es .btn-primary { background: var(--rv-blue); box-shadow: 0 10px 22px -12px rgba(37, 82, 208, .9), inset 0 -3px 0 rgba(11, 20, 38, .16); }
.es .btn-primary:hover:not(:disabled) { background: var(--rv-blue-deep); }
.es .btn-dark { background: var(--rv-navy); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.es .btn-dark:hover:not(:disabled) { background: #18233a; }
.es .btn-secondary { border-color: var(--es-line); box-shadow: 0 1px 2px rgba(11, 20, 38, .05); }
.es .btn-secondary:hover:not(:disabled) { border-color: #c9d3e4; background: var(--es-soft); }
.es .input, .es .select, .es .textarea { border-radius: 12px; border-color: #dce3ee; background: var(--es-soft); }
.es .input:focus, .es .select:focus, .es .textarea:focus { background: #fff; }
.es .input-group .input { border-radius: 12px 0 0 12px; }
.es .input-group .addon { border-radius: 0 12px 12px 0; border-color: #dce3ee; background: #e9eef7; }
.es .tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 0; border-radius: 999px; background: #e1e8f4; max-width: 100%; }
.es .tabs a { padding: 8px 18px; border: 0; margin: 0; border-radius: 999px; color: #5b6678; font-size: 14px; }
.es .tabs a:hover { color: var(--rv-ink); }
.es .tabs a[aria-current="page"] { background: #fff; color: var(--rv-ink); box-shadow: 0 2px 8px -3px rgba(11, 20, 38, .25); }
.es .alert { border-radius: 16px; }
.es .callout { border-radius: 16px; }
.es .empty .icon-lg { color: var(--rv-blue); background: #e8eefc; border-radius: 50%; padding: 12px; width: 52px; height: 52px; }
.es .table th { background: transparent; }
.es .stat-icon { border-radius: 10px; }
.es .avatar { background: #e8eefc; }
.es .dialog, .es .sheet { border-radius: 24px; }
.es .dialog-actions { border-radius: 0 0 24px 24px; }
.es-hand { font-family: var(--rv-hand); font-weight: 700; font-size: 22px; color: var(--rv-blue); transform: rotate(-2deg); display: inline-block; }
.es-tag { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 12px 4px; border-radius: 999px; background: var(--rv-blue); color: #fff; font-family: var(--rv-hand); font-weight: 700; font-size: 18px; line-height: 1.15; text-transform: none; letter-spacing: 0; transform: rotate(-4deg) translateY(-6px); box-shadow: 0 4px 0 rgba(11, 20, 38, .18); }
.es-card { background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); }
.es-card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; }
.es-card-title .icon { color: var(--rv-blue); }
.es-step-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a94a6; margin-bottom: 12px; }
.es-narrow { max-width: 760px; }

/* Accueil */
.es-banner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 18px; border-radius: var(--es-radius); background: linear-gradient(100deg, #e3ebfd, #f2f5fc 70%); box-shadow: inset 0 0 0 1px #d3def7; }
.es-banner .icon-chip { width: 44px; height: 44px; border-radius: 14px; background: var(--rv-blue); color: #fff; display: grid; place-items: center; flex: none; transform: rotate(-5deg); }
.es-banner strong { display: block; font-size: 15px; }
.es-banner p { font-size: 13px; color: #4b5872; }
.es-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.es-quick a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 16px; border-radius: 999px; background: var(--es-card); color: var(--rv-ink); font-weight: 700; font-size: 14.5px; text-decoration: none !important; box-shadow: var(--es-shadow); transition: transform .15s; }
.es-quick a:hover { transform: translateY(-1px); }
.es-quick a .icon { color: var(--rv-blue); }
.es-quick a.is-main { background: var(--rv-blue); color: #fff; box-shadow: 0 12px 24px -12px rgba(37, 82, 208, .9), inset 0 -3px 0 rgba(11, 20, 38, .16); }
.es-quick a.is-main .icon { color: #fff; }
.es-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.es-tile { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--es-radius); background: var(--es-card); box-shadow: var(--es-shadow); }
.es-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--tint, #e8eefc); opacity: .7; }
.es-tile-ico { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ico, var(--rv-blue)); color: #fff; }
.es-tile-ico .icon { width: 19px; height: 19px; }
.es-tile-val { position: relative; z-index: 1; margin-top: 14px; font-family: var(--rv-display); font-size: 40px; line-height: 1; }
.es-tile-lab { position: relative; z-index: 1; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5b6678; }
.es-tile-sub { position: relative; z-index: 1; font-size: 12px; color: #8a94a6; }
.es-grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.es-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.es-chart-head .es-tile-val { margin: 0; font-size: 34px; }
.es details.es-more { margin-top: 18px; border-radius: var(--es-radius); background: var(--es-card); box-shadow: var(--es-shadow); }
.es details.es-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; font-weight: 700; }
.es details.es-more > summary::-webkit-details-marker { display: none; }
.es details.es-more[open] > summary .icon { transform: rotate(180deg); }

/* Vignettes de choix (type d'établissement, système) */
.es-tiles-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.es-pick { position: relative; display: block; cursor: pointer; }
.es-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.es-pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 100%; min-height: 84px; padding: 12px 6px; border-radius: 16px; background: var(--es-soft); border: 1.5px solid transparent; font-size: 12.5px; font-weight: 650; color: #3b4658; text-align: center; transition: border-color .15s, background-color .15s, transform .15s; }
.es-pick span .icon { width: 24px; height: 24px; color: var(--rv-blue); }
.es-pick:hover span { background: #eaf0fb; }
.es-pick input:checked + span { background: #fff; border-color: var(--rv-blue); color: var(--rv-ink); box-shadow: 0 8px 18px -12px rgba(37, 82, 208, .8); transform: translateY(-1px); }
.es-pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 82, 208, .3); }
.es-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.es-system { position: relative; display: block; cursor: pointer; }
.es-system input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.es-system > span { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; border-radius: 18px; background: var(--es-soft); border: 1.5px solid transparent; transition: border-color .15s, background-color .15s; }
.es-system .es-sys-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #e1e8f4; color: var(--rv-blue); }
.es-system strong { display: block; font-size: 15px; }
.es-system small { display: block; margin-top: 3px; color: #5b6678; font-size: 13px; line-height: 1.45; }
.es-system input:checked + span { background: #fff; border-color: var(--rv-blue); box-shadow: 0 10px 22px -14px rgba(37, 82, 208, .9); }
.es-system input:checked + span .es-sys-ico { background: var(--rv-blue); color: #fff; }
.es-system input:checked + span::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--rv-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.es-system input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 82, 208, .3); }
.es-system input:disabled + span { opacity: .55; cursor: not-allowed; }
.es-example { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #e8eefc; color: var(--rv-blue-deep); font-size: 13px; }
.es-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.es-swatches .swatch { width: 34px; height: 34px; border: 3px solid #fff; box-shadow: 0 0 0 1px #d5dded; }
.es-swatches .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--rv-ink); transform: scale(1.06); }
.es-hex { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--es-soft); border: 1px solid #dce3ee; }
.es-hex input[type="color"] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.es-hex input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.es-hex input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.es-hex code { font-size: 13px; color: #3b4658; }
.es-logo-drop { display: flex; align-items: center; gap: 14px; }
.es-logo-drop .lc-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--es-soft); border: 1.5px dashed #c5d0e3; color: #8a94a6; }
.es-file { position: relative; overflow: hidden; }
.es-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Carte de fidélité (aperçu et carte client) */
.lc-stamps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 7px; max-width: 290px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--strip-ink, #fff) 60%, transparent); position: relative; }
.stamp.is-on { background: var(--strip-ink, #fff); border-color: var(--strip-ink, #fff); }
.stamp.is-on::after { content: ""; position: absolute; inset: 24%; background: var(--card, var(--rv-blue)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lc-stamps .stamp.is-on::after { background: var(--stamp-icon, var(--card)); }
.lc-stamps.shape-star .stamp.is-on::after { inset: 20%; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.75 5.95 6.5.75-4.8 4.45 1.3 6.45L12 16.95 6.25 20.2l1.3-6.45-4.8-4.45 6.5-.75z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.75 5.95 6.5.75-4.8 4.45 1.3 6.45L12 16.95 6.25 20.2l1.3-6.45-4.8-4.45 6.5-.75z'/%3E%3C/svg%3E"); }
.lc-stamps.shape-heart .stamp.is-on::after { inset: 20%; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8.5-5.2-8.5-11.3A4.7 4.7 0 0 1 12 6.6a4.7 4.7 0 0 1 8.5 3.1C20.5 15.8 12 21 12 21z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8.5-5.2-8.5-11.3A4.7 4.7 0 0 1 12 6.6a4.7 4.7 0 0 1 8.5 3.1C20.5 15.8 12 21 12 21z'/%3E%3C/svg%3E"); }
.lc-stamps.shape-logo .stamp.is-on::after { inset: 20%; background: var(--stamp-logo) center / contain no-repeat; -webkit-mask: none; mask: none; }
.lc-stamp-count { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lc-stamp-count b { font-size: 18px; }
.lc-stamps { max-width: 216px; }
.es-stamp-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.es-stamp-grid .stamp { border-color: #c5d0e3; }
.es-stamp-grid .stamp.is-on { background: var(--rv-blue); border-color: var(--rv-blue); }
.es-stamp-grid .stamp.is-on::after { background: #fff; inset: 26%; }

/* Programme : récompenses */
.es-rewards { display: grid; gap: 10px; }
.es-reward { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--es-soft); }
.es-reward-cost { min-width: 64px; text-align: center; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(11, 20, 38, .06); }
.es-reward-cost b { display: block; font-family: var(--rv-display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--rv-blue); }
.es-reward-cost small { font-size: 11px; color: #5b6678; font-weight: 600; }
.es-client-view { padding: 20px; border-radius: 20px; background: var(--rv-navy); color: #fff; }
.es-client-view .es-kicker { color: #8fa3c8; }
.es-client-view h3 { font-family: var(--rv-display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 6px 0 12px; }
.es-client-view ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-client-view li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 14px; }
.es-client-view li span:last-child { color: #a9c1ff; font-weight: 700; white-space: nowrap; }

/* QR code */
.es-grid-qr { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
@media (max-width: 1180px) { .es-grid-qr { grid-template-columns: minmax(0, 1fr); } }
.es-qr-card { text-align: center; padding: 26px 22px 22px; }
.es-qr-card .qr-box { border: 4px solid var(--rv-navy); border-radius: 22px; padding: 16px; box-shadow: 8px 8px 0 var(--rv-blue); }
.es-qr-name { margin-top: 18px; font-weight: 800; font-size: 17px; }
.es-qr-url { font-size: 12.5px; color: #8a94a6; overflow-wrap: anywhere; }
.es-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.es-steps li { counter-increment: s; display: flex; gap: 12px; font-size: 14px; color: #3b4658; }
.es-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rv-navy); color: #fff; font-weight: 800; font-size: 12px; }

/* Assistant de bienvenue */
.es-welcome { min-height: 100vh; padding: 34px 16px 60px; }
.es-welcome-in { max-width: 980px; margin: 0 auto; }
.es-welcome-head { text-align: center; }
.es-welcome-head .es-logo { margin: 0 auto 16px; font-size: 32px; }
.es-welcome-title { font-family: var(--rv-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 7vw, 4.8rem); line-height: .9; }
.es-welcome-head p { margin-top: 10px; color: #5b6678; }
.es-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px auto 8px; max-width: 420px; }
.es-progress span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: #8a94a6; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 2px #d5dded; }
.es-progress i { flex: 1; height: 3px; margin: 0 8px; border-radius: 3px; background: #d5dded; }
.es-progress span.is-on { background: var(--rv-blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 82, 208, .9); }
.es-progress i.is-on { background: var(--rv-blue); }
.es-progress-labels { display: flex; justify-content: space-between; max-width: 470px; margin: 0 auto 22px; font-size: 12.5px; font-weight: 700; color: #8a94a6; }
.es-progress-labels .is-on { color: var(--rv-ink); }
.es-wizard { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.es-wizard-card { padding: 28px; }
.es-wizard-card h2.es-title { font-size: 2.1rem; }
.es-wizard-card .lead { color: #5b6678; margin: 6px 0 22px; font-size: 14px; }
.es-wizard-side { position: sticky; top: 24px; }
.es-wizard-side .loyalty-card { max-width: none; }
.es-wizard-nav { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; margin-top: 26px; }
.es-wizard-nav .btn-lg { width: 100%; }
.es-wizard [data-step][hidden] { display: none !important; }
.es-later { margin-top: 14px; font-size: 13px; color: #5b6678; display: flex; gap: 8px; align-items: flex-start; }

/* Mobile */
.es-mtop { display: none; }
.es-bottom { display: none; }
@media (max-width: 1180px) {
  .es-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-grid-main { grid-template-columns: minmax(0, 1fr); }
  .es-wizard { grid-template-columns: minmax(0, 1fr); }
  .es-wizard-side { position: static; order: -1; max-width: 400px; width: 100%; margin: 0 auto; }
}
@media (max-width: 960px) {
  .es-side { display: none; }
  .es-main { margin-left: 0; padding: 12px 14px 104px; }
  .es-top { display: none; }
  .es-mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 12px; margin: 0; background: rgba(238, 242, 249, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .es-mtop-org { display: inline-flex; align-items: center; gap: 9px; min-width: 0; height: 42px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: var(--es-shadow); color: var(--rv-ink); font-weight: 750; font-size: 14px; text-decoration: none !important; max-width: 70vw; }
  .es-icon-btn { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--es-shadow); display: grid; place-items: center; color: var(--rv-ink); }
  .es-bottom { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; height: 66px; padding: 0 6px; border-radius: 24px; background: #fff; box-shadow: 0 16px 40px -14px rgba(11, 20, 38, .45); }
  .es-bottom a, .es-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; font-size: 11px; font-weight: 650; color: #8a94a6; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .es-bottom a[aria-current="page"] { color: var(--rv-blue); }
  .es-bottom .es-fab { position: relative; top: -16px; height: auto; color: var(--rv-ink); }
  .es-bottom .es-fab span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--rv-blue); color: #fff; border: 4px solid #fff; box-shadow: 0 10px 22px -8px rgba(37, 82, 208, .8); }
  .es-bottom .es-fab .icon { width: 24px; height: 24px; }
  .es-plan { flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; }
  .es-plan .btn { width: 100%; }
  .es .page-head h1, .es-title { font-size: 2.3rem; }
  .es-quick { grid-template-columns: minmax(0, 1fr); }
  .es-tiles-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es .tabs { display: flex; overflow-x: auto; }
}
@media (max-width: 560px) {
  .es-tiles { gap: 10px; }
  .es-tile { padding: 14px; }
  .es-tile-val { font-size: 32px; }
  .es-systems { grid-template-columns: minmax(0, 1fr); }
  .es-wizard-card { padding: 20px 16px; }
  .es-wizard-nav { grid-template-columns: 110px minmax(0, 1fr); }
  .es-stamp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 240px; }
}
.es-sheet { display: grid; gap: 2px; }
.es-sheet-switch { padding: 10px 12px; }

/* Apparence : bandeau central */
.es-strip-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.es-strip-modes .es-system > span { flex-direction: column; gap: 10px; }
.es-strip-sw { display: grid; place-items: center; width: 100%; height: 46px; border-radius: 12px; background: #e1e8f4; color: #8a94a6; box-shadow: inset 0 0 0 1px rgba(11, 20, 38, .08); }
.es-strip-opt { margin-top: 16px; }
@media (max-width: 720px) { .es-strip-modes { grid-template-columns: minmax(0, 1fr); } .es-strip-modes .es-system > span { flex-direction: row; } .es-strip-sw { width: 64px; flex: none; } }

/* Personnalisation : couleur du texte, dessin des tampons */
.es-strip-modes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.es-text-sw { font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.es-strip-opt .label { display: block; margin-bottom: 6px; }
.es-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.es-shape { position: relative; display: block; cursor: pointer; }
.es-shape input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.es-shape > span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 16px; background: var(--es-soft); border: 1.5px solid transparent; font-size: 13px; font-weight: 650; text-align: center; transition: border-color .15s, background-color .15s; }
.es-shape .lc-stamps { display: block; width: 40px; max-width: none; }
.es-shape .stamp { display: block; width: 40px; }
.es-shape input:checked + span { background: #fff; border-color: var(--rv-blue); box-shadow: 0 10px 22px -14px rgba(37, 82, 208, .9); }
.es-shape input:focus-visible + span { outline: 2px solid var(--rv-blue); outline-offset: 2px; }
.es-shape.is-disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 720px) { .es-strip-modes-2 { grid-template-columns: minmax(0, 1fr); } .es-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-info { display: grid; gap: 12px; margin: 0; }
.shop-info > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.shop-info dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.shop-info dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.shop-info dd a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.es-info-grid { gap: 14px 16px; margin-bottom: 14px; } .es-info-grid > .field { margin: 0; }
/* Modèles et choix en pastilles */
.es-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.es-preset { display: flex; flex-direction: column; gap: 7px; padding: 8px 8px 10px; border-radius: 16px; border: 1.5px solid transparent; background: var(--es-soft); font: inherit; font-size: 13px; font-weight: 650; color: var(--ink); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s; }
.es-preset:hover, .es-preset:focus-visible { background: #fff; border-color: var(--rv-blue); outline: none; }
.es-preset.is-on { background: #fff; border-color: var(--rv-blue); box-shadow: 0 10px 22px -14px rgba(37, 82, 208, .9); }
.es-preset-sw { position: relative; display: grid; place-items: center; height: 54px; border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(11, 20, 38, .08); }
.es-preset-sw::after, .es-chip-sw::after { content: ""; position: absolute; inset: 0; --pat: color-mix(in srgb, var(--strip-ink) 22%, transparent); }
.es-preset-sw b { position: relative; z-index: 1; font-size: 17px; }
.es-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.es-chip { position: relative; cursor: pointer; }
.es-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.es-chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px; background: var(--es-soft); border: 1.5px solid transparent; font-size: 13px; font-weight: 650; transition: border-color .15s, background-color .15s; }
.es-chip > span:not(:has(.es-chip-sw, .es-chip-corner)) { padding-left: 13px; }
.es-chip input:checked + span { background: #fff; border-color: var(--rv-blue); box-shadow: 0 8px 18px -14px rgba(37, 82, 208, .9); }
.es-chip input:focus-visible + span { outline: 2px solid var(--rv-blue); outline-offset: 2px; }
.es-chip-sw { position: relative; width: 30px; height: 20px; border-radius: 6px; background: var(--rv-blue); overflow: hidden; --strip-ink: #fff; }
.es-chip-corner { width: 22px; height: 16px; border: 2px solid var(--rv-blue); border-left-width: 0; border-bottom-width: 0; }
.es-chip-corner-square { border-top-right-radius: 3px; }
.es-chip-corner-round { border-top-right-radius: 8px; }
.es-chip-corner-extra { border-top-right-radius: 14px; }

.email-models { display: grid; gap: 8px; }
.email-model { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.email-model form { margin: 0; }
