/* Page tarifs (maquette « tarifs-retooch », aux couleurs de la marque).
   S'appuie sur accueil.css pour l'en-tête, le pied et les boutons. */

.tf { padding-top: 40px; padding-bottom: 72px; }
.tf h1 {
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.tf-intro { margin: 0 0 36px; text-align: center; font-size: 18px; color: var(--encre-2); }

.tf-message { max-width: 720px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 14px;
  background: var(--violet-pale); color: var(--violet-fonce); }
.tf-message-erreur { background: #FBE9E7; color: #A12A2A; }

/* --- Barre : sélecteur et démo -------------------------------------------- */
.tf-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}
.tf-bascule {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--fond-doux);
  border: 1px solid #E6E6EE;
}
.tf-bascule button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--encre-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.tf-bascule button[aria-pressed="true"] { background: var(--encre); color: #FFFFFF; font-weight: 600; }
.tf-bascule button:focus-visible { outline: 3px solid var(--degrade-debut); outline-offset: 2px; }
.tf-bascule-petite button { min-height: 34px; padding: 0 12px; font-size: 13px; }

.tf-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--encre-2);
  font-size: 15px;
  text-decoration: none;
}
a.tf-demo:hover { color: var(--encre); text-decoration: underline; }
.tf-demo-point { width: 8px; height: 8px; border-radius: 50%; background: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }

/* --- Cartes -------------------------------------------------------------------- */
.tf-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.tf-carte {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #E6E6EE;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(11, 15, 26, .04), 0 10px 30px rgba(11, 15, 26, .05);
}
/* Les prix, listes et boutons des quatre cartes restent alignés (sous-grille). */
@supports (grid-template-rows: subgrid) {
  .tf-carte { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .tf-carte > * { align-self: start; }
  .tf-carte > .tf-tarif { align-self: end; }
  .tf-carte > form, .tf-carte > .tf-cta { align-self: end; }
}
.tf-carte-avant {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--degrade) border-box;
  box-shadow: 0 18px 44px rgba(124, 92, 255, .18);
}
.tf-carte-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tf-carte h2 { margin: 0; font-family: var(--police-titres); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.tf-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--degrade);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}
.tf-entete-carte { padding-bottom: 16px; }
.tf-sous-titre { margin: 4px 0 0; font-size: 14px; color: var(--encre-3); }
.tf-entete-carte .tf-bascule { margin-top: 12px; }
.tf-tarif { margin: 0; }
.tf-prix { font-family: var(--police-titres); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; }
.tf-par { font-size: 15px; color: var(--encre-3); }
.tf-note { min-height: 20px; margin: 2px 0 0; font-size: 13px; color: var(--encre-3); }

.tf-liste { flex: 1; margin: 16px 0 22px; padding: 0; list-style: none; font-size: 15px; }
.tf-liste li { position: relative; margin-bottom: 9px; padding-left: 26px; line-height: 1.45; }
.tf-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--violet-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%234B2FD1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.tf-liste li.tf-info { color: var(--encre-3); }
.tf-liste li.tf-info::before {
  background: #F1F1F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7.2v4M8 4.8v.1' fill='none' stroke='%235A6172' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.tf-carte form { margin: 0; }
.tf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  text-align: center;
  border: 1px solid #D5D5E0;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--encre);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.tf-cta:hover { border-color: var(--encre); color: var(--encre); }
.tf-cta-fort { border: 0; background: var(--encre); color: #FFFFFF; }
.tf-cta-fort:hover { background: #232A3B; color: #FFFFFF; }
.tf-cta-actuel { border-style: dashed; color: var(--encre-3); cursor: default; }
.tf-cta-actuel:hover { border-color: #D5D5E0; color: var(--encre-3); }

/* --- Pied et questions ------------------------------------------------------------ */
.tf-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--encre-2);
}
.tf-questions { max-width: 760px; margin: 72px auto 0; }
.tf-questions h2 {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--police-titres);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.tf-questions details { border-bottom: 1px solid #ECECF2; }
.tf-questions summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
}
.tf-questions details p { margin: 0 0 18px; color: var(--encre-2); line-height: 1.6; }

.lp-lien-tarifs[aria-current="page"] { color: var(--encre); font-weight: 600; }

@media (max-width: 640px) {
  .tf { padding-top: 24px; }
  .tf-barre { justify-content: center; }
}
