/* ------------------------------------------------------------------
   sections.css — qui parle, cartes du problème, pied de page.
   ------------------------------------------------------------------ */

/* --- Qui parle : une carte, la photo à gauche --- */
.who {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "photo head"
    "list list"
    "note note";
  align-items: center;
  column-gap: 20px;
  padding: 28px 24px;
}

/* Une carte de présentation ne se soulève pas : rien n'y est cliquable, hors la pastille */
.who.card:hover {
  border-color: var(--border);
  box-shadow:
    inset 0 1px 0 rgb(var(--gold-rgb) / 0.15),
    0 20px 60px rgb(var(--black-rgb) / 0.5);
  transform: none;
}

.who-photo {
  grid-area: photo;
  width: 72px;
  height: 72px;
  border: 1px solid rgb(var(--gold-rgb) / 0.35);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
}

.who-head {
  grid-area: head;
}

.who-head .label {
  margin-bottom: 8px;
}

.who-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* Pastille de 30 px, zone tactile de 44 */
.who-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--soft);
  transition: border-color 200ms ease-out, color 200ms ease-out;
}

.who-link::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.who-link svg {
  fill: currentColor;
}

.who-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.who-list {
  grid-area: list;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: rgb(var(--white-rgb) / 0.85);
  font-size: var(--fs-chapeau);
  line-height: 1.55;
}

/* Le terrain : une ligne à part, sous un filet d'or, au même poids que les trois autres */
.who-note {
  grid-area: note;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgb(var(--gold-rgb) / 0.25);
  color: rgb(var(--white-rgb) / 0.85);
  font-size: var(--fs-chapeau);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .who {
    grid-template-columns: 148px 1fr;
    grid-template-areas:
      "photo head"
      "photo list"
      "photo note";
    align-items: start;
    column-gap: 40px;
    padding: 40px 44px;
  }

  .who-photo {
    width: 148px;
    height: 148px;
  }

  .who-list {
    margin-top: 18px;
  }
}

/* --- Le problème : quatre cartes, 2 × 2 --- */
.problems {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}

.problem {
  padding: 40px;
}

/* Une seule carte dorée sur la page (SÉRIEUX → agenda) : ici, le survol reste neutre */
.problem.card:hover {
  border-color: rgb(var(--white-rgb) / 0.22);
  box-shadow:
    inset 0 1px 0 rgb(var(--white-rgb) / 0.08),
    0 24px 60px rgb(var(--black-rgb) / 0.5);
}

.problem .card-title {
  max-width: 30ch;
  font-size: 1.125rem;
  text-wrap: balance;
}

/* Le corps des cartes : 15 px, à 0,65 — le lecteur a plus de 45 ans */
.problem .card-body {
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .problems {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .problem {
    padding: 30px 24px;
  }

  .problem .card-title {
    padding-right: 44px;
  }
}

/* --- Pied de page --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid rgb(var(--white-rgb) / 0.06);
  color: var(--muted);
  font-size: var(--fs-card-body);
  text-align: center;
}

.footer a:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .who-link {
    transition: none;
  }
}
