/* === Bas de page SEO du home : modes de jeu + points forts ================== */

.home-about-inner {
  max-width: 1100px;
}

.hs-head {
  margin: 8px auto 18px;
  text-align: center;
}
.hs-head + .hs-modes,
.hs-head + .hs-features {
  margin-top: 0;
}
.hs-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text, #f3f4f6);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.hs-sub {
  color: var(--muted, #9ca3af);
  font-size: 0.92rem;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.55;
}

/* — Grille des modes — */
.hs-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
  margin: 0 auto 48px;
}

.hs-mode {
  --hs-accent: #f87171;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hs-accent) 14%, transparent), transparent 55%),
    var(--panel, #151b2b);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.hs-mode::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--hs-accent);
  opacity: 0.85;
}
.hs-mode:hover,
.hs-mode:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--hs-accent) 55%, transparent);
  box-shadow: 0 10px 28px -14px var(--hs-accent);
  text-decoration: none;
  color: inherit;
}

.hs-mode--wide {
  grid-column: span 2;
}

.hs-mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hs-mode-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 1.2rem;
  background: color-mix(in srgb, var(--hs-accent) 18%, transparent);
}
.hs-mode-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--hs-accent);
  background: color-mix(in srgb, var(--hs-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hs-accent) 35%, transparent);
  white-space: nowrap;
}
.hs-mode-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--text, #f3f4f6);
}
.hs-mode-desc {
  margin: 0;
  color: var(--muted, #9ca3af);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.hs-mode-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hs-accent);
}
.hs-mode-cta i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.hs-mode:hover .hs-mode-cta i {
  transform: translateX(3px);
}

/* — Points forts (réutilise .home-about-card) — */
.home-about-grid.hs-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}
.home-about-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #f3f4f6);
  line-height: 1.3;
}

/* Navigateurs sans color-mix : fond simple */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .hs-mode {
    background: var(--panel, #151b2b);
  }
  .hs-mode-ico,
  .hs-mode-tag {
    background: rgba(255, 255, 255, 0.06);
  }
  .hs-mode-tag {
    border-color: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 900px) {
  .hs-modes,
  .home-about-grid.hs-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .hs-modes,
  .home-about-grid.hs-features {
    grid-template-columns: 1fr;
  }
  .hs-mode--wide {
    grid-column: auto;
  }
  .hs-title {
    font-size: 1.12rem;
  }
}
