/* The brand fonts served from the site itself (audit of 2026-10-17: Google's stylesheet blocked the
   first paint, ~0.8 s on a phone). Google's own latin + latin-ext cuts, OFL (fonts/*-OFL.txt). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/work-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/work-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Palette and fonts mirror the light theme of mobile/src/theme/themes.ts.
   Light only, on purpose (2026-10-03): the site does not follow the OS theme. */
:root {
  --bg: #FAF6F0;
  --canvas: #EDE6DA;
  --card: #FFFFFF;
  --soft: #F0E9DD;
  --border: #E5DACB;
  --text: #1F1B16;
  --text-2: #3A342B;
  --muted: #6B6153;
  --accent: #C1622D;
  --night: #2F4858;
  --on-accent: #FFFFFF;
  --display: "Fraunces", Georgia, serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.2rem var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav { align-items: center; }
/* FR | EN — same pill as in the app: both codes, the current one filled. */
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--soft); }
.site-nav .lang-switch a { padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.site-nav .lang-switch a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
/* A phone has no room for brand + two links + the switch: the links are in
   the footer too, the switch must stay. */
@media (max-width: 480px) { .site-nav > a { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none;
  line-height: 1.2;
}
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge small { display: block; font-size: .7rem; opacity: .8; }
.badge strong { font-size: 1.05rem; font-weight: 600; }
.badge.soon { background: transparent; color: var(--muted); border: 1px dashed var(--border); cursor: default; }

/* Phone mock-ups */
.phones { display: flex; justify-content: center; gap: 14px; }
.phone {
  padding: 0; font: inherit; border-radius: 26px; border: 6px solid var(--text);
  background: var(--soft); overflow: hidden; position: relative;
}
/* The ad as the hero's phone (2026-10-13, Deniz): the silent 20 s generic ad, looping */
.phones--video { align-items: flex-start; }
.phone--video { width: min(300px, 78%); max-width: 300px; aspect-ratio: 9 / 16; }
.phone--video video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--soft); }

/* Sample push notification (partner page) */
.notif-stage {
  margin: 0; padding: 48px 24px 20px; border-radius: 28px;
  background: var(--soft);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.notif {
  width: 100%; max-width: 380px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 27, 22, .10);
}
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.notif-head img { width: 18px; height: 18px; border-radius: 5px; }
.notif-time { margin-left: auto; }
.notif-title { margin: 0; font-weight: 600; }
.notif-body { margin: 0; color: var(--text-2); }
.notif-stage figcaption { font-size: .8rem; color: var(--muted); }

/* "Sous le capot" — dark in both themes, on purpose */
.engine {
  --e-bg: #0F1014; --e-card: #1B1D23; --e-border: #2C2F37;
  --e-text: #F2F3F5; --e-muted: #A3A8B4; --e-hot: #E8A33D; --e-warm: #C1622D;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(193, 98, 45, .28), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(92, 127, 166, .22), transparent 70%),
    var(--e-bg);
  color: var(--e-text);
  padding: 72px 0;
  overflow: hidden;
}
.engine .eyebrow { color: var(--e-hot); }
.engine h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 18em; }
.engine .lead { color: var(--e-muted); }

.chaos {
  margin: 40px 0 0; display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .chaos { grid-template-columns: 1.2fr 120px 1fr; } }
.fragments { position: relative; height: 280px; }
.fragment {
  position: absolute; padding: 10px 14px; border-radius: 10px;
  background: var(--e-card); border: 1px solid var(--e-border);
  color: var(--e-text); font-size: .85rem; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: float 6s ease-in-out infinite;
}
.f1 { top: 2%; left: 0; transform: rotate(-4deg); font-family: "Courier New", monospace; letter-spacing: .04em; }
.f2 { top: 54%; left: 0; transform: rotate(3deg); font-style: italic; animation-delay: -1.5s; }
.f3 { top: 20%; right: 0; width: 140px; padding: 0; transform: rotate(6deg); animation-delay: -3s; }
.f4 { bottom: 2%; left: 30%; transform: rotate(-2deg); font-family: var(--display); animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (max-width: 520px) {
  .fragment { font-size: .75rem; }
  .f3 { width: 110px; }
}

.flow { height: 4px; border-radius: 4px; background: var(--e-border); position: relative; overflow: hidden; }
.flow span {
  position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--e-hot), var(--e-warm), transparent);
  animation: flow 1.8s linear infinite;
}
@keyframes flow { from { left: -40%; } to { left: 100%; } }
@media (max-width: 859px) { .flow { width: 4px; height: 56px; margin: 0 auto; } .flow span { width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--e-hot), var(--e-warm), transparent); animation-name: flow-v; } }
@keyframes flow-v { from { top: -40%; } to { top: 100%; } }

.clean {
  display: grid; gap: 6px; padding: 22px; border-radius: 18px;
  background: #FAF6F0; color: #1F1B16;
  box-shadow: 0 0 0 1px rgba(232, 163, 61, .5), 0 20px 60px rgba(193, 98, 45, .35);
}
.clean strong { font: 600 1.3rem var(--display); }
.clean span { color: #6B6153; font-size: .95rem; }
.clean .venue { color: #C1622D; text-decoration: underline; text-underline-offset: 3px; }
.clean .pill {
  justify-self: start; padding: 3px 12px; border-radius: 99px;
  border: 1.5px solid #2F4858; color: #2F4858; font-weight: 600; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.chaos figcaption { grid-column: 1 / -1; font-size: .8rem; color: var(--e-muted); }

.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: none;
}
.steps li {
  position: relative; padding: 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--e-border);
}
.steps h3 { margin-top: 12px; }
.steps p { color: var(--e-muted); margin: 0; font-size: .95rem; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--e-hot), var(--e-warm)); color: #0F1014;
  font-weight: 700;
}

.engine-notif {
  margin-top: 56px; display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) { .engine-notif { grid-template-columns: 1fr 1.2fr; } }
.engine-notif .notif {
  justify-self: center;
  --card: #FAF6F0; --border: rgba(232, 163, 61, .5); --muted: #6B6153; --text-2: #3A342B;
  color: #1F1B16;
  box-shadow: 0 20px 60px rgba(193, 98, 45, .35);
}
.engine-notif > div:last-child p { color: var(--e-muted); margin: 0; }
.engine-notif h3 { font-size: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .fragment, .flow span { animation: none; }
}

/* Sections */
section { padding: 48px 0; }
.alt { background: var(--canvas); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font: 600 .75rem var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--accent); margin-bottom: 10px; }
.night .tag { color: var(--night); }

.cta {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}

/* Long-form pages (privacy, support) */
.doc { padding: 40px 0 56px; }
.doc h2 { margin-top: 1.6em; font-size: 1.4rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.2em; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer .social { display: flex; gap: 16px; align-items: center; }
.site-footer .social a { display: inline-flex; }
.site-footer .social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer .social a:hover { color: var(--accent); }

/* Shared event page (functions/e/[id].js) */
.event-share { padding: 32px 0 56px; }
/* A fixed frame: the flyer's size is unknown until it loads, and the page shifted under it (CLS 0.21, audit of 2026-10-17). */
.event-figure { position: relative; display: flex; justify-content: center; align-items: center; height: min(520px, 100vw); overflow: hidden; border-radius: 18px; margin-bottom: 20px; background: var(--soft); }
.event-figure::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(24px) brightness(.65); }
.event-image { position: relative; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.event-meta { color: var(--text-2); font-weight: 600; }
.event-past { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .9rem; }
.event-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.event-tags span { padding: 2px 12px; border: 1px solid var(--night); border-radius: 999px; color: var(--night); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.event-desc { white-space: pre-line; }
.read-more { padding: 0; border: 0; background: none; font: 600 1em var(--body); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.event-cta { margin: 28px 0 32px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.event-cta h2 { font-size: 1.4rem; }
.open-app { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }

/* Listing pages (/ce-soir, /soirees/<style>, /sorties/<theme>) and the home page's
   « Ce soir » block — functions/_lib/listing.js. */
.listing { padding: 32px 0 48px; }
.listing-lead { color: var(--muted); }
.listing section.ev-day { margin-top: 28px; padding: 0; }
.ev-day h2, .tonight h2, .explore h2 { font-size: 1.4rem; }
.ev-day h3 { font-size: 1.1rem; margin: 22px 0 10px; }
/* A venue page's days sit under its « Programme » h2: h3 in the outline, drawn as the other pages' day h2. */
.ev-day h3.day-title { font-size: 1.4rem; margin: 0 0 .5em; }
.ev-day { scroll-margin-top: 16px; }
.day-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.day-jump a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
  font-weight: 600; text-decoration: none; text-transform: capitalize; }
.ev-fold > summary { list-style: none; cursor: pointer; margin-top: 10px; padding: 12px; text-align: center;
  border: 1px solid var(--border); border-radius: 999px; font-weight: 600; color: var(--accent); }
.ev-fold > summary::-webkit-details-marker { display: none; }
.ev-fold[open] > summary { display: none; }
.ev-fold > .ev-list { margin-top: 12px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border);
      border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none; }
.ev:hover { border-color: var(--accent); }
.ev img { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.ev-text { display: flex; flex-direction: column; min-width: 0; }
.ev-text strong { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ev-meta { color: var(--muted); font-size: .9rem; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ev-tags span { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
                border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; }
.ev-empty { color: var(--muted); }
.ev-credit { color: var(--muted); font-size: .8rem; margin-top: 12px; }
/* A paid promotion (events.is_promoted): « Partenaire », as on the app's cards. */
.partner { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
           background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
           text-transform: uppercase; }
.ev-all { margin-top: 14px; font-weight: 600; }
.tonight { padding: 36px 0 8px; }
.explore { padding: 28px 0; }
.explore h3 { font-size: 1.05rem; margin-top: 18px; }
.explore-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.explore-links a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
                   color: var(--text-2); text-decoration: none; font-size: .95rem; }
.explore-links a:hover { border-color: var(--accent); color: var(--accent); }
.explore-links a.explore-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Cards: the whole card opens the event (a stretched link), the venue's name above it opens
   the venue page. Venue pages: photo, address, description. */
.ev { position: relative; }
.ev-link { color: var(--text); text-decoration: none; }
.ev-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ev-venue { position: relative; z-index: 1; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border); }
.ev-venue:hover { color: var(--accent); text-decoration-color: var(--accent); }
.listing section.place-head, .listing .place-head { padding: 0; }
.place-photo { margin: 0 0 14px; }
.place-photo img { width: 100%; height: min(320px, 56vw); object-fit: cover; border-radius: 14px; display: block; background: var(--soft); }
.place-photo figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.place-address { margin: 0 0 8px; }
.place-desc { color: var(--text-2); }

/* /lieux: search box and « Show more » (functions/_lib/listing.js placesFinder) */
.finder { width: 100%; padding: 12px 16px; margin: 4px 0 16px; font: inherit; color: var(--text);
          background: var(--card); border: 1px solid var(--border); border-radius: 999px; }
.finder:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.more-wrap { text-align: center; margin-top: 16px; }
.more { font: 600 .95rem var(--body); padding: 10px 22px; border-radius: 999px; border: 1px solid var(--accent);
        background: var(--card); color: var(--accent); cursor: pointer; }
.more:hover { background: var(--accent); color: var(--on-accent); }
/* `.ev` is a flex box, which beats the browser's own [hidden] rule: without this, « Voir plus »
   and the search hid nothing (2026-10-10). */
.ev[hidden], .ev-empty[hidden], .more[hidden] { display: none; }
.calendar-link { color: var(--accent); }

/* Read by screen readers, never shown (the search field's label, the result count). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
                   overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The outage notice on a listing page (503, the API did not answer). */
.ev-notice { background: #fff4e5; border: 1px solid #f0c27b; border-radius: 8px; padding: 10px 14px; color: #7a4b00; }
