/*
   ASSUGERIS — Tarificateur assurance temporaire — /assets/tempo-tarif.css
   S'appuie sur landing.css (.form-card, .fstep, .fgroup, .frow, .tog/.tbtn,
   .btn-main, .btn-back, .success-box…) et ajoute la mise en forme propre au
   calculateur : progression, libellés d'étape, cartes de choix, carte de tarif.
   NB : les étapes sont des <div class="fstep"> (pas des <section>) pour ne pas
   hériter du padding global `section { padding:90px 32px }`.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Le wizard respire dans la carte, sans padding hérité parasite. */
#ttWizard .fstep { padding: 0; margin: 0; }
#ttWizard .form-subtitle { margin-bottom: 18px; }

/* ─── Barre de progression ──────────────────────────────────────────────────── */
.tt-prog {
  position: relative; height: 7px; border-radius: 999px;
  background: var(--gray-100); overflow: hidden; margin-bottom: 26px;
}
.tt-prog-bar {
  display: block; height: 100%; width: 12%;
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light, #a24455));
  border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 1px rgba(123,45,59,0.06);
}

/* ─── Libellé d'étape (eyebrow) ─────────────────────────────────────────────── */
.tt-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 16px;
}
.tt-label::before {
  content: ''; width: 18px; height: 2px; border-radius: 2px;
  background: var(--burgundy); display: inline-block;
}

/* ─── Question mise en avant ────────────────────────────────────────────────── */
.tt-q {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: 1.28rem; line-height: 1.32; color: var(--charcoal);
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.tt-hint {
  font-size: 0.8rem; color: var(--gray-500); line-height: 1.55;
  margin-top: 14px; padding: 10px 12px; background: var(--gray-50);
  border-radius: 8px; border-left: 3px solid var(--gray-200);
}

/* Champ conditionnel révélé (date de naissance) */
.tt-reveal { margin-top: 16px; }
.tt-reveal[hidden] { display: none; }

/* Toggles Oui/Non : plus généreux dans ce contexte plein écran */
#ttWizard .tog { gap: 12px; }
#ttWizard .tog .tbtn { padding: 14px; font-size: 0.95rem; border-radius: 10px; }
#ttWizard .tog .tbtn.on { box-shadow: 0 0 0 3px rgba(123,45,59,0.08); }

/* ─── Cartes de choix (usage temporaire / défaut d'assurance) ───────────────── */
.tt-cards { display: grid; gap: 12px; }
.tt-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; padding: 16px 44px 16px 18px;
  border: 1.5px solid var(--gray-200); border-radius: 14px;
  background: var(--white); cursor: pointer; transition: all 0.22s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Inter Fallback', system-ui, sans-serif; width: 100%;
}
.tt-card:hover { border-color: var(--burgundy-light, #c98a95); transform: translateY(-2px); box-shadow: 0 8px 22px -12px rgba(45,52,54,0.35); }
.tt-card.tt-on {
  border-color: var(--burgundy); background: rgba(123,45,59,0.04);
  box-shadow: 0 0 0 3px rgba(123,45,59,0.09);
}
.tt-card-ico { font-size: 1.6rem; line-height: 1; margin-bottom: 5px; }
.tt-card strong { font-size: 1rem; color: var(--charcoal); font-weight: 600; }
.tt-card em { font-size: 0.82rem; color: var(--gray-500); font-style: normal; line-height: 1.45; }
/* Pastille de sélection ✓ */
.tt-card::after {
  content: '✓'; position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: transparent; transition: all 0.22s;
}
.tt-card.tt-on::after { border-color: var(--burgundy); background: var(--burgundy); color: var(--white); }

/* Message d'erreur d'étape */
.tt-err {
  font-size: 0.82rem; color: #E53E3E; font-weight: 500;
  margin-top: 14px; line-height: 1.5;
  padding: 9px 12px; background: rgba(229,62,62,0.06);
  border-radius: 8px; border-left: 3px solid #E53E3E;
}
.tt-err[hidden] { display: none; }

/* ─── Carte de tarif final ─────────────────────────────────────────────────── */
.tt-price-card {
  text-align: center; animation: fadeIn 0.5s ease;
  padding: 26px 22px; border-radius: 16px;
  background: linear-gradient(160deg, #fff, var(--burgundy-pale, #f6ecee));
  border: 1px solid rgba(123,45,59,0.14);
}
.tt-price-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--burgundy);
}
.tt-price-amount {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: 3.6rem; line-height: 1; font-weight: 600; color: var(--charcoal);
  margin: 10px 0 6px; letter-spacing: -0.02em;
}
.tt-price-sub { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 20px; }
.tt-price-list {
  list-style: none; text-align: left; margin: 0 0 22px; padding: 16px 18px;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(123,45,59,0.08);
  border-radius: 12px;
}
.tt-price-list li {
  font-size: 0.86rem; color: var(--gray-700); padding: 5px 0; line-height: 1.45;
}
.tt-price-card .btn-main { width: 100%; box-shadow: 0 10px 26px -12px rgba(123,45,59,0.6); }
.tt-call {
  display: block; margin-top: 14px; font-size: 0.86rem; font-weight: 500;
  color: var(--burgundy); text-decoration: none;
}
.tt-call:hover { text-decoration: underline; }
.tt-legal {
  font-size: 0.7rem; color: var(--gray-400); line-height: 1.55;
  margin-top: 18px; text-align: left;
}

/* Variante « étude sur mesure » (hors grille / non éligible) */
.tt-price-card--study { background: linear-gradient(160deg, #fff, var(--gray-50)); border-color: var(--gray-200); }
.tt-price-card--study .tt-study-ico { font-size: 2.6rem; }
.tt-study-h {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: 1.3rem; color: var(--charcoal); margin: 10px 0 8px;
}
.tt-study-p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 22px; }

@media (max-width: 480px) {
  .tt-price-amount { font-size: 2.9rem; }
  .tt-price-card { padding: 22px 16px; }
}
