/*
 * TMA — Global styles
 * Reset, body, grain overlay, scrollbar, surfaces tonales,
 * eyebrow, boutons. Aligné sur l'index.html static existant.
 */

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color:      var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}
/* Sticky footer non-invasif : on garantit que le main remplit la viewport
   restante (viewport − nav − approx footer) — sans changer body display. */
.tma-main { min-height: calc(100vh - var(--nav-height) - 240px); }
@media (max-width: 768px) {
  .tma-main { min-height: calc(100vh - var(--nav-height-small) - 320px); }
}

/* ── Grain overlay (papier) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* ── Scrollbar fine cuivrée ── */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: #f0ede8; }
::-webkit-scrollbar-thumb { background: var(--color-copper-soft); }

/* ── Surfaces tonales ── */
.bg-warm   { background: var(--color-bg-warm); }
.bg-warm2  { background: var(--color-bg-warm2); }
.bg-cream  { background: var(--color-bg-cream); }
.bg-dark   { background: var(--color-dark); color: var(--color-on-dark); }
.bg-ruled  {
  background-color: var(--color-bg-warm);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 31px,
    var(--color-bg-ruled-line) 31px,
    var(--color-bg-ruled-line) 32px
  );
}

/* ── Hairline divider ── */
.section-rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}

/* ── Eyebrow (label de section, condensé + ls + cuivre) ── */
.eyebrow {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-copper);
  font-weight: 600;
}

/* ── Section number (numérotation discrète, ex: 04, 05…) ── */
.sec-num {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text-faint);
}

/* ── Placeholder image (rayé diagonal beige) ── */
.img-ph {
  background: repeating-linear-gradient(
    45deg,
    var(--color-ph-line-a) 0, var(--color-ph-line-a) 2px,
    var(--color-ph-line-b) 2px, var(--color-ph-line-b) 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ph-text);
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--color-rule);
  position: relative;
  overflow: hidden;
}

/* ── Boutons ── */
.btn-copper,
.btn-copper-inv {
  display: inline-block;
  border: 1px solid var(--color-copper);
  padding: 14px 32px;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-copper);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  background: transparent;
}
.btn-copper:hover,
.btn-copper-inv:hover { background: var(--color-copper); color: #fff; }

.btn-ghost {
  display: inline-block;
  border: 1px solid #b8b0a6;
  padding: 14px 32px;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-copper); color: var(--color-copper); }

.btn-ghost-inv {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  background: transparent;
}
.btn-ghost-inv:hover { border-color: #fff; color: #fff; }

/* ── Liens neutres (par défaut, lisible) ── */
a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--color-copper); }

/* ── Images responsives par défaut ── */
img { max-width: 100%; height: auto; display: block; }

/* ── Focus accessible (subtil) ── */
:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}
