
/* Concept : exactement le langage du site Usagi. Noir profond, or doux, capitales espacées, filets dégradés, angles à 2 px. */
:root {
  --bg: #060504;
  --card: #0e0c09;
  --text: #f1e8d8;
  --muted: #a89c88;
  --accent: #c9a05a;
  --line: #2b2418;
  --err: #e0907a;
  --serif: "Cormorant Garamond", "Shippori Mincho", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: dark;
}
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; font-variant-numeric: lining-nums;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,160,90,.13), transparent 70%) no-repeat, var(--bg);
  display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }


.phone { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: 860px; width: 100%; max-width: 410px; margin: 0 auto;
  background: radial-gradient(ellipse 90% 30% at 50% 0%, rgba(201,160,90,.10), transparent 70%) no-repeat, var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
#app { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.apphead { padding: 6px 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); min-height: 56px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.cal-head h3 { margin: 0; text-transform: capitalize; font-size: 1.3rem; }
.cal-nav { background: none; border: 1px solid var(--line); color: var(--accent); width: 44px; height: 44px; font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 44px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 0 0; gap: 3px; }
.cal-day.blank { background: none; border-color: transparent; }
.cal-day.today { border-color: var(--accent); color: var(--accent); }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; padding: 0 3px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.copy { text-align: center; margin: 34px 0 6px; color: var(--muted); }
.copy .orn { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--accent); margin-bottom: 12px; }
.copy .orn::before, .copy .orn::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--accent)); }
.copy .orn::after { transform: scaleX(-1); }
.copy .c1 { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.copy .c2 { font-size: .85rem; font-style: italic; margin-top: 6px; }
.backbar { padding: 4px 18px 0; display: flex; justify-content: space-between; align-items: center; }
.backlink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 4px 6px 0; color: var(--accent); font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.backlink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.apphead > :last-child { justify-self: end; }
button.brand { background: none; border: 0; padding: 12px 6px; font-family: inherit; }
.brand { font-size: .95rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.iconbtn { position: relative; width: 46px; height: 46px; background: none; border: 0; color: var(--accent); display: grid; place-items: center; padding: 0; }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bellbadge { position: absolute; top: 5px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--bg); font-size: .74rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px 28px; }
.tabbar { display: flex; justify-content: space-around; border-top: 1px solid var(--line); background: var(--card); padding: 0 6px env(safe-area-inset-bottom, 0px); }
.tab { background: none; border: 0; border-bottom: 1px solid transparent; margin: 0; padding: 16px 6px 13px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

h2 { display: flex; align-items: center; gap: 16px; font-size: .9rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 28px 0 18px; }
h2::before, h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
h2::after { transform: scaleX(-1); }
h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 500; letter-spacing: .04em; }
.hero { text-align: center; padding: 22px 0 4px; }
.hero img { width: min(200px, 58%); height: auto; }
.rule { width: 110px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 16px auto 20px; }
.hero p { color: var(--muted); max-width: 300px; margin: 0 auto; font-style: italic; font-size: 1.15rem; }
.grid { display: grid; gap: 16px; }
.card { background: linear-gradient(180deg, rgba(201,160,90,.07), transparent 40%), var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px; }
.card p { margin: 0 0 10px; color: var(--muted); }
button.card, a.card { display: block; width: 100%; text-align: left; color: inherit; text-decoration: none; }
button.card:hover, a.card:hover { border-color: var(--accent); }
.door { padding: 26px 22px; }
.price { font-weight: 600; color: var(--accent); letter-spacing: .06em; font-size: 1.02rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.meta { color: var(--muted); margin: 0 0 6px; }
.left { color: var(--accent); margin: 8px 0 0; font-size: 1rem; }
.badge { display: inline-block; border: 1px solid var(--accent); color: var(--accent); padding: 2px 12px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.badge.full { border-color: var(--line); color: var(--muted); }
.empty { text-align: center; padding: 30px 18px; border: 1px solid var(--line); color: var(--muted); font-style: italic; margin: 0; }
.sub { margin: 22px 0 12px; color: var(--accent); letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; }
.chip { flex: none; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); background: none; color: var(--muted); padding: 9px 14px; border-radius: 2px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.cta { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 12px 22px; min-height: 46px; border-radius: 2px; background: transparent; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; text-align: center; }
.cta:hover, .cta.solid { background: var(--accent); color: var(--bg); }
.cta.danger { border-color: var(--err); color: var(--err); }
.cta.danger:hover { background: var(--err); color: var(--bg); }
.cta.muted { border-color: var(--line); color: var(--muted); }
.cta.muted:hover { border-color: var(--accent); background: transparent; color: var(--text); }
.cta.sm { padding: 8px 14px; min-height: 40px; font-size: .72rem; }
.cta:disabled { opacity: .35; cursor: not-allowed; }
.cta.full { width: 100%; }
.actions3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

label { display: block; margin: 14px 0 4px; color: var(--muted); font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 12px; min-height: 46px; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: grid; place-items: center; min-width: 60px; padding: 12px 0; font-size: 1.15rem; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--text); cursor: pointer; }
.choice input:checked + span { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:disabled + span { opacity: .3; cursor: not-allowed; }
.err { color: var(--err); font-size: .92rem; margin: 6px 0 0; }
.file { position: relative; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.nd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.res { border: 1px solid var(--line); background: var(--card); padding: 14px; margin-top: 10px; }
.res .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.res .top > div { min-width: 0; }
.res strong { font-weight: 600; font-size: 1.1rem; }
.notif { padding: 14px 16px; margin-bottom: 10px; }
.thumbs { display: flex; gap: 6px; margin: 10px 0; overflow: hidden; }
.thumbs img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; display: block; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pgrid div { position: relative; }
.pgrid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; display: block; }
.pgrid button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 2px; border: 1px solid var(--line); background: rgba(6,5,4,.85); color: var(--err); font-size: 1.1rem; line-height: 1; padding: 0; }

.sheet { position: absolute; inset: 0; z-index: 5; background: var(--bg); display: flex; flex-direction: column; }
.sheet form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet .foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 20px 16px; background: var(--card); border-top: 1px solid var(--line); }
.sheet .apphead { padding-inline: 20px; }
.back { background: none; border: 0; color: var(--accent); padding: 8px 0; letter-spacing: .08em; font-size: .95rem; }
.toast { position: absolute; left: 20px; right: 20px; bottom: 64px; z-index: 9; background: var(--card); border: 1px solid var(--accent); border-radius: 2px; padding: 12px 14px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.7); }

#lock { position: absolute; inset: 0; z-index: 30; background: radial-gradient(ellipse 90% 40% at 50% 0%, rgba(201,160,90,.12), transparent 70%) no-repeat, var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; gap: 4px; }
#lock .lk-logo { width: 150px; height: auto; margin-bottom: 14px; }
#lock .lk-t { color: var(--accent); letter-spacing: .26em; text-transform: uppercase; font-size: .8rem; margin: 0 0 14px; }
#lock form { width: 100%; max-width: 260px; display: flex; flex-direction: column; gap: 10px; }
#lock input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; }

#intro { position: absolute; inset: 0; z-index: 20; background: #060504; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 1; transition: opacity .7s ease; --w: min(260px, 66%); overflow: hidden; }
#intro.out { opacity: 0; pointer-events: none; }
#intro .stage { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
#intro .art { position: relative; width: calc(var(--w) * 0.824); aspect-ratio: 530/590; }
#intro .art img { position: absolute; top: 0; height: 100%; width: auto; }
#intro .shk { left: 47.17%; opacity: 0; transform: translateY(-60vh); }
#intro .rab { left: 0; opacity: 0; transform: translate(-70vw, 0); }
#intro .word { width: var(--w); height: auto; opacity: 0; }
#intro.play .shk { animation: drop .9s ease-in .15s forwards; }
#intro.play .rab { animation: hops 2.1s linear 1.1s forwards; }
#intro.play .word { animation: fadein .9s ease 3.3s forwards; }
#intro-skip { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: transparent; border: 0; color: #a89c88; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; opacity: .8; padding: 10px 14px; }
@keyframes fadein { to { opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-60vh); opacity: 0; animation-timing-function: ease-in; } 15% { opacity: 1; } 62% { transform: translateY(0) scale(1.03,.96); opacity: 1; animation-timing-function: ease-out; } 80% { transform: translateY(-16px) scale(.99,1.02); animation-timing-function: ease-in; } 100% { transform: translateY(0) scale(1,1); opacity: 1; } }
@keyframes hops { 0% { transform: translate(-70vw,0); opacity: 1; animation-timing-function: ease-out; } 10% { transform: translate(-60vw,-54px) scale(.97,1.04); animation-timing-function: ease-in; } 20% { transform: translate(-50vw,0) scale(1.05,.93); } 24% { transform: translate(-50vw,0); animation-timing-function: ease-out; } 34% { transform: translate(-36vw,-48px) scale(.97,1.04); animation-timing-function: ease-in; } 44% { transform: translate(-24vw,0) scale(1.05,.93); } 48% { transform: translate(-24vw,0); animation-timing-function: ease-out; } 58% { transform: translate(-12vw,-40px) scale(.97,1.04); animation-timing-function: ease-in; } 68% { transform: translate(-3vw,0) scale(1.05,.93); } 72% { transform: translate(-3vw,0); animation-timing-function: ease-out; } 84% { transform: translate(0,-32px) scale(.98,1.03); animation-timing-function: ease-in; } 94% { transform: translate(0,0) scale(1.05,.93); animation-timing-function: ease-out; } 100% { transform: translate(0,0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Interrupteur qui coulisse */
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; color: var(--text); }
.sw { position: relative; flex: none; width: 54px; height: 30px; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 99px; transition: background .2s, border-color .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.sw input:checked + i { background: var(--accent); border-color: var(--accent); }
.sw input:checked + i::after { transform: translateX(24px); background: var(--bg); }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Fenêtre « Êtes-vous sûr ? » */
.dlg-back { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.74); }
.dlg { width: 100%; max-width: 340px; background: var(--card); border: 1px solid var(--accent); border-radius: 2px; padding: 24px 20px 20px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.7); }
.dlg p { margin: 0 0 20px; font-size: 1.15rem; line-height: 1.4; }
.dlg-btns { display: flex; gap: 10px; }
.dlg-btns .cta { flex: 1; }

/* ============ Refonte graphique : texture et jeu de lumière du site ============ */
:root { --gold-hi: #e3c284; --gold-lo: #a67c3b; }
body { background: #030302; }
.phone { isolation: isolate; box-shadow: 0 0 0 1px rgba(201,160,90,.10), 0 30px 80px rgba(0,0,0,.65);
  background: radial-gradient(ellipse 46% 30% at 50% 0%, rgba(201,160,90,.17), transparent 75%) no-repeat,
              radial-gradient(ellipse 100% 55% at 50% 0%, rgba(201,160,90,.045), transparent 80%) no-repeat, var(--bg); }
/* Lueurs chaudes sur les côtés et en bas, bords assombris (comme sur le site) */
.phone::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 30% at 0% 40%, rgba(201,160,90,.07), transparent 75%),
              radial-gradient(ellipse 34% 30% at 100% 66%, rgba(201,160,90,.06), transparent 75%),
              radial-gradient(ellipse 120% 40% at 50% 118%, rgba(201,160,90,.07), transparent 65%),
              radial-gradient(ellipse 130% 95% at 50% 42%, transparent 38%, rgba(0,0,0,.62) 100%); }
#app { z-index: 1; }
/* Grain fin doré par-dessus tout */
.phone::after { content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none; opacity: .13; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86  0 0 0 0 .70  0 0 0 0 .45  1.6 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px; }

/* En-tête : filet doré qui s'efface sur les côtés, nom du bar en lumière */
.apphead { background: linear-gradient(180deg, rgba(201,160,90,.08), rgba(0,0,0,0)); border-bottom: 0; position: relative; }
.apphead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .7; }
.brand { text-shadow: 0 0 18px rgba(201,160,90,.55); }
.iconbtn svg { filter: drop-shadow(0 0 6px rgba(201,160,90,.35)); }
.bellbadge { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 10px rgba(201,160,90,.55); }
.hero img { filter: drop-shadow(0 0 22px rgba(201,160,90,.28)); }
.rule { box-shadow: 0 0 12px rgba(201,160,90,.5); }

/* Titres : filets lumineux */
h2 { text-shadow: 0 0 14px rgba(201,160,90,.35); }
h2::before, h2::after { background: linear-gradient(90deg, transparent, var(--accent)); box-shadow: 0 0 8px rgba(201,160,90,.45); }

/* Cartes : reflet doré sur le bord haut, profondeur, la lumière suit le doigt au survol */
.card, .res { background: linear-gradient(180deg, rgba(201,160,90,.085), rgba(201,160,90,0) 46%), linear-gradient(rgba(16,13,9,.82), rgba(10,8,6,.9));
  box-shadow: inset 0 1px 0 rgba(201,160,90,.20), inset 0 0 0 1px rgba(255,255,255,.02), 0 14px 32px rgba(0,0,0,.42); border-color: #2f2819; }
button.card, a.card { transition: border-color .35s, transform .35s, box-shadow .35s; position: relative; overflow: hidden; }
button.card::after, a.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(201,160,90,.16), transparent 70%); }
button.card:hover, a.card:hover, button.card:active { border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(227,194,132,.35), 0 18px 40px rgba(0,0,0,.5), 0 0 26px rgba(201,160,90,.12); transform: translateY(-1px); }
button.card:hover::after, a.card:hover::after, button.card:active::after { opacity: 1; }
.card h3 { text-shadow: 0 0 16px rgba(239,230,214,.10); }
.res { box-shadow: inset 0 1px 0 rgba(201,160,90,.16), 0 10px 24px rgba(0,0,0,.35); }
.empty { background: rgba(201,160,90,.025); box-shadow: inset 0 0 40px rgba(0,0,0,.35); }
.nd { background: var(--gold-hi); box-shadow: 0 0 8px rgba(227,194,132,.9); }
.badge { background: rgba(201,160,90,.07); box-shadow: inset 0 0 12px rgba(201,160,90,.10); }
.badge.full { background: transparent; box-shadow: none; }

/* Boutons : or poli avec reflet, halo au survol */
.cta { transition: background .3s, color .3s, box-shadow .3s, border-color .3s; }
.cta:hover { box-shadow: 0 0 22px rgba(201,160,90,.28); }
.cta.solid, .cta:hover { background: linear-gradient(180deg, var(--gold-hi), var(--accent) 55%, var(--gold-lo)); color: #120d06; border-color: var(--gold-hi); }
.cta.solid { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 20px rgba(201,160,90,.22); }
.cta.danger { background: transparent; box-shadow: none; }
.cta.danger:hover { background: var(--err); color: var(--bg); box-shadow: 0 0 20px rgba(224,144,122,.25); }
.cta.muted:hover { background: transparent; color: var(--text); box-shadow: none; }

/* Barre du bas et retour */
.tabbar { background: linear-gradient(180deg, rgba(14,12,9,.92), rgba(6,5,4,.96)); border-top: 0; position: relative; backdrop-filter: blur(6px); }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .6; }
.tab[aria-current="page"] { text-shadow: 0 0 14px rgba(201,160,90,.6); border-bottom-color: var(--accent); }
.backlink { text-shadow: 0 0 12px rgba(201,160,90,.3); }

/* Champs : creusés, éclairés au focus */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=time], input[type=date], textarea, select {
  background: rgba(0,0,0,.35); border-color: #2f2819; box-shadow: inset 0 2px 8px rgba(0,0,0,.45); transition: border-color .3s, box-shadow .3s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: inset 0 2px 8px rgba(0,0,0,.45), 0 0 0 1px rgba(201,160,90,.35), 0 0 18px rgba(201,160,90,.16); }
input[type=time], input[type=date] { width: 100%; border: 1px solid #2f2819; border-radius: 2px; padding: 12px; min-height: 46px; color: var(--text); color-scheme: dark; }

/* Calendrier */
.cal-day { background: linear-gradient(180deg, rgba(201,160,90,.07), rgba(0,0,0,.25)); border-color: #2a2418; box-shadow: inset 0 1px 0 rgba(201,160,90,.10); transition: border-color .25s, box-shadow .25s; }
.cal-day:hover { border-color: var(--accent); }
.cal-day.today { box-shadow: 0 0 16px rgba(201,160,90,.28), inset 0 0 12px rgba(201,160,90,.12); }
.cal-day[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); color: #120d06; box-shadow: 0 0 18px rgba(201,160,90,.4); }
.cal-nav { background: rgba(201,160,90,.04); box-shadow: inset 0 1px 0 rgba(201,160,90,.15); }
.cal-nav:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(201,160,90,.25); }

/* Fenêtres plein écran et dialogues : même lumière que l'écran principal */
.sheet { background: radial-gradient(ellipse 60% 24% at 50% 0%, rgba(201,160,90,.13), transparent 75%) no-repeat, radial-gradient(ellipse 130% 95% at 50% 42%, transparent 38%, rgba(0,0,0,.55) 100%), var(--bg); }
.sheet .foot { background: linear-gradient(180deg, rgba(14,12,9,.95), rgba(6,5,4,.98)); border-top-color: transparent; position: relative; }
.sheet .foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent); opacity: .55; }
.dlg-back { background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(201,160,90,.08), rgba(0,0,0,.82) 70%); backdrop-filter: blur(3px); }
.dlg { background: linear-gradient(180deg, rgba(201,160,90,.10), transparent 50%), #0e0c09; box-shadow: inset 0 1px 0 rgba(227,194,132,.3), 0 20px 60px rgba(0,0,0,.8), 0 0 40px rgba(201,160,90,.14); }
.toast { background: linear-gradient(180deg, rgba(201,160,90,.12), transparent), #0e0c09; box-shadow: 0 10px 40px rgba(0,0,0,.7), 0 0 24px rgba(201,160,90,.18); }
#lock { background: radial-gradient(ellipse 70% 38% at 50% 0%, rgba(201,160,90,.20), transparent 72%) no-repeat, radial-gradient(ellipse 130% 95% at 50% 45%, transparent 35%, rgba(0,0,0,.7) 100%), var(--bg); }
.sw input:checked + i { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 0 14px rgba(201,160,90,.4); }
.copy .orn::before, .copy .orn::after { box-shadow: 0 0 8px rgba(201,160,90,.4); }
@media (prefers-reduced-motion: reduce) { button.card:hover { transform: none; } }

/* Cadrage de la photo (bandeau) : même proportion que sur le site */
.cadre { position: relative; width: 100%; aspect-ratio: 5 / 2; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--card); margin-top: 6px; }
.cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
input[type=range].cad { width: 100%; accent-color: var(--accent); min-height: 34px; }

/* Grand écran (ordinateur) : l'appli s'élargit au lieu de rester dans un cadre de téléphone */
@media (min-width: 900px) {
  .apphead { padding: 8px 28px; }
  .backbar { padding: 6px 32px 0; }
  .scroll { padding: 10px max(32px, calc((100% - 1060px) / 2)) 40px; }
  .stack, .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .stack > :not(.card), .grid > :not(.card) { grid-column: 1 / -1; }
  .cal-grid, .cal-head { max-width: 820px; margin-left: auto; margin-right: auto; }
  .sheet > form, .sheet > .scroll { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
  .sheet .scroll { padding-inline: 32px; }
  .sheet .apphead { padding-inline: 32px; }
  .sheet .foot { padding-inline: max(32px, calc((100% - 820px) / 2 + 32px)); }
  .tabbar { padding-inline: 12vw; }
  .dlg { max-width: 420px; }
}
@media (min-width: 1500px) {
  .scroll { padding-inline: max(32px, calc((100% - 1240px) / 2)); }
  .stack, .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Caisse (gestion) ---------- */
.cz-tabs { display: flex; gap: 8px; margin: 0 0 14px; } .cz-tabs .cta { flex: 1; padding-inline: 8px; }
.czs > * { flex-shrink: 0; }
.cl { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cl .cn { min-width: 0; overflow-wrap: anywhere; } .cl .ct { text-align: right; }
.ctot { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-size: 1.15rem; } .ctot b { color: var(--accent); font-size: 1.4rem; }
.ticket { max-width: 340px; margin: 6px auto; padding: 16px; background: #fbf7ee; color: #1c1710; font-family: "Courier New", monospace; font-size: .85rem; line-height: 1.35; }
.ticket .tt { text-align: center; font-size: 1.3rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; } .ticket .ts { text-align: center; font-size: .75rem; }
.ticket hr { border: 0; border-top: 1px dashed #8a7d63; margin: 10px 0; } .ticket .tl { display: flex; justify-content: space-between; gap: 10px; } .ticket .tb { font-weight: 700; font-size: 1rem; } .ticket .ta { text-align: center; font-weight: 700; margin-top: 6px; }
@media print { body.cprint > *:not(.phone) { display: none !important; } body.cprint { background: #fff !important; padding: 0 !important; display: block; } body.cprint .phone { border: 0; max-height: none; overflow: visible; background: #fff; max-width: none; }
  body.cprint #app > :not(.sheet) { display: none !important; } body.cprint .sheet { position: static; background: #fff; } body.cprint .sheet .apphead, body.cprint .noprint { display: none !important; } body.cprint .ticket { max-width: 80mm; margin: 0; padding: 4mm; background: #fff; } }


html, body { height: 100%; }
body { display: block; padding: 0; gap: 0; }
.phone { max-width: 520px; height: 100dvh; max-height: none; border: 0; border-radius: 0; margin: 0 auto; }
@media (min-width: 900px) { .phone { max-width: 1240px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (min-width: 1500px) { .phone { max-width: 1400px; } }
.apphead { padding-top: max(6px, env(safe-area-inset-top, 0px)); min-height: 56px; }
.tabbar { padding-bottom: max(0px, env(safe-area-inset-bottom, 0px)); }
#lock input { letter-spacing: normal; font-size: 1.05rem; text-align: left; }
.loginbox { width: 100%; max-width: 300px; }
.splash { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); }
.scroll { padding-bottom: 110px; }
.splash img { width: 140px; height: auto; opacity: .9; }

body { background: #060504; }
#apercu-bandeau { position: fixed; top: 0; left: 0; right: 0; height: 22px; z-index: 99999; background: #c9a45c; color: #060504; font: 600 11px/22px system-ui, sans-serif; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.phone { height: calc(100dvh - 22px) !important; margin-top: 22px !important; }

/* ---------- Caisse : boutons colorés, flèches d'ordre, contrôle ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.swc label { position: relative; margin: 0; }
.swc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swc span { display: block; width: 46px; height: 46px; border-radius: 2px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.45); cursor: pointer; }
.swc span.idem { width: auto; min-height: 46px; padding: 0 14px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--muted); font-size: .85rem; }
.swc input:checked + span { border-color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; }
.swc input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cprev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.cprev span { display: grid; place-items: center; min-height: 54px; padding: 6px; text-align: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; overflow-wrap: anywhere; border: 1px solid color-mix(in srgb, var(--c) 50%, var(--line)); border-bottom: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--card); }
.ccat { border-left: 3px solid var(--c); }
.chead, .prow { display: flex; align-items: center; gap: 6px; }
.chead { margin-bottom: 6px; }
.prow { padding: 4px 0 4px 10px; border-left: 4px solid var(--c); margin-top: 6px; background: rgba(255,255,255,.015); }
.cmain { flex: 1; min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: none; border: 0; padding: 4px 0; color: var(--text); }
.chead .cmain { justify-content: flex-start; flex-wrap: wrap; gap: 4px 6px; font-size: 1.1rem; }
.cmain .pp { color: var(--accent); white-space: nowrap; }
.mv { display: flex; gap: 4px; flex: none; }
.mvb { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 2px; color: var(--accent); font-size: .9rem; }
.mvb:disabled { opacity: .25; cursor: not-allowed; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.chk:first-of-type { border-top: 0; }
.chk .ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; font-weight: 700; margin-top: 1px; }
.chk.ok .ic { background: rgba(201,160,90,.16); color: var(--accent); border: 1px solid var(--accent); }
.chk.ko .ic { background: rgba(224,144,122,.14); color: var(--err); border: 1px solid var(--err); }
.chk.ko { color: var(--err); }
@media print { body.cprint .sheet .scroll { overflow: visible; } }
