/* Page Tarifs (chargée seulement sur tarifs.html) */
.tf-hero { position: relative; overflow: hidden; }
.tf-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.tf-head h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin: .3rem 0 .8rem; }

.tf-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 2rem; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.tf-switch button { min-height: 44px; padding: .4rem 1.2rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.tf-switch button[aria-pressed="true"] { background: var(--gold); color: #0B0F0D; }
.tf-save { font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(0,229,200,.16); color: #7FF3E2; }
.tf-switch button[aria-pressed="true"] .tf-save { background: rgba(0,0,0,.14); color: #0B0F0D; }

.tf-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; padding-top: 14px; }
.tf-plans[data-period="an"] .tf-m, .tf-plans[data-period="mois"] .tf-a { display: none; }
.tf-plan { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem 1.4rem 1.6rem; border-radius: 20px; background: #07110E; border: 1px solid rgba(255,255,255,.09); }
.tf-plan h2 { margin: 0; font-size: 1.5rem; }
.tf-star { border-color: rgba(255,207,63,.55); background: linear-gradient(180deg, rgba(255,207,63,.09), #07110E 40%); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.tf-for { margin: 0; color: var(--muted); min-height: 2.8em; }
.tf-price { margin: .2rem 0; display: flex; flex-direction: column; gap: .1rem; }
.tf-price b { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: #fff; }
.tf-price span { color: var(--muted); font-size: .9rem; }
.tf-plan .btn { width: 100%; justify-content: center; }
.tf-list { list-style: none; margin: .4rem 0 0; padding: .9rem 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: .55rem; font-size: .93rem; }
.tf-list li { position: relative; padding-left: 1.6rem; }
.tf-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1rem; height: 1rem; border-radius: 50%; background: rgba(0,229,200,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FF3E2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.tf-list li:has(> b:only-child) { padding-left: 0; }
.tf-list li:has(> b:only-child)::before { display: none; }
.tf-pay { margin-top: 1.4rem; }

.tf-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.09); }
.tf-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tf-table th, .tf-table td { padding: .75rem .9rem; border-bottom: 1px solid rgba(255,255,255,.07); text-align: center; vertical-align: middle; }
.tf-table th[scope="row"] { text-align: left; font-weight: 500; color: #E6EEEB; }
.tf-table thead th { position: sticky; top: 0; background: #0A1512; font-family: var(--f-display); font-size: 1rem; color: #fff; }
.tf-table thead th:first-child { text-align: left; color: var(--muted); font-family: inherit; font-weight: 500; }
.tf-table .tf-col-star { color: var(--gold); }
.tf-table .tf-g th { text-align: left; padding-top: 1.1rem; background: rgba(255,255,255,.025); color: var(--gold); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.tf-table td.y::before, .tf-table td.n::before { content: ""; display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: middle; background: center / contain no-repeat; }
.tf-table td.y::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FF3E2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tf-table td.n::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596662' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.tf-table tfoot th, .tf-table tfoot td { border-bottom: 0; font-weight: 600; color: #fff; }
.tf-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tf-notes p { margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); color: var(--muted); }
.tf-notes b { color: #fff; }
.tf-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.8rem 0 1rem; }

@media (max-width: 900px) {
  .tf-plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; row-gap: 1.8rem; }
  .tf-for { min-height: 0; }
  .tf-notes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tf-table { font-size: .82rem; }
  .tf-table th, .tf-table td { padding: .6rem .45rem; }
  .tf-table tfoot td { font-size: .74rem; font-weight: 500; }
}

/* Mots allemands longs (Betriebskostenabrechnung…) : coupure possible dans le tableau, sans débordement à 375 px */
html[lang="de"] .tf-table th[scope="row"] { overflow-wrap: anywhere; hyphens: auto; }

/* Finition : bordure lumineuse qui fait le tour de la carte Premium (inspirée de « Border Beam » de Magic UI).
   Seul l'angle du dégradé change ; immobile si l'appareil ou l'option « Animations réduites » demandent moins d'animations. */
@property --tf-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tf-star { position: relative; isolation: isolate; }
.tf-star::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--tf-a), transparent 0 70%, rgba(255,207,63,.0) 72%, #FFCF3F 82%, #FFF1B8 85%, rgba(255,207,63,0) 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: tf-beam 6s linear infinite; }
@keyframes tf-beam { to { --tf-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .tf-star::after { animation: none; --tf-a: 200deg; } }
html.calme .tf-star::after { animation: none; --tf-a: 200deg; }
