/* =============================================================================
   verticals.css : skins des univers verticaux (V2 lot 13)
   -----------------------------------------------------------------------------
   Trois faux sites rendus dans la zone vitrine : Voyage (resoneo-travel.demo),
   Finance (resoneo-finance.demo), Petites annonces (resoneo-annonces.demo).
   Conventions RESONEO (design-system.css) : pas de liseré d'accent à GAUCHE des
   cartes (accent en haut autorisé), cartes sans bordure = fond + rayon + ombre.
   Chaque univers a sa teinte propre, posée par .vt--<univers> en variable
   locale --vt-accent : le but est qu'on voie EN UNE SECONDE qu'on n'est plus
   dans le magasin.
   ========================================================================== */

/* --- Chrome resoneo-shop masqué quand un univers vertical est affiché ------- */
html[data-universe] .shop-header,
html[data-universe] .shop-nav { display: none; }

/* --------------------------------------------------------------------------- */
/* Conteneur + teintes d'univers                                               */
/* --------------------------------------------------------------------------- */
.vt { box-sizing: border-box; }
.vt *, .vt *::before, .vt *::after { box-sizing: inherit; }

.vt--travel      { --vt-accent: #0e7490; --vt-accent-soft: #e0f2f7; --vt-accent-ink: #0b5a70; }
.vt--finance     { --vt-accent: #1d4ed8; --vt-accent-soft: #e3eafc; --vt-accent-ink: #173ba6; }
.vt--classifieds { --vt-accent: #c2570e; --vt-accent-soft: #fdeadd; --vt-accent-ink: #9c4306; }

/* --------------------------------------------------------------------------- */
/* Header + nav de l'univers                                                   */
/* --------------------------------------------------------------------------- */
.vt-back {
  display: inline-block; margin-left: 10px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--rs-ink-soft); white-space: nowrap;
}
.vt-back:hover { color: var(--vt-accent-ink); }

.vt-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 10px;
  border-top: 3px solid var(--vt-accent);
  background: var(--rs-surface);
}
.vt-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vt-brand__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--vt-accent-soft); font-size: 20px;
}
.vt-brand__names { display: flex; flex-direction: column; min-width: 0; }
.vt-brand__name { font-weight: 800; color: var(--vt-accent-ink); letter-spacing: .01em; }
.vt-brand__tag { font-size: 11px; color: var(--rs-muted); }
.vt-brand__pill { margin-left: auto; }

.vt-nav {
  display: flex; gap: 2px; overflow-x: auto;
  padding: 0 12px; background: var(--rs-surface);
  border-bottom: 1px solid var(--rs-line);
}
.vt-nav__item {
  padding: 9px 12px 7px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--rs-ink-soft);
  border-bottom: 2px solid transparent;
}
.vt-nav__item.is-active { color: var(--vt-accent-ink); border-bottom-color: var(--vt-accent); }

.vt-body { padding: 16px 18px 26px; background: var(--rs-bg); min-height: 240px; }

/* --------------------------------------------------------------------------- */
/* Accueil d'univers (aucune scène active)                                     */
/* --------------------------------------------------------------------------- */
.vt-home { text-align: center; padding: 34px 16px; }
.vt-home__icon { font-size: 34px; display: block; }
.vt-home__title { margin: 8px 0 4px; font-size: 20px; font-weight: 800; color: var(--vt-accent-ink); }
.vt-home__text { margin: 0 0 10px; color: var(--rs-ink-soft); }
.vt-home__hint { margin: 0 auto; max-width: 460px; font-size: 12.5px; color: var(--rs-muted); }

/* --------------------------------------------------------------------------- */
/* Tête de scène                                                               */
/* --------------------------------------------------------------------------- */
.vt-scene__head { margin-bottom: 12px; }
.vt-scene__title { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--rs-ink); }
.vt-scene__subtitle { margin: 0; font-size: 13px; color: var(--rs-ink-soft); }

/* --------------------------------------------------------------------------- */
/* Blocs génériques                                                            */
/* --------------------------------------------------------------------------- */
.vt-block { margin: 0 0 14px; }
.vt-block__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--rs-ink-soft); text-transform: uppercase; letter-spacing: .04em; }

.vt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-chip {
  padding: 4px 10px; border-radius: 999px;
  background: var(--vt-accent-soft); color: var(--vt-accent-ink);
  font-size: 12px; font-weight: 600;
}
.vt-chip--off { background: var(--rs-surface-2); color: var(--rs-muted); text-decoration: line-through; }
.vt-chips--inline { margin-top: 6px; }
.vt-chips--inline .vt-chip { background: var(--rs-surface-2); color: var(--rs-ink-soft); font-weight: 500; }

.vt-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.vt-note--info    { background: var(--rs-surface-2); color: var(--rs-ink-soft); }
.vt-note--success { background: var(--rs-live-bg); color: var(--rs-live); font-weight: 600; }
.vt-note--alert   { background: #fdecea; color: #b3261e; font-weight: 600; }

/* --------------------------------------------------------------------------- */
/* Grille de cartes d'entités                                                  */
/* --------------------------------------------------------------------------- */
.vt-grid { display: grid; gap: 10px; margin: 0 0 14px; }
.vt-grid--hotel, .vt-grid--vehicle, .vt-grid--property,
.vt-grid--account, .vt-grid--quote, .vt-grid--loan, .vt-grid--trip {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.vt-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--rs-surface); border-radius: 12px;
  padding: 12px; box-shadow: var(--rs-shadow-card);
}
.vt-card.is-highlighted { outline: 2px solid var(--vt-accent); }
.vt-card.is-excluded { opacity: .62; }
.vt-card.is-excluded .vt-card__title,
.vt-card.is-excluded .vt-card__price strong { text-decoration: line-through; }
.vt-card__excluded { margin: 0; font-size: 12px; font-weight: 600; color: #b3261e; }

.vt-card__media {
  height: 110px; border-radius: 8px; overflow: hidden;
  background: var(--rs-surface-2); display: grid; place-items: center;
}
.vt-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-card__placeholder { font-size: 30px; opacity: .7; }

.vt-card__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.vt-card__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vt-card__title { font-size: 14px; color: var(--rs-ink); }
.vt-card__sub { margin: 0; font-size: 12.5px; color: var(--rs-ink-soft); }
.vt-card__sub--commute { font-weight: 700; color: var(--vt-accent-ink); }
.vt-card__desc { margin: 4px 0 0; font-size: 12.5px; color: var(--rs-ink-soft); }

.vt-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.vt-card__price strong { font-size: 17px; color: var(--rs-ink); }
.vt-card__price-label { font-size: 11.5px; color: var(--rs-muted); }
.vt-card__cta { align-self: flex-start; pointer-events: none; }

.vt-badge {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.vt-badge--best { background: var(--rs-live-bg); color: var(--rs-live); }
.vt-badge--info { background: var(--vt-accent-soft); color: var(--vt-accent-ink); }
.vt-badge--warn { background: var(--rs-cached-bg); color: var(--rs-cached); }
.vt-badge--alert { background: #fdecea; color: #b3261e; }

/* Vol */
.vt-card--flight { flex-direction: row; align-items: center; gap: 14px; }
.vt-card--flight .vt-card__price { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 0; }
.vt-flight__head { display: flex; gap: 10px; align-items: baseline; }
.vt-flight__airline { font-weight: 700; font-size: 13px; color: var(--rs-ink); }
.vt-flight__date { font-size: 12px; color: var(--rs-muted); }
.vt-flight__route { display: flex; gap: 8px; align-items: baseline; font-size: 15px; }
.vt-flight__arrow { color: var(--vt-accent); font-weight: 700; }

/* Hôtel */
.vt-hotel__stars { color: #eab308; font-size: 13px; letter-spacing: .1em; }

/* Séjour (vol + hôtel) */
.vt-trip__parts { display: flex; flex-direction: column; gap: 2px; }
.vt-trip__part { margin: 0; font-size: 12.5px; color: var(--rs-ink-soft); }

/* Réservation */
.vt-booking__ref { font-size: 11.5px; color: var(--rs-muted); }

/* Listes de caractéristiques (comptes, devis) */
.vt-feats { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.vt-feats__item { font-size: 12.5px; color: var(--rs-ink-soft); }
.vt-feats__item.is-off { color: var(--rs-muted); }

/* DPE (A -> G) */
.vt-dpe {
  padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff;
}
.vt-dpe--a { background: #1f9d55; } .vt-dpe--b { background: #52b153; }
.vt-dpe--c { background: #a3c853; } .vt-dpe--d { background: #f2b705; }
.vt-dpe--e { background: #ef8d21; } .vt-dpe--f { background: #e2571b; }
.vt-dpe--g { background: #c22a1c; }

/* --------------------------------------------------------------------------- */
/* Tableau comparatif                                                          */
/* --------------------------------------------------------------------------- */
.vt-tablewrap { overflow-x: auto; background: var(--rs-surface); border-radius: 12px; box-shadow: var(--rs-shadow-card); }
.vt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vt-table th, .vt-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--rs-line); }
.vt-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--rs-ink-soft); background: var(--rs-surface-2); }
.vt-table tbody tr:last-child td { border-bottom: none; }
.vt-table .is-best { background: var(--vt-accent-soft); font-weight: 700; }

/* --------------------------------------------------------------------------- */
/* Panneau récapitulatif                                                       */
/* --------------------------------------------------------------------------- */
.vt-panel {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--rs-surface); box-shadow: var(--rs-shadow-card);
  border-top: 3px solid var(--vt-accent);
}
.vt-panel--success { border-top-color: var(--rs-live); }
.vt-panel--warn { border-top-color: var(--rs-cached); }
.vt-panel__title { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--rs-ink); }
.vt-panel__row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; font-size: 13px; }
.vt-panel__row.is-strong { font-weight: 800; border-top: 1px solid var(--rs-line); margin-top: 5px; padding-top: 7px; }
.vt-panel__label { color: var(--rs-ink-soft); }
.vt-panel__value { color: var(--rs-ink); text-align: right; }
.vt-panel__footer { margin: 8px 0 0; font-size: 11.5px; color: var(--rs-muted); }

/* --------------------------------------------------------------------------- */
/* Confirmation (action préparée / confirmée)                                  */
/* --------------------------------------------------------------------------- */
.vt-confirm {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--rs-surface); box-shadow: var(--rs-shadow-card);
  border-top: 3px solid var(--rs-accent);
}
.vt-confirm.is-confirmed { border-top-color: var(--rs-live); }
.vt-confirm__badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: var(--rs-accent-100); color: var(--rs-accent-600);
}
.vt-confirm.is-confirmed .vt-confirm__badge { background: var(--rs-live-bg); color: var(--rs-live); }
.vt-confirm__title { margin: 8px 0 6px; font-size: 15px; font-weight: 800; color: var(--rs-ink); }
.vt-confirm__lines { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: var(--rs-ink-soft); }
.vt-confirm__lines li { margin: 2px 0; }
.vt-confirm__total { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--rs-ink); }
.vt-confirm__note { margin: 0 0 10px; font-size: 12px; color: var(--rs-muted); }
.vt-confirm__actions { display: flex; gap: 8px; }
.vt-confirm__actions .rs-btn.is-done { opacity: .75; }

/* --------------------------------------------------------------------------- */
/* Formulaire / brouillon d'annonce                                            */
/* --------------------------------------------------------------------------- */
.vt-form {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--rs-surface); box-shadow: var(--rs-shadow-card);
}
.vt-form__title { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--rs-ink); }
.vt-form__row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--rs-line); }
.vt-form__row:last-child { border-bottom: none; }
.vt-form__label { color: var(--rs-ink-soft); }
.vt-form__value { color: var(--rs-ink); text-align: right; font-weight: 600; }
.vt-form__row.is-missing .vt-form__value { color: var(--rs-cached); font-style: italic; font-weight: 500; }

/* --------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .vt-header { flex-wrap: wrap; }
  .vt-card--flight { flex-direction: column; align-items: stretch; }
  .vt-card--flight .vt-card__price { flex-direction: row; align-items: baseline; margin-left: 0; }
  .vt-grid--hotel, .vt-grid--vehicle, .vt-grid--property,
  .vt-grid--account, .vt-grid--quote, .vt-grid--loan, .vt-grid--trip {
    grid-template-columns: 1fr;
  }
}
