/* BetterVTC Refonte — reset + typo + classes utilitaires brutalistes */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
  min-height: 100vh;
}

/* Liens : sans soulignement par defaut (brutalisme = rectangles, pas de fioritures) */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Boutons : reset complet, ils heritent des styles du composant */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Inputs : reset cohérent */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 3px 3px 0 0 var(--accent);
}

/* Listes : reset */
ul, ol { list-style: none; }

/* Images : block + responsive */
img, svg, video { display: block; max-width: 100%; }

/* Headings : on les garde minimaux, les composants stylisent en local */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Selection */
::selection { background: var(--ink); color: var(--paper); }

/* Scrollbars (mockup screens) */
.bvtc-screen::-webkit-scrollbar { width: 0; height: 0; }

/* ─────────── Classes utilitaires brutalistes ─────────── */
.brut-border  { border: 2px solid var(--line); }
.brut-thick   { border: 3px solid var(--line); }
.brut-shadow-sm { box-shadow: var(--shadow-sm); }
.brut-shadow    { box-shadow: var(--shadow); }
.brut-shadow-lg { box-shadow: var(--shadow-lg); }

.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.tight { letter-spacing: -0.04em; }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }
.upper-tight { text-transform: uppercase; letter-spacing: 0.1em; }

/* Surfaces de couleur signal */
.surface-paper  { background: var(--paper); color: var(--ink); }
.surface-ink    { background: var(--ink);   color: var(--paper); }
.surface-yellow { background: var(--signal-yellow); color: var(--ink); }
.surface-red    { background: var(--signal-red);    color: #fff; }
.surface-green  { background: var(--signal-green);  color: #fff; }
.surface-blue   { background: var(--signal-blue);   color: #fff; }

/* Animations */
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.blink { animation: blink 1s steps(2, start) infinite; }

@keyframes pulse-shadow {
  0%, 100% { box-shadow: var(--shadow); }
  50%      { box-shadow: 6px 6px 0 0 var(--accent); }
}
.pulse { animation: pulse-shadow 2s ease-in-out infinite; }

/* Helper layout */
.stack { display: flex; flex-direction: column; }
.row   { display: flex; flex-direction: row; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.items-end   { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
