/* =============================================================
   TAYLOR SWIFT FAN WORLD — Style des pages Era
   Fichier : eras/era-style.css
   ─────────────────────────────────────────────────────────────
   Ce fichier est partagé par TOUTES les pages d'eras.
   Chaque page era a sa propre palette via une classe sur <body> :
   .era-debut / .era-fearless / .era-speak-now / .era-reputation
   .era-lover  / .era-folklore
   ============================================================= */


/* =============================================================
   1. PALETTES PAR ERA
   ✏️ Modifie ici les couleurs de chaque era
   ============================================================= */

/* ── Debut (2006) — Denim & country beige ── */
body.era-debut {
  --c1: #C8A96E;   /* or country */
  --c2: #E8D5A3;   /* crème */
  --c3: #7B9E87;   /* vert sauge */
  --c4: #2C3E50;   /* bleu nuit */
  --bg: #1A1208;
  --bg2: #2A1E0F;
  --text: #F5EDD6;
  --accent: #C8A96E;
}

/* ── Fearless (2008) — Or & champagne ── */
body.era-fearless {
  --c1: #FFD700;
  --c2: #FFC200;
  --c3: #FF69B4;
  --c4: #9B59B6;
  --bg: #0D0D2B;
  --bg2: #1A004D;
  --text: #FFFDE0;
  --accent: #FFD700;
}

/* ── Speak Now (2010) — Violet & pourpre ── */
body.era-speak-now {
  --c1: #9B59B6;
  --c2: #C39BD3;
  --c3: #E8DAEF;
  --c4: #6C3483;
  --bg: #1A0828;
  --bg2: #2E0D45;
  --text: #F4ECF7;
  --accent: #C39BD3;
}

/* ── Reputation (2017) — Noir & argent ── */
body.era-reputation {
  --c1: #BDC3C7;   /* argent */
  --c2: #ECF0F1;   /* blanc cassé */
  --c3: #E74C3C;   /* rouge vif */
  --c4: #2C3E50;   /* gris foncé */
  --bg: #0A0A0A;
  --bg2: #1A1A1A;
  --text: #ECF0F1;
  --accent: #BDC3C7;
}

/* ── Lover (2019) — Rose & pastel ── */
body.era-lover {
  --c1: #FF69B4;
  --c2: #FFB6C1;
  --c3: #DDA0DD;
  --c4: #87CEEB;
  --bg: #1A0518;
  --bg2: #2D0A2A;
  --text: #FFF0F5;
  --accent: #FF69B4;
}

/* ── Folklore (2020) — Gris & naturel ── */
body.era-folklore {
  --c1: #A8B5A2;   /* vert grisé */
  --c2: #D5C9B8;   /* beige bois */
  --c3: #8B7355;   /* marron */
  --c4: #3D4A3E;   /* vert forêt */
  --bg: #0F1210;
  --bg2: #1A2018;
  --text: #E8E4DC;
  --accent: #A8B5A2;
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */

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

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 30% 0%,   rgba(var(--_c1-rgb, 255,215,0), 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--_c1-rgb, 255,215,0), 0.08) 0%, transparent 60%);
  font-family: 'VT323', monospace;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--c1); text-decoration: none; }
a:hover { color: var(--c3); text-decoration: underline; }

::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--c1); border: 1px solid var(--c2); }


/* =============================================================
   3. BANDEAU DÉFILANT
   ============================================================= */

.marquee-bar {
  background: linear-gradient(90deg, var(--c4), var(--c1), var(--c2), var(--c3), var(--c4));
  background-size: 400% 100%;
  animation: gradShift 5s linear infinite;
  padding: 5px 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--bg);
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  border-top:    2px solid var(--c1);
  border-bottom: 2px solid var(--c1);
}

.marquee-inner {
  display: inline-block;
  animation: marqueeScroll 25s linear infinite;
  padding-left: 100%;
}


/* =============================================================
   4. HEADER ERA
   ============================================================= */

.era-header {
  text-align: center;
  padding: 40px 20px 30px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

/* Fond décoratif du header */
.era-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Breadcrumb : ← Retour */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--c1);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--c1);
  transition: background 0.2s, color 0.2s;
}

.back-link:hover {
  background: var(--c1);
  color: var(--bg);
  text-decoration: none;
}

/* Emoji / icône de l'era */
.era-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--c1));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Grand titre de l'era */
.era-title {
  font-family: 'Satisfy', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--c1);
  text-shadow:
    2px 2px 0 var(--bg),
    0 0 40px var(--c1);
  margin-bottom: 6px;
  animation: fadeUp 0.6s ease both;
}

/* Sous-titre (album — année) */
.era-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--c2);
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease 0.1s both;
}

/* Séparateur décoratif */
.era-divider {
  width: 180px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c1), transparent);
  position: relative;
}

.era-divider::before {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 8px;
  color: var(--c1);
  font-size: 0.8rem;
}


/* =============================================================
   5. NAVIGATION ERA (liens vers les autres eras)
   ============================================================= */

.era-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.era-nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.era-nav-link:hover {
  border-color: var(--c1);
  color: var(--c1);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
}

.era-nav-link.active {
  border-color: var(--c1);
  color: var(--bg);
  background: var(--c1);
}


/* =============================================================
   6. CONTENU PRINCIPAL
   ============================================================= */

.era-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}


/* =============================================================
   7. BLOC TEXTE BIOGRAPHIE
   ✏️ Le contenu se modifie dans chaque fichier HTML d'era
   ============================================================= */

.era-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

@media (max-width: 700px) {
  .era-bio { grid-template-columns: 1fr; }
}

/* Colonne gauche : texte */
.bio-text {}

.bio-text .section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: var(--c1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-text .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--c1), transparent);
}

/* ✏️ Texte de description — modifie dans chaque HTML */
.bio-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

/* Colonne droite : infos clés */
.bio-facts {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--c1);
  padding: 24px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}

.fact-row:last-child { border-bottom: none; }

.fact-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--c1);
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.8;
}

.fact-value {
  font-size: 0.95rem;
  color: var(--text);
  text-align: right;
}

/* Tracklist */
.tracklist {
  margin-top: 20px;
}

.tracklist .section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: var(--c1);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracklist .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--c1), transparent);
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, padding-left 0.2s;
  cursor: default;
}

.track-item:hover {
  color: var(--c1);
  padding-left: 6px;
}

.track-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.32rem;
  color: var(--c1);
  opacity: 0.5;
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.track-star { color: var(--c1); font-size: 0.7rem; opacity: 0.6; }


/* =============================================================
   8. GALERIE PHOTOS
   ✏️ Ajouter des photos : mettre les fichiers dans /images/
      et modifier les <div class="photo-slot"> dans chaque HTML
   ============================================================= */

.gallery-section {}

.gallery-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--bg);
  background: var(--c1);
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 24px;
  letter-spacing: 0.12em;
}

.photo-grid {
  display: grid;
  /* 3 colonnes par défaut, adaptatif */
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Slot photo individuel */
.photo-slot {
  aspect-ratio: 1 / 1;    /* ✏️ Change le ratio si tu veux (ex: 4/3, 16/9) */
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--bg2);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
  animation: fadeUp 0.5s ease both;
}

.photo-slot:hover {
  border-color: var(--c1);
  transform: scale(1.03);
  z-index: 1;
}

/* Image réelle — ✏️ remplacer src="" dans le HTML */
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.3s, transform 0.3s;
}

.photo-slot:hover img {
  filter: saturate(1.1) brightness(1.05);
  transform: scale(1.05);
}

/*
  Placeholder (quand pas encore de photo)
  ✏️ Remplace le contenu .photo-placeholder par une vraie <img>
*/
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 12px
  );
  transition: background 0.3s;
}

.photo-slot:hover .photo-placeholder {
  background: rgba(255,255,255,0.05);
}

.photo-emoji   { font-size: 2rem; opacity: 0.5; }
.photo-label   {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.32rem;
  color: var(--c1);
  opacity: 0.5;
  text-align: center;
  padding: 0 8px;
  line-height: 1.6;
}

/* Overlay au hover */
.photo-slot .photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.photo-slot:hover .photo-overlay {
  background: rgba(0,0,0,0.3);
}

.photo-overlay-icon {
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}

.photo-slot:hover .photo-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* Grande photo — occupe 2 colonnes × 2 lignes */
.photo-slot.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Délais d'animation */
.photo-slot:nth-child(1) { animation-delay: .05s; }
.photo-slot:nth-child(2) { animation-delay: .10s; }
.photo-slot:nth-child(3) { animation-delay: .15s; }
.photo-slot:nth-child(4) { animation-delay: .20s; }
.photo-slot:nth-child(5) { animation-delay: .25s; }
.photo-slot:nth-child(6) { animation-delay: .30s; }
.photo-slot:nth-child(7) { animation-delay: .35s; }
.photo-slot:nth-child(8) { animation-delay: .40s; }


/* =============================================================
   9. LIGHTBOX (clic sur photo → agrandissement)
   ============================================================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  text-align: center;
}

.lightbox-inner img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--c1);
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -36px; right: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--c1);
  cursor: pointer;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--c1);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover {
  background: var(--c1);
  color: var(--bg);
}

.lightbox-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.08em;
}


/* =============================================================
   10. FOOTER
   ============================================================= */

.era-footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

.era-footer a {
  color: var(--c1);
  opacity: 0.6;
}

.era-footer a:hover { opacity: 1; }

.footer-deco {
  font-size: 1rem;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 8px;
  color: var(--c1);
  opacity: 0.4;
  animation: blinkStar 2s step-end infinite;
}


/* =============================================================
   11. ANIMATIONS COMMUNES
   ============================================================= */

@keyframes gradShift {
  0%   { background-position: 0%   50%; }
  100% { background-position: 400% 50%; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes blinkStar {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
