/* =========================================================
   GAMMA WANTED — theme.css
   Atelier d'armurier · scarlet · parchment · mat
   Aucune trace de cyan/glassmorphism/blur.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Fonds */
  --bg:             #0d0a08;
  --bg-card:        #1a1512;
  --bg-card-hi:     #221b16;
  --bg-input:       #1e1a16;

  /* Scarlet Wanted */
  --scarlet:        #7a1518;
  --scarlet-bright: #9b1c20;
  --scarlet-deep:   #4d0d10;
  --scarlet-border: rgba(122, 21, 24, 0.35);

  /* Parchemin */
  --parchment-light:#e6ddd0;
  --parchment:      #d4c8b8;
  --parchment-dark: #a89880;
  --parchment-dim:  #6e6358;

  /* Bordures */
  --border:         rgba(212, 200, 184, 0.12);
  --border-strong:  rgba(212, 200, 184, 0.22);
  --border-scarlet: rgba(155, 28, 32, 0.45);

  /* Type */
  --font-display:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Shadows MAT (pas de glow) */
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

  /* Density (tweakable) */
  --density-pad:    1.25rem;
  --density-gap:    1.5rem;
  --card-min:       280px;
  --card-pad:       1.1rem;

  /* Rayons */
  --r-sm: 2px;
  --r-md: 4px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--parchment);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
input, select, textarea { font-family: inherit; }

/* ---------- BACKGROUND GRAIN (mat, subtil) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 25% 15%, rgba(122, 21, 24, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(122, 21, 24, 0.04) 0, transparent 35%);
}

/* ---------- TYPE BASE ---------- */
.display { font-family: var(--font-display); font-weight: 900; font-style: italic; letter-spacing: -0.01em; line-height: 1; }
.mono    { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; }
.dim     { color: var(--parchment-dim); }

.h-hero    { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.015em; color: var(--parchment-light); }
.h-section { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--parchment-light); }
.h-card    { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--parchment-light); line-height: 1.2; }

.label, .tag, .kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-dark);
}

/* ---------- LAYOUT ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); position: relative; z-index: 2; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.section-head__title { display: flex; flex-direction: column; gap: 0.5rem; }
.section-head__title .label { color: var(--scarlet-bright); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  position: relative;
}
.btn:focus-visible { outline: 2px solid var(--scarlet-bright); outline-offset: 2px; }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--scarlet);
  color: var(--parchment-light);
}
.btn--primary:hover { background: var(--scarlet-bright); transform: translateY(-2px); }
.btn--primary .btn__price {
  border-left: 1px solid rgba(230, 221, 208, 0.25);
  padding-left: 0.7rem;
  margin-left: 0.2rem;
}

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--scarlet-bright); color: var(--scarlet-bright); transform: translateY(-2px); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.7rem; letter-spacing: 0.12em; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 0.85rem; }
.btn--icon { padding: 0.6rem; aspect-ratio: 1; }

/* ---------- ICONS (line, currentColor) ---------- */
.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- FOCUS ---------- */
:focus-visible { outline: 2px solid var(--scarlet-bright); outline-offset: 2px; }

/* ---------- UTILS ---------- */
.row { display: flex; align-items: center; gap: 0.75rem; }
.col { display: flex; flex-direction: column; gap: 0.5rem; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.divider { height: 1px; background: var(--border); }

/* ---------- ANIMATIONS partagées ---------- */
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes blink  { 50% { opacity: 0; } }
