/* AMEZIAN · Formation des sales : design de l'espace équipe de l'app V2 (DA « Signature »), mode clair seulement.
   Menu blanc à gauche (ordinateur), barre d'onglets en bas (téléphone), bandeau violet à anneaux, cartes blanches rayon 24,
   fond #f6f5fb, bouton principal en dégradé, police du système, icônes Material Symbols Rounded servies en local.
   Une seule feuille pour les 4 pages. Aucune règle de mode sombre : la page reste claire même si le téléphone est en sombre. */

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url('/polices/material-symbols-rounded.woff2') format('woff2');
}

:root {
  color-scheme: light only;
  --violet: #343cdb;
  --violet-clair: #6660e8;
  --violet-profond: #292baa;
  --violet-actif: #2d33c4;
  --violet-appuye: #2c32c2;
  --degrade-bandeau: linear-gradient(160deg, #6660e8 0%, #343cdb 52%, #292baa 100%);
  --degrade-bouton: linear-gradient(180deg, #4b53e8, #343cdb 55%, #2c32c2);
  --fond: #f6f5fb;
  --carte: #ffffff;
  --encre: #0b0d1f;
  --texte: #2b2e45;
  --texte-2: #5a5f78;
  --texte-3: #80849c;
  --menu-texte: #3b3f5a;
  --menu-survol: #f5f5fa;
  --fond-actif: #edefff;
  --texte-actif: #2929ab;
  --bloc: #f8f8fc;
  --ligne: rgba(15, 18, 34, 0.08);
  --bord-champ: #d8d7e6;
  --teinte: rgba(52, 60, 219, 0.09);
  --teinte-forte: rgba(52, 60, 219, 0.14);
  --succes: #0b6e4c;
  --succes-doux: rgba(14, 131, 90, 0.11);
  --danger: #a8302f;
  --danger-vif: #d24b4b;
  --danger-doux: rgba(210, 75, 75, 0.1);
  --ambre: #8a5a00;
  --ambre-doux: rgba(214, 120, 0, 0.12);
  --video: #141433;
  --ombre-carte: 0 1px 2px rgba(15, 18, 34, 0.04), 0 22px 44px -30px rgba(41, 43, 170, 0.3);
  --ombre-carte-survol: 0 1px 2px rgba(15, 18, 34, 0.04), 0 32px 60px -34px rgba(41, 43, 170, 0.45);
  --ombre-bouton: 0 1px 2px rgba(41, 43, 170, 0.3), 0 14px 28px -14px rgba(52, 60, 219, 0.8);
  --ombre-bouton-survol: 0 1px 2px rgba(41, 43, 170, 0.3), 0 20px 36px -14px rgba(52, 60, 219, 0.9);
  --ombre-second: inset 0 0 0 1px rgba(15, 18, 34, 0.12), 0 1px 2px rgba(15, 18, 34, 0.04);
  --ombre-focus: 0 0 0 5px rgba(52, 60, 219, 0.13);
  --ombre-fenetre: 0 30px 70px -20px rgba(11, 13, 31, 0.4);
  --r-carte: 24px;
  --r-champ: 14px;
  --r-menu: 12px;
  --largeur-menu: 268px;
  --hauteur-onglets: 64px;
  --police: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  color: var(--encre);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.8em;
}

a {
  color: var(--violet);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.ic {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex: none;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.ic.plein {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- Boutons */

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-champ);
  background: var(--carte);
  box-shadow: var(--ombre-second);
  color: var(--encre);
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.2s, filter 0.2s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
}

.bouton:hover {
  background: var(--menu-survol);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton .ic {
  font-size: 20px;
}

.bouton.primaire {
  background: var(--degrade-bouton);
  color: #fff;
  box-shadow: var(--ombre-bouton);
}

.bouton.primaire:hover {
  filter: brightness(1.07);
  box-shadow: var(--ombre-bouton-survol);
}

.bouton.danger {
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(168, 48, 47, 0.35);
}

.bouton.danger:hover {
  background: var(--danger-doux);
}

.bouton.succes {
  background: linear-gradient(180deg, #179a6c, #0b6e4c);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(11, 110, 76, 0.8);
}

.bouton.discret {
  background: transparent;
  box-shadow: none;
  color: var(--violet);
}

.bouton.discret:hover {
  background: var(--teinte);
}

.bouton.large {
  width: 100%;
}

.bouton.petit {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.bouton.verre {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bouton.verre:hover {
  background: rgba(255, 255, 255, 0.24);
}

.bouton.blanc {
  background: #fff;
  color: var(--violet-actif);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45);
}

.bouton[disabled],
.bouton[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.bouton.primaire[disabled] {
  opacity: 1;
  background: #e7e6f0;
  color: var(--texte-3);
}

.bouton.charge::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: tourne 0.7s linear infinite;
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.boutons.fin {
  justify-content: flex-end;
}

/* ---------------------------------------------------------------- Champs */

label,
.libelle {
  display: block;
  font-weight: 700;
  color: var(--encre);
  font-size: 0.93rem;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='datetime-local'],
input[type='date'],
input[type='time'],
input[inputmode='numeric'],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--carte);
  border: 1.5px solid var(--bord-champ);
  border-radius: var(--r-champ);
  padding: 11px 14px;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--texte-3);
  opacity: 1;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23343cdb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: var(--ombre-focus);
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.champs-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 14px;
}

@media (min-width: 640px) {
  .champs-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.aide {
  font-size: 0.87rem;
  color: var(--texte-2);
  font-weight: 500;
}

.choix-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choix-role label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-champ);
  box-shadow: var(--ombre-second);
  cursor: pointer;
  font-weight: 700;
}

.choix-role label:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 5px rgba(52, 60, 219, 0.1);
  background: var(--fond-actif);
  color: var(--texte-actif);
}

.choix-role input {
  accent-color: var(--violet);
  width: 18px;
  height: 18px;
  margin: 0;
}

/* ---------------------------------------------------------------- Messages */

.message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--r-champ);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.message .ic {
  font-size: 20px;
  margin-top: 1px;
}

.message.erreur {
  background: var(--danger-doux);
  color: var(--danger);
}

.message.info {
  background: var(--teinte);
  color: var(--texte-actif);
}

.message.attention {
  background: var(--ambre-doux);
  color: var(--ambre);
}

.message.succes {
  background: var(--succes-doux);
  color: var(--succes);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--hauteur-onglets) + 18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--encre);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--ombre-fenetre);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1024px) {
  .toast {
    bottom: 28px;
    left: calc(50% + var(--largeur-menu) / 2);
  }
}

/* ---------------------------------------------------------------- Coquille : menu à gauche, barre d'onglets en bas */

.coquille {
  min-height: 100vh;
  min-height: 100dvh;
}

.menu {
  display: none;
}

.principal {
  min-width: 0;
  padding-bottom: calc(var(--hauteur-onglets) + 28px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  .coquille {
    display: grid;
    grid-template-columns: var(--largeur-menu) minmax(0, 1fr);
  }

  .menu {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 22px 16px 16px;
    background: #fff;
    box-shadow: 1px 0 0 rgba(15, 18, 34, 0.06);
    overflow-y: auto;
  }

  .principal {
    padding-bottom: 48px;
  }

  .barre-onglets {
    display: none !important;
  }
}

.menu-logo {
  display: block;
  height: 21px;
  width: auto;
  margin: 4px 10px 18px;
  align-self: flex-start;
}

.menu-espace {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fond);
  color: var(--menu-texte);
  font-weight: 700;
  font-size: 0.92rem;
}

.menu-espace small {
  display: block;
  font-weight: 600;
  color: var(--texte-3);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.menu-espace select {
  margin-top: 8px;
  min-height: 40px;
  padding: 6px 36px 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  background-position: right 12px center;
}

.menu-titre {
  margin: 14px 12px 6px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-3);
}

.menu-entree {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-menu);
  color: var(--menu-texte);
  font-weight: 620;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.menu-entree .ic {
  color: var(--texte-3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.menu-entree:hover {
  background: var(--menu-survol);
}

.menu-entree:hover .ic {
  transform: scale(1.12);
}

.menu-entree.actif {
  background: var(--fond-actif);
  color: var(--texte-actif);
  font-weight: 750;
}

.menu-entree.actif .ic {
  color: var(--violet);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.pastille {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--danger-vif);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.menu-pied {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-pied .qui {
  min-width: 0;
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--encre);
  line-height: 1.25;
}

.menu-pied .qui small {
  display: block;
  font-weight: 600;
  color: var(--texte-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fond-actif);
  color: var(--texte-actif);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.avatar.grand {
  width: 52px;
  height: 52px;
  font-size: 1.05rem;
}

.bouton-icone {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--texte-2);
  cursor: pointer;
}

.bouton-icone:hover {
  background: var(--menu-survol);
  color: var(--encre);
}

.barre-onglets {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: calc(var(--hauteur-onglets) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 -1px 0 rgba(15, 18, 34, 0.08);
}

.onglet-bas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 14px;
  color: var(--texte-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.onglet-bas span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onglet-bas .ic {
  font-size: 24px;
  padding: 2px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}

.onglet-bas.actif {
  color: var(--violet);
}

.onglet-bas.actif .ic {
  background: var(--fond-actif);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.onglet-bas .pastille {
  position: absolute;
  top: 2px;
  left: calc(50% + 8px);
  margin: 0;
  min-width: 18px;
  height: 18px;
  font-size: 0.68rem;
  padding: 0 5px;
}

/* ---------------------------------------------------------------- Bandeau violet à anneaux */

.bande {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 16px 86px;
  background-color: var(--violet);
  background-image: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)), var(--degrade-bandeau);
  background-repeat: no-repeat;
  background-size: 70% 160%, 100% 100%;
  background-position: 133.33% 100%, 0 0;
  color: #fff;
  border-radius: 0 0 28px 28px;
}

.bande.sans-feuille {
  padding-bottom: 30px;
}

@media (min-width: 1024px) {
  .bande {
    padding: 38px 40px 86px;
    border-radius: 0;
  }

  .bande.sans-feuille {
    padding-bottom: 34px;
  }
}

.bande::before,
.bande::after,
.bande .anneau {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
  animation: souffle 7s ease-in-out infinite alternate;
}

.bande::before {
  width: 360px;
  height: 360px;
  right: -60px;
  top: -190px;
}

.bande::after {
  width: 596px;
  height: 596px;
  right: -178px;
  top: -308px;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 18px 50%, #fff 0 4px, rgba(255, 255, 255, 0.65) 5px, rgba(255, 255, 255, 0) 17px),
    radial-gradient(closest-side, rgba(255, 255, 255, 0) calc(100% - 19.5px), rgba(255, 255, 255, 0.16) calc(100% - 19.5px), rgba(255, 255, 255, 0.16) calc(100% - 18px), rgba(255, 255, 255, 0) calc(100% - 18px));
  animation: souffle 7s ease-in-out -2s infinite alternate, orbite 40s linear infinite;
}

.bande .anneau {
  width: 800px;
  height: 800px;
  right: -280px;
  top: -410px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  animation: souffle 7s ease-in-out -4s infinite alternate;
}

.bande-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  margin-bottom: 18px;
}

.bande-haut .logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bande-haut .avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
}

@media (min-width: 1024px) {
  .bande-haut {
    display: none;
  }
}

.bande-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bande-textes {
  min-width: 0;
  flex: 1 1 320px;
}

.bande-surtitre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bande h1 {
  margin: 0;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.032em;
}

@media (min-width: 1024px) {
  .bande h1 {
    font-size: 2.15rem;
  }
}

.bande-sous-titre {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.4;
}

.bande-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px -6px;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.retour:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pastilles-bande {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pastille-verre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.pastille-verre .ic {
  font-size: 18px;
}

.selecteur-equipe {
  min-height: 42px;
  width: auto;
  max-width: 100%;
  padding: 8px 40px 8px 14px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.selecteur-equipe:focus {
  border: 0;
  box-shadow: inset 0 0 0 2px #fff;
}

.selecteur-equipe option {
  color: var(--encre);
}

/* ---------------------------------------------------------------- Corps et cartes (la feuille remonte de 54 px sur le bandeau) */

.corps {
  position: relative;
  z-index: 1;
  margin-top: -54px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bande.sans-feuille + .corps {
  margin-top: 18px;
}

@media (min-width: 1024px) {
  .corps {
    padding: 0 40px;
    gap: 18px;
    max-width: 1240px;
  }
}

.corps.etroit {
  max-width: 760px;
}

@media (min-width: 1024px) {
  .corps.etroit {
    max-width: calc(760px + 80px);
  }
}

.carte {
  background: var(--carte);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre-carte);
  padding: 20px;
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

@media (min-width: 1024px) {
  .carte {
    padding: 24px 26px;
  }
}

.carte.cliquable {
  cursor: pointer;
}

.carte.cliquable:hover {
  box-shadow: var(--ombre-carte-survol);
}

.carte-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.carte-titre h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carte-titre h2 .ic {
  color: var(--violet);
}

.carte-titre .aide {
  margin: 0;
}

.grille {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

@media (min-width: 1024px) {
  .grille {
    gap: 18px;
  }
}

.grille-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grille-2 {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

/* Tuile de chiffre */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-libelle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texte-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-libelle .ic {
  font-size: 20px;
  color: var(--violet);
}

.stat-valeur {
  color: var(--encre);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-valeur small {
  font-size: 1rem;
  color: var(--texte-3);
  font-weight: 700;
  letter-spacing: 0;
}

.stat-detail {
  color: var(--texte-2);
  font-size: 0.86rem;
}

.stat.vedette {
  background: var(--degrade-bandeau);
  color: #fff;
}

.stat.vedette .stat-libelle,
.stat.vedette .stat-detail {
  color: rgba(255, 255, 255, 0.86);
}

.stat.vedette .stat-libelle .ic {
  color: #fff;
}

.stat.vedette .stat-valeur {
  color: #fff;
}

/* Barre d'avancement */
.barre {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(52, 60, 219, 0.1);
  overflow: hidden;
}

.barre > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--degrade-bouton);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.barre.succes > span {
  background: linear-gradient(90deg, #179a6c, #0b6e4c);
}

.barre.ambre > span {
  background: linear-gradient(90deg, #e3a032, #c27c00);
}

.barre.fine {
  height: 6px;
}

.barre.sur-bande {
  background: rgba(255, 255, 255, 0.22);
}

.barre.sur-bande > span {
  background: #fff;
}

/* Étiquettes */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teinte);
  color: var(--texte-actif);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.badge .ic {
  font-size: 16px;
}

.badge.gris {
  background: #efeff5;
  color: var(--texte-2);
}

.badge.succes {
  background: var(--succes-doux);
  color: var(--succes);
}

.badge.ambre {
  background: var(--ambre-doux);
  color: var(--ambre);
}

.badge.danger {
  background: var(--danger-doux);
  color: var(--danger);
}

.badge.sur-bande {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Listes de lignes (personnes, alertes, questions) */
.lignes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--ligne);
  min-width: 0;
}

.ligne:first-child {
  border-top: 0;
}

.ligne.cliquable {
  cursor: pointer;
  border-radius: 14px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
  transition: background 0.2s;
}

.ligne.cliquable:hover {
  background: #f7f7fc;
}

.ligne-corps {
  flex: 1;
  min-width: 0;
}

.ligne-nom {
  display: block;
  font-weight: 750;
  color: var(--encre);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ligne-detail {
  display: block;
  color: var(--texte-2);
  font-size: 0.87rem;
}

.ligne-fin {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.ligne .chevron {
  color: var(--texte-3);
}

/* Tableau (ordinateur) qui devient une pile de cartes au téléphone */
.tableau {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tableau th {
  text-align: left;
  padding: 0 10px 10px;
  color: var(--texte-3);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tableau td {
  padding: 12px 10px;
  border-top: 1px solid var(--ligne);
  vertical-align: middle;
  color: var(--texte);
  font-size: 0.94rem;
}

.tableau th.nombre,
.tableau td.nombre {
  text-align: right;
}

.sr-seulement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tableau th.action,
.tableau td.action-cellule {
  width: 1%;
  padding-left: 0;
  padding-right: 4px;
  text-align: right;
}

.croix-retirer {
  width: 32px;
  height: 32px;
}

.croix-retirer:hover {
  background: var(--danger-doux);
  color: var(--danger);
}

.tableau tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.tableau tbody tr:hover {
  background: #f7f7fc;
}

.tableau tfoot td {
  font-weight: 800;
  color: var(--encre);
  border-top: 2px solid var(--ligne);
}

.tableau .qui {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--encre);
  white-space: nowrap;
}

.tableau .qui .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.jauge {
  display: grid;
  gap: 6px;
  min-width: 120px;
}

.jauge-texte {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--encre);
}

.jauge-texte small {
  color: var(--texte-3);
  font-weight: 600;
}

@media (max-width: 759px) {
  .tableau thead {
    display: none;
  }

  .tableau,
  .tableau tbody,
  .tableau tfoot,
  .tableau tr,
  .tableau td {
    display: block;
    width: 100%;
  }

  .tableau tbody tr,
  .tableau tfoot tr {
    padding: 12px 0;
    border-top: 1px solid var(--ligne);
  }

  .tableau tbody tr:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .tableau td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border: 0;
  }

  .tableau td[data-libelle]::before {
    content: attr(data-libelle);
    color: var(--texte-2);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .tableau td.qui-cellule {
    padding-bottom: 8px;
  }

  .tableau .jauge {
    min-width: 0;
    width: 55%;
  }

  .tableau tfoot td {
    border-top: 0;
  }

  .tableau tfoot td.action-cellule {
    display: none;
  }

  .tableau td.action-cellule {
    justify-content: flex-end;
    width: auto;
    padding-right: 0;
  }
}

/* États vides et chargement */
.vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 12px;
  color: var(--texte-2);
}

.vide .ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--fond-actif);
  color: var(--violet);
  font-size: 28px;
  margin-bottom: 4px;
}

.vide strong {
  color: var(--encre);
  font-size: 1.02rem;
}

.vide p {
  margin: 0;
  max-width: 36ch;
}

.chargement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 12px;
  color: var(--texte-2);
  font-weight: 600;
}

.chargement::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(52, 60, 219, 0.18);
  border-top-color: var(--violet);
  animation: tourne 0.8s linear infinite;
}

.squelette {
  border-radius: 12px;
  background: linear-gradient(90deg, #efeff6 25%, #f7f7fc 50%, #efeff6 75%);
  background-size: 200% 100%;
  animation: reflet 1.4s ease-in-out infinite;
}

/* Fenêtre (dialogue) */
.fenetre-fond {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(11, 13, 31, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: apparait 0.2s ease-out;
}

.fenetre {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: var(--ombre-fenetre);
  animation: monte 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .fenetre-fond {
    align-items: center;
    padding: 24px;
  }

  .fenetre {
    border-radius: 26px;
    padding: 26px 26px 24px;
  }
}

.fenetre h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.fenetre > .aide {
  margin: 0 0 18px;
}

.fenetre .boutons {
  margin-top: 20px;
  flex-direction: column-reverse;
  align-items: stretch;
}

@media (min-width: 640px) {
  .fenetre .boutons {
    flex-direction: row;
    justify-content: flex-end;
  }
}

/* ---------------------------------------------------------------- Connexion */

.page-connexion {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-connexion .bande {
  padding-top: 26px;
  padding-bottom: 120px;
}

.page-connexion .bande-contenu {
  max-width: 440px;
  margin: 0 auto;
}

.page-connexion .logo {
  display: block;
  height: 22px;
  width: auto;
  margin-bottom: 34px;
  filter: brightness(0) invert(1);
}

.page-connexion .corps {
  margin-top: -84px;
  width: 100%;
  max-width: 464px;
  margin-left: auto;
  margin-right: auto;
}

.carte-connexion {
  padding: 26px 22px 22px;
}

.code-saisie {
  font-size: 1.6rem !important;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: calc(14px + 0.5em) !important;
}

.pied-connexion {
  margin: 18px auto 0;
  text-align: center;
  color: var(--texte-3);
  font-size: 0.85rem;
}

.demo-bandeau {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 80;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3d6;
  color: var(--ambre);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ---------------------------------------------------------------- Formation (sales) */

.etape {
  padding: 0;
  overflow: hidden;
}

.etape-tete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

@media (min-width: 1024px) {
  .etape-tete {
    padding: 20px 26px;
  }
}

.etape-numero {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--fond-actif);
  color: var(--texte-actif);
  font-weight: 800;
}

.etape.terminee .etape-numero {
  background: var(--succes-doux);
  color: var(--succes);
}

.etape.verrouillee .etape-numero {
  background: #f0f0f5;
  color: var(--texte-3);
}

.etape-tete h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.etape-tete .aide {
  margin: 0;
}

.chapitres {
  list-style: none;
  margin: 0;
  padding: 0 12px 10px;
}

@media (min-width: 1024px) {
  .chapitres {
    padding: 0 16px 12px;
  }
}

.chapitre {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 10px;
  border: 0;
  border-top: 1px solid var(--ligne);
  background: transparent;
  color: var(--texte);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.chapitre:hover {
  background: #f7f7fc;
}

.chapitre .etat-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f5;
  color: var(--texte-3);
}

.chapitre .etat-ic .ic {
  font-size: 19px;
}

.chapitre.termine .etat-ic {
  background: var(--succes-doux);
  color: var(--succes);
}

.chapitre.ouvert {
  background: var(--fond-actif);
  border-radius: 16px;
  border-top-color: transparent;
}

.chapitre.ouvert + .chapitre {
  border-top-color: transparent;
}

.chapitre.ouvert .etat-ic {
  background: var(--degrade-bouton);
  color: #fff;
  box-shadow: var(--ombre-bouton);
}

.chapitre.verrouille {
  cursor: default;
  color: var(--texte-3);
}

.chapitre.verrouille:hover {
  background: transparent;
}

.chapitre-titre {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  line-height: 1.3;
}

.chapitre.ouvert .chapitre-titre {
  color: var(--texte-actif);
  font-weight: 750;
}

.chapitre-duree {
  flex: none;
  color: var(--texte-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.reprendre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.reprendre .aide {
  margin: 0 0 2px;
}

.reprendre h2 {
  margin: 0;
}

/* Lecteur vidéo 16:9 (Loom, YouTube, fichier) */
.lecteur {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--video);
}

.lecteur iframe,
.lecteur video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--video);
}

.lecteur-factice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  background: radial-gradient(80% 90% at 30% 20%, rgba(102, 96, 232, 0.55), rgba(20, 20, 51, 0) 70%), var(--video);
}

.lecteur-factice .ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 34px;
  color: #fff;
}

.texte-md {
  color: var(--texte);
  font-size: 1rem;
  line-height: 1.65;
}

.texte-md > :first-child {
  margin-top: 0;
}

.texte-md > :last-child {
  margin-bottom: 0;
}

.texte-md h2,
.texte-md h3,
.texte-md h4 {
  margin: 1.3em 0 0.5em;
}

.texte-md h4 {
  font-size: 0.98rem;
  color: var(--encre);
}

.texte-md ul,
.texte-md ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.texte-md li {
  margin: 0.3em 0;
}

.texte-md blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bloc);
  border-left: 3px solid var(--violet);
  color: var(--texte);
}

.texte-md strong {
  color: var(--encre);
}

.a-retenir {
  background: var(--fond-actif);
  box-shadow: none;
}

.a-retenir h2 {
  color: var(--texte-actif);
  display: flex;
  align-items: center;
  gap: 8px;
}

.a-retenir ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.a-retenir li {
  display: flex;
  gap: 10px;
  color: var(--encre);
  font-weight: 600;
}

.a-retenir li .ic {
  color: var(--violet);
  font-size: 20px;
  margin-top: 1px;
}

.barre-action {
  position: sticky;
  bottom: calc(var(--hauteur-onglets) + 10px + env(safe-area-inset-bottom));
  z-index: 5;
}

@media (min-width: 1024px) {
  .barre-action {
    bottom: 18px;
  }
}

/* ---------------------------------------------------------------- Validation (enregistrement vidéo) */

.question {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.question-numero {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--fond-actif);
  color: var(--texte-actif);
  font-weight: 800;
  font-size: 0.92rem;
}

.question.faite .question-numero {
  background: var(--succes-doux);
  color: var(--succes);
}

.question.a-refaire .question-numero {
  background: var(--danger-doux);
  color: var(--danger);
}

.question-corps {
  flex: 1;
  min-width: 0;
}

.question-libelle {
  margin: 0 0 6px;
  color: var(--encre);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.35;
}

.question-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.commentaire {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-doux);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.93rem;
}

.commentaire .ic {
  font-size: 20px;
}

.commentaire strong {
  display: block;
  color: var(--danger);
}

.cadre-video {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
  width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--video);
}

@media (min-width: 640px) {
  .cadre-video {
    aspect-ratio: 16 / 10;
  }
}

.cadre-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--video);
}

.cadre-video video.miroir {
  transform: scaleX(-1);
}

.cadre-video video.revoir {
  object-fit: contain;
}

.cadre-video .sur-video {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.voyant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 31, 0.6);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.voyant::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: clignote 1s ease-in-out infinite;
}

.compte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 31, 0.6);
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.compte.urgent {
  background: rgba(210, 75, 75, 0.9);
}

.niveau-micro {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.niveau-micro span {
  display: block;
  height: 100%;
  width: 0;
  background: #7cf0b6;
  transition: width 0.1s linear;
}

.barre-temps {
  height: 6px;
  margin-top: 12px;
}

.envoi {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.envoi progress {
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(52, 60, 219, 0.1);
  overflow: hidden;
}

.envoi progress::-webkit-progress-bar {
  background: rgba(52, 60, 219, 0.1);
  border-radius: 999px;
}

.envoi progress::-webkit-progress-value {
  background: var(--violet);
  border-radius: 999px;
}

.envoi progress::-moz-progress-bar {
  background: var(--violet);
  border-radius: 999px;
}

.etat-envoye {
  display: flex;
  gap: 14px;
  align-items: center;
}

.etat-envoye .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--succes-doux);
  color: var(--succes);
  font-size: 28px;
}

.etat-envoye h2 {
  margin: 0 0 2px;
}

.etat-envoye p {
  margin: 0;
  color: var(--texte-2);
}

/* Lecture des vidéos par le manager */
.video-revue {
  padding: 18px 0;
  border-top: 1px solid var(--ligne);
}

.video-revue:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.video-revue .lecteur {
  aspect-ratio: 16 / 10;
  margin: 10px 0 12px;
}

.video-revue .lecteur video {
  object-fit: contain;
}

.vitesses {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: #f0f0f6;
}

.vitesses button {
  min-height: 30px;
  padding: 2px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--texte-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.vitesses button[aria-pressed='true'] {
  background: #fff;
  color: var(--encre);
  box-shadow: 0 1px 2px rgba(15, 18, 34, 0.1);
}

.bascule-refaire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: var(--ombre-second);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--texte);
  cursor: pointer;
  user-select: none;
}

.bascule-refaire input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--danger-vif);
}

.bascule-refaire:has(input:checked) {
  background: var(--danger-doux);
  color: var(--danger);
  box-shadow: inset 0 0 0 1.5px rgba(210, 75, 75, 0.5);
}

/* Étages KPI */
.etage-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.etage-tete .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--fond-actif);
  color: var(--violet);
}

.etage-tete.ambre .ic {
  background: var(--ambre-doux);
  color: var(--ambre);
}

.etage-tete.succes .ic {
  background: var(--succes-doux);
  color: var(--succes);
}

.etage-tete h2 {
  margin: 0;
}

.etage-tete .aide {
  margin: 0;
}

.etage-tete .badge {
  margin-left: auto;
}

.maj {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frise {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.frise li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 14px;
}

.frise li::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--ligne);
}

.frise li:last-child::before {
  display: none;
}

.frise .point {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f5;
  color: var(--texte-3);
}

.frise .point .ic {
  font-size: 17px;
}

.frise li.fait .point {
  background: var(--succes-doux);
  color: var(--succes);
}

.frise li.encours .point {
  background: var(--degrade-bouton);
  color: #fff;
}

.frise strong {
  display: block;
  color: var(--encre);
  font-size: 0.94rem;
}

.frise span.aide {
  display: block;
}

/* ---------------------------------------------------------------- Animations */

@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reflet {
  to {
    background-position: -200% 0;
  }
}

@keyframes souffle {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes orbite {
  to {
    transform: rotate(360deg);
  }
}

@keyframes clignote {
  50% {
    opacity: 0.35;
  }
}

@keyframes apparait {
  from {
    opacity: 0;
  }
}

@keyframes monte {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

@keyframes arrive {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}

.corps > * {
  animation: arrive 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.corps > :nth-child(2) {
  animation-delay: 0.05s;
}

.corps > :nth-child(3) {
  animation-delay: 0.1s;
}

.corps > :nth-child(n + 4) {
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------------- Compléments (espace sales, manager, aperçu) */

input[type='url'] {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--carte);
  border: 1.5px solid var(--bord-champ);
  border-radius: var(--r-champ);
  padding: 11px 14px;
  min-height: 48px;
}

input[type='url']:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: var(--ombre-focus);
}

input:disabled {
  background: var(--bloc);
  color: var(--texte-2);
}

.pile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .pile {
    gap: 18px;
  }
}

.centre {
  text-align: center;
}

.bande-progres {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  max-width: 420px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bande-progres .barre {
  flex: 1;
}

.qui-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.qui-ligne h2 {
  margin: 0;
}

.icone-rond {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--fond-actif);
  color: var(--violet);
}

.icone-rond .ic {
  font-size: 21px;
}

.icone-rond.grand {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.lien-carte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.lien-carte .aide {
  margin: 2px 0 0;
}

.lien-carte-stat {
  color: inherit;
  text-decoration: none;
}

.chevron {
  color: var(--texte-3);
}

.barre-fin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.carte-lecteur {
  padding: 10px;
}

@media (min-width: 1024px) {
  .carte-lecteur {
    padding: 12px;
  }
}

.liste-simple {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.lien-ressource {
  color: inherit;
  text-decoration: none;
}

.mot-manager .carte-titre {
  margin-bottom: 10px;
}

/* Rappel de 18 h */
.rappel-soir {
  background: linear-gradient(160deg, #fff8ea 0%, #ffffff 70%);
  box-shadow: inset 0 0 0 1.5px rgba(214, 140, 0, 0.28), var(--ombre-carte);
}

.rappel-tete {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.rappel-tete > .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ambre-doux);
  color: var(--ambre);
}

.rappel-tete h2 {
  margin: 0;
}

.rappel-tete .aide {
  margin: 2px 0 0;
}

.rappel-etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rappel-etapes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ligne);
}

.rappel-etapes li > div {
  flex: 1;
  min-width: 0;
}

.rappel-etapes strong {
  display: block;
  color: var(--encre);
}

.rappel-etapes .aide {
  display: block;
}

.rappel-etapes li.fait strong {
  text-decoration: line-through;
  color: var(--texte-2);
}

.case {
  position: relative;
  display: inline-grid;
  cursor: pointer;
}

.case input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.case-visuel {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bord-champ);
  color: transparent;
  background: #fff;
}

.case-visuel .ic {
  font-size: 18px;
}

.case input:checked + .case-visuel {
  background: var(--succes);
  box-shadow: none;
  color: #fff;
}

.case input:focus-visible + .case-visuel {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

/* Frise horizontale (formation → terrain) */
.frise-ligne {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frise-ligne li {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0;
}

.frise-ligne li::before {
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  top: 13px;
  bottom: auto;
  width: auto;
  height: 2px;
}

.frise-ligne li.fait::before {
  background: rgba(11, 110, 76, 0.4);
}

.frise-ligne strong {
  font-size: 0.86rem;
}

.frise-ligne .aide {
  font-size: 0.75rem;
  line-height: 1.3;
}

@media (max-width: 420px) {
  .frise-ligne .aide {
    display: none !important;
  }
}

.questions .question {
  padding: 16px;
}

@media (min-width: 1024px) {
  .questions .question {
    padding: 20px 22px;
  }
}

.questions .bouton {
  margin-top: 4px;
}

/* Enregistrement */
.segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f0f0f6;
}

.segments button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--texte-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.segments button[aria-pressed='true'] {
  background: #fff;
  color: var(--encre);
  box-shadow: 0 1px 2px rgba(15, 18, 34, 0.1);
}

.enreg .cadre-video {
  margin-bottom: 14px;
}

.enreg .message {
  margin-top: 0;
}

.enreg-actions {
  margin-top: 4px;
}

.enreg .aide.centre {
  margin: 10px 0 0;
}

.boutons.deux {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

/* Rendez-vous de roleplay */
.rdv {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.rdv h2 {
  margin: 0 0 2px;
}

.rdv .aide {
  margin: 0;
}

.rdv-date {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  padding: 8px 0;
  border-radius: 18px;
  background: var(--degrade-bouton);
  color: #fff;
  box-shadow: var(--ombre-bouton);
  line-height: 1.1;
}

.rdv-date span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.rdv-date strong {
  font-size: 1.7rem;
  font-weight: 800;
}

section.rdv {
  margin: 0;
}

/* Ma journée */
.ajout h2 {
  margin-bottom: 12px;
}

.champ-lien {
  display: flex;
  gap: 8px;
  align-items: center;
}

.champ-lien input {
  flex: 1;
  min-width: 0;
}

.champ-lien .bouton-icone {
  width: 48px;
  height: 48px;
  flex: none;
  box-shadow: var(--ombre-second);
  color: var(--violet);
}

.ou {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--texte-3);
  font-size: 0.82rem;
  font-weight: 700;
}

.ou::before,
.ou::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ligne);
}

.deux-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deux-actions .bouton {
  min-height: 56px;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--fond-actif);
  color: var(--texte-actif);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.suggestion span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.envois:empty {
  display: none;
}

.envois {
  margin-top: 10px;
}

.envois progress,
.memo progress {
  width: 100%;
  height: 6px;
  accent-color: var(--violet);
}

.appel {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--ligne);
}

.appel:first-child {
  border-top: 0;
  padding-top: 4px;
}

.appel-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.appel-tete .ligne-nom {
  text-decoration: none;
}

a.ligne-nom {
  color: var(--violet);
}

.choix-resultat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 8px;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ombre-second);
  color: var(--texte);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.puce[aria-pressed='true'] {
  background: var(--fond-actif);
  color: var(--texte-actif);
  box-shadow: inset 0 0 0 2px var(--violet);
}

.puce.succes[aria-pressed='true'] {
  background: var(--succes-doux);
  color: var(--succes);
  box-shadow: inset 0 0 0 2px var(--succes);
}

.puce.ambre[aria-pressed='true'] {
  background: var(--ambre-doux);
  color: var(--ambre);
  box-shadow: inset 0 0 0 2px #d68c00;
}

.puce.gris[aria-pressed='true'] {
  background: #efeff5;
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--texte-3);
}

.puce:disabled {
  cursor: default;
}

.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

input.note {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.93rem;
}

.appel-note {
  margin: 8px 0 0;
  color: var(--texte);
  font-style: italic;
}

audio.audio {
  display: block;
  width: 100%;
  height: 44px;
  margin: 10px 0 0;
}

.lecteur-audio {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.lecteur-audio audio {
  width: 100%;
}

.lecteur-audio .vitesses {
  justify-self: start;
}

.commentaires {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.commentaires li {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bloc);
}

.commentaires .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.commentaires li > div {
  min-width: 0;
  flex: 1;
}

.commentaires p {
  margin: 4px 0 0;
  color: var(--encre);
}

.commentaire-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.commentaire-tete .aide {
  margin-left: auto;
  font-size: 0.8rem;
}

.moment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 26px;
  padding: 2px 10px 2px 6px;
  border: 0;
  border-radius: 999px;
  background: var(--fond-actif);
  color: var(--texte-actif);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.moment .ic {
  font-size: 17px;
}

.historique {
  display: grid;
  gap: 8px;
}

.jour {
  border-radius: 16px;
  background: var(--bloc);
}

.jour summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}

.jour summary::-webkit-details-marker {
  display: none;
}

.jour[open] summary .chevron {
  transform: rotate(180deg);
}

.jour .appels {
  padding: 0 14px 6px;
}

.jour .ligne-nom::first-letter {
  text-transform: uppercase;
}

/* Mémo vocal */
.memo {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0;
}

.memo .audio {
  width: 100%;
}

.memo .boutons {
  width: 100%;
}

.memo-bouton {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: var(--degrade-bouton);
  color: #fff;
  box-shadow: var(--ombre-bouton);
  cursor: pointer;
}

.memo-bouton .ic {
  font-size: 40px;
}

.memo-bouton.actif {
  background: linear-gradient(180deg, #ef6b6b, #d24b4b);
  box-shadow: 0 0 0 10px rgba(210, 75, 75, 0.14);
  animation: clignote 1.4s ease-in-out infinite;
}

.memo-compte {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}

/* Chiffres */
.jauges {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.grille-stats .stat {
  min-height: 132px;
}

/* Espace manager */
.defile {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.total-libelle {
  color: var(--texte-2) !important;
  font-weight: 700 !important;
}

@media (max-width: 759px) {
  .tableau tfoot td.total-libelle {
    display: none;
  }
}

.ligne-progres {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 140px;
  flex: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--texte-2);
  font-variant-numeric: tabular-nums;
}

.ligne-progres .barre {
  flex: 1;
}

@media (max-width: 759px) {
  .ligne-formation {
    flex-wrap: wrap;
  }

  .ligne-formation .ligne-corps {
    flex: 1 1 calc(100% - 60px);
  }

  .ligne-formation .ligne-progres {
    order: 3;
    width: auto;
    flex: 1 1 100%;
    padding-left: 50px;
  }

  .ligne-formation .ligne-fin {
    position: absolute;
    right: 10px;
  }

  .ligne-formation {
    position: relative;
    padding-right: 10px;
  }

  .ligne-formation .ligne-fin .badge {
    display: none;
  }
}

.alerte.lue {
  opacity: 0.7;
}

.alerte .bouton {
  flex: none;
}

@media (max-width: 520px) {
  .alerte {
    flex-wrap: wrap;
  }

  .alerte .ligne-corps {
    flex: 1 1 calc(100% - 60px);
  }

  .alerte .bouton {
    margin-left: 52px;
  }
}

.depot.non-vu .ligne-nom {
  font-weight: 850;
}

.depot:not(.non-vu) .ligne-nom {
  font-weight: 600;
}

.point-nouveau {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(52, 60, 219, 0.14);
}

.appel-carte .bouton {
  margin: 12px 0 4px;
}

.commenter {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
}

.commenter-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commenter-pied .bouton {
  margin-left: auto;
}

.moment-case {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--texte-actif);
  font-variant-numeric: tabular-nums;
}

.moment-case input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--violet);
}

.video-revue-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.video-revue textarea {
  margin-top: 10px;
}

.etapes-resume .ligne {
  padding: 9px 0;
}

.etapes-resume .ligne-nom {
  font-weight: 650;
  font-size: 0.93rem;
}

.carte > .barre {
  margin-bottom: 8px;
}

.point-etape {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0f5;
  color: var(--texte-3);
}

.point-etape .ic {
  font-size: 16px;
}

.point-etape.fait {
  background: var(--succes-doux);
  color: var(--succes);
}

.point-etape.encours {
  background: var(--degrade-bouton);
  color: #fff;
}

.lien-agenda {
  justify-content: flex-start;
}

.lien-agenda .ic:last-child {
  margin-left: auto;
  color: var(--texte-3);
}

.liste-ordre .ligne-ordre {
  background: #fff;
  border-radius: 14px;
  transition: background 0.2s, box-shadow 0.2s;
}

.liste-ordre .ligne-ordre.glisse {
  opacity: 0.5;
}

.liste-ordre .ligne-ordre.survol {
  box-shadow: inset 0 0 0 2px var(--violet);
}

.poignee {
  cursor: grab;
  color: var(--texte-3);
}

.outils-ligne {
  gap: 2px;
}

.outils-ligne .bouton-icone {
  width: 36px;
  height: 36px;
}

.outils-ligne .bouton-icone:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 640px) {
  .ligne-ordre {
    flex-wrap: wrap;
  }

  .ligne-ordre .ligne-corps {
    flex: 1 1 calc(100% - 100px);
  }

  .ligne-ordre .outils-ligne {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

.ajout-ressource {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .ajout-ressource {
    grid-template-columns: 1fr 1.4fr auto;
  }
}

.apercu-chapitre {
  margin-top: 6px;
}

.apercu-cadre {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--bloc);
}

.apercu-cadre > strong {
  color: var(--encre);
}

.petit-select {
  width: auto;
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 10px;
  background-position: right 12px center;
}

@media (max-width: 640px) {
  .outils-ligne .badge {
    display: none;
  }
}

/* ---------------------------------------------------------------- Aperçu des espaces (admin) */

.vignettes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px;
}

.vignette {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.vignette-cadre {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--fond);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.vignette.tel .vignette-cadre {
  border-radius: 22px;
  box-shadow: 0 0 0 6px #14162e, 0 18px 36px -18px rgba(11, 13, 31, 0.6);
  margin: 6px;
}

.vignette.ordi .vignette-cadre {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(15, 18, 34, 0.12), 0 0 0 6px #e7e6f0, 0 18px 36px -18px rgba(41, 43, 170, 0.45);
  margin: 6px;
}

.vignette iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: 0 0;
  background: var(--fond);
}

.vignette:hover .vignette-cadre,
.vignette:focus-visible .vignette-cadre {
  transform: translateY(-4px);
}

.vignette-nom {
  max-width: 200px;
  color: var(--encre);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.vignette.ordi .vignette-nom {
  max-width: 360px;
}

.vision {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  /* Mode clair partout (Hassan) : visionneuse sur fond clair, pas de fond nuit. */
  background: radial-gradient(120% 80% at 50% 0%, #e6e8ff 0%, var(--fond) 70%);
  animation: apparait 0.2s ease-out;
}

.vision .bouton.blanc {
  border: 1px solid rgba(11, 13, 31, 0.12);
}

.vision .bouton.verre {
  background: #fff;
  color: var(--encre);
  box-shadow: inset 0 0 0 1px rgba(11, 13, 31, 0.12);
}

.vision .bouton.verre:hover {
  background: var(--fond-actif);
}

.vision-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--encre);
}

.vision-titre {
  min-width: 0;
}

.vision-titre strong {
  display: block;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aide-claire {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.vision-boutons {
  display: flex;
  gap: 8px;
  flex: none;
}

.vision-boutons .bouton[disabled] {
  opacity: 0.35;
  background: #fff;
  color: var(--encre);
}

.vision .aide-claire {
  color: rgba(11, 13, 31, 0.6);
}

@media (max-width: 640px) {
  .masque-tel {
    display: none;
  }

  .vision-boutons .bouton {
    padding: 6px 10px;
  }
}

.vision-scene {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.vision-cadre {
  position: relative;
  overflow: hidden;
  background: var(--fond);
}

.vision-cadre.tel {
  border-radius: 34px;
  box-shadow: 0 0 0 10px #0b0c1c, 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.vision-cadre.ordi {
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.vision-cadre iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: 0 0;
  background: var(--fond);
}

/* ---------------------------------------------------------------- Maquette Slack (message EOD) */

.page-slack {
  background: #fff;
}

.slack {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1d1c1d;
}

.sl-cote {
  background: #3f0e40;
  color: rgba(255, 255, 255, 0.72);
  padding: 12px 10px;
}

.sl-espace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
}

.sl-rubrique {
  margin: 14px 8px 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.sl-canal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.sl-canal.gras {
  color: #fff;
  font-weight: 800;
}

.sl-canal.actif {
  background: #1164a3;
  color: #fff;
}

.sl-diese {
  width: 18px;
  text-align: center;
  opacity: 0.8;
}

.sl-mini {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #7c3085;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  overflow: hidden;
}

.sl-mini.app {
  background: #fff;
}

.sl-mini img,
.sl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-mini.grand {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(29, 28, 29, 0.13);
}

.sl-principal {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sl-entete {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(29, 28, 29, 0.13);
  font-size: 1.05rem;
}

.sl-badge-app {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(29, 28, 29, 0.1);
  color: rgba(29, 28, 29, 0.7);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sl-fil {
  flex: 1;
  padding: 16px 0;
}

.sl-jour {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.sl-jour::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(29, 28, 29, 0.13);
}

.sl-jour span {
  position: relative;
  padding: 2px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 28, 29, 0.13);
  font-size: 0.8rem;
  font-weight: 700;
}

.sl-message {
  display: flex;
  gap: 10px;
  padding: 8px 20px;
}

.sl-message:hover {
  background: #f8f8f8;
}

.sl-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(29, 28, 29, 0.13);
}

.sl-corps {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.46;
}

.sl-corps p {
  margin: 0;
}

.sl-auteur {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sl-heure {
  color: #616061;
  font-size: 0.75rem;
}

.sl-bloc {
  margin: 6px 0 2px;
  padding-left: 12px;
  border-left: 4px solid #343cdb;
  display: grid;
  gap: 2px;
}

.sl-citation {
  color: #454245;
  font-style: italic;
}

.sl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.sl-bouton {
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(29, 28, 29, 0.3);
  font-size: 0.86rem;
  font-weight: 700;
}

.sl-contexte {
  color: #616061;
  font-size: 0.75rem;
}

.sl-saisie {
  margin: 0 20px 20px;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(29, 28, 29, 0.3);
  color: #868686;
}

@media (max-width: 700px) {
  .slack {
    grid-template-columns: 1fr;
  }

  .sl-cote {
    display: none;
  }
}

.etape-revoir summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -6px 20px 14px;
  width: fit-content;
  padding: 4px 10px 4px 6px;
  border-radius: 10px;
  color: var(--violet);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.etape-revoir summary::-webkit-details-marker {
  display: none;
}

.etape-revoir summary:hover {
  background: var(--teinte);
}

.etape-revoir[open] summary .ic {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .etape-revoir summary {
    margin-left: 26px;
  }
}

.grille.grille-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

@media (max-width: 759px) {
  .grille.grille-stats {
    grid-template-columns: 1fr 1fr;
  }

  .grille.grille-stats .stat.vedette {
    grid-column: 1 / -1;
  }

  .grille-stats .stat {
    min-height: 0;
  }

  .grille-stats .stat-detail {
    font-size: 0.8rem;
  }
}

.corps > .message.attention {
  background: linear-gradient(var(--ambre-doux), var(--ambre-doux)) #fff;
  box-shadow: var(--ombre-carte);
}

.corps > .message.info {
  background: linear-gradient(var(--teinte), var(--teinte)) #fff;
  box-shadow: var(--ombre-carte);
}

.corps > .message.erreur {
  background: linear-gradient(var(--danger-doux), var(--danger-doux)) #fff;
  box-shadow: var(--ombre-carte);
}

.corps > .message.succes {
  background: linear-gradient(var(--succes-doux), var(--succes-doux)) #fff;
  box-shadow: var(--ombre-carte);
}

.corps > .message {
  margin: 0;
  padding: 16px 18px;
  border-radius: 20px;
}

.rappel-etapes li .bouton {
  margin-top: 10px;
}

.alerte .ligne-nom,
.depot .ligne-nom {
  white-space: normal;
}

.video-revue-tete .aide {
  white-space: nowrap;
}

.carte-titre {
  flex-wrap: wrap;
}

.onglet-bas {
  font-size: 0.67rem;
  letter-spacing: -0.01em;
}

.barre-onglets {
  padding-left: 2px;
  padding-right: 2px;
}

.demo-bandeau {
  top: auto;
  bottom: calc(var(--hauteur-onglets) + 10px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  .demo-bandeau {
    bottom: 14px;
    left: auto;
    right: 16px;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Ajouts de Hassan du 28/10 : EOD au format de Romain, chapitres « nouveaux », closes du mois.
   --------------------------------------------------------------------------------------------------------------- */

/* Badge « Nouveau » (chapitre ajouté par le manager après la fin de la formation : il ne bloque rien). */
.badge.nouveau {
  background: var(--ambre-doux);
  color: var(--ambre);
}

.chapitre.nouveau .etat-ic {
  background: var(--ambre-doux);
  color: var(--ambre);
}

.chapitre .badge.nouveau {
  margin-left: auto;
  min-height: 22px;
  padding: 2px 9px;
}

.nouveau-chapitre .aide .badge {
  margin-right: 4px;
}

/* Ma journée : les 5 réponses de l'EOD. */
.eod-carte {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eod-champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eod-libelle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--encre);
  font-size: 0.95rem;
  font-weight: 750;
}

.eod-libelle small {
  color: var(--texte-3);
  font-size: 0.8rem;
  font-weight: 650;
}

.notes-10 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
}

.note-10 {
  height: 42px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--bloc);
  box-shadow: inset 0 0 0 1px var(--ligne);
  color: var(--texte);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.note-10:hover {
  background: var(--teinte);
}

.note-10:active {
  transform: scale(0.94);
}

.note-10:focus-visible {
  outline: none;
  box-shadow: var(--ombre-focus), inset 0 0 0 1px var(--violet);
}

.note-10.actif {
  background: var(--degrade-bouton);
  box-shadow: var(--ombre-bouton);
  color: #fff;
}

.eod-compteurs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
}

.eod-compteur .eod-libelle {
  font-size: 0.88rem;
}

.compteur {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-champ);
  background: var(--bloc);
  box-shadow: inset 0 0 0 1px var(--ligne);
}

.compteur input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--encre);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.compteur input::-webkit-outer-spin-button,
.compteur input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.compteur input:focus {
  outline: none;
  box-shadow: none;
}

.compteur-bouton {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--ombre-second);
  color: var(--violet);
  cursor: pointer;
}

.compteur-bouton:disabled {
  color: var(--texte-3);
  opacity: 0.5;
  cursor: default;
}

.compteur-bouton .ic {
  font-size: 22px;
}

.eod-resume {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.eod-resume-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ligne);
  color: var(--texte-2);
  font-size: 0.92rem;
}

.eod-resume-ligne:first-child {
  border-top: 0;
}

.eod-resume-ligne strong {
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}

.eod-resume-ligne.bloc {
  flex-direction: column;
  gap: 4px;
}

.eod-resume-ligne.bloc p {
  margin: 0;
  color: var(--encre);
  white-space: pre-line;
}

.jour .eod-carte {
  margin: 4px 0 8px;
  padding: 4px 14px;
  box-shadow: inset 0 0 0 1px var(--ligne);
}

.jour .eod-carte .carte-titre {
  display: none;
}

/* Fiche du dépôt côté manager : les réponses de l'EOD. */
.eod-recu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eod-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.eod-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bloc);
}

.eod-note-valeur {
  color: var(--encre);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.eod-note-valeur small {
  margin-left: 2px;
  color: var(--texte-3);
  font-size: 0.9rem;
  font-weight: 700;
}

.eod-raisons p {
  margin: 4px 0 0;
  color: var(--encre);
  white-space: pre-line;
}

/* Cash collecté + closes du mois dans la même tuile. */
.stat-second {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.88rem;
  font-weight: 700;
}

.stat-second > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}

.stat-second .ic {
  font-size: 20px;
  color: #fff;
}

.stat-second strong {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
