/* ═══════════════════════════════════════════════════════════════════════
   LA PAGE TARIFS AU TÉLÉPHONE (04/11/2026)

   Demande de Cassandre : la page était « trop chargée, sans air », avec un
   grand vide en haut. Refaite sur la structure de la page tarifs mobile
   d'artlist.io : un titre court, une bascule mensuel/annuel discrète, puis
   une carte par offre où le bouton vient AVANT le détail, et le détail se
   déplie au lieu de tout montrer. Les cases barrées (ce qu'une offre n'a pas)
   quittent les cartes pour un tableau comparatif, sous les offres.

   Servie à la place de tarifs(-en).html aux navigateurs « Mobile » (cf.
   next.config.ts). Elle s'appuie sur landing.css (boutons, FAQ, pied de
   page) et nav.css (barre et menu).

   Les points d'accroche de l'ancienne page sont gardés à l'identique, parce
   que d'autres scripts les lisent : #tarifs et sa classe `vue-annuelle`,
   #pricing-toggle, .pricing-card > .pricing-price > .price-value[data-monthly]
   et [data-checkout-plan] (promo-campagne.js, et la caisse dans tarifs.js).
   ═══════════════════════════════════════════════════════════════════════ */

.tx-page { padding-top: calc(64px + env(safe-area-inset-top)); }

/* ─── EN-TÊTE ───────────────────────────────────────────────────────── */
.tx-tete { padding: 34px var(--gouttiere) 0; text-align: center; }
.tx-tete h1 { font-size: 40px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; }
.tx-modeles { margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tx-modeles-piste { display: flex; width: max-content; gap: 30px; animation: defile 30s linear infinite; }
.tx-modeles-piste span { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; color: rgba(255,255,255,0.82); white-space: nowrap; }
.tx-modeles-piste .mk { font-size: 17px; }

/* ─── LA BASCULE ────────────────────────────────────────────────────────
   Petite, comme chez Artlist : deux libellés dans une pilule, l'actif en
   blanc. Sous elle, le bonus de l'annuel, qui disparaît en mensuel. */
.tx-bascule { display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: #17181d; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); }
.tx-bascule button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--doux); transition: background .2s, color .2s; }
.tx-bascule button.actif { background: #fff; color: #0c0d10; box-shadow: 0 4px 18px rgba(255,255,255,0.12); }
.tx-bascule .remise { padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(100deg, var(--bleu), var(--violet)); white-space: nowrap; }
.tx-bascule button:not(.actif) .remise { opacity: 0.75; }
#pricing-toggle { display: none; }

.tx-bonus-annuel {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, rgba(59,116,245,0.22), rgba(139,92,246,0.22));
  box-shadow: inset 0 0 0 1px rgba(143,176,255,0.35), 0 0 26px rgba(91,140,255,0.22);
  transition: opacity .25s ease, transform .25s ease;
}
.tx-bonus-annuel svg { width: 16px; height: 16px; color: var(--bleu-clair); flex: none; }
#tarifs:not(.vue-annuelle) .seulement-annuel { display: none !important; }
#tarifs.vue-annuelle .seulement-mensuel { display: none !important; }

/* ─── LES CARTES ────────────────────────────────────────────────────── */
.tx-cartes { display: grid; gap: 18px; padding: 30px var(--gouttiere) 0; }
.pricing-card {
  position: relative; padding: 30px 22px 22px; border-radius: 30px;
  background: linear-gradient(180deg, #16171c 0%, #121317 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
.pricing-card.vedette { box-shadow: inset 0 0 0 1px rgba(143,176,255,0.45), 0 0 40px rgba(59,116,245,0.16); }
.tx-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-name { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.tx-pastille { padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--bleu-clair); background: rgba(255,255,255,0.06); white-space: nowrap; }

.tx-barre { margin-top: 22px; font-size: 20px; color: var(--pale); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tx-barre:empty { display: none; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.tx-barre:empty + .pricing-price { margin-top: 22px; }
.price-value { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.price-currency { font-size: 26px; font-weight: 500; color: #fff; }
.price-period { margin-left: 4px; font-size: 20px; color: rgba(255,255,255,0.85); }
.tx-facture { margin-top: 10px; font-size: 15px; color: var(--doux); }

.pricing-card .bouton { width: 100%; margin-top: 26px; height: 58px; font-size: 18px; }
.pricing-card .bouton.btn-loading { opacity: 0.75; pointer-events: none; }

/* Le pavé des crédits, légèrement grisé. */
.tx-credits { margin-top: 16px; padding: 20px 18px 6px; border-radius: 20px; background: rgba(255,255,255,0.045); }
.tx-credits-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.tx-credits-tete svg { width: 22px; height: 22px; align-self: center; color: var(--bleu); filter: drop-shadow(0 0 8px rgba(59,116,245,0.7)); flex: none; }
.tx-credits-tete b { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.tx-credits-tete span { font-size: 16px; color: var(--doux); }
.tx-equiv { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: rgba(255,255,255,0.82); }
.tx-equiv .tx-plus { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--bleu-clair); }
.tx-lignes { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.tx-lignes li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.38; }
.tx-lignes li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #fff; }
.tx-lignes b { font-weight: 700; }

/* « Voir tout ce qui est inclus » : un <details>, donc sans script. */
.tx-detail { margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.10); }
.tx-detail summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.tx-detail summary::-webkit-details-marker { display: none; }
.tx-detail summary svg { width: 20px; height: 20px; transition: transform .25s ease; }
.tx-detail[open] summary svg { transform: rotate(180deg); }
.tx-inclus { list-style: none; display: grid; gap: 13px; padding: 2px 0 18px; }
.tx-inclus li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,0.9); }
.tx-inclus li > svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.tx-inclus .mk { font-size: 17px; margin-top: 1px; color: #fff; }
.tx-inclus small { display: block; margin-top: 2px; font-size: 13px; color: var(--doux); }
.tx-inclus .titre { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pale); }

.tx-rassure { margin-top: 26px; padding: 0 var(--gouttiere); text-align: center; font-size: 14px; line-height: 1.5; color: var(--doux); }

/* ─── LE TABLEAU COMPARATIF ─────────────────────────────────────────── */
.tx-comparer { padding-top: 100px; }
.tx-comparer h2 { padding: 0 var(--gouttiere); font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: -0.025em; }
.tx-comparer > p { margin-top: 14px; padding: 0 var(--gouttiere); font-size: 16px; color: var(--doux); }
.tx-tableau { width: calc(100% - var(--gouttiere) * 2); margin: 30px var(--gouttiere) 0; border-collapse: collapse; font-size: 14px; }
.tx-tableau thead th { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 2; padding: 14px 4px; background: var(--bg); font-size: 14px; font-weight: 700; color: #fff; text-align: center; }
.tx-tableau thead th:first-child { text-align: left; }
.tx-tableau thead th.vedette { color: var(--bleu-clair); }
.tx-tableau th[scope="row"] { padding: 13px 8px 13px 0; font-weight: 500; text-align: left; color: rgba(255,255,255,0.88); line-height: 1.3; }
.tx-tableau td { width: 64px; padding: 13px 2px; text-align: center; color: #fff; font-weight: 600; }
.tx-tableau tbody tr { border-top: 1px solid rgba(255,255,255,0.08); }
.tx-tableau tr.groupe th { padding: 26px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pale); }
.tx-tableau tr.groupe { border-top: 0; }
.tx-tableau .oui svg { width: 18px; height: 18px; color: #fff; }
.tx-tableau .non { color: var(--pale); font-weight: 400; }
.tx-tableau td.vedette { background: rgba(59,116,245,0.07); }

@media (max-width: 360px) {
  .tx-tete h1 { font-size: 34px; }
  .price-value { font-size: 48px; }
  .tx-bascule button { padding: 0 12px; font-size: 14px; }
  .tx-tableau td { width: 52px; }
}
