/* Navimeca : coque bleu marine, liseré jaune, bande antifouling.
   Polices hébergées sur le site (pas d'appel à Google Fonts). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2-variations"), url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F2436;
  --navy-2: #183650;
  --hull-dark: #08131D;
  --ground: #F2F5F6;
  --paper: #FFFFFF;
  --muted: #4B5E6D;
  --muted-2: #5A6D7B;
  --line: #D3DCE1;
  --line-soft: #E4EBEF;
  --field: #9FB1BD;
  --accent: #F3C431;
  --accent-hover: #FFD24D;
  --antifouling: #8E2B23;
  --on-navy: #C9D6E0;
  --on-navy-2: #A9BCCB;
  --today: #FFF8E0;

  --ok-bg: #E2F0E6;   --ok-fg: #1C5130;   --ok-bd: #B9DCC4;
  --todo-bg: #FCEBD5; --todo-fg: #6B3C06; --todo-bd: #F0C98F;
  --cours-bg: #E1ECF7; --cours-fg: #133A5E; --cours-bd: #B7CEE6;
  --miss-bg: #F8E0DD; --miss-fg: #7F2219; --miss-bd: #EBB8B1;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--ground);
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--accent); color: var(--navy); font-weight: 700; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Typographie ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--antifouling);
}
.h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  text-wrap: balance;
}
.lead { margin: 0; max-width: 32em; font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 4px;
  font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 0 16px; }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--ground); }
.btn--outline-light { color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn[disabled] { background: var(--line-soft); color: var(--muted-2); border-color: transparent; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Puces d'état ---------- */
.chip {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  white-space: nowrap;
}
.chip--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.chip--todo { background: var(--todo-bg); color: var(--todo-fg); border-color: var(--todo-bd); }
.chip--cours { background: var(--cours-bg); color: var(--cours-fg); border-color: var(--cours-bd); }
.chip--plan { background: #fff; color: var(--navy); border-style: dashed; border-color: var(--field); }
.chip--miss { background: var(--miss-bg); color: var(--miss-fg); border-color: var(--miss-bd); }
.chip--tag { background: var(--ground); color: var(--muted); border-color: transparent; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.brand__name {
  font-family: "Barlow Condensed", "Archivo Narrow", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.07em;
}
.brand__mark { flex: 0 0 auto; }

/* ---------- En-tête et hero ---------- */
.hero { background: var(--navy); color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav__links a:not(.btn) { color: #D5E0E8; text-decoration: none; font-weight: 500; }
.nav__links a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .nav__links a:not(.btn) { display: none; } }

.hero__body { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 48px 72px; }
.hero__text { flex: 1.5 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__kicker {
  margin: 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  text-wrap: balance;
}
.hero__sub { margin: 0; max-width: 34em; font-size: 19px; color: var(--on-navy); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.waterline__boot { height: 8px; background: var(--accent); }
.waterline__antifouling { height: 36px; background: var(--antifouling); }

/* ---------- Bon d'intervention (hero) ---------- */
.bon {
  flex: 1 1 340px; min-width: 0; max-width: 440px;
  background: #fff; color: var(--navy);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.bon__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.bon__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.bon__boat { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.1; }
.bon__model { color: var(--muted); font-size: 14px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.facts dd { margin: 0; font-weight: 600; }
.bon ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo {
  aspect-ratio: 4 / 3; max-width: 100%;
  background: var(--line-soft); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: center;
}
.bon__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--white { background: #fff; border-block: 1px solid var(--line); }
.section--tight-top { padding-top: 24px; }
.section__head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .stack { flex: 1 1 360px; min-width: 0; }

.pains { flex: 1 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.pains li { display: flex; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains svg { flex: 0 0 auto; color: var(--antifouling); }
.pains strong { display: block; font-size: 19px; margin-bottom: 4px; }

.features { display: flex; flex-wrap: wrap; gap: 24px; }
.feature {
  flex: 1 1 440px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.feature__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--accent); border-radius: 4px;
}
.feature h3 { margin: 0; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); }
.feature__detail {
  margin-top: auto;
  padding-top: 12px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.feature__detail a { color: var(--navy); font-weight: 500; }

.law {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--navy); color: #fff; border-radius: 6px;
}
.law__figure {
  margin: 0; flex: 0 0 auto;
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 5vw, 60px); line-height: 1; white-space: nowrap;
  color: var(--accent);
}
.law__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.law h2 { margin: 0; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.law p { margin: 0; max-width: 40em; color: var(--on-navy); }
.law cite { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--on-navy-2); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--navy); }
.steps strong { font-size: 21px; }
.steps span:last-child { color: var(--muted); }

.plans { display: flex; flex-wrap: wrap; gap: 24px; }
.plan {
  flex: 1 1 300px; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.plan--main { border: 2px solid var(--navy); }
.plan__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan__price { margin: 0; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 40px; line-height: 1; }
.plan__unit { font-family: var(--body); font-stretch: 100%; font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan__year { margin: -12px 0 0; font-size: 14px; color: var(--muted); }
.plan__limit { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.plans-foot { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.included {
  flex: 1 1 400px; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 32px;
  background: var(--ground); border-radius: 6px;
}
.included h3 { margin: 0; font-size: 18px; }
.included--free { background: var(--navy); color: #fff; }
.included--free .checks svg { color: var(--accent); }
.badge { padding: 4px 10px; background: var(--navy); color: var(--accent); border-radius: 3px; font-size: 13px; font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; margin-top: 2px; }

/* ---------- Formulaire bêta ---------- */
.beta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.beta > .stack { flex: 1 1 360px; min-width: 0; }
.form {
  flex: 1 1 440px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row > .field { flex: 1 1 180px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 4px;
  font: inherit; color: var(--navy); background: #fff;
}
.field textarea { padding: 10px 12px; min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; font-size: 14px; color: var(--muted); }
.form__status { margin: 0; padding: 12px 14px; border: 1px solid; border-radius: 4px; font-weight: 600; }
.form__status.is-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.form__status.is-error { background: var(--miss-bg); color: var(--miss-fg); border-color: var(--miss-bd); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 32px; }
.footer .brand { color: #fff; }
.footer .brand__name { font-size: 20px; }
.footer a { color: var(--on-navy); }
.footer a:hover { color: #fff; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; padding-block: 56px 88px; }
.legal h1 { margin: 0 0 32px; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.legal h2 { margin: 40px 0 12px; font-size: 20px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--navy); }
.topbar { background: var(--navy); color: #fff; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }

/* ================= Démo ================= */
.demo-bar { background: #fff; border-bottom: 1px solid var(--line); }
.demo-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 16px; }
.demo-bar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.demo-bar__text h1 { margin: 0; font-size: 20px; }
.demo-bar__text p { margin: 0; font-size: 14px; color: var(--muted); }
.demo-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; }
.tab {
  min-height: 44px; padding: 0 16px;
  background: transparent; border: 0; border-radius: 4px;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--navy); color: #fff; }
.linkish { background: none; border: 0; padding: 0 4px; min-height: 44px; font: inherit; font-size: 14px; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* --- Vue atelier --- */
.app { max-width: 1440px; margin-inline: auto; display: flex; flex-wrap: wrap; min-height: 80vh; }
.app__side {
  flex: 1 1 220px; max-width: 100%;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px 16px;
  background: var(--navy); color: #fff;
}
.app__org { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--navy-2); border-radius: 4px; }
.app__org span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-navy-2); }
.app__nav { display: flex; flex-direction: column; gap: 4px; }
.app__nav button {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--on-navy); border: 0; border-radius: 4px;
  font: inherit; text-align: left; cursor: pointer;
}
.app__nav button:hover { background: var(--navy-2); color: #fff; }
.app__nav button[aria-current="page"] { background: var(--navy-2); color: #fff; font-weight: 600; }
.app__nav button[aria-current="page"] svg { color: var(--accent); }
.app__nav span:first-of-type { flex: 1 1 auto; }
.count { min-width: 24px; padding: 0 7px; background: var(--accent); color: var(--navy); border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; }
.count--alert { background: #D9483C; color: #fff; }
@media (max-width: 760px) {
  .app__side { gap: 12px; padding: 16px; }
  .app__nav { flex-direction: row; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--navy-2) transparent; }
  .app__nav button { flex: 0 0 auto; width: auto; }
}

.app__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 28px clamp(16px, 3vw, 40px) 48px; }
.app__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.app__head h2 {
  margin: 0;
  font-family: var(--display); font-stretch: 110%; font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1;
}
.app__head .eyebrow { font-size: 12px; }
.app__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.alert {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 18px;
  background: var(--todo-bg); color: var(--todo-fg); border: 1px solid var(--todo-bd); border-radius: 6px;
}
.alert p { margin: 0; flex: 1 1 360px; min-width: 0; }
.alert a { color: var(--todo-fg); font-weight: 700; }

.kpis { display: flex; flex-wrap: wrap; gap: 16px; }
.kpi {
  flex: 1 1 180px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--muted);
}
.kpi__value {
  font-family: var(--display); font-stretch: 110%; font-weight: 800;
  font-size: 32px; line-height: 1.1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi__value--alert { color: var(--antifouling); }

.panel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 16px; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.panel__head--rule { border-bottom: 1px solid var(--line); }
.panel h3 { margin: 0; font-size: 18px; }
.panel__head > span { font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend .chip { font-size: 12px; }

.scroll-x { overflow-x: auto; }
.planning { min-width: 980px; }
.planning__row { display: grid; grid-template-columns: 210px repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.planning__row:last-child { border-bottom: 0; }
.planning__row--head { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.planning__row--head > div { padding: 10px 12px; }
.planning__row--head > div:first-child { padding-left: 16px; }
.planning__row--head .is-today { background: var(--navy); color: #fff; }
.who { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; }
.who__ini {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}
.who > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.who__spec { font-size: 13px; color: var(--muted); }
.who__ini--invite { background: #fff; color: var(--navy); border: 1px dashed var(--field); }
.who__chip { margin-top: 6px; font-size: 12px; }
.who__demo { min-height: 32px; padding: 0; font-size: 12px; text-align: left; }
.cell__add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  background: transparent; color: var(--muted);
  border: 1px dashed var(--field); border-radius: 4px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cell__add:hover { background: #fff; color: var(--navy); border-color: var(--navy); }
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 12px 16px;
  background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-bd); border-radius: 6px;
}
.notice .linkish { min-height: 32px; padding: 0; color: var(--ok-fg); font-size: 15px; font-weight: 700; }
.chip--new { background: var(--today); color: var(--navy); border-color: var(--accent); }
.chip--away, .job--away {
  background: repeating-linear-gradient(135deg, var(--line-soft) 0 6px, #fff 6px 12px);
  color: var(--muted); border-color: var(--line);
}
.job__time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }

/* Aperçu de la journée dans « Attribuer » */
.schedule { padding: 12px 14px; background: var(--ground); border-radius: 6px; font-size: 14px; }
.schedule__title { margin: 0 0 6px; font-weight: 600; }
.schedule__empty { margin: 0; color: var(--muted); }
.schedule ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.schedule li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 8px; border-radius: 4px; }
.schedule__time { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.schedule li.is-clash { background: var(--miss-bg); color: var(--miss-fg); }
.schedule__flag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.form__fix { min-height: 32px; padding: 0; color: var(--miss-fg); font-size: 15px; font-weight: 700; }

/* Propositions en attente et refusées */
.chip--pending, .job--pending { background: #fff; color: var(--navy); border: 1px dashed var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.chip--declined, .job--declined { background: var(--miss-bg); color: var(--miss-fg); border-color: var(--miss-bd); }
.job--declined strong { text-decoration: line-through; }
.job__sim { padding-top: 4px; font-size: 12px; color: var(--muted); }
.job__sim .linkish, .job__act { min-height: 28px; padding: 0 2px; font-size: 12px; font-weight: 700; }
.job__act { align-self: flex-start; padding: 0; color: var(--miss-fg); }

/* Vignettes des bons et visionneuse */
.thumb {
  position: relative; flex: 0 0 auto;
  width: 64px; height: 48px; padding: 0;
  background: var(--line-soft); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; cursor: zoom-in;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--navy); }
.thumb__more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 36, 54, 0.6); color: #fff; font-weight: 700;
}
.bons__open {
  grid-area: open; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin: -6px -8px; padding: 6px 8px;
  background: transparent; border: 0; border-radius: 6px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.bons__open:hover { background: var(--ground); }
.bons__see { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bons__open:hover .bons__see { color: var(--navy); }
.bons__thumbs { grid-area: thumbs; display: flex; flex-wrap: wrap; gap: 6px; }

.dialog--wide { width: min(760px, calc(100vw - 32px)); }
.viewer { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: var(--hull-dark); }
/* scale-down : une photo plus petite que le cadre reste nette au lieu d'être agrandie */
.viewer img { display: block; width: 100%; height: min(52vh, 420px); object-fit: scale-down; }
.viewer figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--navy); color: #fff; font-size: 14px;
}
.viewer__count { font-family: var(--mono); color: var(--on-navy-2); }
.viewer__nav {
  position: absolute; top: calc(50% - 40px);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); color: var(--navy); border: 0; border-radius: 50%; cursor: pointer;
}
.viewer__nav--prev { left: 10px; }
.viewer__nav--next { right: 10px; }
.viewer__strip { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__strip .thumb { cursor: pointer; }
.viewer__strip .thumb.is-current { outline: 3px solid var(--accent); outline-offset: 1px; }
.bon-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; }
.bon-facts dd { margin: 0; font-weight: 600; }
.bon-list { margin: 6px 0 0; padding-left: 20px; }
.bon-remark { padding: 12px 14px; background: var(--today); border-radius: 6px; }
.bon-remark p { margin: 4px 0 0; }
.bon-sign { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }

/* Stock du magasin */
.stock { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
.stock th, .stock td { padding: 12px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line-soft); }
.stock thead th {
  border-top: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.stock tbody th { font-weight: 400; }
.stock tbody th strong { display: block; }
.stock__ref { display: block; font-size: 13px; color: var(--muted); }
.stock__pn { display: block; font-family: var(--mono); font-size: 12px; color: var(--navy); }
.stock__pn--main { font-size: 14px; font-weight: 500; }
.stock__actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.stock--orders { min-width: 640px; }
.stock-move--in { color: #1F6B3E; font-weight: 600; }
.stock-move--out { color: var(--muted); }
.input--mono { font-family: var(--mono) !important; letter-spacing: 0.02em; }
.field input:disabled, .field select:disabled { background: var(--ground); color: var(--muted); }
.stock__loc { font-family: var(--mono); }
.stock tr.is-low { background: #FFFAF1; }
.stock tr.is-out { background: #FDF3F1; }
.stock__qty { display: flex; flex-direction: column; gap: 6px; }
.gauge { position: relative; display: block; width: 120px; height: 6px; background: var(--line-soft); border-radius: 3px; }
.gauge > span { display: block; height: 100%; border-radius: 3px; background: #3C8A5A; }
.gauge--low > span { background: #D08A1E; }
.gauge--out > span { background: #C23A31; }
.gauge i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--navy); }
.stock__link { min-height: 32px; padding: 0; font-size: 13px; font-weight: 600; }
.stock-out { list-style: none; margin: 0; padding: 0; }
.stock-out li {
  display: grid; grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr); gap: 4px 16px;
  padding: 12px 20px; border-top: 1px solid var(--line-soft);
}
.stock__date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .stock-out li { grid-template-columns: 64px minmax(0, 1fr); }
  .stock-out li > :last-child { grid-column: 2; }
}
.bon-stock { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* Téléphone : propositions et photos */
.ph-props { display: flex; flex-direction: column; gap: 10px; }
.ph-props__title { margin: 0; font-size: 15px; }
.ph-card--prop { border: 2px solid var(--accent); }
.ph-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo--img { position: relative; overflow: hidden; padding: 0; }
.photo--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--img span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 6px; background: rgba(15, 36, 54, 0.7); color: #fff;
  font-family: var(--mono); font-size: 10px; text-align: left;
}

/* --- Fenêtres de la démo --- */
.dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--navy); background: #fff;
  border: 0; border-radius: 8px;
  box-shadow: 0 24px 64px rgba(8, 19, 29, 0.35);
}
.dialog::backdrop { background: rgba(8, 19, 29, 0.55); }
.dialog__form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog__head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.dialog__close {
  flex: 0 0 auto; width: 44px; height: 44px; margin: -10px -10px 0 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: 0; border-radius: 4px; cursor: pointer;
}
.dialog__close:hover { background: var(--ground); color: var(--navy); }
.dialog__intro { margin: 0; color: var(--muted); }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.row > .field--time { flex: 1 1 120px; }
.cell { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-left: 1px solid var(--line-soft); }
.cell.is-today { background: var(--today); }
.cell__free { font-size: 13px; color: var(--muted-2); }
.job {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px;
  border: 1px solid; border-radius: 4px;
  font-size: 13px; line-height: 1.35;
}
.job strong { font-size: 14px; }
.job__status { padding-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.job--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-bd); }
.job--todo { background: var(--todo-bg); color: var(--todo-fg); border-color: var(--todo-bd); }
.job--cours { background: var(--cours-bg); color: var(--cours-fg); border-color: var(--cours-bd); }
.job--plan { background: #fff; color: var(--navy); border-style: dashed; border-color: var(--field); }
.job.is-fresh { box-shadow: 0 0 0 3px var(--accent); }

.duo { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.duo > .panel { flex: 1 1 440px; min-width: 0; }

.bons { list-style: none; margin: 0; padding: 0; }
/* Un bon : infos et action en haut, vignettes en dessous, quelle que soit la largeur du panneau */
.bons li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "open action" "thumbs thumbs";
  align-items: start;
  gap: 10px 16px;
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
}
.bons li > .btn, .bons li > .chip { grid-area: action; justify-self: end; }
.bons li.is-fresh { background: var(--today); }
.bons__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bons__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bons__empty { padding: 16px 20px; border-top: 1px solid var(--line-soft); color: var(--muted); }

.papers { min-width: 640px; }
.papers__row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center;
  padding: 10px 20px; border-top: 1px solid var(--line-soft);
}
.papers__row--head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.papers__row .chip { justify-self: start; }

/* --- Vue mécanicien (téléphone) --- */
.phone-stage { display: flex; justify-content: center; padding: 32px 16px 64px; }
.phone {
  width: min(390px, 100%); height: 780px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ground);
  border: 10px solid var(--hull-dark); border-radius: 40px;
  box-shadow: 0 30px 60px rgba(15, 36, 54, 0.25);
}
@media (max-width: 480px) {
  .phone-stage { padding: 0; }
  .phone { width: 100%; height: auto; min-height: 85vh; border: 0; border-radius: 0; box-shadow: none; }
}
.ph-head { flex: 0 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 20px; background: var(--navy); color: #fff; }
.ph-head__top { display: flex; justify-content: space-between; align-items: center; }
.ph-head .brand { min-height: 0; gap: 8px; }
.ph-head .brand__name { font-size: 19px; }
.ph-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--navy); font-size: 13px; font-weight: 700;
}
.ph-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-2); }
.ph-title { margin: 0; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 28px; line-height: 1.15; }
.ph-sub { font-size: 15px; color: var(--on-navy); }
.ph-back {
  align-self: flex-start;
  display: flex; align-items: center; gap: 4px;
  min-height: 44px; margin: -8px 0 -4px -8px; padding: 0 8px;
  background: transparent; border: 0; color: var(--on-navy);
  font: inherit; font-size: 15px; cursor: pointer;
}
.ph-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ph-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.ph-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-time { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.ph-boat { font-size: 19px; font-weight: 700; display: block; }
.ph-model { font-size: 14px; color: var(--muted); }
.ph-place { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.ph-place svg { flex: 0 0 auto; }
.ph-note {
  width: 100%;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-bd); border-radius: 8px;
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.ph-note--todo { background: var(--todo-bg); color: var(--todo-fg); border-color: var(--todo-bd); }
.ph-note--review { background: var(--cours-bg); color: var(--cours-fg); border-color: var(--cours-bd); }
.ph-note svg { flex: 0 0 auto; }
.ph-note strong { display: block; font-size: 15px; }
.ph-toast { margin: 0; padding: 12px 14px; background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-bd); border-radius: 8px; font-size: 15px; }
.ph-toast .linkish { color: var(--ok-fg); font-size: 15px; font-weight: 700; padding: 0; min-height: 0; margin-top: 6px; display: block; }

.ph-tabbar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; background: #fff; border-top: 1px solid var(--line); }
.ph-tabbar button {
  position: relative;
  min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: transparent; border: 0; border-radius: 6px;
  font: inherit; font-size: 12px; color: var(--muted-2); cursor: pointer;
}
.ph-tabbar button[aria-current="page"] { color: var(--navy); font-weight: 700; }
.ph-dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #D9483C; }

/* Téléphone : dépôt de papiers */
.ph-intro { margin: 0; font-size: 14px; color: var(--muted); }
.ph-upload { display: flex; flex-direction: column; gap: 8px; }
.ph-upload__preview { width: 100%; max-height: 220px; object-fit: contain; background: var(--ground); border-radius: 6px; }
.ph-upload__file { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; background: var(--ground); border-radius: 6px; word-break: break-all; }
.ph-upload .linkish { align-self: flex-start; min-height: 36px; padding: 0; }
.ph-file { cursor: pointer; text-align: center; }
.ph-upload:has(#ph-file:focus-visible) .ph-file { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Planning : interventions déplaçables */
.job.is-movable { position: relative; padding-right: 38px; cursor: grab; }
.job.is-dragging { opacity: 0.45; }
.job__move {
  position: absolute; top: 4px; right: 4px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.job__move:hover { border-color: var(--navy); }
.cell.is-drop { background: #E8F0F6; box-shadow: inset 0 0 0 2px var(--navy); }

/* Papiers : action sous chaque statut */
.paper { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.paper__act { min-height: 28px; padding: 0; font-size: 12px; font-weight: 700; }
.paper__act--demo { font-weight: 500; color: var(--muted); }

/* Bateaux */
.stock--boats { min-width: 860px; }
.boat-link { display: flex; flex-direction: column; align-items: flex-start; padding: 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.boat-link strong { text-decoration: underline; text-underline-offset: 3px; }
.boat-search { flex: 0 1 300px; }
.boat-list { list-style: none; margin: 6px 0 0; padding: 0; }
.boat-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.boat-list li > span:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.boat-list .linkish { min-height: 32px; padding: 0; font-size: 14px; }

/* Factures */
.stock--invoices { min-width: 980px; }
.inv-chip { display: block; margin-top: 4px; }
.kpi__value--money { font-size: 24px; }
.invoice {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(16px, 3vw, 28px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.invoice__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.invoice__top > div, .invoice__client { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.invoice__top strong, .invoice__client strong { color: var(--navy); font-size: 16px; }
.invoice__meta { text-align: right; }
.invoice__lines { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.invoice__lines th, .invoice__lines td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.invoice__lines th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.invoice__lines th:not(:first-child), .invoice__lines td.num { text-align: right; white-space: nowrap; }
.invoice__totals { margin: 0 0 0 auto; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.invoice__totals div { display: flex; justify-content: space-between; gap: 24px; }
.invoice__totals dd { margin: 0; }
.invoice__totals .is-total { padding-top: 6px; border-top: 2px solid var(--navy); font-size: 17px; font-weight: 700; }
.invoice__note { margin: 0; font-size: 12px; color: var(--muted); }

/* Document déposé */
.viewer--doc img { height: min(56vh, 460px); background: #DCE3E7; }
.viewer__file { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 48px 16px; color: #fff; }

.ph-section { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ph-section > .label, .ph-section legend { font-size: 12px; }
fieldset.ph-section { margin: 0; min-width: 0; gap: 0; padding-top: 10px; }
fieldset.ph-section legend { padding: 0 4px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ph-counter { display: flex; align-items: center; gap: 10px; }
.ph-counter input {
  width: 120px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--field); border-radius: 6px;
  font: inherit; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--navy); background: #fff;
}
.ph-counter span { font-size: 18px; font-weight: 600; }
.ph-hint { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.parts { display: flex; flex-direction: column; }
.parts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.parts span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--ground); color: var(--navy); border: 1px solid var(--field); border-radius: 6px; cursor: pointer;
}
.stepper output { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.ph-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph-photos .photo { aspect-ratio: 1 / 1; border-radius: 6px; }
.ph-photos button {
  aspect-ratio: 1 / 1; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; color: var(--navy); border: 2px dashed var(--field); border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ph-section textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--field); border-radius: 6px;
  font: inherit; font-size: 15px; color: var(--navy); background: #fff; resize: vertical;
}
.sig { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--ground); border-radius: 6px; font-size: 14px; }
.sig .linkish { align-self: flex-start; padding: 0; font-weight: 600; }
.sig-btn {
  min-height: 88px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ground); color: var(--navy); border: 2px dashed var(--field); border-radius: 6px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.ph-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; background: #fff; border-top: 1px solid var(--line); }
.ph-foot .btn { width: 100%; }
.ph-foot span { font-size: 13px; color: var(--muted); text-align: center; }
