/* ==========================================================================
   UH-REFRESH — chargé en dernier
   1. Section « L'hébergeur pensé pour Hytale » (KPIs + cartes)
   2. Bannière mods Hytale (alignement propre)
   3. Blocs CTA de fin de guide / documentation
   ========================================================================== */

/* ── 1. SECTION PENSÉE POUR HYTALE ───────────────────────────────────────── */
.ht-features-sub {
  text-align: center;
  color: var(--w40);
  font-size: 14px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.ht-kpis {
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ht-kpi {
  position: relative;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  text-align: center;
  overflow: hidden;
}
.ht-kpi::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.55), transparent);
}
.ht-kpi strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ht-orange, #f59e0b), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ht-kpi span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--w40);
}

.ht-features-grid--v2 {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.ht-features-grid--v2 .ht-feat-card {
  flex-direction: column;
  gap: 14px;
  border-radius: 16px !important;
  padding: 24px 22px !important;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ht-features-grid--v2 .ht-feat-title {
  font-size: 14px;
  margin-bottom: 6px;
}
.ht-features-grid--v2 .ht-feat-desc {
  font-size: 12.5px;
  color: var(--w50, rgba(255, 255, 255, 0.5));
}
.ht-feat-card--purple:hover {
  border-color: rgba(111, 66, 193, 0.4) !important;
  box-shadow: 0 12px 32px -18px rgba(111, 66, 193, 0.7);
}
.ht-feat-card--orange:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 12px 32px -18px rgba(245, 158, 11, 0.6);
}
.ht-feat-card--green:hover {
  border-color: rgba(74, 222, 128, 0.4) !important;
  box-shadow: 0 12px 32px -18px rgba(74, 222, 128, 0.5);
}

@media (max-width: 980px) {
  .ht-features-grid--v2 { grid-template-columns: 1fr 1fr; }
  .ht-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ht-features-grid--v2 { grid-template-columns: 1fr; }
}

/* ── 2. BANNIÈRE MODS HYTALE ─────────────────────────────────────────────── */
.ht-mods-banner {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  gap: 32px !important;
  align-items: center !important;
  padding: 40px !important;
  border-radius: 22px !important;
}
.plugins-banner-copy { position: relative; min-width: 0; }
.plugins-banner-h {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--white);
  line-height: 1.3;
}
.plugins-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ht-orange, #f59e0b);
  text-decoration: none;
}
.plugins-banner-link:hover { text-decoration: underline; }
.plugins-banner-link i { font-size: 11px; transition: transform 0.18s ease; }
.plugins-banner-link:hover i { transform: translateX(3px); }

.ht-mods-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-auto-rows: 1fr;
  gap: 12px !important;
  min-width: 0;
}
.ht-mods-grid .plugins-col-item {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 10px;
  min-height: 112px;
  padding: 16px !important;
}
.ht-mods-grid .plugins-col-text span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .ht-mods-banner { grid-template-columns: 1fr !important; padding: 28px 22px !important; }
  .ht-mods-banner .plugins-banner-copy { text-align: center; }
}
@media (max-width: 520px) {
  .ht-mods-grid { grid-template-columns: 1fr !important; }
  .ht-mods-grid .plugins-col-item { min-height: 0; }
}

/* ── 3. CTA DE FIN DE GUIDE / DOC ────────────────────────────────────────── */
.uh-cta {
  position: relative;
  margin: 56px 0;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(155, 109, 255, 0.55), rgba(111, 66, 193, 0.15) 45%, rgba(74, 222, 128, 0.35));
  overflow: hidden;
}
.uh-cta-in {
  position: relative;
  border-radius: 23px;
  padding: 36px 32px;
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(111, 66, 193, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(74, 222, 128, 0.1), transparent 70%),
    #0d1120;
  text-align: left;
}
[data-theme="light"] .uh-cta-in {
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(111, 66, 193, 0.12), transparent 70%),
    #ffffff;
}
.uh-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Syne", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.09);
  border: 1px solid rgba(74, 222, 128, 0.22);
  padding: 6px 12px;
  border-radius: 100px;
}
.uh-cta h2,
.uh-cta-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin: 16px 0 10px;
}
.uh-cta-title .grad {
  background: linear-gradient(135deg, #9b6dff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.uh-cta-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--w50, rgba(255, 255, 255, 0.5));
  max-width: 540px;
  margin: 0 0 20px;
}
.uh-cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}
.uh-cta-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--w70, rgba(255, 255, 255, 0.7));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 13px;
}
.uh-cta-points i { color: #4ade80; font-size: 11px; }
.uh-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.uh-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 100px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.uh-btn-primary {
  background: linear-gradient(135deg, #9b6dff, var(--purple));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(111, 66, 193, 0.85);
}
.uh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(111, 66, 193, 0.95); }
.uh-btn-ghost {
  background: transparent;
  color: var(--w70, rgba(255, 255, 255, 0.7));
  border: 1px solid var(--border2, rgba(255, 255, 255, 0.12));
}
.uh-btn-ghost:hover { border-color: var(--purple); color: var(--white); }
.uh-cta-price {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #4ade80;
}
.uh-cta-price small { display: block; font-weight: 400; font-size: 10.5px; color: var(--w40); }
@media (max-width: 560px) {
  .uh-cta-in { padding: 26px 20px; }
  .uh-btn { width: 100%; justify-content: center; }
}

/* CTA inline (dans le corps de l'article) */
.uh-inline-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 26px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.09), rgba(74, 222, 128, 0.02));
  border: 1px solid rgba(74, 222, 128, 0.22);
}
.uh-inline-cta i.uh-inline-ico { color: #4ade80; font-size: 14px; flex-shrink: 0; }
.uh-inline-cta p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--w70, rgba(255, 255, 255, 0.7)); }
.uh-inline-cta a {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #4ade80;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.4);
}
.uh-inline-cta a:hover { border-bottom-color: #4ade80; }

/* Emojis des FAQ : police dédiée pour un rendu identique partout */
summary span[aria-hidden="true"],
.uh-cta-title {
  font-family: "Syne", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
summary span[aria-hidden="true"] { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
