/* ============================================================
   À PROPOS — page équipe
   Vivasoft · vivasoft.fr
   ============================================================ */

/* ---- Hero ---- */
.about-hero {
  padding: 80px 40px 60px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 16px 0 20px;
}
.about-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink3);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Valeurs ---- */
.values-section {
  background: var(--off);
  padding: 80px 40px;
}
.values-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.value-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.875rem;
  color: var(--ink3);
  line-height: 1.6;
}

/* ---- Frise chronologique ---- */
.timeline-section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 0;
}
/* Ligne verticale centrale */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Alternance gauche / droite */
.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: right;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
}

.timeline-body {
  width: calc(50% - 36px);
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.timeline-item:nth-child(odd) .timeline-body  { margin-right: 36px; }
.timeline-item:nth-child(even) .timeline-body { margin-left: 36px; }

.timeline-year {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
}
.timeline-text {
  font-size: 0.9rem;
  color: var(--ink3);
  line-height: 1.65;
}

/* Dot central */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  flex-shrink: 0;
  z-index: 1;
}

/* Couleurs alternées par couleur charte */
.timeline-item:nth-child(1) .timeline-year { color: var(--bleu); }
.timeline-item:nth-child(1) .timeline-dot  { background: var(--bleu); box-shadow: 0 0 0 3px rgba(58,171,222,0.2); }
.timeline-item:nth-child(2) .timeline-year { color: var(--vert); }
.timeline-item:nth-child(2) .timeline-dot  { background: var(--vert); box-shadow: 0 0 0 3px rgba(75,174,71,0.2); }
.timeline-item:nth-child(3) .timeline-year { color: var(--rouge); }
.timeline-item:nth-child(3) .timeline-dot  { background: var(--rouge); box-shadow: 0 0 0 3px rgba(229,92,45,0.2); }
.timeline-item:nth-child(4) .timeline-year { color: var(--jaune); }
.timeline-item:nth-child(4) .timeline-dot  { background: var(--jaune); box-shadow: 0 0 0 3px rgba(245,168,35,0.2); }
.timeline-item:nth-child(5) .timeline-year { color: var(--bleu); }
.timeline-item:nth-child(5) .timeline-dot  { background: var(--bleu); box-shadow: 0 0 0 3px rgba(58,171,222,0.2); }
.timeline-item:nth-child(6) .timeline-year { color: var(--vert); }
.timeline-item:nth-child(6) .timeline-dot  { background: var(--vert); box-shadow: 0 0 0 3px rgba(75,174,71,0.2); }

/* Mobile : tout à gauche */
@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    text-align: left;
    padding-left: 48px;
  }
  .timeline-body,
  .timeline-item:nth-child(odd) .timeline-body,
  .timeline-item:nth-child(even) .timeline-body {
    width: 100%;
    margin: 0;
  }
  .timeline-dot { left: 18px; top: 20px; }
}

/* ---- Équipe ---- */
.team-section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--off2);
  background: var(--off);
}
.team-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--off2);
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--ink3);
}
.team-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-position {
  font-size: 0.8rem;
  color: var(--ink3);
  line-height: 1.4;
}
.team-department {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--off);
  color: var(--ink3);
  border: 1px solid var(--border);
}

/* ---- Skeleton loader ---- */
.team-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skeleton {
  background: linear-gradient(90deg, var(--off) 25%, var(--off2) 50%, var(--off) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}
.skeleton-line.w80 { width: 80px; }
.skeleton-line.w60 { width: 60px; }

/* ---- Story fondateur ---- */
.founder-story-section {
  background: var(--off);
  padding: 80px 40px;
}
.founder-story-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.founder-photo-col {
  position: sticky;
  top: 80px;
}
.founder-photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.founder-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.founder-id {
  text-align: center;
}
.founder-id-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.founder-id-role {
  font-size: 0.8rem;
  color: var(--ink3);
  margin-top: 4px;
}
.founder-story-body {
  padding-top: 4px;
}
.founder-story-body .eyebrow {
  margin-bottom: 16px;
}
.founder-story-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 36px;
}
.founder-story-body p {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.founder-story-body p:last-of-type {
  margin-bottom: 0;
}
.founder-conviction {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--white);
  border-left: 4px solid var(--bleu);
  border-radius: 0 var(--r) var(--r) 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--bleu);
}
.founder-conviction p {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px !important;
  line-height: 1.5;
}
.founder-conviction p:last-child {
  margin-bottom: 0 !important;
  color: var(--ink3);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-style: italic;
}

@media (max-width: 900px) {
  .founder-story-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .founder-photo-col {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .founder-photo-wrap {
    width: 140px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .founder-id { text-align: left; }
}
@media (max-width: 640px) {
  .founder-story-section { padding-left: 20px; padding-right: 20px; }
  .founder-photo-col { flex-direction: column; align-items: flex-start; }
  .founder-photo-wrap { width: 100%; }
}

/* ---- Photo groupe ---- */
.team-photo-section {
  background: var(--off);
  padding: 60px 40px;
}
.team-photo-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.team-photo-wrap {
  margin-top: 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.team-photo-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.team-photo-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink3);
}

/* ---- Chiffres ---- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
}
.stat-cell-num {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--bleu);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-cell-label {
  font-size: 0.85rem;
  color: var(--ink3);
}

/* ---- Responsiv ---- */
@media (max-width: 768px) {
  .about-hero, .values-section, .team-section, .team-photo-section { padding-left: 20px; padding-right: 20px; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
  .team-avatar, .team-avatar-placeholder, .skeleton-avatar { width: 90px; height: 90px; }
  .team-avatar-placeholder { font-size: 1.6rem; }
  .team-photo-wrap img { height: 240px; }
}
