/* EazyRent, essai premium : page « Tarifs ».
   Se charge après premium.css (menu, boutons, halos, logos, pied de page).
   La FAQ et l'appel à la démo reprennent ceux de la page agences, recopiés ici pour ne pas charger agences.css. */

/* ---------- 1. En-tête : halos et grille fine du hero de l'accueil, comme /demo ---------- */
.tf-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(136px, 13vw, 184px) 0 clamp(72px, 8vw, 112px); }
.tf-hero .hero-bg { z-index: -1; }
.tf-hero .g1 { top: -300px; }
.tf-hero .g2 { bottom: -200px; }
.tf-hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tf-sur { margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.tf-h1 { font: 700 clamp(40px, 5.4vw, 76px)/1.02 var(--f-d); letter-spacing: -.04em; font-variation-settings: 'opsz' 96; max-width: 15ch; text-wrap: balance; }
.tf-lead { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }

/* La phrase sur les prix : une pastille en verre, bien visible sous le sous-titre */
.tf-prix {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -18px rgba(49,46,129,.35);
  backdrop-filter: blur(8px);
  font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--ink); text-align: left;
}
.tf-prix > span:last-child { text-wrap: balance; }
.tf-prix-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lav); color: var(--indigo); font-size: 18px; }

/* ---------- Les 3 offres ---------- */
.tf-offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; margin-top: clamp(56px, 6vw, 80px); }
.tf-carte {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 2.4vw, 36px); border-radius: 28px;
  background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15,23,42,.04), 0 24px 50px -30px rgba(49,46,129,.25);
  backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.tf-carte:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #c3cbe0, 0 1px 2px rgba(15,23,42,.04), 0 32px 60px -30px rgba(49,46,129,.35); }

/* Offre Pro : fond blanc, contour indigo (le halo lavande qui apparaissait derrière le bouton est retiré, demande de Pierre) */
.tf-carte.is-reco {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--indigo), 0 2px 4px rgba(15,23,42,.05), 0 40px 80px -36px rgba(79,70,229,.55);
}
.tf-carte.is-reco:hover { box-shadow: inset 0 0 0 1.5px var(--indigo), 0 2px 4px rgba(15,23,42,.05), 0 48px 90px -36px rgba(79,70,229,.65); }
.tf-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--peri), var(--indigo)); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 22px -10px rgba(79,70,229,.8);
}

.tf-nom { font: 700 clamp(26px, 2.2vw, 32px)/1.1 var(--f-d); letter-spacing: -.02em; }
.tf-pour { margin-top: 10px; min-height: 3.2em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* Le volume (ou les métiers pour Sur mesure) prend la place qu'occupe d'habitude le prix */
.tf-zone { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
/* centré dans sa hauteur : la zone des métiers de Sur mesure est plus haute */
.tf-volume { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; column-gap: 10px; }
.tf-vol-sur { flex-basis: 100%; font-size: 14px; color: var(--ink-3); }
.tf-n { font: 700 clamp(48px, 4.6vw, 64px)/1.05 var(--f-d); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.is-reco .tf-n { color: var(--indigo); }
.tf-vol-unite { font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* Sur mesure : les métiers à la place du volume, sans dépasser sa hauteur */
.tf-metiers .tf-vol-sur { display: block; }
/* liste sobre (choix de Pierre) : petites icônes en indigo, comme les coches des listes de fonctionnalités */
.tf-metiers ul { display: grid; gap: 3px; margin-top: 2px; }
.tf-metiers li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tf-metiers svg { width: 18px; height: 18px; color: var(--indigo); }
.tf-btn { margin-top: 24px; width: 100%; }

/* Sur ordinateur, les boutons des 3 cartes restent sur la même ligne (titre / texte / volume / bouton / liste) */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .tf-carte { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .tf-btn { align-self: start; }
    /* chaque partie garde sa ligne, même quand une carte n'a pas de phrase sous le titre (Sur mesure) */
    .tf-nom { grid-row: 1; } .tf-pour { grid-row: 2; } .tf-zone { grid-row: 3; } .tf-btn { grid-row: 4; } .tf-inclus { grid-row: 5; }
  }
}

.tf-plus { margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tf-liste { display: grid; gap: 12px; margin-top: 26px; }
.tf-plus + .tf-liste { margin-top: 14px; }
.tf-liste li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.tf-liste svg { margin-top: 2px; width: 18px; height: 18px; color: var(--indigo); }
/* L'analyse anti-fraude est une option, pas une fonction incluse : un « + » gris */
.tf-liste .is-option { color: var(--ink-3); }
.tf-liste .is-option svg { color: var(--ink-3); }

.leger .tf-carte, .leger .tf-prix { backdrop-filter: none; background: #fff; }

/* ---------- 2. Logos ---------- */
.tf-logos { padding: 8px 0 clamp(64px, 7vw, 96px); }

/* ---------- 3. Appel à la démo (même bloc que la page agences, en indigo) ---------- */
.btn-blanc { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn-blanc:hover { box-shadow: 0 18px 36px -12px rgba(0,0,0,.55); }
.tf-cta { position: relative; padding: clamp(110px, 13vw, 170px) 0; text-align: center; color: #fff; }
.tf-cta-fond {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(129,140,248,.5), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(121,165,232,.35), transparent 70%),
    linear-gradient(135deg, #2b2a8f, #3730a3 50%, #4f46e5);
}
.tf-cta-fond::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%);
}
.tf-cta-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.tf-cta-titre { font: 700 clamp(40px, 5.8vw, 84px)/1.02 var(--f-d); letter-spacing: -.04em; max-width: 15ch; text-wrap: balance; }
.tf-cta-p { margin-top: 24px; max-width: 32em; font-size: 19px; color: #e0e3ff; }
.tf-cta .btn { margin-top: 36px; }

/* ---------- 4. FAQ (celle de la page agences) ---------- */
.faq { padding: clamp(96px, 12vw, 150px) 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq-tete { position: sticky; top: 120px; }
.faq-tete p { margin-top: 20px; font-size: 16px; color: var(--ink-2); max-width: 22em; }
.faq-tete a { color: var(--indigo); font-weight: 500; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 17px/1.4 var(--f-t); color: var(--ink);
}
.faq-q:hover { color: var(--indigo); }
.faq-plus { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #eef1f7; color: var(--ink-2); font-size: 16px; transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.faq-item.is-ouvert .faq-plus { transform: rotate(45deg); background: var(--indigo); color: #fff; }
.faq-r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1); }
.faq-item.is-ouvert .faq-r { grid-template-rows: 1fr; }
.faq-r > div { overflow: hidden; }
.faq-r p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 46em; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s; }
.faq-item.is-ouvert .faq-r p { opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1023px) {
  .tf-offres { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; gap: 36px; }
  .tf-pour { min-height: 0; }
}
@media (max-width: 899px) {
  .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .faq-tete { position: static; }
  .faq-r p { padding-right: 0; }
}
@media (max-width: 560px) {
  .tf-hero { padding-top: 116px; }
  .tf-prix { font-size: 14.5px; padding-right: 16px; }
  .tf-carte { border-radius: 24px; }
  /* « Grands comptes et réseaux d’agences » tient sur une ligne à 390 px : le triangle reste visible */
  .tf-metiers li { font-size: 15px; }
  .mq-groupe img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-carte, .faq-r, .faq-r p, .faq-plus { transition: none !important; }
}
