/* CRM Seikai : les codes de seikai.fr (Paper, Ink, bleu profond, mandarine en signal, Funnel). */
@font-face { font-family: 'Funnel Display'; src: url('/fonts/FunnelDisplay-Variable.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Funnel Sans'; src: url('/fonts/FunnelSans-Variable.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --paper: #f3f4f6;
  --ink: #14171c;
  --muted: #4a4f58;
  --line: #d2d5db;
  --line-soft: #e7e9ee;
  --card: #ffffff;
  --blue: #055dbb;
  --blue-deep: #002f8d;
  --blue-on-dark: #037dff;
  --blue-tint: #e6effa;
  --mist: #cadcef;
  --signal: #ff8a3d;
  --panel: #1f2228;
  --panel-raised: #2a2e35;
  --warn-bg: #fef9c3;
  --warn-text: #a16207;
  --display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --shadow-card: 0 6px 26px rgb(16 24 40 / 8%);
  --shadow-soft: 0 1px 2px rgb(20 23 28 / 6%);
  --ring: 0 0 0 3px rgb(5 93 187 / 28%);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.4 'Funnel Sans', system-ui, sans-serif; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--blue); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* En-tête : blanc translucide, logo en couleur, comme seikai.fr --------------- */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 60px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: rgb(255 255 255 / 88%); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(20 23 28 / 8%); color: var(--ink);
}
.logo { height: 26px; width: auto; flex: none; margin-left: 4px; }
#back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink); }
#back:active { background: var(--line-soft); }
#title { flex: 1; min-width: 0; margin: 0; font: 500 19px/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#status { min-height: 44px; min-width: 44px; margin-left: auto; padding: 0; border: 0; background: none; flex: none; }
.pill, .label {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgb(20 23 28 / 8%); background: #fff; box-shadow: 0 1px 2px rgb(20 23 28 / 4%);
  font: 400 13px/1 var(--display); color: var(--muted); white-space: nowrap;
}
.pill::before, .label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.label.signal::before { background: var(--signal); }
#status.is-off .pill::before { background: #9aa1ad; }
#status.is-warn .pill { background: var(--warn-bg); color: var(--warn-text); border-color: #f3e27a; font-weight: 600; }
#status.is-warn .pill::before { background: var(--warn-text); }
.gate #status, .gate #nav { display: none; }

/* Contenu ------------------------------------------------------------------- */
main { max-width: 680px; margin: 0 auto; padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); }
main.is-form { padding-bottom: 0; }
main.is-wide { max-width: 1240px; }
h2 { margin: 0; font: 500 24px/1.1 var(--display); letter-spacing: -0.02em; }
.section-title { margin: 10px 0 0; font: 500 20px/1.15 var(--display); letter-spacing: -0.02em; }
.accent { color: var(--blue); }
.stop { color: var(--ink); }
.hint { margin: -8px 0 0; font-size: 14px; font-weight: 300; letter-spacing: 0.04em; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; font-weight: 300; letter-spacing: 0.04em; color: var(--muted); }

/* Bandeau d'accueil : fond blanc qui tourne au bleu brumeux, bandes animées */
.hero {
  position: relative; isolation: isolate; overflow: hidden; margin: -16px -16px 4px; padding: 26px 16px 22px;
  background: linear-gradient(to bottom, #ffffff 38%, var(--mist) 100%);
}
.hero .landing-stripes {
  position: absolute; inset: 0; z-index: -1; opacity: .3;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent);
}
/* Comme le hero du site : le bas du bandeau se fond dans le Paper. */
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--paper)); }
.hero-title { margin: 14px 0 0; font: 500 clamp(30px, 8.4vw, 46px)/1.02 var(--display); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hero-lede { margin: 10px 0 0; font-size: 17px; font-weight: 300; line-height: 1.35; letter-spacing: 0.04em; color: var(--muted); }

/* Navigation du bas --------------------------------------------------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex;
  background: rgb(255 255 255 / 92%); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid rgb(20 23 28 / 8%); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  position: relative; flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font: 500 12px/1 var(--display);
}
.bottom-nav a[aria-current='page'] { color: var(--blue); }
.bottom-nav a[aria-current='page']::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }

/* Boutons, comme les CTA du site ---------------------------------------------- */
.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 9px;
  background: var(--blue); color: #fff; font: 500 16px/1 var(--display); letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 30px -10px rgb(5 93 187 / 70%);
  transition: background-color .15s, transform .15s;
}
.primary:hover, .primary:active { background: var(--blue-deep); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .6; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: 500 15px/1 var(--display); letter-spacing: 0;
  transition: border-color .15s;
}
.ghost:hover { border-color: #8b9099; }
.ghost.wide { width: 100%; min-height: 52px; font-size: 16px; }
.ghost.blue { color: var(--blue); }
.danger { color: #8a2c0d; border-color: #e7c4b4; }
.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Champs -------------------------------------------------------------------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .field:nth-child(n + 3) { grid-column: 1 / -1; }
.fields.two .field:nth-child(n + 3) { grid-column: auto; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .group-label { font: 500 14px/1.2 var(--display); letter-spacing: 0; color: var(--muted); }
input:not([type='checkbox']), textarea, select {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input:not([type='checkbox']), textarea { -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #80868f; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; min-height: 22px; accent-color: var(--blue); }

/* Choix --------------------------------------------------------------------- */
.group { display: flex; flex-direction: column; gap: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-soft); /* sans transition : le choix se voit tout de suite */
}
.chip[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 8px 20px -10px rgb(5 93 187 / 70%); }
.chips-even { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.chips-even .chip { padding: 0 4px; min-height: 52px; font: 500 16px/1 var(--display); letter-spacing: 0; }

/* Chaud, Tiède, Froid : trois couleurs, le choix en plein */
.chip.h-chaud { background: #ffe6d6; border-color: #ffc9a6; }
.chip.h-tiede { background: var(--warn-bg); border-color: #f3e27a; }
.chip.h-froid { background: var(--blue-tint); border-color: #b4d0ef; }
.chip.h-chaud[aria-pressed='true'] { background: var(--signal); border-color: var(--signal); color: var(--ink); box-shadow: 0 8px 20px -10px rgb(255 138 61 / 80%); }
.chip.h-tiede[aria-pressed='true'] { background: #facc15; border-color: #facc15; color: var(--ink); box-shadow: 0 8px 20px -10px rgb(250 204 21 / 80%); }
.chip.h-froid[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: #fff; }
.heat { flex: none; padding: 4px 10px; border-radius: 999px; font: 500 13px/1.2 var(--display); color: var(--ink); }
.heat.h-chaud { background: var(--signal); }
.heat.h-tiede { background: #facc15; }
.heat.h-froid { background: var(--blue); color: #fff; }

/* Avis ---------------------------------------------------------------------- */
.notice { margin: 0; padding: 11px 13px; border-radius: 9px; background: var(--warn-bg); color: var(--warn-text); font-size: 15px; font-weight: 500; }
.notice-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notice-action .ghost { flex: none; color: var(--warn-text); border-color: var(--warn-text); background: transparent; }
.banner { border-radius: 0; }

/* Cartes blanches sur Paper ----------------------------------------------------- */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-card, .campaign-card, .rows, .details-box, .login-card, .public-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card);
}
.event-card { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 16px 16px 16px 18px; color: var(--ink); transition: border-color .15s; }
.event-card:hover { border-color: #8b9099; }
.event-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.event-card strong { font: 500 21px/1.15 var(--display); letter-spacing: -0.02em; }
.event-card .muted { font-size: 14px; font-weight: 300; letter-spacing: 0.04em; }
.count { flex: none; min-width: 38px; padding: 6px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); text-align: center; font: 600 15px/1 var(--display); }
.event-card .icon { color: #8b9099; }
.event-card.is-closed { background: transparent; box-shadow: none; }
.event-card.is-closed .count { background: var(--line-soft); color: var(--muted); }
details > summary { min-height: 44px; display: flex; align-items: center; color: var(--blue); font: 500 15px/1 var(--display); cursor: pointer; }
details[open] > summary { margin-bottom: 8px; }

/* Page d'un événement : les cinq tuiles ---------------------------------------- */
.event-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-meta .muted { font-weight: 300; letter-spacing: 0.04em; }
.t-prospect { --type: var(--blue); --on-type: #fff; --type-icon: #fff; }
.t-investisseur { --type: var(--panel); --on-type: #fff; --type-icon: var(--signal); }
.t-partenaire { --type: #0f766e; --on-type: #fff; --type-icon: #fff; }
.t-presse { --type: var(--signal); --on-type: var(--ink); --type-icon: var(--ink); }
.t-contact { --type: #5b6270; --on-type: #fff; --type-icon: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 15px;
  border-radius: 16px; background: var(--type); color: var(--on-type);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 14px 30px -18px rgb(16 24 40 / 60%);
  transition: transform .15s, filter .15s;
}
.tile:active { transform: scale(.98); filter: brightness(.95); }
.tile .icon { width: 32px; height: 32px; color: var(--type-icon); }
.tile span { display: block; font-size: 13px; font-weight: 300; letter-spacing: 0.04em; opacity: .9; }
.tile strong { display: block; font: 500 20px/1.1 var(--display); letter-spacing: -0.02em; }
.tile:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 84px; }

/* Liste de contacts --------------------------------------------------------- */
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); transition: background-color .15s; }
.row:hover { background: #fafbfc; }
li:last-child .row { border-bottom: 0; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font: 500 16px/1.25 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub, .row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 15px; }
.row-meta { font-size: 13px; font-weight: 300; letter-spacing: 0.03em; color: var(--muted); }
.row-pending { color: var(--warn-text); font-weight: 600; }
.type-dot { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--type); color: var(--type-icon); }
.type-dot .icon { width: 20px; height: 20px; }

/* Formulaire ---------------------------------------------------------------- */
.type-band {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px 13px 16px; border-radius: 16px; background: var(--type); color: var(--on-type);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 14px 30px -18px rgb(16 24 40 / 60%);
}
.type-band .icon { color: var(--type-icon); }
.type-band h2 { flex: 1; min-width: 0; font-size: 20px; }
.type-band select { width: auto; flex: none; min-height: 44px; max-width: 44%; padding: 6px 10px; border: 1px solid transparent; background: rgb(255 255 255 / 94%); color: var(--ink); }
.photo {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 1.5px solid var(--blue); border-radius: 9px;
  background: #fff; color: var(--blue); font: 500 17px/1 var(--display); letter-spacing: 0; box-shadow: var(--shadow-soft);
}
.photo:active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.card-block { display: flex; flex-direction: column; gap: 8px; }
.card-result { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.card-result.is-warn { padding: 9px 11px; border-radius: 9px; background: var(--warn-bg); color: var(--warn-text); font-weight: 500; }
#card-preview { flex: none; width: 72px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.save-bar {
  position: sticky; bottom: 0; z-index: 3; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(243 244 246 / 92%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgb(20 23 28 / 8%);
}

/* Fiche --------------------------------------------------------------------- */
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sheet-head .ghost { flex: none; }
.links { display: flex; gap: 8px; }
.links:empty { display: none; }
.links a {
  flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; background: var(--blue); color: #fff;
  font: 500 16px/1 var(--display); box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 10px 30px -12px rgb(5 93 187 / 70%);
}
.links a:active { background: var(--blue-deep); }
.details-box { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.two-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-line { margin: -6px 0 0; }

/* Campagnes ----------------------------------------------------------------- */
.campaign-card { display: flex; flex-direction: column; gap: 5px; min-height: 80px; padding: 16px 18px; transition: border-color .15s; }
.campaign-card:hover { border-color: #8b9099; }
.campaign-card strong { font: 500 20px/1.15 var(--display); letter-spacing: -0.02em; }
.campaign-summary { font-size: 14px; font-weight: 300; letter-spacing: 0.03em; color: var(--muted); overflow-wrap: anywhere; }
.campaign-progress { font: 500 14px/1.2 var(--display); color: var(--blue); }
#campaign-count {
  position: sticky; top: 72px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgb(20 23 28 / 8%); border-radius: 999px; background: #fff; box-shadow: var(--shadow-card); font: 500 15px/1 var(--display); color: var(--ink);
}
#campaign-count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

.board { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.column { flex: 0 0 84%; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--line-soft); scroll-snap-align: center; }
.column h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; min-height: 30px; font: 500 17px/1 var(--display); letter-spacing: -0.01em; }
.column h3 span { min-width: 30px; padding: 4px 9px; border-radius: 999px; background: #fff; text-align: center; font: 600 14px/1.2 var(--display); color: var(--blue); }
.column.is-over { outline: 2px dashed var(--blue); }
.column-cards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-soft); }
.kcard-top { display: flex; align-items: center; gap: 9px; }
.kcard-name { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; font: 500 16px/1.2 var(--display); overflow-wrap: anywhere; }
.kcard-sub { font-size: 14px; font-weight: 300; letter-spacing: 0.03em; color: var(--muted); overflow-wrap: anywhere; }
.kcard-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.icon-button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--blue); }
.icon-button:hover { border-color: #8b9099; }
.kcard-move { margin-left: auto; display: flex; gap: 6px; }

/* Pages d'inscription ------------------------------------------------------- */
.signup-page { display: flex; flex-direction: column; gap: 6px; }
.signup-url { font-size: 14px; color: var(--blue); overflow-wrap: anywhere; }

/* Connexion ----------------------------------------------------------------- */
.login-hero { margin-bottom: 16px; padding-top: 34px; padding-bottom: 34px; }
.login-title { margin: 14px 0 0; font: 500 52px/1 var(--display); letter-spacing: -0.03em; color: var(--blue); }
.login-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }

/* Page publique d'inscription ---------------------------------------------- */
.public .top { justify-content: space-between; }
.lang { min-width: 44px; min-height: 44px; padding: 0 6px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); font: 500 15px/1 var(--display); }
.public main { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.public-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.public-title { margin: 14px 0 0; font: 500 clamp(34px, 9.5vw, 52px)/1.02 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.public-intro { margin: 10px 0 0; font-size: 17px; font-weight: 300; line-height: 1.35; letter-spacing: 0.04em; color: var(--muted); }
.public-privacy { margin: 0; }
.public .fields .field:nth-child(n + 3) { grid-column: 1 / -1; }

/* Message bref -------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--panel); color: #fff;
  font: 500 15px/1 var(--display); white-space: nowrap; box-shadow: 0 14px 30px -12px rgb(16 24 40 / 50%);
}
.toast::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* Grands écrans ------------------------------------------------------------- */
@media (min-width: 700px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .fields .field:nth-child(n + 3) { grid-column: auto; }
  .public .fields .field:nth-child(n + 3) { grid-column: auto; }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .tile:last-child { grid-column: auto; flex-direction: column; align-items: stretch; justify-content: space-between; min-height: 108px; }
  main { padding-top: 24px; }
  .hero { margin-top: -24px; padding: 40px 24px 30px; border-radius: 0 0 20px 20px; }
  .public .hero { margin-left: 0; margin-right: 0; }
}
@media (min-width: 900px) {
  .board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

/* Bandes de la marque : copiées de seikai_front/app/globals.css ---------------- */
.landing-stripes {
  --stripe-a: #055dbb;
  --stripe-b: #055dbb;
  --stripe-c: rgb(130 174 221 / 50%);
  --stripe-d: rgb(129 190 255 / 50%);
  --stripe-e: rgb(243 249 255 / 5%);
  --stripe-signal: #ff8a3d;
  --stripe-signal-soft: rgb(255 178 122 / 55%);
  --stripes-cycle: 12s;
  --stripes-reach: 50;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  overflow: hidden;
  background: var(--stripes-ground, transparent);
}
.landing-stripes[data-tone="sky"] { --stripes-ground: #badbff; }
.landing-stripes[data-tone="deep"] { --stripes-ground: var(--band-deep); }
.landing-stripes[data-tone="neutral"] {
  --stripes-ground: #d1d5dc;
  --stripe-a: #99a1af;
  --stripe-b: #ffffff;
  --stripe-c: rgb(255 255 255 / 55%);
  --stripe-d: rgb(229 231 235 / 60%);
}
.landing-stripes[data-tone="end"] {
  --stripe-a: rgb(5 93 187 / 60%);
  --stripe-b: rgb(5 93 187 / 75%);
  --stripe-c: rgb(0 47 141 / 55%);
  --stripe-d: rgb(5 93 187 / 45%);
  --stripes-cycle: 8s;
  --stripes-reach: 80;
}
.landing-stripes > span { display: block; min-width: 0; }
.landing-stripes > span > span {
  display: block;
  height: 100%;
  /* A fraction of a pixel over each neighbour: columns of 1/7th would otherwise show hairlines. */
  margin-inline: -0.25px;
  background: var(--stripe);
  transform-origin: 0 0;
  animation: landing-stripe var(--stripes-cycle) cubic-bezier(0.45, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--stripe-index) * 220ms - 4s);
}
.landing-stripes > span:nth-child(7n + 1) { --stripe-index: 0; --stripe-k: 0.9; --stripe-j: -0.6; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-a) 47%, var(--stripe-c) 83%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 2) { --stripe-index: 1; --stripe-k: -0.7; --stripe-j: 0.8; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-b) 26%, var(--stripe-d) 82%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 3) { --stripe-index: 2; --stripe-k: 0.4; --stripe-j: -1; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-d) 18%, var(--stripe-b) 74%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 4) { --stripe-index: 3; --stripe-k: -1; --stripe-j: 0.3; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-signal) 47%, var(--stripe-signal-soft) 83%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 5) { --stripe-index: 4; --stripe-k: 0.7; --stripe-j: 0.9; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-b) 26%, var(--stripe-a) 82%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 6) { --stripe-index: 5; --stripe-k: -0.3; --stripe-j: -0.7; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-d) 18%, var(--stripe-b) 74%, transparent 100%); }
.landing-stripes > span:nth-child(7n + 7) { --stripe-index: 6; --stripe-k: 1; --stripe-j: 0.5; --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-b) 26%, var(--stripe-d) 82%, transparent 100%); }
.landing-stripes[data-variant="low"] > span:nth-child(7n + 1) { --stripe: linear-gradient(to bottom, transparent 42%, var(--stripe-a) 68%, var(--stripe-c) 93%, transparent 100%); }
.landing-stripes[data-variant="low"] > span:nth-child(7n + 2) { --stripe: linear-gradient(to bottom, transparent 35%, var(--stripe-b) 85%, var(--stripe-d) 91%, transparent 100%); }
.landing-stripes[data-variant="low"] > span:nth-child(7n + 3) { --stripe: linear-gradient(to bottom, transparent 9%, var(--stripe-d) 53%, var(--stripe-b) 74%, transparent 100%); }
.landing-stripes[data-variant="low"] > span:nth-child(7n + 4) { --stripe: linear-gradient(to bottom, transparent 47%, var(--stripe-signal) 76%, var(--stripe-signal-soft) 91%, transparent 100%); }
.landing-stripes[data-variant="low"] > span:nth-child(7n + 5) { --stripe: linear-gradient(to bottom, transparent 0%, var(--stripe-e) 26%, var(--stripe-b) 66%, var(--stripe-a) 82%, transparent 100%); }
@keyframes landing-stripe {
  0%, 5%, 95%, 100% { transform: translateY(0) scaleY(1); }
  18%, 21% { transform: translateY(calc(-1% * (50 + var(--stripe-k) * var(--stripes-reach)))) scaleY(2); }
  35%, 38% { transform: translateY(calc(-0.5% * (50 + var(--stripe-j) * var(--stripes-reach)))) scaleY(1.5); }
  52%, 55% { transform: translateY(calc(-1.4% * (50 - var(--stripe-k) * var(--stripes-reach)))) scaleY(2.4); }
  68%, 71% { transform: translateY(calc(-0.75% * (50 - var(--stripe-j) * var(--stripes-reach)))) scaleY(1.75); }
  83%, 85% { transform: translateY(calc(-0.2% * (50 + var(--stripe-k) * 22))) scaleY(1.2); }
}
/* On a phone, the five middle columns of each set: the mandarine one stays centred. */
@media (max-width: 760px) {
  .landing-stripes > span:nth-child(7n + 1),
  .landing-stripes > span:nth-child(7n + 7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-stripes > span > span { animation: none; }
}

/* Logo animé de la connexion, comme sur seikai.fr ---------------------------- */
.gate .top { display: none; }
.gate main { padding-top: 0; }
.gate .login-hero { margin-top: 0; padding-top: calc(36px + env(safe-area-inset-top)); }
.login-hero .seikai-logo { display: block; width: min(240px, 62vw); height: auto; overflow: visible; cursor: pointer; }
.seikai-logo__letter {
  transition: opacity 360ms ease-out, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--letter-delay);
}
.seikai-logo[data-stage='intro'] .seikai-logo__letter { opacity: 0; transform: translateX(10px); }
@media (prefers-reduced-motion: reduce) {
  .seikai-logo[data-stage] .seikai-logo__letter { opacity: 1; transform: none; transition: none; }
}

/* QR code ------------------------------------------------------------------- */
canvas.qr { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.qr-view .row-actions { align-items: stretch; }
.signup-page > .ghost { align-self: flex-start; }

/* Langues de la page publique ---------------------------------------------- */
.langs { display: flex; align-items: center; }
html:lang(ja) body { font-family: 'Funnel Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', system-ui, sans-serif; letter-spacing: 0.02em; }
html:lang(ja) .public-title { font-family: 'Funnel Display', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif; letter-spacing: 0; line-height: 1.15; }
html:lang(ja) .field > span, html:lang(ja) .group-label, html:lang(ja) .primary { font-family: 'Funnel Display', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif; }
