/* Tunnel IP — hero sombre + calculateur */

@import url('./transit-ip.css');

.tn-hero-visual {
  position: relative;
  min-height: 220px;
}

.tn-hero-orbits {
  position: relative;
  width: min(100%, 280px);
  height: 280px;
  margin: 0 auto;
}

.tn-hero-orbits span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.28);
  animation: tn-orbit 12s linear infinite;
}

.tn-hero-orbits span:nth-child(2) {
  inset: 18%;
  border-color: rgba(96, 165, 250, 0.4);
  animation-duration: 9s;
  animation-direction: reverse;
}

.tn-hero-orbits span:nth-child(3) {
  inset: 36%;
  border-color: rgba(56, 189, 248, 0.55);
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.35), transparent 70%);
  animation-duration: 6s;
}

@keyframes tn-orbit {
  to { transform: rotate(360deg); }
}

.tn-calc {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.tn-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: var(--hc-surface);
}

.tn-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.tn-slider-head label {
  font-family: "Inter", sans-serif;
  font-weight: 650;
  color: var(--hc-ink);
  font-size: 1rem;
}

.tn-slider-head strong {
  color: var(--hc-accent);
  font-size: 0.95rem;
}

.tn-slider p {
  margin: 0 0 14px;
  color: var(--hc-muted);
  font-size: 0.9rem;
}

.tn-slider input[type="range"] {
  width: 100%;
  accent-color: #2563eb;
}

.tn-calc-summary {
  padding: 28px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(160deg, #0b1f44, #132d66);
  color: #e8f1ff;
}

.tn-calc-summary h3 {
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.tn-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
}

.tn-calc-row strong {
  color: #fff;
}

.tn-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 22px;
}

.tn-calc-total span {
  color: rgba(226, 232, 240, 0.8);
}

.tn-calc-total strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.tn-calc-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.tn-calc-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tn-calc-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tn-step-num,
.bg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.tn .hc-steps {
  grid-template-columns: repeat(4, 1fr);
}

/* Cas d'usage — cards */
.tn-usecases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tn-usecase-card {
  padding: 28px 22px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tn-usecase-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.tn-usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.15rem;
}

.tn-usecase-card h3 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hc-ink);
}

.tn-usecase-card p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* FAQ — même design que VPS */
.faq-ultra-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-ultra-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-ultra-card:hover {
  border-color: var(--hc-primary, #2563eb);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-ultra-question {
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  font-weight: 700;
  color: var(--hc-ink, #0f172a);
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-family: "Inter", sans-serif;
  line-height: 1.4;
}

.faq-ultra-icon {
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  color: var(--hc-primary, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-ultra-question:not(.collapsed) .faq-ultra-icon {
  background: var(--hc-primary, #2563eb);
  color: #fff;
}

.faq-ultra-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.faq-ultra-question:not(.collapsed) .faq-ultra-arrow {
  transform: rotate(180deg);
  color: var(--hc-primary, #2563eb);
}

.faq-ultra-answer {
  padding: 0 30px 25px 88px;
  color: var(--hc-muted, #64748b);
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .tn-calc {
    grid-template-columns: 1fr;
  }

  .tn-hero-orbits {
    width: 200px;
    height: 200px;
  }

  .tn .hc-steps {
    grid-template-columns: 1fr;
  }

  .tn-usecases {
    grid-template-columns: 1fr 1fr;
  }

  .faq-ultra-answer {
    padding-left: 30px;
  }
}

@media (max-width: 575px) {
  .tn-usecases {
    grid-template-columns: 1fr;
  }
}
