/* Maillon — styles. Couleurs et typo de la maquette. */
/* Polices hébergées sur le site (pas d'appel à Google Fonts) — Barlow, licence SIL OFL 1.1 */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
:root {
  --ink: #14171A;
  --ground: #F1F2EF;
  --surface: #FFFFFF;
  --line: #DDE0DC;
  --line-soft: #EBEDEA;
  --muted: #5A6168;
  --accent: #FFC933;
  --accent-soft: #FFF4D1;
  --ok: #1D7F4E;
  --hot: #C8371D;
  --track: #E6E8E4;
  --head: #14171A;
  --head-muted: #C9CDC8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9EBEC; --ground: #15181B; --surface: #1F2327; --line: #343A40; --line-soft: #2A2F34;
    --muted: #A7B0B7; --track: #2E3338; --accent-soft: #3A3218; --ok: #45B57B; --hot: #F0705A;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--ground); color: var(--ink);
  font: 16px/1.5 "Barlow", system-ui, sans-serif;
}
a { color: inherit; }
h1, h2, h3, .brand, .num { font-family: "Barlow Condensed", "Barlow", sans-serif; }
h1 { font-weight: 700; font-size: 34px; line-height: 1.05; margin: 0 0 8px; }
h2 { font-weight: 700; font-size: 24px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* En-tête */
/* Bandeau fixe en haut ; il couvre aussi la zone de la barre d'état sur iPhone */
html { background: var(--head); }
.top { position: sticky; top: 0; z-index: 50; background: var(--head); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.top-in { max-width: 760px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: 0.06em; color: #fff; text-decoration: none; margin-right: auto; }
.top-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav a { color: #fff; text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 10px; }
.top-nav a:hover { background: rgba(255,255,255,0.08); }
.progress { max-width: 760px; margin: 0 auto; padding: 0 20px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.progress span { height: 4px; border-radius: 2px; background: #3A3F45; }
.progress span.on { background: var(--accent); }

main.app { max-width: 760px; margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.foot { max-width: 760px; margin: 16px auto 32px; padding: 0 20px; color: var(--muted); font-size: 13px; }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card.strong { border: 2px solid var(--ink); }
.card.narrow { max-width: 520px; margin: 16px auto; width: 100%; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.eyebrow { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 0; }
input[type=email], input[type=number], input[type=month], input[type=text], input:not([type]), select {
  display: block; width: 100%; margin-top: 4px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: 10px;
}
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 17px; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 400; font-size: 16px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.choice > input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.choice .reveal input { margin-top: 6px; }
.choice strong { display: block; font-weight: 600; }
.choice .sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.choice .reveal { display: none; margin-top: 10px; }
.choice:has(input:checked) .reveal { display: block; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; min-height: 44px; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 0; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; cursor: pointer; }
.pill:has(input:checked) { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill input { accent-color: var(--accent); margin: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--ground); font: 600 16px "Barlow", sans-serif; text-decoration: none; cursor: pointer; }
.btn.accent { background: var(--accent); color: #14171A; font-weight: 700; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; min-height: 44px; }
.danger { color: var(--hot); }

/* Garage */
.bike-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; }
.bike-tab { flex-shrink: 0; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bike-tab[aria-current="page"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.bike-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.bike-tab.add { border-style: dashed; }
.todo { padding: 0; overflow: hidden; }
.todo-head { background: var(--accent); color: #14171A; padding: 9px 16px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.todo-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.todo-body p { margin: 0; }
.todo-text { font-weight: 600; font-size: 18px; line-height: 1.3; }
.bike-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.meter-label strong { font-weight: 600; }
.meter-label .num { font-weight: 600; font-size: 17px; }
.bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: var(--ok); }
.fill.warm { background: var(--accent); }
.fill.hot { background: var(--hot); }
.pips { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.pips span { height: 10px; border-radius: 4px; background: var(--track); }
.pips span.on { background: var(--ok); }
.pips.warm span.on { background: var(--accent); }
.pips.hot span.on { background: var(--hot); }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.ok-line { display: flex; gap: 10px; align-items: center; }

/* Accueil */
main.landing { display: block; }
.hero { background: var(--head); color: #fff; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(17px, 2vw, 20px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; padding: 7px 16px 7px 12px; border: 1.5px solid rgba(255,201,51,0.55); border-radius: 999px; background: rgba(255,201,51,0.08); line-height: 1.2; white-space: nowrap; }
.hero .kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,201,51,0.2); flex-shrink: 0; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 0.95; margin: 0 0 20px; }
.hero .h1-accent { color: var(--accent); display: inline-block; }
.hero .lead { font-size: 19px; color: #C9CDC8; max-width: 34rem; margin: 0 0 24px; }
.section { max-width: 1120px; margin: 0 auto; padding: 64px 24px 24px; }
.section h2 { font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; margin: 0 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-weight: 800; font-size: 44px; line-height: 1; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.features div { padding: 20px 0; border-top: 3px solid var(--ink); }
.band { background: var(--accent); color: #14171A; margin-top: 56px; }
.band-in { max-width: 1120px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.band p { margin: 0; max-width: 40rem; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }

/* E-mails (mode test) */
.mail-body { margin-top: 12px; border-radius: 10px; overflow: hidden; }
pre { white-space: pre-wrap; }

/* Accueil : en-tête et pied de page aussi larges que le contenu */
body.wide .top-in, body.wide .foot { max-width: 1120px; padding-left: 24px; padding-right: 24px; }

/* Freins et pneus */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.check-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.check-dot.warm { background: var(--accent); box-shadow: 0 0 0 1px #B08A1A; }
.check-dot.hot { background: var(--hot); }
.check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.check-text strong { font-weight: 600; }
.check-text .muted { font-size: 14px; }
.checks form { margin: 0; }
form:has(input[name=tires][value=chambre]:checked) .tubeless-only { display: none; }

/* Réflexe huile */
.callout { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.callout h2 { font-size: 22px; margin-bottom: 4px; }
.callout p { margin: 0; }
.numbered { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
details.more { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
details.more summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.wax-teaser { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; }
.wax-teaser > span:first-child { display: flex; flex-direction: column; }
.wax-teaser .muted { text-decoration: underline; }

/* Passer à la cire */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.3; table-layout: fixed; }
.compare th, .compare td { text-align: left; padding: 8px 8px 8px 0; border-top: 1px solid var(--line-soft); vertical-align: top; hyphens: auto; }
.compare thead th { border-top: 0; font-family: "Barlow Condensed", sans-serif; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.compare col.crit { width: 25%; }
@media (max-width: 420px) { .compare { font-size: 13px; } .compare thead th { font-size: 13px; letter-spacing: 0.02em; } .compare th, .compare td { padding-right: 6px; } }
.compare tbody th { font-weight: 600; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ground); font: 700 15px "Barlow Condensed", sans-serif; margin-right: 6px; }
.legend-like { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.kit { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Accueil : langue, aperçu de l'app, cartes ---------- */
.lang-switch { display: inline-flex; align-items: center; margin-left: 6px; border: 1px solid #3A3F45; border-radius: 999px; padding: 3px; }
.top-nav .lang-switch a { min-height: 34px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #C9CDC8; }
.top-nav .lang-switch a[aria-current="true"] { background: var(--accent); color: #14171A; }
.cta-note { color: #C9CDC8; font-size: 14px; }

/* L'aperçu garde des couleurs fixes : c'est une illustration de l'app */
.showcase { position: relative; justify-self: center; width: 100%; max-width: 440px; padding: 34px 0 30px; color: #14171A; }
.phone { width: 300px; margin: 0 auto; background: #050607; border-radius: 44px; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px #2A2F34 inset; transform: rotate(2deg); }
.phone-screen { background: #F1F2EF; border-radius: 35px; overflow: hidden; height: 560px; font-size: 12px; line-height: 1.35; }
.ph-top { background: #14171A; padding: 30px 16px 10px; }
.ph-brand { display: inline-flex; align-items: center; gap: 7px; color: #fff; font: 800 15px "Barlow Condensed", sans-serif; letter-spacing: 0.06em; }
.ph-brand svg { width: 20px; height: 20px; }
.ph-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.ph-h { margin: 0; font: 700 21px "Barlow Condensed", sans-serif; }
.ph-tabs { display: flex; gap: 6px; }
.ph-tabs span { border: 1px solid #DDE0DC; background: #fff; border-radius: 999px; padding: 5px 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.ph-tabs span.on { background: #14171A; color: #fff; border-color: #14171A; }
.ph-tabs i { width: 7px; height: 7px; border-radius: 50%; background: #FFC933; }
.ph-card { background: #fff; border: 1px solid #DDE0DC; border-radius: 12px; overflow: hidden; }
.ph-pad { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.ph-todo-head { background: #FFC933; padding: 5px 10px; font: 700 11px "Barlow Condensed", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-todo-text { margin: 0; font-weight: 600; font-size: 13px; }
.ph-note { margin: 0; color: #5A6168; font-size: 11px; }
.ph-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-btns span { border: 1px solid #DDE0DC; border-radius: 8px; padding: 5px 9px; font-weight: 700; font-size: 11px; background: #fff; }
.ph-btns span.dark { background: #14171A; color: #fff; border-color: #14171A; }
.ph-btns span.yellow { background: #FFC933; border-color: #FFC933; }
.ph-photo { height: 66px; border-radius: 8px; background: linear-gradient(135deg, #33413A, #1F2A24); color: #9DB1A4; padding: 6px 30px; }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-row strong { font: 700 15px "Barlow Condensed", sans-serif; }
.ph-row b { font: 700 13px "Barlow Condensed", sans-serif; }
.ph-muted { color: #5A6168; font-size: 11px; }
.ph-meter { display: flex; flex-direction: column; gap: 4px; }
.ph-bar { height: 6px; border-radius: 999px; background: #E6E8E4; overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: 999px; background: #1D7F4E; }
.ph-bar i.warm, .ph-pips i.warm { background: #FFC933; }
.ph-pips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ph-pips i { height: 6px; border-radius: 3px; background: #E6E8E4; }
.ph-sub { margin: 0; font: 700 14px "Barlow Condensed", sans-serif; }
.ph-check { display: flex; align-items: center; gap: 9px; }
.ph-check > i { width: 9px; height: 9px; border-radius: 50%; background: #1D7F4E; flex-shrink: 0; }
.ph-check > i.warm { background: #FFC933; box-shadow: 0 0 0 1px #B08A1A; }
.ph-check span { display: flex; flex-direction: column; color: #5A6168; font-size: 11px; }
.ph-check b { color: #14171A; font-size: 12px; font-weight: 600; }

.notif { position: absolute; z-index: 2; top: 0; left: -28px; width: 270px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,0.97); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.4); font-size: 13px; line-height: 1.3; transform: rotate(-2deg); }
.notif-icon svg { width: 34px; height: 34px; display: block; }
.notif-app { display: block; color: #5A6168; font-size: 11px; margin-bottom: 2px; }
.chip { position: absolute; z-index: 2; right: -14px; bottom: 54px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #FFC933; color: #14171A; font-weight: 700; font-size: 14px; box-shadow: 0 14px 30px rgba(0,0,0,0.4); transform: rotate(-3deg); }
@media (max-width: 560px) {
  .notif { left: 0; width: 250px; }
  .chip { right: 0; }
  .phone { transform: none; }
}

.inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.feature-shot { background: #E4E7E2; padding: 22px 18px; min-height: 200px; display: flex; align-items: center; justify-content: center; color: #14171A; font-size: 12px; line-height: 1.35; }
.feature h3 { font-size: 22px; margin: 18px 18px 6px; }
.feature > p { margin: 0 18px 20px; }
.mini-mail, .mini-card { width: 100%; max-width: 280px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(20,23,26,0.12); overflow: hidden; }
.mini-card { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.mini-mail-head { background: #14171A; color: #fff; padding: 9px 12px; display: flex; align-items: center; gap: 7px; font: 800 13px "Barlow Condensed", sans-serif; letter-spacing: 0.08em; }
.mini-mail-head i { width: 10px; height: 10px; border-radius: 3px; background: #FFC933; }
.mini-mail-head span { margin-left: auto; color: #C9CDC8; font: 400 11px "Barlow", sans-serif; letter-spacing: 0; }
.mini-mail-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-mail-body p { margin: 0; }
.mini-subject { margin: 0; font-weight: 700; font-size: 13px; }
.forecast { position: relative; height: 54px; margin: 30px 4px 0; }
.forecast-track { height: 8px; border-radius: 999px; background: #E6E8E4; overflow: hidden; }
.forecast-track i { display: block; height: 100%; background: #1D7F4E; border-radius: 999px; }
.forecast .mark { position: absolute; top: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: #5A6168; font-size: 10px; white-space: nowrap; }
.forecast .mark:first-of-type { transform: none; align-items: flex-start; }
.forecast .mark.end { transform: translateX(-100%); align-items: flex-end; }
.forecast .mark.today { top: -30px; }
.forecast .mark.today::before { top: auto; bottom: -8px; }
.forecast .mark b { color: #14171A; font-size: 11px; }
.forecast .mark.today b { background: #14171A; color: #fff; border-radius: 4px; padding: 0 4px; }
.forecast .mark::before { content: ""; position: absolute; top: -11px; width: 2px; height: 8px; background: #14171A; }
.forecast .mark:first-of-type::before { left: 0; }
.forecast .mark.end::before { right: 0; }
.ride { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid #EBEDEA; }
.ride:first-child { border-top: 0; padding-top: 0; }
.ride span { display: flex; flex-direction: column; color: #5A6168; font-size: 11px; }
.ride b { color: #14171A; font-size: 12px; }
.ride strong { white-space: nowrap; font: 700 16px "Barlow Condensed", sans-serif; color: #1D7F4E; }

/* Fichiers officiels Strava : affichés tels quels */
.strava-connect { display: inline-block; line-height: 0; border-radius: 4px; }
.strava-connect img { height: 48px; width: auto; display: block; }
.powered { display: block; margin-bottom: 8px; line-height: 0; }
.powered img { height: 20px; width: auto; }

/* ---------- Vue d'ensemble (connecté) ---------- */
.section-label { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.bike-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.bike-card:hover { border-color: var(--ink); }
.bike-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bike-visual { display: block; height: 96px; padding: 10px 50px; background: linear-gradient(135deg, #33413A, #1F2A24); color: #9DB1A4; }
.bike-card:nth-child(3n+2) .bike-visual { background: linear-gradient(135deg, #2E3746, #1E2531); color: #9AA8BE; }
.bike-card:nth-child(3n+3) .bike-visual { background: linear-gradient(135deg, #46382E, #2C231D); color: #BEA99A; }
.status-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.status-badge b { font: 800 18px "Barlow Condensed", sans-serif; }
.status-badge.todo { background: var(--accent); color: #14171A; }
.status-badge.urgent { background: var(--hot); color: #fff; }
.status-badge.good { background: var(--ok); color: #fff; }
.bike-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.bike-card-name { font: 700 22px "Barlow Condensed", sans-serif; line-height: 1.1; }
.mini-meter { display: flex; flex-direction: column; gap: 4px; }
.mini-label { font-size: 13px; color: var(--muted); }
.mini-meter .bar { height: 7px; display: block; }
.mini-meter .fill { display: block; }
.add-card { align-items: center; justify-content: center; min-height: 160px; border-style: dashed; font-weight: 600; color: var(--muted); }
.action { display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--accent); }
.action.urgent { border-left-color: var(--hot); }
.action p { margin: 0; }
.action-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.action-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ground); display: inline-flex; align-items: center; justify-content: center; font: 700 15px "Barlow Condensed", sans-serif; }
.action-bike { font-weight: 600; font-size: 14px; color: var(--muted); }
.action-flag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hot); }
@media (max-width: 560px) {
  .bike-visual { height: 72px; }
  .add-card { min-height: 56px; }
}

.form-nav { display: flex; gap: 10px; }
.form-nav .btn[type=submit] { flex: 1; }

/* Comptes e-mail, sorties manuelles */
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBE3DE; color: #8A2412; font-weight: 600; }
.no-strava { margin: 14px 0 0; color: #C9CDC8; font-size: 15px; }
.no-strava a { color: #fff; }
.ride-km { font: 700 16px "Barlow Condensed", sans-serif; color: var(--ok); white-space: nowrap; }
input[type=password], input[type=date] { display: block; width: 100%; margin-top: 4px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 10px; }

.beta { align-self: center; margin: 0 0 0 -2px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: #14171A; font: 700 11px "Barlow", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.no-strava-note { display: block; font-size: 13px; color: #9AA0A6; margin-top: 2px; }
.manual-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.manual-box p { margin: 0; flex: 1 1 260px; }

/* Réglages : connexion, suppression */
.setting-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-pill.ok { background: var(--ok); color: #fff; }
.danger-zone { border-color: #E9B5AA; }
.danger-btn { background: var(--hot); color: #fff; border: 0; }
.strong-danger { border: 2px solid var(--hot); }
.settings-nav .pill { text-decoration: none; color: var(--ink); }
[id] { scroll-margin-top: 96px; }

/* Pages légales */
.legal { max-width: 720px; }
.legal h2 { font-size: 22px; margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-links { margin: 6px 0 0; }
.legal-links a { color: inherit; }

/* En-tête compact sur mobile : tout sur une ligne */
@media (max-width: 560px) {
  .top-in { gap: 0 6px; padding: 10px 16px; }
  body.wide .top-in { flex-wrap: nowrap; }
  body:not(.wide) .top-nav { margin-right: -7px; }
  .brand { font-size: 21px; gap: 8px; letter-spacing: 0.04em; }
  .brand .logo-mark { width: 26px; height: 26px; }
  .beta { font-size: 10px; padding: 1px 5px; }
  .top-nav { flex-wrap: nowrap; gap: 0; align-items: center; }
  .top-nav a { min-height: 40px; padding: 0 7px; font-size: 15px; white-space: nowrap; }
  .top-nav .hide-sm { display: none; }
  .lang-switch { margin-left: 2px; padding: 2px; }
  .top-nav .lang-switch a { min-height: 30px; padding: 0 7px; font-size: 13px; }
}
@media (max-width: 340px) {
  .brand { font-size: 18px; }
  .beta { display: none; }
}

/* Tuto d'installation sur l'écran d'accueil */
.install-card { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--accent); }
.install-card[hidden] { display: none; }
.install-head { display: flex; gap: 14px; align-items: center; }
.install-head img { border-radius: 12px; flex-shrink: 0; }
.install-head h2 { font-size: 20px; line-height: 1.15; margin-bottom: 4px; }
.ico-chip { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 2px; border-radius: 50%; background: var(--track); color: var(--ink); vertical-align: middle; }
.ico-chip .ico { width: 18px; height: 18px; }

[hidden] { display: none !important; }

/* ---------- Accueil : mosaïque des fonctionnalités ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 14px;
  grid-template-areas: "fleet fleet mail mail" "fleet fleet rain link" "wear wear brake tire" "wax wax app app"; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tile h3 { font-size: 23px; line-height: 1.1; margin: 0 0 4px; }
.tile-text p { margin: 0; color: var(--muted); }
.tile-dark { background: #14171A; border-color: #14171A; color: #fff; }
.tile-dark .tile-text p { color: #B9BEC3; }
.tile-yellow { background: var(--accent); border-color: var(--accent); color: #14171A; }
.tile-yellow .tile-text p { color: #3A3420; }
.tile .illu { width: 96px; height: auto; flex-shrink: 0; }
.tile-value { margin-top: 6px !important; font: 800 22px "Barlow Condensed", sans-serif; color: #14171A !important; }
.tile-num { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 8px; background: var(--accent); color: #14171A; font-size: 18px; vertical-align: middle; }
.t-fleet { grid-area: fleet; justify-content: space-between; }
.t-mail { grid-area: mail; background: #E4E7E2; border-color: #E4E7E2; }
.t-rain { grid-area: rain; }
.t-link { grid-area: link; }
.t-wear { grid-area: wear; background: #E4E7E2; border-color: #E4E7E2; }
.t-brake { grid-area: brake; }
.t-tire { grid-area: tire; }
.t-wax { grid-area: wax; }
.t-app { grid-area: app; flex-direction: row; align-items: center; }
.t-mail, .t-wear { flex-direction: row; align-items: center; }
.t-mail .tile-text, .t-wear .tile-text { flex: 1 1 40%; }
.t-mail .mini-mail, .t-wear .mini-card { flex: 1 1 60%; max-width: 320px; font-size: 12px; line-height: 1.35; color: #14171A; }
.t-link .illu { width: 120px; }
.t-link .ph-pips { margin-top: auto; }
.app-ico { border-radius: 16px; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; color: #14171A; }
.fleet-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 12px; border-radius: 14px; background: #fff; overflow: hidden; font-size: 12px; }
.fleet-card .ph-bar { margin: 0 10px; }
.fleet-visual { display: block; height: 96px; padding: 8px 18px; color: #9DB1A4; background: linear-gradient(135deg, #33413A, #1F2A24); }
.fleet-visual.v2 { color: #9AA8BE; background: linear-gradient(135deg, #2E3746, #1E2531); }
.fleet-visual.v3 { color: #BEA99A; background: linear-gradient(135deg, #46382E, #2C231D); }
.fleet-badge { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.fleet-badge.todo { background: #FFC933; color: #14171A; }
.fleet-badge.good { background: #1D7F4E; color: #fff; }
.fleet-badge.urgent { background: #C8371D; color: #fff; }
.fleet-name { margin: 2px 10px 0; font: 700 16px "Barlow Condensed", sans-serif; }
.ph-bar i.hot { background: #C8371D; }
.wax-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.wax-mini th { text-align: left; color: #8A9096; font-weight: 600; padding: 4px 8px 6px 0; }
.wax-mini td { padding: 7px 8px 7px 0; border-top: 1px solid #2A2F34; color: #D9DCDF; }
.wax-mini td.hi { color: #FFC933; font-weight: 700; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "fleet fleet" "mail mail" "rain link" "wear wear" "brake tire" "wax wax" "app app"; }
}
@media (max-width: 560px) {
  .t-mail, .t-wear { flex-direction: column; align-items: stretch; }
  .t-mail .mini-mail, .t-wear .mini-card { max-width: none; flex: none; }
  .tile { padding: 18px; }
  .tile h3 { font-size: 20px; }
  .tile .illu { width: 72px; }
  .fleet { gap: 6px; }
  .fleet-visual { height: 52px; padding: 6px 10px; }
  .fleet-badge { font-size: 10px; padding: 2px 6px; top: 5px; right: 5px; }
  .fleet-name { font-size: 13px; }
}

.lube-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lube-chips li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #1F2327; }
.lube-chips strong { font-weight: 600; color: #fff; }
.lube-chips span { font: 700 16px "Barlow Condensed", sans-serif; color: #FFC933; white-space: nowrap; }

.verify-banner { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--accent); background: var(--accent-soft); }
.verify-banner .actions form { margin: 0; }

/* Pied de page sombre, comme le bandeau du haut (et la barre du bas sur iPhone) */
.foot { display: none; }
.site-foot { background: var(--head); color: #9AA0A6; margin-top: 40px; padding-bottom: env(safe-area-inset-bottom); font-size: 13px; }
body.wide .site-foot { margin-top: 0; }
.foot-in { max-width: 760px; margin: 0 auto; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 10px; }
body.wide .foot-in { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.foot-brand { font-size: 20px; margin-right: 0; }
.foot-brand .logo-mark { width: 24px; height: 24px; }
.foot-logout { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 14px; border: 1px solid #3A3F45; border-radius: 10px; }
.foot-logout:hover { background: rgba(255,255,255,0.06); }
.site-foot p { margin: 0; }
.site-foot a { color: #D9DCDF; }
.site-foot .powered img { height: 18px; }
