/* Accueil — ce qui est propre à la page d'accueil (préfixe home-*).
   Le socle (couleurs, .wrap, .kicker, .title, .highlight, .btn, sections) est dans design-system.css. */

/* surfaces marine de l'accueil : contour clavier menthe */
.home-hero { --focus: var(--brand-mint); }

/* ---------- Accueil (hero) ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-navy);
  padding-block: 72px 96px;
}
.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand-navy-soft);
}
.home-hero::before { right: -170px; top: -140px; width: 580px; height: 580px; }
.home-hero::after { left: 29%; bottom: -260px; width: 380px; height: 380px; }
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.home-hero-zone {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--brand-navy-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--brand-mist);
}
.home-hero-title {
  margin-top: 24px;
  font-size: clamp(34px, 1.2rem + 4vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.022em;
  color: var(--brand-cream);
}
.home-hero-title .highlight { padding: 0 .18em; border-radius: .18em; }
.home-hero-sub {
  margin-top: 26px;
  max-width: 540px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--brand-mist);
}
.home-hero-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  list-style: none;
}
.home-hero-proofs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-cream);
}
.home-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-mint);
  color: var(--brand-navy);
}

/* Carte contact (includes/person_card.html) + pastille « C'est moi qui réponds ! » */
.home-hero-visual { position: relative; padding-left: 56px; }
.home-hero-visual .person-card { width: min(400px, 100%); margin-left: auto; }
.home-hero-sticker {
  position: absolute;
  left: 0;
  top: 36px;
  width: 136px;
  height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-mint);
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-10deg);
  box-shadow: 0 14px 32px rgba(10, 14, 28, .35);
}
.home-hero-sticker strong { font-weight: 800; }

/* ---------- Trois profils ---------- */
.home-profiles-title { max-width: 820px; }
.home-profiles-title .highlight { white-space: nowrap; } /* « pas l'inverse. » ne se coupe pas */
.home-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.home-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 32px;
  border-radius: 24px;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s cubic-bezier(.22, 1, .36, 1);
}
.home-profile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(34, 42, 63, .16); }
/* le focus du lien s'affiche sur toute la carte, puisque toute la carte est cliquable */
.home-profile:has(.home-profile-link:focus-visible) { outline: 2px solid var(--brand-navy); outline-offset: 4px; }
.home-profile .home-profile-link:focus-visible { outline: none; }
.home-profile-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.home-profile-title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.home-profile-desc { font-size: 16px; line-height: 1.6; }
.home-profile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-profile-chips span {
  padding: 5px 12px;
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.home-profile-desc { max-width: 60ch; }
.home-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
}
.home-profile-link .icon { transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.home-profile:hover .home-profile-link .icon { transform: translateX(4px); }
.home-profile a:hover { opacity: 1; }
/* toute la carte est cliquable */
.home-profile-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

.home-profile--navy { background: var(--brand-navy); color: var(--brand-cream); }
.home-profile--navy .home-profile-tag { background: var(--brand-mint); color: var(--brand-navy); }
.home-profile--navy .home-profile-desc { color: var(--brand-mist-light); }
.home-profile--navy .home-profile-chips span { border-color: var(--brand-navy-line); }
.home-profile--navy .home-profile-link { color: var(--brand-mint); }

.home-profile--mint { background: var(--brand-mint); color: var(--brand-navy); }
.home-profile--sky { background: var(--brand-sky); color: var(--brand-navy); }
.home-profile--mint .home-profile-tag,
.home-profile--sky .home-profile-tag { background: var(--brand-navy); color: var(--brand-cream); }
.home-profile--mint .home-profile-chips span { border-color: var(--brand-navy); }
.home-profile--sky .home-profile-chips span { border-color: var(--brand-navy-line); }

/* ---------- Trois étapes ---------- */
.home-steps-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.home-steps-intro { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--brand-mist-light); }
.home-timeline { display: flex; flex-direction: column; gap: 28px; list-style: none; }
.home-step { position: relative; display: flex; gap: 24px; align-items: flex-start; }
/* trait vert qui relie chaque numéro au suivant */
.home-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  width: 3px;
  height: calc(100% + 28px);
  border-radius: 2px;
  background: var(--brand-mint);
}
.home-step-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-mint);
  color: var(--brand-navy);
  font-size: 22px;
  font-weight: 800;
}
.home-step-body { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.home-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.home-step-title { font-size: 20px; font-weight: 700; }
.home-step-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-navy-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-mist);
}
.home-step-desc { font-size: 16px; line-height: 1.6; color: var(--brand-mist-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-hero { padding-block: 48px 64px; }
  .home-hero-grid,
  .home-steps-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-hero-visual { width: 100%; max-width: 480px; margin-inline: auto; }
  .home-profiles-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .home-profile { min-height: 0; }
}

@media (max-width: 560px) {
  .home-hero-sub { font-size: 17px; }
  .home-hero-proofs { flex-direction: column; gap: 10px; }
  .home-hero-visual { padding: 28px 0 0; }
  .home-hero-visual .person-card { width: 100%; }
  .home-hero-sticker { left: auto; right: -4px; top: 0; width: 104px; height: 104px; font-size: 13px; z-index: 1; }
  .home-profile { padding: 26px; }
  .home-step { gap: 18px; }
  /* la pastille passe toujours sous le titre : même rythme pour les trois étapes */
  .home-step-head { flex-direction: column; align-items: flex-start; }
}
