/* ─────────────────────────────────────────────────────────────
   Page « À propos » — Bastien BONORA
   Thème aligné sur Bastodoc + portfolio CLI
   Palette : cyan/slate · Font : JetBrains Mono + Syne
   ───────────────────────────────────────────────────────────── */


/* ─── Variables (identiques à style.css) ────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #0f172a;
  --bg-surface:    #1e293b;
  --bg-chrome:     #0a1120;
  --bg-hover:      #334155;

  /* Bordures */
  --border:        rgba(34, 211, 238, 0.15);
  --border-strong: rgba(34, 211, 238, 0.30);
  --overlay:       rgba(15, 23, 42, 0.92);

  /* Texte */
  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Accents */
  --accent:         #22d3ee;
  --accent-strong:  #67e8f9;
  --accent-dim:     #0891b2;
  --accent-glow:    rgba(34, 211, 238, 0.45);

  /* Typo */
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --font-sans: 'Syne', system-ui, -apple-system, sans-serif;

  /* Rythme */
  --radius:      12px;
  --radius-sm:   6px;
  --shadow-lg:   0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px -8px var(--accent-glow);
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(8, 145, 178, 0.06), transparent 50%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── Lien retour discret ───────────────────────────────────── */
.back-link {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(34, 211, 238, 0.06);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 540px;
  margin: 0 auto;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ─── Timeline ──────────────────────────────────────────────── */
.timeline {
  padding: 5rem 0 4rem;
}

.timeline__track {
  position: relative;
  padding-left: 0.5rem;
}

.timeline__track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-strong) 6%,
    var(--border-strong) 94%,
    transparent
  );
}

.timeline__item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Point lumineux sur la ligne */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--bg-base),
    0 0 0 5px var(--border-strong),
    0 0 14px var(--accent-glow);
}

.timeline__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.timeline__title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.timeline__content {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* ─── Cards (sections finales) ──────────────────────────────── */
.cards {
  padding: 4rem 0 6rem;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  display: inline-block;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ─── Hamburger menu (cohérent avec style.css) ──────────────── */
.menuContainer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.hamburgerMenu {
  display: inline-block;
  cursor: pointer;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 12;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburgerMenu:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--border-strong);
}

.bar1,
.bar2,
.bar3 {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
  box-shadow: 0 0 4px var(--accent-glow);
}

.change .bar1 { transform: translate(0, 8px) rotate(-45deg); }
.change .bar2 { opacity: 0; }
.change .bar3 { transform: translate(0, -8px) rotate(45deg); }

.menuContent {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(360px, 85vw);
  height: 100%;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11;
  overflow-y: auto;
}

.menuContent.open {
  left: 0;
}

.insideMenu {
  margin-top: 5rem;
  padding-bottom: 2rem;
}

.accordion {
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.06);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion::after {
  content: '+';
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.accordion.active::after {
  content: '−';
  transform: rotate(180deg);
}

.accordion:hover,
.accordion.active {
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
}

.panel {
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 17, 32, 0.6);
  transition: max-height 0.3s ease-out;
  padding: 0 1.25rem;
}

.accordion.active + .panel {
  padding: 0.5rem 1.25rem;
}

.panelButton {
  display: block;
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin: 0.25rem 0;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.panelButton:hover,
.panelButton:focus-visible {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--border);
  color: var(--accent);
  transform: translateX(2px);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page {
    padding: 0 1rem;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .timeline {
    padding: 4rem 0 3rem;
  }

  .timeline__title {
    font-size: 1.2rem;
  }

  .cards {
    padding: 3rem 0 5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .back-link {
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
  }

  .hamburgerMenu {
    top: 1rem;
    left: 1rem;
  }
}

/* Accessibilité : respect du préférence reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .timeline__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}