/* ============================================================
   FLOWIRE — écrans simulés du logiciel (classes « ec- »)
   Chaque écran reprend un écran réel du logiciel, déjà montré sur
   la landing Wodz (resources/landingPages/lp_v5/_tour/), avec les
   couleurs de Flowire et les données d'un studio fictif.
   Fragments HTML : _ecrans/<nom>.html, insérés au build à la place
   de <!--ecran:<nom>-->.
   ============================================================ */

.ec {
  --c-reformer: #EBDCD5;
  --c-mat: #EDE5D8;
  --c-yoga: #E1E5DC;
  --c-doux: #E9E0E9;
  --c-trait: #F0E5DF;
  font-size: 13px;
  line-height: 1.4;
  color: var(--encre-2);
}
.ec b, .ec strong { color: var(--encre); font-weight: 600; }

/* Fenêtre */
.fenetre {
  width: 100%;
  background: var(--surface);
  border: 1px solid #E8DAD3;
  border-radius: var(--r-grand);
  box-shadow: var(--ombre-fenetre);
  overflow: hidden;
  text-align: left;
}
.fenetre__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid var(--c-trait, #F0E5DF);
  font-size: 13px; color: var(--encre-3);
}
.fenetre__barre b { color: var(--encre); font-weight: 600; }
.fenetre__corps { padding: 26px; min-height: 520px; }

/* Briques communes */
.ec-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ec-titre { display: flex; flex-direction: column; gap: 2px; }
.ec-titre b { font-size: 20px; letter-spacing: -0.01em; }
.ec-titre span { color: var(--encre-3); }
.ec-puces { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--encre); }
.ec-puce { padding: 6px 10px; border-radius: 999px; background: var(--surface-3); white-space: nowrap; }
.ec-puce--actif { background: var(--accent); color: #FFFFFF; }
.ec-reformer { background: var(--c-reformer); }
.ec-mat { background: var(--c-mat); }
.ec-yoga { background: var(--c-yoga); }
.ec-doux { background: var(--c-doux); }
.ec-carte { border: 1px solid var(--c-trait); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.ec-carte__titre { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--encre); }
.ec-carte__titre span { font-size: 12px; font-weight: 500; color: var(--encre-3); }
.ec-sous { font-size: 12px; color: var(--encre-3); }
.ec-defile { overflow-x: auto; }
.ec-grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ec-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ec-kpi { border: 1px solid var(--c-trait); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ec-kpi span { font-weight: 500; color: var(--encre-3); }
.ec-kpi b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.ec-kpi i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--encre-3); }
.ec-hausse { color: var(--sauge) !important; }
.ec-baisse { color: var(--alerte) !important; }
span.ec-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ec-tag.ec-tag--ok { background: var(--sauge-fond); color: var(--sauge); }
.ec-tag.ec-tag--neutre { background: var(--surface-3); color: var(--encre-2); }
.ec-tag.ec-tag--alerte { background: #F6E3DF; color: var(--alerte); }
.ec-tag.ec-tag--attente { background: var(--lavande); color: #5B4760; }
.ec-bouton { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent); color: #FFFFFF; white-space: nowrap; }
.ec-bouton--clair { background: var(--surface); color: var(--encre); border: 1px solid var(--trait-fort); }
.ec-av {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 600;
  color: #FFFFFF; background: var(--accent);
}
.ec-av:nth-child(4n+2) { background: var(--sauge); }
.ec-av:nth-child(4n+3) { background: #5E4B4E; }
.ec-av:nth-child(4n+4) { background: #6D5A6F; }
.ec-lignes { display: flex; flex-direction: column; }
.ec-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-trait); }
.ec-ligne:first-child { border-top: 0; }
.ec-ligne__qui { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ec-ligne__qui > span { display: flex; flex-direction: column; min-width: 0; }
.ec-ligne__qui b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-jauge { position: relative; height: 4px; border-radius: 4px; background: rgba(58, 42, 46, 0.12); overflow: hidden; }
.ec-jauge i { position: absolute; inset: 0 auto 0 0; width: var(--f, 50%); background: var(--accent); border-radius: 4px; }

/* Flux d'activité (liste d'attente, cours annulé, rejet SEPA) */
.ec-flux { display: flex; flex-direction: column; gap: 10px; color: #4E3D40; }
.ec-flux li { display: flex; gap: 10px; list-style: none; }
.ec-flux time { flex: 0 0 40px; color: var(--encre-3); }
.ec-flux--large time { flex-basis: 64px; }
.ec-auto { font-size: 11px; font-weight: 600; color: var(--sauge); background: var(--sauge-fond); padding: 3px 8px; border-radius: 999px; }

/* Calendrier (semaine) */
.ec-semaine { min-width: 780px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ec-semaine__jour { display: flex; flex-direction: column; gap: 6px; }
.ec-semaine__date { font-size: 12px; color: var(--encre-3); padding: 4px 2px; }
.ec-semaine__date b { font-size: 18px; }
.ec-semaine__date--auj b { background: var(--accent); color: #FFFFFF; border-radius: 8px; padding: 0 6px; }
.ec-seance { border-radius: 10px; padding: 8px 10px 9px; display: flex; flex-direction: column; gap: 1px; }
.ec-seance span { font-size: 11px; font-weight: 600; color: var(--encre-2); }
.ec-seance b { font-size: 13px; font-weight: 600; }
.ec-seance em { font-style: normal; font-size: 11px; color: var(--encre-2); }
.ec-seance .ec-jauge { margin-top: 6px; }
.ec-seance--plein .ec-jauge i { background: var(--sauge); }
.ec-seance--annule { background: #F7F0EC; border: 1px dashed #D8C4BD; }
.ec-seance--annule b { text-decoration: line-through; }
.ec-seance--annule em { color: var(--alerte); font-weight: 600; }
.ec-seance--choisie { box-shadow: 0 0 0 2px var(--accent); }
.ec-fiche-seance { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; border: 1px solid var(--c-trait); border-radius: 18px; padding: 14px 18px; }
.ec-fiche-seance > span { display: flex; flex-direction: column; gap: 2px; }
.ec-fiche-seance > .ec-avatars { flex-direction: row; gap: 0; }
.ec-fiche-seance .ec-jauge { width: 140px; margin-top: 6px; }
.ec-avatars { display: flex; align-items: center; }
.ec-avatars .ec-av { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.ec-avatars em { font-style: normal; margin-left: 12px; font-weight: 600; color: var(--encre-3); }

/* Équipements (pratique libre) */
.ec-machines { min-width: 640px; display: grid; grid-template-columns: 150px repeat(6, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.ec-machines__h { font-size: 11px; font-weight: 600; color: var(--encre-3); text-align: center; padding-bottom: 2px; }
.ec-machines__nom { display: flex; flex-direction: column; justify-content: center; }
.ec-machines__nom span { font-size: 11px; color: var(--encre-3); }
.ec-creneau { border-radius: 10px; padding: 8px; font-size: 11px; display: flex; flex-direction: column; justify-content: center; min-height: 50px; }
.ec-creneau--pris { background: var(--c-reformer); color: var(--encre-2); }
.ec-creneau--pris b { font-size: 12px; }
.ec-creneau--libre { border: 1px dashed var(--trait-fort); color: var(--encre-3); }
.ec-creneau--hs { background: repeating-linear-gradient(135deg, #F6E3DF 0 6px, #FBEFEC 6px 12px); color: var(--alerte); font-weight: 600; }

/* Prospection (pipeline) */
.ec-pipeline { min-width: 760px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ec-colonne { background: var(--surface-2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ec-colonne__tete { display: flex; justify-content: space-between; font-weight: 600; color: var(--encre); padding: 2px 4px 4px; }
.ec-colonne__tete span { color: var(--encre-3); font-weight: 500; }
.ec-prospect { background: var(--surface); border: 1px solid var(--c-trait); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.ec-prospect > span:not(.ec-tag) { font-size: 12px; color: var(--encre-3); }
.ec-prospect .ec-tag { align-self: flex-start; margin-top: 4px; white-space: normal; font-size: 11px; }

/* Workflows */
.ec-flux-auto { display: flex; flex-direction: column; align-items: stretch; max-width: 560px; margin: 0 auto; }
.ec-etape { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--c-trait); border-radius: 16px; padding: 12px 14px; }
.ec-etape__ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--accent); }
.ec-etape__ico svg { width: 16px; height: 16px; }
.ec-etape > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ec-etape--declencheur { background: var(--sombre); border-color: var(--sombre); color: var(--sur-sombre-2); }
.ec-etape--declencheur b { color: var(--sur-sombre); }
.ec-etape--declencheur .ec-etape__ico { background: var(--sombre-2); color: var(--sur-sombre-accent); }
.ec-etape--garde { background: var(--sauge-fond); border-color: var(--sauge-fond); }
.ec-etape--garde .ec-etape__ico { background: var(--surface); color: var(--sauge); }
.ec-delai { align-self: center; display: flex; flex-direction: column; align-items: center; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--encre-3); }
.ec-delai::before, .ec-delai::after { content: ''; width: 1.5px; height: 10px; background: var(--trait-fort); }

/* Clients */
.ec-clients { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.ec-vues { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ec-assiduite { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 8px 0 4px; }
.ec-assiduite i { height: 22px; border-radius: 5px; background: var(--surface-3); }
.ec-assiduite i.n1 { background: #E2CFC8; }
.ec-assiduite i.n2 { background: #B99A9C; }
.ec-assiduite i.n3 { background: var(--accent); }
.ec-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--c-trait); }
.ec-kv:first-of-type { border-top: 0; }
.ec-kv span { color: var(--encre-3); }
.ec-commentaire { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }

/* Abonnements */
.ec-echeances { display: flex; flex-direction: column; gap: 6px; }
.ec-echeance { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.ec-echeance--suivante { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--surface); }
.ec-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

/* Paiements */
.ec-barres { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.ec-barres i { flex: 1; border-radius: 6px 6px 2px 2px; background: #E2CFC8; height: var(--h); }
.ec-barres i.ok { background: var(--accent); }
.ec-barres i.ko { background: var(--alerte); }
.ec-barres__axe { display: flex; justify-content: space-between; font-size: 11px; color: var(--encre-3); margin-top: 6px; }

/* Métriques */
.ec-periodes { display: flex; gap: 4px; background: var(--surface-3); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 600; }
.ec-periodes span { padding: 5px 10px; border-radius: 999px; color: var(--encre-2); }
.ec-periodes .ici { background: var(--surface); color: var(--encre); }
.ec-courbe { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 130px; }
.ec-courbe > span { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.ec-courbe i { flex: 1; border-radius: 4px 4px 1px 1px; height: var(--h); background: var(--accent); }
.ec-courbe i + i { background: #D9C3C0; }
.ec-legende { display: flex; gap: 14px; font-size: 12px; margin-top: 8px; }
.ec-legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.ec-legende span + span::before { background: #D9C3C0; }
.ec-chaleur { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 4px; font-size: 11px; }
.ec-chaleur span { color: var(--encre-3); }
.ec-chaleur i { height: 20px; border-radius: 5px; background: color-mix(in srgb, var(--accent) var(--p), #F7EEE9); }

/* Messages */
.ec-messages { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); border: 1px solid var(--c-trait); border-radius: 18px; overflow: hidden; min-height: 400px; }
.ec-messages__liste { border-right: 1px solid var(--c-trait); background: var(--surface-2); }
.ec-messages__compteurs { display: flex; gap: 8px; padding: 12px; }
.ec-messages__compteurs span { flex: 1; background: var(--surface); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 11px; color: var(--encre-3); }
.ec-messages__compteurs b { font-size: 18px; }
.ec-conv { display: flex; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--c-trait); }
.ec-conv > span:not(.ec-av) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ec-conv > span:not(.ec-av) span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--encre-3); }
.ec-conv time { font-size: 11px; color: var(--encre-3); }
.ec-conv--ici { background: var(--surface); }
.ec-conv--nonlu b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 1px; }
.ec-fil { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ec-fil__tete { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--c-trait); }
.ec-fil__tete > span { display: flex; flex-direction: column; }
.ec-bulle { max-width: 80%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); color: var(--encre); }
.ec-bulle small { display: block; font-size: 11px; color: var(--encre-3); margin-top: 3px; }
.ec-bulle--nous { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #FFFFFF; }
.ec-bulle--nous small { color: #F1D9D2; }
.ec-saisie { margin-top: auto; border: 1px solid var(--trait-fort); border-radius: 999px; padding: 9px 14px; color: var(--encre-3); }

/* Community (régularité) */
.ec-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; text-align: center; }
.ec-podium > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ec-podium i { width: 100%; border-radius: 12px 12px 4px 4px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; color: var(--encre); }
.ec-podium .p1 i { height: 86px; background: #E2CFC8; }
.ec-podium .p2 i { height: 64px; }
.ec-podium .p3 i { height: 48px; }
.ec-paliers { display: flex; flex-direction: column; gap: 6px; }
.ec-palier { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.ec-palier--ici { background: var(--sombre); color: var(--sur-sombre-2); }
.ec-palier--ici b { color: var(--sur-sombre); }
.ec-serie { display: flex; gap: 4px; margin-top: 8px; }
.ec-serie i { flex: 1; height: 8px; border-radius: 4px; background: var(--accent); }
.ec-serie i.vide { background: var(--surface-3); }

/* Page de vente (atelier) */
.ec-vente { max-width: 460px; margin: 0 auto; border: 1px solid var(--c-trait); border-radius: 22px; overflow: hidden; }
.ec-vente__visuel { height: 96px; background: var(--c-yoga); position: relative; overflow: hidden; }
.ec-vente__visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ec-vente__corps { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ec-vente__corps h4 { font-size: 13px; font-weight: 600; color: var(--encre-4); }
.ec-choix { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-trait); border-radius: 12px; }
.ec-choix--pris { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ec-choix--complet { background: var(--surface-2); color: var(--encre-3); }

/* Téléphone (application élèves) */
.telephone {
  width: 290px; max-width: 100%; aspect-ratio: 290 / 600; background: #1F1619; border-radius: 46px; padding: 11px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5); flex: none;
}
.telephone__ecran {
  height: auto; min-height: 100%; background: var(--fond); color: var(--encre); border-radius: 36px; overflow: hidden;
  padding: 26px 16px 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; text-align: left;
}
.tel-haut { display: flex; justify-content: space-between; align-items: center; }
.tel-haut > span { display: flex; flex-direction: column; }
.tel-haut small { font-size: 10px; font-weight: 600; color: var(--encre-3); }
.tel-haut b { font-size: 20px; font-family: var(--serif); font-weight: 400; font-style: italic; }
.tel-carte { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tel-carte--sombre { background: var(--sombre); color: var(--sur-sombre-2); }
.tel-carte--sombre b { color: var(--sur-sombre); font-size: 22px; line-height: 1.1; }
.tel-carte--sombre .ec-serie i.vide { background: var(--sombre-2); }
.tel-carte--sombre .ec-serie i { background: var(--sur-sombre-accent); }
.tel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tel-duo > span { background: var(--surface); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--encre-3); }
.tel-duo b { font-size: 16px; }
.tel-titre { font-size: 11px; font-weight: 600; color: var(--encre-4); margin-top: 2px; }
.tel-seance { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.tel-seance__date { flex: 0 0 34px; text-align: center; line-height: 1.1; }
.tel-seance__date b { display: block; font-size: 16px; font-family: var(--serif); font-style: italic; font-weight: 400; }
.tel-seance__date small { font-size: 9px; font-weight: 600; color: var(--encre-3); }
.tel-seance > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tel-seance .ec-tag { align-self: flex-start; font-size: 10px; padding: 2px 7px; }
.tel-bouton { background: var(--accent); color: #FFFFFF; border-radius: 999px; padding: 12px; text-align: center; font-weight: 600; }
.tel-onglets { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--trait); padding: 10px 0 14px; font-size: 10px; font-weight: 600; color: var(--encre-3); }
.tel-onglets .ici { color: var(--accent); }
.tel-alerte { background: #F6E3DF; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: #4E3D40; font-size: 12px; }
.tel-alerte b { color: var(--alerte); }
.tel-liste { display: flex; flex-direction: column; gap: 6px; }
.tel-liste > span { background: var(--surface); border-radius: 12px; padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tel-liste > span > span { display: flex; flex-direction: column; font-size: 11px; color: var(--encre-3); }
.tel-liste > span > span b { font-size: 13px; }
.tel-mini { font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #FFFFFF; white-space: nowrap; }
.tel-mini--attente { background: var(--lavande); color: #5B4760; }
.tel-mini--complet { background: var(--surface-3); color: var(--encre-3); }
.tel-liste > span > .tel-mini { display: inline-block; font-size: 11px; color: #FFFFFF; }
.tel-liste > span > .tel-mini--attente { color: #5B4760; }
.tel-liste > span > .tel-mini--complet { color: var(--encre-3); }

/* Catégories de séances (réglages) */
.ec-categories { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.ec-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.ec-cat + .ec-cat { margin-top: 4px; }
.ec-cat > i { flex: none; width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(58, 42, 46, 0.18); }
.ec-cat > span { display: flex; flex-direction: column; min-width: 0; }
.ec-cat--ici { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ec-onglets { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--c-trait); margin: -4px 0 12px; font-size: 12px; font-weight: 600; }
.ec-onglets span { padding: 7px 9px; color: var(--encre-3); }
.ec-onglets .ici { color: var(--encre); box-shadow: inset 0 -2px 0 var(--accent); }
.ec-groupe { font-size: 12px; font-weight: 600; color: var(--encre-4); margin: 14px 0 2px; }
.ec-groupe:first-child { margin-top: 0; }
.ec-interrupteur { position: relative; display: inline-block; flex: none; width: 30px; height: 18px; border-radius: 999px; background: #E2D3CD; vertical-align: middle; }
.ec-interrupteur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(58, 42, 46, 0.25); }
.ec-interrupteur--on { background: var(--sauge); }
.ec-interrupteur--on::after { left: 15px; }
.ec-kv b .ec-interrupteur { margin-right: 6px; }

/* Tableaux (journal SMS, imports, exports) */
.ec-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ec-table th { text-align: left; font-weight: 600; color: var(--encre-3); padding: 0 10px 8px; white-space: nowrap; }
.ec-table td { padding: 9px 10px; border-top: 1px solid var(--c-trait); vertical-align: middle; }
.ec-table th:first-child, .ec-table td:first-child { padding-left: 0; }
.ec-table td > span:not(.ec-tag) { display: block; color: var(--encre-3); }
.ec-table--large { min-width: 620px; }

/* Encadré d'un message (SMS, alerte) */
.ec-message { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; color: var(--encre); }
.ec-message small { display: block; margin-top: 4px; font-size: 11px; color: var(--encre-3); }

/* Téléphone : onglets de jours */
.tel-jours { display: flex; gap: 5px; font-size: 11px; font-weight: 600; }
.tel-jours span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface); color: var(--encre-3); line-height: 1.25; }
.tel-jours .ici { background: var(--accent); color: #FFFFFF; }
.tel-heure { font-size: 11px; font-weight: 600; color: var(--encre-4); margin-top: 2px; }
.tel-feuille { margin-top: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -12px 30px -18px rgba(52, 38, 42, 0.45); }

@media (max-width: 900px) {
  .ec-categories { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .fenetre__corps { padding: 18px 16px; min-height: 0; }
  .ec-clients, .ec-messages { grid-template-columns: minmax(0, 1fr); }
  .ec-messages__liste { border-right: 0; border-bottom: 1px solid var(--c-trait); }
}
@media (max-width: 640px) {
  .fenetre { border-radius: 20px; }
  .fenetre__barre { padding: 12px 16px; }
  .telephone { width: 280px; }
}

/* ------------------------------------------------------------
   Caisse cliquable (page Vente et caisse) : un produit, une élève,
   un bouton. Rendue et animée par js/flowire.js, sans réseau.
   ------------------------------------------------------------ */
.caisse { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.caisse__familles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.caisse__famille {
  min-height: 34px; padding: 6px 13px;
  border: 1px solid var(--trait-fort); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--encre-2); cursor: pointer;
}
.caisse__famille:hover { border-color: var(--accent); color: var(--encre); }
.caisse__famille[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.caisse__liste { display: flex; flex-direction: column; border: 1px solid var(--c-trait); border-radius: 18px; overflow: hidden; background: var(--surface); }
.caisse__liste[hidden] { display: none; }
.caisse__produit {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-top: 1px solid var(--c-trait); background: transparent;
  text-align: left; cursor: pointer;
}
.caisse__produit:first-child { border-top: 0; }
.caisse__produit:hover { background: var(--surface-2); }
.caisse__produit:focus-visible, .caisse__famille:focus-visible, .caisse__panier button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.caisse__produit:focus-visible { outline-offset: -2px; }
.caisse__vignette { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); color: var(--accent); }
.caisse__vignette svg { width: 16px; height: 16px; }
.caisse__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.caisse__texte b { font-size: 13.5px; }
.caisse__texte small { font-size: 12px; color: var(--encre-3); }
.caisse__prix { flex: none; font-weight: 600; color: var(--encre); white-space: nowrap; }

.caisse__panier { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--c-trait); border-radius: 18px; padding: 12px 16px 16px; background: var(--surface); }
.caisse__panier-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.caisse__panier-tete svg { flex: none; width: 16px; height: 16px; color: var(--accent); }
.caisse__panier-tete b { flex: 1; font-size: 14px; }
.caisse__vider { min-height: 32px; padding: 0 6px; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; }
.caisse__vider:disabled { color: var(--encre-4); cursor: default; }
.caisse__lignes { flex: 1; outline: none; }
.caisse__vide { padding: 22px 0; text-align: center; color: var(--encre-3); }
.caisse__vide b { display: block; margin-bottom: 2px; color: var(--encre-2); }
.caisse__ligne { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--c-trait); }
.caisse__ligne:first-child { border-top: 0; }
.caisse__ligne b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caisse__qte { font-size: 12px; color: var(--encre-3); }
.caisse__montant { font-weight: 600; color: var(--encre); white-space: nowrap; }
.caisse__retirer { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 16px; line-height: 1; color: var(--encre-3); cursor: pointer; }
.caisse__retirer:hover { background: var(--surface-3); color: var(--encre); }
.caisse__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--trait-fort); }
.caisse__total span { color: var(--encre-3); }
.caisse__total b { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; }
.caisse__etiquette { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--encre-3); }
.caisse__champ { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 6px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); color: var(--encre-3); }
.caisse__champ svg { flex: none; width: 14px; height: 14px; }
.caisse__champ span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caisse__champ.est-rempli { background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--encre); }
.caisse__valider { min-height: 42px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--accent); font-weight: 600; color: #FFFFFF; cursor: pointer; }
.caisse__valider:hover { background: var(--encre); }
.caisse__valider:disabled { background: var(--surface-3); color: var(--encre-4); cursor: default; }
.caisse__fait { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sauge-fond); font-size: 12.5px; color: var(--encre-2); outline: none; }
.caisse__fait b { display: block; color: var(--sauge); }
.caisse__fait:empty { display: none; }

@media (max-width: 640px) {
  .caisse { grid-template-columns: minmax(0, 1fr); }
  .caisse__famille { flex: 1 1 calc(50% - 6px); }
}

/* Liste et fiche des élèves (page Gestion des élèves) */
.ec-table--eleves td { white-space: nowrap; }
.ec-table--eleves tbody tr:nth-child(4n+2) .ec-av { background: var(--sauge); }
.ec-table--eleves tbody tr:nth-child(4n+3) .ec-av { background: #5E4B4E; }
.ec-table--eleves tbody tr:nth-child(4n+4) .ec-av { background: #6D5A6F; }
.ec-av.ec-av--grand { width: 44px; height: 44px; font-size: 14px; }
.ec-fiche__nom { font-size: 18px; }
