/* Aperçus des cartes de la visite guidée, réunis depuis resources/landingPages/flowire/_cartes/ */

/* carte : abonnements */
/* Carnets et abonnements : la fiche d'un abonnement (Léa B., 2 cours par semaine, SEPA)
   et sa frise d'échéances — deux payées, une pause demandée depuis l'application, une
   remise de 20 % sur deux mois, un changement de tarif en décembre — puis les actions de
   la fiche. Tailles en cqh : la miniature est en 16:10. */
.tc-abonnements {
  position: absolute; inset: 0;
  container-type: size;
  background: var(--surface-2);
}
.tc-abonnements__in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 3cqh;
  padding: 4.6cqh 4.5cqw;
  color: var(--encre-2);
}

/* en-tête : élève, formule, état, montant courant */
.tc-abonnements__tete { display: flex; align-items: center; gap: 2cqw; }
.carte-module__ecran .tc-abonnements__av { width: 9.6cqh; height: 9.6cqh; font-size: 3.4cqh; background: var(--accent); }
.tc-abonnements__qui { display: flex; flex-direction: column; gap: 0.4cqh; min-width: 0; }
.tc-abonnements__qui b { font-size: 4.8cqh; line-height: 1.05; letter-spacing: -0.01em; }
.tc-abonnements__qui span { font-size: 3.3cqh; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-abonnements__etat {
  display: inline-flex; align-items: center; gap: 1cqw; flex: none;
  align-self: flex-start; margin-top: 0.6cqh;
  padding: 0.5cqh 1.6cqw; border-radius: 99px;
  background: var(--sauge-fond); color: var(--sauge);
  font-size: 3.2cqh; font-weight: 600; white-space: nowrap;
}
.tc-abonnements__etat::before { content: ''; width: 1.8cqh; height: 1.8cqh; border-radius: 50%; background: currentColor; }
.tc-abonnements__prix { margin-left: auto; display: flex; align-items: baseline; gap: 0.6cqw; white-space: nowrap; }
.tc-abonnements__prix b { font-size: 7cqh; line-height: 1; letter-spacing: -0.02em; }
.tc-abonnements__prix span { font-size: 3.3cqh; color: var(--encre-3); }

/* moyen de paiement et règles de prélèvement */
.tc-abonnements__infos { display: flex; align-items: center; gap: 1.4cqw; }
.tc-abonnements__infos > span {
  display: inline-flex; align-items: center; gap: 1cqw;
  padding: 0.8cqh 1.8cqw; border: 1px solid var(--trait); border-radius: 99px;
  background: var(--surface);
  font-size: 3.1cqh; color: var(--encre-2); white-space: nowrap;
}
.tc-abonnements__sepa {
  padding: 0.2cqh 1cqw; border-radius: 99px;
  background: var(--lavande); color: #5B4760;
  font-style: normal; font-weight: 600; font-size: 2.8cqh;
}

/* frise des échéances */
.tc-abonnements__plan {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 2.4cqh 2.6cqw 2cqh;
  border: 1px solid var(--trait); border-radius: 4cqh; background: var(--surface);
}
.tc-abonnements__titre { font-size: 3.2cqh; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-abonnements__cols { flex: 1; min-height: 0; display: flex; gap: 1.2cqw; margin-top: 1.4cqh; }
.tc-abonnements__col {
  flex: 1; min-width: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center; row-gap: 0.8cqh;
}
.tc-abonnements__tag {
  height: 4.4cqh; padding: 0 1.2cqw; border-radius: 99px;
  display: inline-flex; align-items: center;
  font-size: 3cqh; font-weight: 600; white-space: nowrap; line-height: 1;
}
.tc-abonnements__tag--vide { visibility: hidden; }
.tc-abonnements__tag--pause { background: #F3E9D8; color: #8A6A3A; }
.tc-abonnements__tag--remise { background: #EFE2DC; color: var(--accent); }
.tc-abonnements__tag--tarif { background: var(--lavande); color: #5B4760; }

.tc-abonnements__barre {
  align-self: end; justify-self: stretch;
  height: var(--h); min-height: 0;
  display: grid; place-items: center;
  border-radius: 1.8cqh;
}
.tc-abonnements__barre svg { width: 4.6cqh; height: 4.6cqh; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-abonnements__barre em { font-style: normal; font-size: 3cqh; font-weight: 600; white-space: nowrap; }
.tc-abonnements__barre--payee { background: var(--sauge-fond); border: 1px solid #B9C7B5; color: var(--sauge); }
.tc-abonnements__barre--pause {
  background: repeating-linear-gradient(135deg, #F3E9D8 0 3px, var(--surface) 3px 6px);
  border: 1px dashed #CDB48A;
  color: #8A6A3A;
}
.tc-abonnements__barre--pause em { padding: 0.5cqh 0.6cqw; text-align: center; line-height: 1.15; border-radius: 1cqh; background: var(--surface); font-size: 2.8cqh; }
.tc-abonnements__barre--prochaine { background: #F4EAE4; border: 1px solid var(--trait-fort); color: var(--accent); }
.tc-abonnements__barre--avenir {
  background: repeating-linear-gradient(135deg, var(--lavande) 0 2px, var(--surface) 2px 4px);
  border: 1px solid #CFC0D0;
}
.tc-abonnements__mois { font-size: 3.1cqh; color: var(--encre-3); line-height: 1; }
.tc-abonnements__montant { font-size: 3.3cqh; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.tc-abonnements__montant--nul { color: var(--encre-3) !important; }

.tc-abonnements__auj { position: relative; flex: 0 0 1.5px; align-self: stretch; margin-top: 5cqh; margin-bottom: 7cqh; border-radius: 1px; background: var(--accent); }
.tc-abonnements__auj::after {
  content: 'auj.'; position: absolute; top: -4.6cqh; left: 50%; transform: translateX(-50%);
  font-size: 3cqh; font-weight: 600; color: var(--accent); white-space: nowrap;
}

/* actions de la fiche */
.tc-abonnements__actions { display: flex; gap: 1.4cqw; }
.tc-abonnements__action {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 1cqw;
  padding: 1.4cqh 1cqw; border: 1px solid var(--trait); border-radius: 99px;
  background: var(--surface);
  font-size: 3.3cqh; font-weight: 600; color: var(--encre); white-space: nowrap;
}
.tc-abonnements__action svg { width: 3.8cqh; height: 3.8cqh; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-abonnements__action--choisie { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.tc-abonnements__action--fin { color: var(--alerte); }

/* carte : application */
/* Application élèves : un téléphone qui sort du bas de la carte, sur l'accueil de
   l'application (série de semaines, prochaine séance, carnet). Tailles en cqw de la carte. */
.tc-application {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 70% at 70% 60%, rgba(235, 220, 213, 0.75), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--trait) 1px, transparent 1.2px) 0 0 / 4cqw 4cqw,
    var(--surface-2);
}
.tc-application__cote {
  position: absolute;
  left: 5cqw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.4cqw;
  width: 26cqw;
}
.tc-application__surtitre { font-family: var(--serif); font-size: max(10px, 4.4cqw); line-height: 1.05; color: var(--encre); }
.tc-application__os { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1cqw; }
.tc-application__os b {
  padding: 0.7cqw 2.4cqw;
  border: 1px solid var(--trait-fort);
  border-radius: 99px;
  background: var(--surface);
  font-size: max(7.5px, 2.6cqw);
  color: var(--accent) !important;
}

/* le téléphone, légèrement incliné, coupé par le bas de la carte */
.tc-application__telephone {
  position: absolute;
  left: 34cqw;
  top: 2.6cqw;
  width: 60cqw;
  aspect-ratio: 9 / 19;
  padding: 1.5cqw;
  border-radius: 7.5cqw;
  background: linear-gradient(145deg, #4A383D, #2A1E21 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 3cqw 8cqw -2cqw rgba(52, 38, 42, 0.5);
  transform: rotate(-3deg);
  transform-origin: 50% 100%;
}
.tc-application__ecran {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 6.4cqw 3.4cqw 0;
  border-radius: 6cqw;
  background: var(--fond);
  font-size: 2.4cqw;
  line-height: 1.25;
}
.tc-application__ilot {
  position: absolute;
  top: 1.5cqw;
  left: 50%;
  width: 13cqw;
  height: 3.3cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #1E1517;
}
.tc-application__haut { display: flex; align-items: center; justify-content: space-between; }
.tc-application__studio { display: flex; align-items: center; gap: 1.2cqw; font-size: 2.2cqw; font-weight: 600; color: var(--encre-2); }
.tc-application__studio i {
  display: grid; place-items: center;
  width: 4.4cqw; height: 4.4cqw;
  border-radius: 1.4cqw;
  background: var(--accent);
  color: #FFFFFF;
  font-style: normal; font-size: 1.6cqw;
}
.tc-application__haut .tc-av { width: 5cqw; height: 5cqw; font-size: 1.8cqw; background: var(--sauge); }
.tc-application__bonjour { margin: 0.2cqw 0 0; font-family: var(--serif); font-size: 5.4cqw; line-height: 1; color: var(--encre); }
.tc-application__bonjour em { color: var(--encre-4); }

/* série de semaines */
.tc-application__serie {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 1.7cqw 2.2cqw;
  border-radius: 2.8cqw;
  background: var(--accent);
  color: #F6ECE7;
}
.tc-application__serie-t { display: flex; flex-direction: column; gap: 0.3cqw; }
.tc-application__serie-t b { color: #FFFFFF !important; font-size: 2.7cqw; }
.tc-application__serie-t small { font-size: 1.9cqw; color: #E9D6D0; }
.tc-application__semaines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9cqw; }
.tc-application__semaines i { height: 1.4cqw; border-radius: 99px; background: #F1D9D2; }
.tc-application__semaines i.est-encours { background: linear-gradient(90deg, #F1D9D2 55%, rgba(241, 217, 210, 0.3) 55%); }
.tc-application__semaines i.est-vide { background: rgba(241, 217, 210, 0.3); }

/* blocs : prochaine séance, carnet */
.tc-application__bloc {
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  padding: 1.6cqw 2.2cqw;
  border: 1px solid var(--surface-4);
  border-radius: 2.8cqw;
  background: var(--surface);
}
.tc-application__bloc small { font-size: 1.9cqw; font-weight: 600; color: var(--encre-4); }
.tc-application__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.tc-application__ligne b { font-size: 2.6cqw; white-space: nowrap; }
.tc-application__ligne em {
  padding: 0.3cqw 1.2cqw;
  border-radius: 99px;
  background: var(--sauge-fond);
  color: var(--sauge);
  font-style: normal; font-size: 1.8cqw; font-weight: 600;
}
.tc-application__jauge { height: 1.2cqw; margin-top: 0.6cqw; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.tc-application__jauge i { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--accent); }

/* carte : ateliers */
/* Ateliers : la page de vente en ligne d'un atelier (séances au choix, la complète grisée,
   celle retenue cochée), la sélection prête à régler, et ce que le studio vend aussi
   à la caisse. Tout est en cqw : même composition de 1440 à 390 px. */
.tc-ateliers {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 2.2cqw;
  padding: 2.8cqw 3.2cqw;
  font-size: 2.3cqw;
  line-height: 1.2;
  color: var(--encre-2);
  background: var(--surface-2);
}

/* en-tête : titre, onglets de la page de vente, état */
.tc-ateliers__tete { flex: none; display: flex; align-items: center; gap: 2cqw; }
.tc-ateliers__titre { font-family: var(--serif); font-size: 4.4cqw; font-weight: 400 !important; line-height: 1; white-space: nowrap; }
.tc-ateliers__onglets {
  display: flex;
  padding: 0.5cqw;
  border: 1px solid var(--trait);
  border-radius: 99px;
  background: var(--surface);
}
.tc-ateliers__onglets i {
  padding: 0.6cqw 1.5cqw;
  border-radius: 99px;
  font-style: normal;
  font-size: 2cqw;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-ateliers__onglets i.est-choisi { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.tc-ateliers__etat {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.8cqw;
  padding: 0.5cqw 1.4cqw;
  border-radius: 99px;
  font-size: 2cqw; font-weight: 600;
  color: var(--sauge);
  background: var(--sauge-fond);
  white-space: nowrap;
}
.tc-ateliers__etat::before { content: ''; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--sauge); }

.tc-ateliers__corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.8cqw; }
.tc-ateliers__lib { font-size: 2cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }

/* fiche de l'atelier */
.tc-ateliers__produit {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 1.1cqw;
  overflow: hidden;
  padding: 0 0 1.8cqw;
  border: 1px solid var(--trait);
  border-radius: 2.4cqw;
  background: var(--surface);
}
.tc-ateliers__visuel { position: relative; flex: none; height: 7.5cqw; background: var(--sauge-fond-2); }
.tc-ateliers__visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-ateliers__duree {
  position: absolute; top: 1.4cqw; right: 1.6cqw;
  padding: 0.3cqw 1.1cqw;
  border-radius: 99px;
  font-size: 1.9cqw; font-weight: 600;
  color: var(--sauge-fonce);
  background: var(--surface);
}
.tc-ateliers__infos { display: flex; flex-direction: column; gap: 0.7cqw; padding: 0.4cqw 2cqw 0.2cqw; }
.tc-ateliers__nom { font-family: var(--serif); font-size: 3.4cqw; font-weight: 400 !important; line-height: 1; color: var(--encre); white-space: nowrap; }
.tc-ateliers__sous { display: flex; align-items: center; gap: 0.9cqw; font-size: 2cqw; color: var(--encre-3); white-space: nowrap; }
.tc-ateliers .tc-ateliers__sous .tc-av { width: 3cqw; height: 3cqw; font-size: 1.2cqw; }
.tc-ateliers__produit > .tc-ateliers__lib { padding: 0.4cqw 2cqw 0; }
.tc-ateliers__choix {
  display: flex; align-items: center; gap: 1.2cqw;
  margin: 0 2cqw;
  padding: 1.15cqw 1.5cqw;
  border: 1px solid var(--trait);
  border-radius: 1.6cqw;
  font-size: 2.1cqw;
  color: var(--encre-2);
  white-space: nowrap;
}
.tc-ateliers__choix i {
  flex: none;
  width: 2.2cqw; height: 2.2cqw;
  border: 1.5px solid var(--trait-fort);
  border-radius: 50%;
  background: var(--surface);
}
.tc-ateliers__choix em { margin-left: auto; font-style: normal; font-size: 2cqw; color: var(--encre-3); }
.tc-ateliers__choix.est-complet { background: var(--surface-2); color: var(--encre-4); }
.tc-ateliers__choix.est-complet span { text-decoration: line-through; text-decoration-color: var(--trait-fort); }
.tc-ateliers__choix.est-complet i { background: var(--surface-4); border-color: var(--trait); }
.tc-ateliers__choix.est-complet em {
  padding: 0.2cqw 1cqw;
  border-radius: 99px;
  color: var(--encre-3);
  background: var(--surface-4);
}
.tc-ateliers__choix.est-pris { border: 1.5px solid var(--accent); background: #F4EAE4; color: var(--encre); font-weight: 600; }
.tc-ateliers__choix.est-pris i { border-color: var(--accent); box-shadow: inset 0 0 0 0.5cqw var(--surface); background: var(--accent); }
.tc-ateliers__choix.est-pris em { color: var(--accent); font-weight: 600; }

/* colonne : sélection et ventes de la caisse */
.tc-ateliers__cote { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 1.8cqw; }
.tc-ateliers__panier, .tc-ateliers__caisse {
  display: flex; flex-direction: column; gap: 1.1cqw;
  padding: 1.6cqw 2cqw 1.7cqw;
  border: 1px solid var(--trait);
  border-radius: 2.4cqw;
  background: var(--surface);
}
.tc-ateliers__panier { flex: none; }
.tc-ateliers__caisse { flex: 1; min-height: 0; justify-content: flex-start; }
.tc-ateliers__ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 1cqw; }
.tc-ateliers__ligne span { display: flex; flex-direction: column; gap: 0.4cqw; font-size: 2.2cqw; font-weight: 600; color: var(--encre); white-space: nowrap; }
.tc-ateliers__ligne small { font-size: 1.9cqw; font-weight: 400; color: var(--encre-3); }
.tc-ateliers__ligne b { font-family: var(--serif); font-size: 3.4cqw; font-weight: 400 !important; line-height: 1; color: var(--encre); white-space: nowrap; }
.tc-ateliers__bouton {
  padding: 1.2cqw;
  border-radius: 99px;
  text-align: center;
  font-size: 2.1cqw; font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  box-shadow: 0 0.6cqw 1.6cqw rgba(52, 38, 42, 0.18);
}
.tc-ateliers__note { font-size: 1.85cqw; text-align: center; color: var(--encre-4); white-space: nowrap; }
.tc-ateliers__article {
  display: flex; align-items: center; justify-content: space-between; gap: 1cqw;
  padding-top: 1cqw;
  border-top: 1px solid var(--surface-4);
  font-size: 2.1cqw;
  white-space: nowrap;
}
.tc-ateliers__caisse .tc-ateliers__lib + .tc-ateliers__article { border-top: 0; padding-top: 0.2cqw; }
.tc-ateliers__article b { font-weight: 600; color: var(--encre); }

/* lien de la page, à partager ou à poser sur le site du studio */
.tc-ateliers__lien {
  margin: auto 2cqw 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1cqw;
  padding: 1cqw 1.4cqw;
  border: 1px dashed var(--trait-fort);
  border-radius: 1.6cqw;
  font-size: 1.95cqw;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-ateliers__lien b { font-weight: 600; color: var(--accent); }

/* carte : eleves */
/* Gestion des élèves : la liste (vues toutes prêtes, statut de paiement, formule) et, par-dessus,
   la fiche de l'élève choisie avec son assiduité semaine par semaine et une note de l'équipe.
   Le motif du logo tient lieu de décor dans l'en-tête. Tout est en cqw. */
.tc-eleves { position: absolute; inset: 0; color: var(--encre-2); line-height: 1.2; }
.tc-eleves b { color: var(--encre); font-weight: 600; }

/* --- liste (arrière-plan) --- */
.tc-eleves__liste {
  position: absolute; top: 3cqw; left: 3cqw; right: 3cqw; bottom: 0;
  padding: 2cqw 2.2cqw 0;
  border: 1px solid var(--trait); border-bottom: 0;
  border-radius: 2.6cqw 2.6cqw 0 0;
  background: var(--surface);
  overflow: hidden;
}
.tc-eleves__entete {
  position: relative; overflow: hidden;
  padding: 1.3cqw 2cqw 1.5cqw;
  border: 1px solid var(--trait); border-radius: 2cqw;
  background: linear-gradient(100deg, #F3E6E1, var(--surface) 62%);
}
.tc-eleves__motif {
  position: absolute; top: -2.6cqw; right: 36cqw;
  width: 17cqw; height: 13.5cqw;
  fill: #E9D6D0; opacity: 0.75;
}
.tc-eleves__titre {
  position: relative; display: block;
  margin-bottom: 1cqw;
  font-family: var(--serif); font-size: 3.8cqw; font-weight: 400 !important; line-height: 1;
}
.tc-eleves__vues { position: relative; display: flex; gap: 1.1cqw; }
.tc-eleves__vue {
  display: inline-flex; align-items: center; gap: 0.8cqw;
  padding: 0.5cqw 1.5cqw;
  border: 1px solid var(--trait); border-radius: 5cqw;
  background: var(--surface);
  font-size: 1.95cqw; white-space: nowrap;
}
.tc-eleves__vue em { font-style: normal; font-weight: 700; color: var(--alerte); }
.tc-eleves__vue--active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }
.tc-eleves__point { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; flex: none; }
.tc-eleves__point--alerte { background: var(--alerte); }
.tc-eleves__point--attente { background: #B08A4E; }

.tc-eleves__compte { margin: 1.3cqw 0 0.5cqw; font-size: 1.85cqw; color: var(--encre-3); }

.tc-eleves__tete,
.tc-eleves__ligne {
  display: grid;
  grid-template-columns: 16.5cqw 21.5cqw 12cqw;
  align-items: center; column-gap: 1.2cqw;
}
.tc-eleves__tete {
  padding: 0 1.2cqw 0.8cqw;
  border-bottom: 1px solid var(--trait);
  font-size: 1.75cqw; color: var(--encre-3);
}
.tc-eleves__ligne {
  padding: 0.95cqw 1.2cqw;
  border-bottom: 1px solid var(--surface-4);
  font-size: 2cqw;
}
.tc-eleves__ligne--choisie {
  border-bottom-color: transparent; border-radius: 1.2cqw;
  background: #F3E6E1;
  box-shadow: inset 0.6cqw 0 0 var(--accent);
}
.tc-eleves__qui { display: flex; align-items: center; gap: 1.3cqw; min-width: 0; }
.tc-eleves__qui b { font-size: 2.2cqw; white-space: nowrap; }

.tc-eleves__av {
  display: grid; place-items: center; flex: none;
  width: 4.8cqw; height: 4.8cqw; border-radius: 50%;
  background: var(--accent); color: #FFFFFF !important;
  font-size: 1.6cqw; font-weight: 600;
}
.tc-eleves__av--b { background: #6D5A6F; }
.tc-eleves__av--c { background: var(--sauge); }
.tc-eleves__av--d { background: #A87A78; }
.tc-eleves__av--e { background: #5E4B4E; }
.tc-eleves__av--grand { width: 8cqw; height: 8cqw; font-size: 2.5cqw; }
.tc-eleves__av--petit { width: 3.6cqw; height: 3.6cqw; font-size: 1.3cqw; background: var(--sauge); }

.tc-eleves__statut { display: inline-flex; align-items: center; gap: 0.9cqw; white-space: nowrap; }
.tc-eleves__statut i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--sauge); flex: none; }
.tc-eleves__statut--echec { color: var(--alerte); font-weight: 600; }
.tc-eleves__statut--echec i { background: var(--alerte); }
.tc-eleves__statut--attente { color: #8A6A3A; }
.tc-eleves__statut--attente i { background: #B08A4E; }
.tc-eleves__formule {
  justify-self: start;
  padding: 0.35cqw 1.2cqw;
  border-radius: 5cqw;
  background: var(--surface-3);
  font-size: 1.8cqw; white-space: nowrap;
}

/* --- fiche de l'élève (surimpression) --- */
.tc-eleves__fiche {
  position: absolute; top: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw;
  width: 37cqw;
  padding: 2.2cqw 2.6cqw;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1cqw;
  border: 1px solid var(--trait-fort);
  border-radius: 2.6cqw;
  background: var(--surface);
  box-shadow: 0 2cqw 6cqw -1cqw rgba(52, 38, 42, 0.32);
}
.tc-eleves__id { display: flex; align-items: center; gap: 1.8cqw; padding-bottom: 1.5cqw; border-bottom: 1px solid var(--trait); }
.tc-eleves__id b { display: block; font-family: var(--serif); font-size: 3.4cqw; font-weight: 400; line-height: 1; }
.tc-eleves__id small { display: block; margin-top: 0.5cqw; font-size: 1.8cqw; color: var(--encre-3); }
.tc-eleves__champ > small { display: block; margin-bottom: 0.5cqw; font-size: 1.7cqw; color: var(--encre-3); }
.tc-eleves__val { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqw; font-size: 2.1cqw; white-space: nowrap; }
.tc-eleves__ok { display: inline-flex; align-items: center; gap: 0.8cqw; font-size: 1.85cqw; font-weight: 600; color: var(--sauge); }
.tc-eleves__ok::before { content: ''; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: currentColor; }

.tc-eleves__grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.5cqw; }
.tc-eleves__grille i { aspect-ratio: 1; border-radius: 0.6cqw; background: var(--surface-3); }
.tc-eleves__grille .l1 { background: #E3D0CC; }
.tc-eleves__grille .l2 { background: #B39598; }
.tc-eleves__grille .l3 { background: var(--accent); }
.tc-eleves__stat { margin-top: 0.7cqw; font-size: 1.8cqw; color: var(--encre-3); }
.tc-eleves__stat b { font-family: var(--serif); font-size: 2.6cqw; font-weight: 400; color: var(--accent); }

.tc-eleves__note {
  display: flex; align-items: flex-start; gap: 1cqw;
  padding: 1cqw 1.2cqw;
  border-radius: 1.4cqw;
  background: var(--surface-2);
  font-size: 1.7cqw; color: var(--encre-2);
}
.tc-eleves__note b { display: block; font-size: 1.7cqw; }
.tc-eleves__note > span:last-child { min-width: 0; }

/* carte : integrations */
/* Intégrations et exports : les exports en libre-service, sans frais de sortie, et ce qui est
   branché (partenaires, agenda des élèves, API d'inscription des prospects). Tailles en em, sur
   une base en cqw bornée. */
.tc-integrations { position: absolute; inset: 0; }
.tc-integrations__dedans {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 3cqw;
  padding: 4.2cqw 4cqw;
  font-size: clamp(7.4px, 2.5cqw, 11.5px);
  line-height: 1.2;
  color: var(--encre-2);
}
.tc-integrations__sur { font-size: 0.86em; font-weight: 600; color: var(--encre-4); }

/* panneau des exports */
.tc-integrations__exports {
  display: flex; flex-direction: column; min-width: 0;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 1em;
  background: var(--surface);
  box-shadow: 0 0.6em 1.6em -1em rgba(52, 38, 42, 0.3);
}
.tc-integrations__tete { display: flex; align-items: center; gap: 0.6em; padding: 0.75em 0.9em; border-bottom: 1px solid var(--surface-4); }
.tc-integrations__tete b { font-size: 1.12em; }
.tc-integrations__nombre {
  margin-left: auto; min-width: 1.9em; padding: 0.15em 0.5em;
  border-radius: 1em; text-align: center;
  background: #F4EAE4; color: var(--accent);
  font-size: 0.86em; font-weight: 600;
}
.tc-integrations__lignes { list-style: none; flex: 1; display: grid; grid-auto-rows: 1fr; gap: 0.4em; margin: 0; padding: 0.55em 0.6em; }
.tc-integrations__ligne {
  display: flex; align-items: center; gap: 0.5em; min-width: 0;
  padding: 0.38em 0.4em 0.38em 0.7em;
  border-radius: 0.7em;
  background: var(--surface-2);
  color: var(--encre);
}
.tc-integrations__libelle { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-integrations__format { font-size: 0.8em; font-weight: 600; color: var(--encre-3); }
.tc-integrations__telecharger {
  display: grid; place-items: center; flex: none;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
}
.tc-integrations__telecharger svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tc-integrations__ligne + .tc-integrations__ligne .tc-integrations__telecharger { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.tc-integrations__pied {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5em;
  padding: 0.6em 0.9em;
  border-top: 1px solid var(--surface-4);
  background: var(--surface-2);
  font-size: 0.86em; color: var(--encre-3); white-space: nowrap;
}
.tc-integrations .tc-integrations__pied b { color: var(--accent); }

/* ce qui est branché */
.tc-integrations__branche { display: flex; flex-direction: column; gap: 0.45em; min-width: 0; padding-top: 0.2em; }
.tc-integrations__branche > .tc-integrations__sur { padding-left: 0.2em; }
.tc-integrations__prise {
  --fond: var(--sauge-fond);
  --ton: var(--sauge);
  position: relative;
  flex: 1;
  display: flex; align-items: center; gap: 0.55em; min-width: 0;
  padding: 0.35em 0.6em 0.35em 0.35em;
  border: 1px solid var(--trait);
  border-radius: 0.8em;
  background: var(--surface);
  font-weight: 600; color: var(--encre);
}
.tc-integrations__prise > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-integrations__prise small { overflow: hidden; text-overflow: ellipsis; font-size: 0.8em; font-weight: 500; color: var(--encre-3); }
.tc-integrations__pastille {
  display: grid; place-items: center; flex: none;
  width: 2.4em; height: 2.4em; border-radius: 0.7em;
  background: var(--fond); color: var(--ton);
  font-size: 0.86em; font-style: normal; font-weight: 600;
}
.tc-integrations__pastille svg { width: 1.3em; height: 1.3em; }
.tc-integrations__actif { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--sauge); box-shadow: 0 0 0 0.22em var(--sauge-fond); }
.tc-integrations__prise--cp { --fond: var(--lavande); --ton: #5B4760; }
.tc-integrations__prise--agenda { --fond: #F4EAE4; --ton: var(--accent); }
.tc-integrations__prise--api { --fond: var(--sauge-fond); --ton: var(--sauge); }

/* carte : machines */
/* Réservation de machines : pratique libre d'une journée, une ligne par reformer et une colonne
   par créneau de 45 min ; créneaux réservés (initiales de l'élève), libres, une machine en
   maintenance sortie des créneaux, et la fiche du créneau ouvert. Tout est en cqw. */
.tc-machines { position: absolute; inset: 0; }
.tc-machines__panneau {
  position: absolute; inset: 2.6cqw;
  display: flex; flex-direction: column; gap: 1.8cqw;
  padding: 2cqw 2.2cqw 2.2cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface);
  font-size: 1.9cqw; line-height: 1.2; color: var(--encre-2);
}
.tc-machines__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6cqw; }
.tc-machines__titre { display: flex; flex-direction: column; gap: 0.4cqw; min-width: 0; }
.tc-machines__titre b { font-size: 2.7cqw; white-space: nowrap; }
.tc-machines__titre span { font-size: 1.75cqw; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-machines__puce {
  flex: none;
  padding: 0.6cqw 1.6cqw;
  border-radius: 5cqw;
  background: var(--accent); color: #FFFFFF;
  font-size: 1.75cqw; font-weight: 600; white-space: nowrap;
}

/* machines en lignes, créneaux en colonnes */
.tc-machines__grille {
  position: relative;
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 14.5cqw repeat(6, minmax(0, 1fr));
  grid-template-rows: auto repeat(6, minmax(0, 1fr));
  gap: 0.75cqw;
}
.tc-machines__h { align-self: end; padding-bottom: 0.2cqw; font-size: 1.65cqw; font-weight: 600; color: var(--encre-3); text-align: center; }
.tc-machines__nom { grid-column: 1; display: flex; align-items: center; font-size: 1.8cqw; white-space: nowrap; }

.tc-machines__creneau {
  display: flex; align-items: center; justify-content: center;
  border-radius: 1.2cqw;
  background: #F3E6E1;
  box-shadow: inset 0.45cqw 0 0 #A87A78;
}
.tc-machines__creneau .tc-av {
  width: 3.4cqw; height: 3.4cqw;
  font-size: 1.35cqw; font-style: normal;
}
.tc-machines__creneau--libre {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--trait);
  font-size: 1.6cqw; color: var(--encre-4);
}
.tc-machines__creneau--choisi { box-shadow: inset 0.45cqw 0 0 #A87A78, 0 0 0 1.5px var(--accent); }

/* machine en maintenance : la ligne entière, hachurée */
.tc-machines__hs {
  grid-column: 2 / -1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1.2cqw;
  background: repeating-linear-gradient(135deg, #F6E3DF 0 0.8cqw, var(--surface) 0.8cqw 1.6cqw);
  box-shadow: inset 0 0 0 1px #EBC9C2;
  font-size: 1.7cqw; font-weight: 600; color: var(--alerte);
  white-space: nowrap;
}
.tc-machines__nom:has(+ .tc-machines__hs) b { color: var(--encre-3); text-decoration: line-through; text-decoration-color: var(--alerte); }

/* fiche du créneau ouvert */
.tc-machines__fiche {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw;
  margin: 0.6cqw 0 0.6cqw 1.8cqw;
  padding: 1.5cqw 1.8cqw;
  border: 1px solid var(--trait);
  border-radius: 2cqw;
  background: var(--surface);
  box-shadow: 0 2cqw 5cqw -1.6cqw rgba(52, 38, 42, 0.38);
}
.tc-machines__fiche::before {
  content: '';
  position: absolute; left: -0.9cqw; top: 46%;
  width: 1.6cqw; height: 1.6cqw;
  border-left: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
  background: var(--surface);
  transform: rotate(45deg);
}
.tc-machines__fiche-quand { font-size: 1.65cqw; color: var(--encre-3); white-space: nowrap; }
.tc-machines__fiche-qui { display: flex; align-items: center; gap: 1.2cqw; }
.tc-machines__fiche-qui .tc-av { width: 4.8cqw; height: 4.8cqw; font-size: 1.7cqw; font-style: normal; }
.tc-machines__fiche-qui > span { display: flex; flex-direction: column; min-width: 0; }
.tc-machines__fiche-qui b { font-size: 2.3cqw; }
.tc-machines__fiche-qui small { font-size: 1.6cqw; color: var(--encre-3); white-space: nowrap; }
.tc-machines__fiche-ligne {
  display: flex; justify-content: space-between; gap: 1cqw;
  padding-top: 0.9cqw;
  border-top: 1px solid var(--surface-4);
  font-size: 1.65cqw; color: var(--encre-3); white-space: nowrap;
}
.tc-machines__fiche-ligne b { font-size: 1.7cqw; }

/* carte : messagerie */
/* Messagerie : bandeau « Vos conversations » et ses compteurs, colonne des conversations
   (filtres, pastille de non-lus, coches de lecture), fil sur fond dessiné avec les bulles
   envoyées en rose, zone de saisie. Tout est en cqw : même composition de 1440 à 390 px. */
.tc-messagerie {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 2.4cqw 2.4cqw 0;
  font-size: 2cqw;
  line-height: 1.25;
  color: var(--encre-2);
}
.tc-messagerie__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tc-messagerie svg { flex: none; }

/* bandeau */
.tc-messagerie__bandeau {
  position: relative;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 9.8cqw;
  padding: 0 2.6cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: linear-gradient(110deg, #F6ECE7, var(--surface) 58%);
}
.tc-messagerie__forme { position: absolute; right: 24cqw; top: -3cqw; width: 18cqw; height: auto; fill: #F0E2DC; }
.tc-messagerie__bandeau-t { position: relative; display: flex; flex-direction: column; gap: 0.5cqw; margin-right: auto; min-width: 0; }
.tc-messagerie__surtitre { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.75cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-messagerie__surtitre i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--sauge); }
.tc-messagerie__titre { font-family: var(--serif); font-size: 4.2cqw; color: var(--encre); white-space: nowrap; line-height: 1; }
.tc-messagerie__titre em { color: var(--encre-4); }
.tc-messagerie__compte {
  position: relative;
  display: flex; flex-direction: column; gap: 0.3cqw;
  padding: 1cqw 1.8cqw;
  border: 1px solid var(--surface-4);
  border-radius: 1.6cqw;
  background: var(--surface);
}
.tc-messagerie__compte small { font-size: 1.65cqw; font-weight: 500; color: var(--encre-3); white-space: nowrap; }
.tc-messagerie__compte b { display: flex; align-items: center; gap: 0.8cqw; font-size: 2.5cqw; line-height: 1; }
.tc-messagerie__compte b i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; }
.tc-messagerie__compte .est-non-lu { background: var(--sauge); }
.tc-messagerie__compte .est-en-attente { background: #B8955A; }

/* l'application : conversations + fil */
.tc-messagerie__appli {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 38.5cqw minmax(0, 1fr);
  border: 1px solid var(--trait);
  border-bottom: 0;
  border-radius: 2.6cqw 2.6cqw 0 0;
  overflow: hidden;
  background: var(--surface);
}
.tc-messagerie__liste {
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
  min-width: 0;
  padding: 1.6cqw 1.4cqw 0;
  border-right: 1px solid var(--surface-4);
}
.tc-messagerie__recherche {
  display: flex; align-items: center; gap: 0.8cqw;
  padding: 0.9cqw 1.3cqw;
  border: 1px solid var(--trait);
  border-radius: 99px;
  background: var(--surface-2);
  font-size: 1.8cqw; color: var(--encre-3); white-space: nowrap; overflow: hidden;
}
.tc-messagerie__recherche svg { width: 1.9cqw; height: 1.9cqw; }
.tc-messagerie__onglets {
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between;
  padding: 0.45cqw;
  border-radius: 99px;
  background: var(--surface-3);
  font-size: 1.7cqw;
  white-space: nowrap;
}
.tc-messagerie__onglets > * { display: flex; align-items: center; justify-content: center; gap: 0.5cqw; padding: 0.6cqw 1.1cqw; color: var(--encre-3); }
.tc-messagerie__onglets b { border-radius: 99px; background: var(--surface); color: var(--accent) !important; box-shadow: 0 1px 2px rgba(52, 38, 42, .12); }
.tc-messagerie__onglets em { font-style: normal; padding: 0 0.6cqw; border-radius: 99px; background: var(--surface); color: var(--encre-2); }

.tc-messagerie__conv {
  display: flex; align-items: center; gap: 1.1cqw;
  min-width: 0;
  padding: 0.95cqw 1cqw;
  border-radius: 1.6cqw;
}
.tc-messagerie__conv.est-ouverte { background: #F4EAE4; box-shadow: inset 0.45cqw 0 0 var(--accent); }
.tc-messagerie .tc-av.tc-messagerie__av {
  width: 5.2cqw; height: 5.2cqw;
  font-size: 1.85cqw;
  background: var(--tc-messagerie-av);
}
.tc-messagerie__conv-t { display: flex; flex-direction: column; gap: 0.35cqw; min-width: 0; flex: 1; }
.tc-messagerie__conv-l { display: flex; align-items: center; gap: 0.6cqw; min-width: 0; }
.tc-messagerie__conv-l b { font-size: 2.2cqw; white-space: nowrap; margin-right: auto; }
.tc-messagerie__conv-l time { font-size: 1.7cqw; color: var(--encre-3); }
.tc-messagerie__dernier {
  display: block;
  min-width: 0; flex: 1;
  font-size: 2cqw; color: var(--encre-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-messagerie__dernier svg { display: inline-block; vertical-align: -0.1cqw; width: 2.2cqw; height: 1.5cqw; margin-right: 0.4cqw; color: var(--encre-3); }
.tc-messagerie__dernier .tc-messagerie__trombone { width: 1.7cqw; height: 1.7cqw; margin-right: 0.2cqw; vertical-align: -0.25cqw; }
.tc-messagerie .tc-messagerie__lu { color: var(--sauge); }
.tc-messagerie__conv.est-non-lue .tc-messagerie__dernier { color: var(--encre); font-weight: 600; }
.tc-messagerie__conv.est-non-lue time { color: var(--accent); font-weight: 600; }
.tc-messagerie__conv-l em {
  flex: none; display: grid; place-items: center;
  min-width: 2.6cqw; height: 2.6cqw; padding: 0 0.6cqw; border-radius: 99px;
  background: var(--accent); color: #FFFFFF;
  font-style: normal; font-size: 1.6cqw; font-weight: 600;
}

/* fil */
.tc-messagerie__fil { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tc-messagerie__tete {
  flex: none;
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 1.2cqw 1.6cqw;
  border-bottom: 1px solid var(--surface-4);
}
.tc-messagerie__tete .tc-av.tc-messagerie__av { width: 4.6cqw; height: 4.6cqw; font-size: 1.7cqw; }
.tc-messagerie__tete-t { display: flex; flex-direction: column; gap: 0.2cqw; min-width: 0; margin-right: auto; }
.tc-messagerie__tete-t > span { display: flex; align-items: center; gap: 0.8cqw; }
.tc-messagerie__tete-t b { font-size: 2.3cqw; }
.tc-messagerie__tete-t em {
  font-style: normal; font-size: 1.6cqw; font-weight: 600;
  padding: 0.15cqw 0.9cqw; border-radius: 99px;
  background: var(--sauge-fond); color: var(--sauge);
}
.tc-messagerie__tete-t small { font-size: 1.8cqw; color: var(--encre-3); white-space: nowrap; }
.tc-messagerie__fiche {
  padding: 0.8cqw 1.5cqw;
  border: 1px solid var(--trait-fort);
  border-radius: 99px;
  font-size: 1.7cqw; font-weight: 600;
  color: var(--encre); white-space: nowrap;
}

.tc-messagerie__corps {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9cqw;
  padding: 1.2cqw 2cqw;
  background: var(--surface-2);
  isolation: isolate;
}
.tc-messagerie__corps::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  opacity: 0.1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='translate%2810 18%29 rotate%28-12%29' d='M1 5 C5 0 9 0 14 5 S23 10 27 5'/%3E%3Cpath transform='translate%2878 14%29 rotate%2818%29' d='M12 21c-4 0-8-2-9-6 3 0 6 1 9 6zM12 21c4 0 8-2 9-6-3 0-6 1-9 6zM12 21c-2-3-2-8 0-13 2 5 2 10 0 13z'/%3E%3Ccircle cx='52' cy='62' r='6'/%3E%3Ccircle cx='52' cy='62' r='1.6'/%3E%3Cpath transform='translate%2888 70%29 rotate%288%29' d='M1 5 C5 0 9 0 14 5 S23 10 27 5M1 11 C5 6 9 6 14 11 S23 16 27 11'/%3E%3Cpath transform='translate%2814 92%29 rotate%28-20%29' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3Cpath transform='translate%2870 104%29 rotate%28-8%29' d='M2 6h20M4 6v8M20 6v8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 17cqw 17cqw repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='translate%2810 18%29 rotate%28-12%29' d='M1 5 C5 0 9 0 14 5 S23 10 27 5'/%3E%3Cpath transform='translate%2878 14%29 rotate%2818%29' d='M12 21c-4 0-8-2-9-6 3 0 6 1 9 6zM12 21c4 0 8-2 9-6-3 0-6 1-9 6zM12 21c-2-3-2-8 0-13 2 5 2 10 0 13z'/%3E%3Ccircle cx='52' cy='62' r='6'/%3E%3Ccircle cx='52' cy='62' r='1.6'/%3E%3Cpath transform='translate%2888 70%29 rotate%288%29' d='M1 5 C5 0 9 0 14 5 S23 10 27 5M1 11 C5 6 9 6 14 11 S23 16 27 11'/%3E%3Cpath transform='translate%2814 92%29 rotate%28-20%29' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3Cpath transform='translate%2870 104%29 rotate%28-8%29' d='M2 6h20M4 6v8M20 6v8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 17cqw 17cqw repeat;
}
.tc-messagerie__jour {
  align-self: center;
  margin-bottom: auto;
  padding: 0.35cqw 1.4cqw;
  border: 1px solid var(--trait);
  border-radius: 99px;
  background: var(--surface);
  font-size: 1.65cqw; font-weight: 600;
  color: var(--encre-3);
}
.tc-messagerie__msg {
  position: relative;
  display: block;
  max-width: 86%;
  padding: 0.8cqw 1.4cqw 0.7cqw;
  border-radius: 1.8cqw;
  background: var(--surface);
  color: var(--encre);
  font-size: 2.1cqw;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(52, 38, 42, .1);
}
.tc-messagerie__msg.est-recu { align-self: flex-start; border-top-left-radius: 0.4cqw; }
.tc-messagerie__msg.est-envoye { align-self: flex-end; border-top-right-radius: 0.4cqw; background: #EFE2DC; }
.tc-messagerie__auteur { display: block; margin-bottom: 0.2cqw; font-size: 1.65cqw; font-weight: 600; color: var(--encre-3); }
.tc-messagerie__msg.est-envoye .tc-messagerie__auteur { color: var(--accent); }
.tc-messagerie__meta {
  float: right;
  display: inline-flex; align-items: center; gap: 0.3cqw;
  margin: 0.5cqw 0 -0.2cqw 1.4cqw;
  font-size: 1.6cqw; color: var(--encre-3);
}
.tc-messagerie__meta svg { width: 2.4cqw; height: 1.6cqw; }

/* saisie */
.tc-messagerie__saisie {
  flex: none;
  display: flex; align-items: center; gap: 1cqw;
  padding: 1.2cqw 1.6cqw 1.4cqw;
  border-top: 1px solid var(--surface-4);
}
.tc-messagerie__champ {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 0.9cqw;
  padding: 1cqw 1.4cqw;
  border: 1px solid var(--trait-fort);
  border-radius: 99px;
  background: var(--surface-2);
  box-shadow: 0 0 0 0.4cqw #F4EAE4;
  font-size: 2cqw; color: var(--encre-3);
}
.tc-messagerie__champ span { flex: 1; white-space: nowrap; }
.tc-messagerie__champ svg { width: 2.3cqw; height: 2.3cqw; color: var(--encre-3); }
.tc-messagerie__envoyer {
  display: grid; place-items: center;
  width: 4.6cqw; height: 4.6cqw; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
}
.tc-messagerie__envoyer svg { width: 2.3cqw; height: 2.3cqw; }

/* carte : newsletters */
/* Newsletters : la même annonce dans la boîte mail de l'élève et en notification sur son
   téléphone, avec le taux d'ouverture de chaque canal. Tout est en cqw. */
.tc-newsletters { position: absolute; inset: 0; container-type: size; }
.tc-newsletters > * { font-size: 2.5cqw; }

/* l'e-mail */
.tc-newsletters__mail {
  position: absolute;
  left: 4cqw; top: 5cqw; width: 47cqw; bottom: 5cqw;
  display: flex; flex-direction: column; gap: 1.6cqw;
  padding: 2.6cqw 2.8cqw;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface);
  box-shadow: 0 1.6cqw 4.4cqw -2cqw rgba(52, 38, 42, 0.3);
}
.tc-newsletters__de { display: flex; align-items: center; gap: 1.6cqw; }
.tc-newsletters__logo, .tc-newsletters__appli {
  display: grid; place-items: center; flex: none;
  width: 5.4cqw; height: 5.4cqw; border-radius: 1.6cqw;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.2cqw; font-weight: 600;
}
.tc-newsletters__qui { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.tc-newsletters__qui b { font-size: 2.5cqw; white-space: nowrap; }
.tc-newsletters__qui small { font-size: 2.2cqw; color: var(--encre-3); }
.tc-newsletters__etat {
  margin-left: auto; padding: 0.4cqw 1.4cqw; border-radius: 99px;
  background: var(--sauge-fond); color: var(--sauge);
  font-size: 2.1cqw; font-weight: 600;
}
.tc-newsletters__objet { font-size: 3cqw; line-height: 1.15; letter-spacing: -0.01em; }
.tc-newsletters__visuel {
  position: relative;
  flex: 1 1 auto; min-height: 9cqw;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3cqw;
  padding: 1.6cqw 2cqw;
  overflow: hidden;
  border-radius: 1.8cqw;
  background: linear-gradient(150deg, #EBDCD5 0%, #D9C3C0 100%);
}
.tc-newsletters__visuel svg { position: absolute; right: -4cqw; top: -2cqw; width: 26cqw; height: auto; fill: #F6ECE7; opacity: 0.75; }
.tc-newsletters__visuel span, .tc-newsletters__visuel strong { position: relative; }
.tc-newsletters__visuel span { font-size: 2.1cqw; font-weight: 600; color: var(--accent); }
.tc-newsletters__visuel strong { font-family: var(--serif); font-size: 4.2cqw; font-weight: 400; line-height: 1; color: var(--encre); }
.tc-newsletters__texte { margin: 0; font-size: 2.35cqw; line-height: 1.3; color: var(--encre-2); }
.tc-newsletters__bouton {
  align-self: flex-start;
  padding: 1cqw 2.4cqw; border-radius: 99px;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.3cqw; font-weight: 600;
}

/* le téléphone verrouillé */
.tc-newsletters__telephone {
  position: absolute;
  left: 54cqw; top: 5cqw; width: 27cqw; bottom: 5cqw;
  padding: 1cqw;
  border-radius: 4.4cqw;
  background: #2A1F22;
  box-shadow: 0 1.6cqw 4.4cqw -2cqw rgba(52, 38, 42, 0.45);
}
.tc-newsletters__verrou {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 3.4cqw 0.9cqw 0;
  overflow: hidden;
  border-radius: 3.4cqw;
  background:
    radial-gradient(circle at 30% 110%, rgba(235, 220, 213, 0.45), transparent 60%),
    linear-gradient(170deg, #6B5256, #34262A);
}
.tc-newsletters__verrou::before {
  content: ''; position: absolute; top: 1cqw; left: 50%;
  width: 7cqw; height: 1.6cqw; transform: translateX(-50%);
  border-radius: 99px; background: #1C1416;
}
.tc-newsletters__verrou::after {
  content: ''; position: absolute; bottom: 1cqw; left: 50%;
  width: 8cqw; height: 0.6cqw; transform: translateX(-50%);
  border-radius: 99px; background: rgba(255, 255, 255, 0.55);
}
.tc-newsletters__heure { font-size: 6.4cqw; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; }
.tc-newsletters__date { margin-top: 0.6cqw; font-size: 2.2cqw; color: rgba(255, 255, 255, 0.78); }
.tc-newsletters__notif {
  display: flex; flex-direction: column; gap: 0.5cqw;
  width: 100%; margin-top: 3cqw; padding: 1.3cqw 1.5cqw 1.5cqw;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2cqw;
  background: rgba(255, 253, 251, 0.18);
  line-height: 1.2;
}
.tc-newsletters__notif-tete { display: flex; align-items: center; gap: 0.8cqw; font-size: 2.1cqw; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.tc-newsletters__appli { width: 3cqw; height: 3cqw; border-radius: 0.9cqw; font-size: 1.3cqw; }
.tc-newsletters .tc-newsletters__notif b { font-size: 2.3cqw; color: #FFFFFF; }
.tc-newsletters__notif em { font-style: normal; font-size: 2.2cqw; color: rgba(255, 255, 255, 0.85); }
.tc-newsletters__boutons { position: absolute; left: 2.2cqw; right: 2.2cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; }
.tc-newsletters__boutons i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }

/* ouverture par canal */
.tc-newsletters__taux {
  position: absolute;
  left: 82cqw; right: 1.5cqw; top: 5cqw; bottom: 5cqw;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4cqw;
}
.tc-newsletters__canal { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.tc-newsletters__anneau {
  --c: var(--accent);
  position: relative;
  display: grid; place-items: center;
  width: 11cqw; height: 11cqw; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0);
}
.tc-newsletters__anneau--appli { --c: var(--sauge); }
.tc-newsletters__anneau::before { content: ''; position: absolute; inset: 1.2cqw; border-radius: 50%; background: var(--surface); }
.tc-newsletters__anneau b { position: relative; font-size: 2.5cqw; white-space: nowrap; }
.tc-newsletters__canal small { display: flex; align-items: center; gap: 0.6cqw; font-size: 2cqw; font-weight: 600; color: var(--encre-3); white-space: nowrap; }
.tc-newsletters__canal small i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--accent); }
.tc-newsletters__canal small i.est-appli { background: var(--sauge); }

/* carte : paiements */
/* Paiements et finance : le mois en cours — chiffre d'affaires jour par jour (encaissé,
   puis à venir en hachures), total prévu ventilé, derniers paiements avec leur état.
   Tailles en cqh : la miniature est en 16:10. */
.tc-paiements {
  position: absolute; inset: 0;
  container-type: size;
  background: var(--surface-2);
}
.tc-paiements__in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 4cqh;
  padding: 5cqh 4.5cqw;
  color: var(--encre-2);
}
.tc-paiements__tete { display: flex; align-items: baseline; gap: 2.4cqw; }
.tc-paiements__titre { font-family: var(--serif); font-size: 7.4cqh; font-weight: 400 !important; line-height: 1; }
.tc-paiements__mois { font-size: 3.6cqh; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-paiements__bouton { align-self: center; margin-left: auto; padding: 1.3cqh 2.8cqw; border-radius: 99px; background: var(--accent); color: #FFFFFF; font-size: 3.5cqh; font-weight: 600; white-space: nowrap; }

.tc-paiements__haut { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 3cqw; }
.tc-paiements__graphe {
  display: flex; flex-direction: column; min-height: 0;
  padding: 2.6cqh 2.6cqw 2cqh;
  border: 1px solid var(--trait); border-radius: 4cqh; background: var(--surface);
}
.tc-paiements__legende { font-size: 3.4cqh; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-paiements__barres { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 0.45cqw; margin-top: 6cqh; }
.tc-paiements__barres i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tc-paiements__barres i.avenir {
  background: repeating-linear-gradient(135deg, #D9C3C0 0 2px, var(--surface) 2px 4px);
  border: 1px solid #D9C3C0;
  border-bottom: 0;
}
.tc-paiements__auj { position: relative; flex: 0 0 1.5px; align-self: stretch; border-radius: 1px; background: var(--encre); }
.tc-paiements__auj::after {
  content: 'auj.'; position: absolute; top: -4.4cqh; left: 50%; transform: translateX(-50%);
  font-size: 3.1cqh; font-weight: 600; color: var(--encre); white-space: nowrap;
}
.tc-paiements__x { display: flex; justify-content: space-between; margin-top: 1cqh; padding-top: 0.8cqh; border-top: 1px solid var(--surface-4); font-size: 3cqh; color: var(--encre-3); }

.tc-paiements__somme {
  display: flex; flex-direction: column; justify-content: center; gap: 1.6cqh;
  padding: 2.6cqh 2.8cqw;
  border: 1px solid var(--trait); border-radius: 4cqh; background: #F4EAE4;
}
.tc-paiements__total { display: flex; flex-direction: column; gap: 0.8cqh; padding-bottom: 1.8cqh; border-bottom: 1px solid var(--trait); }
.tc-paiements__total span { font-size: 3.2cqh; font-weight: 600; color: var(--encre-4); }
.tc-paiements__total b { font-size: 7.4cqh; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.tc-paiements__ligne { display: flex; align-items: center; gap: 1.4cqw; font-size: 3.5cqh; color: var(--encre-2); white-space: nowrap; }
.tc-paiements__ligne i { width: 2.6cqh; height: 2.6cqh; border-radius: 50%; flex: none; }
.tc-paiements__ligne i.ok { background: var(--sauge); }
.tc-paiements__ligne i.echec { background: var(--alerte); }
.tc-paiements__ligne i.avenir { background: repeating-linear-gradient(135deg, #B99894 0 1.5px, var(--surface) 1.5px 3px); box-shadow: inset 0 0 0 1px #B99894; }
.tc-paiements__ligne b { margin-left: auto; font-size: 3.5cqh; }

.tc-paiements__liste { display: grid; border: 1px solid var(--trait); border-radius: 4cqh; background: var(--surface); overflow: hidden; }
.tc-paiements__rang {
  display: grid; grid-template-columns: 12% 1fr auto 22%; align-items: center; gap: 2.4cqw;
  padding: 1.35cqh 3cqw; font-size: 3.6cqh;
}
.tc-paiements__rang + .tc-paiements__rang { border-top: 1px solid var(--surface-4); }
.tc-paiements__date { font-size: 3.3cqh; color: var(--encre-3); }
.tc-paiements__qui { color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-paiements__rang b { font-size: 3.5cqh; text-align: right; }
.tc-paiements__statut { display: inline-flex; align-items: center; gap: 1.2cqw; color: var(--sauge); font-weight: 600; white-space: nowrap; }
.tc-paiements__statut::before { content: ''; width: 2.4cqh; height: 2.4cqh; border-radius: 50%; background: currentColor; flex: none; }
.tc-paiements__statut--cours { color: #8A6A3A; }
.tc-paiements__statut--echec { color: var(--alerte); }

/* carte : partenaires */
/* Partenaires externes : l'écran de réglage (une ligne par partenaire branché) et, dessous,
   ce qui arrive dans le planning du studio. Pastilles de marque neutres, sans logo. */
.tc-partenaires { position: absolute; inset: 0; }
.tc-partenaires__dedans {
  height: 100%;
  display: flex; flex-direction: column; gap: 2cqw;
  padding: 3.6cqw 4.5cqw;
  font-size: 2.4cqw;
  line-height: 1.2;
}
.tc-partenaires svg { width: 1em; height: 1em; flex: none; }
.tc-partenaires__tete { display: flex; align-items: center; justify-content: space-between; }
.tc-partenaires__compte { font-size: 2.3cqw; font-weight: 600; color: var(--encre-4); }
.tc-partenaires__nouveau {
  padding: 0.9cqw 2.2cqw; border-radius: 99px;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.2cqw; font-weight: 600;
}

/* une ligne par partenaire */
.tc-partenaires__ligne {
  --fond: var(--sauge-fond);
  --ton: var(--sauge);
  flex: none;
  display: grid; grid-template-columns: 13.5cqw minmax(0, 1fr); gap: 1.8cqw;
  height: 13.6cqw;
  padding: 1.4cqw;
  border: 1px solid var(--trait);
  border-radius: 2.8cqw;
  background: var(--surface);
}
.tc-partenaires__ligne--cp { --fond: var(--lavande); --ton: #5B4760; }
.tc-partenaires__plaque {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.2cqw 1.4cqw 1.3cqw;
  border-radius: 2cqw;
  background: var(--fond);
  color: var(--ton);
}
.tc-partenaires__plaque > span { font-size: 2.1cqw; font-weight: 600; line-height: 1; }
.tc-partenaires__plaque i {
  display: grid; place-items: center;
  width: 5.6cqw; height: 5.6cqw;
  border-radius: 1.6cqw;
  background: rgba(255, 253, 251, 0.7);
  font-size: 3cqw;
}
.tc-partenaires__corps { display: flex; flex-direction: column; justify-content: center; gap: 1.2cqw; min-width: 0; padding-right: 1cqw; }
.tc-partenaires__haut { display: flex; align-items: center; gap: 1.8cqw; min-width: 0; }
.tc-partenaires .tc-partenaires__nom { font-size: 3.2cqw; letter-spacing: -0.01em; white-space: nowrap; }
.tc-partenaires__etat {
  padding: 0.5cqw 1.4cqw; border-radius: 99px;
  background: var(--sauge-fond); color: var(--sauge);
  font-size: 1.95cqw; font-weight: 600; white-space: nowrap;
}
.tc-partenaires__etat--info { background: var(--lavande); color: #5B4760; }
.tc-partenaires__chiffres { font-size: 2.2cqw; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-partenaires .tc-partenaires__chiffres b { color: var(--encre-2); }

/* ce qui arrive dans le planning */
.tc-partenaires__flux {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5cqw 2cqw;
  padding-top: 1.8cqw;
  border-top: 1px dashed var(--trait-fort);
}
.tc-partenaires__libelle { grid-column: 1 / -1; display: flex; align-items: center; gap: 1cqw; font-size: 2.1cqw; font-weight: 600; color: var(--encre-4); }
.tc-partenaires__libelle svg { color: var(--accent); }
.tc-partenaires__resa {
  display: flex; align-items: center; gap: 1.5cqw; min-width: 0;
  padding: 1.3cqw 1.6cqw;
  border-radius: 2.2cqw;
  background: var(--surface-2);
  box-shadow: inset 0.6cqw 0 0 #A88D63;
}
.tc-partenaires__source {
  display: grid; place-items: center; flex: none;
  width: 5.2cqw; height: 5.2cqw; border-radius: 50%;
  background: var(--sauge-fond); color: var(--sauge);
  font-size: 1.85cqw; font-weight: 600;
}
.tc-partenaires__resa--cp .tc-partenaires__source { background: var(--lavande); color: #5B4760; }
.tc-partenaires__resa-texte { display: grid; min-width: 0; line-height: 1.2; }
.tc-partenaires .tc-partenaires__resa-texte b { font-size: 2.4cqw; white-space: nowrap; }
.tc-partenaires__resa-texte small { font-size: 1.9cqw; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-partenaires__ok {
  display: grid; place-items: center; flex: none; margin-left: auto;
  width: 4.4cqw; height: 4.4cqw; border-radius: 50%;
  background: var(--sauge);
}
.tc-partenaires__ok svg { width: 2.6cqw; height: 2.6cqw; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tc-partenaires__places { flex: none; margin-left: auto; font-size: 2.1cqw; font-weight: 600; color: var(--encre-2); }

/* carte : planning */
/* Planning : la semaine du calendrier, 7 h → 21 h, chaque séance à son heure et à sa durée
   (grille au quart d'heure), teinte de sa catégorie, jauge de remplissage, trait « maintenant »
   dans la colonne du jour et fiche de la séance ouverte. Tout est en cqw : la miniature garde
   sa composition de 1440 à 390 px. */
.tc-planning {
  --tc-axe: 6.4cqw;
  position: absolute;
  inset: 2.6cqw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  overflow: hidden;
  background: var(--surface);
  font-size: 1.9cqw;
  line-height: 1.2;
  color: var(--encre-2);
}

.tc-planning__tete {
  display: grid;
  grid-template-columns: var(--tc-axe) repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--surface-4);
  background: var(--surface-2);
}
.tc-planning__jour {
  display: flex; align-items: center; justify-content: center; gap: 0.8cqw;
  padding: 1.3cqw 0;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-planning__jour--auj b { padding: 0.2cqw 1cqw; border-radius: 99px; background: var(--accent); color: #FFFFFF !important; }

/* 14 heures × 4 quarts d'heure, un filet toutes les deux heures */
.tc-planning__corps {
  position: relative;
  display: grid;
  grid-template-columns: var(--tc-axe) repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(56, minmax(0, 1fr));
  min-height: 0;
  background: repeating-linear-gradient(to bottom, var(--surface-4) 0 1px, transparent 1px calc(100% / 7));
}
.tc-planning__heure {
  grid-column: 1;
  grid-row-end: span 4;
  padding: 0.4cqw 0.9cqw 0 0;
  font-size: 1.65cqw;
  line-height: 1;
  text-align: right;
  color: var(--encre-3);
}
.tc-planning__col { grid-row: 1 / -1; border-left: 1px solid var(--surface-4); }
.tc-planning__col--auj { background: #FAF0EB; }

/* séance : teinte de la catégorie, liseré, jauge en pied */
.tc-planning__seance {
  --c: #A87A78;
  --fond: #F3E6E1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4cqw;
  min-width: 0;
  margin: 0.3cqw 0.35cqw;
  padding: 0.45cqw 0.6cqw 0 1.1cqw;
  overflow: hidden;
  border-radius: 1.1cqw;
  background: var(--fond);
  box-shadow: inset 0.5cqw 0 0 var(--c);
}
.tc-planning__seance--mat { --c: #A88D63; --fond: #F1EADF; }
.tc-planning__seance--yoga { --c: #6F8572; --fond: #E6EBE2; }
.tc-planning__seance--doux { --c: #85708A; --fond: #EEE6EE; }
.tc-planning__seance--atelier { --c: var(--accent); --fond: #F4EAE4; }
.tc-planning__seance b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.75cqw;
}
.tc-planning__seance em { flex: none; font-style: normal; font-size: 1.65cqw; color: var(--encre-3); }
.tc-planning__seance::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: var(--f, 0%);
  height: 0.55cqw;
  background: var(--c);
}
/* séance haute : nom, puis heure et places sur la ligne du dessous */
.tc-planning__seance--haut { flex-direction: column; justify-content: flex-start; }
.tc-planning__seance--haut b { max-width: 100%; }
.tc-planning__seance > span { display: flex; justify-content: space-between; gap: 0.5cqw; width: 100%; margin-top: 0.2cqw; font-size: 1.6cqw; color: var(--encre-3); white-space: nowrap; }
.tc-planning__seance > span time { min-width: 0; overflow: hidden; }

/* complète : compteur en gras, jauge pleine et foncée */
.tc-planning__seance--complet em { font-weight: 600; color: var(--accent); }
.tc-planning__seance--complet::after { background: var(--encre); }

/* annulée faute d'inscrits : hachures et nom barré */
.tc-planning__seance--annule {
  background: repeating-linear-gradient(135deg, #F6E3DF 0 0.8cqw, var(--surface) 0.8cqw 1.6cqw);
  box-shadow: inset 0.5cqw 0 0 var(--alerte), inset 0 0 0 1px #EBC9C2;
}
.tc-planning__seance--annule b { color: var(--alerte) !important; text-decoration: line-through; }
.tc-planning__seance--annule em { color: var(--alerte); }

/* séance ouverte dans la fiche */
.tc-planning__seance--choisie { box-shadow: inset 0.5cqw 0 0 var(--c), 0 0 0 1.5px var(--accent); }

/* maintenant : trait dans la colonne du jour */
.tc-planning__maintenant { position: relative; z-index: 2; grid-row: 1 / -1; grid-column: 4; pointer-events: none; }
.tc-planning__maintenant::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--t) * 100%);
  height: 2px;
  margin-top: -1px;
  background: var(--encre);
}
.tc-planning__maintenant::after {
  content: '';
  position: absolute;
  left: -0.8cqw;
  top: calc(var(--t) * 100%);
  width: 1.6cqw; height: 1.6cqw;
  margin-top: -0.8cqw;
  border-radius: 50%;
  background: var(--encre);
}

/* fiche de la séance ouverte */
.tc-planning__fiche {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1cqw;
  margin: 0 1.2cqw 0 1.8cqw;
  padding: 1.5cqw 1.7cqw;
  border: 1px solid var(--trait);
  border-radius: 2cqw;
  background: var(--surface);
  box-shadow: 0 2cqw 5cqw -1.6cqw rgba(52, 38, 42, 0.38);
}
.tc-planning__fiche::before {
  content: '';
  position: absolute;
  left: -0.9cqw;
  bottom: 12%;
  width: 1.6cqw; height: 1.6cqw;
  border-left: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  background: var(--surface);
  transform: rotate(45deg);
}
.tc-planning__fiche-quand { font-size: 1.65cqw; color: var(--encre-3); white-space: nowrap; }
.tc-planning__fiche-titre { display: flex; align-items: baseline; gap: 1cqw; white-space: nowrap; color: var(--encre-3); }
.tc-planning__fiche-titre b { padding-left: 1cqw; box-shadow: inset 0.5cqw 0 0 #A87A78; font-size: 2.3cqw; }
.tc-planning__fiche-places { display: flex; align-items: center; gap: 1cqw; }
.tc-planning__fiche-places i { position: relative; flex: 1; height: 1cqw; border-radius: 1cqw; background: var(--surface-3); overflow: hidden; }
.tc-planning__fiche-places i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--f); border-radius: inherit; background: var(--accent); }
.tc-planning__fiche-places b { font-size: 1.8cqw; }
.tc-planning__fiche-qui { display: flex; align-items: center; }
.tc-planning__fiche-qui .tc-av { width: 4.6cqw; height: 4.6cqw; margin-right: -0.8cqw; font-size: 1.7cqw; box-shadow: 0 0 0 1.5px var(--surface); }
.tc-planning__fiche-qui em { margin-left: 1.8cqw; font-style: normal; font-size: 1.7cqw; color: var(--encre-3); }

/* carte : prospection */
/* Prospection : les stades du CRM en colonnes, une fiche glissée de « Découverte 2 »
   vers « Paiement ». Tout est en cqw : même composition de 1440 à 390 px. */
.tc-prospection {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  padding: 3.2cqw 3.2cqw 0;
  font-size: 2.45cqw;
  line-height: 1.25;
  color: var(--encre-2);
}

/* bandeau de page : titre, motif du logo, bouton */
.tc-prospection__bandeau {
  position: relative;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 11.5cqw;
  padding: 0 3.2cqw;
  border: 1px solid var(--trait);
  border-radius: 3cqw;
  background: linear-gradient(110deg, #F6ECE7, var(--surface) 58%);
}
.tc-prospection__forme { position: absolute; right: 16cqw; top: -4cqw; width: 22cqw; height: auto; fill: #F0E2DC; }
.tc-prospection__titre { position: relative; font-family: var(--serif); font-size: 5.2cqw; font-weight: 400 !important; line-height: 1; }
.tc-prospection__bouton {
  position: relative;
  padding: 1.3cqw 2.8cqw;
  border-radius: 99px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 2.2cqw;
  font-weight: 600;
  white-space: nowrap;
}

/* colonnes de stades */
.tc-prospection__tableau {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.9cqw;
}
.tc-prospection__col {
  display: flex;
  flex-direction: column;
  gap: 1.35cqw;
  min-width: 0;
  padding: 0 0.9cqw;
  margin: 0 -0.9cqw;
  border-radius: 2.2cqw 2.2cqw 0 0;
}
.tc-prospection__tete {
  display: flex;
  align-items: baseline;
  gap: 1cqw;
  margin: 0 0 0.4cqw;
  padding: 0.9cqw 0 1.1cqw;
  border-bottom: 1px solid var(--surface-4);
  font-weight: 600;
  color: var(--encre);
  white-space: nowrap;
  overflow: hidden;
}
.tc-prospection__tete i { font-style: normal; font-size: 0.86em; font-weight: 500; color: var(--encre-3); }

/* fiche prospect : nom, puis ancienneté à droite */
.tc-prospection__fiche {
  display: block;
  padding: 1.5cqw 1.3cqw 1.2cqw 1.6cqw;
  border-radius: 1.6cqw;
  background: var(--surface);
  box-shadow: inset 0.6cqw 0 0 var(--trait-fort), 0 0 0 1px var(--surface-4);
}
.tc-prospection__fiche b {
  display: block;
  font-weight: 500 !important;
  color: var(--encre-2) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-prospection__fiche em {
  display: block;
  margin-top: 0.2cqw;
  text-align: right;
  font-style: normal;
  font-size: 0.88em;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-prospection__fiche.est-nouveau { background: #F3E9D8; box-shadow: inset 0.6cqw 0 0 #B8955A; }
.tc-prospection__fiche.est-nouveau b { color: #8A6A3A !important; }
.tc-prospection__fiche.est-en-retard { background: #F6E3DF; box-shadow: inset 0.6cqw 0 0 var(--alerte); }
.tc-prospection__fiche.est-en-retard b, .tc-prospection__fiche.est-en-retard em { color: var(--alerte) !important; }
.tc-prospection__fiche.est-gagne { background: var(--sauge-fond); box-shadow: inset 0.6cqw 0 0 var(--sauge); }
.tc-prospection__fiche.est-gagne b { color: var(--sauge) !important; }
.tc-prospection__fiche.est-prevu { background: var(--lavande); box-shadow: inset 0.6cqw 0 0 #85708A; }
.tc-prospection__fiche.est-prevu b, .tc-prospection__fiche.est-prevu em { color: #5B4760 !important; }

/* glisser-déposer : place laissée vide, colonne cible éclairée, fiche en vol */
.tc-prospection__vide { height: 8.2cqw; border-radius: 1.6cqw; border: 1px dashed var(--trait); }
.tc-prospection__col.est-cible { background: linear-gradient(180deg, #F4EAE4, transparent 85%); }
.tc-prospection__col.est-cible .tc-prospection__tete { border-bottom-color: var(--trait-fort); }
.tc-prospection__ombre { height: 8.2cqw; border-radius: 1.6cqw; border: 1px dashed var(--trait-fort); background: #EFE2DC; }
.tc-prospection__glisse {
  position: absolute;
  left: 67.5cqw;
  top: 44cqw;
  width: 17.5cqw;
  transform: rotate(-4deg);
  z-index: 2;
}
.tc-prospection__glisse .tc-prospection__fiche {
  box-shadow: inset 0.6cqw 0 0 #85708A, 0 0 0 1px var(--trait-fort), 0 2.6cqw 4.4cqw -1.6cqw rgba(52, 38, 42, 0.45);
}
.tc-prospection__curseur {
  position: absolute;
  right: -2.2cqw;
  bottom: -3.4cqw;
  width: 3.4cqw;
  height: auto;
  transform: rotate(4deg);
  fill: var(--encre);
  stroke: var(--surface);
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(52, 38, 42, 0.35));
}

/* carte : regularite */
/* Régularité : podium des séances à vie (paliers du studio, séries de semaines en cours) et
   la 4e place, à quatre séances du palier suivant. Paliers en pastilles arrondies teintées,
   séries marquées de la vague Flowire. Tout est en cqw. */
.tc-regularite { position: absolute; inset: 0; }
.tc-regularite__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tc-regularite__panneau {
  position: absolute; inset: 2.6cqw;
  display: flex; flex-direction: column; gap: 1.8cqw;
  padding: 2cqw 3.4cqw 2.2cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface);
  font-size: 2cqw; line-height: 1.2; color: var(--encre-2);
}

.tc-regularite__tete { display: flex; align-items: baseline; gap: 1.2cqw; }
.tc-regularite__titre { font-family: var(--serif); font-size: 3.6cqw; line-height: 1; color: var(--encre); }
.tc-regularite__sous { font-size: 1.8cqw; color: var(--encre-3); }
.tc-regularite__portee {
  align-self: center;
  margin-left: auto;
  padding: 0.5cqw 1.5cqw;
  border: 1px solid var(--trait); border-radius: 5cqw;
  background: var(--surface-2);
  font-size: 1.7cqw; color: var(--encre-2); white-space: nowrap;
}

/* podium : 2 · 1 · 3 */
.tc-regularite__scene {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1.14fr 1fr; align-items: end; gap: 2.2cqw;
  border-bottom: 2px solid var(--trait);
}
.tc-regularite__col { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.tc-regularite__av {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 9cqw; height: 9cqw; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.5cqw; font-weight: 600;
  box-shadow: 0 0 0 0.45cqw var(--surface);
}
.tc-regularite__col--1 .tc-regularite__av { width: 11cqw; height: 11cqw; font-size: 3cqw; }
.tc-regularite__col--2 .tc-regularite__av { background: #6D5A6F; }
.tc-regularite__col--3 .tc-regularite__av { background: var(--sauge); }
.tc-regularite__av i {
  position: absolute; right: -0.5cqw; bottom: -0.5cqw;
  display: grid; place-items: center;
  width: 3.6cqw; height: 3.6cqw; border-radius: 50%;
  border: 0.45cqw solid var(--surface);
  font-style: normal; font-size: 1.8cqw; font-weight: 700; line-height: 1;
}
.tc-regularite__col--1 .tc-regularite__av i { background: #E4CF9F; color: #5C4520; }
.tc-regularite__col--2 .tc-regularite__av i { background: #E0D6D8; color: #4A3D40; }
.tc-regularite__col--3 .tc-regularite__av i { background: #DDB8A2; color: #5A3826; }

.tc-regularite__ligne { display: flex; align-items: center; gap: 0.8cqw; max-width: 100%; margin-top: 1.3cqw; }
.tc-regularite__ligne b { min-width: 0; font-size: 2.4cqw; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* série de semaines : la vague Flowire, sur fond sauge */
.tc-regularite__serie {
  display: inline-flex; align-items: center; gap: 0.6cqw; flex: none;
  padding: 0.3cqw 1cqw 0.3cqw 0.8cqw;
  border-radius: 5cqw;
  background: var(--sauge-fond); color: var(--sauge-fonce);
  font-size: 1.75cqw; font-weight: 600; white-space: nowrap;
}
.tc-regularite__serie svg { width: 2.4cqw; height: 0.9cqw; color: var(--sauge); }

/* palier : pastille arrondie teintée, nom choisi par le studio */
.tc-regularite__palier {
  --c: var(--accent); --fond: #EFE2DD; --bord: #DCC7C1;
  display: inline-flex; align-items: center; gap: 0.7cqw; flex: none;
  margin-top: 1.1cqw;
  padding: 0.55cqw 1.5cqw 0.55cqw 1cqw;
  border: 1px solid var(--bord); border-radius: 5cqw;
  background: var(--fond); color: var(--c);
  white-space: nowrap;
}
.tc-regularite__palier svg { width: 2.3cqw; height: 2.3cqw; }
.tc-regularite__palier em { font-family: var(--serif); font-size: 2.6cqw; font-style: italic; line-height: 1; }
.tc-regularite__palier b { font-size: 2cqw; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.tc-regularite__palier--lotus { --c: #6D5A6F; --fond: #EEE6EE; --bord: #DCCFDC; }
.tc-regularite__palier--pousse { --c: var(--sauge); --fond: var(--sauge-fond); --bord: #CBD8C8; }

/* marches du podium */
.tc-regularite__marche {
  width: 100%; margin-top: 1.4cqw;
  display: grid; place-items: center;
  border: 1px solid var(--trait); border-bottom: 0;
  border-radius: 1.6cqw 1.6cqw 0 0;
  font-family: var(--serif); font-size: 4.2cqw; line-height: 1;
}
.tc-regularite__col--1 .tc-regularite__marche { height: 12.5cqw; background: linear-gradient(180deg, #F2E7D2, var(--surface)); border-color: #E6D4B0; color: #8A6A3A; }
.tc-regularite__col--2 .tc-regularite__marche { height: 8.6cqw; background: linear-gradient(180deg, #F0E8EA, var(--surface)); border-color: #E0D6D8; color: var(--encre-3); }
.tc-regularite__col--3 .tc-regularite__marche { height: 5.4cqw; background: linear-gradient(180deg, #F3E3D9, var(--surface)); border-color: #E6CDBE; color: #8C5E45; }

/* 4e place : la suivante, à quatre séances du palier Lotus */
.tc-regularite__suivante {
  display: flex; align-items: center; gap: 1.3cqw;
  padding: 1.1cqw 1.6cqw;
  border: 1px solid var(--trait-fort); border-radius: 1.8cqw;
  background: var(--surface-2);
}
.tc-regularite__rang { width: 1.4cqw; font-family: var(--serif); font-size: 2.8cqw; line-height: 1; color: var(--encre-3); }
.tc-regularite__av--petit { width: 4.8cqw; height: 4.8cqw; font-size: 1.6cqw; background: #5E4B4E; box-shadow: none; }
.tc-regularite__qui {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2cqw; row-gap: 0.5cqw;
}
.tc-regularite__qui b { font-size: 2.1cqw; color: var(--encre); white-space: nowrap; }
.tc-regularite__qui small { grid-column: 1 / -1; font-size: 1.8cqw; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-regularite__jauge { position: relative; height: 0.9cqw; border-radius: 5cqw; background: var(--surface-4); overflow: hidden; }
.tc-regularite__jauge i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--sauge), #85708A); }
.tc-regularite__suivante .tc-regularite__palier { margin-top: 0; }

/* carte : sms */
/* SMS : bandeau « Vos SMS » et ses compteurs, SMS reçus côté élève,
   journal des envois avec leur source et l'accusé de remise.
   Tout est en cqw : même composition de 1440 à 390 px. */
.tc-sms {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 2.4cqw;
  font-size: 2cqw;
  line-height: 1.25;
  color: var(--encre-2);
}
.tc-sms__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tc-sms svg { flex: none; }

/* bandeau */
.tc-sms__bandeau {
  position: relative;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 9.8cqw;
  padding: 0 2.6cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: linear-gradient(110deg, #F6ECE7, var(--surface) 58%);
}
.tc-sms__forme { position: absolute; right: 30cqw; top: -3cqw; width: 18cqw; height: auto; fill: #F0E2DC; }
.tc-sms__bandeau-t { position: relative; display: flex; flex-direction: column; gap: 0.5cqw; margin-right: auto; min-width: 0; }
.tc-sms__surtitre { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.75cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-sms__surtitre i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--sauge); }
.tc-sms__titre { font-family: var(--serif); font-size: 4.2cqw; line-height: 1; color: var(--encre); white-space: nowrap; }
.tc-sms__titre em { color: var(--encre-4); }
.tc-sms__compte {
  position: relative;
  display: flex; flex-direction: column; gap: 0.3cqw;
  padding: 1cqw 1.8cqw;
  border: 1px solid var(--surface-4);
  border-radius: 1.6cqw;
  background: var(--surface);
}
.tc-sms__compte small { font-size: 1.65cqw; font-weight: 500; color: var(--encre-3); white-space: nowrap; }
.tc-sms__compte b { font-size: 2.5cqw; line-height: 1; white-space: nowrap; }
.tc-sms__compte em { font-style: normal; font-size: 1.7cqw; font-weight: 500; color: var(--encre-3); }

.tc-sms__corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 1.8cqw; }

/* côté élève : les SMS tels qu'il les reçoit */
.tc-sms__telephone {
  display: flex; flex-direction: column; gap: 1.3cqw;
  min-height: 0; overflow: hidden;
  padding: 1.8cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface-3);
}
.tc-sms__expediteur {
  display: flex; flex-direction: column; align-items: center; gap: 0.3cqw;
  padding-bottom: 1.1cqw;
  border-bottom: 1px solid var(--trait);
}
.tc-sms__logo {
  display: grid; place-items: center;
  width: 4.4cqw; height: 4.4cqw; margin-bottom: 0.2cqw;
  border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--serif); font-size: 2.6cqw; line-height: 1;
}
.tc-sms__expediteur b { font-size: 2.1cqw; }
.tc-sms__expediteur small { font-size: 1.5cqw; color: var(--encre-3); }
.tc-sms__bulle {
  align-self: flex-start;
  max-width: 94%;
  padding: 1.1cqw 1.4cqw;
  border-radius: 2cqw 2cqw 2cqw 0.5cqw;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(52, 38, 42, .1);
  font-size: 1.75cqw; line-height: 1.4;
  color: var(--encre);
}
.tc-sms__bulle time { display: block; margin-top: 0.4cqw; font-size: 1.4cqw; color: var(--encre-3); text-align: right; }

/* journal */
.tc-sms__journal {
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface);
}
.tc-sms__cap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.4cqw 1.8cqw 1.1cqw;
  font-family: var(--serif); font-size: 2.8cqw; line-height: 1;
  color: var(--encre);
}
.tc-sms__cap small { font-family: var(--sans); font-size: 1.55cqw; color: var(--encre-3); }
.tc-sms__ligne {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.2cqw;
  padding: 1.25cqw 1.8cqw;
  border-top: 1px solid var(--surface-4);
}
.tc-sms__ligne b { font-size: 1.95cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sms__source {
  display: flex; align-items: center; gap: 0.6cqw;
  padding: 0.35cqw 1cqw;
  border-radius: 99px;
  background: var(--surface-3);
  font-size: 1.65cqw; font-weight: 600;
  color: var(--encre-2);
  white-space: nowrap;
}
.tc-sms__source svg { width: 1.8cqw; height: 1.8cqw; color: var(--accent); }
.tc-sms__source.est-main { background: var(--lavande); color: #5B4760; }
.tc-sms__source.est-main svg { color: #5B4760; }
.tc-sms__remis {
  padding: 0.35cqw 1cqw;
  border-radius: 99px;
  background: var(--sauge-fond); color: var(--sauge);
  font-size: 1.55cqw; font-weight: 600;
}
.tc-sms__routeur {
  margin-top: auto;
  display: flex; align-items: center; gap: 1cqw;
  padding: 1.2cqw 1.8cqw;
  border-top: 1px solid var(--surface-4);
  background: #F6ECE7;
  font-size: 1.65cqw;
  color: var(--encre-2);
}
.tc-sms__routeur i {
  display: grid; place-items: center;
  width: 2.8cqw; height: 2.8cqw;
  border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
}
.tc-sms__routeur svg { width: 1.7cqw; height: 1.7cqw; }

/* carte : statistiques */
/* Statistiques : indicateurs clés (CA, clients actifs, rétention) avec leur tendance,
   CA d'une année sur l'autre (2026 contre 2025, le creux de l'été compris) et carte de
   chaleur du remplissage par créneau, du plus clair au complet.
   Tout est en cqw : même composition de 1440 à 390 px. */
.tc-statistiques {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  gap: 2.2cqw;
  padding: 2.8cqw 3.2cqw;
  font-size: 2.3cqw;
  line-height: 1.2;
  color: var(--encre-2);
  background: var(--surface-2);
}

/* en-tête : titre, mois, choix de période */
.tc-statistiques__tete { flex: none; display: flex; align-items: center; gap: 2cqw; }
.tc-statistiques__titre { font-family: var(--serif); font-size: 4.4cqw; font-weight: 400 !important; line-height: 1; white-space: nowrap; }
.tc-statistiques__mois { font-size: 2.1cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-statistiques__periodes {
  margin-left: auto;
  display: flex;
  padding: 0.5cqw;
  border: 1px solid var(--trait);
  border-radius: 99px;
  background: var(--surface);
}
.tc-statistiques__periodes i {
  padding: 0.6cqw 1.5cqw;
  border-radius: 99px;
  font-style: normal;
  font-size: 2cqw;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-statistiques__periodes i.est-choisie { background: var(--accent); color: #FFFFFF; font-weight: 600; }

/* trois indicateurs avec tendance et courbe de fond */
.tc-statistiques__kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8cqw; }
.tc-statistiques__kpi {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 0.8cqw;
  padding: 1.5cqw 1.9cqw 1.7cqw;
  border: 1px solid var(--trait);
  border-radius: 2.4cqw;
  background: var(--surface);
}
.tc-statistiques__lib {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1cqw;
  font-size: 2cqw; font-weight: 500;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-statistiques__lib em {
  padding: 0.2cqw 1cqw;
  border-radius: 99px;
  font-style: normal; font-weight: 600; font-size: 1.95cqw;
  color: var(--sauge);
  background: var(--sauge-fond);
}
.tc-statistiques__kpi b { position: relative; font-size: 4.3cqw; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.tc-statistiques__courbe { position: absolute; right: 0; bottom: 0.6cqw; width: 42%; height: 3.8cqw; overflow: visible; }
.tc-statistiques__courbe polyline { fill: none; stroke: #D9C3C0; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* bas : courbe des deux années et carte de chaleur */
.tc-statistiques__bas { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.42fr 1fr; gap: 1.8cqw; }
.tc-statistiques__bloc {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  padding: 1.6cqw 2cqw 1.5cqw;
  border: 1px solid var(--trait);
  border-radius: 2.4cqw;
  background: var(--surface);
}
.tc-statistiques__legende { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1cqw; }
.tc-statistiques__legende > span { font-size: 2.1cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-statistiques__legende em { font-style: normal; font-size: 1.95cqw; color: var(--encre-3); white-space: nowrap; }
.tc-statistiques__legende em b { font-size: 2.2cqw; color: var(--sauge) !important; }
.tc-statistiques__chaleur .tc-statistiques__legende em b { color: var(--encre) !important; }

.tc-statistiques__series { flex: none; display: flex; gap: 2cqw; margin-top: 0.8cqw; font-size: 1.95cqw; color: var(--encre-3); }
.tc-statistiques__series span { display: inline-flex; align-items: center; gap: 0.8cqw; }
.tc-statistiques__series span::before { content: ''; width: 2.6cqw; height: 0; border-top: 0.45cqw solid var(--accent); border-radius: 1px; }
.tc-statistiques__series .est-n { color: var(--encre); }
.tc-statistiques__series .est-n1::before { border-top: 0.3cqw dashed #B99894; }

.tc-statistiques__trace { position: relative; flex: 1; min-height: 0; margin: 1.2cqw 0 0.6cqw; }
.tc-statistiques__trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tc-statistiques__grille { stroke: var(--surface-4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tc-statistiques__aire { fill: #F4EAE4; }
.tc-statistiques__n, .tc-statistiques__n1 { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tc-statistiques__n { stroke: var(--accent); stroke-width: 2.2; }
.tc-statistiques__n1 { stroke: #B99894; stroke-width: 1.4; stroke-dasharray: 3 3; }
.tc-statistiques__point {
  position: absolute;
  width: 2cqw; height: 2cqw;
  margin: -1cqw 0 0 -1cqw;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.6cqw var(--surface), 0 0 0 0.9cqw var(--trait-fort);
}
.tc-statistiques__valeur {
  position: absolute;
  transform: translate(calc(-100% - 1.6cqw), -118%);
  padding: 0.4cqw 1.1cqw;
  border-radius: 99px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.95cqw;
  white-space: nowrap;
}
.tc-statistiques__x {
  flex: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0 -2.3%;
  padding-top: 0.6cqw;
  border-top: 1px solid var(--surface-4);
  font-size: 1.95cqw;
  text-align: center;
  color: var(--encre-3);
}
.tc-statistiques__x .est-auj { color: var(--accent); font-weight: 600; }

/* carte de chaleur : du créneau peu rempli (clair) au complet (accent) */
.tc-statistiques__grilleh {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 6.6cqw repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(7, minmax(0, 1fr));
  gap: 0.45cqw;
  margin-top: 1cqw;
}
.tc-statistiques__j { font-size: 1.95cqw; text-align: center; color: var(--encre-3); }
.tc-statistiques__h { align-self: center; font-size: 1.9cqw; color: var(--encre-3); white-space: nowrap; }
.tc-statistiques__grilleh i, .tc-statistiques__echelle i { border-radius: 0.6cqw; }
.tc-statistiques__grilleh i.n0 { background: var(--surface-2); }
.tc-statistiques__grilleh .n1, .tc-statistiques__echelle .n1 { background: #F4EAE4; }
.tc-statistiques__grilleh .n2, .tc-statistiques__echelle .n2 { background: #E9D3CC; }
.tc-statistiques__grilleh .n3, .tc-statistiques__echelle .n3 { background: #D4B2AB; }
.tc-statistiques__grilleh .n4, .tc-statistiques__echelle .n4 { background: #A9827F; }
.tc-statistiques__grilleh .n5, .tc-statistiques__echelle .n5 { background: var(--accent); }
.tc-statistiques__grilleh i.est-choisie { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--encre); }
.tc-statistiques__echelle {
  flex: none;
  display: flex; align-items: center; gap: 0.5cqw;
  margin-top: 1.1cqw;
  font-size: 1.9cqw;
  color: var(--encre-3);
  white-space: nowrap;
}
.tc-statistiques__echelle i { flex: 1; height: 1.4cqw; }
.tc-statistiques__echelle span:first-child { margin-right: 0.4cqw; }
.tc-statistiques__echelle span:last-child { margin-left: 0.4cqw; }

/* carte : studios */
/* Plusieurs studios : le sélecteur de studios du logiciel ouvert sur « Chartrons », et la fiche
   d'une élève qui a un seul compte pour deux studios (abonnement dans l'un, carnet dans l'autre).
   cqw pour les tailles, cqh pour les espacements verticaux. */
.tc-studios {
  position: absolute; inset: 0;
  container-type: size;
  display: grid; grid-template-columns: 46% 1fr;
  background: var(--surface);
  color: var(--encre-2);
}
.tc-studios small { display: block; font-weight: 500; }

/* colonne du menu */
.tc-studios__cote {
  display: flex; flex-direction: column; gap: 3cqh;
  min-width: 0;
  padding: 5.5cqh 3.6cqw;
  background: var(--surface-2);
  border-right: 1px solid var(--surface-4);
}
.tc-studios__choix {
  display: flex; align-items: center; gap: 1.8cqw;
  padding: 2.4cqh 1.8cqw;
  border: 1px solid var(--trait-fort);
  border-radius: 2.2cqw;
  background: var(--surface);
  box-shadow: 0 0 0 0.6cqw #F4EAE4;
}
.tc-studios__logo {
  display: grid; place-items: center; flex: none;
  width: 6.6cqw; height: 6.6cqw; border-radius: 2cqw;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.4cqw; font-weight: 600;
}
.tc-studios__nom { flex: 1; min-width: 0; font-size: 3.1cqw; font-weight: 600; line-height: 1.2; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-studios__nom small { font-size: 2.1cqw; color: var(--accent); }
.tc-studios__chevron, .tc-studios__coche { flex: none; width: 2.8cqw; height: 2.8cqw; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-studios__chevron { color: var(--encre-3); }

.tc-studios__liste {
  display: grid; gap: 0.6cqh;
  padding: 2cqh 1.6cqw;
  border: 1px solid var(--trait);
  border-radius: 2.2cqw;
  background: var(--surface);
  box-shadow: 0 1.4cqw 3.6cqw -1.8cqw rgba(52, 38, 42, 0.3);
}
.tc-studios__titre { padding: 0.6cqh 1.4cqw 1.2cqh; font-size: 2.1cqw; font-weight: 600; color: var(--encre-4); }
.tc-studios__studio { display: flex; align-items: center; gap: 2cqw; padding: 1.6cqh 1.4cqw; border-radius: 1.6cqw; }
.tc-studios__studio.est-choisi { background: #F4EAE4; }
.tc-studios__point { flex: none; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--trait-fort); }
.tc-studios__studio.est-choisi .tc-studios__point { background: var(--accent); box-shadow: 0 0 0 0.8cqw #EBDCD5; }
.tc-studios__studio-nom { flex: 1; min-width: 0; font-size: 2.8cqw; font-weight: 600; line-height: 1.2; color: var(--encre); white-space: nowrap; }
.tc-studios__studio-nom small { font-size: 2.1cqw; color: var(--encre-3); }
.tc-studios__coche { color: var(--accent); stroke-width: 2; }

.tc-studios__menu { display: grid; gap: 2.4cqh; margin-top: auto; padding: 0 1.6cqw; }
.tc-studios__menu span { height: 1.4cqh; border-radius: 1cqh; background: var(--trait); }
.tc-studios__menu span:nth-child(1) { width: 70%; }
.tc-studios__menu span:nth-child(2) { width: 52%; }
.tc-studios__menu span:nth-child(3) { width: 62%; }

/* fiche de l'élève */
.tc-studios__fiche { display: flex; flex-direction: column; justify-content: center; gap: 2.8cqh; min-width: 0; padding: 5.5cqh 4.2cqw; }
.tc-studios__eleve { display: flex; align-items: center; gap: 2.4cqw; padding-bottom: 3cqh; border-bottom: 1px solid var(--surface-4); }
.tc-studios .tc-studios__avatar { position: relative; width: 9.4cqw; height: 9.4cqw; font-size: 3cqw; background: var(--accent); }
.tc-studios__avatar i { position: absolute; right: -0.2cqw; bottom: -0.2cqw; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; border: 0.6cqw solid var(--surface); background: var(--sauge); }
.tc-studios__id { flex: 1; min-width: 0; line-height: 1.25; }
.tc-studios__id b { font-size: 3.4cqw; }
.tc-studios__id small { font-size: 2.2cqw; color: var(--encre-3); white-space: nowrap; }

.tc-studios__lien {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 2cqw; row-gap: 0.6cqh;
  padding: 2.4cqh 2.6cqw;
  border: 1px solid var(--surface-4);
  border-radius: 2.2cqw;
  background: var(--surface-2);
}
.tc-studios__ou { font-size: 2.1cqw; font-weight: 600; color: var(--encre-4); }
.tc-studios__quoi { grid-row: 2; font-size: 3.2cqw; font-weight: 600; color: var(--encre); white-space: nowrap; }
.tc-studios__quoi small { display: inline; margin-left: 0.3em; font-size: 2.2cqw; color: var(--encre-3); }
.tc-studios__etiquette {
  grid-row: 1 / 3; grid-column: 2;
  padding: 0.8cqh 1.8cqw; border-radius: 99px;
  background: #EBDCD5; color: var(--accent);
  font-size: 2.1cqw; font-weight: 600; white-space: nowrap;
}
.tc-studios__etiquette--carnet { background: var(--lavande); color: #5B4760; }
.tc-studios__pied { display: flex; align-items: center; gap: 0.8cqw; font-size: 2.2cqw; font-weight: 600; color: var(--accent); }
.tc-studios__pied svg { width: 2.4cqw; height: 2.4cqw; }

/* carte : workflows */
/* Workflows : le canevas du designer, une chaîne d'étapes reliées (e-mail, SMS, cours réservé,
   garde-fou) et le menu « Ajouter une étape » ouvert sur le « + ». Tout est en cqw. */
.tc-workflows { position: absolute; inset: 0; }
.tc-workflows__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tc-workflows svg { display: block; width: 1em; height: 1em; }
.tc-workflows__toile {
  position: absolute; inset: 0;
  background-color: var(--surface-2);
  background-image: radial-gradient(circle, rgba(122, 97, 100, 0.2) 0.22cqw, transparent 0.27cqw);
  background-size: 4.4cqw 4.4cqw;
  background-position: 1.8cqw 1.8cqw;
}

/* colonne des étapes, reliées par un trait vertical */
.tc-workflows__fil {
  position: absolute; left: 5.5cqw; top: 2.8cqw; width: 52cqw;
  display: flex; flex-direction: column; align-items: stretch;
}
.tc-workflows__fil::before {
  content: ''; position: absolute; left: 50%; top: 4cqw; bottom: 2cqw;
  border-left: 0.3cqw solid var(--trait-fort);
}
.tc-workflows__lien { height: 1.5cqw; }
.tc-workflows__lien--fin { height: 1.2cqw; }

/* déclencheur : l'aplat fort de la marque */
.tc-workflows__declencheur {
  position: relative;
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 1.1cqw 1.8cqw;
  border-radius: 2.4cqw;
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1.2cqw 2.8cqw -1.4cqw rgba(52, 38, 42, 0.55);
}
.tc-workflows__declencheur-ic {
  display: grid; place-items: center; flex: none;
  width: 5.2cqw; height: 5.2cqw; border-radius: 1.8cqw;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2.8cqw;
}
.tc-workflows__declencheur b { display: block; font-size: 1.9cqw; font-weight: 600; color: #F1DFD9 !important; }
.tc-workflows__declencheur span span { display: block; font-size: 2.55cqw; font-weight: 600; line-height: 1.25; white-space: nowrap; }

/* carte d'étape : teinte de son canal, numéro posé sur le bord */
.tc-workflows__etape {
  --c: #85708A;
  --fond: #EEE6EE;
  position: relative;
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 0.9cqw 1.6cqw 0.9cqw 2.6cqw;
  border: 1px solid var(--trait);
  border-radius: 2.2cqw;
  background: var(--surface);
  box-shadow: inset 0.6cqw 0 0 var(--c), 0 1cqw 2.4cqw -1.6cqw rgba(52, 38, 42, 0.3);
}
.tc-workflows__n {
  position: absolute; left: -2.4cqw; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 3.9cqw; height: 3.9cqw; border-radius: 50%;
  border: 0.45cqw solid var(--surface-2);
  background: var(--c); color: #FFFFFF;
  font-size: 1.85cqw; font-weight: 600; line-height: 1;
}
.tc-workflows__ic {
  display: grid; place-items: center; flex: none;
  width: 4.8cqw; height: 4.8cqw; border-radius: 1.6cqw;
  background: var(--fond); color: var(--c);
  font-size: 2.6cqw;
}
.tc-workflows__txt { min-width: 0; }
.tc-workflows__txt small { display: block; font-size: 1.85cqw; font-weight: 600; color: var(--c); white-space: nowrap; }
.tc-workflows__txt span { display: block; font-size: 2.45cqw; font-weight: 600; color: var(--encre); line-height: 1.25; white-space: nowrap; }
.tc-workflows__etape--sms { --c: #8E6260; --fond: #F3E6E1; }
.tc-workflows__etape--stop { --c: var(--alerte); --fond: #F6E3DF; }

/* « Autour du cours », posé sur le trait */
.tc-workflows__sep { position: relative; z-index: 1; display: flex; justify-content: center; padding: 1cqw 0; }
.tc-workflows__sep span {
  padding: 0.5cqw 1.9cqw;
  border: 1px solid #D9CCDA;
  border-radius: 5cqw;
  background: var(--lavande);
  color: #5B4760;
  font-size: 1.85cqw; font-weight: 600; white-space: nowrap;
}

/* le cours réservé, repère de la chaîne */
.tc-workflows__cours {
  position: relative;
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 1.1cqw 1.8cqw;
  border-radius: 2.2cqw;
  background: var(--sauge);
  color: #FFFFFF;
  font-size: 2.4cqw;
}
.tc-workflows__cours b { font-size: 2.1cqw; font-weight: 600; color: #FFFFFF !important; }
.tc-workflows__cours span { margin-left: auto; font-size: 2.2cqw; font-weight: 600; white-space: nowrap; }

/* « + » actif, relié au menu d'ajout */
.tc-workflows__plus {
  position: relative; z-index: 1;
  align-self: center;
  display: grid; place-items: center;
  width: 4.4cqw; height: 4.4cqw; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  font-size: 2.4cqw;
  box-shadow: 0 0 0 0.9cqw #EBDCD5;
}
.tc-workflows__plus::after {
  content: ''; position: absolute; left: 100%; top: 50%;
  width: 28cqw; margin-left: 1.4cqw;
  border-top: 0.35cqw dashed var(--trait-fort);
}

/* colonne de droite : état et menu d'ajout */
.tc-workflows__cote {
  position: absolute; right: 4cqw; top: 2.8cqw; bottom: 2.8cqw; width: 33cqw;
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
}
.tc-workflows__etat {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 1cqw;
  padding: 0.7cqw 1.8cqw;
  border-radius: 5cqw;
  background: var(--sauge-fond);
  color: var(--sauge);
  font-size: 1.9cqw; font-weight: 600; white-space: nowrap;
}
.tc-workflows__etat i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0.6cqw rgba(77, 99, 80, 0.18); }

.tc-workflows__menu {
  padding: 1.3cqw;
  border: 1px solid var(--trait);
  border-radius: 2.6cqw;
  background: var(--surface);
  box-shadow: 0 2.4cqw 5cqw -2cqw rgba(52, 38, 42, 0.4);
}
.tc-workflows__menu-titre { padding: 0.4cqw 1cqw 1cqw; font-size: 1.9cqw; font-weight: 600; color: var(--encre-4); white-space: nowrap; }
.tc-workflows__choix {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 0.75cqw 1cqw;
  border-radius: 1.6cqw;
  font-size: 2.3cqw; font-weight: 600; color: var(--encre); white-space: nowrap;
}
.tc-workflows__choix--survol { background: var(--surface-3); }
.tc-workflows__choix-ic {
  display: grid; place-items: center; flex: none;
  width: 4.2cqw; height: 4.2cqw; border-radius: 1.4cqw;
  font-size: 2.3cqw;
  background: #EEE6EE; color: #85708A;
}
.tc-workflows__choix--sms .tc-workflows__choix-ic { background: #F3E6E1; color: #8E6260; }
.tc-workflows__choix--push .tc-workflows__choix-ic { background: var(--sauge-fond); color: var(--sauge); }
.tc-workflows__choix--tache .tc-workflows__choix-ic { background: #F3E9D8; color: #8A6A3A; }
.tc-workflows__choix--stop .tc-workflows__choix-ic { background: #F6E3DF; color: var(--alerte); }
