/* ==========================================================
   DECSI – Page « Qui suis-je »
   Thème sombre par défaut, surcharges pour html[data-theme="light"]
   ========================================================== */

/* Repères à compléter (champs [À compléter]) */
.todo {
  background: rgba(255, 200, 0, .14);
  border-bottom: 1px dashed rgba(255, 200, 0, .7);
  border-radius: 3px;
  padding: 0 .25em;
}
html[data-theme="light"] .todo {
  background: #fff3c4;
  border-bottom-color: #d4a200;
}

/* ---------- Intro + portrait ---------- */
#about-hero { padding-top: 9rem; }

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 3.5rem;
  align-items: center;
}

.about-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.08;
  margin: .4rem 0 .8rem;
  overflow-wrap: break-word;
}
.about-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-role {
  font-size: 1.1rem;
  color: var(--cyan);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.about-lead p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 62ch;
}

.about-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.6rem 0 2rem;
  padding: 0;
}

.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.about-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  margin: 0;
}
/* cadre dégradé décalé derrière la photo */
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, #c010c8, #22f5e8);
  opacity: .55;
  z-index: 0;
}
.about-photo picture,
.about-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}
.about-photo img { box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }

/* ---------- Sections ---------- */
#parcours { background: var(--dark-2); }
#valeurs  { background: var(--dark); }
#formation { background: var(--dark-2); }
#about-cta { text-align: center; }

.about-head { max-width: 720px; margin-bottom: 3rem; }
.about-head .section-sub { margin-left: 0; }

/* ---------- Parcours (timeline) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.8rem;
  position: relative;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, #c010c8, #22f5e8);
  opacity: .6;
}
.timeline li { position: relative; padding-bottom: 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.8rem + 1px);
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid #c010c8;
  box-sizing: content-box;
  margin-left: -3px;
}
.timeline .period {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .25rem;
}
.timeline h3 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}
.timeline .place { color: var(--text-muted); font-size: .92rem; margin-bottom: .5rem; }
.timeline p { color: var(--text-muted); line-height: 1.7; font-size: .95rem; max-width: 62ch; }

/* ---------- Valeurs ---------- */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ---------- Formation ---------- */
.about-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.about-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.about-list .year { flex: none; width: 5.5rem; color: var(--cyan); font-weight: 500; }
.about-list .what { color: var(--text-muted); line-height: 1.6; }
.about-list .what strong { display: block; color: var(--white); font-weight: 600; }

/* ---------- CTA ---------- */
#about-cta .inner { max-width: 720px; }
#about-cta .section-sub { margin: 0 auto 2rem; }
#about-cta .about-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { order: -1; max-width: 300px; }
  #about-hero { padding-top: 7.5rem; }
}
@media (max-width: 600px) {
  .about-actions .btn-primary,
  .about-actions .btn-outline { width: 100%; text-align: center; }
  .about-list li { flex-direction: column; gap: .2rem; }
  .about-list .year { width: auto; }
}

/* ---------- MODE CLAIR ---------- */
html[data-theme="light"] #about-hero { background: var(--l-bg); }
html[data-theme="light"] .about-role { color: var(--l-cyan-text); }
html[data-theme="light"] .about-lead p { color: var(--l-muted); }
html[data-theme="light"] .about-title { color: var(--l-text); }
html[data-theme="light"] .about-title .grad {
  background: linear-gradient(90deg, #c010c8 0%, #7a08a6 55%, #0a9f96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .about-photo::before { opacity: .35; }
html[data-theme="light"] .about-photo img { box-shadow: 0 24px 50px rgba(122, 8, 166, .22); }

html[data-theme="light"] #parcours,
html[data-theme="light"] #formation { background: var(--l-bg-alt); }
html[data-theme="light"] #valeurs,
html[data-theme="light"] #about-cta { background: var(--l-bg); }

html[data-theme="light"] .timeline li::before { background: #fff; border-color: #c010c8; }
html[data-theme="light"] .timeline .period { color: var(--l-cyan-text); }
html[data-theme="light"] .timeline h3 { color: var(--l-text); }
html[data-theme="light"] .timeline .place,
html[data-theme="light"] .timeline p { color: var(--l-muted); }

html[data-theme="light"] .about-list li { border-bottom-color: var(--l-border); }
html[data-theme="light"] .about-list .year { color: var(--l-cyan-text); }
html[data-theme="light"] .about-list .what { color: var(--l-muted); }
html[data-theme="light"] .about-list .what strong { color: var(--l-text); }
