/* ==========================================================================
   Hémé Meal Prep — page « Commander » et page « Mon compte »
   D'après la maquette « Hémé Commande » (Claude Design). Les couleurs et les
   polices viennent de css/style.css.
   ========================================================================== */

:root {
  /* Panneau sombre (thème « nuit » de la maquette) */
  --pn-bg: #0E0B22;
  --pn-card: #1A163E;
  --pn-card2: #110E2B;
  --pn-line: rgba(255, 255, 255, .07);
  --pn-glow: rgba(72, 52, 255, .5);
  --pn-hi: #A9A0FF;
  --pn-dot: #6F5CFF;
  --pn-off: rgba(255, 255, 255, .09);
  --pn-free: #FFD43B;
  --pn-ring: rgba(169, 160, 255, .45);
  --field: #E0DCD3;
  --soft: #F6F4EF;
  --err-bg: #FBEDE6;
}

/* ---------- Animations ---------- */
@keyframes co-rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes co-drop { from { opacity: 0; transform: translateY(-18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes co-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes co-pop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes co-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes co-ring { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes co-spin { from { transform: scale(1.12) rotate(0deg); } to { transform: scale(1.12) rotate(360deg); } }
@keyframes co-load { to { transform: rotate(360deg); } }
@keyframes co-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes co-toast { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes co-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes co-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 12, 166, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34, 12, 166, 0); } }
@keyframes co-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes co-float-up { from { opacity: 1; transform: translate(-50%, 0) scale(.9); } to { opacity: 0; transform: translate(-50%, -38px) scale(1.1); } }
@keyframes co-burst { from { opacity: .9; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.35); } }
@keyframes co-typing { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes co-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes co-print { from { transform: translateY(-104%); } to { transform: translateY(0); } }
@keyframes co-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes co-pin { 0% { transform: translate(-50%, -140%) scale(.6); opacity: 0; } 60% { transform: translate(-50%, -92%) scale(1.05); opacity: 1; } 100% { transform: translate(-50%, -100%) scale(1); opacity: 1; } }
@keyframes co-stamp { 0% { opacity: 0; transform: rotate(-18deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes co-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 12, 166, 0); } 50% { box-shadow: 0 0 0 6px rgba(34, 12, 166, .14); } }

/* ---------- Mise en page ---------- */
.co-body { min-height: 100vh; background: var(--page); }
.co { min-height: 100vh; padding: 12px; }
.co__shell { position: relative; min-height: calc(100vh - 24px); background: #fff; border-radius: 32px; display: flex; align-items: flex-start; }
.co__main { flex: 1 1 0; min-width: 0; min-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.co__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 3.4vw, 44px) 0; }
.co__logo { display: flex; }
.co__logo img { display: block; height: 36px; width: auto; }
.co__chips { display: flex; align-items: center; gap: 8px; min-width: 0; }
.co__chip {
  height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--field); background: #fff;
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap; transition: border-color .2s; min-width: 0;
}
.co__chip .ic { font-size: 17px; }
.co__chip span { overflow: hidden; text-overflow: ellipsis; }
.co__close { flex: none; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--field); display: grid; place-items: center; color: var(--ink); }
.co__close .ic { font-size: 18px; }
@media (hover: hover) { .co__chip:hover, .co__close:hover { border-color: var(--ink); color: var(--ink); } }
.co__help-short { display: none; }
@media (max-width: 639px) {
  .co__help-long { display: none; }
  .co__help-short { display: inline; }
  .co__chip--account span { max-width: 9em; }
}
@media (max-width: 420px) { .co__chip--account span { display: none; } .co__chip { padding: 0 13px; } }

.co__wrap { flex: 1; width: 100%; max-width: 616px; margin: 0 auto; padding: clamp(32px, 6vh, 60px) 24px 0; display: flex; flex-direction: column; }
@media (max-width: 420px) { .co__wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Progression ---------- */
.co__progress-label { font-size: 14px; color: var(--muted); }
.co__segs { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.co__seg {
  width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; cursor: default;
}
.co__seg:disabled { cursor: default; }
.co__seg.is-reachable { cursor: pointer; }
.co__seg-bar { position: relative; display: block; width: 100%; height: 5px; border-radius: 9px; background: var(--card-line); overflow: hidden; }
.co__seg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 0%); border-radius: 9px; background: var(--blue); transition: width .7s var(--ease); overflow: hidden; }
.co__seg.is-current .co__seg-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: co-shine 2.6s .8s ease-in-out infinite;
}
.co__seg-label { font-size: 13px; font-weight: 500; color: var(--placeholder); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co__seg.is-done .co__seg-label { color: var(--blue); }
.co__seg.is-current .co__seg-label { color: var(--ink); font-weight: 700; }
@media (hover: hover) { .co__seg.is-reachable:hover .co__seg-label { color: var(--blue); } }
@media (max-width: 519px) { .co__seg-label { display: none; } }

/* ---------- Résumé replié (téléphone et tablette) ---------- */
.co-sum { margin-top: 28px; border-radius: 22px; background: var(--pn-bg); color: #fff; overflow: hidden; }
.co-sum__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left; font: inherit; }
.co-sum__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.co-sum__icon .ic { font-size: 21px; }
.co-sum.is-bump .co-sum__icon { animation: co-bump .5s var(--ease); }
.co-sum__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-sum__txt b { font-size: 15.5px; font-weight: 600; }
.co-sum__txt span { font-size: 13.5px; color: rgba(255, 255, 255, .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sum__total { font-family: var(--f-title); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-sum__caret { font-size: 16px; color: rgba(255, 255, 255, .66); transition: transform .3s var(--ease); }
.co-sum__head[aria-expanded="true"] .co-sum__caret { transform: rotate(180deg); }
.co-sum__body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; animation: co-fade .3s both; }
.co-sum__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.co-sum__line em { font-style: normal; font-family: var(--f-recipe); font-size: 15px; }
.co-sum__line small { color: rgba(255, 255, 255, .62); font-size: inherit; }
.co-sum__sep { height: 1px; background: rgba(255, 255, 255, .12); }
.co-sum__muted { color: rgba(255, 255, 255, .72); }
@media (min-width: 1080px) { .co-sum { display: none; } }

/* ---------- Étapes ---------- */
.co__form { flex: 1; display: flex; flex-direction: column; margin-top: clamp(40px, 7vh, 72px); }
.co__steps { flex: 1; }
.co-step:focus, .co-title:focus { outline: none; }
.co-step.is-in > * { animation: co-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.co-step.is-in.is-back > * { animation-name: co-drop; }
.co-eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.co-eyebrow::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 9px; background: var(--blue); animation: co-ping 2.4s ease-out infinite; }
.co-title { margin: 18px 0 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(42px, 4.6vw, 68px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.co-lead { margin: 18px 0 0; font-family: var(--f-sub); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; }
.co-text { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--text2); }
.co-block { margin-top: 36px; }
.co-block-title { margin: 0; font-family: var(--f-sub); font-size: 21px; font-weight: 400; }
.co-note { margin: 12px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.co-note .ic { flex: none; font-size: 16px; margin-top: 2px; }
.co-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .co-link:hover { color: var(--blue); } }

/* Étape 1 : composer en un clic */
.co-packs { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.co-packs__label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text2); }
.co-packs__label .ic { font-size: 18px; color: var(--blue); }
.co-packs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.co-pack {
  height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--field); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.co-pack[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.co-pack:active { transform: scale(.96); }
@media (hover: hover) { .co-pack:hover { border-color: var(--blue); } }

/* Étape 1 : plats */
.co-dishes { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.co-dish {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 10px 14px 14px 10px;
  border-radius: 22px; background: #fff; border: 1px solid var(--card-line); transition: border-color .25s, box-shadow .25s;
}
@media (hover: hover) { .co-dish:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); } }
.co-dish__media { position: relative; width: 76px; aspect-ratio: 1080 / 1350; border-radius: 14px; overflow: hidden; background: var(--canvas); }
.co-dish__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.co-dish__count {
  position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff; pointer-events: none; animation: co-pop .35s both;
}
.co-dish__body { min-width: 0; padding-top: 4px; }
.co-dish__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.co-dish__name { margin: 0; font-family: var(--f-recipe); font-weight: 400; font-size: 19px; line-height: 1.15; }
.co-badge { height: 22px; padding: 0 9px; border-radius: 99px; background: var(--acc); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; }
.co-dish__desc { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-dish__facts { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.co-dish__facts b { font-weight: 600; color: var(--text3); }
.co-dish__fmts { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.co-fmt {
  position: relative; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px 0 14px;
  border-radius: 99px; border: 1.5px solid var(--field); background: #fff; color: var(--ink); transition: background .25s, border-color .25s, color .25s;
}
.co-fmt.has-qty { background: var(--blue); border-color: var(--blue); color: #fff; }
.co-fmt__label { font-size: 15px; white-space: nowrap; }
.co-fmt__label b { font-weight: 700; }
.co-fmt__ctrl { display: flex; align-items: center; gap: 2px; }
.co-fmt__btn {
  width: 36px; height: 36px; padding: 0; border-radius: 99px; border: 0; background: var(--blue); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: transform .15s;
}
.co-fmt__btn .ic { font-size: 15px; }
.co-fmt__btn:active { transform: scale(.88); }
.co-fmt.has-qty .co-fmt__btn--plus { background: #fff; color: var(--blue); }
.co-fmt__btn--minus { background: rgba(255, 255, 255, .16); }
.co-fmt__qty { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-fmt__plus1 { position: absolute; right: 18px; top: -4px; font-weight: 700; font-size: 14px; color: var(--blue); pointer-events: none; animation: co-float-up .7s var(--ease) forwards; }

.co-nudge {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 14px 14px 14px 20px; border-radius: 20px; background: var(--canvas); animation: co-rise .45s var(--ease) both;
}
.co-nudge > span { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; }
.co-nudge .ic-truck { flex: none; font-size: 22px; color: var(--blue); }
.co-nudge button {
  height: 42px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s;
}
@media (hover: hover) { .co-nudge button:hover { background: var(--ink); } }

/* ---------- Champs de formulaire (commande et compte) ---------- */
.co-fields { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.co-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.co-row--cp { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.co-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.co-field__label { font-size: 15px; font-weight: 600; }
.co-field__label small { font-weight: 400; font-size: inherit; color: var(--muted); }
.co-input {
  width: 100%; min-width: 0; height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--field); background: #fff;
  outline: none; font: inherit; font-size: 17px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.co-input::placeholder { color: var(--placeholder); }
.co-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34, 12, 166, .12); }
.co-input[aria-invalid="true"] { border-color: var(--err); }
.co-input--num { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.co-input--readonly { background: var(--soft); color: var(--text2); }
.co-pass { position: relative; display: block; }
.co-pass .co-input { padding-right: 56px; }
.co-pass__toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.co-pass__toggle .ic { font-size: 20px; }
@media (hover: hover) { .co-pass__toggle:hover { color: var(--ink); background: var(--canvas); } }
.co-err { font-size: 14px; color: var(--err); }
.co-help { font-size: 14px; color: var(--muted); }
.co-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.co-meter span { height: 4px; border-radius: 9px; background: var(--card-line); transition: background .3s; }
.co-meter[data-level="1"] span:nth-child(-n+1) { background: var(--err); }
.co-meter[data-level="2"] span:nth-child(-n+2) { background: #D98A1C; }
.co-meter[data-level="3"] span:nth-child(-n+3) { background: #6F9E3B; }
.co-meter[data-level="4"] span { background: var(--ok); }
.co-alert { display: flex; align-items: flex-start; gap: 8px; padding: 14px 18px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; animation: co-rise .4s var(--ease) both; }
.co-alert .ic { flex: none; font-size: 20px; margin-top: 1px; }
.co-alert--ok { background: var(--ok-bg); color: var(--ok); }
.co-alert--err { background: var(--err-bg); color: var(--err); }
.co-alert--info { background: var(--canvas); color: var(--text3); }
.co-alert a { color: inherit; font-weight: 600; }
.co-alert.is-shake { animation: co-shake .45s ease both; }

/* Choix « Créer un compte / J'ai déjà un compte » */
.co-switch { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--canvas); }
.co-switch button {
  height: 48px; border: 0; border-radius: 14px; background: transparent; font: inherit; font-weight: 600; font-size: 15.5px; color: var(--text2);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .25s, color .25s, box-shadow .25s;
}
.co-switch button .ic { font-size: 18px; }
.co-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 18px -10px rgba(18, 16, 25, .35); }

/* Client connecté */
.co-member { margin-top: 36px; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; border: 1px solid var(--card-line); background: #fff; }
.co-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 99px; background: var(--blue); color: #fff; display: grid; place-items: center;
  font-family: var(--f-sub); font-size: 20px; animation: co-pop .5s var(--ease) both;
}
.co-member__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-member__txt b { font-size: 17px; }
.co-member__txt span { font-size: 14.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Étape 3 : jours et créneaux */
.co-days { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.co-day {
  min-width: 0; padding: 12px 4px 14px; border-radius: 18px; border: 1.5px solid var(--field); background: #fff; color: var(--ink);
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background .25s, border-color .25s, color .25s, transform .15s;
}
.co-day:active { transform: scale(.96); }
.co-day__dow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; }
.co-day__num { font-family: var(--f-title); font-size: 32px; line-height: 1.1; }
.co-day__mon { font-size: 12.5px; color: var(--muted); }
.co-day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.co-day[aria-pressed="true"] .co-day__mon { color: rgba(255, 255, 255, .75); }
@media (hover: hover) { .co-day:hover, .co-slot:hover { border-color: var(--blue); } }
@media (max-width: 420px) { .co-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-slots { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.co-slot {
  height: 52px; border-radius: 16px; border: 1.5px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 15.5px;
  cursor: pointer; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .15s;
}
.co-slot:active { transform: scale(.96); }
.co-slot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.co-slots.is-invalid .co-slot, .co-days.is-invalid .co-day { border-color: var(--err); }

/* Étape 4 : commune */
.co-city { height: 56px; padding: 0 18px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; color: var(--placeholder); }
.co-city.is-ok { color: var(--ink); }
.co-city span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-city .ic { flex: none; font-size: 20px; color: var(--ok); }
select.co-input { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z' fill='%23121019'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; padding-right: 44px; }
.co-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.co-zone > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Étape 5 : message WhatsApp */
.co-chat { margin-top: 32px; border-radius: 24px; padding: 18px; background: #EFE7DD; background-image: radial-gradient(rgba(18, 16, 25, .045) 1px, transparent 1px); background-size: 14px 14px; }
.co-chat__head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.co-chat__head .co-chat__logo { width: 34px; height: 34px; border-radius: 99px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.co-chat__head .co-chat__logo img { width: 24px; height: auto; }
.co-chat__head b { color: var(--ink); font-size: 15px; }
.co-chat__bubble {
  position: relative; margin: 14px 0 0 auto; max-width: 92%; padding: 12px 14px 22px; border-radius: 16px 4px 16px 16px; background: #D9FDD3;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .12); font-size: 15px; line-height: 1.5; color: #111B21; white-space: pre-wrap; overflow-wrap: anywhere;
}
.co-chat__line { display: block; min-height: 1.5em; }
.co-chat.is-typing .co-chat__line { opacity: 0; animation: co-line .3s var(--ease) forwards; animation-delay: calc(500ms + var(--i, 0) * 70ms); }
.co-chat__meta { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: #667781; }
.co-chat__ticks { color: #8696A0; transition: color .4s; letter-spacing: -.25em; padding-right: .25em; }
.co-chat.is-sent .co-chat__ticks { color: #53BDEB; }
.co-chat__typing { margin: 14px 0 0 auto; width: 64px; height: 36px; border-radius: 16px 4px 16px 16px; background: #D9FDD3; display: flex; align-items: center; justify-content: center; gap: 4px; }
.co-chat__typing i { width: 7px; height: 7px; border-radius: 99px; background: #6A8F69; animation: co-typing 1s ease-in-out infinite; }
.co-chat__typing i:nth-child(2) { animation-delay: .15s; }
.co-chat__typing i:nth-child(3) { animation-delay: .3s; }
.co-edit { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.co-edit button {
  height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--field); background: #fff; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s;
}
.co-edit button .ic { font-size: 14px; }
@media (hover: hover) { .co-edit button:hover { border-color: var(--ink); } }
.co-totals { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.co-totals__row { display: flex; justify-content: space-between; gap: 12px; color: var(--text2); }
.co-totals__row--promo { color: var(--ok); font-weight: 600; }
.co-totals__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; }
.co-totals__total b:first-child { font-family: var(--f-sub); font-weight: 400; font-size: 22px; }
.co-totals__total b:last-child { font-family: var(--f-title); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.co-promo { margin-top: 20px; }
.co-promo__form { display: flex; gap: 8px; }
.co-promo__form .co-input { height: 52px; font-size: 16px; letter-spacing: .06em; }
.co-promo__form button {
  flex: none; height: 52px; padding: 0 20px; border-radius: 16px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 15.5px;
  cursor: pointer; transition: background .2s;
}
@media (hover: hover) { .co-promo__form button:hover { background: var(--blue); } }
.co-promo__ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 15.5px; }
.co-promo__ok span { display: inline-flex; align-items: center; gap: 8px; }
.co-promo__ok button, .co-promo__quick { padding: 0; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14.5px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.co-promo__quick { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--blue); }

/* Merci */
.co-done-mark { position: relative; width: 96px; height: 96px; }
.co-done-mark span { position: absolute; inset: 0; border-radius: 99px; background: var(--blue); animation: co-ring 1.6s .35s ease-out 2 both; }
.co-done-mark b { position: relative; width: 96px; height: 96px; border-radius: 99px; background: var(--blue); color: #fff; display: grid; place-items: center; animation: co-pop .65s var(--ease) both; }
.co-done-mark .ic { font-size: 44px; }
.co-timeline { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.co-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.co-timeline__icon { display: flex; flex-direction: column; align-items: center; }
.co-timeline__icon span { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--canvas); color: var(--blue); display: grid; place-items: center; }
.co-timeline__icon span .ic { font-size: 20px; }
.co-timeline li:first-child .co-timeline__icon span { background: var(--blue); color: #fff; }
.co-timeline__icon::after { content: ''; flex: 1; width: 1.5px; min-height: 16px; margin: 6px 0; background: var(--field); }
.co-timeline li:last-child .co-timeline__icon::after { display: none; }
.co-timeline__txt { padding: 10px 0 22px; }
.co-timeline__txt b { display: block; font-family: var(--f-sub); font-weight: 400; font-size: 19px; line-height: 1.2; }
.co-timeline__txt span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.45; color: var(--text2); }
.co-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.co-btn {
  height: 58px; padding: 0 26px; border-radius: 99px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 600; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.co-btn .ic { font-size: 18px; }
.co-btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.co-btn--danger { background: #fff; color: var(--err); border-color: var(--err); }
@media (hover: hover) {
  .co-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
  .co-btn--danger:hover { background: var(--err); border-color: var(--err); }
}

/* ---------- Barre d'action (en bas de l'étape) ---------- */
.co__bar { position: sticky; bottom: 0; z-index: 5; margin-top: 44px; padding: 20px 0 18px; background: linear-gradient(to top, #fff 76%, rgba(255, 255, 255, 0)); }
.co__hint { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text2); }
.co__hint.is-err { color: var(--err); }
.co__hint .ic { flex: none; font-size: 17px; }
.co__bar-row { display: flex; align-items: center; gap: 10px; }
.co__back {
  flex: none; width: 58px; height: 58px; border-radius: 99px; border: 1.5px solid var(--field); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s;
}
.co__back .ic { font-size: 19px; }
@media (hover: hover) { .co__back:hover { border-color: var(--ink); } }
.co__cta {
  position: relative; overflow: hidden; flex: 1; min-width: 0; height: 58px; padding: 0 24px; border-radius: 99px; border: 0; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.co__cta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co__cta .ic { flex: none; font-size: 18px; }
.co__cta::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); pointer-events: none;
}
@media (hover: hover) {
  .co__cta:not(.is-off):hover { background: var(--ink); }
  .co__cta:not(.is-off):hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
}
.co__cta:not(.is-off):active { transform: scale(.98); }
.co__cta.is-off { background: #E6E2DA; color: var(--text2); cursor: not-allowed; }
.co__cta.is-ready { animation: co-glow 1.4s ease-in-out 2; }
.co__cta.is-wa { background: #1E6A3B; }
@media (hover: hover) { .co__cta.is-wa:not(.is-off):hover { background: var(--ink); } }
.co__cta .co-spin { animation: co-load .8s linear infinite; }
.co__cta.is-sending .ic-send { animation: co-fly .7s var(--ease) forwards; }
@keyframes co-fly { 0% { transform: none; opacity: 1; } 100% { transform: translate(60px, -40px) rotate(-20deg) scale(.6); opacity: 0; } }

.co__legal { padding: 24px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.co__legal span { display: inline-flex; align-items: center; gap: 6px; }
.co__legal a { color: var(--text3); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Panneau sombre (ordinateur) ---------- */
.co-panel { flex: 0 0 min(46%, 820px); position: sticky; top: 12px; height: calc(100vh - 24px); min-height: 600px; padding: 12px; }
.co-panel__grid {
  height: 100%; border-radius: 24px; background: var(--pn-bg); padding: 12px; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px;
}
@media (max-width: 1079px) { .co-panel { display: none; } }
.pn-card {
  position: relative; overflow: hidden; container-type: size; border-radius: 20px;
  background: linear-gradient(180deg, var(--pn-card), var(--pn-card2)); border: 1px solid var(--pn-line); transition: border-color .5s;
}
.pn-card.is-flash { border-color: var(--pn-dot); }
.pn-glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--pn-glow), transparent); pointer-events: none; transition: opacity .6s; }
.pn-over { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-tag {
  align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .26); display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .88); white-space: nowrap;
}
.pn-tag .ic { font-size: 13px; color: var(--acc); }

/* Nombre de plats */
.pn-count { padding: clamp(18px, 2.6vh, 28px); display: flex; flex-direction: column; }
.pn-count__num { display: flex; align-items: flex-start; gap: 6px; color: var(--pn-hi); }
.pn-count__num b { font-family: var(--f-title); font-weight: 400; font-size: clamp(44px, min(40cqh, 34cqw), 112px); line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.pn-count__num .ic { margin-top: .3em; font-size: clamp(18px, 9cqh, 26px); transform: rotate(-45deg); }
.pn-count.is-bump .pn-count__num b { animation: co-bump .5s var(--ease); }
.pn-count__foot { margin-top: auto; }
.pn-count__foot b { display: block; font-size: 17px; font-weight: 600; }
.pn-count__foot span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .64); }

/* Jauge de livraison offerte */
.pn-gauge__dial { position: absolute; left: 50%; top: 47%; width: min(80cqh, 84cqw); height: min(80cqh, 84cqw); transform: translate(-50%, -50%); }
.pn-dot { position: absolute; border-radius: 99px; transform: translate(-50%, -50%); background: var(--pn-off); transition: background .45s ease, box-shadow .45s ease; }
.pn-dot.is-on { background: var(--pn-dot); box-shadow: 0 0 14px var(--pn-dot); }
.pn-gauge.is-free .pn-dot.is-on { background: var(--pn-free); box-shadow: 0 0 14px var(--pn-free); }
.pn-gauge__center { position: absolute; inset: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.pn-gauge__icon { width: 34px; height: 34px; border-radius: 99px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--pn-hi); }
.pn-gauge.is-free .pn-gauge__icon { color: var(--pn-free); }
.pn-gauge__icon .ic { font-size: 17px; }
.pn-gauge__label { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .66); white-space: nowrap; }
.pn-gauge__big { font-family: var(--f-title); font-size: clamp(22px, min(13cqh, 12cqw), 38px); line-height: 1.05; white-space: nowrap; }
.pn-gauge.is-free .pn-gauge__big { color: var(--pn-free); }
.pn-gauge__cap { position: absolute; left: 12px; right: 12px; bottom: clamp(12px, 7cqh, 20px); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-gauge__burst { position: absolute; left: 50%; top: 47%; width: min(80cqh, 84cqw); height: min(80cqh, 84cqw); border-radius: 50%; border: 2px solid var(--pn-free); opacity: 0; pointer-events: none; }
.pn-gauge.is-unlocked .pn-gauge__burst { animation: co-burst 1.1s ease-out 2; }

/* Carte large : une scène par étape */
.pn-wide { grid-column: 1 / -1; }
.pn-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.pn-scene.is-on { opacity: 1; visibility: visible; }
.pn-scene__copy {
  position: relative; z-index: 1; height: 100%; max-width: max(58cqw, 260px); padding: clamp(16px, 9cqh, 34px) clamp(18px, 4cqw, 34px);
  display: flex; flex-direction: column; justify-content: safe center; overflow: hidden;
}
.pn-scene.is-on .pn-scene__copy > * { animation: co-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.pn-scene__title { margin-top: clamp(6px, 5cqh, 20px); font-family: var(--f-recipe); font-size: clamp(19px, min(11cqh, 4.4cqw), 34px); line-height: 1.1; }
.pn-scene__quote { margin-top: clamp(10px, 6cqh, 18px); font-family: var(--f-sub); font-size: clamp(16px, 7.6cqh, 22px); line-height: 1.25; text-wrap: pretty; }
.pn-scene__text { margin: clamp(4px, 3cqh, 8px) 0 0; font-size: clamp(13px, 6.4cqh, 14.5px); line-height: 1.4; color: rgba(255, 255, 255, .66); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-scene__head { margin-top: clamp(10px, 7cqh, 20px); font-family: var(--f-sub); font-size: clamp(18px, 10cqh, 28px); line-height: 1.22; text-wrap: pretty; }
.pn-add { margin-top: clamp(8px, 6cqh, 22px); display: flex; gap: 6px; }
.pn-add button {
  height: clamp(34px, 16cqh, 40px); padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff;
  font: inherit; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .15s;
}
.pn-add button:first-child { border: 0; background: var(--acc); color: var(--ink); font-weight: 700; }
.pn-add button:active { transform: scale(.95); }
@media (hover: hover) { .pn-add button:hover { background: rgba(255, 255, 255, .1); } .pn-add button:first-child:hover { background: #fff; } }
.pn-photo { position: absolute; top: 50%; right: -7cqw; width: min(90cqh, 46cqw); height: min(90cqh, 46cqw); transform: translateY(-50%); border-radius: 50%; padding: 7px; border: 1.5px solid var(--pn-ring); }
.pn-photo div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #C2531C; }
.pn-photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: co-spin 120s linear infinite; }
.pn-who { margin-top: clamp(12px, 7cqh, 18px); display: flex; align-items: center; gap: 10px; }
.pn-who > span:first-child { flex: none; width: 36px; height: 36px; border-radius: 99px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-family: var(--f-sub); font-size: 13px; }
.pn-who b { font-weight: 600; font-size: 14px; }
.pn-who small { display: block; font-size: 14px; color: rgba(255, 255, 255, .62); }

/* Scène « compte » : carte de membre Hémé */
.pn-member { position: absolute; top: 50%; right: 6cqw; width: min(118cqh, 44cqw); aspect-ratio: 1.586; transform: translateY(-50%); perspective: 1200px; }
.pn-member__card {
  position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; padding: 7% 7.5%;
  background: linear-gradient(135deg, #3B27E6 0%, #220CA6 48%, #12065F 100%); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 5deg)); transition: transform .5s var(--ease);
}
.pn-member__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at var(--gx, 0%) var(--gy, 0%), rgba(255, 255, 255, .26), transparent 55%); pointer-events: none; transition: background .3s; }
.pn-member__top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.pn-member__top img { display: block; height: clamp(12px, 7cqh, 18px); width: auto; }
.pn-member__top span { font-size: clamp(9px, 4.6cqh, 11px); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.pn-member__avatar { position: relative; width: clamp(34px, 20cqh, 52px); height: clamp(34px, 20cqh, 52px); border-radius: 99px; background: var(--acc); color: var(--ink); display: grid; place-items: center; font-family: var(--f-sub); font-size: clamp(13px, 8cqh, 20px); }
.pn-member__name { position: relative; font-size: clamp(13px, 7.4cqh, 19px); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-member__city { position: relative; margin-top: 2px; font-size: clamp(10px, 5cqh, 13px); letter-spacing: .08em; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-member__stamp {
  position: absolute; right: 8%; bottom: 12%; padding: 4px 10px; border: 2px solid var(--acc); border-radius: 8px; color: var(--acc);
  font-family: var(--f-title); font-size: clamp(11px, 6cqh, 16px); letter-spacing: .08em; text-transform: uppercase; opacity: 0;
}
.pn-member.is-welcome .pn-member__stamp { animation: co-stamp .6s var(--ease) .2s forwards; }

/* Scène « livraison » : ciel du soir */
.pn-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #3D2A86 0%, #A04D7A 58%, #F09A5B 100%); transition: opacity .8s; }
.pn-sky--night { background: linear-gradient(180deg, #070618 0%, #15124A 62%, #2B1F6E 100%); opacity: var(--night, 0); }
.pn-sky__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pn-sky__arc { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.5; stroke-dasharray: 3 7; }
.pn-sky__tick { fill: rgba(255, 255, 255, .7); font-size: 11px; font-family: var(--f-body); }
.pn-sky__sun { fill: var(--acc); filter: drop-shadow(0 0 12px rgba(255, 212, 59, .8)); }
.pn-sky__moon { fill: #F4F2FF; filter: drop-shadow(0 0 10px rgba(169, 160, 255, .8)); }
.pn-star { fill: #fff; opacity: 0; transition: opacity .8s; }
.pn-star.is-on { animation: co-twinkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pn-sky__ground { fill: rgba(14, 11, 34, .55); }

/* Scène « adresse » : trajet */
.pn-route { position: absolute; inset: 0; }
.pn-route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pn-route__grid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.pn-route__path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.pn-route__done { fill: none; stroke: var(--pn-hi); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(169, 160, 255, .6)); }
.pn-route.is-out .pn-route__done { stroke: #FF8A5B; }
.pn-route__start { fill: var(--pn-dot); }
.pn-route__end { fill: none; stroke: #fff; stroke-width: 2.5; }
.pn-route__label { fill: rgba(255, 255, 255, .78); font-size: 12px; font-family: var(--f-body); }
.pn-route__rider { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 99px; background: var(--acc); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(255, 212, 59, .8); }
.pn-route__rider .ic { font-size: 18px; }
.pn-route__pin { position: absolute; width: 26px; height: 34px; transform: translate(-50%, -100%); opacity: 0; }
.pn-route.is-arrived .pn-route__pin { animation: co-pin .6s var(--ease) forwards; }
.pn-route__km { position: absolute; right: clamp(16px, 4cqw, 30px); top: clamp(14px, 8cqh, 26px); text-align: right; }
.pn-route__km b { display: block; font-family: var(--f-title); font-weight: 400; font-size: clamp(28px, 22cqh, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.pn-route__km span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* Scène « validation » : ticket */
.pn-ticket { position: absolute; top: 0; right: 7cqw; width: min(48cqw, 300px); height: 100%; overflow: hidden; }
.pn-ticket__paper {
  position: relative; margin-top: 10%; padding: 16px 18px 26px; border-radius: 6px 6px 0 0; background: #FBF8F1; color: var(--ink); font-size: 13px; line-height: 1.45;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); transform: translateY(-104%);
}
.pn-scene.is-on .pn-ticket__paper { animation: co-print 1.1s var(--ease) .15s forwards; }
.pn-ticket__paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: linear-gradient(-45deg, transparent 6px, #FBF8F1 0) 0 0 / 12px 12px repeat-x, linear-gradient(45deg, transparent 6px, #FBF8F1 0) 0 0 / 12px 12px repeat-x; }
.pn-ticket__paper img { display: block; height: 18px; width: auto; margin: 0 auto 8px; }
.pn-ticket__row { display: flex; justify-content: space-between; gap: 8px; }
.pn-ticket__row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-ticket__sep { margin: 8px 0; border-top: 1px dashed #C9C4BA; }
.pn-ticket__total { font-weight: 700; font-size: 14px; }

/* Compte à rebours et total */
.pn-small { padding: clamp(18px, 2.6vh, 26px); display: flex; flex-direction: column; }
.pn-small__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pn-small__head i { flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--acc); animation: co-blink 1.6s ease-in-out infinite; }
.pn-cd { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.pn-cd span { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.pn-cd b { font-family: var(--f-title); font-weight: 400; font-size: clamp(26px, min(24cqh, 16cqw), 54px); line-height: 1; font-variant-numeric: tabular-nums; }
.pn-cd small { font-size: 14px; color: rgba(255, 255, 255, .6); }
.pn-small__sub { margin-top: 10px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .64); }
.pn-total__promo { height: 24px; padding: 0 9px; border-radius: 99px; background: var(--acc); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.pn-total__value { position: relative; margin-top: auto; font-family: var(--f-title); font-size: clamp(28px, min(24cqh, 17cqw), 56px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-total.is-bump .pn-total__value { animation: co-bump .5s var(--ease); }
.pn-total__per { position: relative; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--pn-hi); }
.pn-total__break { position: relative; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .64); }

/* Plat qui vole jusqu'au compteur */
.co-flyer { position: fixed; z-index: 80; border-radius: 14px; overflow: hidden; pointer-events: none; box-shadow: 0 18px 40px -16px rgba(18, 16, 25, .6); }
.co-flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.co-confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* Notification */
.co-toast {
  position: fixed; left: 50%; top: 24px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px;
  border-radius: 99px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(18, 16, 25, .5);
  animation: co-toast .35s var(--ease) both; max-width: calc(100% - 24px);
}
.co-toast span:first-child { flex: none; width: 28px; height: 28px; border-radius: 99px; background: var(--acc); color: var(--ink); display: grid; place-items: center; }

/* ---------- Page « Mon compte » ---------- */
.account { max-width: 1120px; }
.account__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .account__grid { grid-template-columns: minmax(0, 1fr); } }
.account-card { padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--card-line); }
.account-card--wide { grid-column: 1 / -1; }
.account-card h2 { margin: 0; font-family: var(--f-sub); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.account-card > p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--text2); }
.account-card .co-fields { margin-top: 24px; }
.account-card .co-switch { margin-top: 24px; }
.account-card .co-actions { margin-top: 24px; }
.account-card .co-btn { height: 54px; font-size: 16px; }
.account-hello { display: flex; align-items: center; gap: 18px; }
.account-hello .co-avatar { width: 64px; height: 64px; font-size: 22px; }
.account-addr { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: 16px; line-height: 1.5; }
.account-danger { border-color: #F1D4C6; }
.account-msg { margin-top: 18px; }
.account-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.account-loading .ic { animation: co-load .8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .co-step.is-in > *, .pn-scene.is-on .pn-scene__copy > * { animation: none; }
  .pn-photo img { animation: none; }
}

/* ---------- Compléments ---------- */
.co .is-shake { animation: co-shake .45s ease both; }
.co-step .account-loading { margin-top: 36px; }
.co-auth-err { margin-top: 18px; }
.co-slot-err { margin-top: 10px; }
.co-promo__err { margin-top: 8px; }
.co-done-over { margin-top: 28px; }
.co-done-links { flex-wrap: wrap; gap: 6px 10px; }
.co-step--done .co-lead { max-width: 30em; }
.co-step .co-member + .co-note { margin-top: 14px; }
.co__chip--account span { max-width: 12em; }
/* Récapitulatif toujours visible en haut sur téléphone */
@media (max-width: 1079px) { .co-sum { position: sticky; top: 10px; z-index: 6; box-shadow: 0 14px 30px -18px rgba(18, 16, 25, .6); } }
/* Scènes du panneau */
.pn-scene--member .pn-scene__copy { max-width: min(48cqw, 340px); }
.pn-scene--sky .pn-scene__copy { justify-content: flex-end; }
.pn-scene--route .pn-scene__copy { justify-content: flex-start; }
.pn-scene--ticket .pn-scene__copy { max-width: min(44cqw, 330px); }
.pn-route { background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 28px 28px; }
/* Page « Mon compte » */
.account-section { padding-top: clamp(32px, 4vw, 56px); }
.account .account-loading, .account > .co-alert { margin-bottom: 20px; }
.account-card .co-actions .co-btn { flex: 0 1 auto; }
.account-flow h2 + p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--text2); }
.account-flow > .account-msg, .account-flow > .co-field { margin-top: 6px; }
.account-meta { margin-top: 6px; font-size: 15.5px; color: var(--muted); overflow-wrap: anywhere; }
.account-hello h2:focus { outline: none; }
.account-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.account-welcome .co-actions { margin-top: 0; }
.account-perks ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.account-perks li { display: flex; gap: 14px; font-size: 15.5px; line-height: 1.45; color: var(--text2); }
.account-perks li > span:first-child { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--canvas); color: var(--blue); display: grid; place-items: center; }
.account-perks li > span:first-child .ic { font-size: 20px; }
.account-perks b { display: block; color: var(--ink); font-size: 16.5px; }
.account-msg .co-link, .account-msg a { color: inherit; }
