/* =============================================
   BIOGRAPHIE.CSS — Styles spécifiques à biographie.html
   ============================================= */

/* ===== HERO ===== */
.page-hero-bio { background: linear-gradient(135deg, #0F2260 0%, #1B3C8C 100%); padding: 8rem 0 5rem; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.bc-sep { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.bc-active { color: rgba(255,255,255,0.85); font-size: 0.85rem; }

.page-hero-title {
  color: white; font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); margin: 1rem 0 1.5rem; line-height: 1.1;
}
.page-hero-title em { color: #F2B93B; font-style: italic; }
.page-hero-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.7; max-width: 480px; }

.id-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2); padding: 0.4rem 1rem;
  border-radius: 50px; font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(8px);
}

.hero-portrait-frame {
  width: 380px; max-width: 100%; height: 450px;
  border-radius: 40px 40px 80px 40px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); border: 3px solid rgba(201,148,26,0.4); margin: 0 auto;
}
.hero-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===== CARTE D'IDENTITÉ ===== */
.identity-card { border-top: 4px solid var(--gold); }
.id-card-title { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 1.8rem; text-align: center; margin-bottom: 2rem; }
.id-card-title .text-gold { color: var(--gold); }
.id-row { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.id-key { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.id-val { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

/* ===== TIMELINE ===== */
.section-parcours { background: var(--gradient-section); }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--gold), var(--primary));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2.35rem; top: 1.75rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid white; box-shadow: 0 0 0 3px var(--primary);
}
.timeline-dot--gold  { background: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.timeline-dot--major {
  width: 22px; height: 22px; left: -2.65rem;
  background: var(--gold); border: 4px solid white;
  box-shadow: 0 0 0 4px var(--gold), 0 0 20px rgba(201,148,26,0.4);
}
.timeline-content { padding: 1.75rem 2rem; }
.timeline-content--featured { border: 2px solid rgba(201,148,26,0.4) !important; }
.timeline-content--featured h3 { color: var(--primary); }
.timeline-content--featured .timeline-year { color: var(--gold); }

.timeline-year {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem;
}
.timeline-content h3 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  font-weight: 700; color: var(--text-primary); margin: 0.5rem 0 0.75rem;
}
.timeline-content p { color: var(--text-secondary); line-height: 1.7; font-size: 0.92rem; }
.timeline-badge { display: inline-block; margin-bottom: 0.5rem; }
.badge-blue-light {
  background: rgba(59,130,246,0.1); color: #3B82F6;
  border: 1px solid rgba(59,130,246,0.3); border-radius: 50px;
  padding: 0.2rem 0.8rem; font-size: 0.75rem; font-weight: 600; display: inline-block;
}
.timeline-quote {
  border-left: 3px solid var(--gold); margin: 1rem 0 0;
  padding: 0.75rem 1rem; background: rgba(201,148,26,0.05);
  border-radius: 0 8px 8px 0; font-style: italic;
  font-size: 0.88rem; color: var(--text-secondary);
}
.timeline-quote cite { display: block; font-style: normal; font-weight: 600; color: var(--gold); margin-top: 0.4rem; font-size: 0.8rem; }

/* Résultat élection */
.election-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; }
.election-result {
  display: flex; gap: 1.5rem; margin-top: 1.25rem; flex-wrap: wrap;
  padding: 1rem; background: rgba(27,60,140,0.06); border-radius: 12px;
}
.er-item { text-align: center; }
.er-number { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.er-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ===== VALEURS ===== */
.valeur-card { padding: 2.5rem 1.75rem; text-align: center; }
.valeur-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1.25rem;
}
.vw--blue  { background: rgba(27,60,140,0.08);  color: var(--primary); }
.vw--gold  { background: rgba(201,148,26,0.08); color: var(--gold); }
.vw--green { background: rgba(34,197,94,0.08);  color: #22C55E; }
.vw--red   { background: rgba(239,68,68,0.08);  color: #EF4444; }
.valeur-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.valeur-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ===== POSITIONS GÉOPOLITIQUES ===== */
.section-positions { background: linear-gradient(160deg, #0F2260 0%, #1B3C8C 100%); }
.section-positions-title { color: white; font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 1rem 0 3rem; }
.section-positions-title em { color: #F2B93B; }

.glass-hero {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
}
.geo-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
.geo-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.2rem; color: rgba(255,255,255,0.85); }
.geo-icon svg.lucide { stroke: rgba(255,255,255,0.85); fill: none; }
.geo-item h4 { color: white; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.geo-item p  { color: rgba(255,255,255,0.72); font-size: 0.85rem; line-height: 1.6; }

/* ===== TIMELINE — RÉSILIENCE ===== */
.timeline-dot--resilience {
  background: #6366F1; box-shadow: 0 0 0 3px #6366F1;
}
.timeline-content--resilience {
  border-left: 3px solid #6366F1 !important;
  background: rgba(99,102,241,0.04) !important;
}
.timeline-content--resilience .timeline-year { color: #6366F1; }
.badge-resilience {
  background: rgba(99,102,241,0.1); color: #6366F1;
  border: 1px solid rgba(99,102,241,0.3); border-radius: 50px;
  padding: 0.2rem 0.8rem; font-size: 0.75rem; font-weight: 600;
  display: inline-block; margin-bottom: 0.5rem;
}

/* ===== SECTION RÉSISTANCE UDPS ===== */
.section-resistance { position: relative; }
.resist-card {
  padding: 2rem 1.75rem; text-align: center;
  border-top: 3px solid transparent;
  transition: transform 0.3s ease;
}
.resist-card:hover { transform: translateY(-4px); }
.resist-year {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(201,148,26,0.1); border: 1px solid rgba(201,148,26,0.25);
  border-radius: 50px; padding: 0.2rem 0.85rem; margin-bottom: 1rem;
}
.resist-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.rc--blue  { background: rgba(27,60,140,0.08); color: var(--primary); }
.rc--gold  { background: rgba(201,148,26,0.08); color: var(--gold); }
.rc--green { background: rgba(16,185,129,0.08); color: #10B981; }
.resist-card h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.resist-card p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
.resist-quote-block {
  padding: 2.5rem 3rem; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 1rem;
  border-top: 3px solid var(--gold);
}
.rq-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; color: var(--primary); line-height: 1.7; max-width: 680px; }
.rq-attr { font-size: 0.8rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== CTA FINAL BIO ===== */
.text-body { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .page-hero-bio { padding: 6rem 0 3rem; }
  .hero-portrait-frame { width: 260px; height: 320px; border-radius: 24px 24px 48px 24px; }
  .page-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .page-hero-desc { font-size: 0.95rem; }

  /* Identité */
  .id-card-title { font-size: 1.5rem; }

  /* Timeline */
  .timeline-content { padding: 1.5rem; }
  .timeline-content h3 { font-size: 1.15rem; }
  .election-result { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .er-number { font-size: 1.6rem; }

  /* Valeurs */
  .valeur-card { padding: 2rem 1.25rem; }

  /* Positions géopolitiques */
  .section-positions-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }
  .geo-item { padding: 1.25rem; gap: 0.75rem; }
  .geo-item h4 { font-size: 0.88rem; }

  /* Résistance UDPS */
  .resist-card { padding: 1.75rem 1.25rem; }
  .resist-quote-block { padding: 1.75rem 1.5rem; }
  .rq-text { font-size: 1rem; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-portrait-frame { width: 220px; height: 270px; }
  .id-tag { font-size: 0.72rem; padding: 0.35rem 0.75rem; }

  /* Timeline — ajuster les dots par rapport au padding réduit */
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; margin-bottom: 2rem; }
  .timeline-dot { left: -1.85rem; width: 14px; height: 14px; top: 1.5rem; }
  .timeline-dot--major { left: -2rem; width: 18px; height: 18px; }
  .timeline-content { padding: 1.25rem; }
  .timeline-content h3 { font-size: 1.05rem; }
  .timeline-content p { font-size: 0.88rem; }
  .timeline-year { font-size: 1rem; }

  /* Quote */
  .resist-quote-block { padding: 1.5rem 1rem; }
  .rq-text { font-size: 0.92rem; }
}
