/* ============================================
   VITRINE — Pages profil et voie
   À inclure APRÈS style.css du site
   ============================================ */

/* ---- Bandeau retour (sticky léger) ---- */
.profile-breadcrumb-bar {
  background: var(--bg-warm, #f5f2eb);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
  padding: 14px 0;
  margin-top: 70px; /* compensation navbar fixed */
}
.profile-breadcrumb-bar .link-back {
  font-size: 0.9rem;
  color: var(--text-secondary, #5a5a5a);
  font-weight: 500;
}
.profile-breadcrumb-bar .link-back:hover { color: var(--primary, #0f1d36); }

/* ============================================
   PROFIL PUBLIC (ancien.html)
   ============================================ */
.profile-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--bg, #fafaf7) 0%, var(--bg-warm, #f5f2eb) 100%);
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.profile-photo {
  position: relative; /* ancre l'<img> en position:absolute (sinon photo hors cercle) */
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-warm, #f5f2eb);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(15, 29, 54, 0.12);
  flex-shrink: 0;
  position: relative;
  border: 4px solid #fff;
}
.profile-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-photo .initials {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--primary, #0f1d36);
}

.profile-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--primary, #0f1d36);
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(15, 29, 54, 0.06);
  color: var(--primary, #0f1d36);
}
.profile-meta-item.meta-promo { background: rgba(197, 164, 78, 0.18); color: #8a6d1f; }
.profile-meta-item.meta-status-etudiant { background: rgba(197, 164, 78, 0.18); color: #8a6d1f; }
.profile-meta-item.meta-status-actif { background: rgba(220, 38, 38, 0.10); color: #b91c1c; }
.profile-meta-item.meta-status-religieux { background: rgba(22, 163, 74, 0.10); color: #15803d; }
.profile-meta-item.meta-status-cesure { background: rgba(120, 120, 120, 0.12); color: #555; }

.profile-body { padding: 60px 0; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.profile-section { margin-bottom: 40px; }
.profile-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
  color: var(--primary, #0f1d36);
}
.profile-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text, #1e1e1e);
}
.profile-bio p {
  color: var(--text, #1e1e1e);
  margin-bottom: 14px;
}

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent, #c5a44e) 0%, var(--border, rgba(0,0,0,0.06)) 100%);
}
.timeline-event { position: relative; padding-bottom: 32px; }
.timeline-event::before {
  content: '';
  position: absolute;
  left: -26px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent, #c5a44e);
  border: 2px solid var(--bg, #fafaf7);
  box-shadow: 0 0 0 2px var(--accent, #c5a44e);
}
.timeline-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a78b3a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary, #0f1d36);
  margin: 4px 0 6px;
}
.timeline-institution {
  font-size: 0.92rem;
  color: var(--text-secondary, #5a5a5a);
  font-style: italic;
}
.timeline-description {
  font-size: 0.95rem;
  margin-top: 8px;
  color: var(--text-secondary, #5a5a5a);
  line-height: 1.7;
  white-space: pre-line;
}

/* Badge de catégorie sur chaque étape de la timeline (code couleur) */
.timeline-cat-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Citation / témoignage en exergue (accent doré façon AEL, typo Académie) */
#quote-section { padding: 2.5rem 0 0; }
.ancien-quote {
  border-left: 4px solid var(--accent, #c5a44e);
  background: rgba(197, 164, 78, 0.07);
  padding: 22px 28px;
  border-radius: 0 12px 12px 0;
  max-width: 820px;
}
.ancien-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--primary, #0f1d36);
  margin: 0;
}

/* ---- Aside (côté profil) ---- */
.profile-aside {
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: 14px;
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 110px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.aside-section { margin-bottom: 24px; }
.aside-section:last-child { margin-bottom: 0; }
.aside-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary, #5a5a5a);
  margin-bottom: 10px;
  font-weight: 600;
}
.aside-value {
  font-size: 0.95rem;
  color: var(--text, #1e1e1e);
  line-height: 1.5;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--bg-warm, #f5f2eb);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary, #5a5a5a);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.tag-chip:hover { background: var(--primary, #0f1d36); color: #fff; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #0a66c2;
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.linkedin-link:hover { background: #084d92; transform: translateY(-1px); }
.linkedin-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================
   PAGE VOIE (voie.html)
   ============================================ */
.voie-hero {
  padding: 90px 0 60px;
  margin-top: 70px;
  background: linear-gradient(135deg, var(--card-color, var(--primary)) 0%, var(--primary, #0f1d36) 100%);
  color: #fff;
}
.voie-hero h1 { color: #fff; }
.voie-hero .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 16px 0 0;
}
.voie-back {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
}
.voie-back:hover { color: var(--accent, #c5a44e); }

.voie-stats {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.voie-stat-block {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 20px 26px;
  backdrop-filter: blur(8px);
}
.voie-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.voie-stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-top: 6px;
}

.voie-profiles { padding: 70px 0; }

/* ---- Sections par filière ---- */
.filiere-section { margin-bottom: 60px; }
.filiere-section:last-child { margin-bottom: 0; }
.filiere-section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border, rgba(0,0,0,0.06));
  position: relative;
}
.filiere-section-header::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 70px;
  height: 2px;
  background: var(--filiere-color, var(--primary));
}
.filiere-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary, #0f1d36);
  margin: 0;
}
.filiere-section-count {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-secondary, #5a5a5a);
}

.profile-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: 14px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 29, 54, 0.10);
  border-color: transparent;
}
.profile-card:hover .profile-card-photo {
  box-shadow: 0 0 0 3px var(--card-color, var(--primary)), 0 6px 16px rgba(15, 29, 54, 0.18);
}
.profile-card-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-warm, #f5f2eb);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 6px;
  box-shadow: 0 0 0 3px var(--card-color, var(--primary)), 0 2px 8px rgba(15, 29, 54, 0.12);
  border: 3px solid #fff;
  transition: box-shadow 0.3s ease;
}
.profile-card-photo .card-initials {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary, #0f1d36);
}
.profile-card-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-card-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary, #0f1d36);
  font-size: 1.08rem;
  line-height: 1.25;
  margin-top: 4px;
}
.profile-card-promo {
  font-size: 0.74rem;
  color: #a78b3a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.profile-card-situation {
  font-size: 0.88rem;
  color: var(--text-secondary, #5a5a5a);
  margin-top: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-photo { margin: 0 auto; }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .profile-aside { position: static; }
  .voie-stats { gap: 12px; }
  .voie-stat-block { padding: 16px 18px; }
  .voie-stat-number { font-size: 1.8rem; }
}
