/* OrtiCharge — doux et arrondi : bandeau rouge Ortis en tête, feuille claire qui remonte par-dessus,
   cartes blanches très arrondies, étiquettes pastel, accent rouge Ortis. Aucune ombre portée.
   Layout : bandeau (titre + sélection) → feuille de contenu ; onglets + bouton « Réserver » flottant en bas sur mobile, onglets dans le bandeau sur grand écran. */
:root {
  color-scheme: light;
  --band: #d60020;
  --band-deep: #b0001b;
  --bg: #f3f3f5;
  --surface: #ffffff;
  --surface-2: #e8e8ec;
  --ink: #22252b;
  --ink-2: #4a4e57;
  --muted: #7d818a;
  --line: #e0e0e5;
  --accent: #d60020;
  --accent-soft: #fde4e7;
  --mine-ink: #9a4700;      /* texte orange foncé, lisible sur fond orange clair */
  --volt: var(--accent);
  --volt-ink: #ffffff;
  --free: #2f9e73;
  --booked: #4f72b8;
  --mine: #f07d1a;
  --mine-soft: #fdd9b5;
  --alert: #d60020;
  --off: #9a9ea6;
  --scrim: rgba(34, 37, 43, .4);

  --f-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow-gold { color: var(--mine-ink); }

.card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--surface); }

/* ---------- Bandeau ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
:root { --cells: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2254%22 height=%2231.177%22 viewBox=%220 0 54 31.177%22%3E%3Cpath d=%22M18.00,0.00 L9.00,15.59 L-9.00,15.59 L-18.00,0.00 L-9.00,-15.59 L9.00,-15.59ZM72.00,0.00 L63.00,15.59 L45.00,15.59 L36.00,0.00 L45.00,-15.59 L63.00,-15.59ZM45.00,15.59 L36.00,31.18 L18.00,31.18 L9.00,15.59 L18.00,0.00 L36.00,-0.00ZM18.00,31.18 L9.00,46.77 L-9.00,46.77 L-18.00,31.18 L-9.00,15.59 L9.00,15.59ZM72.00,31.18 L63.00,46.77 L45.00,46.77 L36.00,31.18 L45.00,15.59 L63.00,15.59ZM-9.00,15.59 L-18.00,31.18 L-36.00,31.18 L-45.00,15.59 L-36.00,0.00 L-18.00,-0.00ZM99.00,15.59 L90.00,31.18 L72.00,31.18 L63.00,15.59 L72.00,0.00 L90.00,-0.00Z%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%220.11%22 stroke-width=%221.4%22/%3E%3C/svg%3E"); --cells-lit: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2254%22 height=%2231.177%22 viewBox=%220 0 54 31.177%22%3E%3Cpath d=%22M18.00,0.00 L9.00,15.59 L-9.00,15.59 L-18.00,0.00 L-9.00,-15.59 L9.00,-15.59ZM72.00,0.00 L63.00,15.59 L45.00,15.59 L36.00,0.00 L45.00,-15.59 L63.00,-15.59ZM45.00,15.59 L36.00,31.18 L18.00,31.18 L9.00,15.59 L18.00,0.00 L36.00,-0.00ZM18.00,31.18 L9.00,46.77 L-9.00,46.77 L-18.00,31.18 L-9.00,15.59 L9.00,15.59ZM72.00,31.18 L63.00,46.77 L45.00,46.77 L36.00,31.18 L45.00,15.59 L63.00,15.59ZM-9.00,15.59 L-18.00,31.18 L-36.00,31.18 L-45.00,15.59 L-36.00,0.00 L-18.00,-0.00ZM99.00,15.59 L90.00,31.18 L72.00,31.18 L63.00,15.59 L72.00,0.00 L90.00,-0.00Z%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%220.45%22 stroke-width=%221.6%22/%3E%3C/svg%3E"); --cells-size: 54px 31.177px; }
/* Bandeau : cellules de batterie (nid d'abeille) + lueur de charge qui traverse lentement les cellules, en boucle */
.band {
  color: #fff; position: relative; overflow: hidden;
  background-color: var(--band);
  background-image:
    radial-gradient(70% 120% at 85% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(120, 0, 18, .25) 100%),
    var(--cells);
  background-size: auto, auto, var(--cells-size);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--cells-lit); background-size: var(--cells-size);
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
          mask-image: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: charge 11s ease-in-out infinite; animation-delay: inherit;
}
.band-inner { position: relative; z-index: 1; }
@keyframes charge {
  0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  65%, 100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) { .band::before { animation: none; opacity: 0; } }
.band-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px 62px; }
.topbar { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.login-title { display: flex; align-items: center; gap: 12px; }
.logo-tile { width: 48px; height: 48px; border-radius: 16px; background: var(--band); padding: 5px; flex: none; }
.logo-tile svg { width: 100%; height: 100%; display: block; }
.brand { min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font: 600 11px/1 var(--f-body); color: rgba(255, 255, 255, .85); margin-top: 3px; }
.topbar .spacer { flex: 1; }
.clock { white-space: nowrap; font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center;
  background: #fff; color: var(--band-deep); font-weight: 800; font-size: 13px;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; background: var(--accent-soft); color: var(--accent); }
.avatar.ghost { background: var(--surface-2); color: var(--muted); }

.hero { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.hero .page-title h1 { color: #fff; }
.hero .eyebrow { color: rgba(255, 255, 255, .86); }
.hero .hint { color: rgba(255, 255, 255, .92); }
.hero .demo-badge { background: #fff; color: var(--band); }
.page-title { display: flex; flex-direction: column; gap: 4px; }
.page-title h1 { font-size: clamp(32px, 7vw, 44px); }

.tabs { display: flex; gap: 4px; }
.tab {
  border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; position: relative; transition: background .2s ease, color .2s ease;
}
.tab svg { width: 20px; height: 20px; flex: none; }
.tab .dot { position: absolute; top: 5px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--mine); border: 2px solid #fff; }
.tabs-top { display: none; }
.tabs-top .tab { color: rgba(255, 255, 255, .9); }
.tabs-top .tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tabs-top .tab[aria-current="page"] { background: #fff; color: var(--band-deep); }

/* ---------- Feuille de contenu ---------- */
.paper { flex: 1; margin-top: -34px; background: var(--bg); border-radius: 34px 34px 0 0; position: relative; }
.paper-inner { max-width: 1120px; margin: 0 auto; padding: 26px 20px calc(var(--nav-h) + 48px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 20px; }

/* ---------- Barre du bas + bouton flottant ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line);
  padding: 8px 96px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
}
.bottomnav .tabs { justify-content: space-around; }
.bottomnav .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; color: #9a9ea6; flex: 1; border-radius: 16px; }
.bottomnav .tab svg { width: 26px; height: 26px; }
.bottomnav .tab[aria-current="page"] { color: var(--band-deep); }
.bottomnav .tab .dot { right: 22%; }
.fab {
  position: absolute; right: 18px; top: -26px; width: 64px; height: 64px; border-radius: 50%;
  border: 6px solid var(--bg); background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }
.fab[aria-current="page"] { background: var(--band-deep); }

@media (min-width: 860px) {
  .tabs-top { display: flex; }
  .bottomnav { display: none; }
  .band-inner { padding: 18px 24px 70px; }
  .paper-inner { padding: 34px 24px 56px; gap: 24px; }
}

/* ---------- Blocs génériques ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; }

.btn {
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--band-deep); color: #fff; }
.btn-volt { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); }
.btn-ghost:hover { background: #dedee3; }
.btn-danger { background: var(--accent-soft); color: var(--band-deep); }
.btn-sm { padding: 8px 15px; min-height: 36px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 4px 11px;
  font-size: 12.5px; font-weight: 800; white-space: nowrap; align-self: flex-start;
  background: color-mix(in srgb, currentColor 13%, #fff);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.free { color: var(--free); }
.chip.booked { color: var(--booked); }
.chip.mine { color: var(--mine-ink); }
.chip.mine::before { background: var(--mine); }
.chip.alert { color: var(--alert); }
.chip.off { color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input {
  width: 100%; border: 1.5px solid transparent; background: var(--bg); border-radius: var(--r-md);
  padding: 12px 16px; font-size: 16px; font-weight: 600; min-height: 50px; transition: border-color .2s ease;
}
.input::placeholder { color: #a3afb9; }
.input:focus { outline: none; border-color: var(--band); background: #fff; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.hint { font-size: 13px; color: var(--muted); }
.hint:empty { display: none; }
.req { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-left: 6px; }
.error-text { font-size: 13px; color: var(--alert); font-weight: 700; }

/* ---------- Pavé « aujourd'hui » ---------- */
.today { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.today.has-mine { background: var(--mine-soft); }
.today-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.today-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; flex: 1 1 200px; }
/* Météo du créneau */
.wx { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, .72); flex: 0 1 330px; min-width: 0; }
.wx-art { width: 58px; height: 58px; flex: none; }
.wx-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wx-temp { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.wx-temp span { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.wx-phrase { font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.wx-src { font-size: 11px; color: var(--muted); }
.wx-sun { fill: #f5b301; stroke: #f5b301; }
.wx-cloud { fill: #ffffff; stroke: #c4c9d2; stroke-width: 1.6; }
.wx-cloud2 { fill: #dfe3e9; stroke: #c4c9d2; stroke-width: 1.6; }
.wx-rain { stroke: #4f72b8; fill: none; }
.wx-snow, .wx-snowdot { fill: #8fb3e8; }
.wx-fog { stroke: #aab1bc; fill: none; }
.wx-bolt { fill: #f5b301; }
.today-top .eyebrow { width: 100%; }
.today-top .big { font-family: var(--f-display); font-weight: 700; font-size: 28px; }
.today-top .sub { color: var(--ink-2); font-size: 15px; }
.today-mine, .today-none { border-top: 1.5px dashed color-mix(in srgb, var(--ink) 14%, transparent); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.today-none { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 14px; }
.today-none p { flex: 1; min-width: 200px; }

/* ---------- Bannières ---------- */
.banner { --tone: var(--booked); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--tone) 12%, #fff); }
.banner-mine { --tone: var(--mine); }
.banner-alert { --tone: var(--alert); }
.banner-info { --tone: var(--booked); }
.banner-free { --tone: var(--free); }
.today .banner { background: rgba(255, 255, 255, .75); }
.banner-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.banner-row > .grow { flex: 1; min-width: 200px; }
.banner h3, .today-mine h3 { font-size: 19px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bay {
  font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1;
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: var(--band); color: #fff;
}
.today.has-mine .bay { background: var(--accent); }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.contact-line a { font-weight: 700; }

/* ---------- Pavés des bornes ---------- */
.bornes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .bornes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bornes { grid-template-columns: repeat(5, 1fr); } }
.borne {
  --st: var(--off);
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  padding: 16px 16px 16px 10px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--st) 15%, rgba(255, 255, 255, .7));
  border: 1px solid color-mix(in srgb, var(--st) 18%, transparent);
  transition: transform .25s ease;
}
@media (hover: hover) { .borne:hover { transform: translateY(-3px); } }
@media (min-width: 1000px) {
  .borne { grid-template-columns: 1fr; padding: 20px 16px 16px; gap: 12px; align-content: start; }
  .borne .quick { width: 100%; align-self: stretch; white-space: nowrap; font-size: 12.5px; padding: 8px 10px; gap: 6px; }
  .borne .art { justify-self: center; width: 106px; }
  .borne .timeline { grid-template-columns: 1fr; }
}
.borne .art { width: 92px; }
.borne-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.borne-name h3 { font-size: 20px; }
.borne .chip { background: rgba(255, 255, 255, .8); max-width: 100%; white-space: normal; line-height: 1.25; }
.borne-who { font-size: 14px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.seg { border-radius: 14px; padding: 7px 10px; font-size: 12px; line-height: 1.3; background: rgba(255, 255, 255, .72); min-width: 0; border: 1.5px solid transparent; }
.seg b { display: block; font-weight: 700; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.seg.is-free span { color: var(--free); }
.seg.is-mine span { color: var(--mine-ink); }
.seg.is-now { background: #fff; border-color: color-mix(in srgb, var(--st) 45%, transparent); }
.seg.is-past { opacity: .5; }

/* ---------- Illustration SVG ---------- */
.art svg { width: 100%; height: auto; display: block; overflow: visible; }
.b-halo, .b-glyph, .b-led { fill: var(--st, var(--off)); }
.b-num { font-family: var(--f-display); font-weight: 700; font-size: 22px; fill: #3d4148; }
.b-cable { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.b-flow { fill: none; stroke: var(--st); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 10; opacity: 0; }
.is-live .b-flow { opacity: .95; animation: flow 1.2s linear infinite; }
.is-live .b-led, .is-live .b-halo { animation: pulse 2s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .is-live .b-flow, .is-live .b-led, .is-live .b-halo { animation: none; } }
.st-free { --st: var(--free); }
.st-booked { --st: var(--booked); }
.st-mine { --st: var(--mine); }
.st-alert { --st: var(--alert); }
.st-off { --st: var(--off); }

/* ---------- Réserver : semaine dans le bandeau ---------- */
.rules-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.rules-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--band); }
.days { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; justify-content: space-between; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 1 0 50px; max-width: 110px; border: 0; background: transparent; color: #fff; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px;
}
.day .wd { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .86); text-transform: capitalize; }
.day .dn { font-family: var(--f-display); font-weight: 700; font-size: 19px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease; }
.day:hover .dn { background: rgba(255, 255, 255, .12); }
.day .avail { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.day .avail.none { color: #ffe08a; }
.day[aria-pressed="true"] .dn { background: #fff; color: var(--band-deep); }
.day .tick { position: absolute; top: 26px; right: calc(50% - 30px); width: 18px; height: 18px; border-radius: 50%; background: var(--mine); color: #fff; display: grid; place-items: center; border: 2px solid var(--band); }
.day .tick svg { width: 9px; height: 9px; }
.day[aria-pressed="true"] .tick { border-color: #fff; }

.slots { display: grid; gap: 16px; }
@media (min-width: 860px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-head h3 { font-size: 20px; }
.slot-head .mono { font-size: 13px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tile {
  --st: var(--off);
  border: 0; border-radius: 20px; padding: 10px 4px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--st) 15%, rgba(255, 255, 255, .7));
  transition: transform .2s ease, background .2s ease;
}
.tile .art { width: 100%; max-width: 50px; }
.tile .t-label { font-size: 11.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; color: color-mix(in srgb, var(--st) 70%, var(--ink)); }
.tile.free { --st: var(--free); }
.tile.booked { --st: var(--booked); }
.tile.mine { --st: var(--mine); }
.tile.free:hover:not([disabled]) { transform: translateY(-3px); background: color-mix(in srgb, var(--st) 24%, #fff); }
.tile[disabled] { cursor: default; }
.tile.free[disabled] { --st: var(--off); opacity: .55; }

/* ---------- Réservations ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.resa { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.resa .when { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.resa .when strong { font-family: var(--f-display); font-size: 18px; }
.resa .confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.resa.today-resa { background: var(--mine-soft); border-color: var(--mine-soft); }
.empty { padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .art { width: 76px; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 19px; }
.me { display: flex; align-items: center; gap: 14px; }
.me .avatar { width: 56px; height: 56px; font-size: 18px; background: var(--band); color: #fff; }
.status-line { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }

/* ---------- Feuille / fenêtre ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; opacity: 0; transition: opacity .25s ease; }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 90vh; overflow: auto;
  background: var(--surface); border-radius: 32px 32px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; gap: 16px;
}
.sheet.open { transform: translateY(0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.sheet h2 { font-size: 24px; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(540px, calc(100% - 32px)); border-radius: 32px; padding: 26px 28px;
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet .grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { transition: none; } }
.summary { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 22px; background: var(--bg); }
.summary .art { width: 58px; flex: none; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }

.people { display: flex; flex-direction: column; max-height: 38vh; overflow: auto; border-radius: var(--r-md); background: var(--bg); padding: 4px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; text-align: left; border-radius: 14px; transition: background .15s ease; }
.person:hover { background: rgba(255, 255, 255, .7); }
.person[aria-pressed="true"] { background: #fff; }
.person .p-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 800; text-align: left; }
.preset { display: inline-flex; align-items: center; gap: 8px; }
.preset[aria-pressed="true"] { background: var(--accent); color: #fff; }
.sub-label { margin-top: 6px; }
.opt { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 4px; text-transform: lowercase; }
.borne .quick { align-self: flex-start; margin-top: 4px; position: relative; z-index: 1; }

/* ---------- Notifications à l'écran ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
@media (min-width: 860px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--band); color: #fff; border-radius: 22px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; animation: toast-in .3s cubic-bezier(.2, .8, .2, 1); }
.toast .t-ico { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--band); display: grid; place-items: center; flex: none; }
.toast .t-ico svg { width: 16px; height: 16px; }
.toast.err { background: var(--band-deep); }
.toast.err .t-ico { background: #fff; color: var(--band-deep); }
.toast strong { display: block; }
.toast p { font-size: 13px; opacity: .92; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background-color: var(--band); background-image: linear-gradient(180deg, transparent 0 38%, var(--bg) 38%), var(--cells); background-size: auto, var(--cells-size); }
.login-card { width: min(440px, 100%); padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.login-hero { display: flex; gap: 4px; align-items: end; justify-content: center; padding: 8px 0 4px; }
.login-hero .art { width: 54px; }
.login-hero .art:nth-child(3) { width: 70px; }
.login h1 { font-size: 34px; }
.sent { display: flex; flex-direction: column; gap: 12px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.demo-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 8px; }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 480px) { .topbar .clock { display: none; } .day .avail { font-size: 10px; } }

/* ---------- Check-in, liste d'attente, agenda ---------- */
.checkin-note { font-size: 13px; font-weight: 600; color: var(--mine-ink); margin-top: 4px; }
.today-mine .chip { margin-top: 6px; }
.waitline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: var(--bg); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.waitline span { display: inline-flex; align-items: center; gap: 8px; }
.waitline svg { width: 16px; height: 16px; flex: none; }
.resa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--free); color: #fff; display: grid; place-items: center; }
.done-mark svg { width: 28px; height: 28px; }
.agenda-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .agenda-btns { grid-template-columns: 1fr; } }
/* Plaque façon européenne : bande bleue + code pays (B / L) */
.plate { display: inline-flex; align-items: stretch; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: #1b1f24; background: #fff; border: 1.5px solid #1b1f24; border-radius: 5px; overflow: hidden; margin-top: 3px; line-height: 1.5; white-space: nowrap; }
.plate b { background: #1f4bb3; color: #fff; font-size: 9.5px; padding: 0 4px; display: grid; place-items: center; letter-spacing: 0; }
.plate { padding-right: 6px; gap: 5px; }
.person .plate { margin: 0 0 0 10px; vertical-align: 1px; }
.person .p-name { display: flex; align-items: center; }
.plate-row { display: flex; flex-direction: column; gap: 8px; }
.plate-country { max-width: 320px; grid-template-columns: 1fr 1fr; }
.plate-field { display: flex; align-items: stretch; border: 2px solid #1b1f24; border-radius: 12px; overflow: hidden; background: #fff; max-width: 320px; }
.plate-eu { background: #1f4bb3; color: #fff; font-weight: 800; font-size: 15px; width: 40px; display: grid; place-items: center; flex: none; }
.plate-field .plate-input { border: 0; border-radius: 0; background: #fff; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 18px; min-height: 48px; }
.plate-field .plate-input:focus { border: 0; }
.plate-field:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* ---------- Gestion ---------- */
.admin { grid-column: 1 / -1; }
.admin h3 { display: flex; align-items: center; gap: 8px; }
.admin h3 svg { width: 20px; height: 20px; color: var(--band); }
.seg-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; max-width: 460px; }
.seg-btn { border: 0; background: transparent; padding: 8px 6px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--band-deep); }
.admin-list { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--bg); padding: 4px; max-height: 420px; overflow: auto; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; flex-wrap: wrap; }
.admin-row + .admin-row { border-top: 1px solid var(--line); }
.admin-row .grow { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.admin-row .grow .muted { font-size: 13px; }
.admin-row .chip { margin-left: 6px; vertical-align: 2px; font-size: 11px; padding: 2px 8px; }
.admin-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-add .input { flex: 1 1 180px; min-height: 44px; padding: 10px 14px; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--band); }
.bay.sm { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
.stack-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Recherche par plaque ---------- */
.plate-search { display: flex; align-items: stretch; background: #fff; border: 2.5px solid #1b1f24; border-radius: 16px; overflow: hidden; max-width: 460px; }
.plate-search .plate-eu { width: 52px; font-size: 14px; }
.plate-search .plate-input { border: 0; border-radius: 0; background: #fff; font-size: 24px; min-height: 60px; letter-spacing: .1em; font-weight: 800; color: #1b1f24; }
.plate-search .plate-input:focus { border: 0; }
.plate-search:focus-within { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }
.plate-hit { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border: 0; width: 100%; }
.plate-hit .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.plate-hit strong { font-size: 16px; }
.plate-hit .muted { font-size: 13px; }
.plate-empty svg { width: 44px; height: 44px; color: var(--band); }
.msg-banner .avatar { background: var(--booked); color: #fff; }
@media (max-width: 420px) { .bottomnav { padding-right: 88px; } .bottomnav .tab { font-size: 10px; padding: 6px 2px; } }
.plate-hit .avatar { background: var(--band); color: #fff; }

/* Plaques réalistes : belge (blanc, caractères rouges) et luxembourgeoise (jaune, caractères noirs) */
.plate-search, .plate-field { transition: background-color .25s ease, border-color .25s ease; }
.plate-search .plate-input, .plate-field .plate-input { background: transparent; transition: color .25s ease; }
.plate-search .plate-input:focus, .plate-field .plate-input:focus { background: transparent; }
.plate-search .plate-eu, .plate-field .plate-eu { background: #039; margin: 4px 0 4px 4px; border-radius: 9px 3px 3px 9px; padding: 3px 0; }
.plate-field .plate-eu { width: 34px; border-radius: 7px 3px 3px 7px; margin: 3px 0 3px 3px; }
.plate-search .plate-eu { width: 44px; }
.plate-eu svg { display: block; width: 100%; height: 100%; }
.plate-search.is-b, .plate-field.is-b { background: #fff; border-color: #c8102e; }
.is-b .plate-input { color: #c8102e; }
.is-b .plate-input::placeholder { color: rgba(200, 16, 46, .32); }
.plate-search.is-l, .plate-field.is-l { background: #f7c600; border-color: #1b1f24; }
.is-l .plate-input { color: #111; }
.is-l .plate-input::placeholder { color: rgba(0, 0, 0, .3); }
.plate b { background: #039; }
.plate.is-b { color: #c8102e; border-color: #c8102e; }
.plate.is-l { background: #f7c600; color: #111; }
/* Liseré intérieur comme sur les vraies plaques (reste visible sur le bandeau rouge) */
.plate-search, .plate-field { position: relative; }
.plate-search .plate-input { text-transform: uppercase; }
.plate-search .plate-input::placeholder { font-size: 16px; letter-spacing: .03em; font-weight: 700; text-transform: none; }
.plate-search.is-b, .plate-field.is-b { border-color: #fff; }
.plate-search.is-l, .plate-field.is-l { border-color: #f7c600; }
.plate-search.is-b::after, .plate-field.is-b::after,
.plate-search.is-l::after, .plate-field.is-l::after { content: ""; position: absolute; inset: 0; border: 2px solid #c8102e; border-radius: 12px; pointer-events: none; }
.plate-field.is-b::after, .plate-field.is-l::after { border-width: 1.5px; border-radius: 9px; }
.plate-search.is-l::after, .plate-field.is-l::after { border-color: #1b1f24; }
/* Pas de bordure noire sur les champs de plaque */
.plate-search { border-color: #fff; }
.plate-field { border-color: var(--line); }
.plate-search.is-l::after, .plate-field.is-l::after { content: none; }
.plate.is-l { border-color: #d9a800; }
/* Plaque des résultats : un peu plus grande, aux couleurs du pays */
.plate-hit .plate { font-size: 14px; border-width: 2px; border-radius: 7px; padding-right: 8px; gap: 7px; margin-top: 4px; }
.plate-hit .plate b { font-size: 11px; padding: 0 6px; }
/* Contact : boutons ronds à picto seul (téléphone, Teams, e-mail) */
.contact-btns { display: flex; gap: 12px; align-items: center; margin: 4px 0; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--band-deep); text-decoration: none; flex: none; transition: background-color .15s, transform .1s; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: #fbd0d6; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.icon-btn.is-off { background: var(--bg); color: var(--off); cursor: not-allowed; }
/* Réserver : une borne par ligne pour lire le nom complet */
.tiles { display: flex; flex-direction: column; gap: 8px; }
.tile { flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 16px; text-align: left; width: 100%; }
.tile .art { width: 30px; max-width: none; flex: none; }
.tile .t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tile .t-num { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--st) 55%, var(--muted)); }
.tile .t-label { font-size: 15.5px; font-weight: 700; padding: 0; color: color-mix(in srgb, var(--st) 45%, var(--ink)); }
.tile .t-side { flex: none; display: flex; align-items: center; }
.tile .t-side .plate { margin-top: 0; }
.tile .t-cta { font-size: 13px; font-weight: 800; color: #fff; background: var(--free); padding: 7px 14px; border-radius: 999px; }
.tile .t-tick { width: 26px; height: 26px; border-radius: 50%; background: var(--mine); color: #fff; display: grid; place-items: center; }
.tile .t-tick svg { width: 15px; height: 15px; }
.tile.free:hover:not([disabled]) { transform: none; }
.tile:not([disabled]):active { transform: scale(.985); }

/* Connexion Microsoft 365 */
.ms-logo { width: 18px; height: 18px; flex: none; }
#ms-login { gap: 10px; }
#privacy-link { align-self: center; }
/* Confidentialité */
.privacy p { font-size: 14px; line-height: 1.55; margin: 0 0 10px; color: var(--ink-2); }
.privacy strong { color: var(--ink); }
.panel h3 svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; color: var(--band); }

/* Mise à jour disponible : bandeau discret au-dessus de la navigation */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: min(440px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  background: var(--ink, #1f2328); color: #fff; border-radius: 22px; animation: toast-in .3s cubic-bezier(.2, .8, .2, 1); }
.update-bar .ub-ico { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--band); display: grid; place-items: center; flex: none; }
.update-bar .ub-ico svg { width: 16px; height: 16px; }
.update-bar .ub-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.update-bar .ub-txt small { opacity: .75; font-size: 12px; }
.update-bar .btn { background: var(--band); color: #fff; border: 0; flex: none; }
@media (min-width: 860px) { .update-bar { bottom: 24px; left: auto; right: 24px; transform: none; } }
body:has(#update-bar) .toasts { bottom: calc(var(--nav-h) + 112px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 860px) { body:has(#update-bar) .toasts { bottom: 112px; } }
