/* /a-propos — refonte du 04/10/2026 : la maniere de travailler d'abord,
   le parcours ensuite. Charge en plus de tokens.css, style.css et site.css. */

.about-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.about-hero.has-photo { grid-template-columns: minmax(0, 1fr) auto; }
/* Photo de taille moderee (220 px), jamais en grand hero : les projets passent
   avant la photo dans la hierarchie. */
.about-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
@media (max-width: 640px) {
  .about-hero.has-photo { grid-template-columns: 1fr; }
  .about-photo { width: 140px; height: 140px; order: -1; }
}

/* Six etapes */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step-n { color: var(--accent); font-family: var(--mono); font-size: .78rem; }
.step h3 { margin: .5rem 0 .55rem; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.01em; }
.step p { margin: 0; color: color-mix(in srgb, var(--text) 86%, var(--text-muted)); font-size: .98rem; line-height: 1.6; }

/* Derriere les projets */
.behind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 3rem; }
.behind-txt p { margin: 0 0 1rem; max-width: 62ch; font-size: 1.04rem; line-height: 1.7; }
.behind-txt p:last-child { margin-bottom: 0; color: var(--text-muted); }
.behind-lead { font-size: clamp(1.12rem, 1.8vw, 1.28rem) !important; line-height: 1.6 !important; }
@media (max-width: 760px) { .behind { grid-template-columns: 1fr; } }

/* Trois projets qui le montrent */
.mini-projects { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.mini-projects a {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr auto;
  align-items: center;
  gap: .5rem 1.5rem;
  min-height: 44px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.mini-projects a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--surface-hover); color: var(--text); }
.mini-name { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mini-head { font-family: var(--display); font-weight: 600; line-height: 1.35; }
.mini-cta { color: var(--accent); font-size: 1.1rem; }
@media (max-width: 640px) {
  .mini-projects a { grid-template-columns: 1fr auto; }
  .mini-name { grid-column: 1 / -1; }
}

/* Parcours */
.bg-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; }
.bg-col h3 {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bg-col h3 + * + h3, .bg-col ul + h3 { margin-top: 2rem; }
.timeline { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--border); }
.timeline li { position: relative; display: grid; gap: .15rem; padding: 0; padding-block-end: 1.25rem; padding-inline-start: 1.4rem; }
.timeline li::before {
  content: '';
  position: absolute;
  inset-inline-start: -5px;
  top: .45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.tl-when { color: var(--text-muted); font-family: var(--mono); font-size: .8rem; }
.tl-what { font-size: 1rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 600; }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.bg-fact { margin: 2rem 0 0; color: var(--text-muted); }
.bg-fact b { color: var(--text); font-family: var(--display); font-size: 1.6rem; margin-inline-end: .35rem; }
@media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } }

/* Devise : un trait de personnalite, en fin de page. */
.motto {
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-inline-start: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 90% 10%, var(--accent-soft), transparent 62%),
    var(--surface);
}
.motto blockquote { margin: 0; }
.motto blockquote p {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.motto figcaption { margin-top: 1.1rem; color: var(--text-muted); font-family: var(--mono); font-size: .85rem; }

/* How I build (phase 20) : liste sobre, puces logiques (RTL). */
.build-points { margin: 0 0 1rem; padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
