/* ============================================================
   SAILCHECK — Design System
   App de checklists pour la navigation à voile.
   Univers nautique · sobre · premium · mobile-first.
   Architecture héritée de BEAUFORT, re-thémée bleu marine.
   ============================================================ */

:root {
  /* ---- Couleurs de marque ---- */
  --vc-navy:      #0E2A47;   /* bleu marine profond */
  --vc-voile:     #F6F3EB;   /* blanc cassé / voile  */
  --vc-coral:     #FF6B4A;   /* accent CTA           */
  --vc-balise:    #FFC53D;   /* jaune balise / signalisation */

  /* ---- Échelle marine ---- */
  --vc-navy-950: oklch(0.22 0.055 250);
  --vc-navy-900: oklch(0.27 0.062 250);
  --vc-navy-800: oklch(0.34 0.068 248);
  --vc-navy-700: oklch(0.42 0.072 247);
  --vc-navy-600: oklch(0.52 0.070 245);
  --vc-navy-500: oklch(0.62 0.060 243);
  --vc-navy-400: oklch(0.72 0.045 240);
  --vc-navy-300: oklch(0.82 0.030 235);
  --vc-navy-200: oklch(0.90 0.018 232);
  --vc-navy-100: oklch(0.95 0.010 230);

  /* ---- Coral ---- */
  --vc-coral-700: oklch(0.58 0.16 32);
  --vc-coral-600: oklch(0.66 0.18 33);
  --vc-coral:     #FF6B4A;
  --vc-coral-soft: oklch(0.93 0.045 35);
  --vc-coral-tint: oklch(0.965 0.022 38);

  /* ---- Balise ---- */
  --vc-balise-700: oklch(0.66 0.13 78);
  --vc-balise:     #FFC53D;
  --vc-balise-soft: oklch(0.94 0.055 88);

  /* ---- Surfaces ---- */
  --vc-bg:        #F6F3EB;
  --vc-bg-2:      oklch(0.955 0.006 90);
  --vc-surface:   #FFFFFF;
  --vc-surface-2: oklch(0.975 0.004 230);
  --vc-line:      oklch(0.90 0.008 240);
  --vc-line-strong: oklch(0.82 0.012 240);

  /* ---- États : feu tricolore (OK / Manquant / Défaillant) ---- */
  --vc-ok:        oklch(0.60 0.13 158);   /* vert : présent & fonctionnel */
  --vc-ok-soft:   oklch(0.94 0.045 160);
  --vc-ok-ink:    oklch(0.42 0.10 160);
  --vc-warn:      oklch(0.74 0.135 72);   /* ambre : manquant */
  --vc-warn-soft: oklch(0.94 0.060 80);
  --vc-warn-ink:  oklch(0.52 0.11 65);
  --vc-bad:       oklch(0.60 0.20 25);    /* rouge : défaillant */
  --vc-bad-soft:  oklch(0.94 0.045 25);
  --vc-bad-ink:   oklch(0.50 0.18 26);
  --vc-info:      oklch(0.58 0.09 235);
  --vc-info-soft: oklch(0.94 0.030 235);

  /* ---- Texte ---- */
  --vc-ink:       var(--vc-navy-950);
  --vc-ink-2:     var(--vc-navy-700);
  --vc-ink-3:     var(--vc-navy-500);
  --vc-ink-4:     var(--vc-navy-400);

  /* ---- Typographie ---- */
  --vc-font-display: 'Archivo', system-ui, sans-serif;
  --vc-font-ui: 'Hanken Grotesk', system-ui, sans-serif;
  --vc-font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  /* ---- Rayons ---- */
  --vc-r-xs: 6px; --vc-r-sm: 9px; --vc-r-md: 13px; --vc-r-lg: 18px; --vc-r-xl: 26px; --vc-r-pill: 999px;

  /* ---- Espacement ---- */
  --vc-1:4px; --vc-2:8px; --vc-3:12px; --vc-4:16px; --vc-5:20px; --vc-6:24px; --vc-8:32px; --vc-10:40px; --vc-12:48px; --vc-16:64px;

  /* ---- Élévation ---- */
  --vc-sh-1: 0 1px 2px oklch(0.27 0.06 250 / 0.08), 0 1px 1px oklch(0.27 0.06 250 / 0.05);
  --vc-sh-2: 0 4px 14px oklch(0.27 0.06 250 / 0.10), 0 1px 3px oklch(0.27 0.06 250 / 0.06);
  --vc-sh-3: 0 14px 40px oklch(0.27 0.06 250 / 0.16), 0 4px 10px oklch(0.27 0.06 250 / 0.08);
  --vc-sh-coral: 0 6px 18px oklch(0.66 0.18 33 / 0.32);

  --vc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset léger ---- */
*, *::before, *::after { box-sizing: border-box; }
.vc, .vc * { margin: 0; }
.vc {
  font-family: var(--vc-font-ui);
  color: var(--vc-ink);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
.vc-display { font-family: var(--vc-font-display); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; }
.vc-h1 { font-family: var(--vc-font-display); font-weight: 800; font-size: 38px; line-height: 1.04; letter-spacing: -0.02em; }
.vc-h2 { font-family: var(--vc-font-display); font-weight: 700; font-size: 27px; line-height: 1.1; letter-spacing: -0.015em; }
.vc-h3 { font-family: var(--vc-font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.vc-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.vc-lead { font-size: 17px; color: var(--vc-ink-2); line-height: 1.55; }
.vc-body { font-size: 15px; color: var(--vc-ink-2); }
.vc-small { font-size: 13px; color: var(--vc-ink-3); }
.vc-tiny { font-size: 11px; color: var(--vc-ink-3); }
.vc-eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vc-coral-700); }
.vc-eyebrow--navy { color: var(--vc-navy-500); }
.vc-mono { font-family: var(--vc-font-mono); font-size: 12px; letter-spacing: 0.01em; }
.vc-num { font-family: var(--vc-font-display); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.vc-row { display: flex; gap: var(--vc-4); }
.vc-row--center { align-items: center; }
.vc-row--between { justify-content: space-between; align-items: center; }
.vc-row--wrap { flex-wrap: wrap; }
.vc-col { display: flex; flex-direction: column; gap: var(--vc-4); }
.vc-grid { display: grid; gap: var(--vc-4); }
.vc-spacer { flex: 1; }

/* ============================================================
   BOUTONS  — gros tap targets (≥ 48px)
   ============================================================ */
.vc-btn {
  --_bg: var(--vc-navy); --_fg: #fff; --_bd: var(--vc-navy);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--vc-2);
  font-family: var(--vc-font-ui); font-weight: 700; font-size: 15px;
  min-height: 48px; padding: 0 22px; border-radius: var(--vc-r-md);
  background: var(--_bg); color: var(--_fg); border: 2px solid var(--_bd);
  cursor: pointer; transition: transform 0.14s var(--vc-ease), box-shadow 0.14s var(--vc-ease), background 0.14s var(--vc-ease);
  white-space: nowrap; user-select: none; text-decoration: none; line-height: 1;
}
.vc-btn:hover { transform: translateY(-1px); box-shadow: var(--vc-sh-2); }
.vc-btn:active { transform: translateY(0); box-shadow: none; }
.vc-btn:focus-visible { outline: 3px solid var(--vc-balise); outline-offset: 2px; }
.vc-btn--coral { --_bg: var(--vc-coral); --_fg: #fff; --_bd: var(--vc-coral); }
.vc-btn--coral:hover { box-shadow: var(--vc-sh-coral); }
.vc-btn--balise { --_bg: var(--vc-balise); --_fg: var(--vc-navy-950); --_bd: var(--vc-balise); }
.vc-btn--ghost { --_bg: transparent; --_fg: var(--vc-navy); --_bd: var(--vc-line-strong); }
.vc-btn--ghost:hover { --_bg: var(--vc-surface-2); }
.vc-btn--quiet { --_bg: transparent; --_fg: var(--vc-ink-2); --_bd: transparent; min-height: 40px; }
.vc-btn--quiet:hover { --_bg: var(--vc-surface-2); box-shadow: none; transform: none; }
.vc-btn--on-navy { --_bg: #fff; --_fg: var(--vc-navy-950); --_bd: #fff; }
.vc-btn--ghost-navy { --_bg: transparent; --_fg: #fff; --_bd: oklch(1 0 0 / 0.4); }
.vc-btn--danger { --_bg: transparent; --_fg: var(--vc-bad-ink); --_bd: color-mix(in oklch, var(--vc-bad) 40%, var(--vc-line)); }
.vc-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: var(--vc-r-sm); }
.vc-btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; border-radius: var(--vc-r-md); }
.vc-btn--block { display: flex; width: 100%; }
.vc-btn[disabled] { opacity: 0.4; pointer-events: none; }
.vc-btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   CHAMPS
   ============================================================ */
.vc-field { display: flex; flex-direction: column; gap: 7px; }
.vc-label { font-size: 13px; font-weight: 600; color: var(--vc-ink-2); }
.vc-label .vc-req { color: var(--vc-coral-700); }
.vc-input, .vc-select, .vc-textarea {
  font-family: var(--vc-font-ui); font-size: 16px; color: var(--vc-ink);
  background: var(--vc-surface); border: 2px solid var(--vc-line-strong);
  border-radius: var(--vc-r-sm); padding: 13px 14px; width: 100%; min-height: 50px;
  transition: border-color 0.15s var(--vc-ease), box-shadow 0.15s var(--vc-ease);
}
.vc-input::placeholder, .vc-textarea::placeholder { color: var(--vc-navy-300); }
.vc-input:focus, .vc-select:focus, .vc-textarea:focus {
  outline: none; border-color: var(--vc-coral);
  box-shadow: 0 0 0 4px var(--vc-coral-soft);
}
.vc-textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
.vc-help { font-size: 12px; color: var(--vc-ink-3); }
.vc-input--error { border-color: var(--vc-bad); }
.vc-input--error:focus { box-shadow: 0 0 0 4px var(--vc-bad-soft); }
.vc-input-icon { position: relative; }
.vc-input-icon .vc-input { padding-left: 44px; }
.vc-input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--vc-ink-4); }

/* Checkbox */
.vc-check { display: inline-flex; align-items: center; gap: var(--vc-2); cursor: pointer; font-size: 14px; user-select: none; }
.vc-check input { position: absolute; opacity: 0; pointer-events: none; }
.vc-check .vc-box { width: 22px; height: 22px; border-radius: var(--vc-r-xs); border: 2px solid var(--vc-line-strong); background: var(--vc-surface); display: grid; place-items: center; transition: all 0.14s var(--vc-ease); flex: none; }
.vc-check .vc-box svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: all 0.14s var(--vc-ease); color: #fff; }
.vc-check input:checked + .vc-box { background: var(--vc-coral); border-color: var(--vc-coral); }
.vc-check input:checked + .vc-box svg { opacity: 1; transform: scale(1); }

/* ============================================================
   SEGMENT DE STATUT — OK / Manquant / Défaillant (signature)
   Codé couleur, accessible au pouce.
   ============================================================ */
.vc-seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 4px; background: var(--vc-bg-2);
  border-radius: var(--vc-r-md); border: 1px solid var(--vc-line);
}
.vc-seg__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 12px; border-radius: var(--vc-r-sm);
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  border: none; background: transparent; color: var(--vc-ink-3); cursor: pointer;
  transition: all 0.14s var(--vc-ease); user-select: none; white-space: nowrap;
}
.vc-seg__opt svg { width: 16px; height: 16px; opacity: 0.5; transition: opacity 0.14s; }
.vc-seg__opt:hover { color: var(--vc-ink); background: oklch(1 0 0 / 0.6); }
.vc-seg__opt.is-on { color: #fff; box-shadow: var(--vc-sh-1); }
.vc-seg__opt.is-on svg { opacity: 1; }
.vc-seg__opt.is-on[data-st="ok"]   { background: var(--vc-ok); }
.vc-seg__opt.is-on[data-st="warn"] { background: var(--vc-warn); color: var(--vc-navy-950); }
.vc-seg__opt.is-on[data-st="bad"]  { background: var(--vc-bad); }
/* compact (desktop tables) */
.vc-seg--sm .vc-seg__opt { min-height: 34px; font-size: 12px; padding: 0 9px; }

/* ============================================================
   BADGES
   ============================================================ */
.vc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--vc-r-pill); letter-spacing: 0.01em; background: var(--vc-navy-100); color: var(--vc-navy-700); }
.vc-badge--coral { background: var(--vc-coral-soft); color: var(--vc-coral-700); }
.vc-badge--balise { background: var(--vc-balise-soft); color: var(--vc-balise-700); }
.vc-badge--navy { background: var(--vc-navy); color: #fff; }
.vc-badge--ok { background: var(--vc-ok-soft); color: var(--vc-ok-ink); }
.vc-badge--warn { background: var(--vc-warn-soft); color: var(--vc-warn-ink); }
.vc-badge--bad { background: var(--vc-bad-soft); color: var(--vc-bad-ink); }
.vc-badge--outline { background: transparent; border: 1.5px solid var(--vc-line-strong); color: var(--vc-ink-2); }
.vc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ============================================================
   CARTES
   ============================================================ */
.vc-card { background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: var(--vc-r-lg); box-shadow: var(--vc-sh-1); overflow: hidden; }
.vc-card--pad { padding: var(--vc-6); }
.vc-card--flat { box-shadow: none; }
.vc-card__head { padding: var(--vc-4) var(--vc-5); border-bottom: 1px solid var(--vc-line); display: flex; align-items: center; gap: var(--vc-3); }
.vc-card__body { padding: var(--vc-5); }
.vc-card__foot { padding: var(--vc-4) var(--vc-5); border-top: 1px solid var(--vc-line); background: var(--vc-surface-2); }
.vc-card--int { cursor: pointer; transition: transform 0.15s var(--vc-ease), box-shadow 0.15s var(--vc-ease), border-color 0.15s; }
.vc-card--int:hover { transform: translateY(-2px); box-shadow: var(--vc-sh-2); border-color: var(--vc-line-strong); }

/* ============================================================
   ALERTES
   ============================================================ */
.vc-alert { display: flex; gap: var(--vc-3); padding: var(--vc-4); border-radius: var(--vc-r-md); background: var(--vc-surface); border: 1px solid var(--vc-line); border-left: 4px solid var(--vc-navy-500); }
.vc-alert__icon { flex: none; width: 22px; height: 22px; color: var(--vc-navy-600); }
.vc-alert__title { font-weight: 700; font-size: 14px; }
.vc-alert__text { font-size: 13px; color: var(--vc-ink-3); margin-top: 2px; }
.vc-alert--ok { border-left-color: var(--vc-ok); background: var(--vc-ok-soft); }
.vc-alert--ok .vc-alert__icon { color: var(--vc-ok-ink); }
.vc-alert--warn { border-left-color: var(--vc-warn); background: var(--vc-warn-soft); }
.vc-alert--warn .vc-alert__icon { color: var(--vc-warn-ink); }
.vc-alert--bad { border-left-color: var(--vc-bad); background: var(--vc-bad-soft); }
.vc-alert--bad .vc-alert__icon { color: var(--vc-bad-ink); }
.vc-alert--info { border-left-color: var(--vc-info); background: var(--vc-info-soft); }
.vc-alert--coral { border-left-color: var(--vc-coral); background: var(--vc-coral-tint); }

/* ============================================================
   PROGRESSION
   ============================================================ */
.vc-progress { height: 8px; border-radius: var(--vc-r-pill); background: var(--vc-navy-100); overflow: hidden; }
.vc-progress__fill { height: 100%; border-radius: inherit; background: var(--vc-coral); transition: width 0.5s var(--vc-ease); }
.vc-progress--ok .vc-progress__fill { background: var(--vc-ok); }
.vc-progress--navy .vc-progress__fill { background: var(--vc-navy); }
.vc-progress--thin { height: 5px; }

/* segmented progress (ok/warn/bad répartition) */
.vc-pbar { display: flex; height: 8px; border-radius: var(--vc-r-pill); overflow: hidden; background: var(--vc-navy-100); }
.vc-pbar > span { height: 100%; transition: width 0.4s var(--vc-ease); }
.vc-pbar .s-ok { background: var(--vc-ok); }
.vc-pbar .s-warn { background: var(--vc-warn); }
.vc-pbar .s-bad { background: var(--vc-bad); }

.vc-ring { transform: rotate(-90deg); }
.vc-ring__track { fill: none; stroke: var(--vc-navy-100); }
.vc-ring__fill { fill: none; stroke: var(--vc-coral); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--vc-ease); }

/* ============================================================
   MODALE
   ============================================================ */
.vc-modal-scrim { position: absolute; inset: 0; background: oklch(0.22 0.05 250 / 0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.vc-modal-scrim--center { align-items: center; }
.vc-modal { background: var(--vc-surface); border-radius: var(--vc-r-xl) var(--vc-r-xl) 0 0; width: 100%; box-shadow: var(--vc-sh-3); overflow: hidden; }
.vc-modal--card { border-radius: var(--vc-r-xl); margin: 0 16px; max-width: 420px; }
.vc-modal__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--vc-navy-200); margin: 12px auto 0; }
.vc-modal__head { padding: var(--vc-5) var(--vc-5) var(--vc-3); }
.vc-modal__body { padding: 0 var(--vc-5) var(--vc-5); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.vc-tabbar { display: flex; background: var(--vc-surface); border-top: 1px solid var(--vc-line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.vc-tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: none; background: none; color: var(--vc-ink-4); font-size: 11px; font-weight: 600; cursor: pointer; border-radius: var(--vc-r-sm); transition: color 0.14s; }
.vc-tabbar__item svg { width: 24px; height: 24px; }
.vc-tabbar__item.is-active { color: var(--vc-coral-700); }

.vc-tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--vc-line); }
.vc-tab { padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--vc-ink-3); border: none; background: none; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all 0.15s var(--vc-ease); }
.vc-tab:hover { color: var(--vc-ink); }
.vc-tab.is-active { color: var(--vc-ink); border-bottom-color: var(--vc-coral); }

/* sidebar (desktop / admin) */
.vc-side { background: var(--vc-navy-950); color: #fff; display: flex; flex-direction: column; }
.vc-side__nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.vc-side__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--vc-r-sm); color: var(--vc-navy-300); font-weight: 600; font-size: 14px; cursor: pointer; border: none; background: none; text-align: left; width: 100%; transition: all 0.14s var(--vc-ease); }
.vc-side__item svg { width: 19px; height: 19px; flex: none; }
.vc-side__item:hover { background: oklch(1 0 0 / 0.06); color: #fff; }
.vc-side__item.is-active { background: oklch(1 0 0 / 0.1); color: #fff; }
.vc-side__item.is-active svg { color: var(--vc-balise); }

/* ============================================================
   APPLI : ligne de point de check (mobile)
   ============================================================ */
.vc-point { background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: var(--vc-r-md); padding: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.vc-point + .vc-point { margin-top: 8px; }
.vc-point.is-ok   { border-left: 4px solid var(--vc-ok); }
.vc-point.is-warn { border-left: 4px solid var(--vc-warn); }
.vc-point.is-bad  { border-left: 4px solid var(--vc-bad); }
.vc-point__name { font-size: 15px; font-weight: 600; color: var(--vc-ink); line-height: 1.3; }
.vc-point__row { display: flex; align-items: flex-start; gap: 12px; }

/* ---- divers ---- */
.vc-divider { height: 1px; background: var(--vc-line); border: none; }
.vc-kbd { font-family: var(--vc-font-mono); font-size: 12px; padding: 2px 7px; border-radius: var(--vc-r-xs); background: var(--vc-navy-100); border: 1px solid var(--vc-line-strong); }
.vc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--vc-coral-soft); color: var(--vc-coral-700); display: grid; place-items: center; font-weight: 800; font-size: 15px; font-family: var(--vc-font-display); flex: none; }
.vc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--vc-r-pill); background: var(--vc-surface); border: 1.5px solid var(--vc-line-strong); color: var(--vc-ink-2); cursor: pointer; transition: all 0.14s; }
.vc-chip.is-on { background: var(--vc-navy); color: #fff; border-color: var(--vc-navy); }
.vc-skel { background: linear-gradient(90deg, var(--vc-navy-100) 25%, var(--vc-surface-2) 50%, var(--vc-navy-100) 75%); background-size: 200% 100%; animation: vc-shimmer 1.3s infinite; border-radius: var(--vc-r-sm); }
@keyframes vc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.vc-spin { width: 28px; height: 28px; border: 3px solid var(--vc-navy-100); border-top-color: var(--vc-coral); border-radius: 50%; animation: vc-rot 0.8s linear infinite; }
@keyframes vc-rot { to { transform: rotate(360deg); } }

/* ---- save indicator ---- */
.vc-autosave { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--vc-ok-ink); }
.vc-autosave svg { width: 14px; height: 14px; }

/* scrollbar hidden inside artboards already handled by canvas */

/* ============================================================
   app.css — surcouche RESPONSIVE de SailCheck (mobile-first, breakpoint 900px).
   Reutilise les classes vc-* du design system (sailcheck.css). Le design d origine
   utilisait des chassis "Phone" a largeur fixe ; ici on vise un vrai responsive plein ecran.
   ============================================================ */

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--vc-bg);
  color: var(--vc-ink);
  font-family: var(--vc-font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* #app porte le contexte typographique du design (equivalent de .vc) */
#app {
  display: block;
  min-height: 100%;
  font-family: var(--vc-font-ui);
  color: var(--vc-ink);
  font-size: 15px;
  line-height: 1.5;
}
#app, #app * { box-sizing: border-box; }

/* ============================================================
   SHELL APP — plein ecran, colonne header / contenu / tabbar
   ============================================================ */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--vc-bg);
}

/* Barre de tete (sticky). Variante navy pour les ecrans immersifs. */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--vc-3);
  padding: 12px 16px;
  background: var(--vc-surface);
  border-bottom: 1px solid var(--vc-line);
}
.app-topbar--navy {
  background: var(--vc-navy-950);
  color: #fff;
  border-bottom: none;
}
.app-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: var(--vc-2); }

/* Zone scrollable principale */
.app-main {
  flex: 1;
  width: 100%;
  padding: 16px;
}

/* Conteneur centre a largeur lisible (desktop) */
.app-container {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.app-container--wide { max-width: 1080px; }
.app-container--narrow { max-width: 460px; }

/* Bottom tabbar : visible mobile, masquee desktop (au profit d une nav laterale/haute) */
.app-tabbar { position: sticky; bottom: 0; z-index: 20; }

/* ============================================================
   HEADER NAVY IMMERSIF (checklist / dashboard) — full-bleed
   ============================================================ */
.app-hero {
  background: var(--vc-navy-950);
  color: #fff;
  padding: 8px 16px 20px;
}
.app-hero .vc-small,
.app-hero .vc-body { color: var(--vc-navy-300); }

/* La frise pleine largeur se cale meme dans un conteneur a padding */
.app-bleed { margin-inline: -16px; }

/* ============================================================
   LANDING — sections marketing pleine largeur
   ============================================================ */
.app-section { padding: 48px 16px; }
.app-section--navy { background: var(--vc-navy-950); color: #fff; }
.app-section__inner { max-width: 1080px; margin-inline: auto; }

/* ============================================================
   LISTES / GRILLES
   ============================================================ */
.app-grid { display: grid; gap: var(--vc-4); grid-template-columns: 1fr; }

/* ============================================================
   ADMIN — layout 2 colonnes (sidebar + contenu) desktop ;
   empile en mobile.
   ============================================================ */
.app-admin {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-admin__side { background: var(--vc-navy-950); color: #fff; }
.app-admin__body { flex: 1; padding: 16px; }

/* ============================================================
   ETATS (loading / error / success / empty)
   ============================================================ */
.app-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--vc-4);
  text-align: center;
  padding: 64px 24px;
  min-height: 50vh;
}
.app-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--vc-surface-2);
  color: var(--vc-ink-3);
}

/* ============================================================
   UTILITAIRES responsive
   ============================================================ */
.app-only-mobile { display: initial; }
.app-only-desktop { display: none; }

/* ============================================================
   >= 900px — passage desktop
   ============================================================ */
@media (min-width: 900px) {
  .app-main { padding: 24px; }
  .app-section { padding: 80px 24px; }
  .app-hero { padding: 16px 24px 28px; }
  .app-bleed { margin-inline: -24px; }

  /* bottom tabbar masquee en desktop */
  .app-tabbar { display: none; }

  .app-only-mobile { display: none; }
  .app-only-desktop { display: initial; }
  /* les boutons restent en flex (sinon le texte n'est pas centre verticalement) */
  .vc-btn.app-only-desktop { display: inline-flex; }

  /* admin en 2 colonnes */
  .app-admin { flex-direction: row; }
  .app-admin__side { width: 260px; flex: none; position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .app-admin__body { padding: 32px; }

  /* grilles a 2 colonnes la ou utile */
  .app-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .app-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .app-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Divers — focus visible, liens, scrollbar discrete
   ============================================================ */
a { color: inherit; }
.app-link { color: var(--vc-coral-700); font-weight: 600; text-decoration: none; cursor: pointer; }
.app-link:hover { text-decoration: underline; }

/* table admin responsive (scroll horizontal en mobile) */
.app-table-wrap { width: 100%; overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.app-table th, .app-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--vc-line); white-space: nowrap; }
.app-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc-ink-3); font-weight: 700; }

/* ============================================================
   ECRAN ADMIN (screens/admin.ts) — append seulement.
   Reproduit vc-screen-admin.jsx en responsive (mobile-first).
   ============================================================ */
/* En-tete de page (titre + actions), separateur bas */
.admin-head {
  padding: 18px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--vc-line);
}

/* Petit bouton-icone (edit / trash) dans l editeur de modele */
.vc-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--vc-ink-4);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.14s var(--vc-ease);
}
.vc-icon-btn:hover { background: var(--vc-surface-2); }

/* Editeur de modele : colonne categories + detail. Empile en mobile. */
.admin-tpl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.admin-tpl__cats {
  padding: 16px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-r-lg);
}
.admin-tpl__detail { min-width: 0; }

/* Cartes de stats du tableau de bord */
.admin-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Grille des champs de tarification */
.admin-settings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-settings__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .admin-head { padding-top: 6px; }
  .admin-tpl {
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   LANDING (screens/landing.ts) — porte de vc-screen-marketing.jsx,
   mobile-first, sans chassis Phone. Breakpoint desktop 900px.
   ============================================================ */
.vc-landing { display: block; }
.vc-landing a { text-decoration: none; }

/* --- HERO navy immersif --- */
.vc-landing__hero {
  position: relative;
  overflow: hidden;
  background: var(--vc-navy-950);
  color: #fff;
}
.vc-landing__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
  padding: 10px 22px 40px;
}
.vc-landing__nav { margin-bottom: 36px; }
.vc-landing__nav-links { display: flex; align-items: center; gap: 14px; }
.vc-landing__nav-link { font-size: 14px; color: rgba(255,255,255,0.7); cursor: pointer; }
.vc-landing__nav-link:hover { color: #fff; }

.vc-landing__hero-grid { display: block; }
.vc-landing__h1 { font-size: 40px; margin: 16px 0 14px; }
.vc-landing__lead { color: rgba(255,255,255,0.75); margin-bottom: 26px; max-width: 540px; }
.vc-landing__cta { width: 100%; justify-content: center; margin-bottom: 12px; }
.vc-landing__cta-note { text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }
.vc-landing__hero-art { display: none; }

/* --- Sections --- */
.vc-landing__section { padding: 36px 22px; }
.vc-landing__section--bg { background: var(--vc-bg); }
.vc-landing__section--navy { background: var(--vc-navy); color: #fff; }
.vc-landing__inner { max-width: 1180px; margin-inline: auto; }
.vc-landing__inner--narrow { max-width: 720px; }

/* --- Etapes --- */
.vc-landing__steps-head { margin-bottom: 22px; }
.vc-landing__steps-title { margin: 10px 0 0; font-size: 27px; }
.vc-landing__steps { display: flex; flex-direction: column; gap: 16px; }
.vc-landing__step { display: flex; gap: 14px; align-items: flex-start; }
.vc-landing__step-ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: oklch(1 0 0 / 0.08); color: var(--vc-balise);
  display: grid; place-items: center; flex: none; position: relative;
}
.vc-landing__step-num {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--vc-coral); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.vc-landing__step-desc { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* --- Tarif --- */
.vc-landing__tarif-grid { display: block; }
.vc-landing__tarif-title { font-size: 27px; margin: 10px 0 16px; }
.vc-landing__tarif-card { display: flex; justify-content: center; margin-top: 26px; }
.vc-landing__price { width: 100%; }

/* --- FAQ --- */
.vc-landing__faq-item { user-select: none; }

/* --- Hero mock (desktop) --- */
.vc-landing__mock { width: 320px; background: var(--vc-bg); }

/* --- Footer --- */
.vc-landing__footer { background: var(--vc-navy-950); color: rgba(255,255,255,0.6); padding: 30px 22px; }
.vc-landing__footer-inner { display: block; }
.vc-landing__footer-tag { font-size: 13px; margin: 14px 0; }
.vc-landing__footer-links { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.vc-landing__footer-links span { cursor: pointer; }
.vc-landing__footer-copy { font-size: 12px; margin-top: 18px; color: rgba(255,255,255,0.35); }

@media (min-width: 900px) {
  .vc-landing__hero-inner { padding: 0 56px 0; }
  .vc-landing__nav { padding: 22px 0; margin-bottom: 0; }
  .vc-landing__nav-links { gap: 22px; }
  .vc-landing__hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
    align-items: center; padding: 56px 0 72px;
  }
  .vc-landing__h1 { font-size: 60px; margin: 18px 0; max-width: 560px; }
  .vc-landing__lead { font-size: 19px; max-width: 480px; margin-bottom: 30px; }
  .vc-landing__cta { width: auto; margin-bottom: 0; }
  /* CTA + note cote a cote en desktop */
  .vc-landing__cta { display: inline-flex; }
  .vc-landing__cta + .vc-landing__cta-note {
    display: inline-block; margin-left: 14px; text-align: left; vertical-align: middle;
  }
  .vc-landing__hero-art { display: block; position: relative; }
  .vc-landing__hero-art-inner {
    transform: scale(0.92); transform-origin: top center;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
    border-radius: 30px; overflow: hidden; margin-inline: auto;
  }

  .vc-landing__section { padding: 72px 56px; }
  .vc-landing__steps-head { text-align: center; margin-bottom: 44px; }
  .vc-landing__steps-title { font-size: 40px; }
  .vc-landing__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  /* En desktop les etapes deviennent des cartes claires */
  .vc-landing__section--navy .vc-landing__steps { color: inherit; }

  .vc-landing__tarif-grid {
    display: grid; grid-template-columns: 0.8fr 1fr; gap: 56px; align-items: center;
  }
  .vc-landing__tarif-title { font-size: 38px; }
  .vc-landing__tarif-card { margin-top: 0; }

  .vc-landing__footer { padding: 32px 56px; }
  .vc-landing__footer-inner {
    display: flex; justify-content: space-between; align-items: center;
  }
  .vc-landing__footer-tag, .vc-landing__footer-links { display: none; }
  .vc-landing__footer-copy { margin-top: 0; }
}

/* ============================================================
   Ecran Auth (login / register) — plein ecran responsive,
   reprend le design Auth de vc-screen-marketing.jsx (fond navy 950,
   grille subtile, frise de pavillons en haut, carte centree).
   ============================================================ */
.app-auth {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--vc-navy-950);
  color: #fff;
  overflow: hidden;
  display: flex;
}
.app-auth__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.app-auth__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 24px 40px;
}
.app-auth__brand { padding-top: 18px; }
.app-auth__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}
.app-auth__title { color: #fff; font-size: 34px; margin-bottom: 8px; }
.app-auth__lead { color: rgba(255, 255, 255, 0.6); margin-bottom: 28px; }
.app-auth__switch {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.app-auth__switch-link {
  color: var(--vc-balise);
  font-weight: 700;
  text-decoration: none;
}
.app-auth__switch-link:hover { text-decoration: underline; }
.app-auth__legal {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
}
.app-auth__error {
  font-size: 14px;
  font-weight: 600;
  color: var(--vc-bad-ink);
  background: var(--vc-bad-soft);
  border: 1px solid var(--vc-bad);
  border-radius: var(--vc-r-md);
  padding: 11px 14px;
}

@media (min-width: 900px) {
  .app-auth__inner { max-width: 460px; padding: 48px 40px; }
  .app-auth__title { font-size: 40px; }
}

/* ============================================================
   Ecran pdfpreview — apercu de la page A4 sur fond navy.
   Mobile : pleine largeur. Desktop : page centree, largeur A4 confortable.
   ============================================================ */
.pdf-screen { min-height: 100%; }
.pdf-page { width: 100%; margin: 0 auto; }
.pdf-screen .vc-row--between { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
.pdf-screen > .vc-btn { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }

@media (min-width: 900px) {
  .pdf-screen { padding: 28px 24px 48px; }
  .pdf-page { max-width: 760px; }
}

/* ============================================================
   ECRAN CHECKLIST (screens/checklist.ts) — vccl-*
   Mobile-first : accordeon plein ecran ; >=900px : 2 colonnes.
   ============================================================ */

/* slots responsive : mobile visible par defaut, desktop masque (cf .app-only-*) */
.vccl-desktop { display: none; }

/* ---- MOBILE ---- */
.vccl-mhead {
  background: var(--vc-navy-950);
  color: #fff;
  padding: 8px 18px 18px;
}
.vccl-iconbtn {
  width: 40px; height: 40px;
  border-radius: 11px; border: none;
  background: oklch(1 0 0 / 0.1); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  text-decoration: none; flex: none;
}
.vccl-iconbtn:hover { background: oklch(1 0 0 / 0.18); }

.vccl-mbody { padding: 14px 16px 96px; background: var(--vc-bg); }
.vccl-mpanel { margin-bottom: 12px; }

.vccl-mcat {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-r-md);
  cursor: pointer;
  box-shadow: var(--vc-sh-1);
  text-align: left;
}
.vccl-mcat:hover { border-color: var(--vc-line-strong); }
.vccl-mcat__ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--vc-navy); color: var(--vc-balise);
  display: grid; place-items: center; flex: none;
}

/* boutons "remarque" / "supprimer" sur un point (mobile) */
.vccl-mini {
  flex: none; width: 32px; height: 32px;
  border-radius: 8px; border: none; cursor: pointer;
  background: var(--vc-bg-2); color: var(--vc-ink-4);
  display: grid; place-items: center;
}
.vccl-mini:hover { background: var(--vc-navy-100); }
.vccl-mini[data-active="note"] { background: var(--vc-coral-soft); color: var(--vc-coral-700); }
.vccl-mini--danger { color: var(--vc-bad-ink); }

/* bouton "Ajouter un point" en pointilles */
.vccl-add {
  width: 100%; margin-top: 8px; padding: 12px;
  border: 1.5px dashed var(--vc-line-strong);
  border-radius: var(--vc-r-md);
  background: transparent; color: var(--vc-ink-3);
  font-weight: 600; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vccl-add:hover { border-color: var(--vc-coral); color: var(--vc-coral-700); }
.vccl-add--inline {
  width: auto; margin-top: 10px; padding: 9px 14px;
  border-radius: 10px;
  display: inline-flex; justify-content: flex-start;
}

/* barre d action collante en bas */
.vccl-footer {
  position: sticky; bottom: 0;
  background: var(--vc-surface);
  border-top: 1px solid var(--vc-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px oklch(0.27 0.06 250 / 0.06);
  z-index: 5;
}

/* ---- DESKTOP (>= 900px) ---- */
@media (min-width: 900px) {
  .vccl-mobile { display: none; }
  .vccl-desktop { display: grid; }

  .vccl { min-height: 100vh; min-height: 100dvh; }

  .vccl-desktop {
    grid-template-columns: 300px 1fr;
    min-height: 100vh; min-height: 100dvh;
    background: var(--vc-bg);
  }

  .vccl-side {
    border-right: 1px solid var(--vc-line);
    background: var(--vc-surface);
    display: flex; flex-direction: column;
    padding: 24px;
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    overflow: auto;
  }

  .vccl-navitem {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 12px; border-radius: 10px;
    border: none; cursor: pointer; text-align: left; width: 100%;
    background: transparent;
  }
  .vccl-navitem:hover { background: var(--vc-bg-2); }
  .vccl-navitem.is-active { background: var(--vc-navy-100); }
  .vccl-navitem__ic {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--vc-bg-2); color: var(--vc-ink-3);
    display: grid; place-items: center; flex: none;
  }
  .vccl-navitem__ic.is-active { background: var(--vc-navy); color: var(--vc-balise); }

  .vccl-pane { display: flex; flex-direction: column; min-width: 0; }
  .vccl-pane__head {
    padding: 20px 32px;
    border-bottom: 1px solid var(--vc-line);
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; background: var(--vc-surface); z-index: 4;
  }
  .vccl-pane__ic {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--vc-navy); color: var(--vc-balise);
    display: grid; place-items: center; flex: none;
  }
  .vccl-pane__head .vc-autosave { margin-left: auto; }
  .vccl-pane__body { padding: 24px 32px; flex: 1; }

  .vccl-drow {
    padding: 14px 18px;
    border-bottom: 1px solid var(--vc-line);
  }
  .vccl-drow.is-last { border-bottom: none; }
  .vccl-drow__top { display: flex; align-items: center; gap: 16px; }
  .vccl-drow__note:empty { display: none; }

  .vccl-dmini {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid var(--vc-line); background: var(--vc-surface);
    color: var(--vc-ink-4); cursor: pointer;
    display: grid; place-items: center; flex: none;
  }
  .vccl-dmini:hover { border-color: var(--vc-line-strong); }
  .vccl-dmini[data-active="note"] { background: var(--vc-coral-soft); color: var(--vc-coral-700); border-color: transparent; }
  .vccl-dmini--danger { color: var(--vc-bad-ink); }
}

/* ============================================================
   PAYWALL (/app/paywall) — porte depuis vc-screen-app.jsx (Paywall)
   ============================================================ */
.vc-pw-screen {
  position: relative;
  min-height: 100vh;
  background: var(--vc-navy-950);
  padding: 16px 22px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vc-pw-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}
.vc-pw-top {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.vc-pw-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: oklch(1 0 0 / 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}
.vc-pw-close:hover { background: oklch(1 0 0 / 0.18); }
.vc-pw-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.vc-pw-iconbox {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--vc-coral);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: var(--vc-sh-coral);
}
.vc-pw-title { color: #fff; font-size: 32px; margin-bottom: 12px; }
.vc-pw-lead { color: rgba(255,255,255,0.7); margin-bottom: 26px; }
.vc-pw-card { padding: 22px; margin-bottom: 18px; }
.vc-pw-card .vc-display { color: var(--vc-navy-950); }
.vc-pw-error { position: relative; }
.vc-pw-pay {
  background: #635BFF;
  border-color: #635BFF;
  color: #fff;
  margin-bottom: 12px;
}
.vc-pw-pay:hover:not(:disabled) { background: #574fe0; border-color: #574fe0; }
.vc-pw-pay:disabled { opacity: 0.75; cursor: default; }
.vc-pw-secure {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 900px) {
  .vc-pw-body { max-width: 460px; }
}

/* ============================================================
   Feuille de création de checklist (modale 2 colonnes, responsive)
   ============================================================ */
.app-create { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 18px; }
.app-create > div { min-width: 0; }
@media (min-width: 760px) {
  .app-create { grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
}

/* lignes groupées du formulaire de création */
.app-create__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-create__row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) {
  .app-create__row3 { grid-template-columns: 1fr; }
}

/* photos par point de check (écran de remplissage) */
.vccl-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.vccl-photo { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--vc-line); display: block; }
.vccl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vccl-photo__del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(20,37,54,0.6); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.vccl-photo-add { display: inline-flex; align-items: center; gap: 6px; height: 64px; padding: 0 14px; border: 1.5px dashed var(--vc-line-strong); border-radius: 8px; background: transparent; color: var(--vc-ink-3); font-weight: 600; font-size: 13px; cursor: pointer; }

/* ============================================================
   Rapport public (lien secret /r/:token)
   ============================================================ */
.app-report { min-height: 100%; background: var(--vc-navy-900); padding: 24px 16px 40px; }
.app-report__loading, .app-report__msg { max-width: 760px; margin: 60px auto; text-align: center; color: #fff; }
.app-report__card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--vc-sh-3); }
.app-report__head { background: var(--vc-navy-950); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-report__eyebrow { font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; margin-top: 8px; }
.app-report__ref { text-align: right; font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.7; }
.app-report__body { padding: 22px 24px 26px; }
.app-report__info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 20px; }
.app-report__k { font-size: 10px; color: var(--vc-ink-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.app-report__v { font-size: 14px; font-weight: 700; }
.app-report__tot { display: flex; gap: 8px; margin-bottom: 22px; }
.app-report__tot-cell { flex: 1; background: var(--vc-bg-2); border-radius: 8px; padding: 10px 8px; text-align: center; }
.app-report__tot-l { font-size: 11px; color: var(--vc-ink-3); font-weight: 600; }
.app-report__sec { margin-bottom: 18px; }
.app-report__sec-title { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vc-navy-700); padding-bottom: 6px; border-bottom: 1.5px solid var(--vc-navy-900); display: flex; align-items: center; gap: 6px; }
.app-report__item { padding: 9px 0; border-bottom: 1px solid var(--vc-line); }
.app-report__item-row { display: flex; align-items: center; gap: 10px; }
.app-report__note { font-size: 12px; color: var(--vc-ink-3); font-style: italic; margin: 4px 0 0 4px; }
.app-report__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-report__photo { width: 88px; height: 88px; border-radius: 8px; overflow: hidden; border: 1px solid var(--vc-line); display: block; }
.app-report__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-report__foot { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }
@media (max-width: 560px) { .app-report__info { grid-template-columns: 1fr; } }
