/* Wazaaa : application des clients (téléphone d'abord), espace des bars et espace Hors Sol. Charte : design/charte.md. */
@import url('/fonts/fonts.css');
:root {
  --fond: #F6F1E8;
  --carte: #FFFFFF;
  --encre: #14162B;
  --doux: #5C5F71;
  --trait: #E2DBCC;
  --lampion: #E89A1E;
  --ambre: #FFB547;
  --corail: #FF4B3E;
  --corail-txt: #FFFFFF;
  --rouge-bouton: #D42F22; /* rouge un peu plus profond sous du texte blanc : lisible (contraste 5) */
  --rouge-texte: #D42F22;
  --puce: #EFE7D8;
  --ombre: none;
  --nav: #FFFFFF;
  --nav-txt: #14162B;
  --titre: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --texte: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #14162B; --carte: #1F2340; --encre: #F4EFE6; --doux: #B3B5C6; --trait: #2C3152;
    --lampion: #FFB547; --puce: #2A2F52; --nav: #1A1D36; --nav-txt: #F4EFE6; color-scheme: dark; --rouge-texte: #FF6A5E;
  }
}
:root[data-theme="dark"] {
  --fond: #14162B; --carte: #1F2340; --encre: #F4EFE6; --doux: #B3B5C6; --trait: #2C3152;
  --lampion: #FFB547; --puce: #2A2F52; --nav: #1A1D36; --nav-txt: #F4EFE6; color-scheme: dark; --rouge-texte: #FF6A5E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 16px/1.5 var(--texte);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
body.admin { padding-bottom: 40px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .5em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.top {
  background: var(--fond); color: var(--encre);
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.top h1 { font-size: 1.35rem; margin: 0; }
.beta { font-size: .8rem; color: var(--doux); font-weight: 600; }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 14px; }

.card, .ev, .bar-card, .rank {
  background: var(--carte); border: 1px solid var(--trait); border-radius: 16px;
  padding: 14px; margin: 0 0 14px;
}
.nag-card h2 { margin-bottom: .3em; }
.steps { padding-left: 1.3em; margin: .4em 0 .6em; }
.steps li { margin: .35em 0; }
.share-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--rouge-bouton); color: var(--corail-txt); border: 0; font-weight: 700;
}
button.ghost, .seg button, .chips button, .want, .follow { background: var(--carte); color: var(--encre); }
button.link, a.link {
  background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--doux); text-decoration: underline; font-weight: 400;
  display: inline-flex; align-items: center;
}

.ask label { font-weight: 700; display: block; margin-bottom: 6px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--carte);
}
.hint, .small { font-size: .85rem; color: var(--doux); }
.hint { margin: 6px 0 10px 4px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; font-weight: 600; }

#answer:not(:empty) { background: var(--puce); border-radius: 14px; padding: 12px; margin: 4px 0 18px; }
.answer-title { font-weight: 700; }
#answer .ev { box-shadow: none; }

.seg { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; padding: 0 14px; font-weight: 600; }
.seg button.on, .follow.on, .want.on { background: var(--encre); color: var(--fond); }

.ev { display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.ev-when { display: flex; flex-direction: column; align-items: flex-start; border-right: 2px dashed var(--puce); padding-right: 8px; }
.ev-when b { font-size: .95rem; }
.ev-when span { font-size: 1.05rem; font-weight: 800; color: var(--corail); white-space: nowrap; }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin: 0 0 2px; }
.ev h3 { margin-bottom: 2px; overflow-wrap: anywhere; }
.theme { color: var(--corail); }
.bar { font-weight: 600; margin-bottom: 4px; }
.about { color: var(--doux); font-size: .93rem; }
.ev-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.want { padding: 0 14px; }
.count { font-weight: 400; }
.empty { color: var(--doux); text-align: center; padding: 20px 0; }

.bar-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.follow { flex: none; min-width: 92px; }

.rank ol { list-style: none; padding: 0; margin: 10px 0; }
.rank li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--puce); }
.rank li:last-child { border-bottom: 0; }
.pos { font-weight: 800; text-align: center; border-radius: 999px; width: 30px; height: 30px; line-height: 30px; }
.p1 .pos { background: var(--lampion); color: #1b1d2a; }
.p2 .pos, .p3 .pos { background: var(--puce); }
.p1 .team { font-weight: 800; }
.pts { font-variant-numeric: tabular-nums; font-weight: 600; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--nav); padding-bottom: env(safe-area-inset-bottom); border-top: 3px solid var(--lampion);
}
.tabs a { color: var(--nav-txt); text-decoration: none; text-align: center; padding: 0 4px; min-height: 58px; display: flex; align-items: center; justify-content: center; font-weight: 600; opacity: .7; }
.tabs a.on { opacity: 1; color: var(--lampion); }

#toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 6;
  background: var(--encre); color: var(--fond); border-radius: 12px; padding: 12px 14px; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none;
}
#toast.show { opacity: 1; transform: none; }

/* Espace Hors Sol */
.admin label { display: block; margin: 0 0 10px; font-weight: 600; }
.admin input:not([type=checkbox]), .admin select, .admin textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--trait); border-radius: 10px; background: var(--carte);
}
.admin label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 36px; }
.admin label.check input { width: 22px; height: 22px; }
.admin fieldset { border: 2px solid var(--puce); border-radius: 10px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.admin .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin .row { border-top: 1px solid var(--puce); padding: 10px 0; }
.admin .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.admin form.inline label { font-weight: 400; }
.msg { background: var(--lampion); color: #1b1d2a; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.rank-admin { border-top: 1px solid var(--puce); padding-top: 10px; margin-top: 10px; }
.rank-admin ol { padding-left: 1.3em; }

/* Page du QR code (/qr) */
.qr-page { text-align: center; }
.qr-page img { display: block; width: min(320px, 100%); height: auto; margin: 12px auto 16px; border-radius: 8px; background: #fff; }

/* Fenêtre d'installation et de notifications */
.nag {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 12, 24, .55); padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.nag-card { width: 100%; max-width: 480px; margin: 0; }
.nag-card button:not(.link) { width: 100%; margin-top: 6px; }
.nag-card .link { display: flex; margin: 6px auto 0; }
body.nagged { overflow: hidden; }

/* Écran « C'est installé », dans le navigateur */
.installed {
  position: fixed; inset: 0; z-index: 20; background: var(--nav); color: var(--nav-txt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
}
.installed img { border-radius: 22px; margin-bottom: 18px; }
.installed h2 { font-size: 1.6rem; color: var(--lampion); }
.installed p { max-width: 320px; }
.installed .link { color: var(--nav-txt); opacity: .7; margin-top: 18px; }

/* Espaces du bar et de Hors Sol (vraie bêta) */
.chips-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.chips-nav::-webkit-scrollbar { display: none; }
.chips-nav a { flex: none; text-decoration: none; border: 1px solid var(--trait); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; background: var(--carte); }
.chips-nav a.on { background: var(--encre); color: var(--fond); }
.dot { background: var(--corail); color: var(--corail-txt); border-radius: 999px; padding: 0 7px; font-size: .78rem; }
.card.hi { border-color: var(--corail); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats div { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 12px; display: grid; }
.stats b { font-size: 1.8rem; line-height: 1.1; color: var(--corail); font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--doux); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row > p { flex: 1 1 220px; min-width: 0; }
.count-pill { background: var(--puce); border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--corail); color: var(--corail-txt); border: 1px solid var(--trait); font-weight: 600; text-decoration: none; }
.btn.ghost { background: var(--carte); color: var(--encre); }
.copy { display: flex; gap: 8px; margin: 4px 0 12px; }
.copy input { flex: 1; min-width: 0; }
.preview, .result { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--trait); margin: 6px 0 10px; display: block; }
.preview[hidden] { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.thumbs img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--trait); }
.thumbs figure { margin: 0; display: grid; gap: 4px; justify-items: start; }
.warn { background: var(--puce); border-left: 4px solid var(--corail); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: .92rem; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.box { background: var(--puce); border-radius: 10px; padding: 10px 12px; }
.admin input[type=radio] { width: 22px; height: 22px; }
.admin details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.admin ol { padding-left: 1.3em; }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }

/* App des clients : fiches, filtres, compte (vraie bêta) */
.tabs a { font-size: .88rem; }
.ev-when { gap: 6px; }
.ev-poster { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--puce); }
.ev h3 a, .bar a, .bar-card h3 a { text-decoration: none; }
.ev h3 a:hover, .bar a:hover { text-decoration: underline; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.demo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); border: 1px solid var(--doux); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
.back { padding-left: 0; margin-bottom: 6px; }
.poster { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 14px; border: 1px solid var(--trait); background: var(--carte); margin-bottom: 12px; }
.detail-title { font-size: 1.5rem; margin: 2px 0 6px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tags span { background: var(--puce); border-radius: 999px; padding: 3px 10px; font-size: .85rem; }
.tags.pick button { background: var(--carte); color: var(--encre); font-weight: 600; }
.tags.pick button.on { background: var(--encre); color: var(--fond); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 16px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gallery.hero img:first-child { grid-column: span 2; grid-row: span 2; }
.vue h3 { margin-top: 18px; }
.menu { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 10px 14px; }
.menu h4 { margin: 10px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); border-bottom: 1px solid var(--puce); padding-bottom: 4px; }
.menu-row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; }
.menu-row small { color: var(--doux); }
.bar-card { flex-wrap: wrap; }
.bar-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.bar-main { flex: 1 1 160px; min-width: 0; }
.rank li.me { background: var(--puce); border-radius: 8px; }
.rank li.me .team { font-weight: 800; }
.team small { color: var(--doux); font-weight: 400; }
.team-label { display: block; font-weight: 700; margin: 4px 0; }
#my-team { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); margin-bottom: 14px; }
.group { margin: 18px 0 8px; }
.vue .card h3 { margin-top: 0; }

/* Wazaaa : en-tête, barre du bas avec la bulle au centre, bouton « Wazaaa ! » (charte du 04/11/2026) */
button.ghost, .seg button, .chips button, .want, .follow, .btn.ghost { border: 1.5px solid var(--trait); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-bulle { position: relative; display: inline-flex; font-family: var(--titre); font-weight: 800; font-size: 1.45rem; letter-spacing: -.035em; line-height: .95;
  color: #fff; background: var(--corail); border-radius: 12px; padding: 4px 11px 7px 9px; transform: rotate(-4deg); text-decoration: none; }
.logo-bulle::after { content: ""; position: absolute; left: 12px; bottom: -7px; border: 6px solid transparent; border-top: 8px solid var(--corail); border-left: 3px solid var(--corail); }
.logo-bulle span { display: inline-block; transform: skewX(-8deg); }
.logo-bulle .a1 { font-size: 1.1em; } .logo-bulle .a2 { font-size: 1.25em; } .logo-bulle .a3 { font-size: 1.45em; color: #14162B; transform: skewX(-8deg) rotate(-10deg); }
.logo-bulle .bang { font-size: 1.4em; transform: rotate(8deg); }
.city { font-weight: 700; font-size: .9rem; color: var(--doux); }
.profile { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: var(--carte); border: 1px solid var(--trait); color: var(--encre); display: inline-flex; align-items: center; justify-content: center; }
.profile svg { width: 22px; height: 22px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--nav); border-top: 1px solid var(--trait); padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); }
.tabs a { color: var(--doux); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 62px; font-size: .74rem; font-weight: 700; opacity: 1; position: relative; }
.tabs a.on { color: var(--corail); }
.tabs .badge { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--corail); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.tabs .live::after { content: ""; position: absolute; top: 10px; left: 50%; margin-left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--corail); box-shadow: 0 0 0 3px var(--nav); }
.tabs .bulle { align-self: start; margin-top: -22px; }
.tabs .bulle b { width: 64px; height: 64px; border-radius: 22px; background: var(--corail); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--titre); font-size: 1.7rem; letter-spacing: -.04em; transform: rotate(-6deg); box-shadow: 0 6px 0 0 rgba(20,22,43,.18); }
.tabs .bulle b i { font-style: normal; color: #14162B; display: inline-block; transform: rotate(8deg); }
.tabs .bulle span { margin-top: 4px; }

.h1 { font-family: var(--titre); font-weight: 800; font-size: 1.85rem; letter-spacing: -.02em; margin: 6px 0 10px; }
.section-title { font-family: var(--titre); font-weight: 800; font-size: 1.25rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--corail); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Bouton « Wazaaa ! » : coché = j'y vais, prévenu */
.want { font-family: var(--titre); font-weight: 800; background: var(--carte); color: var(--corail); border-color: var(--corail); padding: 0 16px; }
.want.on { background: var(--corail); color: #fff; }
.want.pop { animation: pop .35s ease-out; }
@keyframes pop { 30% { transform: scale(1.12) rotate(-3deg); } 60% { transform: scale(.96); } }
.count { font-family: var(--texte); font-weight: 600; font-size: .85rem; }

/* Cartes de soirée avec affiche */
.ev { padding: 0; overflow: hidden; display: block; }
.ev-media { position: relative; aspect-ratio: 16 / 9; background: var(--puce); overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-media .when { position: absolute; left: 10px; top: 10px; background: rgba(20,22,43,.82); color: #fff; border-radius: 10px; padding: 4px 10px; font-weight: 700; font-size: .85rem; }
.ev-media .default { position: absolute; inset: 0; background: #14162B; color: #F4EFE6; display: flex; align-items: flex-end; padding: 14px; font-family: var(--titre); font-size: 1.6rem; }
.ev-media .default::after { content: "!"; position: absolute; right: 16px; top: 4px; font-size: 4rem; color: var(--corail); transform: rotate(8deg); }
.ev-body { padding: 12px 14px 14px; }
.ev-body h3 { font-size: 1.2rem; margin: 2px 0 2px; }
.ev-when, .ev-poster { display: none; }
.kicker { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--corail); }
.bar { font-weight: 600; font-size: .9rem; color: var(--doux); margin-bottom: 6px; }
.seg button.on, .follow.on { background: var(--encre); color: var(--fond); border-color: var(--encre); }
#answer:not(:empty) { background: var(--carte); border: 1px solid var(--trait); }
@media (prefers-reduced-motion: reduce) { .live-dot, .want.pop { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs .bulle b.pop { animation: pop .35s ease-out; }
.center { text-align: center; }
.want-wrap { display: inline-flex; align-items: center; gap: 10px; }
.ask label { display: none; }
.ev-media { display: block; text-decoration: none; }
.tabs .badge[hidden] { display: none; }

/* Espace du bar (05/11/2026) : QR, horaires, places, logo */
.qr-img { width: 220px; height: 220px; display: block; margin: 8px 0 14px; border-radius: 12px; border: 1px solid var(--trait); background: #fff; }
.print .top, .print .chips-nav { display: none; }
.print-qr { text-align: center; padding: 30px 0; }
.print-qr svg { width: 70mm; height: 70mm; }
.print-qr h2 { font-size: 2rem; margin-top: 14px; }
.hours { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 8px; align-items: center; }
.hours input { margin: 0 !important; }
.admin form.full { flex-basis: 100%; }
.admin form.places { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex-basis: 100%; }
.admin form.places label { margin: 0; }
.inline-num { display: inline-flex !important; align-items: center; gap: 8px; }
.inline-num input { width: 110px !important; display: inline-block !important; margin: 0 !important; }
.inline-num input[type=color] { width: 56px !important; padding: 2px !important; }
.logo-prev { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; border: 1px solid var(--trait); background: #fff; }
.req { border-top: 1px solid var(--puce); padding-top: 10px; margin-top: 10px; }

/* App des clients (05/11/2026) : zone, carte d'identité du bar, partage, réservation, classements façon foot */
button.city { background: none; border: 0; min-height: 36px; padding: 0 6px; color: var(--doux); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
button.city::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.id-card { --bar: #FF4B3E; background: var(--bar); color: #fff; border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.id-card .detail-title { color: #fff; margin: 0 0 4px; }
.id-card p { margin: 0; color: rgba(255,255,255,.92); font-weight: 600; }
.id-card .demo { color: #fff; border-color: rgba(255,255,255,.8); }
.id-logo { width: 76px; height: 76px; flex: none; border-radius: 18px; background: #fff; object-fit: contain; }
.id-initial { display: inline-flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 2rem; color: var(--bar, #FF4B3E); background: #fff; }
.bar-thumb.id-initial { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--trait); }
.id-text { min-width: 0; }
.open { font-weight: 700; }
.open.yes::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3FCB7A; margin-right: 6px; }
.id-card .open.no { opacity: .85; }
.bar-main .open.yes { color: #2f9a5c; }
.lead { font-size: 1.05rem; font-weight: 600; }
.facts { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 12px 14px; margin: 12px 0; }
.facts p { margin: 4px 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.share .btn, .share button { min-height: 40px; font-size: .9rem; }
.wide { width: 100%; margin: 10px 0; }
.team-box { margin-top: 14px; }
.team-box .section-title { margin-top: 0; }
.book label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; margin: 0 0 10px; }
.book input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); font-weight: 400; }
.book .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-err { color: var(--corail); font-weight: 600; min-height: 1em; }
.nag-card.book { max-height: calc(100vh - 40px); overflow: auto; }
table.league { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 6px 0; }
.league th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); padding: 4px 6px; border-bottom: 1px solid var(--trait); }
.league th:nth-child(3), .league th:nth-child(4), .league td:nth-child(3), .league td:nth-child(4) { text-align: right; }
.league td { padding: 8px 6px; border-bottom: 1px solid var(--puce); }
.league tr:last-child td { border-bottom: 0; }
.league .pos { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--titre); font-size: .85rem; }
.league .p1 .pos { background: var(--ambre); color: #14162B; }
.league .p2 .pos, .league .p3 .pos { background: var(--puce); }
.league .pts { font-family: var(--titre); }
.league tr.me td { background: var(--puce); }
.league .team small { color: var(--doux); font-weight: 400; }

/* Waz (05/11/2026) : scanner, gains, récompenses, partager sur les cartes */
.share-mini { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.nag.scan .nag-card { text-align: center; }
.viewer { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; margin: 6px 0 10px; }
.viewer video { width: 100%; height: 100%; object-fit: cover; }
.viewer .frame { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.waz-pop { text-align: center; }
.waz-big { font-family: var(--titre); font-size: 3rem; color: var(--corail); margin: 4px 0; transform: rotate(-4deg); animation: pop .5s ease-out; }
.waz-total { font-family: var(--titre); font-size: 2.4rem; color: var(--corail); margin: 0; }
.waz-total small { font-family: var(--texte); font-size: .9rem; color: var(--doux); }
.code { font-family: var(--titre); font-size: 1.4rem; letter-spacing: .1em; color: var(--corail); }
.reward { align-items: center; padding: 6px 0; }
.reward button { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.reward button:disabled { opacity: .6; }

/* Espace Hors Sol (05/11/2026) : menu à gauche sur ordinateur, rubriques claires */
body.hs main { max-width: 1180px; }
.shell { display: grid; gap: 18px; }
.side { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.side::-webkit-scrollbar { display: none; }
.side a { flex: none; text-decoration: none; padding: 9px 14px; border-radius: 12px; font-weight: 700; color: var(--doux); background: var(--carte); border: 1px solid var(--trait); }
.side a.on { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.side-foot { display: none; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
  .side { flex-direction: column; position: sticky; top: 12px; overflow: visible; }
  .side a { background: none; border: 0; }
  .side a:hover { background: var(--carte); }
  .side-foot { display: grid; gap: 2px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--trait); }
  .side-foot a { font-weight: 600; font-size: .9rem; padding: 6px 14px; }
  .side-foot .link { padding-left: 14px; min-height: 36px; }
}
.content > h2 { font-size: 1.7rem; margin: 4px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tiles div { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.tiles b { font-family: var(--titre); font-size: 1.9rem; color: var(--corail); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tiles span { font-size: .85rem; color: var(--doux); font-weight: 600; }
.todo { display: grid; gap: 2px; padding: 12px 14px; margin: 0 -14px; text-decoration: none; border-top: 1px solid var(--puce); }
.todo:hover { background: var(--puce); }
.todo span { font-size: .88rem; color: var(--doux); }
.line { margin: 6px 0; }
.group { margin: 18px 0 8px; font-size: 1.05rem; color: var(--doux); }
.list { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; border-top: 1px solid var(--puce); }
.item:first-child { border-top: 0; }
.item:hover { background: var(--puce); }
.item-main { flex: 1; min-width: 0; }
.chev { font-size: 1.6rem; color: var(--doux); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--puce); color: var(--doux); vertical-align: 2px; }
.pill.ok { background: #DDF3E5; color: #1F7A46; }
.pill.warn { background: #FFE3DD; color: #B4271C; }
.table-wrap { overflow-x: auto; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; margin-bottom: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.data th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); padding: 10px 12px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.data td { padding: 9px 12px; border-bottom: 1px solid var(--puce); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.danger-zone { border-color: #F2B8AF; }
details.card summary { font-family: var(--titre); font-size: 1.1rem; }

/* Mes bars et classements mis en avant (05/11/2026) */
.my-bar { padding: 0; overflow: hidden; }
.my-bar-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; }
.my-bar-head > span:nth-child(2) { flex: 1; display: grid; }
.my-bar .bar-thumb { width: 48px; height: 48px; border-radius: 12px; }
.my-ev { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 14px; border-top: 1px solid var(--puce); text-decoration: none; }
.my-when { grid-column: 1; font-size: .78rem; font-weight: 700; color: var(--corail); text-transform: uppercase; letter-spacing: .04em; }
.my-title { grid-column: 1; font-weight: 700; }
.my-count { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: .82rem; font-weight: 700; color: var(--doux); }
.my-count.on { color: #fff; background: var(--corail); border-radius: 999px; padding: 4px 10px; font-family: var(--titre); }
.my-bar > .small { padding: 0 14px 12px; margin: 0; }
.chips.games { flex-wrap: nowrap; }
.chips.games button.on { background: var(--corail); color: #fff; border-color: var(--corail); }
.rank.big { padding: 16px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 14px 0 10px; text-align: center; }
.podium .step { display: grid; gap: 2px; justify-items: center; min-width: 0; }
.podium .step b { font-family: var(--titre); font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.podium .step span:not(.medal) { font-size: .82rem; color: var(--doux); font-weight: 700; }
.podium .step i { display: block; width: 100%; border-radius: 12px 12px 4px 4px; margin-top: 6px; background: var(--puce); }
.podium .s1 i { height: 84px; background: var(--ambre); }
.podium .s2 i { height: 60px; }
.podium .s3 i { height: 42px; }
.podium .medal { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--titre); background: var(--puce); font-size: 1rem; }
.podium .s1 .medal { width: 44px; height: 44px; background: var(--ambre); color: #14162B; font-size: 1.3rem; }
.podium .me b { color: var(--corail); }
.my-rank { background: var(--puce); border-radius: 12px; padding: 8px 12px; font-weight: 700; text-align: center; }
.last-night .section-title { margin-top: 14px; font-size: 1rem; }
.next-round { margin-top: 10px; font-weight: 600; }
.home-podium { display: block; text-decoration: none; margin-top: 18px; }
.home-podium .section-title { margin-top: 0; }
/* Espace du bar : la feuille de soirée */
.sheet-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.sheet-head a { text-decoration: none; border: 1px solid var(--trait); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; background: var(--carte); }
.sheet-head a.on { background: var(--encre); color: var(--fond); }
table.sheet { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.sheet th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); padding: 6px; border-bottom: 1px solid var(--trait); }
.sheet td { padding: 6px; border-bottom: 1px solid var(--puce); font-weight: 600; }
.admin .sheet input { margin: 0 !important; min-height: 44px; }
.sheet td:nth-child(2) { width: 110px; }
.sheet .tot { text-align: right; color: var(--doux); font-variant-numeric: tabular-nums; width: 60px; }
.sheet tr.new td { background: var(--puce); }
.team-edit { border-top: 1px solid var(--puce); padding: 6px 0; }
.team-edit summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 6px; }

/* Éditeur de la carte (espace du bar) */
.me-rub { border: 1px solid var(--trait); border-radius: 14px; padding: 10px; margin-bottom: 12px; background: var(--fond); }
.me-head { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.admin .me-head input { font-family: var(--titre); font-weight: 800; flex: 1; margin: 0 !important; }
.me-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px 100px; gap: 6px; padding: 8px 0; border-top: 1px dashed var(--trait); align-items: center; }
.admin .me-item input { margin: 0 !important; min-height: 40px; padding: 6px 10px; }
.me-detail { grid-column: 1 / 3; }
.me-price { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.me-acts { display: flex; gap: 4px; justify-content: flex-end; }
.me-btn { min-height: 36px; width: 36px; padding: 0; background: var(--carte); color: var(--encre); border: 1px solid var(--trait); border-radius: 10px; font-weight: 700; }
.me-btn.del { color: var(--corail); }
.me-add { margin-top: 6px; min-height: 38px; font-size: .9rem; }
.me-add-rub { width: 100%; margin-bottom: 12px; }
@media (max-width: 480px) { .me-item { grid-template-columns: minmax(0, 1fr) 90px; } .me-qty { grid-column: 1; } .me-price { grid-column: 2; grid-row: 1; } .me-detail { grid-column: 1 / -1; } .me-acts { grid-column: 1 / -1; } }

/* Mes bars sur l'accueil (pastilles), carte par rubriques, compte */
.stories-wrap .section-title { margin-top: 4px; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.stories::-webkit-scrollbar { display: none; }
.story { --bar: var(--corail); flex: none; width: 74px; display: grid; justify-items: center; gap: 3px; text-decoration: none; text-align: center; }
.story .ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--trait); display: block; }
.story.lit .ring { background: var(--corail); }
.story.now .ring { background: conic-gradient(var(--corail), var(--ambre), var(--corail)); animation: spin 3s linear infinite; }
@keyframes spin { to { filter: hue-rotate(20deg); } }
.story img, .story .ini { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--fond); object-fit: cover; background: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--titre); font-size: 1.6rem; color: var(--bar); }
.story.add .ini { color: var(--corail); background: var(--carte); }
.story b { font-size: .78rem; line-height: 1.15; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story small { font-size: .7rem; color: var(--corail); font-weight: 700; min-height: 1em; white-space: nowrap; }
.menu-item { padding: 4px 0; border-bottom: 1px dotted var(--puce); }
.menu-item:last-child { border-bottom: 0; }
.menu-detail { font-size: .85rem; color: var(--doux); margin: -2px 0 2px; }
.account label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; margin: 0 0 10px; }
.account input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); font-weight: 400; }
.account .link { display: block; margin-top: 4px; }
.keep a { color: var(--corail); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .story.now .ring { animation: none; } }

#mybars .section-title { margin: 2px 0 8px; }

/* Page d'un bar : sa prochaine soirée mise en avant, juste sous sa carte */
.ev.next-up { border-color: var(--corail); box-shadow: 4px 4px 0 var(--corail); }

/* Profil : préférences de notifications, données personnelles */
.prefs { display: grid; gap: 4px; margin-top: 10px; }
label.check.pref { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-weight: 400; }
label.check.pref input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--corail); }
button.danger { color: #C2341F; border-color: #E8A79D; margin-top: 8px; }
.foot { text-align: center; margin: 18px 0 8px; }
.legal h3 { margin-top: 18px; }
.prefs-box { margin-top: 10px; }
.prefs-box summary { cursor: pointer; color: var(--doux); font-size: .92em; text-decoration: underline; min-height: 32px; }
.waz-rules { margin-top: 8px; }
.qr-pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.qr-pair h3 { margin: 0 0 6px; }

/* Tuto du premier lancement : 4 écrans de 5 secondes, façon stories */
.tuto { position: fixed; inset: 0; z-index: 60; background: #14162B; color: #F6F1E8; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 20px); user-select: none; }
.tu-segs { display: flex; gap: 5px; }
.tu-seg { flex: 1; height: 4px; border-radius: 2px; background: rgba(246, 241, 232, .25); overflow: hidden; }
.tu-seg i { display: block; height: 100%; width: 0; background: #F6F1E8; }
.tu-seg.done i { width: 100%; }
.tu-seg.now i { animation: tu-fill 6s linear forwards; }
@keyframes tu-fill { to { width: 100%; } }
.tu-skip { align-self: flex-end; color: #B3B5C6; margin-top: 8px; }
.tu-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 0 14px; text-align: center; max-width: 420px; margin: 0 auto; width: 100%; }
.tu-stage h2 { font-family: var(--titre); font-size: 1.6rem; line-height: 1.1; margin: 16px 0 6px; color: #F6F1E8; animation: tu-up .5s .15s both; }
.tu-stage p { font-size: 1rem; color: #D9D6E4; margin: 0; animation: tu-up .5s .3s both; }
.tu-art { height: 230px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tu-next { background: #FF4B3E; color: #fff; border: 0; border-radius: 999px; font-weight: 700; font-size: 1.05rem; min-height: 50px; width: 100%; max-width: 420px; margin: 0 auto; }
@keyframes tu-up { from { opacity: 0; transform: translateY(14px); } }
/* Le téléphone du tuto : un écran de l'app en miniature, et un doigt qui touche */
.tu-art { height: auto; flex: 1; min-height: 0; max-height: 470px; }
.tp-phone { position: relative; height: 100%; max-height: 470px; aspect-ratio: 9 / 18.5; border: 6px solid #2C3152; border-radius: 30px; background: #F6F1E8;
  overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: tu-up .45s both; font-size: 10px; color: #14162B; text-align: left; }
.tp-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tp-phone p { color: #14162B; animation: none; }
.tp-top { position: relative; z-index: 1; background: #F6F1E8; display: flex; align-items: center; gap: 6px; padding: 14px 10px 6px; font-weight: 700; font-size: 1em; }
.tp-logo { background: #FF4B3E; color: #fff; font-family: var(--titre); font-size: 1.3em; padding: 2px 7px 3px; border-radius: 7px 7px 7px 2px; }
.tp-feed { flex: 1; padding: 0 10px; overflow: hidden; }
.tp-phone .tp-h { font-family: var(--titre); font-weight: 800; font-size: 1.7em; margin: 6px 0; }
.tp-ev { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 8px; border: 1px solid #E2DBCC; }
.tp-poster { background: #14162B; color: #fff; height: 7.5em; padding: 6px 8px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tp-poster b { font-family: var(--titre); font-size: 1.6em; }
.tp-poster::after { content: '!'; position: absolute; right: 10px; top: 4px; color: #FF4B3E; font-family: var(--titre); font-weight: 800; font-size: 2.4em; }
.tp-poster[data-c="2"] { background: #3A2350; } .tp-poster[data-c="2"]::after { color: #FFB547; }
.tp-poster[data-c="3"] { background: #12423A; }
.tp-phone .tp-ev p, .tp-phone .tp-cam p { font-size: 1em; }
.tp-ev p { margin: 0; padding: 5px 8px 7px; color: #5C5F71; line-height: 1.3; } .tp-ev p b { color: #14162B; font-size: 1.15em; }
.tp-nav { display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid #E2DBCC; height: 3.6em; padding: 0 6px; }
.tp-nav i { width: 1.4em; height: 1.4em; border-radius: 4px; background: #D9D3C6; }
.tp-w { width: 3.6em; height: 3.6em; margin-top: -1.6em; border-radius: 50%; background: #FF4B3E; color: #fff; font-family: var(--titre); font-size: 1.15em;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 #C7342A; }
.tp-finger { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .55);
  border: 2px solid rgba(20, 22, 43, .55); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; z-index: 5; }
@keyframes tp-tap { 0% { opacity: 0; transform: scale(1.4); } 15% { opacity: 1; transform: scale(1); } 25% { transform: scale(.75); } 35% { transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
.tp-sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; background: #fff; border-radius: 14px; padding: 12px; text-align: center; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); z-index: 3; }
@keyframes tp-rise { from { transform: translateY(120%); } }
/* 1. Le fil des soirées défile */
.t1 .tp-roll { animation: tp-scroll 2s 1.3s ease-in-out both; }
@keyframes tp-scroll { to { transform: translateY(-9em); } }
.t1 .tp-ev { animation: tu-up .45s both; } .t1 .tp-ev:nth-of-type(2) { animation-delay: .25s; }
.t1 .tp-finger { left: 50%; top: 70%; animation: tp-swipe 1.6s 1.1s both; }
@keyframes tp-swipe { 0% { opacity: 0; top: 72%; } 20% { opacity: 1; top: 72%; } 80% { opacity: 1; top: 40%; } 100% { opacity: 0; top: 38%; } }
/* 2. Wazaaa ! puis la notification */
.tp-btns { display: flex; gap: 6px; } .tp-btns > span { flex: 1; text-align: center; border-radius: 999px; padding: 7px 0; font-weight: 700; font-size: 1.1em; }
.tp-go { background: #FF4B3E; color: #fff; display: grid; } .tp-go > span { grid-area: 1 / 1; }
.tp-go > span:first-child { animation: tp-out .2s 1.55s both; } .tp-go > span:last-child { animation: tp-in .2s 1.55s both; }
.t2 .tp-go { animation: tp-flip .3s 1.5s both; }
@keyframes tp-flip { 50% { transform: scale(.9); } to { background: #14162B; } }
@keyframes tp-out { to { opacity: 0; } } @keyframes tp-in { from { opacity: 0; } }
.tp-ghost { background: #fff; border: 1px solid #E2DBCC; }
.t2 .tp-finger { left: 27%; top: 42%; animation: tp-tap 1.4s .8s both; }
.tp-notif { position: absolute; left: 6px; right: 6px; top: 8px; display: flex; gap: 7px; align-items: center; background: rgba(255, 255, 255, .96); border-radius: 12px;
  padding: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); line-height: 1.3; animation: tp-drop .5s 2.8s both; z-index: 4; }
.tp-notif i { width: 2.4em; height: 2.4em; border-radius: 7px; background: #FF4B3E; flex: none; }
@keyframes tp-drop { from { transform: translateY(-140%); } }
/* 3. La bulle, la caméra, le gain */
.t3 .tp-w { animation: tp-press .4s 1.05s both; }
@keyframes tp-press { 50% { transform: scale(.85); } }
.t3 .tp-finger { left: 50%; top: 92%; animation: tp-tap 1s .6s both; }
.tp-cam { position: absolute; inset: 0; background: #0B0C18; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #fff; animation: tp-in .35s 1.35s both; z-index: 2; }
.tp-phone .tp-cam p { margin: 0; font-weight: 600; color: #fff; }
.tp-frame { position: relative; padding: 14px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 14px; }
.tp-qr { display: grid; grid-template-columns: repeat(5, 1.3em); gap: 2px; padding: 7px; background: #fff; border-radius: 5px; }
.tp-qr b { height: 1.3em; } .tp-qr b.on { background: #14162B; }
.tp-line { position: absolute; left: 6px; right: 6px; top: 20%; height: 2px; background: #FF4B3E; box-shadow: 0 0 10px #FF4B3E; animation: tp-scan .9s 1.6s ease-in-out 2 alternate both; }
@keyframes tp-scan { to { top: 80%; } }
.tp-gain { animation: tp-rise .45s 3.5s both; }
.tp-gain b { display: block; font-family: var(--titre); font-size: 2.4em; color: #FF4B3E; animation: tu-pop .5s 3.8s both; }
/* 4. Utiliser, puis le code */
.tp-barhead { display: flex; align-items: center; gap: 7px; padding: 14px 10px 8px; background: #14162B; color: #fff; font-family: var(--titre); font-size: 1.5em; }
.tp-barhead i { width: 1.4em; height: 1.4em; border-radius: 50%; background: #FFB547; }
.tp-phone.t4 .tp-h { font-size: 1.25em; margin-top: 10px; }
.tp-rw { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #E2DBCC; border-radius: 10px; padding: 8px; margin-bottom: 6px; font-weight: 700; font-size: 1.1em; }
.tp-rw small { display: block; color: #5C5F71; font-weight: 500; }
.tp-rw em { font-style: normal; background: #FF4B3E; color: #fff; border-radius: 999px; padding: 4px 10px; }
.tp-rw em.off { background: #EFE7D8; color: #5C5F71; }
.t4 .tp-pick em { animation: tp-press .4s 1.55s both; }
.t4 .tp-finger { left: 82%; top: 35%; animation: tp-tap 1.3s 1s both; }
.tp-code { animation: tp-rise .45s 2.1s both; padding: 16px 12px 20px; }
.tp-code span { display: block; color: #5C5F71; }
.tp-code b { display: block; font-family: var(--titre); font-size: 3em; letter-spacing: .08em; margin: 2px 0; }
@media (prefers-reduced-motion: reduce) {
  .tuto *:not(.tu-seg i) { animation: none !important; }
  .tp-finger, .tp-cam { display: none; }
}

/* Soirée sans affiche : la photo du bar, avec le genre de soirée posé dessus */
.ev-media .default.on-photo { background: linear-gradient(to top, rgba(20, 22, 43, .85), rgba(20, 22, 43, 0) 65%); }
.ev-media .default.on-photo::after { content: none; }
.poster.bar-banner { aspect-ratio: 16 / 9; object-fit: cover; }
/* Le bar de la soirée, avec « Suivre » sans quitter la page */
.bar-strip { display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 10px; margin: 10px 0 14px; }
.bar-strip .bar-thumb { width: 48px; height: 48px; border-radius: 12px; font-size: 1.5rem; }
.bs-name { flex: 1; min-width: 0; color: var(--encre); text-decoration: none; line-height: 1.25; }
.bs-name small { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fiche du bar : Suivre, réserver, et ses waz chez ce bar */
.waz-chip { margin-top: 8px; background: var(--ambre); color: #14162B; border: 0; border-radius: 999px; padding: 0 14px; min-height: 36px; font-weight: 700; }
.waz-chip b { font-family: var(--titre); font-size: 1.15rem; margin-right: 2px; }
#recompenses { scroll-margin-top: 80px; }
.my-more { display: block; padding: 10px 12px 4px; font-weight: 700; color: var(--corail); text-decoration: none; }

/* Lisibilité et cibles de 44 px (test du 06/11/2026) */
.kicker, .tabs a.on { color: var(--rouge-texte); }
button.danger { color: var(--rouge-texte); }
.profile { width: 44px; height: 44px; min-height: 44px; }
button.city { min-height: 44px; }
.share-mini { min-height: 44px; }
.waz-chip { min-height: 44px; }
.resa-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.resa-row p { margin: 0; }
.resa-st { font-weight: 700; }
.resa-row.ok .resa-st { color: #1F8A4C; }
#ensuite { scroll-margin-top: 80px; }
@media (max-height: 700px) { .hint { display: none; } .story .ring { width: 56px; height: 56px; } .story { width: 64px; } }

/* Classements (06/11/2026) : un jeu par carte, puis la page du jeu */
.lead-rank { margin: -4px 0 10px; }
.pos { display: inline-flex; flex: none; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--titre); font-size: .9rem; background: var(--puce); color: var(--encre); }
.pos.p1 { background: #FFB547; color: #14162B; }
.pos.p2 { background: #CDD3DE; color: #14162B; }
.pos.p3 { background: #E3AE7B; color: #14162B; }
.card.game { display: block; text-decoration: none; color: var(--encre); margin-bottom: 12px; }
.g-head { display: flex; align-items: center; gap: 12px; }
.g-head > span:nth-child(2) { flex: 1; min-width: 0; }
.g-head b { display: block; font-family: var(--titre); font-size: 1.15rem; line-height: 1.2; }
.g-head small, .my-team small, .winner small, .night summary small { display: block; color: var(--doux); font-size: .85rem; }
.g-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; font-size: 1.3rem; border: 1px solid var(--trait); }
.g-top { list-style: none; margin: 12px 0 0; padding: 0; }
.g-top li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--puce); }
.g-top .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.g-top b { font-family: var(--titre); font-variant-numeric: tabular-nums; }
.g-top li.me, .league tr.me td { background: color-mix(in srgb, var(--ambre) 22%, transparent); }
.g-top li.me { border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.g-last { margin: 8px 0 0; color: var(--doux); font-size: .9rem; }
.card.my-team, .card.winner { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--encre); margin-bottom: 10px; }
.card.my-team > span:nth-child(2), .card.winner > span:nth-child(2) { flex: 1; min-width: 0; }
.card.my-team b, .card.winner b { font-family: var(--titre); font-size: 1.15rem; }
.big-pos { font-family: var(--titre); font-size: 2.4rem; line-height: 1; color: var(--rouge-texte); flex: none; }
.big-pos small { font-size: 1rem; vertical-align: super; }
.trophy { width: 40px; height: 40px; border-radius: 50%; background: #FFB547; color: #14162B; display: inline-flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 1.2rem; flex: none; }
.home-podium { display: block; margin-top: 18px; }
.game-head .g-logo { width: 64px; height: 64px; border-radius: 16px; border: 0; }
.game-head a { color: #fff; }
.next-game { display: grid; gap: 10px; margin-bottom: 14px; }
.next-game p { margin: 0; }
.next-game .btn { background: var(--rouge-bouton); color: #fff; border: 0; justify-content: center; }
.podium .step b { font-size: .95rem; overflow-wrap: normal; word-break: normal; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.podium .s2 .medal { background: #CDD3DE; color: #14162B; }
.podium .s3 .medal { background: #E3AE7B; color: #14162B; }
.podium .me b { color: var(--rouge-texte); }
.league tr { cursor: pointer; }
.league .team { font-weight: 600; }
details.night { margin-bottom: 10px; }
details.night summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; }
details.night summary::-webkit-details-marker { display: none; }
details.night .chev { transition: transform .2s; }
details.night[open] .chev { transform: rotate(90deg); }
/* Trio de tête de la page d'un jeu */
.top3 { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.top3 li { display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 10px 14px; cursor: pointer; }
.top3 .nm { flex: 1; min-width: 0; font-weight: 700; line-height: 1.2; }
.top3 .nm small { display: block; color: var(--doux); font-weight: 500; font-size: .82rem; }
.top3 b { font-family: var(--titre); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.top3 b small { font-size: .8rem; color: var(--doux); }
.top3 .medal { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--titre); flex: none; color: #14162B; }
.top3 .s1 { background: linear-gradient(135deg, #FFE1A6, #FFB547); border-color: #FFB547; color: #14162B; padding: 16px; }
.top3 .s1 .medal { width: 50px; height: 50px; font-size: 1.4rem; background: #fff; }
.top3 .s1 .nm { font-family: var(--titre); font-size: 1.35rem; }
.top3 .s1 .nm small, .top3 .s1 b small { color: #5A4A2A; }
.top3 .s1 b { font-size: 1.7rem; }
.top3 .s2 .medal { background: #CDD3DE; }
.top3 .s3 .medal { background: #E3AE7B; }
.top3 li.me { outline: 3px solid var(--rouge-texte); outline-offset: -1px; }

/* Ticket d'une récompense : plein écran, animé, « glisser pour valider » (06/11/2026) */
.ticket { --bar: #FF4B3E; position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(env(safe-area-inset-top) + 20px) 18px calc(env(safe-area-inset-bottom) + 20px); background: var(--bar); overflow: hidden; color: #14162B; }
.tk-bg { position: absolute; inset: -50%; background: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 22px, transparent 22px 44px); animation: tk-move 3s linear infinite; }
@keyframes tk-move { to { transform: translate(62px, 0); } }
.tk-card { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 26px; padding: 22px 20px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.tk-bar { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--titre); font-size: 1.1rem; }
.tk-bar img, .tk-bar .id-initial { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; font-size: 1.2rem; }
.tk-kicker { margin: 16px 0 0; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: #5C5F71; }
.ticket .tk-name { font-family: var(--titre); font-size: 2rem; line-height: 1.1; margin: 4px 0; color: #14162B; }
.tk-cost { margin: 0; font-weight: 700; color: #5C5F71; }
.tk-clock { font-family: var(--titre); font-size: 2.6rem; font-variant-numeric: tabular-nums; margin: 14px 0 4px; color: #14162B; animation: tk-pulse 1s ease-in-out infinite; }
@keyframes tk-pulse { 50% { opacity: .55; } }
.tk-hint { margin: 0 0 16px; color: #5C5F71; font-size: .92rem; }
.tk-slide { position: relative; height: 62px; border-radius: 999px; background: #14162B; color: #fff; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; overflow: hidden; }
.tk-label { font-weight: 700; padding-left: 40px; animation: tk-shine 1.6s ease-in-out infinite; }
@keyframes tk-shine { 50% { opacity: .5; } }
.tk-knob { position: absolute; left: 4px; top: 4px; width: 54px; height: 54px; border-radius: 50%; background: var(--bar); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; transition: transform .25s ease; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.tk-slide.busy .tk-label { animation: none; }
.tk-close { position: relative; color: #fff; font-weight: 700; text-decoration: underline; }
.ticket.ok .tk-check { display: block; width: 84px; height: 84px; margin: 18px auto 0; border-radius: 50%; background: #1F8A4C; position: relative; animation: tk-pop .45s ease-out both, tk-ring 1.6s .5s ease-out infinite; }
.ticket.ok .tk-check::after { content: ""; position: absolute; left: 29px; top: 18px; width: 20px; height: 38px; border: solid #fff; border-width: 0 7px 7px 0; transform: rotate(45deg); }
@keyframes tk-pop { from { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.12); } }
@keyframes tk-ring { 0% { box-shadow: 0 0 0 0 rgba(31,138,76,.55); } 100% { box-shadow: 0 0 0 26px rgba(31,138,76,0); } }
.ticket.ok .tk-clock { animation: none; font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .tk-bg { animation-duration: 12s; } }
.tp-code b { font-variant-numeric: tabular-nums; }
.tp-slide { display: flex !important; align-items: center; gap: 8px; margin-top: 8px; background: #14162B; color: #fff !important; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 1em; }
.tp-slide i { width: 2.4em; height: 2.4em; border-radius: 50%; background: #FF4B3E; flex: none; animation: tp-glide 1s 2.9s ease-in-out both; }
@keyframes tp-glide { to { transform: translateX(10.5em); } }
.ticket .tk-close { color: #fff; }
.big-pos { white-space: nowrap; }

/* Filtre de date de l'accueil */
.when-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--puce); border-radius: 999px; padding: 4px; margin: 6px 0 10px; }
.when-tabs button { background: transparent; color: var(--encre); border: 0; min-height: 40px; padding: 0 4px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.when-tabs button.on { background: var(--encre); color: var(--fond); }

/* Équipes : la carte « Mon équipe » et l'invitation WhatsApp */
.team-card { margin-bottom: 14px; }
.team-card h3 { margin: 2px 0 8px; font-size: 1.3rem; }
.team-card summary { display: grid; gap: 2px; cursor: pointer; min-height: 44px; list-style: none; }
.team-card summary::-webkit-details-marker { display: none; }
.team-card summary small { color: var(--doux); }
.team-card .ask-row { margin-top: 12px; }
.members { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.members li { display: flex; justify-content: space-between; align-items: center; min-height: 36px; border-bottom: 1px solid var(--puce); }
.members small { color: var(--doux); }
.invite-btns { display: grid; gap: 8px; margin: 8px 0; }
label.stack { display: grid; gap: 6px; font-weight: 700; margin: 10px 0; }
label.stack input, .team-card .ask-row input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); color: var(--encre); font: inherit; }

/* Espace des établissements : téléphone, tablette, ordinateur (06/11/2026) */
.occ { border-top: 1px solid var(--puce); }
.occ:first-of-type { border-top: 0; }
.occ > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; min-height: 44px; }
.occ > summary::-webkit-details-marker { display: none; }
.occ[open] > summary { padding-bottom: 4px; }
.occ > :not(summary) { margin-left: 0; }
.occ[open] { padding-bottom: 12px; }
.start { border-color: var(--ambre); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--trait); margin-top: 2px; }
.checklist li.ok { color: var(--doux); text-decoration: line-through; }
.checklist li.ok::before { background: #1F8A4C; border-color: #1F8A4C; }
@media (min-width: 640px) {
  body.espace main { max-width: 820px; }
  body.espace .chips-nav { flex-wrap: wrap; overflow: visible; }
  body.espace .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  body.espace header.top { max-width: 1240px; margin: 0 auto; }
  body.espace main:has(> .chips-nav) { max-width: 1240px; display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 32px; row-gap: 0; align-items: start; padding-top: 16px; }
  body.espace main:has(> .chips-nav) > * { grid-column: 2; }
  body.espace main > .chips-nav { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 16px; flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 0; }
  body.espace main > .chips-nav a { border-radius: 12px; padding: 12px 16px; font-size: 1rem; justify-content: space-between; display: flex; }
  body.espace .card { padding: 22px 26px; }
  body.espace .qr-pair { grid-template-columns: 1fr 1fr; }
  body.espace .two { grid-template-columns: 1fr 1fr; }
}
.btn:not(.ghost) { background: var(--rouge-bouton); }
.stats small { display: block; color: var(--doux); font-size: .8rem; }
.occ .count-pill { white-space: nowrap; flex: none; font-size: .82rem; }
@media (max-width: 420px) { .occ > summary { flex-wrap: wrap; } }

/* Atelier de partage d'une soirée */
.share-canvas { width: 100%; max-width: 420px; height: auto; display: block; margin: 12px auto; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.share-fmt { max-width: 320px; }
.share-text { width: 100%; font: inherit; border-radius: 12px; border: 1px solid var(--trait); padding: 10px 12px; background: var(--carte); color: var(--encre); }
.share-btns { justify-content: center; }

/* Le « ! » de Wazaaa sur toutes les cartes de soirée, avec ou sans photo (06/11/2026) */
.ev-media .default::after, .ev-media .default.on-photo::after { content: none; }
.ev-media .bang { position: absolute; right: 16px; top: 4px; font-family: var(--titre); font-weight: 800; font-size: 4rem; line-height: 1.1; color: var(--corail);
  transform: rotate(8deg); text-shadow: 0 2px 10px rgba(20, 22, 43, .45); pointer-events: none; }

/* Bac à sable du moteur d'idées */
.funnel fieldset { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.funnel legend { font-weight: 700; padding: 0 4px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.plan .lead { font-weight: 700; font-size: 1.1rem; }
.card.idea h3 { margin-bottom: 4px; }
.how { margin: 8px 0 0; padding-left: 1.3em; }
.how li { margin: 3px 0; }

/* Recadrage de l'affiche */
.focus { margin: 8px 0 14px; }
.focus-label { font-weight: 700; margin: 0 0 6px; }
.focus-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 2px dashed var(--trait); cursor: grab; touch-action: none; max-width: 560px; }
.focus-frame.drag { cursor: grabbing; border-color: var(--rouge-texte); }
.focus-frame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }

/* Onglet Idées de l'établissement */
.idea-card { border-top: 1px solid var(--puce); padding: 12px 0; }
.idea-card h3 { margin: 0 0 4px; }
.idea-card p { margin: 4px 0; }
.idea-card details summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.hs-offer { border: 2px solid var(--rouge-texte); }

/* « Continuer avec Google » */
.g-btn { min-height: 44px; display: flex; justify-content: center; margin: 10px 0 4px; }
.account .or { text-align: center; color: var(--doux); font-size: .85rem; margin: 6px 0; }
.steps-track { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps-track li { padding: 4px 10px; border-radius: 999px; background: var(--puce); font-size: .85rem; }
.steps-track li.ok { background: #1F8A4C; color: #fff; }
.steps-track li.ok::before { content: "✓ "; }

/* Entonnoir de l'onglet Idées : une question par écran, en grand */
.idea-hero { border: 2px solid var(--rouge-texte); text-align: center; padding: 28px 22px; }
.idea-hero h2 { font-size: 1.9rem; margin-bottom: 6px; }
.idea-hero p { font-size: 1.05rem; }
.btn.big { font-size: 1.15rem; min-height: 56px; padding: 0 30px; }
.funnel-box, .plan-box { padding: 22px; }
.fn-step { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--rouge-texte); margin: 0 0 6px; }
.fn-bar { height: 6px; border-radius: 3px; background: var(--puce); overflow: hidden; margin-bottom: 16px; }
.fn-bar i { display: block; height: 100%; background: var(--rouge-bouton); }
.fn-1 { width: 20%; } .fn-2 { width: 40%; } .fn-3 { width: 60%; } .fn-4 { width: 80%; } .fn-5 { width: 100%; }
.fn-q { font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.tile { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 72px; padding: 12px; border-radius: 16px;
  border: 2px solid var(--trait); background: var(--carte); color: var(--encre); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.tile:hover, .tile:focus-visible { border-color: var(--rouge-texte); }
.tiles.days .tile input { width: 22px; height: 22px; accent-color: var(--rouge-bouton); }
.tiles.days .tile:has(input:checked) { border-color: var(--rouge-texte); background: color-mix(in srgb, var(--rouge-bouton) 12%, var(--carte)); }
.fn-next { width: 100%; min-height: 56px; font-size: 1.1rem; }
.idea-card.big { border: 1px solid var(--trait); border-radius: 16px; padding: 16px; margin: 10px 0; }
.idea-card.big h3 { font-size: 1.25rem; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.plan-chips span { background: var(--puce); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .9rem; }

/* Bilan de l'établissement */
.bilan-hero { border: 2px solid var(--rouge-texte); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.kpi { background: var(--puce); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; position: relative; }
.kpi b { font-family: var(--titre); font-size: 2rem; line-height: 1.1; color: var(--rouge-texte); }
.kpi span { font-weight: 700; }
.kpi small { color: var(--doux); }
.evo { position: absolute; top: 10px; right: 12px; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--carte); }
.evo.up { color: #1F8A4C; } .evo.down { color: var(--rouge-texte); }
.euros { font-size: 1.15rem; } .euros b { font-family: var(--titre); font-size: 2.4rem; color: #1F8A4C; display: block; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 180px; align-items: end; margin: 12px 0 4px; }
.bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar-pair i { display: block; width: 38%; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.b-p, .lg-p { background: var(--rouge-bouton); } .b-w, .lg-w { background: var(--ambre); }
.bar-col span { font-size: .8rem; color: var(--doux); margin-top: 4px; }
.legend { font-size: .85rem; color: var(--doux); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

/* Tuiles avec explication, et « Comment ça marche » du moteur d'idées */
.tile { flex-direction: column; }
.tile small { font-weight: 500; font-size: .85rem; color: var(--doux); line-height: 1.35; }
.tiles.days .tile { flex-direction: row; }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px auto; max-width: 640px; display: grid; gap: 10px; text-align: left; }
.how-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.how-steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--rouge-bouton); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 1.1rem; }
.how-steps span { color: var(--doux); }

/* Le mot du lundi, en tête du Bilan */
.mot-card { border: 2px solid var(--trait); background: var(--carte); }
.mot-text { font-size: 1.12rem; line-height: 1.5; margin: 6px 0 10px; }
.mot-actions { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.mot-actions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--puce); border-radius: 14px; padding: 10px 12px; }
.mot-actions li span { font-weight: 600; }
.mot-actions .btn { flex-shrink: 0; }
@media (max-width: 520px) { .mot-actions li { flex-direction: column; align-items: stretch; } .mot-actions .btn { justify-content: center; } }
.mot-card form .check { margin-top: 10px; }

/* Loi Évin : message sanitaire et numéro utile, en bas de chaque écran ; accès réservé aux 18 ans et plus */
.sante { font-size: .8rem; color: var(--doux); text-align: center; line-height: 1.45; margin: 28px auto 12px; max-width: 520px; padding: 0 16px; }
.sante a { color: inherit; font-weight: 700; white-space: nowrap; }
.age-gate { z-index: 100; background: var(--nav, #14162B); }
.age-card { text-align: center; }
.age-card .age-logo { font-family: var(--titre); font-weight: 800; font-size: 2rem; color: var(--corail); margin: 0; }
.age-card button { width: 100%; margin-top: 10px; }

/* Hors ligne : bandeau en haut de l'app, au-dessus de tout */
.offline-bar { position: sticky; top: 0; z-index: 60; margin: 0; padding: 8px 16px; background: var(--ambre, #FFB547); color: #14162B; font-weight: 700; font-size: .9rem; text-align: center; }
.sheet-pending { background: var(--ambre, #FFB547); color: #14162B; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.book textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); font: inherit; font-weight: 400; resize: vertical; width: 100%; box-sizing: border-box; }

/* Mode soirée de la feuille de points : manches en colonnes, total et place du soir */
.sheet-wrap { overflow-x: auto; margin: 0 -4px 8px; }
table.sheet.rounds { min-width: 100%; }
.sheet.rounds td, .sheet.rounds th { padding: 4px; white-space: nowrap; }
.sheet.rounds td.team { min-width: 130px; white-space: normal; }
.sheet.rounds td.m { width: auto; }
.sheet.rounds td.m input { width: 56px; text-align: center; padding: 0 4px; }
.sheet.rounds td.night { font-family: var(--titre); font-size: 1.2rem; text-align: center; min-width: 48px; }
.sheet.rounds td.rank { font-weight: 800; color: var(--rouge-texte); text-align: center; min-width: 40px; }
.sheet.rounds tr.lead td { background: color-mix(in srgb, var(--ambre, #FFB547) 22%, transparent); }
.sheet.rounds td.team input[name^="n"] { width: 100%; }
.sheet-status { min-height: 1.3em; font-weight: 600; color: var(--doux); margin: 0 0 6px; }
.soir-podium { border: 2px solid var(--trait); border-radius: 16px; padding: 12px 16px; margin: 0 0 14px; background: var(--carte); }
.podium-t { font-weight: 800; margin: 0; }
.sheet-head details { width: 100%; }
.sheet-head details a { display: inline-block; margin: 6px 6px 0 0; }
.soir-podium ol { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.soir-podium li { display: flex; gap: 10px; align-items: baseline; font-size: 1.1rem; }
.soir-podium li b { color: var(--rouge-texte); min-width: 2.5em; }
.soir-podium li span { margin-left: auto; font-weight: 700; }

/* Catalogue des artistes (espace du bar) : fiche puis contact, l'un sous l'autre */
.row.artist { flex-direction: column; align-items: stretch; gap: 4px; }
.row.artist p { margin: 0; }
.artist-filter .two { align-items: end; }

/* Récap d'une soirée passée : le mot du lieu, le podium, les photos */
.recap { display: grid; gap: 8px; }
.recap-head { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.recap-head b { font-family: var(--titre); font-size: 1.1rem; }
.recap-mot { font-style: italic; margin: 0; }
.recap-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.recap-podium li { display: flex; gap: 10px; align-items: baseline; }
.recap-podium li b { color: var(--rouge-texte); min-width: 2.4em; }
.recap-podium li small { margin-left: auto; font-weight: 700; color: var(--doux); }
.recap .gallery a { display: block; }

/* Page d'un lieu : rubriques repliables (récompenses, dernières soirées, classements, carte, horaires) */
.fold { border: 1px solid var(--trait); border-radius: 16px; background: var(--carte); margin: 10px 0; overflow: hidden; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; font-family: var(--titre); font-size: 1.05rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '›'; font-size: 1.4rem; transform: rotate(90deg); transition: transform .2s; color: var(--doux); }
.fold[open] > summary::after { transform: rotate(-90deg); }
.fold-body { padding: 0 14px 14px; }
.fold-body > .card { box-shadow: none; }

/* Prix ou formule, places restantes d'une soirée */
.ev-price { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.ev-price b { background: var(--ambre, #FFB547); color: #14162B; border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.ev-price b.full { background: var(--rouge-bouton); color: #fff; }

/* Réglages du moteur (admin) : une ligne par critère, curseur de 0 à 5 */
.range-row, .admin label.range-row { display: grid; grid-template-columns: 1fr 160px 24px; gap: 10px; align-items: center; margin: 6px 0; }
.range-row input, .admin .range-row input { width: 100%; margin: 0; min-height: 0; padding: 0; }
.range-row b { text-align: right; }
@media (max-width: 520px) { .range-row { grid-template-columns: 1fr 100px 20px; } }

/* Soirée réservée : bandeau en diagonale sur l'image de la carte */
.ev-media { position: relative; overflow: hidden; }
.ribbon { position: absolute; top: 22px; right: -46px; width: 190px; transform: rotate(35deg); text-align: center; padding: 6px 0;
  background: var(--rouge-bouton, #D42F22); color: #fff; font-family: var(--titre); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(20, 22, 43, .35); z-index: 2; pointer-events: none; }
.ribbon.wait { background: var(--ambre, #FFB547); color: #14162B; font-size: .8rem; }
/* Mes sorties : la réservation se touche ; arrivée sur la soirée, la résa clignote une fois */
.resa-open { cursor: pointer; }
.ma-resa { border-left: 4px solid var(--ambre, #FFB547); }
.ma-resa.ok { border-left-color: #1F8A4C; }
.flash { animation: flash 1.4s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--corail, #FF4B3E); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ev-media:has(.ribbon) .bang, .ev-media:has(.ribbon) .default::after { display: none; }
