/* ==========================================================================
   E-NETT — version moderne : page Tarifs (/tarifs/)
   Formules ({{@ formulas }}), options ({{@ optionsTable }}), calcul en une ligne, trois exemples chiffrés par le
   moteur ({{@ estimate … }}), durée et facturation, bon à savoir. Couleurs relatives au thème de la section
   (--fg, --bg, --muted, --line, --panel) : chaque bloc marche sur craie et sur marine.
   ========================================================================== */

/* ---------- Lien sous un bloc ---------- */
.tx-more { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- En-tête de colonne (.cols) ---------- */
.tx-head .h2 { max-width: 14em; }
.tx-head__text { margin-top: 18px; max-width: 42ch; color: var(--muted); }
@media (min-width: 900px) { html.motion .tx-head { position: sticky; top: calc(var(--header-h) + 30px); } }

/* ---------- Le calcul en une ligne : 25 € × 6 h × 4,33 = 649,50 € ---------- */
.tx-eq {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px clamp(20px, 3vw, 52px);
  padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line);
}
.tx-eq__t { display: grid; grid-template-columns: auto auto; grid-template-areas: "op v" ". k"; column-gap: clamp(14px, 1.6vw, 26px); align-items: baseline; }
.tx-eq__t:first-child { grid-template-columns: auto; grid-template-areas: "v" "k"; }
.tx-eq__op { grid-area: op; font-family: var(--f-mono); font-size: clamp(1.25rem, .95rem + .9vw, 1.875rem); font-weight: 300; line-height: 1; color: var(--muted); }
.tx-eq__v {
  grid-area: v; font-family: var(--f-mono); font-size: var(--t-figure); line-height: 1.05; font-weight: 300;
  letter-spacing: -.05em; word-spacing: -.32em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tx-eq__k { grid-area: k; margin-top: 10px; color: var(--muted); }
.tx-eq__t--total .tx-eq__v { font-weight: 500; }
.tx-eq__t--total .tx-eq__k { color: var(--fg); }
.tx-eq__t--total .tx-eq__k::before { content: ""; display: inline-block; vertical-align: middle; width: 18px; height: 3px; margin: -2px 10px 0 0; background: var(--vert); }
@media (min-width: 1100px) { .tx-eq__t--total { margin-left: auto; } }
@media (max-width: 599px) {
  /* Téléphone : le calcul se lit comme une addition posée */
  .tx-eq { display: grid; gap: 12px; }
  .tx-eq__t, .tx-eq__t:first-child { grid-template-columns: 1.3em auto minmax(0, 1fr); grid-template-areas: "op v k"; column-gap: 10px; }
  .tx-eq__v { font-size: 1.75rem; }
  .tx-eq__k { margin: 0; text-align: right; }
  .tx-eq__t--total { padding-top: 12px; border-top: 1px solid var(--fg); }
  .tx-eq__t--total .tx-eq__k::before { display: none; }
}

/* ---------- Trois exemples chiffrés ---------- */
.tx-sub { margin: clamp(44px, 6vw, 80px) 0 clamp(20px, 2.4vw, 32px); }
.tx-ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.tx-ex__item {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(20px, 2.2vw, 32px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .35s, background-color .35s;
}
.tx-ex__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.tx-ex__head .tag { color: var(--fg); }
.tx-ex__title { margin-top: 18px; font-size: var(--t-h3); line-height: 1.15; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; text-wrap: balance; }
.tx-ex__formula { margin-top: 10px; color: var(--muted); }
.tx-ex__price {
  display: flex; align-items: baseline; gap: .12em; margin-top: 22px;
  font-family: var(--f-mono); font-size: clamp(2.25rem, 1.7rem + 1.5vw, 3.25rem); line-height: 1.05; font-weight: 300;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tx-ex__price small { font-size: .5em; letter-spacing: 0; }
.tx-ex__unit { margin-top: 6px; color: var(--muted); }
.tx-ex__item .estimate-result__lines { margin: 20px 0 24px; font-size: 14.5px; }
.tx-ex__item .estimate-result__lines dd { white-space: normal; }
.tx-ex__cta { margin-top: auto; align-self: flex-start; }
.tx-ex__cta::before { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) { .tx-ex__item:hover { box-shadow: inset 0 0 0 1px var(--fg); } }
.tx-ex__item:focus-within { box-shadow: inset 0 0 0 1px var(--fg); }
@media (max-width: 1099px) { .tx-ex { grid-template-columns: 1fr 1fr; } .tx-ex__item:last-child { grid-column: 1 / -1; } }
@media (max-width: 699px) { .tx-ex { grid-template-columns: 1fr; } }

.tx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(24px, 3vw, 36px); }
.tx-foot__note { margin-top: 0; max-width: 72ch; }
@media (max-width: 599px) { .tx-foot .btn { width: 100%; justify-content: center; } }

/* ---------- Durée et facturation ---------- */
.tx-terms { border-top-color: var(--fg); }
.tx-terms dd { font-size: 16.5px; }

/* ---------- Bon à savoir ---------- */
.tx-figures { margin-top: clamp(32px, 4vw, 52px); }
.tx-know { border-top: 1px solid var(--fg); }
.tx-know > li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: clamp(12px, 2vw, 28px);
  padding: 22px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; /* + scroll-padding de <html> (en-tête + 16 px) */
}
.tx-know > li > * { grid-column: 2; }
.tx-know__n { grid-column: 1 !important; grid-row: 1; padding-top: .55em; color: var(--muted); }
.tx-know__title { grid-row: 1; font-size: var(--t-h3); line-height: 1.15; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; }
.tx-know p { margin-top: 10px; max-width: 62ch; color: var(--muted); }
.tx-know .link-arrow { justify-self: start; margin-top: 14px; }
@media (max-width: 599px) { .tx-know > li { grid-template-columns: 30px minmax(0, 1fr); } }
