/* ==========================================================================
   BASE — typographie, conteneurs, utilitaires, éléments signature
   ========================================================================== */

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-border-strong);
}

.section-title {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-2);
}

.section-lede {
  max-width: 46ch;
  color: var(--color-text-dim);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin-top: var(--sp-4);
}

p { color: var(--color-text-dim); }

.section {
  position: relative;
  padding-block: var(--sp-9);
  border-top: 1px solid var(--color-border);
}

.section-head {
  margin-bottom: var(--sp-7);
}

/* ---- Bouton ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.9em 1.8em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
.btn-fill {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}
.btn-fill:hover { background: transparent; color: var(--color-white); }

/* ---- Signature : coins "viseur" (inspiré viseur photo / HUD, aucun kanji réel) ---- */
.frame {
  position: relative;
}
.frame::before,
.frame::after,
.frame .corner-tl,
.frame .corner-br {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border-strong);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out), width var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.frame::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.frame::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.frame:hover::before,
.frame:hover::after,
.frame.is-visible::before,
.frame.is-visible::after {
  opacity: 1;
  width: 26px;
  height: 26px;
}

/* ---- Placeholder d'image (à remplacer par le contenu réel) ---- */
.img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  background:
    repeating-linear-gradient(135deg, var(--color-surface-2) 0 1px, transparent 1px 12px),
    var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--sp-2);
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Utilitaires ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  margin-right: var(--sp-1);
}
