/* ============================================
   ONIVO — Direction 3 — Affiche typographique
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Cross Boxed';
  src: url('fonts/CrossBoxed.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eurostile Extended';
  src: url('fonts/EurostileExtendedBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --onivo-ink:        #282828;
  --onivo-sand:       #c6ad7c;
  --onivo-sand-deep:  #8a7550;

  --font-display:     'Cross Boxed', 'Impact', sans-serif;
  --font-tech:        'Eurostile Extended', 'Saira', sans-serif;
  --font-serif:       Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--onivo-ink);
  color: #fff;
  font-family: var(--font-tech);
  min-height: 100vh;
}

/* ============================================
   PAGE
   ============================================ */

.page {
  position: relative;
  min-height: 100vh;
  padding: 28px 56px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.68 0 0 0 0 0.49 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ============================================
   BANDEAU SUPÉRIEUR
   ============================================ */

.head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.32em;
}
.head__left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--onivo-sand);
}
.head__dot {
  width: 8px;
  height: 8px;
  background: var(--onivo-sand);
  display: inline-block;
}
.head__mid   { color: rgba(255,255,255,0.55); text-align: center; }
.head__right { color: #fff; text-align: right; }

.rule--main {
  position: relative;
  z-index: 2;
  height: 2px;
  background: var(--onivo-sand);
  margin-top: 12px;
}
.rule--sub {
  position: relative;
  z-index: 2;
  height: 1px;
  background: rgba(198,173,124,0.4);
  margin: 3px 0 18px;
}

/* ============================================
   CORPS CENTRAL
   ============================================ */

.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-top: 4px;
}

.former {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.former__hand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.former__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  text-decoration: line-through;
  text-decoration-color: var(--onivo-sand);
  text-decoration-thickness: 2px;
}

.hero {
  font-family: var(--font-display);
  font-size: clamp(110px, 17vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.005em;
  color: #fff;
  text-align: center;
  margin: 6px 0;
}

.tagline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.tagline-rule {
  flex: 1;
  height: 1px;
  background: rgba(198,173,124,0.5);
}
.tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.tagline em {
  color: var(--onivo-sand);
  font-style: normal;
}

.date {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.85);
}
.date__sep { color: var(--onivo-sand); }
.date a {
  color: var(--onivo-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   PIED
   ============================================ */

.foot {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}
.foot__rule {
  height: 1px;
  background: rgba(198,173,124,0.4);
  margin-bottom: 12px;
}
.foot__row {
  display: flex;
  align-items: center;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.65);
}
.foot__mark {
  color: var(--onivo-sand);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.foot__center {
  flex: 1;
  text-align: center;
}
.foot__right { color: var(--onivo-sand); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 880px) {
  .page { padding: 24px 20px; }

  .head {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
  .head__left  { justify-content: center; }
  .head__right { text-align: center; }

  .tagline-row { flex-direction: column; gap: 10px; }
  .tagline-rule { width: 60%; }
  .tagline { white-space: normal; text-align: center; line-height: 1.4; }

  .foot__row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .foot__center { flex: none; }
}
