/*
 * Page « Tarifs » (/tarifs) — charte des prototypes du 5 novembre : Work Sans
 * pour le texte, Source Serif 4 pour les titres, vert sapin, cartes blanches
 * sur fond vert très pâle. Aucun texte ici (règle de traduction).
 */
@font-face { font-family: 'Work Sans'; src: url('../fonts/paralib/work-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/paralib/source-serif-4-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

.tf {
    --tf-ink: #1F2733; --tf-ink2: #3C4552; --tf-mute: #4A5361; --tf-line: #E4E8EE; --tf-soft: #EEF1F4;
    --tf-green: #3F6E2C; --tf-green2: #2E5220; --tf-lime: #6D9F20; --tf-tint: #EEF4E3; --tf-tint2: #F6FAEF; --tf-sage: #D5DCCB;
    --tf-surface: #FFFFFF; --tf-ease: cubic-bezier(.22, .8, .24, 1);
    font-family: 'Work Sans', Helvetica, Arial, sans-serif; color: var(--tf-ink);
    background: linear-gradient(180deg, #F1F5E8 0, #F7F8FA 520px);
    padding: 56px 16px 80px; display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.tf * { box-sizing: border-box; }
.tf a { color: var(--tf-green); }
[x-cloak] { display: none !important; }

/* En-tête */
.tf-hero { max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: tf-in .5s var(--tf-ease) both; }
.tf-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-green); }
.tf-h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; color: var(--tf-ink); }
.tf-h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; color: var(--tf-ink); }
.tf-h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0; color: var(--tf-ink); text-wrap: balance; }
.tf-lead { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--tf-ink2); max-width: 64ch; text-wrap: pretty; }
.tf-trial { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--tf-green); background: var(--tf-surface); border: 1px solid #B9D08F; border-radius: 999px; padding: 7px 16px; }
.tf-small { font-size: 13.5px; color: var(--tf-mute); }

.tf-period { display: inline-grid; grid-auto-flow: column; background: var(--tf-surface); border: 1px solid var(--tf-sage); border-radius: 12px; padding: 4px; margin-top: 8px; box-shadow: 0 4px 14px rgba(63, 110, 44, .06); }
.tf-period button { border: none; background: transparent; border-radius: 9px; padding: 9px 18px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--tf-ink); cursor: pointer; transition: background-color .22s ease, color .22s ease; }
.tf-period button.is-on { background: var(--tf-green); color: #fff; }

/* Cartes */
.tf-plans { width: 100%; max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tf-plan {
    position: relative; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 20px; padding: 28px 26px 24px;
    display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(36, 55, 26, .06);
    transition: transform .25s var(--tf-ease), box-shadow .25s ease, border-color .2s ease;
    animation: tf-in .55s var(--tf-ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.tf-plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36, 55, 26, .12); }
.tf-plan.is-reco { border: 2px solid var(--tf-green); padding: 27px 25px 23px; box-shadow: 0 18px 44px rgba(63, 110, 44, .18); }
.tf-plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--tf-green); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.tf-plan-name { font-family: 'Work Sans', Helvetica, sans-serif; font-weight: 600; font-size: 20px; margin: 0; color: var(--tf-ink); }
.tf-plan-tagline { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--tf-mute); min-height: 2.9em; }
.tf-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.tf-price b { font-size: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-price span { font-size: 14px; color: var(--tf-mute); }
.tf-price-sub { margin: -4px 0 0; font-size: 13.5px; color: var(--tf-mute); min-height: 1.5em; }
.tf-feats { list-style: none; margin: 8px 0 6px; padding: 14px 0 0; border-top: 1px solid var(--tf-soft); display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.45; flex: 1; }
.tf-feats li { position: relative; padding-left: 24px; color: var(--tf-ink2); }
.tf-feats li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 13px; height: 7px; border-left: 2px solid var(--tf-lime); border-bottom: 2px solid var(--tf-lime); transform: rotate(-45deg); }
.tf-feats li.tf-feats-more { padding-left: 0; font-weight: 600; color: var(--tf-ink); }
.tf-feats li.tf-feats-more::before { display: none; }

.tf-btn, .tf-btn-out {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; padding: 13px 20px;
    font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .2s ease;
}
.tf a.tf-btn, .tf .tf-btn { background: var(--tf-green); color: #fff; border: none; }
.tf a.tf-btn:hover { background: var(--tf-green2); color: #fff; box-shadow: 0 8px 18px rgba(63, 110, 44, .25); text-decoration: none; }
.tf a.tf-btn-out { background: var(--tf-surface); color: var(--tf-ink); border: 1px solid #C9D0D8; }
.tf a.tf-btn-out:hover { border-color: var(--tf-ink); color: var(--tf-ink); text-decoration: none; }
.tf-btn:active, .tf-btn-out:active { transform: translateY(1px); }
.tf-plan .tf-btn, .tf-plan .tf-btn-out { width: 100%; }

/* Repères */
.tf-notes { width: 100%; max-width: 1120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.tf-note { display: flex; gap: 14px; align-items: center; background: var(--tf-tint); border: 1px solid var(--tf-sage); border-radius: 16px; padding: 16px 18px; animation: tf-in .55s var(--tf-ease) .3s both; }
.tf-note img { flex: none; }
.tf-note p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--tf-ink2); }
.tf-note strong { color: var(--tf-ink); font-weight: 600; }

/* Cabinet */
.tf-cabinet { width: 100%; max-width: 1120px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 20px; padding: 22px 26px; }
.tf-cabinet p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--tf-mute); }
.tf-cabinet-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tf-cabinet-price b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tf-cabinet-price span { font-size: 14px; color: var(--tf-mute); margin-right: 10px; }

/* Comparatif */
.tf-compare { width: 100%; max-width: 1120px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tf-compare-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--tf-surface); border: 1px solid #C9D0D8; border-radius: 11px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 15px; color: var(--tf-ink); cursor: pointer; transition: border-color .18s ease; }
.tf-compare-toggle:hover { border-color: var(--tf-ink); }
.tf-chev { display: inline-block; transition: transform .3s var(--tf-ease); line-height: 1; margin-top: -4px; }
.tf-chev.is-open { transform: rotate(180deg); margin-top: 4px; }
.tf-table-wrap { width: 100%; overflow-x: auto; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 18px; }
.tf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.tf-table th, .tf-table td { padding: 12px 16px; border-bottom: 1px solid var(--tf-soft); text-align: center; }
.tf-table thead th { font-size: 15px; font-weight: 600; padding-top: 18px; position: sticky; top: 0; background: var(--tf-surface); }
.tf-table th[scope="row"] { text-align: left; font-weight: 400; color: var(--tf-ink2); }
.tf-table tr:last-child td, .tf-table tr:last-child th { border-bottom: none; }
.tf-table-group th { text-align: left !important; font-size: 12px; font-weight: 600 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-green) !important; background: var(--tf-tint2); }
.tf-table .is-reco { background: rgba(238, 244, 227, .55); }
.tf-yes { color: var(--tf-green); font-weight: 700; }
.tf-no { color: #A7B0BC; }
.tf-table tbody tr:not(.tf-table-group):hover th, .tf-table tbody tr:not(.tf-table-group):hover td { background: #FAFBF7; }

/* FAQ */
.tf-faq { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.tf-faq .tf-h2 { text-align: center; }
.tf-faq-list { background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 18px; overflow: hidden; }
.tf-q + .tf-q { border-top: 1px solid var(--tf-soft); }
.tf-q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: none; padding: 18px 22px; font: inherit; font-size: 16px; font-weight: 600; color: var(--tf-ink); cursor: pointer; transition: background-color .18s ease; }
.tf-q button:hover { background: var(--tf-tint2); }
.tf-q p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--tf-ink2); max-width: 68ch; }
.tf-plus { position: relative; width: 14px; height: 14px; flex: none; }
.tf-plus::before, .tf-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--tf-green); border-radius: 2px; transition: transform .3s var(--tf-ease); }
.tf-plus::after { transform: rotate(90deg); }
.tf-q.is-open .tf-plus::after { transform: rotate(0deg); }

/* Appel final */
.tf-final { width: 100%; max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--tf-surface); border: 1px solid var(--tf-sage); border-radius: 22px; padding: 40px 28px; box-shadow: 0 14px 40px rgba(36, 55, 26, .08); }
.tf-final p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--tf-ink2); max-width: 58ch; }

.tf :focus-visible { outline: 3px solid rgba(109, 159, 32, .5); outline-offset: 2px; }
@keyframes tf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
    .tf-plans { grid-template-columns: 1fr; max-width: 520px; gap: 26px; }
    .tf-plan-tagline { min-height: 0; }
    .tf-cabinet { grid-template-columns: 56px minmax(0, 1fr); }
    .tf-cabinet img { width: 56px; height: 56px; }
    .tf-cabinet-price { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 575.98px) {
    .tf { padding: 36px 16px 56px; gap: 28px; }
    .tf-h1 { font-size: 32px; }
    .tf-h2 { font-size: 27px; }
    .tf-lead { font-size: 16px; }
    .tf-period button { padding: 9px 12px; font-size: 14px; }
    .tf-q button { padding: 16px 18px; font-size: 15.5px; }
    .tf-q p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .tf *, .tf *::before, .tf *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ── /espace-praticien : recherche de fiche et résumé des tarifs ───────── */
.epx-find, .epx-tarifs { font-family: 'Work Sans', Helvetica, Arial, sans-serif; color: #1F2733; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.epx-find { margin-top: 44px; position: relative; }
.epx-find-in { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; background: #fff; border: 1px solid #D9E4C4; border-radius: 22px; padding: 22px 24px; box-shadow: 0 22px 50px -30px rgba(31, 39, 51, .45); }
.epx-h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; color: #1F2733; }
.epx-find-text p, .epx-tarifs-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #3C4552; }
.epx-search { display: flex; gap: 6px; background: #fff; border: 1px solid #C9D0D8; border-radius: 14px; padding: 6px; transition: border-color .18s ease, box-shadow .18s ease; }
.epx-search:focus-within { border-color: #6D9F20; box-shadow: 0 0 0 3px rgba(109, 159, 32, .18); }
.epx-search input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 15.5px; padding: 10px 12px; background: transparent; color: #1F2733; -webkit-appearance: none; appearance: none; }
.epx-search button { border: none; background: #3F6E2C; color: #fff; border-radius: 10px; padding: 0 18px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .18s ease; }
.epx-search button:hover { background: #2E5220; }
.epx-tarifs { padding-top: 66px; display: flex; flex-direction: column; gap: 22px; }
.epx-tarifs-head { display: flex; flex-direction: column; gap: 6px; max-width: 60ch; }
.epx-kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #3F6E2C; }
.epx-tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.epx-tarif { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #E7EAEE; border-radius: 18px; padding: 20px; color: #1F2733; text-decoration: none; transition: transform .22s cubic-bezier(.22, .8, .24, 1), box-shadow .22s ease, border-color .2s ease; }
.epx-tarif:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31, 39, 51, .35); border-color: #C2CFB0; color: #1F2733; text-decoration: none; }
.epx-tarif.is-reco { border: 2px solid #3F6E2C; padding: 19px; }
.epx-tarif-name { font-weight: 600; font-size: 17px; }
.epx-tarif-price { font-size: 13.5px; color: #4A5361; }
.epx-tarif-price b { font-size: 26px; font-weight: 700; color: #1F2733; font-variant-numeric: tabular-nums; margin-right: 4px; }
.epx-tarif-line { font-size: 14px; line-height: 1.5; color: #4A5361; }
.epx-more { align-self: flex-start; font-weight: 600; font-size: 15px; color: #3F6E2C; }
.epx-more:hover { color: #2E5220; }
@media (max-width: 991.98px) {
    .epx-find { margin-top: 0; padding: 22px 20px 0; }
    .epx-find-in { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; gap: 14px; }
    .epx-find-in img { width: 48px; height: 48px; }
    .epx-search { grid-column: 1 / -1; }
    .epx-h2 { font-size: 24px; }
    .epx-tarifs { padding: 30px 20px 0; }
}

/* Inclus partout, étapes, garanties */
.tf-sec-tete { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 22px; }
.tf-inclus, .tf-etapes { width: 100%; max-width: 1120px; margin-top: 18px; }
.tf-inclus-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tf-inclus-item { background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 18px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px;
    transition: transform .25s var(--tf-ease), box-shadow .25s ease, border-color .2s ease; animation: tf-in .5s var(--tf-ease) calc(var(--i, 0) * 50ms) both; }
.tf-inclus-item:hover { transform: translateY(-2px); border-color: var(--tf-sage); box-shadow: 0 12px 28px rgba(36, 55, 26, .08); }
.tf-inclus-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tf-tint); color: var(--tf-green); }
.tf-inclus-ico svg { width: 22px; height: 22px; }
.tf-inclus-item b { font-size: 16px; font-weight: 600; color: var(--tf-ink); }
.tf-inclus-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--tf-mute); }

.tf-etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.tf-etapes-liste li { position: relative; background: var(--tf-tint2); border: 1px solid var(--tf-sage); border-radius: 18px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.tf-etape-n { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--tf-green); color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tf-etapes-liste b { font-size: 16.5px; font-weight: 600; color: var(--tf-ink); }
.tf-etapes-liste p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--tf-ink2); }

.tf-garanties { width: 100%; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tf-garantie { display: flex; gap: 12px; align-items: flex-start; background: var(--tf-surface); border: 1px solid var(--tf-line); border-radius: 14px; padding: 14px 16px; }
.tf-garantie-ico { flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--tf-tint); color: var(--tf-green); font-weight: 700; font-size: 13px; }
.tf-garantie b { display: block; font-size: 14.5px; font-weight: 600; color: var(--tf-ink); }
.tf-garantie em { display: block; font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--tf-mute); margin-top: 2px; }

@media (max-width: 991.98px) {
    .tf-inclus-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-garanties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .tf-inclus-grille, .tf-etapes-liste, .tf-garanties { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .tf-inclus-item { animation: none; transition: none; }
}
