@charset "utf-8";
/* Page Tarifs — ce qui lui est propre. Le commun est dans ../commun.css. Préfixe ta-. */

/* ---- Haut : « Nos tarifs » en grand, le nom de la salle en petit dessous (la barre du document est gardée, masquée) ---- */
.ta-barre { display: none; }
.haut-titre-fin { display: block; margin-top: 10px; font-size: .42em; letter-spacing: .02em; color: var(--violet-fonce); }

/* ---- Prix et bouton « S'inscrire », communs aux trois sections ---- */
.ta-prix { font-size: 16px; color: var(--gris-texte); }
.ta-prix b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 46px; line-height: 1; color: var(--violet); letter-spacing: .01em; }
.ta-seances { color: var(--gris-texte); font-weight: 600; }
.ta-inscrire {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--violet); background: transparent; color: var(--violet-fonce); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.ta-inscrire:hover { background: var(--violet); color: #FFFFFF; }
.ta-inscrire:focus-visible { outline: 3px solid var(--lilas); outline-offset: 3px; }

/* ---- 1. Le réglage « séances par semaine » ---- */
.ta-reglage { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 34px auto 0; }
.ta-reglage-titre { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-texte); }
.ta-reglage-choix { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: var(--creme); }
.ta-reglage-choix button {
  width: 54px; height: 54px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--encre); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 24px; line-height: 1;
  box-shadow: 0 2px 8px rgba(13,13,16,.08); transition: background .2s, color .2s, transform .2s;
}
.ta-reglage-choix button:hover { transform: translateY(-2px); }
.ta-reglage-choix button[aria-pressed="true"] { background: var(--violet); color: #FFFFFF; }
.ta-reglage-choix button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.ta-reglage-choix button span[aria-hidden] { font-size: 28px; }
.ta-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Invitation : un halo pulse sur le réglage tant que personne ne l'a touché */
.ta-reglage:not(.touche) .ta-reglage-choix { animation: ta-halo 2.2s ease-in-out infinite; }
@keyframes ta-halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(90,61,245,.0); } 50% { box-shadow: 0 0 0 8px rgba(90,61,245,.16); } }

/* ---- 1. Les quatre cartes avec engagement ---- */
.ta-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.ta-carte {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 30px 22px 28px; border-radius: 22px; background: var(--creme);
  transition: transform .3s, background .3s, color .3s, opacity .3s, box-shadow .3s;
}
.ta-carte .titre-h3 { margin-top: 14px; }
/* Durée d'engagement sur chaque carte (Virginie, 04/11, planche _design-preview/tarifs-engagement/, variante A) */
.ta-engagement { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--lilas); color: var(--violet-fonce);
  font: 700 12.5px/1.2 'Barlow', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
#tf-sans .ta-engagement { background: #FFFFFF; }
.ta-carte.actif .ta-engagement, #tf-sans .ta-carte.actif .ta-engagement { background: rgba(255,255,255,.18); color: #FFFFFF; }
.ta-carte .ta-prix { margin: 14px 0 22px; }
.ta-carte .ta-inscrire { margin-top: auto; }
/* La cadence : trois barres qui se remplissent (1, 2, 3 séances), le signe ∞ pour l'illimité */
.ta-cadence { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 40px; }
.ta-cadence i { display: block; width: 12px; border-radius: 4px; background: var(--lilas); transition: background .3s; }
.ta-cadence i:nth-child(1) { height: 18px; }
.ta-cadence i:nth-child(2) { height: 28px; }
.ta-cadence i:nth-child(3) { height: 40px; }
.ta-cadence i.plein { background: var(--violet); }
.ta-infini svg { width: 64px; height: 28px; fill: none; stroke: var(--violet); stroke-width: 4; stroke-linecap: round; }
/* Formule choisie : la carte passe en violet, les autres s'effacent un peu */
.ta-choix .ta-carte:not(.actif) { opacity: .8; }  /* .5 laissait le texte à 2,35:1 (relecture Codex, 27/10) ; .8 = 4,67:1 */
.ta-carte.actif { background: var(--violet); color: #FFFFFF; transform: translateY(-8px); box-shadow: 0 22px 44px rgba(42,26,140,.22); }
.ta-carte.actif .ta-seances, .ta-carte.actif .ta-prix, .ta-carte.actif .ta-prix b { color: #FFFFFF; }
.ta-carte.actif .ta-cadence i { background: rgba(255,255,255,.35); }
.ta-carte.actif .ta-cadence i.plein { background: #FFFFFF; }
.ta-carte.actif .ta-infini svg { stroke: #FFFFFF; }
.ta-carte.actif .ta-inscrire { background: #FFFFFF; border-color: #FFFFFF; color: var(--violet-fonce); }

/* ---- 2. Sans engagement, en lignes sur le fond nuit ---- */
.ta-lignes { max-width: 920px; margin: 40px auto 0; }
.ta-ligne {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1.1fr auto; gap: 20px; align-items: center;
  padding: 22px 24px; border-top: 1px solid rgba(245,244,241,.14); border-radius: 14px; transition: background .3s, opacity .3s;
}
.ta-ligne:last-child { border-bottom: 1px solid rgba(245,244,241,.14); }
.ta-ligne .titre-h3 { color: #FFFFFF; }
.ta-ligne .ta-seances { color: rgba(245,244,241,.78); }
.ta-ligne .ta-prix { color: rgba(245,244,241,.78); text-align: right; }
.ta-ligne .ta-prix b { color: var(--lilas); font-size: 38px; }
.ta-ligne .ta-inscrire { color: #FFFFFF; border-color: var(--lilas); }
.ta-ligne .ta-inscrire:hover { background: var(--violet); border-color: var(--violet); }
.ta-choix .ta-ligne:not(.actif) { opacity: .45; }
.ta-ligne.actif { background: rgba(90,61,245,.32); border-color: transparent; }

/* ---- 3. Carnets : une pile de tickets par carnet, plus haute quand il y a plus de séances ---- */
.ta-carnets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.ta-carnet {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 30px 22px 28px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(13,13,16,.06);
}
.ta-carnet .titre-h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ta-carnet .titre-h3 a:hover { color: var(--violet); }
.ta-carnet .titre-h3 { min-height: 2.2em; display: flex; align-items: center; justify-content: center; }  /* titres sur une ou deux lignes : prix alignés */
.ta-carnet .ta-prix { margin: 8px 0 22px; }
.ta-carnet .ta-inscrire { margin-top: auto; }
/* Hauteur de pile commune (la plus haute) : les titres restent alignés d'une carte à l'autre */
.ta-pile { position: relative; width: 132px; height: 128px; margin: 0 auto 10px; }
.ta-pile::before {  /* la tranche des tickets empilés */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: calc(var(--n) * 2.6px + 6px);
  border-radius: 0 0 10px 10px; background: repeating-linear-gradient(to bottom, #C4B9FF 0 1.6px, #FFFFFF 1.6px 2.6px);
}
.ta-pile::after {  /* le ticket du dessus, échancré sur les côtés, le nombre de séances dessus */
  content: attr(data-n); position: absolute; left: 0; right: 0; bottom: calc(var(--n) * 2.6px + 2px); height: 70px;
  display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #FFFFFF;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 34px;
  background: radial-gradient(circle at 0 50%, #FFFFFF 9px, transparent 10px), radial-gradient(circle at 100% 50%, #FFFFFF 9px, transparent 10px), var(--violet);
  transform-origin: 20% 100%; transition: transform .35s cubic-bezier(.3,1.4,.5,1);
}
.ta-carnet:hover .ta-pile::after { transform: rotate(-8deg) translateY(-4px); }

/* ---- Tablette et téléphone ---- */
@media (max-width: 1023.98px) {
  .ta-grille, .ta-carnets { grid-template-columns: repeat(2, 1fr); }  /* quatre cartes : deux par ligne (règle du site, 27/10) */
  .ta-ligne { grid-template-columns: 1fr auto; row-gap: 6px; padding: 20px 18px; }
  .ta-ligne .ta-prix { grid-column: 1; text-align: left; }
  .ta-ligne .ta-inscrire { grid-column: 2; grid-row: 1 / 4; }
}
@media (max-width: 599.98px) {
  .ta-grille, .ta-carnets { grid-template-columns: 1fr; }
  .ta-carte.actif { transform: none; }
  /* Téléphone : un nombre de séances choisi ne laisse que sa carte ; un nouveau clic sur ce nombre remontre les quatre (Virginie, 04/11) */
  .ta-choix .tf-panneau .ta-carte:not(.actif) { display: none; }
  .ta-ligne { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ta-ligne .ta-prix { text-align: center; }
  .ta-ligne .ta-inscrire { grid-column: auto; grid-row: auto; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-reglage:not(.touche) .ta-reglage-choix { animation: none; }
  .ta-carte, .ta-ligne, .ta-pile::after { transition: none; }
}

/* ---- 1. Les formules avec et sans engagement dans une seule section (Virginie, 27/10 : variante A de la planche) ---- */
/* L'interrupteur : les deux H2 du document, côte à côte, en tête de section ; le réglage dessous ---- */
.tf-bascule { display: grid; grid-template-columns: 1fr auto auto 1fr; }
.tf-bascule > .tf-onglet:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.tf-bascule > .tf-onglet:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.tf-bascule > .tf-reglage { grid-column: 1 / -1; grid-row: 2; }
.tf-bascule > .tf-panneau { grid-column: 1 / -1; grid-row: 3; }
.tf-bascule > .tf-cta { grid-column: 1 / -1; grid-row: 4; }
.tf-onglet { margin: 0; }
.tf-onglet button {
  height: 64px; padding: 0 30px; border: 0; cursor: pointer; background: var(--creme); color: var(--gris-texte);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .01em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.tf-onglet:nth-of-type(1) button { border-radius: 999px 0 0 999px; padding-left: 36px; }
.tf-onglet:nth-of-type(2) button { border-radius: 0 999px 999px 0; padding-right: 36px; }
.tf-onglet button:hover { color: var(--encre); }
.tf-onglet button[aria-expanded="true"] { background: var(--violet); color: #FFFFFF; box-shadow: 0 12px 28px rgba(42,26,140,.25); }
.tf-onglet button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tf-panneau:not([hidden]) .ta-carte { animation: tf-arrive .45s ease both; }
.tf-panneau:not([hidden]) .ta-carte:nth-child(2) { animation-delay: .05s; }
.tf-panneau:not([hidden]) .ta-carte:nth-child(3) { animation-delay: .1s; }
.tf-panneau:not([hidden]) .ta-carte:nth-child(4) { animation-delay: .15s; }
@keyframes tf-arrive { from { opacity: 0; transform: translateY(10px); } }
.tf-panneau .ta-carte.actif { animation: none; }
/* Sans engagement : d'autres couleurs, pour qu'on voie tout de suite que les cartes ont changé (Virginie, 27/10) */
.tf-onglet:nth-of-type(2) button[aria-expanded="true"] { background: var(--violet-fonce); }
#tf-sans .ta-carte { background: var(--lilas); }
#tf-sans .ta-carte .titre-h3, #tf-sans .ta-carte .ta-prix b { color: var(--violet-fonce); }
#tf-sans .ta-carte .ta-seances, #tf-sans .ta-carte .ta-prix { color: var(--violet-fonce); }
#tf-sans .ta-cadence i { background: rgba(255,255,255,.7); }
#tf-sans .ta-cadence i.plein { background: var(--violet-fonce); }
#tf-sans .ta-infini svg { stroke: var(--violet-fonce); }
#tf-sans .ta-inscrire { border-color: var(--violet-fonce); background: #FFFFFF; }
#tf-sans .ta-inscrire:hover { background: var(--violet-fonce); color: #FFFFFF; }
#tf-sans .ta-carte.actif { background: var(--violet-fonce); box-shadow: 0 22px 44px rgba(42,26,140,.3); }
#tf-sans .ta-carte.actif .titre-h3, #tf-sans .ta-carte.actif .ta-seances, #tf-sans .ta-carte.actif .ta-prix,
#tf-sans .ta-carte.actif .ta-prix b { color: #FFFFFF; }
#tf-sans .ta-carte.actif .ta-cadence i { background: rgba(255,255,255,.35); }
#tf-sans .ta-carte.actif .ta-cadence i.plein { background: #FFFFFF; }
#tf-sans .ta-carte.actif .ta-infini svg { stroke: #FFFFFF; }
#tf-sans .ta-carte.actif .ta-inscrire { border-color: #FFFFFF; color: var(--violet-fonce); }
#tf-sans .ta-carte.actif .ta-inscrire:hover { background: var(--lilas); border-color: var(--lilas); color: var(--violet-fonce); }  /* sinon texte et fond violet foncé au survol (Codex, 27/10) */

@media (max-width: 699.98px) {
  /* Téléphone : les deux moitiés de l'interrupteur restent côte à côte, le texte passe sur deux lignes */
  .tf-bascule { grid-template-columns: 1fr 1fr; }
  .tf-bascule > .tf-onglet:nth-of-type(1) { grid-column: 1; }
  .tf-bascule > .tf-onglet:nth-of-type(2) { grid-column: 2; }
  .tf-onglet button { width: 100%; height: 100%; min-height: 64px; padding: 10px 14px; font-size: 18px; line-height: 1.1; }
  .tf-onglet:nth-of-type(1) button { padding-left: 18px; border-radius: 22px 0 0 22px; }
  .tf-onglet:nth-of-type(2) button { padding-right: 18px; border-radius: 0 22px 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-panneau:not([hidden]) .ta-carte { animation: none; }
}
