/* Xero Gas — boutique légale : claire et accueillante, aux couleurs de la station */
:root {
  --l-bg: #F3F7FB;
  --l-surface: #FFFFFF;
  --l-ink: #0B1324;
  --l-muted: #5A6A80;
  --l-line: #DFE7F0;
  --l-accent: #E5243B;
  --l-accent-ink: #FFFFFF;
  --l-accent-soft: #FFE6E9;
  --l-cyan: #12B5EA;
  --l-cyan-soft: #E2F6FD;
  --l-night: #0B1324;
  --l-open: #1E9E5A;  --l-open-bg: #E3F6EA;
  --l-closed: #B5530B; --l-closed-bg: #FFF0DC;
  --l-err: #C0392B;
  --l-radius: 16px;
  --l-font: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--l-bg); color: var(--l-ink); }
body { font-family: var(--l-font); font-size: 15px; line-height: 1.5; min-height: 100vh; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }
:focus-visible { outline: 3px solid var(--l-accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.15; text-wrap: balance; }

.l-wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.l-narrow { max-width: 620px; }
.l-loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; color: var(--l-muted); }
.l-stack { display: flex; flex-direction: column; gap: 12px; }
.l-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.l-between { justify-content: space-between; }
.l-muted { color: var(--l-muted); }
.l-small { font-size: 13px; }
.l-err { color: var(--l-err); font-weight: 700; font-size: 14px; }

/* En-tête */
.l-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(243, 247, 251, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--l-line); }
.l-top .l-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.l-logo { display: inline-flex; align-items: center; gap: 10px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.l-logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--l-night); display: inline-flex; align-items: center; justify-content: center; }
.l-logo-mark span {
  font-weight: 900; font-size: 30px; font-style: italic; line-height: 1; color: var(--l-accent);
  background-image: linear-gradient(115deg, var(--l-accent) 0 50%, var(--l-cyan) 50% 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.l-logo-name { font-weight: 900; font-size: 22px; letter-spacing: 0.02em; font-style: italic; }

/* Logo Xero : le X néon de l'affiche (xero-logo.png) dans une icône noire, puis le nom */
.x-logo { gap: 10px; }
.x-icon { width: 46px; height: 46px; border-radius: 12px; background: #000; box-shadow: 0 4px 12px rgba(11, 19, 36, 0.25); -webkit-user-drag: none; }
.x-text { display: flex; flex-direction: column; line-height: 1.05; }
.x-name { font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: 0.02em; color: var(--l-night); }
.x-logo small { margin-top: 3px; font-weight: 800; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--l-muted); }
.l-logo-name small { display: block; font-weight: 600; font-size: 12px; color: var(--l-muted); letter-spacing: 0; }

/* Boutons */
.l-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--l-line); background: var(--l-surface); color: var(--l-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.l-btn:hover:not(:disabled) { border-color: var(--l-accent); }
.l-btn-primary { border-color: var(--l-accent); background: var(--l-accent); color: var(--l-accent-ink); box-shadow: 0 6px 16px rgba(229, 36, 59, 0.25); }
.l-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.l-btn-lg { min-height: 54px; font-size: 17px; width: 100%; }
.l-btn-text { border: 0; background: transparent; padding: 0 8px; color: var(--l-muted); }
.l-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--l-accent); color: var(--l-accent-ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* Accueil */
.l-hero {
  position: relative; overflow: hidden; margin-top: 20px; padding: 28px 22px 30px; border-radius: 24px;
  background: var(--l-night); color: #FFFFFF; display: flex; flex-direction: column; gap: 12px;
}
/* les bandes rouge et cyan de l'affiche */
.l-hero::before, .l-hero::after { content: ""; position: absolute; right: -60px; width: 340px; height: 22px; transform: rotate(-14deg); border-radius: 4px; }
.l-hero::before { bottom: 40px; background: var(--l-accent); }
.l-hero::after { bottom: 12px; background: var(--l-cyan); }
.l-hero > * { position: relative; z-index: 1; }
.l-hero h1 { font-size: clamp(26px, 6.5vw, 38px); font-style: italic; max-width: 640px; }
.l-hero p { color: #C5D2E3; max-width: 560px; }
.l-values { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.l-values li { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.l-hero .l-notice { max-width: 560px; }
@media (max-width: 640px) { .l-hero { padding-bottom: 76px; } }
.l-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.l-status.open { color: var(--l-open); background: var(--l-open-bg); }
.l-status.closed { color: var(--l-closed); background: var(--l-closed-bg); }
.l-status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.l-notice { padding: 12px 16px; border-radius: 12px; background: var(--l-closed-bg); color: var(--l-closed); font-weight: 700; font-size: 14px; }

/* Catalogue */
.l-search { width: 100%; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--l-line); background: var(--l-surface); font-size: 15px; }
.l-search:focus, .l-input:focus { border-color: var(--l-accent); outline: none; }
.l-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.l-pill { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--l-line); background: var(--l-surface); font-weight: 800; font-size: 14px; }
.l-pill.on { background: var(--l-ink); border-color: var(--l-ink); color: #FFFFFF; }
.l-pill .n { opacity: 0.6; margin-left: 4px; font-weight: 600; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.l-card { background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--l-radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: 0 2px 8px rgba(43, 29, 20, 0.04); }
.l-card-emoji { width: 46px; height: 46px; border-radius: 14px; background: var(--l-cyan-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.l-card-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--l-line); }
.l-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.l-card-img .l-tag { position: absolute; top: 8px; right: 8px; }
.l-card h3 { font-size: 17px; }
.l-card .desc { color: var(--l-muted); font-size: 14px; flex-grow: 1; }
.l-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--l-accent-soft); color: var(--l-accent); font-weight: 800; font-size: 12px; }
.l-price { font-weight: 900; font-size: 19px; }
.l-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--l-accent-soft); }
.l-stepper button { width: 42px; height: 42px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--l-accent); }
.l-stepper span { min-width: 24px; text-align: center; font-weight: 900; }
.l-empty { padding: 22px; border-radius: var(--l-radius); border: 2px dashed var(--l-line); color: var(--l-muted); text-align: center; }

.l-cartbar { position: sticky; bottom: 0; z-index: 5; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--l-surface); border-top: 1px solid var(--l-line); box-shadow: 0 -6px 20px rgba(43, 29, 20, 0.06); }
.l-cartbar .l-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }

/* Panier */
.l-panel { background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--l-radius); padding: 18px; }
.l-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--l-line); }
.l-line:last-child { border-bottom: 0; }
.l-field { display: flex; flex-direction: column; gap: 6px; }
.l-label { font-weight: 800; font-size: 14px; }
.l-input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--l-line); background: var(--l-surface); font-size: 16px; }
.l-input.bad { border-color: var(--l-err); }
textarea.l-input { padding: 12px 16px; min-height: 80px; resize: vertical; }
.l-phone { font-weight: 900; font-size: 20px; letter-spacing: 0.06em; }

/* Confirmation */
.l-done { text-align: center; align-items: center; }
.l-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--l-open-bg); color: var(--l-open); display: inline-flex; align-items: center; justify-content: center; }
.l-ref { font-weight: 900; font-size: 34px; letter-spacing: 0.14em; color: var(--l-accent); }
.l-receipt { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.l-receipt div { display: flex; flex-direction: column; }

/* Bandeau vers le Zenith Bistro */
.l-partner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--l-radius); background: #12302E; color: #F5ECD7; text-decoration: none; font-size: 15px; }
.l-partner b { color: #E2C27A; }
.l-partner-icon { font-size: 26px; }
.l-partner span:last-child { margin-left: auto; font-size: 24px; color: #E2C27A; }

/* « Je suis dispo, appelez-moi » */
.l-avail { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.l-avail.on { padding: 14px 16px; border-radius: 14px; background: var(--l-open-bg); color: #145C38; }
.l-avail.on .l-btn { background: #FFFFFF; }
.l-avail.off { padding: 14px 16px; border-radius: 14px; background: var(--l-closed-bg); color: #7A3A06; }
.l-slot-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--l-surface); border: 1px solid var(--l-line); color: var(--l-ink); }
.l-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.l-fieldset legend { padding: 0; margin-bottom: 6px; }
.l-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 700; }
.l-radio input { width: 20px; height: 20px; accent-color: var(--l-accent); }

/* Le badge « Powered by Netlify » (offre gratuite, fixé en bas à droite, ~50 px)
   ne peut pas être masqué : on lui laisse la place pour qu'il ne cache rien. */
#app { padding-bottom: 56px; }
.l-cartbar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

.l-footer-link { color: inherit; text-decoration: none; }
.l-footer-link:hover { text-decoration: underline; }

.l-footer { padding-block: 28px 40px; color: var(--l-muted); font-size: 13px; text-align: center; }
