/* =============================================================================
   HISTORICA — ACCUEIL (page-specific)
   Dépend de historica-theme.css (tokens, nav, footer, section, ornement, reveal).
   ========================================================================== */

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero { position: relative; height: 88vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: sepia(20%) contrast(1.05); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,20,40,0.10) 0%, rgba(10,20,40,0.15) 40%, rgba(10,20,40,0.72) 75%, rgba(10,20,40,0.90) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px 56px; }
.hero-eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.25em;
  color: var(--gold-light); text-transform: uppercase; margin-bottom: 12px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}
.hero-slide.active .hero-eyebrow { opacity: 1; transform: translateY(0); }
.hero-title {
  font-family: var(--font-serif); font-size: clamp(36px, 5vw, 72px); font-weight: 700;
  color: #fff; line-height: 1.1; text-wrap: balance; margin-bottom: 16px;
  opacity: 0; transform: translateY(16px); transition: opacity 0.7s 0.35s, transform 0.7s 0.35s;
}
.hero-slide.active .hero-title { opacity: 1; transform: translateY(0); }
.hero-desc {
  font-family: var(--font-body); font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(237,227,204,0.85); font-style: italic; max-width: 560px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.7s 0.5s, transform 0.7s 0.5s;
}
.hero-slide.active .hero-desc { opacity: 1; transform: translateY(0); }
.hero-dots { position: absolute; bottom: 24px; right: 40px; z-index: 3; display: flex; gap: 10px; align-items: center; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(237,227,204,0.35); cursor: pointer; transition: background 0.3s, transform 0.3s; border: none; }
.hero-dot.active { background: var(--gold-light); transform: scale(1.3); }
.hero-year {
  position: absolute; top: 40px; right: 40px; z-index: 3;
  font-family: var(--font-display); font-size: 80px; font-weight: 700;
  color: rgba(255,255,255,0.08); letter-spacing: -0.02em; line-height: 1;
  pointer-events: none; user-select: none;
}

/* ─── GRANDES PÉRIODES ───────────────────────────────────────────────────── */
.periodes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.periode-card { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.periode-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: sepia(25%) contrast(1.05); }
.periode-card:hover img { transform: scale(1.05); filter: sepia(10%) contrast(1.1); }
.periode-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,20,40,0.05) 0%, rgba(10,20,40,0.65) 65%, rgba(10,20,40,0.92) 100%); }
.periode-info { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 28px 28px 32px; }
.periode-siecle { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em; color: var(--gold-light); text-transform: uppercase; margin-bottom: 6px; }
.periode-name { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 10px; }
.periode-desc { font-family: var(--font-body); font-size: 14px; color: rgba(237,227,204,0.75); font-style: italic; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease; opacity: 0; }
.periode-card:hover .periode-desc { max-height: 80px; opacity: 1; }
.periode-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.15em;
  color: var(--gold-light); text-transform: uppercase; text-decoration: none;
  margin-top: 16px; border-bottom: 1px solid rgba(184,148,63,0.3); padding-bottom: 2px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s, gap 0.2s, border-color 0.2s;
}
.periode-card:hover .periode-cta { opacity: 1; transform: translateY(0); }
.periode-cta:hover { gap: 14px; border-color: var(--gold-light); }

/* ─── ÉVÉNEMENTS À LA UNE ────────────────────────────────────────────────── */
.aune-bg { background-color: var(--empire-dark); position: relative; z-index: 1; }
.aune-bg::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(184,148,63,0.06) 39px, rgba(184,148,63,0.06) 40px); pointer-events: none; }
.aune-section { max-width: 1200px; margin: 0 auto; padding: 72px 40px; position: relative; z-index: 1; }
.aune-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; border-bottom: 1px solid rgba(184,148,63,0.25); padding-bottom: 20px; }
.aune-eyebrow { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; display: block; }
.aune-title { font-family: var(--font-serif); font-size: clamp(24px, 2.5vw, 38px); color: var(--parchment); font-weight: 700; }
.aune-link { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); text-decoration: none; text-transform: uppercase; border-bottom: 1px solid rgba(184,148,63,0.4); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; margin-bottom: 4px; }
.aune-link:hover { color: var(--gold-pale); border-color: var(--gold-pale); }
.aune-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.aune-card { position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(184,148,63,0.12); padding: 32px; display: flex; flex-direction: column; transition: background 0.2s, border-color 0.2s; }
.aune-card:hover { background: rgba(184,148,63,0.07); border-color: rgba(184,148,63,0.3); }
.aune-card-tag { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.aune-card-tag::before { content: ''; display: inline-block; width: 16px; height: 1px; background: var(--gold); }
.aune-card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--parchment); line-height: 1.25; margin-bottom: 12px; }
.aune-card-excerpt { font-family: var(--font-body); font-size: 15px; color: rgba(184,158,112,0.75); font-style: italic; line-height: 1.5; }
.aune-card-date { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: rgba(184,148,63,0.2); line-height: 1; margin-bottom: 16px; letter-spacing: -0.02em; }
.aune-loader { grid-column: 1 / -1; text-align: center; padding: 40px; color: rgba(184,158,112,0.6); font-family: var(--font-display); letter-spacing: 0.15em; font-size: 12px; text-transform: uppercase; }

/* ─── CITATION ───────────────────────────────────────────────────────────── */
.citation-wrap { background: var(--empire); position: relative; overflow: hidden; z-index: 1; }
.citation-wrap::before { content: '\201C'; position: absolute; font-family: var(--font-serif); font-size: 400px; color: rgba(184,148,63,0.07); line-height: 1; top: -60px; left: 20px; pointer-events: none; }
.citation-inner { max-width: 800px; margin: 0 auto; padding: 80px 40px; text-align: center; position: relative; z-index: 1; }
.citation-text { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 36px); font-style: italic; color: var(--parchment); line-height: 1.5; margin-bottom: 28px; text-wrap: balance; transition: opacity 1.2s ease; }
.citation-author { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; transition: opacity 1.2s ease; }
.citation-author.filled::before { content: '— '; }

/* ─── TIMELINE CTA ───────────────────────────────────────────────────────── */
.timeline-cta-wrap { position: relative; z-index: 1; background: var(--parchment-dark); border-top: 1px solid var(--parchment-deep); border-bottom: 1px solid var(--parchment-deep); }
.timeline-cta-inner { max-width: 1200px; margin: 0 auto; padding: 56px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.timeline-cta-text h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--empire); margin-bottom: 8px; }
.timeline-cta-text p { font-family: var(--font-body); font-size: 18px; color: var(--ink-muted); font-style: italic; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .periodes-grid { grid-template-columns: 1fr; }
  .aune-grid { grid-template-columns: 1fr; }
  .aune-section { padding: 56px 20px; }
  .timeline-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .hero-content { padding: 0 20px 40px; }
  .hero-year { display: none; }
}
