/* ============================================
   ABOUT PAGE - EXCELLENCE HOSTING
   Timeline Interactive - Classes synchronisées
   ============================================ */

/* ===========================
   HERO SECTION
   =========================== */

.about-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg,
  #0f172a 0%,
  #0c1324 40%,
  #090e1b 75%,
  #060a13 100%
);
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 96, 254, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 96, 254, 0.05) 0%, transparent 50%);
  animation: heroGlow 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.about-kicker {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 96, 254, 0.1);
  border: 1px solid rgba(0, 96, 254, 0.3);
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.about-kicker:hover {
  background: rgba(0, 96, 254, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.about-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================
   TIMELINE SECTION
   =========================== */

.section {
  padding: 100px 0;
}

#history .se-head {
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

#history .se-title-1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#history .se-title-2 {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  z-index: 1;
}

.timeline-inner {
  position: relative;
  margin: 60px 0 80px;
  padding: 50px 0;
}

/* Timeline Track (ligne de base) */
.timeline-track {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--border);
  transform: translateY(-50%);
  border-radius: 4px;
  z-index: 1;
}

/* Barre de progression dynamique (créée par JS) */
.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(0, 96, 254, 0.6),
    0 0 40px rgba(0, 96, 254, 0.3);
  z-index: 2;
}

/* Items Container */
.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 10%;
}

/* Timeline Item */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover {
  transform: translateY(-8px);
}

/* Timeline Dot */
.timeline-dot {
  width: 24px;
  height: 24px;
  background: var(--semi-dark-3);
  border: 3px solid var(--primary);
  border-radius: 50%;
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  z-index: 10;
}

/* Effet de halo au repos */
.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 96, 254, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover State */
.timeline-item:hover .timeline-dot {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-color: var(--primary);
  box-shadow: 
    0 0 25px rgba(0, 96, 254, 0.8),
    0 0 50px rgba(0, 96, 254, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.4);
  transform: scale(1.4);
  z-index: 12;
}

.timeline-item:hover .timeline-dot::before {
  opacity: 1;
}

/* Active State */
.timeline-item.active .timeline-dot {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-color: var(--primary);
  box-shadow: 
    0 0 30px rgba(0, 96, 254, 1),
    0 0 60px rgba(0, 96, 254, 0.5),
    0 0 100px rgba(0, 96, 254, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.5);
  transform: scale(1.5);
  animation: activePulse 2.5s ease-in-out infinite;
  z-index: 15;
}

@keyframes activePulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(0, 96, 254, 1),
      0 0 60px rgba(0, 96, 254, 0.5),
      0 0 100px rgba(0, 96, 254, 0.3);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(0, 96, 254, 1),
      0 0 80px rgba(0, 96, 254, 0.6),
      0 0 120px rgba(0, 96, 254, 0.4);
  }
}

.timeline-item.active .timeline-dot::before {
  opacity: 1;
  animation: haloExpand 2s ease-in-out infinite;
}

@keyframes haloExpand {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }
}

/* Year Label */
.tl-year {
  margin-top: 25px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray);
  transition: all 0.4s ease;
  letter-spacing: 1px;
  position: absolute;
  top: 100%;
  white-space: nowrap;
}

.timeline-item:hover .tl-year,
.timeline-item.active .tl-year {
  color: var(--primary);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(0, 96, 254, 0.5);
}

/* ===========================
   TIMELINE CARDS
   =========================== */

.timeline-cards-container {
  position: relative;
  min-height: 280px;
  margin-top: 60px;
  transition: min-height 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: 100%;
  max-width: 850px;
  padding: 45px;
  background: var(--semi-dark-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Active Card */
.timeline-card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.timeline-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-card p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

.timeline-card p:last-child {
  margin-bottom: 0;
}

.timeline-card strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   VISION SECTION
   =========================== */

#vision {
  padding: 100px 0;
  position: relative;
}

.se-head {
  margin-bottom: 60px;
}

.se-title-1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.se-title-2 {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  padding: 40px 30px;
  background: var(--semi-dark);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  background: var(--semi-dark-2);
  border-color: rgba(0, 96, 254, 0.3);
  box-shadow: 0 20px 60px rgba(0, 96, 254, 0.2);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.info-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* ===========================
   TEAM SECTION
   =========================== */

.se-vii {
  padding: 100px 0 !important;
}

.se-vii .se-head {
  margin-bottom: 60px !important;
}

.se-vii .item {
  padding: 30px 20px !important;
  background: var(--semi-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-bottom: 30px !important;
}

.se-vii .item:hover {
  transform: translateY(-10px) !important;
  background: var(--semi-dark-2) !important;
  border-color: rgba(0, 96, 254, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 96, 254, 0.2) !important;
}

.se-vii .avatar {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  margin-bottom: 20px !important;
  border: 4px solid rgba(0, 96, 254, 0.3) !important;
  transition: all 0.4s ease !important;
  object-fit: cover !important;
}

.se-vii .item:hover .avatar {
  border-color: var(--primary) !important;
  box-shadow: 0 0 30px rgba(0, 96, 254, 0.6) !important;
}

.se-vii .name {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
}

.se-vii .job {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 400 !important;
}

.se-vii a .snake {
  color: var(--primary) !important;
  font-size: 0.9rem !important;
  margin-bottom: 10px !important;
  text-decoration: underline !important;
  transition: color 0.3s ease !important;
}

.se-vii a:hover .snake {
  color: #60a5fa !important;
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */

@media (max-width: 768px) {
  .about-hero {
    padding: 160px 0 60px;
  }

  #history {
    padding: 60px 0;
  }

  /* Timeline verticale */
  .timeline-inner {
    padding: 30px 0;
    margin: 40px 0;
  }

  .timeline-track {
    top: 0;
    left: 30px;
    right: auto;
    bottom: 0;
    width: 4px;
    height: auto;
    transform: none;
  }

  /* Barre de progression en mode vertical */
  .timeline-progress-bar {
    width: 100% !important;
    height: 0%;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .timeline-items {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 70px;
  }

  .timeline-item {
    flex-direction: row;
    width: 100%;
  }

  .timeline-item:hover {
    transform: translateX(8px);
  }

  .timeline-dot {
    margin-right: 20px;
  }

  .tl-year {
    margin-top: 0;
    position: static;
  }

  .timeline-cards-container {
    margin-top: 40px;
    min-height: 350px;
    transition: min-height 0.5s ease;
  }

  .timeline-card {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .timeline-card h3 {
    font-size: 1.5rem;
  }

  .timeline-card p {
    font-size: 1rem;
  }

  #vision {
    padding: 60px 0;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .se-vii {
    padding: 60px 0;
  }

  .se-title-1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 1.8rem;
  }

  .about-subtitle {
    font-size: 0.95rem;
  }

  .timeline-card {
    padding: 25px 20px;
  }

  .se-vii .avatar {
    width: 120px;
    height: 120px;
  }
}