/* =========================================================
   Satisfaction client — design system
   --accent vient de config.php (brand_color)
   ========================================================= */
:root {
  --accent: #B76E79;                 /* rose Djoya */
  --accent-deep: color-mix(in oklab, var(--accent) 82%, #3a1820);
  --bg: #FDFBF7;                     /* crème Djoya */
  --surface: rgba(255,255,255,.78);
  --surface-solid: #FFFFFF;
  --surface-2: #F6EFEB;
  --ink: #1F1A1C;
  --ink-2: #5E5357;
  --ink-3: #9B8F92;
  --line: rgba(64,36,42,.11);
  --line-strong: rgba(64,36,42,.24);
  --on-ink: #FDFBF7;
  --danger: #C2413A;
  --mid: #D9A441;
  --ok: #5E9B78;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 60%, transparent);
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(64,36,42,.04), 0 10px 28px -14px rgba(120,60,70,.22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss03";
  overflow-x: hidden;
}
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
kbd {
  font: 500 .72rem var(--mono); color: var(--ink-3);
  padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface);
}
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Ambiance : aurore + grain ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .30; mix-blend-mode: multiply;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: var(--accent); top: -22vmax; right: -12vmax; }
.aurora span:nth-child(2) { background: color-mix(in oklab, var(--accent) 45%, #F2C6B4); bottom: -26vmax; left: -16vmax; animation-duration: 32s; animation-delay: -8s; opacity: .22; }
.aurora span:nth-child(3) { background: color-mix(in oklab, var(--accent) 30%, #E9CF9A); top: 30%; left: 55%; width: 30vmax; height: 30vmax; animation-duration: 38s; opacity: .14; }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
  background: linear-gradient(var(--bg) 30%, transparent);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 1rem; }
.logo-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.logo-img { height: 46px; width: auto; }
.logo-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
@media (max-width: 640px) { .logo-img { height: 34px; } }
.counter { margin: 0; font: 500 .8rem var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: opacity .3s; }
.counter .sep { margin: 0 4px; opacity: .5; }
.on-intro .counter { opacity: 0; }

.progress { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 3px; background: var(--line); }
.progress span {
  position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  background: var(--accent); transition: transform .7s var(--ease);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Écrans ---------- */
.step { min-height: 100svh; padding: 116px 22px 128px; display: flex; align-items: center; justify-content: center; }
.step-inner { width: 100%; max-width: 680px; }
.js .step { display: none; }
.js .step.active { display: flex; }
.js .nojs-only, .js .nojs-submit { display: none; }

.js .step.active .step-inner > * { animation: in-down .7s var(--ease) both; }
.js form[data-dir="up"] .step.active .step-inner > * { animation-name: in-up; }
.js .step.active .step-inner > *:nth-child(2) { animation-delay: .04s; }
.js .step.active .step-inner > *:nth-child(3) { animation-delay: .08s; }
.js .step.active .step-inner > *:nth-child(4) { animation-delay: .12s; }
.js .step.active .step-inner > *:nth-child(5) { animation-delay: .16s; }
.js .step.active .step-inner > *:nth-child(n+6) { animation-delay: .2s; }
.js .step.leaving .step-inner { animation: out .22s ease-in forwards; }
@keyframes in-down { from { opacity: 0; transform: translateY(28px); filter: blur(4px); } }
@keyframes in-up { from { opacity: 0; transform: translateY(-28px); filter: blur(4px); } }
@keyframes out { to { opacity: 0; transform: translateY(-14px); filter: blur(3px); } }

/* ---------- Intro ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }
h1 {
  margin: 0 0 24px; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5rem); text-wrap: balance;
}
h1 em { color: var(--accent); font-weight: 400; }
.lede { margin: 0 0 34px; max-width: 34em; font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--ink-2); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.banner { margin: -10px 0 28px; padding: 12px 16px; border-radius: 12px; font-size: .93rem; background: color-mix(in oklab, var(--danger) 10%, transparent); border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent); }

/* ---------- Questions ---------- */
.qnum { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 .8rem var(--mono); color: var(--accent); }
.qnum .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-line); }
.qnum .tag { font: 500 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.qtitle {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.18;
  font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.5rem); text-wrap: balance;
}
.qtitle em { color: var(--accent); }
.req { color: var(--accent); margin-left: 4px; font-weight: 400; }
.help { margin: 0; color: var(--ink-2); font-size: 1rem; }
.control { margin-top: 34px; }
.cond { display: inline-block; margin: 0 0 6px; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.error { margin: 14px 0 0; min-height: 1px; color: var(--danger); font-size: .92rem; font-weight: 500; }
.error:empty { margin: 0; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } }

/* Champs texte "sur une ligne" */
.line {
  width: 100%; display: block; resize: none; font: 400 clamp(1.25rem, 1rem + 1.1vw, 1.7rem)/1.4 var(--sans); letter-spacing: -.02em;
  color: var(--ink); caret-color: var(--accent);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 14px; transition: border-color .25s;
  field-sizing: content; min-height: 1.4em; max-height: 50vh;
}
textarea.line { min-height: 3.2em; }
.line::placeholder { color: var(--ink-3); opacity: .6; }
.line:focus { outline: none; border-bottom-color: var(--accent); }
.has-error .line { border-bottom-color: var(--danger); }
.hint { font-size: .8rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.hint.small { margin: 12px 0 0; }
@media (hover: none) { .kbd-only, .star .key { display: none !important; } }

/* Écran à plusieurs champs (coordonnées) */
.fields { display: grid; gap: 22px; max-width: 560px; }
.fld label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 2px; }
.fld .line { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); padding: 8px 0 12px; }
.fld.has-error .line { border-bottom-color: var(--danger); }
.ferr { margin: 6px 0 0; color: var(--danger); font-size: .86rem; font-weight: 500; }
.ferr:empty { display: none; }

/* Étoiles */
.stars { display: inline-flex; gap: clamp(4px, 1.6vw, 12px); }
.star { position: relative; cursor: pointer; display: grid; justify-items: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
.star input { position: absolute; opacity: 0; pointer-events: none; }
.star svg {
  width: clamp(48px, 13vw, 68px); height: auto; fill: transparent;
  stroke: var(--line-strong); stroke-width: 1.1; stroke-linejoin: round;
  transition: fill .2s, stroke .2s, transform .35s var(--ease);
}
.star .key { font: 500 .72rem var(--mono); color: var(--ink-3); opacity: 0; transition: opacity .2s; }
@media (hover: hover) { .step.active .star .key { opacity: 1; } }
.star:hover svg { transform: translateY(-3px) scale(1.08) rotate(-5deg); }
.star input:focus-visible + svg { stroke: var(--accent); stroke-width: 2; }
/* Remplissage : sélection, puis survol prioritaire (sélecteur :has) */
.stars:has(.star:nth-child(1) input:checked) .star:nth-child(-n+1) svg,
.stars:has(.star:nth-child(2) input:checked) .star:nth-child(-n+2) svg,
.stars:has(.star:nth-child(3) input:checked) .star:nth-child(-n+3) svg,
.stars:has(.star:nth-child(4) input:checked) .star:nth-child(-n+4) svg,
.stars:has(.star:nth-child(5) input:checked) .star:nth-child(-n+5) svg { fill: var(--accent); stroke: var(--accent); }
@media (hover: hover) {
  .stars:hover .star svg { fill: transparent !important; stroke: var(--line-strong) !important; }
  .stars:has(.star:nth-child(1):hover) .star:nth-child(-n+1) svg,
  .stars:has(.star:nth-child(2):hover) .star:nth-child(-n+2) svg,
  .stars:has(.star:nth-child(3):hover) .star:nth-child(-n+3) svg,
  .stars:has(.star:nth-child(4):hover) .star:nth-child(-n+4) svg,
  .stars:has(.star:nth-child(5):hover) .star:nth-child(-n+5) svg { fill: color-mix(in oklab, var(--accent) 80%, transparent) !important; stroke: var(--accent) !important; }
}
.star input:checked + svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.28) rotate(-8deg); } }
.star-label { margin: 14px 0 0; min-height: 1.5em; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.star-label[data-level="low"] { color: var(--danger); }
.star-label[data-level="mid"] { color: var(--mid); }
.star-label[data-level="high"] { color: var(--ok); }

/* Échelle 0 à 10 */
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.tick { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.15; border-radius: 12px;
  font: 500 1.02rem var(--mono); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease);
}
.tick:hover span { border-color: var(--line-strong); transform: translateY(-2px); }
.tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tick input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px) scale(1.04); }
.scale-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: .84rem; color: var(--ink-3); }
@media (max-width: 560px) {
  .scale { grid-template-columns: repeat(6, 1fr); }
  .tick span { aspect-ratio: 1.15 / 1; }
}

/* Choix */
.options { display: grid; gap: 10px; max-width: 560px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 13px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s, background .2s, transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: var(--line-strong); transform: translateX(3px); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .key {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  font: 500 .74rem var(--mono); color: var(--ink-2); border: 1px solid var(--line-strong);
  transition: all .2s;
}
.option .txt { flex: 1; font-size: 1.04rem; font-weight: 500; line-height: 1.35; }
.option .txt small { display: block; margin-top: 2px; font-size: .86rem; font-weight: 400; color: var(--ink-3); }
.tick-icon { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease); }
.option:has(input:checked) { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent) 8%, var(--surface-solid)); }
.option:has(input:checked) .key { background: var(--accent); border-color: var(--accent); color: #fff; }
.option:has(input:checked) .tick-icon { stroke-dashoffset: 0; }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: 600 1.02rem var(--sans); letter-spacing: 0; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, opacity .2s;
}
.btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -12px color-mix(in oklab, var(--accent) 90%, transparent);
}
.btn.primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 32px -14px color-mix(in oklab, var(--accent) 90%, transparent); }
.btn.primary:active { transform: translateY(0) scale(.98); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink-2); padding: 13px 14px; }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn.outline { background: var(--surface); border-color: var(--line); color: var(--ink); padding: 9px 15px; font-size: .9rem; }
.btn.outline:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.loading .arrow { font-size: 0; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sending { cursor: progress; }

.pager {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: opacity .3s, transform .3s var(--ease);
}
.pager button { width: 42px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink-2); }
.pager button + button { border-left: 1px solid var(--line); }
.pager button:hover { background: var(--surface-2); color: var(--ink); }
.pager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step:has(.options) .control { margin-top: 26px; }
@media (max-width: 640px) {
  .pager { display: none; }
  .step { padding: 92px 20px 64px; align-items: flex-start; }
  .option { padding: 12px 14px; }
  .option .txt { font-size: 1rem; line-height: 1.35; }
}
.on-intro .pager { opacity: 0; transform: translateY(10px); pointer-events: none; }

.foot { position: relative; padding: 0 22px 28px; text-align: center; font-size: .78rem; color: var(--ink-3); }
.foot p { max-width: 560px; margin: 0 auto; }
/* Mention légale en bas de l'accueil : seulement si l'écran est assez haut pour ne rien chevaucher
   (la même information est rappelée sur l'écran des coordonnées) */
.js .survey-page .foot { display: none; }
@media (min-width: 641px) and (min-height: 1000px) {
  .js .survey-page .foot { display: block; position: fixed; left: 0; right: 80px; bottom: max(20px, env(safe-area-inset-bottom)); padding: 0 22px; text-align: left; transition: opacity .3s; }
  .js .survey-page:not(.on-intro) .foot { opacity: 0; pointer-events: none; }
}

/* ---------- Sans JavaScript : formulaire classique ---------- */
.no-js .step { min-height: 0; padding: 56px 22px; border-bottom: 1px solid var(--line); }
.no-js .step.intro { padding-top: 120px; }
.no-js .nojs-hide, .no-js [data-action], .no-js .progress, .no-js .counter, .no-js .pager { display: none !important; }
.nojs-submit { display: flex; justify-content: center; padding: 48px 22px 80px; }

/* ---------- Page merci ---------- */
.thanks { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 100px 22px 60px; }
.thanks .step-inner > * { animation: in-down .8s var(--ease) both; }
.thanks .step-inner > *:nth-child(2) { animation-delay: .15s; }
.thanks .step-inner > *:nth-child(3) { animation-delay: .25s; }
.thanks .step-inner > *:nth-child(4) { animation-delay: .35s; }
.thanks .step-inner > *:nth-child(5) { animation-delay: .45s; }
.thanks h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem); }
.badge-check { width: 76px; height: 76px; margin-bottom: 30px; }
.badge-check circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s var(--ease) .1s forwards; }
.badge-check path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-3); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0;
  background: var(--accent); animation: fall 2.8s cubic-bezier(.2,.6,.4,1) forwards;
}
.confetti i:nth-child(3n) { background: var(--ink); width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: color-mix(in oklab, var(--accent) 50%, #FFD54A); }
@keyframes fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 540deg)); } }

/* Carte cadeau */
.gift {
  position: relative; margin: 6px 0 30px; padding: 26px 24px 22px; max-width: 460px; text-align: center;
  background: linear-gradient(160deg, #fff, color-mix(in oklab, var(--accent) 7%, #fff));
  border: 1.5px dashed var(--accent-line); border-radius: 22px; box-shadow: var(--shadow);
}
.gift::before, .gift::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1.5px dashed var(--accent-line); transform: translateY(-50%);
}
.gift::before { left: -12px; clip-path: inset(0 0 0 50%); }
.gift::after { right: -12px; clip-path: inset(0 50% 0 0); }
.gift-kicker { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gift-title { margin: 6px 0 2px; font: 600 2rem/1.1 var(--serif); }
.gift-desc { margin: 0 0 16px; color: var(--ink-2); font-size: .95rem; }
.gift .barcode { width: 100%; max-width: 300px; height: 70px; margin: 0 auto; }
.gift-code { margin: 10px 0 0; font: 600 1.05rem var(--mono); letter-spacing: .14em; }
.gift-howto { margin: 12px 0 0; font-size: .85rem; color: var(--ink-3); }
.kiosk-timer { font-size: .82rem; color: var(--ink-3); }

/* =========================================================
   Tableau de bord
   ========================================================= */
.admin { background: var(--bg); }
.admin .aurora span { opacity: .12; }
.dash { max-width: 1160px; margin: 0 auto; padding: 88px 20px 64px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0; letter-spacing: -.045em; }
.dash-nav { display: flex; gap: 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); backdrop-filter: blur(12px); }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--ink); color: var(--on-ink); }

.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.kpi-label { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.kpi-value { display: block; margin-top: 6px; font-size: 2.3rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: .45em; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.kpi-sub { display: block; margin-top: 8px; font-size: .78rem; color: var(--ink-3); }
.kpi.warn .kpi-value { color: var(--danger); }
.kpi.good .kpi-value { color: var(--ok); }

.panels { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 12px; }
.card h2 { margin: 0 0 16px; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.card h2 small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 46%) 1fr 36px; align-items: center; gap: 12px; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: inherit; font-size: .88rem; }
a.bar-row:hover, a.bar-row.on { background: var(--surface-2); }
.bar-k { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.bar i.lo { background: var(--danger); } .bar i.mi { background: var(--mid); } .bar i.hi { background: var(--ok); } .bar i.ac { background: var(--accent); }
.bar-v { text-align: right; font: 500 .84rem var(--mono); font-variant-numeric: tabular-nums; }
.nps-split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: 6px 0 14px; }
.nps-split i:nth-child(1) { background: var(--danger); } .nps-split i:nth-child(2) { background: var(--line-strong); } .nps-split i:nth-child(3) { background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; background: var(--c); }

.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.list-head h2 { margin: 0; flex: 1 1 auto; }
.search { position: relative; }
.search input {
  width: 260px; max-width: 100%; padding: 9px 14px 9px 36px; border-radius: 10px; font: inherit; font-size: .9rem;
  color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 560px) { .search, .search input { width: 100%; } }

.responses { list-style: none; margin: 0; padding: 0; }
.resp { border-top: 1px solid var(--line); }
.resp summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 4px; }
.resp summary::-webkit-details-marker { display: none; }
.resp summary:hover { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.score { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font: 600 1rem var(--mono); }
.score.lo { background: color-mix(in oklab, var(--danger) 14%, transparent); color: var(--danger); }
.score.mi { background: color-mix(in oklab, var(--mid) 16%, transparent); color: color-mix(in oklab, var(--mid) 70%, var(--ink)); }
.score.hi { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.resp-main { min-width: 0; }
.resp-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.resp-who strong { font-weight: 600; }
.resp-who span { color: var(--ink-3); font-size: .86rem; }
.resp-excerpt { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resp-meta { text-align: right; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.resp-meta .pill { margin-top: 4px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 500; background: var(--surface-2); color: var(--ink-2); }
.pill.err { background: color-mix(in oklab, var(--danger) 14%, transparent); color: var(--danger); }
.resp-body { padding: 4px 4px 20px 60px; }
.qa { display: grid; grid-template-columns: minmax(160px, 38%) 1fr; gap: 4px 20px; margin: 0; }
.qa dt { color: var(--ink-3); font-size: .85rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.qa dd { margin: 0; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; white-space: pre-wrap; }
@media (max-width: 640px) { .resp-body { padding-left: 4px; } .qa { grid-template-columns: 1fr; } .qa dt { border: 0; padding-bottom: 0; } .resp-meta { display: none; } .resp summary { grid-template-columns: auto 1fr; } }
.resp-actions { display: flex; gap: 8px; margin-top: 14px; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-3); }
.notice { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; border: 1px solid color-mix(in oklab, var(--mid) 40%, transparent); background: color-mix(in oklab, var(--mid) 10%, transparent); }
code { font: .85em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 380px; padding: 30px; }
.login h1 { font-size: 1.8rem; letter-spacing: -.04em; margin-bottom: 20px; }
.login label { display: block; font-size: .86rem; font-weight: 500; margin-bottom: 8px; color: var(--ink-2); }
.login input[type=password] { width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); margin-bottom: 16px; }
.login input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.login .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora span { animation: none; }
}

/* Tableau de bord : compléments */
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-head h1 { font-family: var(--serif); letter-spacing: -.02em; }
.muted { margin: 4px 0 0; font-size: .86rem; color: var(--ink-3); }
.pill.used { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.codebox { margin-bottom: 12px; border-color: var(--accent-line); background: linear-gradient(160deg, #fff, color-mix(in oklab, var(--accent) 6%, #fff)); }
.codebox h2 { margin: 0; }
.codebox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.codeform { display: flex; gap: 8px; flex-wrap: wrap; }
.codeform input {
  width: 220px; max-width: 100%; padding: 11px 16px; border-radius: 999px; font: 600 .95rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: #fff; border: 1px solid var(--line-strong);
}
.codeform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.codeform .btn { padding: 10px 20px; }
.code-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; font-size: .93rem; }
.code-result.ok { background: color-mix(in oklab, var(--ok) 12%, #fff); border: 1px solid color-mix(in oklab, var(--ok) 35%, transparent); }
.code-result.bad { background: color-mix(in oklab, var(--danger) 9%, #fff); border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent); }
.code-result .btn { padding: 10px 18px; font-size: .92rem; }
.qa dd a { color: var(--accent); font-weight: 600; }
