/* INSIDE Troyes — style v2 (design 71 écrans) */
@font-face { font-family: "Jakarta"; src: url(../fonts/jakarta.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bleu: #2453F0; --nuit: #1B2E8C; --encre: #0E1B3D; --or: #E2C46E; --or-f: #B8932E; --canal: #3AA0B2; --brume: #F4F6FB;
  --gris: #5B6480; --gris2: #8A93AE; --ligne: #E6E9F2; --bleu-c: #E9EEFE; --vert: #1F7A45; --vert-c: #E3F5EA;
  --rouge: #D93D42; --rouge-c: #FDE8E8; --orange: #B4560C; --orange-c: #FDF0E1; --violet: #5B3FD9; --or-c: #FBF3DA;
  --grad: linear-gradient(135deg, #2F5BF5 0%, #1B2E8C 100%);
  --grad-nuit: linear-gradient(160deg, #1B2E8C 0%, #0E1B3D 100%);
  --grad-or: linear-gradient(135deg, #F2DA8E 0%, #D7B25A 55%, #B8932E 100%);
  --ombre: 0 2px 12px rgba(14, 27, 61, .07);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: "Jakarta", -apple-system, system-ui, sans-serif; font-weight: 500; color: var(--encre); background: #DCE2F2; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 16px; height: 16px; } svg.i.xs { width: 13px; height: 13px; } svg.i.l { width: 28px; height: 28px; }
svg.i.plein { fill: currentColor; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cadre ---------- */
#app { position: relative; max-width: 430px; height: 100dvh; margin: 0 auto; background: var(--brume); overflow: hidden; }
@media (min-width: 600px) and (min-height: 700px) {
  body { display: flex; align-items: center; justify-content: center; gap: 48px;
    background: radial-gradient(circle at 20% 20%, #2453F0 0, transparent 40%), radial-gradient(circle at 80% 90%, #3AA0B2 0, transparent 35%), #0E1B3D; }
  #app { width: 400px; height: min(860px, calc(100dvh - 48px)); margin: 0; border-radius: 44px; box-shadow: 0 0 0 10px #0B1530, 0 30px 80px rgba(0,0,0,.45); }
  .cote { display: block !important; }
}
.cote { display: none; color: #fff; max-width: 300px; }
.cote h2 { font-size: 34px; margin: 22px 0 12px; line-height: 1.1; }
.cote p { opacity: .75; line-height: 1.5; }
.cote small { display: block; margin-top: 26px; opacity: .55; font-size: 12px; line-height: 1.5; }
.cote .demo { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.cote .demo button { text-align: left; background: rgba(255,255,255,.1); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; }

.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 7px; }
.logo b { color: var(--or); font-weight: 800; }
.logo .pin { width: 14px; height: 26px; }

/* ---------- Écrans ---------- */
.page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 18px 104px; scrollbar-width: none; animation: entre .22s ease; }
.page::-webkit-scrollbar { display: none; }
.page.sans-tab { padding-bottom: 110px; }
.page.nu { padding: 0 0 110px; }
.page.fond-nuit { background: var(--grad-nuit); color: #fff; }
.page.fond-blanc { background: #fff; }
@keyframes entre { from { transform: translateY(8px); } to { transform: none; } }
.pile { display: flex; flex-direction: column; gap: 14px; }
.rang { display: flex; align-items: center; gap: 10px; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flex1 { flex: 1; min-width: 0; }
.muted { color: var(--gris); } .petit { font-size: 13px; } .tpetit { font-size: 12px; } .gras { font-weight: 800; }
.mt { margin-top: 18px; } .mt2 { margin-top: 26px; }

.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.entete small { display: block; font-size: 13px; color: var(--gris); font-weight: 600; }
.entete h1 { font-size: 28px; line-height: 1.1; }
.barre { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; min-height: 44px; }
.barre h1 { font-size: 20px; flex: 1; }
.barre h1.centre { text-align: center; }
.actions { display: flex; gap: 10px; }
.rond { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--ombre); position: relative; flex: none; }
.rond.verre { background: rgba(255,255,255,.92); }
.rond.sombre { background: rgba(14,27,61,.35); color: #fff; box-shadow: none; }
.rond.actif { color: var(--rouge); } .rond.actif svg { fill: var(--rouge); }
.rond .pastille, .pastille { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); border: 2px solid #fff; }

.section { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; gap: 10px; }
.section h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.section h2 .eclair { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-or); display: grid; place-items: center; color: var(--encre); }
.lien { color: var(--bleu); font-weight: 700; font-size: 14px; }
.surtitre { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--bleu); text-transform: uppercase; }
.surtitre.or { color: var(--or-f); }
.etiq { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--gris); text-transform: uppercase; margin: 22px 0 10px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 16px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(36,83,240,.25); }
.btn.bloc { width: 100%; } .btn.plein { flex: 1; }
.btn.or { background: var(--grad-or); color: var(--encre); box-shadow: 0 8px 20px rgba(184,147,46,.28); }
.btn.blanc { background: #fff; color: var(--bleu); box-shadow: var(--ombre); }
.btn.ligne { background: #fff; color: var(--encre); border: 1.5px solid var(--ligne); box-shadow: none; }
.btn.ligne-b { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); box-shadow: none; }
.btn.sombre { background: var(--encre); color: #fff; box-shadow: none; }
.btn.rouge { background: var(--rouge); box-shadow: none; }
.btn.ok { background: var(--vert); box-shadow: none; }
.btn.petit { height: 40px; font-size: 14px; padding: 0 16px; border-radius: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 19px; height: 19px; }
.lien-c { display: block; text-align: center; color: var(--gris); font-weight: 700; margin-top: 14px; font-size: 15px; width: 100%; }
.carre { width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ligne); display: grid; place-items: center; flex: none; }
.carre.actif { background: var(--bleu-c); color: var(--bleu); border-color: var(--bleu-c); }

/* ---------- Puces, segments, interrupteurs ---------- */
.puces { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puces.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.puce { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; border: 1.5px solid var(--ligne); flex: none; }
.puce.on { background: var(--bleu-c); color: var(--bleu); border-color: var(--bleu); }
.puce.plein { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.puce.or { background: var(--grad-or); color: var(--encre); border-color: transparent; }
.puce svg { width: 15px; height: 15px; }
.puce .x { margin-left: 2px; opacity: .7; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #E7EBF5; border-radius: 14px; padding: 4px; }
.seg button { height: 38px; border-radius: 11px; font-weight: 700; color: var(--gris); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--bleu); box-shadow: var(--ombre); }
.seg.petit button { height: 32px; font-size: 13px; }
.inter { width: 46px; height: 28px; border-radius: 14px; background: #D3D8E5; position: relative; flex: none; transition: background .2s; }
.inter::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.inter.on { background: var(--bleu); } .inter.on::after { transform: translateX(18px); }
.coche { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #C5CCDD; display: grid; place-items: center; flex: none; background: #fff; }
.coche.on { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.coche.on.rouge { background: var(--rouge); border-color: var(--rouge); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CCDD; flex: none; display: grid; place-items: center; }
.radio.on { border-color: var(--bleu); } .radio.on::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--bleu); }

/* ---------- Cartes génériques ---------- */
.carte { background: #fff; border-radius: 18px; box-shadow: var(--ombre); }
.carte.pad { padding: 14px; }
.liste { background: #fff; border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.liste > * { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; }
.liste > * + * { border-top: 1px solid var(--ligne); }
.liste .ic, .ic-c { width: 38px; height: 38px; border-radius: 11px; background: var(--bleu-c); color: var(--bleu); display: grid; place-items: center; flex: none; }
.liste .ic svg, .ic-c svg { width: 19px; height: 19px; }
.liste b { display: block; font-size: 15px; }
.liste small { display: block; color: var(--gris); font-size: 12.5px; margin-top: 1px; }
.liste .val { color: var(--gris); font-size: 14px; font-weight: 600; }
.liste .chev { color: var(--gris2); width: 18px; height: 18px; }
.liste .rouge { color: var(--rouge); }
.info { display: flex; gap: 10px; align-items: flex-start; background: var(--bleu-c); color: var(--nuit); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; font-weight: 600; }
.info svg { width: 17px; height: 17px; margin-top: 1px; }
.info.or { background: var(--or-c); color: #6B5310; }
.info.nuit { background: var(--grad-nuit); color: #fff; }
.info.nuit b { color: var(--or); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--bleu-c); color: var(--nuit); white-space: nowrap; }
.badge.vert { background: var(--vert-c); color: var(--vert); }
.badge.orange { background: var(--orange-c); color: #8A4208; }
.badge.rouge { background: var(--rouge-c); color: #B42318; }
.badge.or { background: var(--grad-or); color: var(--encre); }
.badge.or-c { background: var(--or-c); color: #6B5310; }
.badge.blanc { background: #fff; color: var(--encre); }
.badge.violet { background: #EEEAFD; color: var(--violet); }
.badge svg { width: 12px; height: 12px; }
.sur { position: absolute; z-index: 2; }

/* ---------- Avatars, niveaux, commerçants ---------- */
.av { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av.s { width: 34px; height: 34px; font-size: 12px; } .av.m { width: 52px; height: 52px; font-size: 17px; } .av.l { width: 84px; height: 84px; font-size: 28px; } .av.xl { width: 100px; height: 100px; font-size: 34px; }
.av.com { border: 2.5px solid var(--or); background: #fff; }
.av .boutique { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 6px; background: var(--encre); color: var(--or); display: grid; place-items: center; border: 2px solid #fff; }
.av .boutique svg { width: 10px; height: 10px; }
.niv { position: absolute; right: -4px; bottom: -4px; width: 19px; height: 19px; display: grid; place-items: center; }
.niv::before { content: ""; position: absolute; inset: 2px; border-radius: 5px; transform: rotate(45deg); background: var(--c, #B8C2D6); border: 2px solid #fff; }
.niv span { position: relative; font-size: 9px; font-weight: 800; color: #fff; }
.niv-in { display: inline-grid; place-items: center; width: 17px; height: 17px; position: relative; vertical-align: -3px; margin-left: 4px; }
.niv-in::before { content: ""; position: absolute; inset: 2px; border-radius: 4px; transform: rotate(45deg); background: var(--c, #B8C2D6); }
.niv-in span { position: relative; font-size: 8.5px; font-weight: 800; color: #fff; }
.losange { width: 96px; height: 96px; display: grid; place-items: center; position: relative; margin: 0 auto; }
.losange::before { content: ""; position: absolute; inset: 14px; border-radius: 18px; transform: rotate(45deg); background: var(--c); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.losange span { position: relative; font-size: 38px; font-weight: 800; color: #fff; }
.tag-com { display: inline-flex; align-items: center; gap: 4px; background: var(--encre); color: var(--or); font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; vertical-align: 2px; }
.tag-com svg { width: 10px; height: 10px; }
.verif { color: var(--bleu); width: 15px !important; height: 15px !important; vertical-align: -2px; }

/* ---------- Hub ---------- */
.hello { display: flex; align-items: center; gap: 12px; }
.hello small { display: block; color: var(--gris); font-size: 13px; }
.hello strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.rech-ia { background: var(--grad); border-radius: 22px; padding: 16px; color: #fff; margin-top: 16px; box-shadow: 0 14px 30px rgba(36,83,240,.28); }
.rech-ia .t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.rech-ia .champ-r { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--encre); border-radius: 14px; height: 48px; padding: 0 14px; margin: 12px 0; }
.rech-ia .champ-r input { border: 0; outline: 0; flex: 1; font-size: 15px; background: none; min-width: 0; }
.rech-ia .puce { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; height: 34px; font-size: 13px; }
.carrousel { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel > * { scroll-snap-align: start; flex: none; }

/* Carte « dernière minute » */
.flash { background: var(--grad-nuit); color: #fff; border-radius: 22px; overflow: hidden; display: block; position: relative; box-shadow: 0 14px 30px rgba(14,27,61,.3); }
.flash .ph { height: 128px; position: relative; }
.flash .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flash .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14,27,61,.85)); }
.flash .tl { position: absolute; left: 12px; top: 12px; z-index: 2; }
.flash .tr { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; background: rgba(14,27,61,.6); padding: 4px 8px; border-radius: 999px; }
.flash .corps { padding: 12px 16px 16px; }
.flash .qui { font-size: 12.5px; color: #C9D2F2; display: flex; align-items: center; gap: 5px; }
.flash h3 { font-size: 18px; margin: 3px 0 10px; line-height: 1.2; }
.flash.mini { width: 300px; }
.jauge { height: 7px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 7px; }
.jauge i { display: block; height: 100%; background: var(--grad-or); border-radius: 4px; }
.jauge.clair { background: var(--ligne); } .jauge.clair i { background: var(--grad); }
.jauge-l { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.chrono { display: flex; align-items: center; gap: 5px; font-weight: 800; }
.chrono b { min-width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 17px; }
.chrono.clair b { background: var(--brume); color: var(--encre); }
.chrono.grand b { min-width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
.chrono-l { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.06); border-radius: 16px; padding: 10px 12px; margin: 10px 0 4px; }
.chrono-l span { font-size: 13px; color: #C9D2F2; display: flex; gap: 6px; align-items: center; }

.ev-ligne { display: flex; gap: 12px; align-items: center; padding: 10px; }
.ev-ligne img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.ev-ligne .h { font-size: 12.5px; color: var(--bleu); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.ev-ligne h3 { font-size: 15px; line-height: 1.25; margin: 2px 0; }
.ev-ligne p { font-size: 12.5px; color: var(--gris); }
.fav { width: 120px; }
.fav .ph { position: relative; }
.fav img { width: 120px; height: 104px; border-radius: 16px; object-fit: cover; display: block; }
.fav .coeur { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--rouge); display: grid; place-items: center; }
.fav .coeur svg { width: 14px; height: 14px; fill: var(--rouge); }
.fav b { display: block; font-size: 13.5px; margin-top: 6px; }
.post-mini img { width: 100%; height: 190px; object-fit: cover; display: block; }

/* ---------- Recherche / carte ---------- */
.champ-rech { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; height: 46px; padding: 0 14px; box-shadow: var(--ombre); border: 1.5px solid var(--ligne); }
.champ-rech.focus { border-color: var(--bleu); }
.champ-rech input { border: 0; outline: 0; flex: 1; font-size: 15px; background: none; min-width: 0; }
.compris { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--ombre); }
.compris .ic-c { width: 32px; height: 32px; background: var(--grad-or); color: var(--encre); }
.res { display: flex; gap: 12px; padding: 10px; align-items: center; }
.res img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; }
.res h3 { font-size: 15px; line-height: 1.25; margin: 4px 0 2px; }
.res p { font-size: 12.5px; color: var(--gris); }
.plan { position: relative; height: 470px; margin: 0 -18px; background: #E9EDF4; overflow: hidden; }
.plan svg.fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-m { position: absolute; width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: translate(-50%, -100%) rotate(-45deg); background: var(--nuit); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(14,27,61,.3); border: 2px solid #fff; }
.pin-m svg { transform: rotate(45deg); color: #fff; width: 18px; height: 18px; }
.pin-m.or { background: var(--grad-or); width: 50px; height: 50px; } .pin-m.or svg { color: var(--encre); }
.pin-m.actif { outline: 3px solid var(--bleu); }
.moi-pt { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); border: 4px solid #fff; box-shadow: 0 0 0 10px rgba(36,83,240,.18); transform: translate(-50%, -50%); }
.plan-carte { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 10px 30px rgba(14,27,61,.2); }

/* ---------- Agenda ---------- */
.semaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 14px 0; }
.jour { background: #fff; border-radius: 14px; padding: 8px 0 10px; text-align: center; box-shadow: var(--ombre); position: relative; }
.jour small { display: block; font-size: 10.5px; font-weight: 700; color: var(--gris); }
.jour b { font-size: 19px; font-weight: 800; }
.jour.on { background: var(--grad); color: #fff; } .jour.on small { color: rgba(255,255,255,.8); }
.jour .pt { position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bleu); }
.jour.on .pt { background: #fff; }
.ag-jour { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--gris); margin: 20px 0 10px; }
.ag-ligne { display: flex; gap: 10px; margin-bottom: 10px; }
.ag-ligne .heure { width: 42px; font-weight: 800; font-size: 13px; padding-top: 14px; flex: none; }
.ag-ligne .carte { flex: 1; display: flex; gap: 12px; padding: 10px; align-items: center; }
.ag-ligne img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; }
.ag-ligne h3 { font-size: 14.5px; line-height: 1.25; }
.ag-ligne .ajout { font-size: 12.5px; font-weight: 800; color: var(--bleu); display: inline-flex; align-items: center; gap: 3px; }
.ag-ligne .ajout.on { color: var(--vert); }

/* ---------- Détails (événement, offre, commerce) ---------- */
.cover { height: 300px; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .nav { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 3; }
.cover .bandeau { position: absolute; left: 16px; bottom: 44px; z-index: 2; }
.feuille { background: var(--brume); border-radius: 26px 26px 0 0; margin-top: -28px; position: relative; padding: 22px 18px; }
.feuille h1 { font-size: 26px; line-height: 1.15; margin: 10px 0 14px; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile { background: #fff; border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--ombre); }
.tuile b { display: block; font-size: 14px; line-height: 1.25; }
.tuile small { color: var(--gris); font-size: 12px; }
.tuile .ic-c { width: 34px; height: 34px; }
.barre-bas { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 18px calc(16px + var(--safe-b)); display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--ligne); z-index: 8; }
.barre-bas.transp { background: linear-gradient(180deg, transparent, var(--brume) 30%); border: 0; padding-top: 30px; flex-direction: column; }
.barre-bas.nuit { background: transparent; border: 0; flex-direction: column; }
.prix-g { font-size: 30px; font-weight: 800; color: var(--bleu); letter-spacing: -.02em; }
.prix-g s { font-size: 16px; color: var(--gris2); font-weight: 600; margin-left: 6px; }
.meta-l { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; }
.meta-l div { display: flex; gap: 10px; align-items: center; }
.meta-l svg { width: 18px; height: 18px; color: var(--gris); }
.com-tete { display: flex; align-items: center; gap: 12px; }
.com-tete h1, .com-tete h2 { font-size: 22px; margin: 0; }
.onglets { display: flex; gap: 20px; border-bottom: 1px solid var(--ligne); margin: 18px 0 14px; }
.onglets button { padding: 10px 0; font-weight: 700; color: var(--gris); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.onglets button.on { color: var(--bleu); border-color: var(--bleu); }

/* ---------- Marketplace ---------- */
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp { display: block; overflow: hidden; }
.bp .ph { height: 108px; position: relative; }
.bp .ph img { width: 100%; height: 100%; object-fit: cover; }
.bp .ph .badge { position: absolute; left: 8px; top: 8px; }
.bp .t { padding: 10px 12px 12px; }
.bp .qui { font-size: 12px; color: var(--gris); display: flex; align-items: center; gap: 4px; }
.bp h3 { font-size: 14.5px; line-height: 1.2; margin: 3px 0; }
.bp p { font-size: 12px; color: var(--gris); }

/* ---------- Ticket / code ---------- */
.billet { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(14,27,61,.12); position: relative; }
.billet .haut { height: 110px; position: relative; }
.billet .haut img { width: 100%; height: 100%; object-fit: cover; }
.billet .decoupe { border-top: 2px dashed var(--ligne); margin: 0 14px; position: relative; }
.billet .decoupe::before, .billet .decoupe::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brume); }
.billet .decoupe::before { left: -26px; } .billet .decoupe::after { right: -26px; }
.billet .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.billet .champs small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--gris); }
.billet .champs b { font-size: 14px; }
.qr { background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.coupon-nuit { background: var(--grad-nuit); color: #fff; border-radius: 22px; padding: 14px; position: relative; }
.coupon-nuit .decoupe { border-top: 2px dashed rgba(255,255,255,.2); margin: 12px -2px; position: relative; }
.coupon-nuit .decoupe::before, .coupon-nuit .decoupe::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--brume); }
.coupon-nuit .decoupe::before { left: -26px; } .coupon-nuit .decoupe::after { right: -26px; }
.coupon-nuit small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #9FAAD0; }

/* ---------- Succès ---------- */
.succes { text-align: center; padding-top: 40px; position: relative; }
.succes .bulle { width: 110px; height: 110px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 10px rgba(36,83,240,.1), 0 16px 34px rgba(36,83,240,.35); }
.succes .bulle.or { background: var(--grad-or); color: var(--encre); box-shadow: 0 0 0 10px rgba(226,196,110,.18), 0 16px 34px rgba(184,147,46,.35); }
.succes .bulle svg { width: 46px; height: 46px; }
.succes h1 { font-size: 28px; }
.succes > p { color: var(--gris); margin: 8px 20px 20px; line-height: 1.45; }
.confettis i { position: absolute; width: 8px; height: 8px; border-radius: 2px; }
.etapes-v { background: #fff; border-radius: 18px; padding: 6px 16px; box-shadow: var(--ombre); text-align: left; }
.etapes-v > div { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.etapes-v .pt { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C5CCDD; display: grid; place-items: center; flex: none; background: #fff; z-index: 1; }
.etapes-v .pt.ok { border-color: var(--vert); color: var(--vert); }
.etapes-v .pt.cours { border-color: var(--bleu); } .etapes-v .pt.cours::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.etapes-v b { display: block; font-size: 14.5px; }
.etapes-v small { color: var(--gris); font-size: 12.5px; }
.etapes-v .gris b { color: var(--gris); }

/* ---------- Inscription ---------- */
.onb-accueil { position: absolute; inset: 0; background: var(--brume); overflow-y: auto; }
.onb-accueil .photo { height: 330px; position: relative; }
.onb-accueil .photo img { width: 100%; height: 100%; object-fit: cover; }
.onb-accueil .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,61,.35), transparent 35%, transparent 60%, var(--brume)); }
.onb-accueil .photo .logo { position: absolute; left: 20px; top: 24px; z-index: 2; color: #fff; }
.onb-accueil .txt { padding: 0 18px 30px; margin-top: -20px; position: relative; }
.onb-accueil h1 { font-size: 30px; line-height: 1.1; }
.onb-accueil h1 em { font-style: normal; color: var(--or-f); }
.choix-g { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 20px; width: 100%; text-align: left; margin-top: 12px; }
.choix-g.clair { background: var(--bleu-c); border: 2px solid var(--bleu); }
.choix-g.nuit { background: var(--grad-nuit); color: #fff; }
.choix-g .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.choix-g.nuit .ic { background: var(--grad-or); color: var(--encre); }
.choix-g b { display: block; font-size: 16px; }
.choix-g small { font-size: 13px; opacity: .8; }
.etape-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.etape-h .prog small { font-size: 12px; font-weight: 700; color: var(--gris); }
.etape-h .traits { display: flex; gap: 3px; margin-top: 5px; }
.etape-h .traits i { width: 11px; height: 4px; border-radius: 2px; background: #D3D8E5; }
.etape-h .traits i.on { background: var(--bleu); }
.etape-h .traits.l i { width: 30px; }
.etape-h .passer { margin-left: auto; font-weight: 700; color: var(--gris); font-size: 14px; }
.onb-t h1 { font-size: 26px; line-height: 1.15; }
.onb-t > p { color: var(--gris); margin: 6px 0 18px; font-size: 14.5px; line-height: 1.45; }
.lbl { font-weight: 800; font-size: 14px; margin: 18px 0 8px; display: block; }
.champ { width: 100%; height: 50px; border: 1.5px solid var(--ligne); background: #fff; border-radius: 14px; padding: 0 14px; font-size: 16px; outline: none; }
textarea.champ { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.champ:focus { border-color: var(--bleu); }
select.champ { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6480' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.t2 { grid-template-columns: 1fr 1fr; } .tiles.t4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border: 1.5px solid var(--ligne); border-radius: 16px; min-height: 84px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 13px; text-align: center; position: relative; }
.tile svg { width: 22px; height: 22px; }
.tile.on { border-color: var(--bleu); background: var(--bleu-c); color: var(--bleu); }
.tile.on::after { content: ""; position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.opt-l { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--ligne); border-radius: 16px; padding: 12px 14px; width: 100%; text-align: left; margin-bottom: 10px; }
.opt-l.on { border-color: var(--bleu); background: var(--bleu-c); }
.opt-l .ic-c { background: var(--grad); color: #fff; }
.opt-l b { display: block; font-size: 15px; } .opt-l small { color: var(--gris); font-size: 12.5px; }
.code-sms { display: flex; gap: 8px; }
.code-sms input { width: 48px; height: 58px; border-radius: 14px; border: 1.5px solid var(--ligne); background: #fff; text-align: center; font-size: 24px; font-weight: 800; outline: none; }
.code-sms input:focus { border-color: var(--bleu); }
.photo-ajout { display: flex; align-items: center; gap: 14px; }
.photo-ajout label { width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--bleu); display: grid; place-items: center; color: var(--bleu); position: relative; cursor: pointer; overflow: hidden; flex: none; }
.photo-ajout label img { width: 100%; height: 100%; object-fit: cover; }
.photo-ajout label .plus { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--ligne); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--bleu); box-shadow: var(--ombre); }
.creneaux { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 5px; align-items: center; font-size: 12px; color: var(--gris); font-weight: 700; }
.creneaux button { height: 28px; border-radius: 7px; background: #E7EBF5; }
.creneaux button.on { background: var(--grad-or); }
.pret { background: var(--grad-nuit); color: #fff; text-align: center; padding: 50px 20px 60px; position: relative; overflow: hidden; }
.pret h1 { font-size: 30px; margin-top: 14px; }
.pret-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -34px 18px 0; position: relative; }
.pret-tuiles .carte { padding: 14px; }
.pret-tuiles svg { color: var(--bleu); }
.pret-tuiles b { display: block; font-size: 16px; margin-top: 8px; }
.pret-tuiles small { color: var(--gris); font-size: 12.5px; }
.pret-tuiles + .carte small, button.carte small.muted { display: block; }

/* ---------- Communauté ---------- */
.stories { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 4px 18px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; flex: none; width: 64px; }
.story .cercle { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: var(--grad-or); }
.story .cercle.vu { background: #D3D8E5; }
.story .cercle .av { width: 100%; height: 100%; border: 3px solid var(--brume); font-size: 18px; }
.story .cercle.ajout { background: none; border: 2px dashed var(--bleu); display: grid; place-items: center; color: var(--bleu); }
.composer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.composer span { flex: 1; color: var(--gris); font-size: 14.5px; }
.composer svg { color: var(--bleu); }
.post { margin-bottom: 14px; overflow: hidden; }
.post .tete { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0; }
.post .tete b { display: block; font-size: 15px; }
.post .tete small { color: var(--gris); font-size: 12.5px; }
.post .txt { padding: 10px 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.post .media img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.post .pied { display: flex; gap: 18px; padding: 10px 14px 12px; color: var(--gris); font-size: 14px; font-weight: 600; align-items: center; }
.post .pied button { display: inline-flex; align-items: center; gap: 6px; color: var(--gris); }
.post .pied svg { width: 18px; height: 18px; }
.post .pied .on { color: var(--rouge); } .post .pied .on svg { fill: var(--rouge); }
.post .pied .push { margin-left: auto; }
.comm { display: flex; gap: 10px; margin-bottom: 14px; }
.comm .bulle-c { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px; box-shadow: var(--ombre); }
.comm .bulle-c b { font-size: 13.5px; display: block; margin-bottom: 2px; }
.comm .act { display: flex; gap: 14px; font-size: 12px; color: var(--gris); font-weight: 700; margin: 5px 0 0 4px; align-items: center; }
.comm .act .c { color: var(--rouge); }
.comm.rep { margin-left: 44px; }
.saisie { display: flex; gap: 8px; align-items: center; }
.saisie input { flex: 1; height: 44px; border-radius: 22px; border: 1.5px solid var(--ligne); background: var(--brume); padding: 0 16px; outline: none; font-size: 15px; min-width: 0; }
.saisie .env { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.saisie .plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ligne); display: grid; place-items: center; flex: none; background: #fff; }
/* Visionneuse de story */
.story-v { position: absolute; inset: 0; background: #000; color: #fff; z-index: 30; }
.story-v img.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-v::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 20%, transparent 75%, rgba(0,0,0,.55)); pointer-events: none; }
.story-v .haut { position: absolute; left: 12px; right: 12px; top: 14px; z-index: 3; }
.story-v .barres { display: flex; gap: 4px; margin-bottom: 10px; }
.story-v .barres i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-v .barres i b { display: block; height: 100%; background: #fff; width: 0; }
.story-v .barres i.vu b { width: 100%; }
.story-v .barres i.cours b { animation: story 5s linear forwards; }
@keyframes story { to { width: 100%; } }
.story-v .texte { position: absolute; left: 24px; top: 36%; z-index: 3; background: #fff; color: var(--encre); font-weight: 800; font-size: 20px; padding: 8px 14px; border-radius: 10px; transform: rotate(-4deg); }
.story-v .sticker { position: absolute; left: 34px; right: 34px; top: 48%; z-index: 3; background: #fff; color: var(--encre); border-radius: 14px; padding: 8px; display: flex; gap: 10px; align-items: center; }
.story-v .sticker img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.story-v .bas { position: absolute; left: 12px; right: 12px; bottom: calc(16px + var(--safe-b)); z-index: 3; display: flex; gap: 12px; align-items: center; }
.story-v .bas input { flex: 1; height: 44px; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; padding: 0 16px; outline: none; }
.story-v .bas input::placeholder { color: rgba(255,255,255,.75); }
.story-v .zone { position: absolute; top: 80px; bottom: 90px; z-index: 2; width: 35%; }
.story-v .zone.g { left: 0; } .story-v .zone.d { right: 0; }
.cam { position: absolute; inset: 0; background: #000; color: #fff; z-index: 30; }
.cam .apercu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .modes { position: absolute; bottom: calc(26px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; gap: 24px; font-weight: 800; font-size: 13px; letter-spacing: .08em; z-index: 3; }
.cam .modes button { color: rgba(255,255,255,.6); } .cam .modes button.on { color: #fff; }
.cam .declen { position: absolute; bottom: calc(70px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 5px solid var(--or); z-index: 3; }
.cam .galerie { position: absolute; bottom: calc(84px + var(--safe-b)); left: 26px; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 2px solid #fff; z-index: 3; }
.cam .galerie img { width: 100%; height: 100%; object-fit: cover; }
.cam .haut { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 3; }
.editeur-story { position: relative; height: 380px; margin: -18px -18px 0; overflow: hidden; }
.editeur-story img { width: 100%; height: 100%; object-fit: cover; }
.editeur-story .t1 { position: absolute; left: 20px; top: 90px; background: var(--encre); color: #fff; font-weight: 800; font-size: 22px; padding: 8px 14px; border-radius: 10px; transform: rotate(-4deg); }
.editeur-story .t2 { position: absolute; left: 90px; top: 150px; background: #fff; color: var(--bleu); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 8px; transform: rotate(4deg); display: flex; align-items: center; gap: 5px; }
.editeur-story .t3 { position: absolute; left: 30px; top: 196px; background: rgba(255,255,255,.85); color: var(--bleu); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 8px; }
.editeur-story .outils { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; }

/* ---------- Entraide ---------- */
.hero-entraide { height: 140px; border-radius: 22px; overflow: hidden; position: relative; color: #fff; }
.hero-entraide img { width: 100%; height: 100%; object-fit: cover; }
.hero-entraide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,27,61,.85), rgba(14,27,61,.15)); }
.hero-entraide div { position: absolute; left: 16px; top: 30px; z-index: 2; }
.hero-entraide h2 { font-size: 21px; line-height: 1.15; }
.hero-entraide p { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.cats-e { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cats-e button { background: #fff; border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; box-shadow: var(--ombre); border: 1.5px solid transparent; }
.cats-e button.on { border-color: var(--bleu); }
.cats-e .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.demande { padding: 14px; margin-bottom: 12px; }
.demande .txt { margin: 10px 0 12px; font-size: 14.5px; line-height: 1.45; }
.demande .btns { display: flex; gap: 10px; }
.demande .btns .btn { height: 44px; font-size: 14px; border-radius: 12px; }
.recap { background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; box-shadow: var(--ombre); }
.recap div { display: flex; gap: 10px; align-items: center; }
.recap svg { width: 17px; height: 17px; color: var(--gris); }
.niveau-carte { background: var(--grad-nuit); color: #fff; border-radius: 22px; padding: 22px 18px 18px; text-align: center; }
.niveau-carte .jauge { margin: 14px 0 8px; }
.niv-ligne { display: flex; gap: 12px; align-items: center; }
.losange-p { width: 36px; height: 36px; position: relative; display: grid; place-items: center; flex: none; }
.losange-p::before { content: ""; position: absolute; inset: 5px; border-radius: 7px; transform: rotate(45deg); background: var(--c); }
.losange-p span { position: relative; color: #fff; font-weight: 800; font-size: 14px; }
.niv-ligne.verrou { opacity: .55; }

/* ---------- Messages ---------- */
.conv { display: flex; gap: 12px; align-items: center; padding: 11px 0; width: 100%; text-align: left; }
.conv b { font-size: 15px; } .conv p { font-size: 13.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv.nonlu p { color: var(--encre); font-weight: 700; }
.conv .heure { font-size: 12px; color: var(--gris); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.compteur { min-width: 20px; height: 20px; border-radius: 10px; background: var(--bleu); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.chat-h { position: absolute; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ligne); padding: 14px 14px 12px; display: flex; gap: 10px; align-items: center; z-index: 5; }
.chat-h b { display: block; font-size: 15.5px; } .chat-h small { font-size: 12.5px; color: var(--gris); }
.chat-h small.vert { color: var(--vert); font-weight: 700; }
.fil { position: absolute; top: 70px; bottom: 76px; left: 0; right: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.fil .jour-s { align-self: center; font-size: 12px; font-weight: 700; color: var(--gris); background: #E7EBF5; padding: 4px 10px; border-radius: 999px; margin: 6px 0; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.msg.moi { align-self: flex-end; align-items: flex-end; }
.msg .auteur { font-size: 12px; font-weight: 700; color: var(--gris); margin-left: 40px; }
.msg .ligne-m { display: flex; gap: 8px; align-items: flex-end; }
.msg .b { background: #fff; border-radius: 18px 18px 18px 6px; padding: 10px 13px; font-size: 15px; line-height: 1.4; box-shadow: var(--ombre); white-space: pre-line; word-break: break-word; }
.msg.moi .b { background: var(--grad); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg .b.com { background: var(--or-c); border: 1px solid #EEDDA6; }
.msg .b.img { padding: 4px; } .msg .b.img img { width: 200px; border-radius: 14px; display: block; }
.msg .vu { font-size: 11px; color: var(--gris); }
.msg-carte { width: 250px; border-radius: 16px; overflow: hidden; background: var(--grad-nuit); color: #fff; }
.msg-carte img { width: 100%; height: 110px; object-fit: cover; display: block; }
.msg-carte div { padding: 10px 12px; }
.reponses-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.reponses-r button { border: 1.5px solid var(--bleu); color: var(--bleu); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.chat-b { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--ligne); padding: 10px 12px calc(12px + var(--safe-b)); z-index: 5; }
.alerte-com { background: var(--or-c); color: #6B5310; font-size: 12.5px; border-radius: 12px; padding: 9px 12px; display: flex; gap: 8px; font-weight: 600; line-height: 1.4; }

/* ---------- Profil ---------- */
.profil-h { background: var(--grad-nuit); color: #fff; margin: -18px -18px 0; padding: 18px 18px 74px; position: relative; overflow: hidden; }
.profil-h::after { content: ""; position: absolute; right: -80px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.profil-c { text-align: center; margin-top: -60px; position: relative; }
.profil-c .av { margin: 0 auto; border: 4px solid var(--brume); }
.profil-c h1 { font-size: 24px; margin-top: 10px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; margin-top: 16px; }
.stats3 > div { text-align: center; } .stats3 > div + div { border-left: 1px solid var(--ligne); }
.stats3 b { display: block; font-size: 21px; } .stats3 span { font-size: 12.5px; color: var(--gris); }
.epargne { background: var(--grad); color: #fff; border-radius: 22px; padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.epargne b { font-size: 30px; display: block; letter-spacing: -.02em; }
.wallet { display: flex; align-items: stretch; overflow: hidden; margin-bottom: 12px; }
.wallet .g { flex: 1; display: flex; gap: 12px; padding: 12px; align-items: center; }
.wallet img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.wallet .d { width: 74px; border-left: 2px dashed var(--ligne); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--bleu); font-size: 12px; font-weight: 800; }
.wallet.nuit { background: var(--grad-nuit); color: #fff; }
.wallet.nuit .d { border-color: rgba(255,255,255,.2); color: var(--or); }

/* ---------- Espace commerçant ---------- */
.pro-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.pro-h img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.pro-h h1 { font-size: 21px; }
.live { background: var(--grad-nuit); color: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 14px 30px rgba(14,27,61,.3); }
.live h2 { font-size: 20px; margin: 10px 0; }
.live .direct { color: #5BE38C; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.live .direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5BE38C; }
.live .stats-l { display: flex; gap: 14px; font-size: 12.5px; color: #C9D2F2; margin-top: 10px; }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.actions3 button, .actions3 a { background: #fff; border-radius: 18px; padding: 14px 10px; text-align: left; box-shadow: var(--ombre); display: block; }
.actions3 .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.actions3 b { font-size: 14px; display: block; } .actions3 small { font-size: 12px; color: var(--gris); line-height: 1.3; display: block; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 14px; }
.kpi svg { color: var(--bleu); }
.kpi b { display: block; font-size: 26px; margin-top: 8px; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--gris); }
.pub-l { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 10px; }
.pub-l img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.pub-l .vues { margin-left: auto; color: var(--bleu); font-weight: 800; font-size: 13px; white-space: nowrap; }
.fiche-h { position: relative; height: 200px; margin: -18px -18px 0; }
.fiche-h img.f { width: 100%; height: 100%; object-fit: cover; }
.fiche-id { display: flex; align-items: flex-end; gap: 12px; margin-top: -36px; position: relative; padding: 0 2px; }
.stat-c { padding: 14px; } .stat-c b { font-size: 24px; display: block; } .stat-c span { font-size: 12.5px; color: var(--gris); }
.barre-s { margin-top: 12px; } .barre-s .l { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.barre-s .jauge { margin: 0; }
.flash-l { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.flash-l .pct { font-size: 12px; font-weight: 800; width: 40px; }
.zone-carte { height: 150px; border-radius: 16px; background: #E9EDF4; position: relative; overflow: hidden; }
.zone-carte .cercle { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: rgba(36,83,240,.14); border: 2px solid var(--bleu); transform: translate(-50%, -50%); transition: width .3s, height .3s; }
.zone-carte .pinc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--bleu); }
.zone-carte .rayon { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--bleu); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.stepper { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--ligne); border-radius: 14px; height: 50px; padding: 0 6px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; background: var(--brume); font-size: 20px; font-weight: 800; color: var(--bleu); }
.stepper b { flex: 1; text-align: center; font-size: 18px; }
.ecran-verrou { border-radius: 22px; overflow: hidden; position: relative; height: 210px; color: #fff; }
.ecran-verrou img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.ecran-verrou .h { position: absolute; top: 18px; left: 0; right: 0; text-align: center; }
.ecran-verrou .h b { font-size: 40px; font-weight: 700; display: block; letter-spacing: -.02em; }
.ecran-verrou .h small { font-size: 13px; }
.notif-push { background: rgba(245,246,250,.95); color: var(--encre); border-radius: 18px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.notif-push .app { width: 34px; height: 34px; border-radius: 9px; background: var(--encre); display: grid; place-items: center; flex: none; }
.notif-push small { font-size: 11px; color: var(--gris); font-weight: 700; letter-spacing: .04em; }
.notif-push b { display: block; font-size: 14px; }
.notif-push p { font-size: 13px; line-height: 1.35; }
.ecran-verrou .notif-push { position: absolute; left: 14px; right: 14px; bottom: 16px; }
.scan { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #1B2440, #05070D); color: #fff; z-index: 20; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.scan .cadre { position: absolute; left: 50%; top: 40%; width: 230px; height: 230px; transform: translate(-50%, -50%); }
.scan .cadre i { position: absolute; width: 46px; height: 46px; border: 4px solid var(--or); }
.scan .cadre i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scan .cadre i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scan .cadre i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scan .cadre i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan .ligne-s { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--or); box-shadow: 0 0 12px var(--or); animation: balaye 2s ease-in-out infinite alternate; }
@keyframes balaye { from { top: 14px; } to { top: 214px; } }

/* ---------- Barre d'onglets ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 9px 4px calc(10px + var(--safe-b)); border-top: 1px solid var(--ligne); z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--gris2); position: relative; }
.tabbar a.on { color: var(--bleu); }
.tabbar svg { width: 23px; height: 23px; }
.tabbar .pastille { top: -2px; right: calc(50% - 16px); }
.fab { position: absolute; right: 18px; bottom: calc(92px + var(--safe-b)); z-index: 9; }

/* ---------- Toast, feuilles, voile ---------- */
.toast { position: absolute; left: 18px; right: 18px; top: max(16px, env(safe-area-inset-top)); background: var(--encre); color: #fff; padding: 13px 16px; border-radius: 16px; font-weight: 700; z-index: 60; display: flex; gap: 10px; align-items: center; animation: toast .3s ease; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; }
.toast svg { color: var(--or); }
.toast.notif { background: rgba(250,250,252,.98); color: var(--encre); padding: 10px 12px; }
.toast.notif .app { width: 34px; height: 34px; border-radius: 9px; background: var(--encre); display: grid; place-items: center; flex: none; }
.toast.notif small { display: block; font-size: 11px; color: var(--gris); }
@keyframes toast { from { transform: translateY(-14px); } to { transform: none; } }
.voile { position: absolute; inset: 0; background: rgba(14,27,61,.5); z-index: 40; display: flex; align-items: flex-end; }
.feuille-m { background: var(--brume); width: 100%; max-height: 90%; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); animation: monte .25s ease; }
@keyframes monte { from { transform: translateY(40px); } }
.feuille-m .poignee { width: 40px; height: 5px; border-radius: 3px; background: #C9D0E2; margin: 0 auto 16px; }
.feuille-m h2 { font-size: 21px; margin-bottom: 12px; }
.vide { text-align: center; color: var(--gris); padding: 34px 10px; }
.vide svg { width: 38px; height: 38px; color: #B8C0D8; margin-bottom: 8px; }
.demo-note { font-size: 11.5px; color: var(--gris); text-align: center; margin-top: 10px; }

/* Écran avec bouton du bas ET barre d'onglets */
.page.double { padding-bottom: 190px; }
.page.double ~ .barre-bas { bottom: calc(60px + var(--safe-b)); padding-bottom: 12px; }
.page.double ~ .barre-bas.transp { padding-top: 20px; }

/* ---------- iPhone / Android : encoche et barre d'état (0 dans un navigateur) ---------- */
.page { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.page.nu { padding-top: 0; }
.chat-h { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.fil { top: calc(70px + env(safe-area-inset-top, 0px)); }
.story-v .haut, .cam .haut { top: calc(14px + env(safe-area-inset-top, 0px)); }
.onb-accueil .photo .logo { top: calc(24px + env(safe-area-inset-top, 0px)); }
.profil-h, .fiche-h, .editeur-story { margin-top: calc(-18px - env(safe-area-inset-top, 0px)); }
.profil-h { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.editeur-story .outils { top: calc(16px + env(safe-area-inset-top, 0px)); }
.pret { padding-top: calc(50px + env(safe-area-inset-top, 0px)); }

/* ---------- Sécurité & aide ---------- */
.compteur-car { display: block; text-align: right; font-size: 11.5px; color: var(--gris); margin-top: 4px; }
.hors-ligne { position: absolute; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 55; background: var(--encre); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 14px; display: flex; gap: 8px; align-items: center; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; float: right; color: var(--bleu); font-weight: 800; } details[open] > summary::after { content: "–"; }

/* ---------- Points, défis, récompenses ---------- */
.ic-c.or { background: var(--grad-or); color: var(--encre); }
.ic-c.vert { background: #E3F7EA; color: var(--vert); }
.or-t { color: #B8932E; }
.pts-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; background: var(--grad-nuit); color: var(--or); font-weight: 800; font-size: 13px; white-space: nowrap; }
.pts-pill svg { width: 13px; height: 13px; }
.liste .defi { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.defi .jauge { margin: 6px 0 2px; height: 6px; }
.defi.fait b:first-child { text-decoration: line-through; opacity: .6; }
.verrou-c { opacity: .6; }
.verrou-c .d { color: var(--gris); }
.nuit-s { background: var(--grad-nuit); color: #fff; border-radius: 26px; padding: 30px 18px 26px; margin-bottom: 14px; }
.nuit-s p { color: #C9D2F2; }
.code-unique { font-size: 28px; font-weight: 800; letter-spacing: .5em; text-align: center; height: 64px; }
/* Mode serveur : rien de « démo », pas de bouton inactif */
.serveur .demo-note, .serveur [data-a="pas-dispo"], .serveur [data-a="onb-email"] { display: none !important; }
.serveur:not(.f-google) [data-a="onb-social"][data-v="Google"], .serveur:not(.f-apple) [data-a="onb-social"][data-v="Apple"] { display: none !important; }
