/* ============================================================
   verb_hub.css — Écran hub Werkwoorden / GrammaLab
   Variables identitaires héritées de main.css :
     --fr-blue, --fr-red, --fr-white, --c-sky-soft, --c-peach-soft
   Structure inspirée de verb_list.css + grammar_overview.css.
   ============================================================ */

.vh-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 100px;
}

/* ── Header avec icône ER/IR/RE ──────────────────────────── */
.vh-header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.vh-title-block {
  display: flex;
  align-items: center;
  gap: 28px;
}

.vh-section-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--c-sky-soft);
  color: var(--fr-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.vh-section-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--fr-blue);
}

.vh-section-icon svg rect {
  color: var(--fr-blue);
}

.vh-titleline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.vh-title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: #111;
}

/* ── Barre tricolore animée ───────────────────────────────── */
.vh-tricolor {
  display: flex;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 32px;
  transform-origin: left center;
  animation: vh-tricolor-in 0.6s cubic-bezier(.2, .8, .2, 1) both;
}

.vh-tricolor__seg {
  flex: 1;
  display: block;
}

.vh-tricolor__seg--blue {
  background: var(--fr-blue);
}

.vh-tricolor__seg--white {
  background: #f3f4f6;
}

.vh-tricolor__seg--red {
  background: var(--fr-red);
}

@keyframes vh-tricolor-in {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Grille des 2 cartes hub ──────────────────────────────── */
.vh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Carte hub (cliquable en entier) ──────────────────────── */
.vh-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.18s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.18s cubic-bezier(.2, .8, .2, 1);
}

.vh-card:hover,
.vh-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.vh-card:focus-visible {
  outline: 2px solid var(--fr-blue);
  outline-offset: 4px;
}

.vh-card__body {
  flex: 1;
  min-width: 0;
}

/* Carré pastel pour l'icône Lucide */
.vh-card__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vh-card__icon--leren {
  background: var(--c-sky-soft);
  color: var(--fr-blue);
}

.vh-card__icon--oefenen {
  background: var(--c-peach-soft);
  color: var(--fr-red);
}

.vh-card__icon i,
.vh-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

.vh-card__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.vh-card__desc {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
}

.vh-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fr-blue);
  transition: gap 0.18s cubic-bezier(.2, .8, .2, 1);
}

.vh-card--oefenen .vh-card__cta {
  color: var(--fr-red);
}

.vh-card__cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.18s cubic-bezier(.2, .8, .2, 1);
}

.vh-card:hover .vh-card__cta {
  gap: 12px;
}

.vh-card:hover .vh-card__cta-arrow {
  transform: translateX(2px);
}

/* ── Mobile (< 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  .vh-wrap {
    padding: 16px 16px 80px;
  }

  /* Header reste en flex row (pas de bascule en colonne) */
  .vh-title-block {
    gap: 18px;
  }

  .vh-section-icon {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    padding: 12px;
  }

  .vh-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vh-card {
    /* Layout interne reste horizontal, icône juste réduite */
    gap: 18px;
    padding: 20px 18px;
  }

  .vh-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .vh-card__icon i,
  .vh-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .vh-card__title {
    font-size: 1.15rem;
  }

  .vh-card__desc {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vh-tricolor {
    animation: none;
  }

  .vh-card,
  .vh-card__cta,
  .vh-card__cta-arrow {
    transition: none;
  }

  .vh-card:hover {
    transform: none;
  }
}
