/* =====================================================
   IMMIGRATION97 — VISA TOURISME
   PREMIUM • STABLE • PRODUCTION READY • 2026
===================================================== */

/* =====================================================
   ROOT & BACKGROUND
===================================================== */
body.visa-tourisme {
  position: relative;
  z-index: 0;
  overflow-x: hidden;

  background:
    radial-gradient(900px 500px at 20% -10%, rgba(56,189,248,.12), transparent 40%),
    radial-gradient(600px 600px at 80% 100%, rgba(34,197,94,.08), transparent 50%),
    var(--bg-main);
}

/* animated background */
body.visa-tourisme::before {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 50%, rgba(56,189,248,.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34,197,94,.06), transparent 50%);
  animation: gradientShift 16s ease infinite;
}

@keyframes gradientShift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-4%, -4%); }
}

/* =====================================================
   GLOBAL SAFETY LAYER
===================================================== */
.visa-tourisme .vtm-hero,
.visa-tourisme .vtm-card {
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO
===================================================== */
.visa-tourisme .vtm-hero {
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(135deg, rgba(15,23,42,.97), rgba(30,41,59,.97));

  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.visa-tourisme .vtm-step {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;

  color: #38bdf8;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,197,94,.18));
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
}

.visa-tourisme .vtm-title {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 16px;

  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visa-tourisme .vtm-subtitle,
.visa-tourisme .vtm-subtle {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* =====================================================
   CARDS
===================================================== */
.visa-tourisme .vtm-card {
  margin-top: var(--space-xl);
  padding: var(--space-lg);

  background: linear-gradient(
    135deg,
    rgba(15,23,42,.98),
    rgba(30,41,59,.98)
  );

  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   FORM STRUCTURE
===================================================== */
.visa-tourisme .vtm-form {
  margin-top: 24px;
}

.visa-tourisme .vtm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 22px;
}

.visa-tourisme .vtm-field {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.visa-tourisme .vtm-field--full {
  grid-column: 1 / -1;
}

.visa-tourisme .vtm-field label,
.visa-tourisme .vtm-label {
  margin-bottom: 6px;
  color: #cbd5f5;
  font-weight: 600;
  letter-spacing: .2px;
}

/* =====================================================
   INPUTS (DJANGO SAFE)
===================================================== */
.visa-tourisme input:not([type="radio"]):not([type="checkbox"]),
.visa-tourisme select,
.visa-tourisme textarea {
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;

  color: #e5e7eb;
  font-size: 14px;

  transition: all .25s ease;
}

.visa-tourisme textarea {
  resize: vertical;
  min-height: 90px;
}

.visa-tourisme input:focus,
.visa-tourisme select:focus,
.visa-tourisme textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

/* =====================================================
   RADIO (DJANGO)
===================================================== */
.visa-tourisme .vtm-field ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.visa-tourisme .vtm-field ul li {
  margin-bottom: 8px;
}

.visa-tourisme .vtm-field input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  margin-right: 8px;
  cursor: pointer;
}

.visa-tourisme .vtm-field input[type="radio"]:checked {
  border-color: #22c55e;
  background: radial-gradient(circle, #22c55e 40%, transparent 42%);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

/* =====================================================
   CTA
===================================================== */
.visa-tourisme .vtm-btn-primary {
  margin-top: 6px;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;

  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;

  box-shadow: 0 18px 45px rgba(34,197,94,.45);
  transition: all .25s ease;
}

.visa-tourisme .vtm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(34,197,94,.55);
}

.visa-tourisme .vtm-microcopy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(203,213,245,.6);
  font-style: italic;
}

/* =====================================================
   INFO BOX
===================================================== */
.visa-tourisme .vtm-info-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-soft);
}

/* =====================================================
   TABLE (HISTORIQUE)
===================================================== */
.visa-tourisme .vtm-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visa-tourisme .vtm-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.3fr 1.3fr .8fr 1fr;
  gap: 12px;
  padding: 14px 16px;

  background: rgba(15,23,42,.7);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .visa-tourisme .vtm-grid {
    grid-template-columns: 1fr;
  }

  .visa-tourisme .vtm-hero {
    padding: var(--space-xl) var(--space-md);
  }

  .visa-tourisme .vtm-card {
    padding: var(--space-md);
  }
}


/* ================= SCORE ================= */

.vtm-score-wrapper {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.vtm-score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 6px solid;
}

.vtm-score-circle.is-good {
  border-color: #22c55e;
  color: #22c55e;
}

.vtm-score-circle.is-medium {
  border-color: #f59e0b;
  color: #f59e0b;
}

.vtm-score-circle.is-bad {
  border-color: #ef4444;
  color: #ef4444;
}

.vtm-score-value {
  font-size: 2.5rem;
  font-weight: 800;
}

.vtm-score-label {
  font-size: .9rem;
  opacity: .8;
}

.vtm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.vtm-list li {
  margin-bottom: 8px;
}
