/* ============================================================
   SUPPORT.CSS — TRINITY · alpinelinux.fr
   Dépend de : main.css + landing.css
   ============================================================ */

/* ── HERO ── */
.sp-hero { padding: 5rem 0; }
.sp-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sp-hero__left  { display: flex; flex-direction: column; gap: 1.25rem; }
.sp-hero__title {
  font-family: var(--dis); font-size: clamp(2rem, 4vw, 2.8rem);
  color: white; line-height: 1.05; letter-spacing: -0.03em; margin: 0;
}
.sp-hero__title-muted { color: rgba(255,255,255,.3); }
.sp-hero__sub  { font-family: var(--mono); font-size: 0.82rem; color: rgba(255,255,255,.5); line-height: 1.8; margin: 0; }
.sp-hero__hint { font-family: var(--mono); font-size: 0.62rem; color: rgba(255,255,255,.22); letter-spacing: 0.04em; }

.sp-search { display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); }
.sp-search__input { flex: 1; padding: 0.875rem 1rem; border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 0.88rem; color: #1a1730; background: white; }
.sp-search__input::placeholder { color: #9ca3af; }
.sp-search__btn { background: var(--vd); color: white; border: none; padding: 0 1.5rem; cursor: pointer; font-family: var(--dis); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: background .15s; white-space: nowrap; }
.sp-search__btn:hover { background: #1e1b60; }
.sp-search__btn i { font-size: 0.82rem; opacity: 1; margin: 0; }

.section-dark {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(99,60,230,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(62,58,171,0.35) 0%, transparent 55%),
    linear-gradient(135deg, #4e0dd8 0%, #381c9d 40%, #27048f 70%, #1e00a1 100%);
}

/* ── TRAINERS ── */
.sp-trainer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem;
}
.sp-trainer-card {
  background: #fff;
  border: 1px solid #e9eaf0;
  border-left: 20px solid #d1d5db;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.sp-trainer-card:hover {
  transform: translateY(-3px);
  border-color: #3e3aab;
  box-shadow: 0 12px 30px rgba(62, 58, 171, 0.12);
}
.sp-trainer-card--1 { border-color: rgba(62,58,171,.32); border-left-color: #3e3aabd4; }
.sp-trainer-card--2 { border-color: rgba(0,183,255,.32); border-left-color: #00b7ffd4; }
.sp-trainer-card--3 { border-color: rgba(89,168,0,.32); border-left-color: #71cf00d4; }
.sp-trainer-level__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sp-tl-code {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dis);
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(62,58,171,.08);
  color: var(--v);
}
.sp-trainer-card--2 .sp-tl-code { background: rgba(0,183,255,.08); color: #00b7ff; }
.sp-trainer-card--3 .sp-tl-code { background: rgba(113,207,0,.08); color: #59a800; }
.sp-tl-name {
  font-family: var(--dis);
  font-size: 0.86rem;
  color: #0f0e1a;
  text-transform: uppercase;
}
.sp-tl-desc {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #9ca3af;
  margin-top: 2px;
}
.sp-trainer-card__detail {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #6b7280;
}
.sp-trainer-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #6b7280;
}
.sp-trainer-card__meta i { color: #3e3aab; opacity: .8; margin-right: 3px; }
.sp-trainer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #eef0f5;
  padding-top: 0.7rem;
}
.sp-trainer-cta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #3e3aab;
  border: 1px solid rgba(62,58,171,.22);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}
.sp-trainer-cta:hover {
  background: rgba(62,58,171,.08);
}
.sp-tl-price {
  font-family: var(--dis);
  font-size: 1rem;
  color: #0f0e1a;
}
.sp-tl-price small { font-family: var(--mono); font-size: 0.64rem; color: #9ca3af; }
.sp-trainer-note { font-family: var(--mono); font-size: 0.6rem; color: #9ca3af; text-align: center; border-top: 1px solid #e9eaf0; padding-top: 0.75rem; margin: 0.8rem 0 0; }

.sp-hero__left .s-eye { color: #ffffffab; }

/* ── INCIDENTS ── */
.sp-content__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.sp-content__col-title { font-family: var(--dis); font-size: 0.85rem; color: var(--v); text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 1rem; display: flex; align-items: center; gap: 8px; }
.sp-content__col-title i { font-size: 1rem; color: rgba(62,58,171,.3); }
.sp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.sp-list li { padding: 0.6rem 0; border-bottom: 1px solid rgba(62,58,171,.08); font-size: 0.875rem; color: #1a1730; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 8px; transition: color .15s; }
.sp-list li::before { content: '·'; color: var(--v); font-weight: 900; font-size: 1.2rem; line-height: 0; flex-shrink: 0; }
.sp-list li:last-child { border-bottom: none; }
.sp-list li:hover { color: var(--v); }

/* nav active */
.nav-links a.active { color: var(--v); font-weight: 600; }
#chat-banner { min-height: 33rem; }

.chat-header {
    display: flex; justify-content: space-between; padding: 1rem;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(99,60,230,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(62,58,171,0.35) 0%, transparent 55%),
    linear-gradient(135deg, #3e3aab 0%, #5338c8 100%);
    color: white;
}
.chat-header img { width: 1.66rem; margin-right: 0.66rem; opacity: 0.33; }
.chat { background: transparent !important; margin-left: 5rem; }
.chat-input { display: none; }
.chat-bar { display: none; }
.typing { background: #cec5ff87; }
.bubble.visible { margin-bottom: 1rem; }
.chat-header span { display: flex; flex-direction: row; align-items: center; font-size: 0.85rem; justify-content: space-between; opacity: 0.8; }
.chat-header strong { margin: 0 0.33rem; }
.chat-header button { background: none; border-style: none; color: white; opacity: 0.5; margin: 0 0.33rem; }
button#chat-close { font-size: 1.33rem; position: relative; top: -0.1rem; opacity: 0.85; }
button#chat-delete i { font-size: 0.9rem; margin-right: 0.5rem; }
.thread { flex: 1; overflow-y: auto; padding: 0 3.33rem 2.5rem; }
.chat-input-bar { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid #eee; }
.hidden { display: none; }
#output { display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; width: 100%; align-items: flex-end; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sp-hero__inner  { grid-template-columns: 1fr; }
  .sp-content__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .sp-hero { padding: 3rem 0; }
}

@media (max-width: 700px) {
  .sp-trainer-grid { grid-template-columns: 1fr !important; }
}

/* ── PRESTATIONS ── */
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.section-prestations h2 {
    justify-self: center;
}
.prestation-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow .2s, transform .2s;
}
.prestation-card--featured {
    border-color: #3e3aab;
    box-shadow: 0 4px 16px rgba(62, 58, 171, .12);
}
.prestation-card:hover { box-shadow: 0 6px 20px rgba(62,58,171,.1); transform: translateY(-2px); }
.prestation-card--featured { border-color: #3e3aab; box-shadow: 0 4px 16px rgba(62,58,171,.12); }
.prestation-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.prestation-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prestation-icon.vi { background: #f8f7ff; } .prestation-icon.vi i { color: #3e3aab; }
.prestation-icon.pa { background: #eceafc; } .prestation-icon.pa i { color: #3e3aab; }
.prestation-icon.gr { background: #eaffeb; } .prestation-icon.gr i { color: #2fa316; }
.prestation-icon.bl { background: #f1faff; } .prestation-icon.bl i { color: #009ae9; }
.prestation-icon.or { background: #fff9e9; } .prestation-icon.or i { color: #ff7800; }
.prestation-name { font-family: 'Archivo Black', sans-serif; font-size: 0.9rem; color: #1a1730; text-transform: uppercase; letter-spacing: -0.01em; }
.prestation-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: #9ca3af; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.prestation-desc { font-size: 0.78rem; color: #6b7280; line-height: 1.65; margin: 0; flex: 1; }
.prestation-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  flex-direction: row-reverse;
}
.prestation-price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  color: #3e3aab;
  white-space: nowrap;
}
.prestation-price span { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: #9ca3af; font-weight: 400; }
.prestation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(62, 58, 171, .25);
    color: #3e3aab;
    background: none;
    transition: all .15s;
}
.prestation-btn:hover { background: rgba(62,58,171,.06); border-color: #3e3aab; }
.prestation-btn--primary { background: #3e3aab; color: white; border-color: #3e3aab; }
.prestation-btn--primary:hover { background: #302d8f; }

.price-period-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: #9ca3af;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

ul.price-features { margin: 0 auto; }
ul.price-features li:nth-child(4) { font-weight: bold; }
button.price-btn { cursor: pointer; font-family: inherit; border: none; }

.pay-flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}
.pay-flow--inline {
  margin: 0;
}
.pay-flow__step {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3e3aab;
    background: rgba(62, 58, 171, .08);
    border: 1px solid rgba(62, 58, 171, .18);
    border-radius: 4px;
    padding: 4px 10px;
    width: 100%;
}

/* ── BANNIÈRE SUCCÈS ABONNEMENT ── */
.support-subscribed-banner {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; max-width: 600px; width: calc(100% - 2rem);
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: 10px; padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(34,197,94,.15);
  animation: slide-down .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes slide-down {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}
.support-subscribed-banner i   { color: #22c55e; font-size: 1.1rem; flex-shrink: 0; }
.support-subscribed-banner span { font-size: 0.82rem; color: #166534; flex: 1; line-height: 1.4; }
.support-subscribed-banner button { border: none; background: none; cursor: pointer; color: #6b7280; padding: 2px; font-size: 0.85rem; }

@media (max-width: 1024px) { .prestations-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .prestations-grid { grid-template-columns: 1fr; } }

/* ── UNYPORT SECTION ── */
.unyport-block {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e9eaf0;
    border-radius: 14px;
    padding: 5rem 3rem;
}
.unyport-block__right {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.unyport-block .btn-primary,
.unyport-block .btn-outline {
  text-decoration: none;
}
@media (max-width: 900px) {
.unyport-block {
        display: flex;
        flex-direction: column;
    }
  .unyport-block__right {
    justify-content: flex-start;
  }
}
