/* ========================================
   SECTION 4 : ABOUT - PORTRAIT ARTISTIQUE CINÉMATIQUE
   ======================================== */

.about-section {
  position: relative;
  min-height: 100vh;
  padding: var(--spacing-4xl) var(--spacing-lg);
  background: 
    radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  overflow: hidden;
}

/* Layout Asymétrique Premium */
.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: var(--spacing-4xl);
  align-items: center;
  min-height: 80vh;
}

/* Photo Portrait Cinématique */
.about-image {
  position: relative;
  width: min(45vw, 600px);
  height: auto;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg) blur(8px);
  animation: portraitEntrance 1.4s var(--ease-natural) 0.3s forwards;
}

.portrait-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: grayscale(100%) contrast(1.15) brightness(0.95);
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.3),
    0 24px 64px rgba(0,0,0,0.4);
  transition: all 0.4s var(--ease-natural);
}

.about-image:hover .portrait-image {
  filter: grayscale(80%) contrast(1.2) brightness(1.0);
  transform: rotate(1deg) scale(1.01);
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.3),
    0 32px 80px rgba(0,0,0,0.5);
}

/* About Content */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  opacity: 0;
  transform: translateX(60px);
  animation: contentSlideIn 1.2s var(--ease-natural) 0.6s forwards;
}

/* Typography Expressive Précise */
.about-title {
  font-family: var(--font-family);
  font-size: 56px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-primary);
  letter-spacing: -0.06em;
  line-height: 1.1;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: titleSlideIn 0.8s var(--ease-spring) 0.9s forwards;
}

.about-subtitle {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-lg) 0;
  opacity: 0;
  transform: translateY(30px);
  animation: subtitleSlideIn 0.8s var(--ease-natural) 1.1s forwards;
}

/* About Text */
.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-paragraph {
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.87);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: paragraphFadeIn 0.8s var(--ease-natural) forwards;
}

.about-paragraph:nth-child(1) { animation-delay: 1.3s; }
.about-paragraph:nth-child(2) { animation-delay: 1.5s; }
.about-paragraph:nth-child(3) { animation-delay: 1.7s; }

/* Highlight Effect */
.highlight {
  position: relative;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: highlightSlide 0.8s var(--ease-natural) 2s forwards;
}

/* Citations */
.about-quote {
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: var(--font-weight-medium);
  font-style: italic;
  color: var(--color-primary);
  margin: var(--spacing-xl) 0;
  padding-left: var(--spacing-2xl);
  border-left: 4px solid var(--color-primary);
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  animation: quoteSlideIn 0.8s var(--ease-natural) 1.9s forwards;
}

.about-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 48px;
  color: var(--color-primary);
  opacity: 0.3;
}

/* Années */
.year {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* Timeline Interactive */
.timeline {
  position: relative;
  margin-top: var(--spacing-2xl);
  padding-left: var(--spacing-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%
  );
  opacity: 0;
  animation: timelineDraw 1.5s var(--ease-natural) 2.2s forwards;
}

.timeline-dot {
  position: relative;
  margin-bottom: var(--spacing-2xl);
  opacity: 0;
  transform: scale(0);
  animation: dotScaleIn 0.6s var(--ease-spring) forwards;
  cursor: pointer;
  transition: all 0.3s var(--ease-natural);
}

.timeline-dot:nth-child(1) { animation-delay: 2.4s; }
.timeline-dot:nth-child(2) { animation-delay: 2.6s; }
.timeline-dot:nth-child(3) { animation-delay: 2.8s; }
.timeline-dot:nth-child(4) { animation-delay: 3.0s; }

.timeline-dot::before {
  content: '';
  position: absolute;
  left: -var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s var(--ease-natural);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
}

.timeline-dot:hover::before {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

.timeline-dot.active::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.dot-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.dot-content .year {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: 0;
}

.dot-content .event {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Tooltip for timeline dots */
.timeline-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--color-text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-natural);
  z-index: 10;
  margin-left: var(--spacing-md);
}

.timeline-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Animations */
@keyframes portraitEntrance {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-3deg) blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg) blur(0px);
  }
}

@keyframes contentSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

@keyframes highlightSlide {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes quoteSlideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes timelineDraw {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 1;
    height: 100%;
  }
}

@keyframes dotScaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 40% 60%;
    gap: var(--spacing-3xl);
  }
  
  .about-image {
    width: min(40vw, 500px);
  }
  
  .about-title {
    font-size: 48px;
  }
  
  .about-subtitle {
    font-size: 20px;
  }
  
  .about-paragraph {
    font-size: 17px;
  }
  
  .about-quote {
    font-size: 22px;
    padding-left: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: var(--spacing-3xl) var(--spacing-md);
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  
  .about-image {
    width: min(80vw, 400px);
    margin: 0 auto;
  }
  
  .about-title {
    font-size: 40px;
  }
  
  .about-subtitle {
    font-size: 18px;
  }
  
  .about-paragraph {
    font-size: 16px;
  }
  
  .about-quote {
    font-size: 20px;
    padding-left: var(--spacing-lg);
    text-align: left;
  }
  
  .timeline {
    padding-left: var(--spacing-md);
  }
  
  .timeline-dot::before {
    left: -var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: var(--spacing-2xl) var(--spacing-sm);
  }
  
  .about-container {
    gap: var(--spacing-xl);
  }
  
  .about-image {
    width: min(90vw, 300px);
  }
  
  .about-title {
    font-size: 32px;
  }
  
  .about-subtitle {
    font-size: 16px;
  }
  
  .about-paragraph {
    font-size: 15px;
  }
  
  .about-quote {
    font-size: 18px;
    padding-left: var(--spacing-md);
  }
  
  .timeline {
    padding-left: var(--spacing-sm);
  }
  
  .timeline-dot::before {
    left: -var(--spacing-sm);
    width: 10px;
    height: 10px;
  }
  
  .dot-content .year {
    font-size: 13px;
  }
  
  .dot-content .event {
    font-size: 14px;
  }
}

/* Performance Optimizations */
.about-image {
  will-change: transform, filter;
}

.portrait-image {
  will-change: transform, filter;
}

.timeline-dot {
  will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .about-image {
    animation: none;
    opacity: 1;
    transform: scale(1) rotate(0deg) blur(0px);
  }
  
  .about-content {
    animation: none;
    opacity: 1;
    transform: translateX(0);
  }
  
  .about-title,
  .about-subtitle,
  .about-paragraph,
  .about-quote {
    animation: none;
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
  
  .highlight::after {
    animation: none;
    transform: scaleX(1);
  }
  
  .timeline::before {
    animation: none;
    opacity: 1;
  }
  
  .timeline-dot {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .portrait-image {
    filter: grayscale(100%) contrast(1.5) brightness(1.2);
    border: 2px solid var(--color-text-primary);
  }
  
  .about-title {
    color: var(--color-text-primary);
  }
  
  .about-quote {
    border-left-color: var(--color-text-primary);
    color: var(--color-text-primary);
  }
  
  .timeline::before {
    background: var(--color-text-primary);
  }
  
  .timeline-dot::before {
    background: var(--color-text-primary);
    border: 2px solid var(--color-background);
  }
}
