/*
 * Atelier — structures et composants métier.
 * Les couleurs sont centralisées dans crm.css ; ces alias gardent les
 * composants historiques compatibles avec le même thème mat.
 * Les zones tactiles, les safe areas et les styles d'impression sont conservés.
 */

:root {
  --fond: var(--crm-fond, #000);
  --fond-carte: var(--crm-panneau, #0b0b0b);
  --fond-champ: var(--crm-champ, #111);
  --separateur: var(--crm-bord, #242424);
  --bord: var(--crm-bord, #242424);
  --texte: var(--crm-texte, #f2f2f2);
  --texte-doux: var(--crm-doux, #aaa);
  --accent: var(--crm-accent, #f2f2f2);
  --accent-fonce: var(--crm-accent-fort, #fff);
  --sur-accent: var(--crm-sur-accent, #000);
  --succes: var(--crm-vert);
  --alerte: var(--crm-rouge);
  --attention: var(--crm-ambre);
  --info: var(--crm-bleu);
  --verre: var(--crm-panneau, #0b0b0b);
  --verre-fort: var(--crm-panneau-2, #111);
  --verre-bord: var(--crm-bord, #242424);
  --verre-reflet: transparent;
  --verre-ombre: none;
  --verre-accueil: var(--crm-panneau, #0b0b0b);
  --intensite-teinte: 0%;
  --fond-ecran: var(--crm-fond, #000);
  --rayon: 12px;
  --marge: 16px;
  --tactile: 44px;
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
  --hauteur-nav: 58px;
  --icone: min(62px, 15.5vw);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; overflow: hidden; -webkit-text-size-adjust: 100%; }

body {
  background: #000;
  color: var(--texte);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button, label, a, select, .ligne-article, .icone-app, .widget { touch-action: manipulation; }
/* Un appui long ne sélectionne pas le texte et n'ouvre pas le menu du navigateur. */
.bouton, .bouton-icone, .bouton-verre, .puce, .segment, .interrupteur, .icone-app, .widget, .ligne-article, .dock,
.pilule-recherche, .rond-verre, .indice-deverrouillage, .verrouillage {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.cache { display: none !important; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ===================================================================== verre */

/* Commandes flottantes : boutons ronds, barres, capsules. */
.bouton-verre, .capsule-recherche, .segments, .dock, .pilule-recherche, .champ-jour, .notification, .menu-rapide,
.rond-verre, .capsule-legende, .panneau-scanner, .hero-points {
  background-color: var(--verre-fort);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 0.5px solid var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), inset 0 -0.5px 0 rgba(255, 255, 255, 0.06), var(--verre-ombre);
}

/* Panneaux : listes, cartes, sections. Translucides sans flou (plus léger
   à faire défiler), le fond teinté de l'app transparaît. */
.liste, .carte, .fiche-section, .tuile, .liste-cases, .resume-ventes, .encart, .widget-jour, .graphique {
  background-color: var(--verre);
  border: 0.5px solid var(--verre-bord);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--verre-reflet) 55%, transparent), 0 6px 22px rgba(0, 0, 0, 0.1);
}

/* ================================================================ le téléphone */

#bureau { height: 100%; }

.telephone {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  /* Toute couche « fixe » à l'intérieur se cale sur le téléphone. */
  transform: translateZ(0);
}

/* Sur un vrai téléphone, l'île, la barre d'état et la barre d'accueil sont
   celles du système : on ne les dessine pas une seconde fois. */
.ilot, .barre-statut, .indicateur-accueil { display: none; }

/* ============================================================ écran verrouillé */

.verrouillage {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: var(--fond-ecran);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  touch-action: none;
}
.verrou-haut { display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--haut) + 30px); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18); }
.cadenas { width: 24px; height: 24px; stroke-width: 2.1; margin-bottom: 10px; }
.cadenas .anse { transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); transform-origin: 16px 10.5px; }
.cadenas.ouvert .anse { transform: translate(0, -2.5px) rotate(28deg); }
.cadenas.petit { width: 30px; height: 30px; margin: 0 auto 10px; display: block; }
.verrou-date { font-size: 20px; font-weight: 600; opacity: 0.92; letter-spacing: 0.01em; }
.verrou-heure {
  font-size: clamp(80px, 25vw, 104px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 2px;
  font-family: "SF Pro Rounded", -apple-system, ui-rounded, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.verrou-bas {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px calc(var(--bas) + 30px);
}
.rond-verre {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background-color: rgba(20, 16, 15, 0.3);
  cursor: pointer;
  padding: 0;
}
.rond-verre svg { width: 24px; height: 24px; stroke-width: 1.9; }
.rond-verre[aria-pressed="true"] { background-color: #fff; color: #111; }
.rond-verre:active { transform: scale(1.12); }
.indice-deverrouillage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.88;
  cursor: pointer;
  padding: 6px 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  animation: rebond 2.4s ease-in-out infinite;
}
.indice-deverrouillage svg { width: 22px; height: 22px; stroke-width: 2.4; }
.verrouillage.attente .indice-deverrouillage { visibility: hidden; }
@keyframes rebond { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(1px); } }

.indicateur-attente {
  position: absolute;
  bottom: calc(var(--bas) + 96px);
  left: 50%;
  width: 60px;
  height: 4px;
  margin-left: -30px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: none;
}
.verrouillage.attente .indicateur-attente { display: block; }
.indicateur-attente::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: #fff; animation: attente 1.1s ease-in-out infinite; }
@keyframes attente { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.panneau-connexion {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(var(--haut) + 24px) 20px calc(var(--bas) + 24px);
  overflow-y: auto;
  background: rgba(12, 9, 8, 0.38);
  -webkit-backdrop-filter: blur(38px) saturate(1.4);
  backdrop-filter: blur(38px) saturate(1.4);
  color: #fff;
}
.connexion-contenu { width: 100%; max-width: 380px; text-align: center; }
.connexion-contenu h2 { margin: 0 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.connexion-texte { margin: 0 0 18px; font-size: 15px; opacity: 0.8; }
#clerk-connexion { display: flex; justify-content: center; text-align: left; }
.bouton-texte.clair { color: #fff; opacity: 0.85; }

.lampe-ecran { position: absolute; inset: 0; z-index: 50; background: #fff; }

/* ============================================================ écran d'accueil */

.accueil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--fond-ecran);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--haut) + 8px);
  transform-origin: 50% 50%;
}
.pages-accueil {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pages-accueil::-webkit-scrollbar { display: none; }
.page-accueil {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  padding: 10px 22px 12px;
}
.page-accueil::-webkit-scrollbar { display: none; }

/* Page « Aujourd'hui » : le fond d'écran passe sous un voile flouté. */
.page-jour {
  background: rgba(10, 8, 8, 0.2);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  padding-top: 6px;
}
.champ-jour {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  background-color: var(--verre-accueil);
}
.champ-jour svg { width: 17px; height: 17px; stroke-width: 2.4; opacity: 0.8; }
.champ-jour span { opacity: 0.8; }
.date-jour { margin: 18px 4px 12px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); }
.widgets-jour { display: flex; flex-direction: column; gap: 14px; }
.widget-jour {
  border-radius: 24px;
  padding: 14px 16px;
  color: #fff;
  background-color: var(--verre-accueil);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
}
.widget-jour h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; opacity: 0.95; }
.widget-jour h3 svg { width: 16px; height: 16px; stroke-width: 2.3; }
.widget-jour .etapes { color: #fff; font-size: 14px; margin-bottom: 12px; }
.widget-jour .bouton { background-color: #fff; color: #7a3a1d; border-color: #fff; }
.widget-jour .vide-petit { color: rgba(255, 255, 255, 0.8); }
.ligne-jour {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  border: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.ligne-jour + .ligne-jour { border-top: 0.5px solid rgba(255, 255, 255, 0.18); }
.ligne-jour .pastille-app { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(165deg, var(--c1), var(--c2)); flex: none; }
.ligne-jour .pastille-app svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 2; }
.ligne-jour .libelle { flex: 1; min-width: 0; }
.ligne-jour .nombre { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chiffres-jour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffres-jour div { display: flex; flex-direction: column; min-width: 0; }
.chiffres-jour strong { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.chiffres-jour span { font-size: 12.5px; opacity: 0.8; }

.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 26px; }
.widget {
  aspect-ratio: 1;
  border-radius: 24px;
  padding: 14px 15px;
  color: #fff;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  background-color: var(--verre-accueil);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 50%);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 22px rgba(0, 0, 0, 0.16);
}
.widget:active { transform: scale(0.97); }
.widget.accent { background-color: rgba(242, 140, 90, 0.55); }
.widget-tete { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; opacity: 0.95; }
.widget-tete svg { width: 16px; height: 16px; stroke-width: 2.2; }
.widget-grand { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-moyen { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-sous { font-size: 13.5px; font-weight: 600; opacity: 0.95; margin-top: 2px; }
.widget-pied { font-size: 12px; opacity: 0.8; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grille-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
  column-gap: 6px;
  justify-items: center;
  align-content: start;
}

.icone-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.carre-app {
  position: relative;
  width: var(--icone);
  height: var(--icone);
  border-radius: 23%;
  background: linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), inset 0 0 0 0.5px rgba(255, 255, 255, 0.25), inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.12s;
}
/* Reflet de verre sur la moitié haute de l'icône. */
.carre-app::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.carre-app svg { width: 56%; height: 56%; stroke: var(--glyphe, #fff); stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15)); }
.icone-app:active .carre-app { filter: brightness(0.72); }
.nom-app {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  max-width: 78px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-app {
  position: absolute;
  z-index: 1;
  top: -7px;
  right: -7px;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--vif-rouge, #ff3b30);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 23px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.points-pages { display: flex; justify-content: center; gap: 8px; margin: 2px 0 6px; }
.points-pages .point { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transition: background 0.2s; }
.points-pages .point.actif { background: #fff; }

.pilule-recherche {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px 16px;
  min-height: 34px;
  border-radius: 18px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--verre-accueil);
  cursor: pointer;
}
.pilule-recherche svg { width: 15px; height: 15px; stroke-width: 2.4; }

.dock {
  flex: none;
  margin: 0 10px calc(var(--bas) + 10px);
  padding: 14px 6px;
  border-radius: 34px;
  background-color: var(--verre-accueil);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}
.dock .icone-app { gap: 0; }

/* Menu d'actions rapides (appui long sur une icône). */
.menu-rapide {
  position: absolute;
  z-index: 900;
  width: 250px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--texte);
  transform-origin: top left;
}
.menu-rapide button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
}
.menu-rapide button + button { border-top: 0.5px solid var(--separateur); }
.menu-rapide button:active { background: var(--separateur); }
.menu-rapide svg { width: 20px; height: 20px; }
.icone-soulevee { position: absolute; z-index: 895; margin: 0; pointer-events: auto; cursor: pointer; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38); }
.voile-menu { position: absolute; inset: 0; z-index: 890; background: rgba(0, 0, 0, 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ================================================================== apps */

.app {
  --c1: #888;
  --c2: #555;
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--texte);
  /* Chaque app est teintée de la couleur de son icône. */
  background:
    radial-gradient(120% 50% at 0% -8%, color-mix(in srgb, var(--c1) var(--intensite-teinte), transparent) 0%, transparent 62%),
    radial-gradient(90% 42% at 100% 0%, color-mix(in srgb, var(--c2) calc(var(--intensite-teinte) * 0.8), transparent) 0%, transparent 60%),
    radial-gradient(90% 40% at 50% 108%, color-mix(in srgb, var(--c1) calc(var(--intensite-teinte) * 0.55), transparent) 0%, transparent 62%),
    var(--fond);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1), filter 0.35s, border-radius 0.35s;
}

/* Barre du haut : elle flotte au-dessus du contenu, qui défile dessous. */
.nav-ios {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(44px, auto) 1fr minmax(44px, auto);
  align-items: center;
  gap: 8px;
  height: calc(var(--hauteur-nav) + var(--haut));
  padding: var(--haut) 12px 0;
}
/* Bord flouté qui n'apparaît qu'une fois le contenu passé sous la barre. */
.nav-ios::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px;
  z-index: -1;
  background: linear-gradient(color-mix(in srgb, var(--fond) 72%, transparent) 40%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.nav-ios.defile::before { opacity: 1; }
.titre-nav {
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  min-width: 0;
}
.titre-nav.visible { opacity: 1; transform: none; }
.espace-nav { width: 44px; }
.nav-ios > :last-child { justify-self: end; }

.bouton-verre {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--texte);
  cursor: pointer;
  padding: 0;
  font: inherit;
  flex: none;
}
.bouton-verre svg { width: 24px; height: 24px; stroke-width: 2.2; }
.bouton-verre:active { transform: scale(0.94); }
.bouton-verre.texte { width: auto; padding: 0 16px; font-size: 16px; font-weight: 600; color: var(--accent); }
.bouton-verre.accent {
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 60%);
  color: var(--sur-accent);
  border-color: color-mix(in srgb, var(--accent) 60%, white);
}
.bouton-verre.grand { width: 54px; height: 54px; border-radius: 27px; }
.bouton-verre.grand svg { width: 26px; height: 26px; }
.bouton-verre.clair { color: #fff; background-color: rgba(30, 26, 25, 0.38); border-color: rgba(255, 255, 255, 0.22); }
.bouton-verre[aria-pressed="true"] { background-color: var(--vif-jaune, #ffd60a); color: #1c1310; }

.defilement {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--marge) calc(30px + var(--bas));
}
/* La place de la barre du haut : une cale plutôt qu'une marge intérieure.
   Les navigateurs récents calculent la position « collante » depuis
   l'intérieur de la marge : avec une marge, les filtres du Stock
   descendaient sur la liste. */
.defilement::before { content: ""; display: block; height: calc(var(--hauteur-nav) + var(--haut)); }
.defilement.avec-barre { padding-bottom: calc(var(--bas) + 100px); }
.grand-titre { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; margin: 0 4px 14px; line-height: 1.15; }

/* Barre flottante en bas (recherche, actions principales). */
.barre-flottante {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bas) + 10px + var(--clavier, 0px));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.barre-flottante .bouton { flex: 1 1 0; min-height: 54px; border-radius: 27px; font-size: 17px; }
.barre-flottante .bouton.secondaire { flex: 0 1 auto; }
.capsule-recherche {
  flex: 1;
  min-width: 0;
  height: 54px;
  border-radius: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  cursor: text;
}
.capsule-recherche svg { width: 19px; height: 19px; stroke-width: 2.3; color: var(--texte-doux); }
.capsule-recherche input { flex: 1; min-width: 0; border: none; background: none; outline: none; color: var(--texte); font: inherit; font-size: 17px; }
.capsule-recherche input::placeholder { color: var(--texte-doux); }

/* Titres de section façon « Réglages ». */
.titre-section { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--texte-doux); margin: 24px 18px 8px; }
.titre-section:first-child { margin-top: 6px; }
.pied-section { font-size: 13px; color: var(--texte-doux); margin: 8px 18px 0; }
/* Un groupe sans titre reste séparé du précédent, comme dans Réglages. */
.pied-section + .liste, .liste + .liste { margin-top: 26px; }

/* ================================================================ boutons */

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 20px;
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 60%);
  color: var(--sur-accent);
  border: 0.5px solid color-mix(in srgb, var(--accent) 55%, white);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.bouton svg { width: 19px; height: 19px; stroke-width: 2.1; }
.bouton:active:not(:disabled) { transform: scale(0.97); filter: brightness(0.94); }
.bouton:disabled { opacity: 0.5; cursor: progress; }
.bouton.secondaire, .bouton.danger {
  background-color: var(--verre-fort);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-color: var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 4px 14px rgba(0, 0, 0, 0.1);
  color: var(--accent);
}
.bouton.danger { color: var(--alerte); }
.bouton.petit { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 18px; }
.bouton.petit svg { width: 16px; height: 16px; }
.bouton.large { width: 100%; }
.bouton.lien-bouton { background: none; box-shadow: none; border: none; color: var(--accent); padding: 0; min-height: 40px; justify-content: flex-start; font-weight: 500; }

.bouton-icone {
  position: relative;
  width: var(--tactile);
  height: var(--tactile);
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--texte);
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}
.bouton-icone svg { width: 24px; height: 24px; }
.bouton-icone.encadre { background: var(--fond-champ); color: var(--accent); width: 40px; height: 40px; border: 0.5px solid var(--verre-bord); }
.bouton-icone.encadre svg { width: 21px; height: 21px; stroke-width: 2; }
.bouton-icone:active { opacity: 0.6; }
.bouton-texte {
  min-height: 44px;
  padding: 0 8px;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.bouton-texte:active { opacity: 0.5; }

/* ================================================== listes groupées */

.liste {
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon);
  overflow: hidden;
}
.liste:empty { display: none; }

.ligne-article {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  min-height: 64px;
  cursor: pointer;
  min-width: 0;
}
.ligne-article + .ligne-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 84px;
  right: 0;
  height: 0.5px;
  background: var(--separateur);
}
.ligne-contact + .ligne-contact::before { left: 70px; }
.ligne-article:not(.avec-action)::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-top: 2px solid var(--texte-doux);
  border-right: 2px solid var(--texte-doux);
  transform: rotate(45deg);
  opacity: 0.6;
}
.ligne-article:active { background: var(--fond-champ); }
.ligne-article:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.suivi-ligne { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.suivi-symbole { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--fond-champ); color: var(--accent); }
.suivi-symbole svg { width: 20px; height: 20px; }
.suivi-statut { flex: none; max-width: 100px; padding: 5px 7px; border-radius: 8px; background: var(--fond-champ); color: var(--texte-doux); font-size: 11px; font-weight: 650; line-height: 1.15; text-align: center; }
.suivi-statut.incident, .suivi-etat-detail.incident { color: var(--alerte); }
.suivi-statut.livre_transporteur, .suivi-etat-detail.livre_transporteur { color: var(--avertissement, #e89625); }
.suivi-statut.recu_controle, .suivi-etat-detail.recu_controle { color: var(--succes); }
.suivi-etat-detail { margin: 0; font-size: 17px; font-weight: 700; }
.suivi-evenements { border-top: 1px solid var(--separateur); }
.suivi-evenement { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--separateur); font-size: 13px; }
.suivi-evenement time { color: var(--texte-doux); }
.suivi-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 40px auto 0; padding: 16px 20px 28px; text-align: center; }
.suivi-vide-symbole { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 19px; background: var(--fond-champ); color: var(--accent); }
.suivi-vide-symbole svg { width: 29px; height: 29px; }
.suivi-vide h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.suivi-vide p { max-width: 310px; margin: 0; color: var(--texte-doux); font-size: 14px; line-height: 1.45; }
.suivi-vide .bouton { justify-content: center; width: 100%; max-width: 240px; min-height: 48px; margin-top: 13px; }
.suivi-resume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 14px; padding: 13px 4px; border: .5px solid var(--verre-bord); border-radius: 20px; background: var(--verre); }
.suivi-resume-item { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; text-align: center; }
.suivi-resume-item + .suivi-resume-item { border-left: .5px solid var(--separateur); }
.suivi-resume-item strong { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.suivi-resume-item span { color: var(--texte-doux); font-size: 11px; white-space: nowrap; }
.suivi-resume-item.attention strong { color: var(--attention); }
.suivi-resume-item.alerte strong { color: var(--alerte); }
.suivi-note { margin: 0 4px 14px; color: var(--texte-doux); font-size: 12px; line-height: 1.4; }
.ligne-article.suivi-ligne::after { content: none; }
#nouveau-suivi { justify-self: end; }
.ligne-article > .bouton { flex: none; }

.vignette-mini {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fond-champ);
  display: grid;
  place-items: center;
  color: var(--texte-doux);
  box-shadow: inset 0 0 0 0.5px var(--verre-bord);
}
.vignette-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette-mini svg { width: 24px; height: 24px; opacity: 0.6; }

.ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ligne-haut { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ligne-haut .code { font-size: 13px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-titre { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Deux lignes au plus : l'information utile n'est pas coupée à mi-mot. */
.ligne-detail { font-size: 13px; color: var(--texte-doux); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ligne-article.alerte .ligne-detail { color: var(--alerte); }
#app-ventes .ligne-detail { -webkit-line-clamp: 3; } /* la marge, en fin de ligne, n'est plus coupée sur téléphone (07/11) */

/* Ligne de réglage : libellé à gauche, valeur ou contrôle à droite. */
.ligne-reglage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 16px;
  background: none;
  border: none;
  width: 100%;
  color: var(--texte);
  font: inherit;
  font-size: 16px;
  text-align: left;
}
button.ligne-reglage { cursor: pointer; }
button.ligne-reglage:active { background: var(--fond-champ); }
.ligne-reglage + .ligne-reglage::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 0.5px; background: var(--separateur); }
.ligne-reglage.sans-icone + .ligne-reglage::before, .ligne-reglage + .ligne-reglage.sans-icone::before { left: 16px; }
.ligne-reglage .libelle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-reglage .valeur { color: var(--texte-doux); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.ligne-reglage.danger .libelle { color: var(--alerte); text-align: center; font-weight: 500; }
.ligne-reglage.chevron::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--texte-doux);
  border-right: 2px solid var(--texte-doux);
  transform: rotate(45deg);
  opacity: 0.6;
}
.pastille-reglage { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: linear-gradient(165deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pastille-reglage svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2; }
.ligne-reglage select.champ { width: auto; max-width: 60%; flex: 0 1 auto; margin-left: auto; min-height: 34px; padding: 4px 28px 4px 10px; border: none; background-color: transparent; box-shadow: none; color: var(--texte-doux); text-align: right; text-overflow: ellipsis; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(165deg, #c4ab9b, #7d6a5e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cartes { display: flex; flex-direction: column; gap: 14px; }

.vide { color: var(--texte-doux); font-size: 15px; padding: 46px 20px; text-align: center; margin: 0; }
.vide-petit { color: var(--texte-doux); font-size: 14px; margin: 0; }

/* ======================================================== puces, segments */

.filtres-collants {
  position: sticky;
  top: calc(var(--hauteur-nav) + var(--haut) - 6px);
  z-index: 4;
  margin: 0 calc(var(--marge) * -1) 6px;
  padding: 6px var(--marge) 2px;
}
.filtres-collants .puces { margin-bottom: 8px; }

.puces {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--marge) * -1) 12px;
  padding: 2px var(--marge) 6px;
}
.puces::-webkit-scrollbar { display: none; }
.puce {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  color: var(--texte);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--verre-fort);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 0.5px solid var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 3px 10px rgba(0, 0, 0, 0.08);
}
.puce.active { background-color: var(--accent); color: var(--sur-accent); font-weight: 600; border-color: color-mix(in srgb, var(--accent) 55%, white); }
.puce:active { transform: scale(0.96); }

.filtre-lot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 15px; color: var(--accent); }

.segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 22px;
  margin-bottom: 16px;
}
.segment {
  min-height: 36px;
  border: none;
  border-radius: 19px;
  background: none;
  color: var(--texte);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 8px;
}
.segment.actif {
  background: color-mix(in srgb, var(--texte) 14%, transparent);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.segments.mini { margin: 0; }
.segments.mini .segment { min-height: 30px; font-size: 13px; }

/* ================================================================ pastilles */

.pastille {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fond-champ);
  color: var(--texte-doux);
  white-space: nowrap;
  flex: none;
  font-weight: 600;
}
.pastille.a_preparer { color: var(--attention); background: color-mix(in srgb, var(--attention) 17%, transparent); }
.pastille.pret { color: var(--info); background: color-mix(in srgb, var(--info) 17%, transparent); }
.pastille.en_ligne, .pastille.rentable { color: var(--succes); background: color-mix(in srgb, var(--succes) 17%, transparent); }
.pastille.vendu { color: var(--sur-accent); background: var(--accent); }
.pastille.expedie, .pastille.termine { color: var(--accent); background: color-mix(in srgb, var(--accent) 17%, transparent); }
.pastille.invendable, .pastille.retire { color: var(--alerte); background: color-mix(in srgb, var(--alerte) 17%, transparent); }

/* ================================================================== cartes */

.carte { border-radius: 26px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.carte.cliquable { cursor: pointer; }
.observations-ventes { margin-block: 12px; overflow-wrap: anywhere; }
.observations-ventes summary { cursor: pointer; font-weight: 650; }
.gros-rubriques { overflow-x: auto; justify-content: flex-start; flex-shrink: 0; max-width: 100%; margin-block: 8px 14px; }
.gros-rubriques .segment { flex: 0 0 auto; white-space: nowrap; }
.gros-contenu { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gros-contenu .carte { overflow-wrap: anywhere; }
.observations-ventes .controle-ligne { padding-block: 12px; border-top: 1px solid var(--separateur); }
.observations-ventes .controle-ligne p { margin-block: 6px 10px; }
.carte.cliquable:active { transform: scale(0.99); background-color: var(--fond-champ); }
.carte h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.carte-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

/* Anneau de progression, façon Activité : part du lot déjà récupérée. */
.carte-lot-haut { display: flex; align-items: center; gap: 16px; }
.anneau { position: relative; width: 72px; height: 72px; flex: none; }
.anneau::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--succes) calc(var(--p, 0) * 1%), color-mix(in srgb, var(--succes) 16%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.anneau span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.carte-lot-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.meta-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.meta-libelle { font-size: 11.5px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.meta-valeur { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.meta-item.positif .meta-valeur { color: var(--succes); font-weight: 700; }
.meta-item.negatif .meta-valeur { color: var(--alerte); font-weight: 700; }

.extrait { margin: 0; font-size: 14px; color: var(--texte-doux); overflow-wrap: anywhere; white-space: pre-line; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .bouton { flex: 1 1 auto; }

.jauge { height: 8px; border-radius: 4px; background: var(--fond-champ); overflow: hidden; }
.jauge-rempli { height: 100%; background: var(--succes); border-radius: 4px; }
.jauge-texte { margin: 0; font-size: 13.5px; color: var(--texte-doux); }

/* Résumé en tête de Ventes. */
.resume-ventes { border-radius: 24px; padding: 14px 16px; margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.resume-ventes div { display: flex; flex-direction: column; min-width: 0; }
.resume-ventes strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.resume-ventes span { font-size: 12.5px; color: var(--texte-doux); }
.resume-ventes .positif strong { color: var(--succes); }

/* Chiffres du Bilan. */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile { border-radius: 24px; padding: 14px 15px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tuile-icone { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--teinte, var(--accent)) 22%, transparent); color: var(--teinte, var(--accent)); margin-bottom: 4px; }
.tuile-icone svg { width: 17px; height: 17px; stroke-width: 2.2; }
.tuile-valeur { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tuile-libelle { font-size: 13px; color: var(--texte-doux); }
.tuile.positif .tuile-valeur { color: var(--succes); }
.tuile.negatif .tuile-valeur { color: var(--alerte); }

.graphique { border-radius: 24px; padding: 16px; }
.graphique-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.graphique-tete strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.graphique-tete span { font-size: 13px; color: var(--texte-doux); }
.barres { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.barre-jour { flex: 1; min-height: 4px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--c1), var(--c2)); opacity: 0.95; }
.barre-jour.sans-vente { background: var(--fond-champ); opacity: 1; }
.barre-jour.aujourdhui { box-shadow: 0 0 0 1.5px var(--texte); }
.barre-jour.futur { background: transparent; box-shadow: inset 0 0 0 0.5px var(--separateur); }
.axe { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--texte-doux); }
/* Vues et favoris d'une annonce : deux tuiles, puis les courbes (bleu : vues, rose : favoris), comme l'app Santé. */
.graphique-stats { margin: 10px 0; background: var(--ios-papier, var(--fond-carte)); }
.stats-tete { justify-content: flex-start; gap: 22px; }
.tuile-stat { display: flex; flex-direction: column; }
.tuile-stat strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--texte); }
.tuile-stat small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.tuile-stat.vues small { color: var(--ios-bleu, var(--vif-bleu, #007aff)); }
.tuile-stat.favoris small { color: #ff2d55; }
.graphique-stats svg { width: 100%; height: 90px; display: block; overflow: visible; }
.courbe-vues { fill: none; stroke: var(--ios-bleu, var(--vif-bleu, #007aff)); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.aire-vues { fill: color-mix(in srgb, var(--ios-bleu, var(--vif-bleu, #007aff)) 16%, transparent); stroke: none; }
.courbe-favoris { fill: none; stroke: #ff2d55; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 0; stroke-linejoin: round; }
.constat-action-extension { font-size: 13px; color: var(--texte-doux); margin: 4px 0; }
.prix-action-extension { font-weight: 600; margin: 2px 0; }

.etapes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.etapes li::marker { font-weight: 700; }

/* ================================================================ scanner */

.app-scanner { background: #000; color: #fff; }
.app-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav-ios.transparente .titre-nav { color: #fff; }
.app-scanner .bouton-verre { color: #fff; background-color: rgba(30, 26, 25, 0.38); border-color: rgba(255, 255, 255, 0.22); }
.app-scanner .bouton-verre[aria-pressed="true"] { background-color: var(--vif-jaune, #ffd60a); color: #1c1310; }
/* Viseur à coins, comme le lecteur de codes de l'iPhone. */
.viseur {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(68%, 290px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 30px;
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.4);
  --coin: 46px;
  --epaisseur: 5px;
  background:
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) top left / var(--coin) var(--epaisseur) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) top left / var(--epaisseur) var(--coin) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) top right / var(--coin) var(--epaisseur) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) top right / var(--epaisseur) var(--coin) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) bottom left / var(--coin) var(--epaisseur) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) bottom left / var(--epaisseur) var(--coin) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) bottom right / var(--coin) var(--epaisseur) no-repeat,
    linear-gradient(var(--vif-jaune, #ffd60a), var(--vif-jaune, #ffd60a)) bottom right / var(--epaisseur) var(--coin) no-repeat;
}
.viseur span { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; border-radius: 1px; background: rgba(255, 214, 10, 0.75); box-shadow: 0 0 12px rgba(255, 214, 10, 0.8); animation: balayage 2.2s ease-in-out infinite; }
@keyframes balayage { 0%, 100% { transform: translateY(-110px); opacity: 0.2; } 50% { transform: translateY(110px); opacity: 1; } }
.panneau-scanner {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bas) + 12px + var(--clavier, 0px));
  z-index: 5;
  padding: 16px;
  border-radius: 30px;
  background-color: rgba(28, 24, 23, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}
.etat-scanner { margin: 0 0 4px; text-align: center; font-size: 17px; font-weight: 600; }
.aide-scanner { margin: 0 0 12px; text-align: center; font-size: 13px; opacity: 0.75; }
.lien-scanner { display: block; margin: -4px auto 12px; padding: 6px 12px; border: 0; background: none; color: var(--vif-jaune, #ffd60a); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ligne-code { display: flex; gap: 8px; }
.ligne-code .champ { flex: 1; text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255, 255, 255, 0.14); color: #fff; border: none; border-radius: 22px; }
.ligne-code .champ::placeholder { text-transform: none; font-family: -apple-system, ui-sans-serif, system-ui, sans-serif; color: rgba(255, 255, 255, 0.6); }
.ligne-code .bouton { min-height: 44px; border-radius: 22px; }

/* ============================================================== formulaires */

.champ {
  width: 100%;
  min-height: 48px;
  background: var(--fond-champ);
  border: 0.5px solid var(--verre-bord);
  border-radius: 16px;
  padding: 11px 14px;
  color: var(--texte);
  font: inherit;
  /* 16 px minimum : en dessous, iOS zoome automatiquement au focus. */
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.champ:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.champ.compact { width: auto; min-height: 36px; padding: 6px 30px 6px 10px; }
textarea.champ { resize: vertical; min-height: 64px; line-height: 1.45; }
select.champ { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.formulaire { display: flex; flex-direction: column; gap: 14px; }
.rangee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.champ-groupe { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.libelle-champ { font-size: 13px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; margin-left: 4px; }
.aide-champ { font-size: 13px; color: var(--texte-doux); margin: 0 4px; }

/* Cases rondes, comme dans Rappels. */
.case { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-size: 16px; min-width: 0; }
.case input {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  flex: none;
  margin: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--texte) 35%, transparent);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.case input:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.case input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acte-stock .case { align-items: flex-start; }
.acte-stock .case span { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.45; }
.verification-fiscale .case, .verification-fiscale.case { align-items: flex-start; }
.verification-fiscale .case span, .verification-fiscale.case span { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.45; }
.case .code { color: var(--accent); }

.liste-cases {
  display: flex;
  flex-direction: column;
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  padding: 2px 16px;
}
.liste-cases .case + .case { border-top: 0.5px solid var(--separateur); }
/* Dans l'app Étiquettes, la liste défile avec la page. */
.liste-cases.pleine { max-height: none; border-radius: var(--rayon); }

.choix-rapide .champ { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.puces-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.puces-choix.defilant {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--marge) * -1);
  padding: 1px var(--marge) 4px;
  scroll-padding-inline: var(--marge);
}
.puces-choix.defilant::-webkit-scrollbar { display: none; }
.puces-choix .puce { min-height: 40px; padding: 0 15px; background-color: var(--fond-champ); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.puces-choix .puce.active { background-color: var(--accent); }
.puces-choix .puce.autre { background: transparent; border: 1px dashed var(--bord); color: var(--texte-doux); }

.plus-details { border-top: 0.5px solid var(--separateur); padding-top: 4px; }
.plus-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.plus-details summary::-webkit-details-marker { display: none; }
.plus-details summary::before { content: "›"; font-size: 22px; line-height: 1; transition: transform 0.15s; width: 12px; }
.plus-details[open] summary::before { transform: rotate(90deg); }
.plus-details[open] summary { margin-bottom: 10px; }

/* Bouton de soumission par défaut : présent pour la touche Entrée, invisible. */
.defaut-invisible { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; border: 0; padding: 0; }

/* ======================================== couches : fiche, feuille, visionneuse */

/* Les fenêtres restent DANS le téléphone : elles ne sont pas ouvertes en
   mode « modal » du navigateur, qui les placerait au-dessus de tout l'écran. */
dialog.couche {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: var(--fond);
  color: var(--texte);
}
dialog:focus { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, white); outline-offset: 2px;
}
/* Cible de focus initial invisible : pas d'anneau parasite sur le premier bouton. */
.point-focus { position: absolute; width: 1px; height: 1px; overflow: hidden; outline: none; }

.voile { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }

/* L'écran qui passe sous une feuille recule, comme sur iPhone. */
.en-retrait { transform: scale(0.92) translateY(calc(var(--haut) * 0.5 + 8px)); border-radius: 22px; overflow: hidden; filter: brightness(0.8);
  /* Autour de l'écran qui recule, du noir, comme sur iPhone (et pas l'écran d'accueil). */
  box-shadow: 0 0 0 100vmax #000; }
/* L'écran d'où l'on pousse une fiche glisse un peu vers la gauche. */
.pousse { transform: translateX(-26%); filter: brightness(0.78); }
.accueil, #fiche { transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1), filter 0.35s, border-radius 0.35s; }

/* ---------------------------------------------------------------- fiche */

#fiche {
  --c1: #f7a86e;
  --c2: #c75a28;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(90% 40% at 50% 108%, color-mix(in srgb, var(--c1) calc(var(--intensite-teinte) * 0.5), transparent) 0%, transparent 62%),
    var(--fond);
}
#fiche[open] { display: flex; }
.fiche-barre .titre-nav { display: flex; justify-content: center; }

.fiche-corps { display: flex; flex-direction: column; gap: 14px; padding-top: 0; }

/* Photos en grand, bord à bord, sous la barre : c'est ce qu'on regarde au
   scan d'un colis. On les fait défiler du doigt. */
.fiche-hero {
  position: relative;
  flex: none;
  margin: 0 calc(var(--marge) * -1);
  height: min(112vw, 470px);
  background: linear-gradient(165deg, var(--c1), var(--c2));
  overflow: hidden;
}
.hero-piste { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-piste::-webkit-scrollbar { display: none; }
.hero-photo { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; border: none; padding: 0; background: #111; cursor: zoom-in; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-genre {
  position: absolute;
  left: 14px;
  bottom: 44px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1310;
  background: rgba(240, 184, 74, 0.94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hero-genre.colis { background: rgba(255, 255, 255, 0.88); }
.fiche-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--haut) + 90px); background: linear-gradient(rgba(0, 0, 0, 0.35), transparent); pointer-events: none; }
.hero-points { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; border-radius: 12px; background-color: rgba(30, 26, 25, 0.38); border-color: rgba(255, 255, 255, 0.22); }
.hero-points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.hero-points i.actif { background: #fff; }
.hero-vide { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; padding-top: calc(var(--haut) + 30px); }
.hero-vide > svg { width: 64px; height: 64px; stroke-width: 1.4; opacity: 0.9; }
.hero-vide p { margin: 0; font-size: 15px; opacity: 0.9; }
.hero-vide .bouton { background-color: rgba(255, 255, 255, 0.92); color: #7a3a1d; border-color: #fff; }

.fiche-entete { padding: 2px 4px 0; }
.ligne-code-statut { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.puce-code { font-size: 14px; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fiche-entete h2 { margin: 0 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; overflow-wrap: anywhere; line-height: 1.15; }
.discret { color: var(--texte-doux); font-size: 14.5px; margin: 0; }
.erreur { color: var(--alerte); font-size: 14px; }

.fiche-actions .bouton { min-height: 56px; border-radius: 28px; }

.fiche-section { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 26px; }
.fiche-section h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.section-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.section-tete h3 { font-size: 15px; font-weight: 600; }
.section-tete + .section-tete, .bande-photos + .section-tete { border-top: 0.5px solid var(--separateur); padding-top: 10px; }

.chiffre-marge { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chiffre-marge strong { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chiffre-marge span { color: var(--texte-doux); font-size: 14px; }
.chiffre-marge.positif strong { color: var(--succes); }
.chiffre-marge.negatif strong { color: var(--alerte); }

.actions-liste .bouton { justify-content: flex-start; width: 100%; background: none; box-shadow: none; border: none; padding: 0; min-height: 46px; font-weight: 500; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.actions-liste .bouton + .bouton { border-top: 0.5px solid var(--separateur); }
.actions-liste .bouton.secondaire { color: var(--accent); }
.actions-liste .bouton.danger { color: var(--alerte); }
.ajouts-photo { display: flex; gap: 8px; }
.outils-annonce { display: flex; gap: 8px; flex-wrap: wrap; }
.outils-annonce .bouton { flex: 1 1 140px; }

.encart { border-radius: 22px; padding: 13px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.encart p { margin: 0; }
.encart .bouton { align-self: flex-start; }
.encart.defaut { background-color: color-mix(in srgb, var(--attention) 18%, var(--verre)); }
.encart.defaut strong { color: var(--attention); }
.encart.urgent { background-color: color-mix(in srgb, var(--alerte) 18%, var(--verre)); }
.encart.urgent strong { color: var(--alerte); }
.encart.info { background-color: color-mix(in srgb, var(--info) 15%, var(--verre)); }
.encart.ok { background-color: color-mix(in srgb, var(--succes) 15%, var(--verre)); color: var(--succes); }

.bande-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 0 18px 2px;
}
.bande-photos::-webkit-scrollbar { display: none; }
.tuile-photo {
  flex: none;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  background: var(--fond-champ);
  padding: 0;
  cursor: zoom-in;
}
.tuile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bande-photos.defaut .tuile-photo { outline: 2.5px solid var(--attention); outline-offset: -2.5px; }

.bloc-copie { display: flex; flex-direction: column; gap: 6px; }
.bloc-copie + .bloc-copie { border-top: 0.5px solid var(--separateur); padding-top: 10px; }
.bloc-copie-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bloc-copie-texte { font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.bloc-copie.long .bloc-copie-texte { max-height: 180px; overflow-y: auto; background: var(--fond-champ); border-radius: 14px; padding: 12px; font-size: 14.5px; }

.publication { display: flex; flex-direction: column; gap: 2px; border-top: 0.5px solid var(--separateur); padding-top: 8px; }
.ligne-publication { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lien-externe { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 15px; min-height: 40px; text-decoration: none; }

/* Interrupteur façon iPhone. */
.interrupteur { display: flex; align-items: center; gap: 12px; min-height: 46px; cursor: pointer; font-size: 16px; position: relative; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.glissiere { width: 51px; height: 31px; border-radius: 16px; background: color-mix(in srgb, var(--texte) 16%, transparent); position: relative; flex: none; transition: background 0.2s; }
.glissiere::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.25s cubic-bezier(0.3, 1.3, 0.5, 1); }
.interrupteur input:checked + .glissiere { background: var(--vif-vert, #34c759); }
.interrupteur input:checked + .glissiere::after { transform: translateX(20px); }
.interrupteur input:focus-visible + .glissiere { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------- feuille du bas */

/* Feuille en verre, détachée des bords, comme les feuilles récentes d'iOS. */
#modale {
  inset: auto 8px calc(8px + var(--clavier, 0px)) 8px;
  width: auto;
  height: auto;
  max-height: calc(100% - var(--haut) - 20px - var(--clavier, 0px));
  border-radius: 34px;
  background-color: var(--verre-fort);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%);
  -webkit-backdrop-filter: blur(36px) saturate(1.8);
  backdrop-filter: blur(36px) saturate(1.8);
  border: 0.5px solid var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
#modale.glisse { transition: none; }
/* La feuille ne dépasse jamais l'écran : son contenu défile, ses boutons restent visibles. */
#modale[open] { display: flex; flex-direction: column; }
#modale-form { flex: 1 1 auto; min-height: 0; }
#modale-corps { flex: 0 1 auto; min-height: 0; }
#modale-menu, .modale-tete, #modale-erreur { flex: none; }
.modale-tete { touch-action: none; padding-top: 2px; }
.poignee { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--texte) 28%, transparent); margin: 0 auto 10px; }

#modale-form {
  padding: 8px 18px calc(18px + var(--bas) * 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - var(--haut) - 20px - var(--clavier, 0px));
  max-height: calc(100dvh - var(--haut) - 20px - var(--clavier, 0px));
  position: relative;
}
#modale-titre { margin: 0; font-size: 20px; font-weight: 700; text-align: center; }
#modale-corps { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 2px 18px; --marge: 18px; }
#modale-erreur { margin: 0; }
#modale-menu { display: flex; gap: 10px; margin: 0; padding: 0; flex-wrap: wrap; }
#modale-menu .bouton { flex: 1 1 0; min-height: 52px; border-radius: 26px; }
#modale-menu[data-nombre="3"] .bouton.secondaire:first-of-type { flex: 0 0 auto; }
#modale .liste, #modale .carte { background-color: var(--fond-champ); box-shadow: none; }

/* ------------------------------------------------------------ visionneuse */

.visionneuse { background: #000 !important; color: #fff !important; }
.visionneuse[open] { display: grid; place-items: center; }
#visionneuse-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.visionneuse-haut {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + var(--haut)) 12px 8px 14px;
}
.capsule-legende { padding: 7px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; color: #fff; background-color: rgba(30, 26, 25, 0.38); border-color: rgba(255, 255, 255, 0.22); }
.visionneuse-fleche { position: absolute; top: 50%; margin-top: -22px; }
.visionneuse-fleche.gauche { left: 10px; }
.visionneuse-fleche.droite { right: 10px; }
.visionneuse-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 12px calc(14px + var(--bas));
}
.sombre.champ, .sombre.bouton.secondaire { background-color: rgba(30, 26, 25, 0.45); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.sombre.bouton.danger { color: #ff9a8f; background-color: rgba(30, 26, 25, 0.45); }
.sombre.champ option { color: #000; }

/* ---------------------------------------------------------- recherche */

.recherche-globale { background: color-mix(in srgb, var(--fond) 55%, transparent) !important; -webkit-backdrop-filter: blur(34px) saturate(1.4); backdrop-filter: blur(34px) saturate(1.4); }
.recherche-globale[open] { display: flex; flex-direction: column; }
.resultats-recherche { flex: 1; overflow-y: auto; padding: calc(var(--haut) + 16px) var(--marge) 110px; }
.resultats-apps { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; row-gap: 16px; margin-bottom: 8px; }
.resultats-apps .nom-app { color: var(--texte); text-shadow: none; }
.resultats-metier { gap: 1px; }
.ligne-recherche-metier {
  width: 100%; min-height: 58px; border: 0; background: var(--fond-carte); color: var(--texte);
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; text-align: left;
}
.ligne-recherche-metier:first-child { border-radius: 14px 14px 0 0; }
.ligne-recherche-metier:last-child { border-radius: 0 0 14px 14px; }
.ligne-recherche-metier:only-child { border-radius: 14px; }
.ligne-recherche-metier .pastille-app { width: 36px; height: 36px; flex: 0 0 36px; }
.ligne-recherche-metier .ligne-texte { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-recherche-metier strong, .ligne-recherche-metier small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-recherche-metier strong { font-size: 15px; }
.ligne-recherche-metier small { color: var(--texte-doux); font-size: 12px; }
.ligne-recherche-metier > svg { width: 16px; height: 16px; margin-left: auto; color: var(--texte-doux); }
.accueil, .accueil .icone-app, .dossier-ios-dialog { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dossier-app {
  padding: 8px; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .18));
  border: .5px solid rgba(255, 255, 255, .36);
  box-shadow: 0 4px 13px rgba(0, 0, 0, .24), inset 0 1px 1px rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.dossier-miniatures { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; }
.dossier-miniature { min-width: 0; min-height: 0; border-radius: 6px; background: linear-gradient(145deg, var(--c1), var(--c2)); display: grid; place-items: center; box-shadow: inset 0 .5px 0 rgba(255,255,255,.35); }
.dossier-miniature svg { width: 65%; height: 65%; color: white; fill: none; }
.grille-dossier-apps { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 24px 14px; padding: 8px 0; }
.grille-dossier-apps .icone-app { color: var(--texte); }
.dossier-ios-dialog { display: none; place-items: center; padding: max(var(--haut), 24px) 18px max(var(--bas), 24px) !important; background: rgba(8, 12, 22, .28) !important; -webkit-backdrop-filter: blur(24px) saturate(1.35); backdrop-filter: blur(24px) saturate(1.35); }
.dossier-ios-dialog[open] { display: grid; }
.dossier-ios-panneau {
  width: min(100%, 390px); max-height: min(72dvh, 620px); overflow-y: auto; padding: 18px 18px 24px;
  border-radius: 38px; color: #fff;
  background: linear-gradient(155deg, rgba(67, 76, 103, .82), rgba(25, 31, 49, .78));
  border: .5px solid rgba(255,255,255,.28); box-shadow: 0 22px 60px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(36px) saturate(1.65); backdrop-filter: blur(36px) saturate(1.65);
}
.dossier-ios-tete { position: relative; min-height: 42px; display: grid; place-items: center; margin-bottom: 15px; }
.dossier-ios-tete h2 { margin: 0; max-width: calc(100% - 82px); font-size: 21px; letter-spacing: -.02em; text-align: center; }
.dossier-ios-tete button { position: absolute; right: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); }
.dossier-ios-tete button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.dossier-ios-panneau .grille-dossier-apps .icone-app { color: #fff; }
.dossier-ios-panneau .nom-app { font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.dock-reglage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(250px, 58vw); }
.dock-reglage .champ { min-width: 0; width: 100%; }
.formulaire-dossier .liste-cases { max-height: 48dvh; overflow-y: auto; }
.formulaire-dossier .case { gap: 10px; }
.pastille-app-dossier { width: 34px; height: 34px; flex: 0 0 34px; }
.gestion-dossiers > .bouton { width: 100%; margin-top: 14px; }
.confirmation-atelier p { white-space: pre-line; line-height: 1.45; margin: 6px 0 4px; }

/* ------------------------------------------------ finances & comptabilite */
.finances-segments { position: sticky; z-index: 5; top: calc(var(--haut) + 50px); margin: 0 0 14px; background: color-mix(in srgb, var(--fond) 84%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.finances-segments .segment { font-size: 13px; padding-inline: 5px; }
.compta-outils { display: flex; align-items: end; gap: 10px; margin-bottom: 15px; }
.compta-periode { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--texte-doux); }
.compta-periode .champ { min-height: 42px; }
.compta-outils .bouton { flex: none; min-height: 42px; }
.compta-tuiles { margin-bottom: 14px; }
.compta-tuile { min-height: 112px; }
.compta-tuile-aide { color: var(--texte-doux); font-size: 11.5px; line-height: 1.25; }
.compta-commandes { margin: 12px 0 14px; }
.compta-commandes .bouton { min-width: 0; }
.compta-alerte { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 14px; border: .5px solid color-mix(in srgb, var(--attention) 45%, transparent); border-radius: 18px; color: var(--attention); background: color-mix(in srgb, var(--attention) 12%, transparent); font: inherit; text-align: left; }
.compta-alerte.ok { color: var(--succes); border-color: color-mix(in srgb, var(--succes) 38%, transparent); background: color-mix(in srgb, var(--succes) 10%, transparent); }
.compta-alerte svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.compta-segments { margin-top: 14px; overflow-x: auto; grid-auto-columns: minmax(82px, 1fr); }
.compta-liste { overflow: hidden; gap: 1px; }
.ligne-compta { width: 100%; min-height: 76px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; border: 0; color: var(--texte); background: var(--fond-carte); text-align: left; font: inherit; }
.ligne-compta:first-child { border-radius: 19px 19px 0 0; }
.ligne-compta:last-child { border-radius: 0 0 19px 19px; }
.ligne-compta:only-child { border-radius: 19px; }
.ligne-compta > svg { width: 16px; height: 16px; flex: none; color: var(--texte-doux); fill: none; stroke: currentColor; }
.ligne-compta .ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ligne-compta .ligne-haut { display: flex; justify-content: space-between; gap: 8px; }
.ligne-compta .ligne-haut strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.ligne-compta .ligne-haut strong:last-child { flex: none; font-variant-numeric: tabular-nums; }
.compta-ligne-icone { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--alerte); background: color-mix(in srgb, var(--alerte) 13%, transparent); }
.ligne-compta.recette .compta-ligne-icone { color: var(--succes); background: color-mix(in srgb, var(--succes) 13%, transparent); }
.compta-ligne-icone svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.compta-preuve { width: max-content; max-width: 100%; font-size: 11.5px; color: var(--succes); }
.compta-preuve.manque { color: var(--attention); }
.compta-avertissement { margin-top: 16px; }
.compta-pieces { display: flex; flex-direction: column; gap: 8px; }
.compta-piece { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 15px; background: var(--fond-champ); }
.compta-piece > svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--accent); }
.compta-piece .ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.compta-piece strong, .compta-piece small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compta-piece .bouton-icone { width: 36px; height: 36px; flex: none; }
.compta-audit { margin-top: 18px; padding-top: 4px; border-top: .5px solid var(--separateur); }
.compta-audit .ligne-detail { margin: 7px 0; overflow-wrap: anywhere; }
.tresorerie-tuiles { margin-bottom: 16px; }
.recherche-bas { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bas) + 10px + var(--clavier, 0px)); display: flex; gap: 10px; align-items: center; }
.recherche-bas .bouton-verre { width: 54px; height: 54px; border-radius: 27px; }

/* ------------------------------------------------------- notifications */

.notification {
  position: absolute;
  z-index: 1000;
  top: calc(var(--haut) + 8px);
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 26px;
  color: var(--texte);
  touch-action: none;
}
.notif-icone { width: 38px; height: 38px; border-radius: 10px; flex: none; background: #1b1817; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.notif-icone svg { width: 32px; height: 32px; stroke: #e0976f; stroke-width: 5.5; }
.notif-texte { display: flex; flex-direction: column; min-width: 0; font-size: 15px; line-height: 1.3; }
.notif-texte strong { font-size: 14px; font-weight: 600; }
.notification.erreur .notif-texte strong { color: var(--alerte); }
.notification.succes .notif-texte strong { color: var(--succes); }

/* ============================================================== étiquettes */

.apercu-etiquette {
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--fond-champ);
  border-radius: 20px;
  overflow: auto;
}
.apercu-etiquette .etiquette { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); border-radius: 2mm; }

.etiquette {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8mm;
  padding: 1mm;
  background: #fff;
  color: #000;
  overflow: hidden;
}
.etiquette svg.qr { fill: #000; stroke: none; display: block; flex: none; }
.etiquette-code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #000;
}

#impression { display: none; }

@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; height: auto !important; }
  body > *:not(#impression) { display: none !important; }
  #impression { display: block !important; }
  #impression .etiquette { break-after: page; page-break-after: always; }
  #impression .etiquette:last-child { break-after: auto; page-break-after: auto; }
  #impression .planche {
    width: 210mm;
    height: 297mm;
    display: grid;
    grid-template-columns: repeat(3, 70mm);
    grid-template-rows: repeat(8, 37.125mm);
    break-after: page;
    page-break-after: always;
  }
  #impression .planche:last-child { break-after: auto; page-break-after: auto; }
  #impression .planche .etiquette { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   Sur ordinateur : un iPhone posé au milieu du bureau.
   ========================================================================== */

@media (min-width: 700px) and (min-height: 600px) {
  body { background: #1a1614; }
  #bureau {
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(60% 50% at 20% 10%, rgba(224, 151, 111, 0.18), transparent 70%),
      radial-gradient(50% 50% at 90% 90%, rgba(120, 90, 160, 0.14), transparent 70%),
      #141110;
  }
  .telephone {
    --haut: 54px;
    --bas: 22px;
    --icone: 60px;
    width: 393px;
    height: min(852px, calc(100vh - 40px));
    border-radius: 58px;
    border: 12px solid #0b0a0a;
    box-shadow:
      0 0 0 1.5px #4a4441,
      0 0 0 4px #1d1a19,
      0 40px 90px rgba(0, 0, 0, 0.55);
  }
  .ilot {
    display: block;
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 36px;
    border-radius: 20px;
    background: #000;
    z-index: 3000;
    pointer-events: none;
  }
  .barre-statut {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    padding: 4px 30px 0 40px;
    align-items: center;
    justify-content: space-between;
    z-index: 2999;
    font-size: 16px;
    font-weight: 600;
    color: var(--texte);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
  }
  .telephone.statut-clair .barre-statut { color: #fff; }
  .icones-statut { display: flex; align-items: center; gap: 6px; }
  .icones-statut svg { width: 18px; height: 12px; fill: currentColor; stroke: none; }
  .batterie { width: 26px; height: 12.5px; border: 1.5px solid currentColor; border-radius: 4px; padding: 1.5px; opacity: 0.95; position: relative; }
  .batterie::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: 0.5; }
  .batterie-niveau { display: block; width: 80%; height: 100%; border-radius: 1.5px; background: currentColor; }
  .indicateur-accueil {
    display: block;
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 136px;
    height: 5px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: var(--texte);
    opacity: 0.9;
    z-index: 2999;
    cursor: pointer;
  }
  .indicateur-accueil::before { content: ""; position: absolute; inset: -14px -10px; }
  .telephone.statut-clair .indicateur-accueil { background: #fff; }
  .telephone.sur-accueil .indicateur-accueil { opacity: 0.35; cursor: default; }
}

@media (pointer: coarse) {
  .bouton.petit { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.espace { height: 12px; }
/* Ligne de réglage avec un sélecteur : le libellé garde sa place. */
.ligne-reglage .segments { flex: 0 1 auto; margin: 0 0 0 auto; }
.ligne-reglage .segments .segment { padding: 0 11px; }
.ligne-reglage .segments ~ .libelle, .ligne-reglage .libelle:has(+ .segments) { flex: 1 0 auto; }

/* ============================================================ nouveautés */

/* Panneaux de verre supplémentaires. */
.resultat-simulation, .carte-simulateur, .mode-scan, .pieces-colis, .declaration-urgente {
  border: 0.5px solid var(--verre-bord);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--verre-reflet) 55%, transparent), 0 6px 22px rgba(0, 0, 0, 0.1);
}

.sous-titre { margin: 8px 2px 0; font-size: 15px; font-weight: 700; }

/* --- IA */
.bouton-ia {
  align-self: stretch;
  color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  background-color: transparent;
  background-image: linear-gradient(120deg, #8a3fd1 0%, #d45cc4 50%, #ef9d72 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px rgba(138, 63, 209, 0.28);
}
.bouton-ia svg { stroke: #fff; }
.bouton-ia.travail { background-size: 220% 100%; animation: reflet-ia 1.4s linear infinite; }
@keyframes reflet-ia { from { background-position: 0% 0; } to { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .bouton-ia.travail { animation: none; opacity: 0.8; } }
.proposition-ia .case span { white-space: normal; overflow: visible; line-height: 1.35; padding: 6px 0; }
.proposition-ia .case small { color: var(--texte-doux); font-size: 13px; }

/* --- Série : quantités par taille */
.bascule-serie { min-height: 40px; font-size: 15px; }
.grille-quantites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quantite {
  display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 14px; border-radius: 16px;
  background: var(--fond-champ); border: 0.5px solid var(--verre-bord); min-height: 48px;
}
.quantite.choisie { background: color-mix(in srgb, var(--accent) 20%, var(--fond-champ)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.quantite .taille { flex: 1; font-weight: 700; font-size: 16px; }
.quantite .nombre { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; }
.bouton-icone.mini { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: var(--verre); border: 0.5px solid var(--verre-bord); color: var(--texte); }
.bouton-icone.mini svg { width: 18px; height: 18px; stroke-width: 2.4; }
.serie .champ { margin-top: 8px; }

/* --- Vente : colis groupé */
.colis-groupe .puces-colis { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-colis {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 16%, var(--fond-champ)); border: 0.5px solid var(--verre-bord); font-size: 14px;
}
.puce-colis:not(:has(.bouton-icone)) { padding-right: 12px; }
.puce-colis .code { color: var(--accent); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.puce-colis .bouton-icone.mini { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
.puce-colis .bouton-icone.mini svg { width: 14px; height: 14px; }
.colis-groupe input[type="search"] { margin-top: 8px; }
.resultats-colis { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.resultat-colis {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 14px; text-align: left;
  background: var(--verre); border: 0.5px solid var(--verre-bord); color: var(--texte); font: inherit; font-size: 14.5px; cursor: pointer;
}
.resultat-colis svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2.4; flex: none; }
.resultat-colis .code { color: var(--accent); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; flex: none; }
.resultat-colis span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-doux); }

/* --- Fiche : expédition */
.echeance { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--attention); }
.echeance svg { width: 22px; height: 22px; stroke-width: 2.2; flex: none; }
.echeance.retard { color: var(--alerte); }
.diagnostic-contexte { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 300px; overflow: auto; }
.ou-recuperer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; font-size: 18px; font-weight: 700; background: color-mix(in srgb, var(--info) 16%, var(--fond-champ)); }
.ou-recuperer svg { width: 24px; height: 24px; stroke: var(--info); stroke-width: 2; flex: none; }
.pieces-colis { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--fond-champ); }
.piece-colis {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border: none; background: none; color: var(--texte);
  font: inherit; text-align: left; cursor: pointer; position: relative;
}
.piece-colis + .piece-colis { border-top: 0.5px solid var(--separateur); }
.piece-colis.courante { background: color-mix(in srgb, var(--accent) 12%, transparent); cursor: default; }
.piece-colis .vignette-mini { width: 44px; height: 44px; }
.piece-colis-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.piece-colis-texte .code { color: var(--accent); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.piece-colis-texte span { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille-defaut { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 10px; color: var(--attention); background: color-mix(in srgb, var(--attention) 18%, transparent); flex: none; }
.historique { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--texte-doux); }
.interrupteur.desactive { opacity: 0.45; }

/* --- Achats : simulateur */
.carte-simulateur {
  flex-direction: row; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--texte); font: inherit; cursor: pointer;
  background-color: color-mix(in srgb, #1463d9 16%, var(--verre));
}
.carte-simulateur .pastille-app { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(165deg, var(--c1), var(--c2)); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.carte-simulateur .pastille-app svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 1.9; }
.carte-simulateur .texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.carte-simulateur strong { font-size: 17px; }
.carte-simulateur .texte span { font-size: 14px; color: var(--texte-doux); }
.carte-simulateur:active { transform: scale(0.98); }
.resultat-simulation { border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background-color: var(--verre); min-height: 64px; }
.verdict-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.verdict { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 14px; }
.verdict.positif { color: var(--succes); background: color-mix(in srgb, var(--succes) 18%, transparent); }
.verdict.attention { color: var(--attention); background: color-mix(in srgb, var(--attention) 18%, transparent); }
.verdict.negatif { color: var(--alerte); background: color-mix(in srgb, var(--alerte) 18%, transparent); }
.verdict-tete .chiffre { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.verdict-tete .chiffre.positif { color: var(--succes); }
.verdict-tete .chiffre.negatif { color: var(--alerte); }
.sous-verdict { font-size: 13px; color: var(--texte-doux); margin-top: -8px; text-align: right; }
.rangee-cases { display: flex; gap: 18px; flex-wrap: wrap; }
.aide-champ.avertissement { color: var(--attention); }

/* --- Scanner : rangement et inventaire */
.mode-scan {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; margin: -4px -4px 12px; border-radius: 22px;
  background: color-mix(in srgb, var(--vif-bleu, #0a84ff) 42%, rgba(0, 0, 0, 0.2));
}
.mode-scan-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mode-scan-texte strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-scan-texte span { font-size: 13.5px; opacity: 0.85; }
.mode-scan .bouton { background: #fff; color: #0a3d91; border-color: #fff; flex: none; }
.app-scanner.en-mode .viseur span { background: rgba(100, 210, 255, 0.85); box-shadow: 0 0 12px rgba(100, 210, 255, 0.9); }

/* --- Étiquettes : bacs */
.nouveau-bac { margin: 14px 0 0; }
.nouveau-bac .champ { text-transform: none; font-family: inherit; background: var(--fond-champ); color: var(--texte); border: 0.5px solid var(--verre-bord); }
.nouveau-bac .champ::placeholder { font-family: inherit; color: var(--texte-doux); }

/* --- Bilan : ce qui marche, URSSAF */
.zone-stats { margin-top: 10px; }
.ligne-stat { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
.ligne-stat + .ligne-stat::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--separateur); }
.ligne-stat .ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ligne-stat .ligne-titre { font-weight: 600; }
.ligne-stat .ligne-detail { font-size: 13px; color: var(--texte-doux); }
.jauge-vente { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--texte) 12%, transparent); overflow: hidden; margin-top: 3px; }
.jauge-vente::before { content: ""; display: block; height: 100%; width: var(--p); border-radius: 3px; background: linear-gradient(90deg, var(--vif-violet, #5e5ce6), var(--vif-violet, #bf5af2)); }
.valeur-stat { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; flex: none; }
.valeur-stat.positif { color: var(--succes); }
.valeur-stat.negatif { color: var(--alerte); }
.bloc-vide { padding: 14px 18px; }
.carte-declaration { gap: 14px; }
.declaration-urgente { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--attention) 16%, var(--fond-champ)); }
.declaration-urgente .surtitre { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--attention); }
.declaration-urgente strong { font-size: 19px; }
.declaration-urgente span:last-child { font-size: 14px; color: var(--texte-doux); }
.ligne-detail.positif { color: var(--succes); }

/* --- Réglages */
.ligne-reglage .interrupteur { margin-left: auto; min-height: 31px; }
.saisie-suffixe { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--texte-doux); }
.saisie-suffixe .champ { width: 72px; min-height: 34px; padding: 4px 8px; text-align: right; }
.ligne-reglage.a-faire .valeur { color: var(--attention); font-weight: 600; }
.ligne-groupe .code { color: var(--texte); }

/* ===== Claude : marges, prévisions, bilan, simulateur ===== */

/* --- Bilan : prévisions */
.carte-prevision { gap: 14px; }
.prevision-titre { font-size: 17px; }
.prevision-tete { display: flex; flex-direction: column; gap: 2px; }
.prevision-tete .surtitre { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #8e8cf5; }
.prevision-tete strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prevision-tete span:last-child { font-size: 14px; color: var(--texte-doux); }
.bloc-graphique-prevision { display: flex; flex-direction: column; }
.graphique-prevision { width: 100%; height: 88px; display: block; overflow: visible; stroke: none; }
.graphique-prevision rect { stroke: none; }
.graphique-prevision .barre-passee { fill: color-mix(in srgb, var(--vif-violet, #5e5ce6) 70%, var(--texte) 10%); }
.graphique-prevision .barre-vide { fill: color-mix(in srgb, var(--texte) 12%, transparent); }
.graphique-prevision .fourchette { fill: color-mix(in srgb, var(--vif-violet, #bf5af2) 22%, transparent); stroke: none; }
.graphique-prevision .tendance { fill: none; stroke: var(--vif-violet, #bf5af2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.graphique-prevision .aujourdhui { stroke: var(--texte-doux); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pied-prevision { display: flex; flex-direction: column; gap: 8px; }
.pied-prevision .discret { font-size: 13px; }
.pied-prevision .bouton { align-self: flex-start; }
.conseils-stock { display: flex; flex-direction: column; gap: 10px; }
.ligne-conseil { display: flex; align-items: center; gap: 12px; }
.ligne-conseil .ligne-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ligne-conseil .ligne-titre { font-weight: 600; }
.ligne-conseil .ligne-detail { font-size: 13px; color: var(--texte-doux); }
.puce-conseil { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; }
.ligne-conseil.racheter .puce-conseil { color: var(--succes); background: color-mix(in srgb, var(--succes) 18%, transparent); }
.ligne-conseil.trop .puce-conseil { color: var(--attention); background: color-mix(in srgb, var(--attention) 18%, transparent); }

/* --- Bilan : trésorerie */

/* --- Simulateur d'achat */
.trois-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scenario { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px; border-radius: 16px; background: var(--fond-champ); min-width: 0; }
.scenario.central { outline: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.scenario-nom { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); font-weight: 600; }
.scenario strong { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario strong.positif { color: var(--succes); }
.scenario strong.negatif { color: var(--alerte); }
.scenario-detail { font-size: 12px; color: var(--texte-doux); }
.fiabilite { margin: 0; font-size: 13.5px; font-weight: 600; }
.fiabilite.fiable { color: var(--succes); }
.fiabilite.indicatif, .fiabilite.vise { color: var(--info); }
.fiabilite.incertain, .fiabilite.aucun { color: var(--attention); }
.ajuster-hypotheses { display: flex; flex-direction: column; gap: 10px; }
.ajuster-hypotheses summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 2px; min-height: var(--tactile); display: flex; align-items: center; }
.ajuster-hypotheses[open] summary { margin-bottom: 8px; }
.ajuster-hypotheses .encart + .encart { margin-top: 10px; }
.sous-verdict.gauche { text-align: left; margin-top: -4px; }
.rappel-versements { margin-bottom: 14px; }

/* ===== Codex : achats, grossistes, étiquettes ===== */
.lignes-finance-lot { display: grid; gap: 2px; margin-top: 7px; }
.lignes-finance-lot p { margin: 0; font-size: 13px; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.lignes-finance-lot .projection-lot { margin-top: 3px; font-size: 12px; opacity: 0.82; }
.alerte-lot-dort { margin: 9px 0 0; padding: 8px 10px; border-radius: 12px; color: var(--attention); font-size: 13px; font-weight: 650; background: color-mix(in srgb, var(--attention) 14%, transparent); }
.contacts-grossiste { flex-wrap: wrap; }
.contacts-grossiste .bouton { text-decoration: none; }
.lots-grossiste { display: grid; gap: 10px; }
.lots-grossiste .carte { margin: 0; }
@media (max-width: 390px) {
  .carte-lot-haut { align-items: flex-start; }
  .carte-lot-texte { min-width: 0; }
  .carte-lot-texte .carte-entete { align-items: flex-start; }
  .carte-lot-texte h3 { overflow-wrap: anywhere; }
  .contacts-grossiste .bouton { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
.alerte-cout-lot { margin: 10px 0 0; color: var(--attention); font-size: 13px; font-weight: 650; }

/* Pas de barre de défilement d'ordinateur dans le téléphone : on défile au doigt, à la molette ou au pavé. */
.telephone *, .telephone { scrollbar-width: none; }
.telephone *::-webkit-scrollbar { display: none; }

/* Libellés des segments sur une ligne : chaque segment prend la place de
   son texte, la place en plus est partagée. Dans Réglages, si la ligne est
   trop étroite, les segments passent sous le libellé. */
.segments { grid-auto-columns: auto; }
.segment { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ligne-reglage:has(> .segments) { flex-wrap: wrap; row-gap: 8px; }
.ligne-reglage > .segments { flex: 0 0 auto; margin-left: auto; max-width: 100%; }
.ligne-reglage .segments .segment { padding: 0 10px; }
/* Deux champs côte à côte : un libellé sur deux lignes ne décale plus les cases. */
@supports (grid-template-rows: subgrid) {
  .rangee { grid-template-rows: auto auto auto; row-gap: 0; }
  .rangee > .champ-groupe { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
  .rangee > .champ-groupe > .libelle-champ { align-self: end; }
}

/* ===== Codex : notes collaboratives ===== */
.app-notes { --accent: #d99516; }
.presence-notes { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: -4px 2px 10px; color: var(--texte-doux); font-size: 13px; }
.point-direct { width: 8px; height: 8px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--texte) 24%, transparent); }
.point-direct.actif { background: var(--vif-vert, #34c759); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vif-vert, #34c759) 16%, transparent); }
.recherche-notes { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; margin-bottom: 12px; border-radius: 14px; color: var(--texte-doux); background: var(--fond-champ); border: 0.5px solid var(--verre-bord); }
.recherche-notes svg { width: 17px; height: 17px; flex: none; stroke-width: 2.2; }
.recherche-notes input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--texte); background: transparent; font: inherit; font-size: 15px; }
.segments-notes { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-bottom: 14px; }
.segments-notes::-webkit-scrollbar { display: none; }
.segments-notes .segment { flex: 0 0 auto; padding-inline: 14px; }
.grille-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: calc(24px + var(--bas)); }
.notes-vide { grid-column: 1 / -1; }
.carte-note { --note: #ffd54f; position: relative; min-height: 170px; display: flex; flex-direction: column; gap: 9px; padding: 14px; overflow: hidden; border: 0; border-radius: 22px; color: #211d16; background: color-mix(in srgb, var(--note) 78%, #fff); box-shadow: 0 7px 18px rgba(49, 35, 11, 0.13), inset 0 1px 0 rgba(255,255,255,.55); font: inherit; text-align: left; cursor: pointer; }
.carte-note::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgba(255,255,255,.28), transparent 48%); }
.carte-note:active { transform: scale(.98); }
.carte-note.couleur-bleu, .editeur-note.couleur-bleu { --note: #78c8ff; }
.carte-note.couleur-vert, .editeur-note.couleur-vert { --note: #83dda0; }
.carte-note.couleur-rose, .editeur-note.couleur-rose { --note: #ff9fbe; }
.carte-note.couleur-violet, .editeur-note.couleur-violet { --note: #c6a7ff; }
.carte-note.terminee { opacity: .72; }
.note-carte-haut { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.statut-note, .epingle-note { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 12px; background: rgba(255,255,255,.52); font-size: 11px; font-weight: 750; }
.epingle-note { margin-left: auto; }
.carte-note h2 { position: relative; margin: 0; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.note-extrait { position: relative; display: -webkit-box; margin: 0; overflow: hidden; color: rgba(33,29,22,.72); font-size: 13px; line-height: 1.35; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.progression-note { position: relative; display: grid; gap: 4px; margin-top: auto; }
.progression-note > span { height: 5px; overflow: hidden; border-radius: 3px; background: rgba(33,29,22,.13); }
.progression-note > span::after { content: ""; display: block; width: var(--p); height: 100%; border-radius: inherit; background: rgba(33,29,22,.58); }
.progression-note small { font-size: 11px; color: rgba(33,29,22,.66); }
.note-carte-pied { position: relative; display: flex; justify-content: space-between; gap: 8px; color: rgba(33,29,22,.62); font-size: 10.5px; }
.editeur-note { --note: #ffd54f; display: flex; flex-direction: column; gap: 13px; padding-bottom: 8px; }
.note-direct { display: flex; align-items: center; gap: 8px; color: var(--texte-doux); font-size: 12.5px; }
.note-enregistrement { margin-left: auto; }
.note-conflit { padding: 10px 12px; border: 0; border-radius: 12px; color: #7d3e00; background: #ffd899; font: inherit; font-size: 13px; font-weight: 650; text-align: left; }
.note-titre-edition { width: 100%; padding: 5px 2px; border: 0; outline: 0; color: var(--texte); background: transparent; font: inherit; font-size: 27px; font-weight: 760; letter-spacing: -.025em; }
.note-contenu-edition { width: 100%; min-height: 190px; resize: vertical; padding: 14px; border: .5px solid color-mix(in srgb, var(--note) 48%, var(--verre-bord)); border-radius: 18px; outline: 0; color: var(--texte); background: color-mix(in srgb, var(--note) 13%, var(--fond-champ)); font: inherit; font-size: 16px; line-height: 1.45; }
.note-contenu-edition:focus, .note-titre-edition:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--note) 48%, transparent); }
.controles-note { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.controles-note .compact { flex: 0 0 auto; min-height: 38px; width: auto; padding: 7px 12px; font-size: 13px; }
.bloc-note-section { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 20px; background: var(--fond-champ); border: .5px solid var(--verre-bord); }
.bloc-note-section h3 { margin: 0; font-size: 17px; }
.liste-taches-note { display: flex; flex-direction: column; }
.tache-note { display: grid; grid-template-columns: 22px 1fr 30px; align-items: center; gap: 8px; min-height: 42px; border-bottom: .5px solid var(--separateur); }
.tache-note:last-child { border-bottom: 0; }
.tache-note input { width: 20px; height: 20px; accent-color: var(--accent); }
.tache-note.faite span { color: var(--texte-doux); text-decoration: line-through; }
.supprimer-ligne-note { width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--texte-doux); background: transparent; font: inherit; font-size: 22px; }
.ajout-ligne-note, .ajout-message-note { display: flex; align-items: flex-end; gap: 8px; }
.ajout-ligne-note .champ, .ajout-message-note .champ { min-width: 0; flex: 1; }
.ajout-ligne-note .compact, .ajout-message-note .compact { min-height: 42px; padding: 8px 13px; flex: none; }
.messages-note { display: flex; flex-direction: column; gap: 8px; }
.message-note { max-width: 88%; align-self: flex-start; padding: 9px 11px; border-radius: 15px 15px 15px 4px; background: color-mix(in srgb, var(--texte) 7%, transparent); }
.message-note.moi { align-self: flex-end; border-radius: 15px 15px 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.message-note strong, .message-note small { display: block; font-size: 11px; color: var(--texte-doux); }
.message-note p { margin: 3px 0 4px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.meta-note { margin: 0; color: var(--texte-doux); font-size: 11.5px; text-align: center; }
@media (max-width: 390px) {
  .grille-notes { grid-template-columns: 1fr; }
  .carte-note { min-height: 145px; }
  .note-titre-edition { font-size: 24px; }
  .controles-note { margin-inline: -2px; }
}

/* ===== Claude : outils pro (négociation, colis, cockpit, réception, extension) ===== */

.rangee-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rangee-boutons > .bouton { flex: 0 1 auto; }
.mini-select { width: auto; min-height: 32px; padding: 2px 28px 2px 10px; font-size: 14px; }
.surtitre { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--texte-doux); }
.grand-bouton { width: 100%; min-height: 50px; border-radius: 25px; font-size: 17px; margin-top: 10px; }
.compteur { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 16px; background: var(--fond-champ); min-width: 0; }
.compteur strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compteur span { font-size: 12px; color: var(--texte-doux); }
.compteur.attention strong { color: var(--attention); }
.compteur.negatif strong { color: var(--alerte); }
.positif { color: var(--succes); }
.negatif { color: var(--alerte); }

/* --- fiche : plateformes, négociation, contrôle qualité */
.puces-plateformes { margin-bottom: 4px; }
.puce.en-ligne::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--succes); margin-left: 6px; vertical-align: middle; }
.ligne-publication { flex-wrap: wrap; gap: 8px; }
.niveaux-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.niveau { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px; border-radius: 14px; background: var(--fond-champ); min-width: 0; text-align: center; }
.niveau strong { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.niveau-libelle { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.niveau.cible strong { color: var(--succes); }
.niveau.acceptable strong { color: var(--info); }
.niveau.plancher strong { color: var(--alerte); }
.corps-negociation { display: flex; flex-direction: column; gap: 10px; }
.ligne-offre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.conseil-offre { display: flex; flex-direction: column; gap: 8px; }
.conseil-offre:empty { display: none; }
.puces-controle { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.puce-controle { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px; border-radius: 14px; font-size: 13px;
  background: color-mix(in srgb, var(--attention) 16%, transparent); color: var(--attention); }
.puce-controle svg { width: 14px; height: 14px; stroke-width: 2.4; }
.puce-controle.ok { background: color-mix(in srgb, var(--succes) 14%, transparent); color: var(--succes); }
.grille-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-photo { display: flex; flex-direction: column; gap: 6px; }
.role-photo .tuile-photo { width: 100%; aspect-ratio: 1; height: auto; }

/* --- ventes : offres, préparation des colis */
.barre-ventes { margin: 0 0 12px; }
.carte-offre { gap: 8px; cursor: pointer; }
.assistant-colis { gap: 12px; }
.progression-colis { display: flex; flex-direction: column; gap: 2px; }
.progression-colis strong { font-size: 18px; }
.etapes-colis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.etape-colis { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--texte-doux); text-align: center; }
.etape-colis .rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bord); }
.etape-colis svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--succes); stroke: #fff; stroke-width: 2.6; }
.etape-colis.faite { color: var(--succes); font-weight: 600; }
.piece-a-preparer { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--fond-champ); cursor: pointer; }
.piece-a-preparer .vignette { width: 64px; height: 64px; flex: none; }
.piece-a-preparer .ligne-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.bac-a-recuperer { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--accent); }
.bac-a-recuperer svg { width: 22px; height: 22px; }
.actions-colis { display: flex; flex-direction: column; gap: 8px; }
.actions-colis > .bouton { min-height: 50px; }

/* --- annonces : planning */
.ligne-planning { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
.ligne-planning + .ligne-planning::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--separateur); }
.ligne-planning input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--succes); flex: none; }
.ligne-planning .ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-planning .ligne-detail { font-size: 13px; color: var(--texte-doux); }
.ligne-planning.fait .ligne-titre { text-decoration: line-through; color: var(--texte-doux); }
.ligne-planning.retard .ligne-detail { color: var(--alerte); }

/* --- accueil : aujourd'hui, ma journée */
.widget-aujourdhui .ligne-jour.urgent .nombre { color: #ffb4ac; }
.widget-aujourdhui .grand-bouton { background: rgba(255, 255, 255, 0.92); color: #1c1c1e; border: 0; }
.progression-journee { display: flex; gap: 6px; }
.progression-journee span { flex: 1; height: 4px; border-radius: 2px; background: var(--fond-champ); }
.progression-journee span.fait { background: var(--succes); }
.progression-journee span.actuel { background: var(--accent); }
.tache-journee { align-items: center; text-align: center; gap: 6px; padding: 22px 18px; }
.tache-journee strong { font-size: 22px; letter-spacing: -0.02em; }
.pastille-app.grande { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(165deg, var(--c1), var(--c2)); margin-bottom: 6px; }
.pastille-app.grande svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 1.9; }

/* --- palette de commandes (Ctrl + K) */
.palette { display: flex; flex-direction: column; gap: 10px; }
.saisie-palette { font-size: 18px; min-height: 48px; }
.resultats-palette { max-height: 50vh; overflow-y: auto; }
.ligne-palette { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: none; border: 0; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.ligne-palette svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.ligne-palette .libelle { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-palette .detail { font-size: 13px; color: var(--texte-doux); }
.ligne-palette.active, .ligne-palette:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* --- stock : sélection multiple, dressing, anomalies */
.boutons-stock { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.boutons-stock .bouton-verre { width: 38px; height: 38px; }
.en-selection .ligne-article { cursor: pointer; }
.en-selection .ligne-article::after { content: ""; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--bord); }
.en-selection .ligne-article.choisie::after { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--fond-carte); }
.en-selection .ligne-article.choisie { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.barre-selection { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--bas)); z-index: 20; border-radius: 26px; padding: 10px 12px;
  background-color: var(--verre-fort); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border: 0.5px solid var(--verre-bord); box-shadow: var(--verre-ombre); display: flex; flex-direction: column; gap: 8px; }
.tete-selection { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px; }
.actions-selection { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.actions-selection .bouton { flex: none; }
.carte-anomalies { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 0.5px solid var(--separateur);
  background: color-mix(in srgb, var(--attention) 14%, transparent); color: var(--attention); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.carte-anomalies span { flex: 1; }
.carte-anomalies svg { width: 18px; height: 18px; }
.grille-compteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* --- journal d'activité */
.jour-activite { padding: 12px 16px 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--texte-doux); }
.ligne-activite { display: flex; gap: 12px; align-items: center; padding: 9px 16px; }
.ligne-activite .ligne-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ligne-activite .ligne-detail { font-size: 12.5px; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statut-activite { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.statut-activite svg { width: 15px; height: 15px; stroke-width: 2.6; }
.statut-activite.positif { background: color-mix(in srgb, var(--succes) 18%, transparent); color: var(--succes); }
.statut-activite.negatif { background: color-mix(in srgb, var(--alerte) 18%, transparent); color: var(--alerte); }
.statut-activite.attention { background: color-mix(in srgb, var(--attention) 18%, transparent); color: var(--attention); }

/* --- bilan : objectif, ancienneté */
.carte-objectif { gap: 10px; }
.carte-objectif .jauge-vente { height: 8px; border-radius: 4px; }
.carte-objectif .liste { background: var(--fond-champ); box-shadow: none; border: 0; }
.ligne-tranche { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; position: relative; }
.ligne-tranche + .ligne-tranche::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--separateur); }
.ligne-tranche .ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-tranche .ligne-detail { font-size: 13px; color: var(--texte-doux); }
.puce-tranche { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.puce-tranche.normal { background: var(--vif-vert, #34c759); }
.puce-tranche.surveiller { background: var(--vif-jaune, #ffd60a); }
.puce-tranche.baisse { background: var(--vif-orange, #ff9f0a); }
.puce-tranche.liquider { background: var(--vif-rouge, #ff453a); }
.puce-tranche.destocker { background: var(--vif-violet, #bf5af2); }

/* --- achats : note, cerveau du lot, réception */
.avis-achat { display: flex; align-items: center; gap: 14px; }
.verdict-achat { display: flex; align-items: center; gap: 14px; }
.verdict-achat .ligne-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verdict-achat strong { font-size: 20px; }
.chiffre-achat { font-size: 17px; font-weight: 700; }
.chiffre-achat.positif { color: var(--succes); }
.chiffre-achat.negatif { color: var(--alerte); }
.plus-details[open] { display: flex; flex-direction: column; gap: 10px; }
.avis-achat .ligne-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.anneau-note { width: 58px; height: 58px; }
.anneau-note span { font-size: 17px; }
.score-grossiste { gap: 10px; }
.barres-score { display: flex; flex-direction: column; gap: 6px; }
.barre-score { display: grid; grid-template-columns: 130px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.barre-score strong { text-align: right; font-variant-numeric: tabular-nums; }
.barre-score .jauge-vente { margin: 0; }
.conseil-bon, .conseil-mauvais { margin: 0; font-size: 14px; padding-left: 22px; position: relative; }
.conseil-bon::before { content: "✓"; position: absolute; left: 4px; color: var(--succes); font-weight: 700; }
.conseil-mauvais::before { content: "✗"; position: absolute; left: 4px; color: var(--alerte); font-weight: 700; }
.cerveau-lot { gap: 8px; }
.courbe-lot { height: 110px; }
.courbe-lot .trace-reelle { fill: none; stroke: var(--succes); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.courbe-lot .trace-projetee { fill: none; stroke: var(--vif-violet, #bf5af2); stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.reception { gap: 12px; }
.chrono-reception { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chrono-reception .compteur { padding: 8px 8px; text-align: center; }
.chrono-reception .compteur strong { font-size: 16px; }
.etape-reception { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 17px; }
.etape-reception .numero { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--sur-accent); font-size: 14px; flex: none; }
.zone-photos-reception { display: flex; flex-direction: column; gap: 8px; }
.prix-conseilles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prix-conseilles .aide-champ { grid-column: 1 / -1; }
.prix-conseille { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--bord);
  background: var(--fond-champ); color: var(--texte); font: inherit; cursor: pointer; }
.prix-conseille span { font-size: 12px; color: var(--texte-doux); }
.prix-conseille strong { font-size: 17px; }
.prix-conseille.choisi { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.etapes-installation { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }

/* --- bordereaux : impression */
@media print {
  body.impression-bordereaux #impression .page-bordereau { display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
    break-after: page; page-break-after: always; padding: 3mm; box-sizing: border-box; }
  body.impression-bordereaux #impression .page-bordereau:last-child { break-after: auto; page-break-after: auto; }
  body.impression-bordereaux #impression .page-bordereau img { max-width: 100%; max-height: 100%; object-fit: contain; }
  body.impression-bordereaux #impression .page-bordereau.double img { max-height: 49%; }
  body.impression-bordereaux #impression .fiche-colis { align-items: stretch; justify-content: flex-start; gap: 3mm; font-family: -apple-system, "Segoe UI", sans-serif; color: #000; }
  body.impression-bordereaux #impression .fiche-colis h1 { font-size: 14pt; margin: 0 0 2mm; }
  body.impression-bordereaux #impression .ligne-fiche-colis { display: flex; flex-direction: column; border-top: 0.3mm solid #000; padding-top: 2mm; font-size: 11pt; }
  body.impression-bordereaux #impression .ligne-fiche-colis strong { font-size: 16pt; }
  body.impression-bordereaux #impression .ligne-fiche-colis .bac { font-size: 14pt; font-weight: 700; }
}

@media print {
  body.impression-preuves #impression .page-preuves { color: #000; background: #fff; padding: 12mm; font: 10pt/1.45 Arial, sans-serif; }
  body.impression-preuves #impression .page-preuves h1 { font-size: 18pt; margin: 0 0 3mm; }
  body.impression-preuves #impression .page-preuves h2 { font-size: 13pt; margin: 0 0 3mm; }
  body.impression-preuves #impression .preuve-imprimee { break-inside: avoid; border-top: 0.3mm solid #aaa; padding: 5mm 0; }
  body.impression-preuves #impression .image-preuve-imprimee { display: block; max-width: 80mm; max-height: 90mm; margin-top: 3mm; object-fit: contain; }
  body.impression-preuves #impression .preuve-imprimee .meta { overflow-wrap: anywhere; }
}

/* ===== Notes : mêmes surfaces et repères que les autres apps ===== */
.app-notes, .notes-apple {
  --notes-fond: var(--crm-fond); --notes-papier: var(--crm-panneau); --notes-texte: var(--crm-texte);
  --notes-secondaire: var(--crm-doux); --notes-ligne: var(--crm-bord); --notes-recherche: var(--crm-champ);
  --notes-jaune: var(--crm-accent); --notes-jaune-vif: var(--crm-accent); --notes-menu: var(--crm-panneau-2);
  --accent: var(--crm-accent); color: var(--notes-texte); color-scheme: inherit;
  background: var(--notes-fond); font-family: var(--crm-police);
}
.notes-navigation { position: absolute; inset: var(--haut) 0 auto; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; z-index: 7; background: var(--notes-fond); }
.notes-navigation > span { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.notes-commande { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 4px; min-width: 44px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 0; background: transparent; color: var(--notes-jaune); font: inherit; font-size: 17px; cursor: pointer; box-shadow: none; }
.notes-commande:active { opacity: .5; }
.notes-commande:focus-visible { outline: 2px solid var(--notes-jaune); outline-offset: -3px; border-radius: 6px; }
.notes-commande svg, .notes-menu-ligne svg, .notes-dossier svg { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.notes-retour { padding: 4px 0; min-width: 0; gap: 0; }
.notes-retour svg { width: 21px; }
.notes-retour span { max-width: 110px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.notes-defilement { padding: calc(var(--haut) + 50px) 20px calc(var(--bas) + 76px); }
.app-notes .grand-titre { color: var(--notes-texte); font-size: 34px; font-weight: 700; letter-spacing: -.9px; margin: 2px 0 14px; }
.app-notes .recherche-notes { height: 36px; min-height: 36px; padding: 0 9px; margin-bottom: 24px; border: 0; border-radius: 10px; background: var(--notes-recherche); color: var(--notes-secondaire); }
.app-notes .recherche-notes input { font-size: 17px; color: var(--notes-texte); }
.app-notes .recherche-notes input::placeholder { color: var(--notes-secondaire); }
.notes-sous-titre { margin: 24px 0 9px; font-size: 21px; letter-spacing: -.4px; font-weight: 700; }
.notes-sous-titre:first-child { margin-top: 0; }
.notes-groupe-dossiers { overflow: hidden; background: var(--notes-papier); border-radius: 10px; }
.notes-dossier-ligne { display: flex; align-items: center; position: relative; }
.notes-dossier-ligne:not(:last-child)::after { content: ""; position: absolute; bottom: 0; left: 44px; right: 0; border-bottom: .5px solid var(--notes-ligne); }
.notes-dossier { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 12px 0 calc(14px + var(--profondeur, 0) * 18px); border: 0; background: transparent; color: var(--notes-texte); font: inherit; font-size: 17px; text-align: left; cursor: pointer; }
.notes-dossier > svg:first-child { color: var(--notes-jaune); width: 22px; }
.notes-dossier span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-dossier small { font-size: 16px; color: var(--notes-secondaire); }
.notes-dossier > svg:last-child { color: #c7c7cc; width: 12px; height: 16px; stroke-width: 2.2; }
.notes-dossier:active { background: var(--notes-recherche); }
.notes-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 10px; background: var(--notes-papier); }
.notes-tag { min-height: 32px; min-width: 0; padding: 5px 9px; border-radius: 5px; background: var(--notes-recherche); color: var(--notes-secondaire); font-size: 14px; font-weight: 600; }
.notes-barre-bas { position: absolute; inset: auto 0 calc(var(--clavier, 0px)) 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: calc(52px + var(--bas)); padding: 2px 14px calc(var(--bas) + 5px); background: var(--notes-fond); border-top: .5px solid color-mix(in srgb, var(--notes-ligne) 50%, transparent); }
#notes-compteur { color: var(--notes-texte); font-size: 12px; text-align: center; margin-inline: auto; }
.notes-section-date { font-size: 22px; font-weight: 700; letter-spacing: -.45px; margin: 25px 0 9px; }
.notes-section-date:first-child { margin-top: -3px; }
.notes-groupe-liste { border-radius: 10px; overflow: hidden; background: var(--notes-papier); }
.notes-ligne-hote { position: relative; overflow: hidden; }
.notes-ligne { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 95px; padding: 13px 16px; border: 0; background: var(--notes-papier); color: var(--notes-texte); font: inherit; text-align: left; cursor: pointer; transition: transform .2s; }
.notes-ligne-hote:not(:last-child) .notes-ligne::after { content: ""; position: absolute; bottom: 0; left: 16px; right: 0; border-bottom: .5px solid var(--notes-ligne); }
.notes-ligne-texte { flex: 1; min-width: 0; }
.notes-ligne-titre { display: flex; align-items: center; gap: 6px; }
.notes-ligne-titre strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.notes-ligne-titre > svg { flex: none; width: 12px; height: 16px; stroke: var(--notes-jaune); fill: none; stroke-width: 1.7; margin-left: auto; }
.notes-ligne-detail { display: flex; gap: 7px; margin: 2px 0 0; color: var(--notes-secondaire); font-size: 15px; line-height: 1.35; }
.notes-ligne-detail time { flex: none; }
.notes-ligne-detail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-ligne-partage { display: flex; align-items: center; gap: 4px; color: var(--notes-secondaire); font-size: 12px; margin: 3px 0 0; }
.notes-ligne-partage svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.notes-actions-balaye { position: absolute; inset: 0 0 0 auto; display: flex; width: 112px; background: var(--notes-jaune-vif); }
.notes-actions-balaye .notes-commande { flex: 1; color: #fff; }
.notes-actions-balaye .notes-destructif { background: var(--vif-rouge, #ff3b30); color: #fff; }
.notes-ligne-hote.balayee .notes-ligne { transform: translateX(-112px); }
.notes-selection { width: 23px; height: 23px; border: 1.5px solid var(--notes-ligne); border-radius: 50%; flex: none; text-align: center; font-size: 16px; line-height: 21px; }
.notes-ligne.choisie .notes-selection { background: var(--notes-jaune-vif); border-color: var(--notes-jaune-vif); color: #fff; }
.notes-galerie .notes-groupe-liste { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); background: transparent; gap: 12px; border-radius: 0; }
.notes-galerie .notes-ligne { align-items: flex-start; min-height: 165px; border-radius: 12px; padding: 14px; }
.notes-galerie .notes-ligne-detail { flex-direction: column; }
.notes-galerie .notes-ligne-detail span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.notes-galerie .notes-ligne::after { display: none; }
.notes-vide-apple { padding: 95px 0; font-size: 23px; font-weight: 700; color: var(--notes-secondaire); text-align: center; }
.notes-explication { margin: 12px 4px; color: var(--notes-secondaire); font-size: 13px; }
#note-editeur { display: none; background: var(--notes-papier); overflow: hidden; }
#note-editeur[open] { display: flex; flex-direction: column; }
#note-editeur .notes-navigation, #note-editeur .notes-barre-bas { background: var(--notes-papier); }
.note-navigation { gap: 0; padding-inline: 9px; }
.note-navigation .notes-retour span { max-width: 65px; }
.note-actions { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 0; }
.note-actions .notes-commande { min-width: 35px; padding-inline: 5px; font-size: 17px; }
.note-actions svg { width: 21px; height: 21px; }
.note-actions .note-annuler { min-width: 31px; }
.note-actions .note-annuler svg { width: 18px; }
.note-feuille { flex: 1; min-height: 0; overflow-y: auto; padding: calc(var(--haut) + 49px) 21px calc(var(--bas) + 85px + var(--clavier, 0px)); overscroll-behavior: contain; }
.note-date { margin: 6px 0 17px; color: var(--notes-secondaire); font-size: 12px; text-align: center; }
.note-document { outline: none; border: 0; min-height: 280px; color: var(--notes-texte); font-size: 17px; line-height: 1.48; overflow-wrap: anywhere; cursor: text; -webkit-user-select: text; user-select: text; white-space: pre-wrap; }
.note-document * { -webkit-user-select: text; user-select: text; }
.note-document h1 { font-size: 28px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 10px; }
.note-document h2 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin: 15px 0 6px; }
.note-document h3 { font-size: 19px; font-weight: 600; margin: 12px 0 5px; }
.note-document p { margin: 0 0 7px; }
.note-document ul, .note-document ol { padding-left: 25px; margin: 5px 0 10px; }
.note-document blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--notes-ligne); }
.note-document a { color: var(--notes-jaune); text-decoration: underline; }
.note-document table { width: 100%; border-collapse: collapse; white-space: normal; margin: 15px 0; table-layout: fixed; }
.note-document td, .note-document th { border: 1px solid var(--notes-ligne); padding: 8px; min-width: 35px; height: 39px; }
.note-document [data-monospace] { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
[data-surlignage="jaune"] { background: #ffe98a; color: #151515; } [data-surlignage="rose"] { background: #ffbdd6; color: #151515; }
[data-surlignage="violet"] { background: #d9b9ff; color: #151515; } [data-surlignage="bleu"] { background: #b6ddff; color: #151515; } [data-surlignage="vert"] { background: #b9ebc7; color: #151515; }
.note-outils { justify-content: space-around; padding-inline: 6px; }
.note-outils .notes-commande { min-width: 54px; }
.note-aa { font-size: 22px; letter-spacing: -.7px; }
.note-pointage { display: flex; align-items: flex-start; gap: 11px; min-height: 39px; padding: 4px 0; }
.note-coche { width: 22px; height: 22px; min-width: 22px; min-height: 22px; border: 1.5px solid var(--notes-jaune); border-radius: 50%; padding: 0; margin-top: 2px; font-size: 16px; line-height: 20px; }
.note-pointage.faite .note-coche { background: var(--notes-jaune-vif); color: #fff; border-color: var(--notes-jaune-vif); }
.note-pointage.faite .note-texte-tache { color: var(--notes-secondaire); text-decoration: line-through; }
.note-texte-tache { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--notes-texte); font: inherit; font-size: 17px; line-height: 26px; }
.note-retire-tache { color: var(--notes-secondaire); min-width: 24px; min-height: 28px; padding: 0; opacity: .5; }
.note-retire-tache svg { width: 13px; height: 13px; }
.note-ajout-tache .notes-commande { min-width: 30px; min-height: 30px; padding: 0; }
.note-ajout-tache .note-coche { border-color: var(--notes-ligne); }
.note-piece { position: relative; margin: 16px 0; }
.note-piece > img { display: block; width: 100%; border-radius: 5px; }
.note-piece audio { width: 100%; }
.note-piece-retirer { position: absolute; top: 5px; right: 5px; min-width: 28px; min-height: 28px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.4); }
.note-piece-retirer svg { width: 16px; height: 16px; }
.note-fichier { display: block; padding: 18px; border-radius: 8px; color: var(--notes-jaune); border: 1px solid var(--notes-ligne); font-weight: 600; }
.note-conflit { margin: 0 0 14px; font-size: 13px; padding: 10px; background: color-mix(in srgb, var(--notes-jaune-vif) 18%, var(--notes-papier)); color: var(--notes-texte); border-radius: 7px; }
.note-conflit .notes-commande { font-size: 13px; min-height: 36px; }
.note-panneau { position: absolute; z-index: 20; left: 8px; right: 8px; bottom: calc(var(--bas) + 58px + var(--clavier, 0px)); max-height: calc(100% - var(--haut) - 125px); overflow-y: auto; padding: 0 15px 10px; border-radius: 14px; background: var(--notes-menu); color: var(--notes-texte); box-shadow: 0 6px 35px rgba(0,0,0,.18); border: .5px solid var(--notes-ligne); }
.notes-panneau-tete { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; padding-top: 5px; background: var(--notes-menu); z-index: 1; }
.notes-panneau-tete strong { font-size: 17px; }
.notes-panneau-tete svg { width: 17px; }
.notes-menu-ligne { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border: 0; border-bottom: .5px solid var(--notes-ligne); color: var(--notes-texte); background: transparent; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.notes-menu-ligne:last-child { border-bottom: 0; }
.notes-destructif { color: var(--vif-rouge, #ff3b30); }
.notes-petit-form { display: grid; gap: 10px; padding: 6px 0; }
.notes-petit-form input { border: 1px solid var(--notes-ligne); background: var(--notes-papier); color: var(--notes-texte); border-radius: 7px; font: inherit; font-size: 16px; padding: 10px; width: 100%; }
.notes-format-styles { display: flex; gap: 8px; overflow-x: auto; border-bottom: .5px solid var(--notes-ligne); padding: 5px 0; }
.notes-format-styles .notes-commande { color: var(--notes-texte); font-size: 16px; white-space: nowrap; }
.notes-format-styles .style-h1, .notes-format-styles .style-h2 { font-weight: 700; }
.notes-format-styles .style-pre { font-family: monospace; }
.notes-format-ligne { display: flex; align-items: center; justify-content: space-around; padding: 6px 0; border-bottom: .5px solid var(--notes-ligne); }
.notes-format-ligne .notes-commande { color: var(--notes-texte); }
.format-bold { font-weight: 700; } .format-italic { font-style: italic; } .format-underline { text-decoration: underline; } .format-strikeThrough { text-decoration: line-through; }
.notes-surlignages .notes-commande, .notes-encre { border-radius: 50%; width: 28px; height: 28px; min-width: 28px; min-height: 28px; border: 1px solid rgba(0,0,0,.12); }
.notes-participant { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.notes-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--notes-jaune-vif); color: #fff; font-size: 20px; font-weight: 600; }
.notes-participant strong, .notes-participant small { display: block; }
.notes-participant small { color: var(--notes-secondaire); font-size: 13px; margin-top: 2px; }
.notes-activite h3 { font-size: 18px; }
.notes-activite p { font-size: 14px; padding: 10px 0; border-bottom: .5px solid var(--notes-ligne); margin: 0; }
.notes-activite small { display: block; margin-top: 3px; color: var(--notes-secondaire); }
.notes-dessin canvas { width: 100%; aspect-ratio: 640/600; display: block; background: #fff; touch-action: none; border: 1px solid var(--notes-ligne); }
.notes-dessin .notes-format-ligne { gap: 5px; flex-wrap: wrap; }
#accueil .icone-app[data-app="notes"] .carre-app { background: linear-gradient(to bottom, #ffdf54 0%, #ffcd16 30%, #fafafa 30%, #fff 100%); }
#accueil .icone-app[data-app="notes"] .carre-app > svg { opacity: 0; }
#accueil .icone-app[data-app="notes"] .carre-app::after { content: ""; position: absolute; left: 13%; right: 13%; top: 43%; bottom: 14%; background: repeating-linear-gradient(to bottom, #d7d7da 0 1px, transparent 1px 8px); }
@media (max-width: 350px) { .note-navigation .notes-retour span { max-width: 47px; } .note-actions .note-annuler { display: none; } .notes-defilement { padding-inline: 16px; } .note-feuille { padding-inline: 18px; } }
.note-document.note-avec-suite { min-height: 0; margin-bottom: 10px; }
.note-retire-tache { opacity: 0; }
.note-pointage:focus-within .note-retire-tache { opacity: .5; }
.notes-format-styles { scrollbar-width: none; }
.notes-format-styles::-webkit-scrollbar { display: none; }
.notes-apple { --notes-feuille: var(--crm-fond); }
#note-editeur, #note-editeur .notes-navigation, #note-editeur .notes-barre-bas { background: var(--notes-feuille); }
.notes-actions-balaye { visibility: hidden; }
.notes-ligne-hote.balayee .notes-actions-balaye { visibility: visible; }
.notes-defilement::before { display: none; }

/* Les noms historiques iOS restent des alias de la palette commune. */
@media screen {
  :root {
    --ios-fond: var(--crm-fond); --ios-papier: var(--crm-panneau); --ios-champ: var(--crm-champ);
    --ios-texte: var(--crm-texte); --ios-secondaire: var(--crm-doux); --ios-ligne: var(--crm-bord);
    --ios-bleu: var(--crm-accent); --ios-vert: var(--crm-vert); --ios-rouge: var(--crm-rouge); --ios-orange: var(--crm-ambre);
    --ios-navbar: var(--crm-fond); --ios-toolbar: var(--crm-panneau); --ios-segment: var(--crm-survol);
    --ios-wallpaper: var(--crm-fond);
  }
  :root, :root[data-theme], :root:not([data-theme]) {
    --fond: var(--crm-fond); --fond-carte: var(--crm-panneau); --fond-champ: var(--crm-champ);
    --texte: var(--crm-texte); --texte-doux: var(--crm-doux);
    --separateur: var(--crm-bord); --bord: var(--crm-bord);
    --accent: var(--crm-accent); --accent-fonce: var(--crm-accent-fort); --sur-accent: var(--crm-sur-accent);
    --succes: var(--crm-vert); --alerte: var(--crm-rouge); --attention: var(--crm-ambre); --info: var(--crm-bleu);
    --verre: var(--crm-panneau); --verre-fort: var(--crm-panneau-2); --verre-bord: var(--crm-bord);
    --verre-reflet: transparent; --verre-ombre: none;
    --fond-ecran: var(--crm-fond); --rayon: 12px; --marge: 20px; --hauteur-nav: 48px;
  }

  /* Grandes pages et navigation, comme Réglages / Fichiers / Contacts. */
  .app:not(.app-scanner):not(.app-notes), #fiche { background: var(--fond); }
  .app:not(.app-scanner):not(.app-notes) > .nav-ios, #fiche > .nav-ios {
    background: var(--ios-navbar);
    grid-template-columns: 1fr minmax(0, 1.25fr) 1fr;
    gap: 0; padding-inline: 8px;
  }
  .nav-ios::before {
    inset: 0; background: var(--ios-navbar);
    -webkit-mask-image: none; mask-image: none;
    border-bottom: .5px solid var(--separateur);
  }
  .nav-ios .bouton-verre {
    background: transparent; color: var(--accent); border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 8px;
    justify-self: start;
  }
  .nav-ios > .bouton-verre:last-child { justify-self: end; }
  .nav-ios .bouton-verre.accent { background: transparent; color: var(--accent); }
  .nav-ios .bouton-verre svg { stroke-width: 1.8; }
  .nav-ios [data-accueil], #fiche-retour { display: flex; width: auto; gap: 0; padding-right: 5px; }
  .nav-ios [data-accueil]::after { content: "Accueil"; font-size: 17px; font-weight: 400; }
  #fiche-retour { font-size: 17px; font-weight: 400; }
  .grand-titre { margin: 3px 0 18px; font-size: 34px; letter-spacing: -.9px; line-height: 1.15; }
  .titre-section { font-weight: 400; margin-inline: 16px; letter-spacing: .02em; }
  .pied-section { line-height: 1.45; margin-inline: 16px; }
  .filtres-collants { background: var(--fond); padding-bottom: 5px; margin-bottom: 0; }

  /* Listes groupées : papier uni, séparateurs fins, angles discrets. */
  .liste, .carte, .fiche-section, .tuile, .liste-cases, .resume-ventes, .encart, .graphique,
  .resultat-simulation, .carte-simulateur, .pieces-colis, .declaration-urgente {
    background-image: none; border: 0; box-shadow: none;
  }
  .liste, .liste-cases { background-color: var(--fond-carte); border-radius: 10px; }
  .carte, .fiche-section, .tuile, .graphique, .resume-ventes, .encart, .resultat-simulation { border-radius: 12px; }
  .carte, .fiche-section { padding: 18px 16px; }
  .cartes { gap: 16px; }
  .ligne-article { padding: 12px 16px; gap: 12px; min-height: 80px; }
  .ligne-article + .ligne-article::before { left: 84px; }
  .ligne-article:not(.avec-action)::after, .ligne-reglage.chevron::after { border-color: #aeaeb2; opacity: 1; border-width: 1.5px; }
  .ligne-titre { font-size: 17px; font-weight: 500; letter-spacing: -.2px; }
  .ligne-detail { font-size: 14px; line-height: 1.4; }
  .ligne-article.avec-action .vignette-mini { width: 44px; height: 44px; }
  .ligne-article.avec-action .bouton { background: transparent; color: var(--accent); padding-inline: 4px; font-size: 14px; }
  .ligne-article.avec-action .ligne-titre { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .vignette-mini { border-radius: 8px; box-shadow: none; background: var(--fond-champ); }
  .ligne-haut .code { font-size: 12px; font-weight: 600; letter-spacing: 0; }
  .ligne-reglage { min-height: 49px; font-size: 17px; padding-block: 7px; }
  .pastille-reglage { width: 29px; height: 29px; border-radius: 6px; box-shadow: none; }
  .pastille-reglage svg { width: 19px; height: 19px; stroke-width: 1.7; }
  .avatar { background: #a1a1aa; box-shadow: none; font-size: 19px; font-weight: 400; }
  .ligne-contact { min-height: 72px; }
  .ligne-contact + .ligne-contact::before { left: 72px; }
  .pastille { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 3px 6px; }
  .pastille-app { box-shadow: none; }

  /* Commandes et champs ; les variantes d'alerte et les états restent visibles. */
  .bouton { background-image: none; box-shadow: none; border: 0; border-radius: 10px; font-weight: 600; }
  .bouton.secondaire, .bouton.danger {
    background: var(--fond-champ); box-shadow: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .bouton.petit { border-radius: 8px; }
  .bouton.bouton-ia { background: linear-gradient(110deg, #5856d6, var(--vif-violet, #af52de)); color: #fff; }
  .bouton.bouton-ia.travail { background-size: 220% 100%; }
  .bouton-verre:not(.clair) { background-image: none; box-shadow: none; border: 0; }
  .bouton-verre.accent { background: var(--accent); color: var(--sur-accent); }
  .bouton-icone.encadre { border: 0; border-radius: 8px; }
  .champ { background-color: var(--fond-carte); border: .5px solid var(--bord); box-shadow: none; border-radius: 8px; }
  .libelle-champ { text-transform: none; font-size: 14px; letter-spacing: 0; }
  .puce {
    border: 0; box-shadow: none; background: var(--fond-champ); border-radius: 8px;
    -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 14px; min-height: 40px; padding-inline: 13px;
  }
  .puce.active { background: var(--accent); color: var(--sur-accent); }
  .segments { border: 0; box-shadow: none; background: var(--fond-champ); border-radius: 9px; gap: 2px; padding: 2px;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .segment { border-radius: 7px; font-size: 13px; padding-inline: 7px; }
  .segment.actif { background: var(--ios-segment); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
  .glissiere { background: var(--ios-champ); }
  .case input { width: 23px; height: 23px; border-width: 1.5px; border-color: var(--texte-doux); }
  .case { min-height: 50px; }
  .quantite, .scenario, .prix-conseille, .compteur, .puce-colis, .resultat-colis { border-radius: 8px; box-shadow: none; }
  .niveau, .conseil-offre, .planning-ligne { border-radius: 8px; }
  .barre-selection { border: 0; border-radius: 14px; background: var(--ios-toolbar); box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }

  /* Barres de bas d'écran intégrées, sans changer leur emplacement fonctionnel. */
  .barre-flottante {
    left: 0; right: 0; bottom: var(--clavier, 0px); gap: 10px;
    padding: 10px 16px calc(10px + var(--bas)); background: var(--ios-toolbar);
    border-top: .5px solid var(--separateur);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .barre-flottante .bouton, .fiche-actions .bouton { border-radius: 10px; min-height: 44px; font-size: 16px; }
  .barre-flottante .bouton-verre.grand { width: 44px; height: 44px; border-radius: 10px; }
  .capsule-recherche {
    height: 44px; background: var(--fond-champ); border: 0; box-shadow: none; border-radius: 10px; padding-inline: 12px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .capsule-recherche svg { stroke-width: 1.8; }

  /* Achats / Bilan : cartes calmes, chiffres prioritaires, couleurs sémantiques. */
  .carte-simulateur { background: color-mix(in srgb, var(--info) 8%, var(--fond-carte)); }
  .carte-simulateur .pastille-app { border-radius: 10px; box-shadow: none; }
  .anneau::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
  .meta-libelle { font-size: 12px; text-transform: none; letter-spacing: 0; }
  .meta-valeur { font-size: 17px; }
  .tuiles { gap: 10px; }
  .tuile { gap: 6px; padding: 16px; }
  .tuile-icone { border-radius: 7px; background: transparent; margin-bottom: 0; justify-content: start; }
  .tuile-valeur { font-size: 28px; font-weight: 600; }
  .graphique { background: var(--fond-carte); }
  .barre-jour:not(.sans-vente):not(.futur) { background: var(--accent); }
  .jauge-vente::before { background: var(--accent); }
  .fiche-hero { background: linear-gradient(150deg, #4c78ae, #263d5d); }
  .hero-vide .bouton { color: var(--vif-bleu, #007aff); }
  .fiche-section h3, .carte h3 { font-weight: 600; }

  /* Feuilles de formulaire iOS : fond opaque, poignée et actions accessibles. */
  #modale {
    inset-inline: 0; bottom: var(--clavier, 0px); border: 0; border-radius: 20px 20px 0 0;
    background: var(--fond); box-shadow: 0 -5px 30px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  #modale-form { padding-bottom: calc(16px + var(--bas)); }
  #modale-titre { font-size: 18px; font-weight: 600; }
  #modale-menu .bouton { border-radius: 10px; min-height: 48px; }
  #modale .liste, #modale .carte { background: var(--fond-carte); }
  #modale .champ { background-color: var(--fond-carte); }
  .poignee { width: 36px; height: 5px; background: #aeaeb2; margin-bottom: 14px; }
  .notification { border: 0; border-radius: 16px; background: var(--ios-toolbar); box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
  .notif-icone { background: var(--accent); box-shadow: none; }
  .notif-icone svg { stroke: #fff; }
  .menu-rapide { border: 0; border-radius: 13px; background-image: none; }

  /* Scanner et visionneuse restent sombres, comme les outils photo Apple. */
  .app-scanner { --accent: var(--vif-jaune, #ffd60a); --sur-accent: #000; --texte-doux: #c7c7cc; background: #000; }
  .app-scanner .nav-ios { background: rgba(0, 0, 0, .2); }
  .app-scanner .nav-ios::before { background: transparent; border: 0; }
  .app-scanner .nav-ios .bouton-verre { color: var(--vif-jaune, #ffd60a); background: transparent; }
  .app-scanner .nav-ios .bouton-verre[aria-pressed="true"] { background: var(--vif-jaune, #ffd60a); color: #000; }
  .panneau-scanner { background: rgba(28, 28, 30, .94); background-image: none; border: 0; box-shadow: none; border-radius: 16px; }
  .ligne-code .champ { border-radius: 8px; min-width: 0; }
  .ligne-code .bouton { border-radius: 8px; }
  .mode-scan { border: 0; box-shadow: none; border-radius: 10px; }
  .visionneuse .bouton.secondaire, .visionneuse .bouton.danger { background: rgba(44, 44, 46, .9); }

  /* Accueil : icônes iOS mates, widgets papier et dock translucide. */
  .carre-app { box-shadow: 0 2px 5px rgba(0, 0, 0, .13); }
  .carre-app::after { background: none; }
  .carre-app svg { filter: none; stroke-width: 1.7; }
  .icone-app[data-app="stock"] .carre-app { background: linear-gradient(#ffae42, #ff7b24); }
  .icone-app[data-app="achats"] .carre-app { background: linear-gradient(#45b5ff, var(--vif-bleu, #007aff)); }
  .icone-app[data-app="grossistes"] .carre-app { background: linear-gradient(#b8b8c0, #898991); }
  .icone-app[data-app="etiquettes"] .carre-app { background: linear-gradient(#4ed4e9, #00a5bd); }
  .icone-app[data-app="ventes"] .carre-app { background: linear-gradient(#5de67b, #28bb4b); }
  .icone-app[data-app="annonces"] .carre-app { background: linear-gradient(#d687ff, var(--vif-violet, #af52de)); }
  .icone-app[data-app="bilan"] .carre-app { background: linear-gradient(#8887ff, #5856d6); }
  .icone-app[data-app="reglages"] .carre-app { background: linear-gradient(#b9b9bf, #83838b); }
  .widget, .widget-jour {
    background: var(--fond-carte); color: var(--texte); border: 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .07); border-radius: 22px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .widget.accent { background: var(--fond-carte); }
  .widget-tete { color: var(--accent); font-weight: 600; opacity: 1; }
  .widget.accent .widget-tete { color: var(--succes); }
  .widget-pied { color: var(--texte-doux); opacity: 1; }
  .widget-jour .ligne-jour, .widget-jour .etapes { color: var(--texte); }
  .widget-jour .vide-petit, .widget-jour .chiffres-jour span { color: var(--texte-doux); opacity: 1; }
  .widget-jour .bouton { background: var(--accent); color: var(--sur-accent); border: 0; }
  .ligne-jour + .ligne-jour { border-color: var(--separateur); }
  .dock { border: 0; box-shadow: none; background: rgba(230, 236, 255, .25); background-image: none; border-radius: 30px; }
  .pilule-recherche, .champ-jour { border: 0; box-shadow: none; background: rgba(25, 35, 80, .22); background-image: none; }
  .page-jour { background: rgba(25, 35, 80, .1); }
  .recherche-bas .bouton-verre { background: var(--ios-toolbar); }

  @media (max-width: 350px) {
    .segments:not(.mini) .segment { font-size: 12px; padding-inline: 3px; }
    .ligne-article.avec-action { display: grid; grid-template-columns: 44px minmax(0, 1fr); row-gap: 2px; }
    .ligne-article.avec-action .vignette-mini { grid-row: 1 / span 2; align-self: start; }
    .ligne-article.avec-action > .bouton { grid-column: 2; justify-self: start; padding-left: 0; }
  }

  @media (min-width: 600px) {
    #bureau { background: radial-gradient(ellipse at 50% 35%, #31384e, #171b26 75%); }
  }
}

/* ===== Codex : messages PC → téléphone ===== */
@media screen {
  #segments-ventes { display: flex; overflow-x: auto; scrollbar-width: none; }
  #segments-ventes .segment { flex: 0 0 auto; min-width: 62px; padding-inline: 9px; overflow: visible; text-overflow: clip; }
  .messages-mobile { padding: 0 0 20px; }
  .connexion-messages { background: var(--ios-papier, var(--verre)); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
  .connexion-messages strong { display: block; font-size: 16px; }
  .connexion-messages.en-ligne strong, .direct-message { color: #248a3d; }
  .connexion-messages p { font-size: 13px; line-height: 1.45; color: var(--texte-doux); margin: 8px 0; }
  .navigateurs-messages { white-space: pre-line; }
  .connexion-messages .bouton { margin-top: 4px; }
  .recherche-messages { width: 100%; margin-bottom: 12px; }
  .conversations-messages { border-radius: 14px; overflow: hidden; background: var(--ios-papier, var(--verre)); }
  .conversation-message { border: 0; border-bottom: .5px solid var(--ios-ligne, var(--verre-bord)); background: transparent; color: var(--texte); width: 100%; text-align: left; font: inherit; padding: 14px; display: flex; gap: 12px; cursor: pointer; }
  .conversation-message:last-child { border-bottom: 0; }
  .avatar-message { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: var(--ios-champ, var(--fond)); color: var(--accent); border-radius: 50%; font-weight: 600; }
  .texte-conversation { min-width: 0; flex: 1; display: grid; gap: 3px; }
  .tete-conversation { display: flex; justify-content: space-between; gap: 8px; }
  .tete-conversation strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tete-conversation time { font-size: 11px; color: var(--texte-doux); padding-top: 2px; }
  .compte-conversation, .copie-message, .direct-message { font-size: 11px; }
  .compte-conversation, .copie-message { color: var(--texte-doux); }
  .apercu-conversation { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .aide-messages { padding: 0 16px 16px; color: var(--texte-doux); font-size: 13px; line-height: 1.5; }
  .statut-conversation { font-size: 13px; line-height: 1.4; }
  .transcription-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--ios-champ, var(--fond)); border-radius: 16px; font-size: 15px; line-height: 1.5; }
  .contexte-message { font-size: 13px; }
  .contexte-message:empty { display: none; }
  .brouillon-message { width: 100%; resize: vertical; }
  .etat-brouillon, .erreur-messages { font-size: 12px; color: var(--texte-doux); }
  .erreur-messages:empty { display: none; }
  .cibles-diffusion, .liste-actions-extension { display: grid; gap: 10px; margin-block: 10px; }
  .cible-diffusion { display: flex; align-items: start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--ios-champ, var(--fond)); font-size: 14px; line-height: 1.4; }
  .cible-diffusion input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
  .cible-diffusion strong, .cible-diffusion small { display: block; }
  .cible-diffusion small { color: var(--texte-doux); margin-top: 4px; }
  .action-extension { background: var(--ios-papier, var(--verre)); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
  .action-extension p { margin: 0; font-size: 14px; }
  .action-extension small { color: var(--texte-doux); }
  .etat-action-extension { color: var(--accent); font-size: 13px; }
  .action-extension.a_verifier .etat-action-extension { color: #bf6900; }
  .recap-diffusion { padding: 12px; border-radius: 12px; background: var(--ios-champ, var(--fond)); }
  .recap-diffusion summary { color: var(--accent); cursor: pointer; }
  .texte-annonce-recap { white-space: pre-wrap; font-size: 13px; }
  .photos-diffusion { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .photo-diffusion img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
  :root[data-theme="dark"] .direct-message, :root[data-theme="dark"] .connexion-messages.en-ligne strong { color: var(--vif-vert, #30d158); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .direct-message, :root:not([data-theme="light"]) .connexion-messages.en-ligne strong { color: var(--vif-vert, #30d158); }
  }
}

/* ATELIER_APPLE_ICONS_20261001_BEGIN */
/* Icônes iOS, exclusivement visuelles. Notes volontairement exclue. */
.icone-app[data-app="stock"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3.5 7.8 12 3.5l8.5 4.3v8.4L12 20.5l-8.5-4.3zM3.5 7.8 12 12.2l8.5-4.4M12 12.2v8.3"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ffb33b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ff7b0d%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22m32%2012%2020%2010-20%2010-20-10z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22m12%2025%2018%209v19L12%2043z%22%20fill%3D%22%23fff%22%20opacity%3D%22.92%22%2F%3E%3Cpath%20d%3D%22m34%2034%2018-9v18L34%2053z%22%20fill%3D%22%23fff%22%20opacity%3D%22.72%22%2F%3E%3Cpath%20d%3D%22m22%2017%2020%2010v8l-7%203v-8L15%2020z%22%20fill%3D%22%23e97210%22%20opacity%3D%22.48%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="scanner"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 8.5v-3A1.5 1.5 0 0 1 5.5 4h3M15.5 4h3A1.5 1.5 0 0 1 20 5.5v3M20 15.5v3a1.5 1.5 0 0 1-1.5 1.5h-3M8.5 20h-3A1.5 1.5 0 0 1 4 18.5v-3M8 8h3v3H8zM13 13h3v3h-3zM13 8h3M8 16h3"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23eeeff1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9cbd0%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M14%2021h8l3-5h14l3%205h8a5%205%200%200%201%205%205v20a5%205%200%200%201-5%205H14a5%205%200%200%201-5-5V26a5%205%200%200%201%205-5z%22%20fill%3D%22%23202126%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2235.5%22%20r%3D%2213%22%20fill%3D%22%23666871%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2235.5%22%20r%3D%2210.5%22%20fill%3D%22%23101216%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2235.5%22%20r%3D%227.9%22%20fill%3D%22%23254657%22%2F%3E%3Cpath%20d%3D%22M27%2032v-2h3m4%200h3v3m0%205v3h-3m-4%200h-3v-3%22%20fill%3D%22none%22%20stroke%3D%22%23c2eff7%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2F%3E%3Crect%20x%3D%2246%22%20y%3D%2226%22%20width%3D%225%22%20height%3D%223%22%20rx%3D%221.5%22%20fill%3D%22%23a6acb4%22%2F%3E%3Ccircle%20cx%3D%2228.5%22%20cy%3D%2232%22%20r%3D%222%22%20fill%3D%22%23fff%22%20opacity%3D%22.28%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="ventes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3 7.5A1.5 1.5 0 0 1 4.5 6h6.4a2 2 0 0 1 1.4.6l7.1 7.1a1.5 1.5 0 0 1 0 2.1l-5.8 5.8a1.5 1.5 0 0 1-2.1 0l-7.1-7.1a2 2 0 0 1-.6-1.4zM7.8 11.6a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2366e27b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2321b646%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M15%2014h18a5%205%200%200%201%203.5%201.5l16%2016a4%204%200%200%201%200%205.6l-15.4%2015.4a4%204%200%200%201-5.6%200l-16-16A5%205%200%200%201%2014%2033V15a1%201%200%200%201%201-1z%22%20fill%3D%22%23fff%22%2F%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2223%22%20r%3D%223.8%22%20fill%3D%22%232ac14e%22%2F%3E%3Cpath%20d%3D%22m31%2035%209-9m-6%200h.01m3%209h.01%22%20fill%3D%22none%22%20stroke%3D%22%232ac14e%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="annonces"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 10v4a1 1 0 0 0 1 1h2.5l5.5 4.5v-15L7.5 9H5a1 1 0 0 0-1 1zM16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ff6771%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ed2450%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M14%2027h10l21-11v31L24%2037H14a3%203%200%200%201-3-3v-4a3%203%200%200%201%203-3z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22m22%2039%204%2012h8l-5-10z%22%20fill%3D%22%23fff%22%20opacity%3D%22.9%22%2F%3E%3Cpath%20d%3D%22M49%2026a8%208%200%200%201%200%2012%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="achats"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 8.5h14l-1.1 11a1.5 1.5 0 0 1-1.5 1.4H7.6a1.5 1.5 0 0 1-1.5-1.4zM9 8.5V7a3 3 0 0 1 6 0v1.5"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2346b8ff%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230877ed%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M18%2021h28l3%2029a3%203%200%200%201-3%203H18a3%203%200%200%201-3-3z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M25%2024v-7a7%207%200%200%201%2014%200v7%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.3%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22m24%2039%205%205%2011-12%22%20fill%3D%22none%22%20stroke%3D%22%23168af4%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="grossistes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4.5 20.5a7.5 7.5 0 0 1 15 0"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23e6e0d4%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c7c0b4%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%2248%22%20height%3D%2254%22%20rx%3D%224%22%20fill%3D%22%23eee9df%22%2F%3E%3Cpath%20d%3D%22M53%2010h5v10h-5z%22%20fill%3D%22%23f3a342%22%2F%3E%3Cpath%20d%3D%22M53%2021h5v10h-5z%22%20fill%3D%22%2367b883%22%2F%3E%3Cpath%20d%3D%22M53%2032h5v10h-5z%22%20fill%3D%22%2364a0d6%22%2F%3E%3Cpath%20d%3D%22M53%2043h5v10h-5z%22%20fill%3D%22%23ad87c2%22%2F%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2224%22%20r%3D%229%22%20fill%3D%22%23938c80%22%2F%3E%3Cpath%20d%3D%22M12%2049c0-10%207-16%2017-16s17%206%2017%2016z%22%20fill%3D%22%23938c80%22%2F%3E%3Cpath%20d%3D%22M13%2054h32%22%20stroke%3D%22%23d3ccbf%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="etiquettes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M7 9V4h10v5M7 17H5a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 5 9h14a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 19 17h-2M7 14h10v6H7z"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23fafbfd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e4e9f0%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M23%2010h18l6%206v31a4%204%200%200%201-4%204H23a4%204%200%200%201-4-4V14a4%204%200%200%201%204-4z%22%20fill%3D%22%23c9d6e9%22%2F%3E%3Cpath%20d%3D%22M18%2016h18l6%206v31a4%204%200%200%201-4%204H18a4%204%200%200%201-4-4V20a4%204%200%200%201%204-4z%22%20fill%3D%22%23087cf3%22%2F%3E%3Cpath%20d%3D%22M36%2016v6h6%22%20fill%3D%22%238ac2ff%22%2F%3E%3Cg%20fill%3D%22%23fff%22%3E%3Crect%20x%3D%2221%22%20y%3D%2229%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2229%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%22.7%22%2F%3E%3Crect%20x%3D%2221%22%20y%3D%2240%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%22.7%22%2F%3E%3Cpath%20d%3D%22M31%2037h5v4h-3v5h-4v-4h2zM21%2048h15v2H21z%22%2F%3E%3C%2Fg%3E%3Crect%20x%3D%2223%22%20y%3D%2231%22%20width%3D%224%22%20height%3D%224%22%20fill%3D%22%23087cf3%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="messages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 4.5c4.7 0 8.5 3 8.5 6.8s-3.8 6.8-8.5 6.8c-1 0-2-.1-2.9-.4L5 19.5l1.2-3.4c-1.7-1.3-2.7-3-2.7-4.8 0-3.8 3.8-6.8 8.5-6.8z"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2365e57e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2324bb48%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cpath%20d%3D%22M32%2013C19.8%2013%2010%2020.4%2010%2029.7c0%205.8%203.8%2011%209.6%2014l-2.5%207.7%2010-5.3c1.6.3%203.2.4%204.9.4%2012.2%200%2022-7.5%2022-16.8S44.2%2013%2032%2013z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="bilan"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 20v-7M10 20V6M15 20v-9M20 20V9"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2324252b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23060708%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cg%20stroke%3D%22%2373777f%22%20stroke-width%3D%22.75%22%20opacity%3D%22.72%22%3E%3Cpath%20d%3D%22M15%2010v45M27%2010v45M39%2010v45M51%2010v45M9%2019h46M9%2031h46M9%2043h46%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22m9%2046%209-12%208%206%2010-20%209%207%2010-15v43H9z%22%20fill%3D%22%2321a7fa%22%20opacity%3D%22.25%22%2F%3E%3Cpath%20d%3D%22m9%2046%209-12%208%206%2010-20%209%207%2010-15%22%20fill%3D%22none%22%20stroke%3D%22%234bc4ff%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
.icone-app[data-app="reglages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4zM12 2.8v2.6M12 18.6v2.6M21.2 12h-2.6M5.4 12H2.8M18.5 5.5l-1.8 1.8M7.3 16.7l-1.8 1.8M18.5 18.5l-1.8-1.8M7.3 7.3 5.5 5.5"]) {
  --atelier-apple-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23e7e7eb%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a5a6ad%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22url(%23bg)%22%2F%3E%3Cg%20fill%3D%22%2345474e%22%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(0%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(30%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(60%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(90%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(120%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(150%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(180%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(210%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(240%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(270%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(300%2032%2032)%22%2F%3E%3Crect%20x%3D%2229.1%22%20y%3D%226.2%22%20width%3D%225.8%22%20height%3D%2210%22%20rx%3D%221.4%22%20transform%3D%22rotate(330%2032%2032)%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2222%22%20fill%3D%22%2355575f%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2219%22%20fill%3D%22%23d1d2d7%22%2F%3E%3Cg%20fill%3D%22%2364666e%22%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(0%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(45%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(90%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(135%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(180%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(225%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(270%2032%2032)%22%2F%3E%3Cpath%20d%3D%22M29.9%2015.8h4.2v11h-4.2z%22%20transform%3D%22rotate(315%2032%2032)%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2212%22%20fill%3D%22%23595b63%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%228.3%22%20fill%3D%22%23d5d6dc%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%225.6%22%20fill%3D%22%23777982%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%223.6%22%20fill%3D%22%23bcbec6%22%2F%3E%3C%2Fsvg%3E");
}
:is(.icone-app[data-app="stock"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3.5 7.8 12 3.5l8.5 4.3v8.4L12 20.5l-8.5-4.3zM3.5 7.8 12 12.2l8.5-4.4M12 12.2v8.3"]),
.icone-app[data-app="scanner"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 8.5v-3A1.5 1.5 0 0 1 5.5 4h3M15.5 4h3A1.5 1.5 0 0 1 20 5.5v3M20 15.5v3a1.5 1.5 0 0 1-1.5 1.5h-3M8.5 20h-3A1.5 1.5 0 0 1 4 18.5v-3M8 8h3v3H8zM13 13h3v3h-3zM13 8h3M8 16h3"]),
.icone-app[data-app="ventes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3 7.5A1.5 1.5 0 0 1 4.5 6h6.4a2 2 0 0 1 1.4.6l7.1 7.1a1.5 1.5 0 0 1 0 2.1l-5.8 5.8a1.5 1.5 0 0 1-2.1 0l-7.1-7.1a2 2 0 0 1-.6-1.4zM7.8 11.6a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z"]),
.icone-app[data-app="annonces"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 10v4a1 1 0 0 0 1 1h2.5l5.5 4.5v-15L7.5 9H5a1 1 0 0 0-1 1zM16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11"]),
.icone-app[data-app="achats"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 8.5h14l-1.1 11a1.5 1.5 0 0 1-1.5 1.4H7.6a1.5 1.5 0 0 1-1.5-1.4zM9 8.5V7a3 3 0 0 1 6 0v1.5"]),
.icone-app[data-app="grossistes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4.5 20.5a7.5 7.5 0 0 1 15 0"]),
.icone-app[data-app="etiquettes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M7 9V4h10v5M7 17H5a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 5 9h14a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 19 17h-2M7 14h10v6H7z"]),
.icone-app[data-app="messages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 4.5c4.7 0 8.5 3 8.5 6.8s-3.8 6.8-8.5 6.8c-1 0-2-.1-2.9-.4L5 19.5l1.2-3.4c-1.7-1.3-2.7-3-2.7-4.8 0-3.8 3.8-6.8 8.5-6.8z"]),
.icone-app[data-app="bilan"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 20v-7M10 20V6M15 20v-9M20 20V9"]),
.icone-app[data-app="reglages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4zM12 2.8v2.6M12 18.6v2.6M21.2 12h-2.6M5.4 12H2.8M18.5 5.5l-1.8 1.8M7.3 16.7l-1.8 1.8M18.5 18.5l-1.8-1.8M7.3 7.3 5.5 5.5"])) {
  background: var(--atelier-apple-icon) center / 100% 100% no-repeat;
  box-shadow: 0 2px 5px rgba(0,0,0,.16);
}
:is(.icone-app[data-app="stock"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3.5 7.8 12 3.5l8.5 4.3v8.4L12 20.5l-8.5-4.3zM3.5 7.8 12 12.2l8.5-4.4M12 12.2v8.3"]),
.icone-app[data-app="scanner"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 8.5v-3A1.5 1.5 0 0 1 5.5 4h3M15.5 4h3A1.5 1.5 0 0 1 20 5.5v3M20 15.5v3a1.5 1.5 0 0 1-1.5 1.5h-3M8.5 20h-3A1.5 1.5 0 0 1 4 18.5v-3M8 8h3v3H8zM13 13h3v3h-3zM13 8h3M8 16h3"]),
.icone-app[data-app="ventes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3 7.5A1.5 1.5 0 0 1 4.5 6h6.4a2 2 0 0 1 1.4.6l7.1 7.1a1.5 1.5 0 0 1 0 2.1l-5.8 5.8a1.5 1.5 0 0 1-2.1 0l-7.1-7.1a2 2 0 0 1-.6-1.4zM7.8 11.6a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z"]),
.icone-app[data-app="annonces"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 10v4a1 1 0 0 0 1 1h2.5l5.5 4.5v-15L7.5 9H5a1 1 0 0 0-1 1zM16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11"]),
.icone-app[data-app="achats"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 8.5h14l-1.1 11a1.5 1.5 0 0 1-1.5 1.4H7.6a1.5 1.5 0 0 1-1.5-1.4zM9 8.5V7a3 3 0 0 1 6 0v1.5"]),
.icone-app[data-app="grossistes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4.5 20.5a7.5 7.5 0 0 1 15 0"]),
.icone-app[data-app="etiquettes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M7 9V4h10v5M7 17H5a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 5 9h14a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 19 17h-2M7 14h10v6H7z"]),
.icone-app[data-app="messages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 4.5c4.7 0 8.5 3 8.5 6.8s-3.8 6.8-8.5 6.8c-1 0-2-.1-2.9-.4L5 19.5l1.2-3.4c-1.7-1.3-2.7-3-2.7-4.8 0-3.8 3.8-6.8 8.5-6.8z"]),
.icone-app[data-app="bilan"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 20v-7M10 20V6M15 20v-9M20 20V9"]),
.icone-app[data-app="reglages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4zM12 2.8v2.6M12 18.6v2.6M21.2 12h-2.6M5.4 12H2.8M18.5 5.5l-1.8 1.8M7.3 16.7l-1.8 1.8M18.5 18.5l-1.8-1.8M7.3 7.3 5.5 5.5"])) > svg { opacity: 0; }
:is(.icone-app[data-app="stock"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3.5 7.8 12 3.5l8.5 4.3v8.4L12 20.5l-8.5-4.3zM3.5 7.8 12 12.2l8.5-4.4M12 12.2v8.3"]),
.icone-app[data-app="scanner"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 8.5v-3A1.5 1.5 0 0 1 5.5 4h3M15.5 4h3A1.5 1.5 0 0 1 20 5.5v3M20 15.5v3a1.5 1.5 0 0 1-1.5 1.5h-3M8.5 20h-3A1.5 1.5 0 0 1 4 18.5v-3M8 8h3v3H8zM13 13h3v3h-3zM13 8h3M8 16h3"]),
.icone-app[data-app="ventes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M3 7.5A1.5 1.5 0 0 1 4.5 6h6.4a2 2 0 0 1 1.4.6l7.1 7.1a1.5 1.5 0 0 1 0 2.1l-5.8 5.8a1.5 1.5 0 0 1-2.1 0l-7.1-7.1a2 2 0 0 1-.6-1.4zM7.8 11.6a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z"]),
.icone-app[data-app="annonces"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M4 10v4a1 1 0 0 0 1 1h2.5l5.5 4.5v-15L7.5 9H5a1 1 0 0 0-1 1zM16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11"]),
.icone-app[data-app="achats"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 8.5h14l-1.1 11a1.5 1.5 0 0 1-1.5 1.4H7.6a1.5 1.5 0 0 1-1.5-1.4zM9 8.5V7a3 3 0 0 1 6 0v1.5"]),
.icone-app[data-app="grossistes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4.5 20.5a7.5 7.5 0 0 1 15 0"]),
.icone-app[data-app="etiquettes"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M7 9V4h10v5M7 17H5a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 5 9h14a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 19 17h-2M7 14h10v6H7z"]),
.icone-app[data-app="messages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 4.5c4.7 0 8.5 3 8.5 6.8s-3.8 6.8-8.5 6.8c-1 0-2-.1-2.9-.4L5 19.5l1.2-3.4c-1.7-1.3-2.7-3-2.7-4.8 0-3.8 3.8-6.8 8.5-6.8z"]),
.icone-app[data-app="bilan"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M5 20v-7M10 20V6M15 20v-9M20 20V9"]),
.icone-app[data-app="reglages"] .carre-app,
.carre-app.icone-soulevee:has(> svg > path[d="M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4zM12 2.8v2.6M12 18.6v2.6M21.2 12h-2.6M5.4 12H2.8M18.5 5.5l-1.8 1.8M7.3 16.7l-1.8 1.8M18.5 18.5l-1.8-1.8M7.3 7.3 5.5 5.5"]))::after { content: none; }
/* ATELIER_APPLE_ICONS_20261001_END */

/* ===== App Messages, dans l'esprit de Messages sur iPhone ===== */
@media screen {
  .app-messages { --vert-conv: var(--vif-vert, #34c759); }
  .recherche-conv {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; margin: 0 0 10px;
    border-radius: 10px; background: var(--ios-champ, var(--fond-champ)); color: var(--ios-secondaire, var(--texte-doux));
  }
  .recherche-conv svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
  .recherche-conv input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texte); font: inherit; font-size: 17px; }
  .recherche-conv input::placeholder { color: var(--ios-secondaire, var(--texte-doux)); }
  .pastille-pc {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px 2px; padding: 4px 10px 4px 8px; border: 0; border-radius: 999px;
    background: var(--ios-champ, var(--fond-champ)); color: var(--ios-secondaire, var(--texte-doux)); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  }
  .pastille-pc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; }
  .pastille-pc.en-ligne { color: var(--ios-vert, #248a3d); }
  .pastille-pc.en-ligne::before { background: var(--ios-vert, var(--vif-vert, #34c759)); opacity: 1; }
  .pastille-pc.hors-ligne::before { background: var(--ios-orange, var(--vif-orange, #ff9f0a)); opacity: 1; }

  /* Liste : avatar rond, nom en gras, heure et chevron, aperçu sur deux lignes. */
  .liste-conv { margin: 0 calc(-1 * var(--marge)); }
  .ligne-conv {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px var(--marge) 10px calc(var(--marge) + 4px);
    border: 0; background: transparent; color: var(--texte); font: inherit; text-align: left; cursor: pointer;
  }
  .ligne-conv:active { background: var(--ios-champ, var(--fond-champ)); }
  .ligne-conv + .ligne-conv .texte-conv { border-top: .5px solid var(--ios-ligne, var(--separateur)); }
  .ligne-conv.en-direct::before {
    content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ios-bleu, var(--vif-bleu, #007aff));
  }
  .avatar-conv {
    --teinte: 210; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(180deg, hsl(var(--teinte) 14% 70%), hsl(var(--teinte) 10% 52%));
    color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .02em;
  }
  .avatar-conv.petit { width: 26px; height: 26px; font-size: 11px; }
  .texte-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-self: stretch; justify-content: center; padding: 6px 0; }
  .ligne-conv:first-child .texte-conv { border-top: 0; }
  .tete-conv { display: flex; align-items: baseline; gap: 8px; }
  .tete-conv strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 600; }
  .tete-conv time { display: flex; align-items: center; gap: 2px; color: var(--ios-secondaire, var(--texte-doux)); font-size: 15px; white-space: nowrap; }
  .tete-conv time svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .6; }
  .apercu-conv {
    color: var(--ios-secondaire, var(--texte-doux)); font-size: 15px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* Site de la conversation : pastille sur l'avatar (comme l'icône d'app sur un contact) et nom en tête de l'aperçu. */
  .filtre-messages { margin: 0 0 10px; }
  .avatar-conv { position: relative; }
  .badge-site {
    position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0;
    background: var(--couleur-site, #8e8e93); box-shadow: 0 0 0 2px var(--ios-fond, var(--fond, #fff));
  }
  .site-conv { font-weight: 600; color: var(--couleur-site, var(--ios-secondaire, var(--texte-doux))); margin-right: 5px; }
  .badge-site.vinted, .site-conv.vinted { --couleur-site: #09b1ba; }
  .badge-site.leboncoin, .site-conv.leboncoin { --couleur-site: #ff6e14; }
  .site-conv.vinted, .site-conv.leboncoin { color: color-mix(in srgb, var(--couleur-site) 55%, var(--texte)); } /* lisible en clair comme en sombre (contraste 2,2 → 4,5, 07/11) */
  .badge-site.depop, .site-conv.depop { --couleur-site: #ff2300; }
  .badge-site.ebay, .site-conv.ebay { --couleur-site: #e53238; }
  .vide-messages { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 28px; color: var(--ios-secondaire, var(--texte-doux)); }
  .vide-messages strong { color: var(--texte); font-size: 20px; }
  .vide-messages p { margin: 0; font-size: 15px; line-height: 1.4; }
  .bulle-vide { width: 64px; height: 52px; margin-bottom: 10px; border-radius: 26px; background: var(--ios-champ, var(--fond-champ)); position: relative; }
  .bulle-vide::after { content: ""; position: absolute; left: 8px; bottom: -4px; width: 16px; height: 16px; border-radius: 0 0 0 16px; background: inherit; transform: skewX(-20deg); }

  /* Conversation plein écran. */
  #conversation { display: none; flex-direction: column; overflow: hidden; background: var(--ios-fond, var(--fond)); transition: transform .35s cubic-bezier(.2, .9, .25, 1); }
  #conversation[open] { display: flex; }
  #conversation > .nav-ios {
    position: relative; flex: none; background: var(--ios-navbar, var(--fond)); grid-template-columns: 1fr minmax(0, 1.4fr) 1fr; gap: 0; padding-inline: 8px;
    border-bottom: .5px solid var(--ios-ligne, var(--separateur));
  }
  #conversation-retour { display: flex; align-items: center; width: auto; gap: 0; padding-right: 6px; background: transparent; border: 0; box-shadow: none; color: var(--ios-bleu, var(--accent)); font-size: 17px; justify-self: start; }
  #conversation-vinted { justify-self: end; width: auto; padding: 0 8px; background: transparent; border: 0; box-shadow: none; color: var(--ios-bleu, var(--accent)); font-size: 17px; text-decoration: none; display: flex; align-items: center; }
  .conv-titre { opacity: 1; transform: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; font-size: 12px; font-weight: 500; }
  .conv-titre #conversation-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conversation-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
  .piece-conv {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--ios-papier, var(--fond-carte)); color: var(--texte); font: inherit; text-align: left;
  }
  .piece-conv > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ios-bleu, var(--accent)); stroke-width: 1.8; }
  .piece-conv > svg:last-child { width: 14px; height: 14px; stroke: var(--ios-secondaire, var(--texte-doux)); stroke-width: 2.4; }
  .texte-piece-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .texte-piece-conv strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .texte-piece-conv span { font-size: 13px; color: var(--ios-secondaire, var(--texte-doux)); }
  .date-conv, .statut-conv { margin: 4px 0; text-align: center; font-size: 12px; color: var(--ios-secondaire, var(--texte-doux)); }
  .statut-conv.direct { color: var(--ios-vert, var(--vif-vert, #34c759)); }
  .fil-messages { display: flex; flex-direction: column; gap: 6px; }
  .bulle-recue {
    align-self: flex-start; max-width: 82%; padding: 8px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere;
    background: var(--bulle-grise, #e9e9eb); color: var(--texte); font-size: 16px; line-height: 1.3;
  }
  .bulle-recue:last-child { border-bottom-left-radius: 6px; }

  /* Suggestions de l'IA, au-dessus du champ. */
  .suggestions-conv { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
  .suggestions-conv::-webkit-scrollbar { display: none; }
  .suggestions-conv:empty { display: none; }
  .pilule-ia, .suggestion-ia {
    flex: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; border-radius: 18px;
  }
  .pilule-ia { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; background: var(--ios-champ, var(--fond-champ)); color: var(--ios-bleu, var(--accent)); font-weight: 500; }
  .pilule-ia svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .pilule-ia.travail svg { animation: battement-ia 1.2s ease-in-out infinite; }
  .pilule-ia:disabled { opacity: 1; color: var(--ios-secondaire, var(--texte-doux)); }
  @keyframes battement-ia { 50% { transform: scale(.8); opacity: .5; } }
  .suggestion-ia {
    max-width: 78%; padding: 8px 13px; text-align: left; line-height: 1.3; white-space: normal;
    background: color-mix(in srgb, var(--ios-bleu, var(--vif-bleu, #007aff)) 14%, transparent); color: var(--texte);
    border: 1px solid color-mix(in srgb, var(--ios-bleu, var(--vif-bleu, #007aff)) 35%, transparent);
  }

  /* Champ de réponse arrondi, flèche bleue. */
  .saisie-conv { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 4px; }
  .saisie-conv textarea {
    flex: 1; min-width: 0; min-height: 36px; max-height: 140px; resize: none; padding: 7px 14px; border-radius: 18px;
    border: 1px solid var(--ios-ligne, var(--separateur)); background: var(--ios-papier, var(--fond-carte)); color: var(--texte);
    font: inherit; font-size: 17px; line-height: 1.25; outline: 0;
  }
  .saisie-conv button {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1px; border: 0; border-radius: 50%;
    background: var(--ios-bleu, var(--vif-bleu, #007aff)); color: #fff; cursor: pointer;
  }
  .saisie-conv button:disabled { background: var(--ios-champ, var(--fond-champ)); color: var(--ios-secondaire, var(--texte-doux)); }
  .saisie-conv button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .etat-conv { flex: none; margin: 0; min-height: 16px; padding: 0 12px calc(6px + var(--bas)); text-align: center; font-size: 12px; color: var(--ios-secondaire, var(--texte-doux)); }

  :root { --bulle-grise: var(--crm-panneau-2); }
}

/* ===== App Bordereaux ===== */
@media screen {
  .ligne-bordereau, .ligne-candidat {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: transparent;
    color: var(--texte); font: inherit; text-align: left; cursor: pointer;
  }
  .ligne-bordereau + .ligne-bordereau, .ligne-candidat + .ligne-candidat { border-top: .5px solid var(--ios-ligne, var(--separateur)); }
  .ligne-bordereau:active, .ligne-candidat:active { background: var(--ios-champ, var(--fond-champ)); }
  .vignette-bordereau {
    flex: none; width: 44px; height: 58px; border-radius: 6px; overflow: hidden; background: #fff;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18); display: grid; place-items: center; padding: 0; border: 0;
  }
  .vignette-bordereau img { width: 100%; height: 100%; object-fit: contain; }
  .vignette-bordereau.grande { width: 64px; height: 86px; cursor: pointer; }
  .suivi-bordereau { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
  .pf-bordereau {
    flex: none; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--ios-champ, var(--fond-champ)); color: var(--ios-secondaire, var(--texte-doux));
  }
  .pf-vinted { background: #09b1ba; color: #fff; }
  .pf-leboncoin { background: #ec5a13; color: #fff; }
  .pf-ebay { background: #0064d2; color: #fff; }
  .pf-depop { background: #ff2300; color: #fff; }
  .pf-vestiaire { background: #1d1d1d; color: #fff; }
  .ligne-bordereau.a_associer .ligne-detail:first-of-type { color: var(--ios-orange, var(--vif-orange, #ff9f0a)); }
  .vide-bordereaux { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 28px; color: var(--ios-secondaire, var(--texte-doux)); }
  .vide-bordereaux > svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.3; margin-bottom: 6px; }
  .vide-bordereaux strong { color: var(--texte); font-size: 20px; }
  .vide-bordereaux p { margin: 0; font-size: 15px; line-height: 1.4; }
  .barre-bordereaux { display: flex; gap: 10px; justify-content: center; }
  .barre-bordereaux .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 24px; flex: 1; max-width: 220px; }
  .barre-bordereaux .bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

  .apercu-bordereau { display: grid; place-items: center; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
  .apercu-bordereau img { max-width: 100%; max-height: 34vh; object-fit: contain; }
  .puces-plateformes { flex-wrap: wrap; margin: 4px 0 6px; }
  .candidats-bordereau { max-height: 240px; overflow-y: auto; }
  .ligne-candidat > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ios-bleu, var(--accent)); stroke-width: 2.4; opacity: 0; }
  .ligne-candidat.choisie > svg { opacity: 1; }
  .ligne-candidat.choisie .ligne-titre { color: var(--ios-bleu, var(--accent)); }
  .vente-bordereau { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ios-champ, var(--fond-champ)); }
  .encart.encart-bordereau { display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: left; }
  .lien-supprimer { align-self: center; margin-top: 4px; padding: 8px 12px; border: 0; background: none; color: var(--ios-rouge, var(--vif-rouge, #ff3b30)); font: inherit; font-size: 15px; cursor: pointer; }
  .encart-bordereau p { margin: 2px 0 0; }
}

/* ===== Vidéos de preuve et attestation ===== */
.tete-section-videos { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tete-section-videos h3 { margin: 0; }
.liste-videos { margin-top: 10px; }
.ligne-video { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.ligne-video + .ligne-video { border-top: .5px solid var(--separateur); }
.ligne-video > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.ligne-video > svg:first-child { fill: var(--accent); }
.ligne-video.envoi > svg:first-child { fill: none; }
.ligne-video > svg:last-child { width: 14px; height: 14px; stroke: var(--texte-doux); fill: none; stroke-width: 2.4; }
.lecteur-video { width: 100%; max-height: 52vh; border-radius: 12px; background: #000; }
.empreinte-video { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--texte-doux); overflow-wrap: anywhere; margin: 0; }
.page-attestation { display: none; }
@media print {
  body.impression-attestation #impression .page-attestation { display: block; color: #000; font: 11pt/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
  .page-attestation h1 { font-size: 18pt; margin: 0 0 1mm; text-align: center; letter-spacing: .02em; text-transform: uppercase; }
  .page-attestation .sous-titre-attestation { text-align: center; margin: 0 0 8mm; font-size: 11pt; }
  .page-attestation h2 { font-size: 12pt; margin: 6mm 0 2mm; }
  .page-attestation ul { margin: 2mm 0 0; padding-left: 6mm; }
  .page-attestation li { margin-bottom: 1.5mm; }
  .table-attestation { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .table-attestation th, .table-attestation td { border: .2mm solid #000; padding: 1.2mm 1.5mm; text-align: left; vertical-align: top; }
  .table-attestation td:nth-child(3) { font-family: ui-monospace, Menlo, monospace; font-size: 7pt; word-break: break-all; }
  .note-attestation { font-size: 8.5pt; color: #333; }
  .vignettes-attestation { display: flex; flex-wrap: wrap; gap: 2mm; margin-top: 3mm; }
  .vignettes-attestation img { width: 28mm; height: 28mm; object-fit: cover; border: .2mm solid #999; }
  .fait-a { margin-top: 10mm; }
  .signature { margin-top: 4mm; height: 22mm; }
}

/* ===== Apps Veille et Estimer ===== */
@media screen {
  #etat-veille { cursor: default; }
  .liste-affaires { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
  .carte-affaire {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 22px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--ios-papier, var(--fond-carte)); color: var(--texte); font: inherit; text-align: left;
  }
  .carte-affaire:active { opacity: .75; }
  /* Pas encore ouverte : point bleu dans la marge gauche, comme un message non lu dans Mail. La marge est la même pour
     toutes les cartes, ouvertes ou non : les photos restent alignées. */
  .carte-affaire.non-ouverte::before {
    content: ""; position: absolute; left: 7px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
    background: var(--ios-bleu, var(--vif-bleu, #007aff));
  }
  .carte-affaire.non-ouverte .texte-affaire strong { font-weight: 700; }
  .arrivee-affaire { font-size: 12px; color: var(--ios-secondaire, var(--texte-doux)); }
  .carte-affaire.non-ouverte .arrivee-affaire { color: var(--ios-bleu, var(--vif-bleu, #007aff)); }
  /* « Plus récentes / Meilleures » puis les puces : un vrai espace entre les deux rangées (la règle .segments.mini met la marge à 0). */
  #tri-veille.tri-veille { margin: 2px 0 12px; }
  /* Balayer pour supprimer : la carte glisse, le fond rouge apparaît du côté découvert. */
  .ligne-affaire { position: relative; border-radius: 14px; overflow: hidden; transition: opacity .2s, max-height .22s; max-height: 220px; }
  .ligne-affaire.disparait { opacity: 0; max-height: 0; }
  .fond-suppression {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
    background: var(--ios-rouge, var(--alerte)); color: #fff; font-weight: 600; border-radius: 14px;
  }
  .ligne-affaire:not(.vers-gauche) .fond-suppression span:last-child, .ligne-affaire.vers-gauche .fond-suppression span:first-child { visibility: hidden; }
  .ligne-affaire .carte-affaire { position: relative; touch-action: pan-y; transition: transform .2s ease; }
  .ligne-affaire .carte-affaire.glisse { transition: none; }
  .puce-verifier { margin-left: auto; }
  .etat-annonce { margin: 2px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
  .etat-annonce.active, .etat-annonce.reserved { color: var(--ios-vert, var(--succes)); }
  .etat-annonce.sold, .etat-annonce.removed, .etat-annonce.erreur { color: var(--ios-rouge, var(--alerte)); }
  .photo-affaire { flex: none; width: 72px; height: 92px; border-radius: 10px; object-fit: cover; background: var(--ios-champ, var(--fond-champ)); }
  .photo-affaire.absente, .photo-comparable.absente, .photo-fiche-affaire.absente { visibility: hidden; }
  .texte-affaire { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .texte-affaire strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tete-affaire { display: flex; align-items: center; gap: 8px; }
  .palier-affaire { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: #8e8e93; white-space: nowrap; align-self: flex-start; }
  .palier-affaire.top { background: var(--vif-vert, #30b055); }
  .palier-affaire.bonne { background: var(--vif-bleu, #0a84ff); }
  .palier-affaire.etudier { background: #8e8e93; }
  .palier-affaire.risque { background: var(--vif-rouge, #ff453a); }
  /* Le site de l'affaire, sur chaque carte : Vinted (vert d'eau) ou Leboncoin (orange), en texte, sans fond. */
  .site-affaire { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .site-affaire.vinted { color: #09b1ba; }
  .site-affaire.leboncoin { color: #ff6e14; }
  .carte-affaire.risque .marge-affaire { color: var(--ios-secondaire, var(--texte-doux)); }
  .score-affaire, .detail-affaire, .prix-affaire { font-size: 13px; color: var(--ios-secondaire, var(--texte-doux)); }
  .detail-affaire { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prix-affaire { color: var(--texte); font-variant-numeric: tabular-nums; }
  .marge-affaire { flex: none; font-size: 17px; font-weight: 700; color: var(--ios-vert, var(--vif-vert, #30b055)); font-variant-numeric: tabular-nums; }
  .tete-fiche-affaire { display: flex; gap: 14px; align-items: center; }
  .tete-fiche-affaire .ligne-texte { gap: 4px; }
  .tete-fiche-affaire strong { font-size: 19px; }
  .photo-fiche-affaire { flex: none; width: 104px; height: 134px; border-radius: 12px; object-fit: cover; background: var(--ios-champ, var(--fond-champ)); }
  .marge-fiche-affaire { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ios-vert, var(--vif-vert, #30b055)); }
  .fiche-affaire a.bouton { display: flex; align-items: center; justify-content: center; text-decoration: none; }
  .liste-a-verifier { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
  .discret.centre { text-align: center; }

  .photo-estimer { display: flex; align-items: center; gap: 12px; }
  .photo-estimer img { width: 84px; height: 108px; object-fit: cover; border-radius: 12px; }
  .photo-estimer .bouton { flex: 1; }
  #resultat-estimer { margin-top: 16px; scroll-margin-top: 70px; }
  .carte-estimation { display: flex; flex-direction: column; gap: 10px; }
  .titre-estimation { font-size: 19px; }
  .verdict-estimation { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: #fff; background: #8e8e93; }
  .verdict-estimation strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
  .verdict-estimation span { font-size: 14px; opacity: .95; }
  .verdict-estimation.exceptionnel { background: var(--vif-rouge, #ff453a); }
  .verdict-estimation.bon { background: var(--vif-vert, #30b055); }
  .verdict-estimation.limite { background: var(--vif-orange, #d99a00); }
  .verdict-estimation.ignorer { background: #636366; }
  .scenario.palier-exceptionnel strong { color: var(--vif-rouge, #ff453a); }
  .scenario.palier-bon strong { color: var(--ios-vert, var(--vif-vert, #30b055)); }
  .scenario.palier-limite strong { color: var(--vif-orange, #d99a00); }
  .ligne-comparable { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--texte); text-decoration: none; }
  .ligne-comparable + .ligne-comparable { border-top: .5px solid var(--ios-ligne, var(--separateur)); }
  .photo-comparable { flex: none; width: 44px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--ios-champ, var(--fond-champ)); }
  .ligne-comparable strong { flex: none; font-variant-numeric: tabular-nums; }
}

@media screen {
  #segments-veille { margin: 10px 0 12px; }
  .ligne-appris { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
  .ligne-appris + .ligne-appris { border-top: .5px solid var(--ios-ligne, var(--separateur)); }
  .ligne-appris:active { background: var(--ios-champ, var(--fond-champ)); }
  .jauge-appris { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: linear-gradient(90deg, var(--ios-bleu, var(--vif-bleu, #0a84ff)) calc(var(--p) * 1%), var(--ios-champ, rgba(120,120,128,.24)) 0); }
  .achat-appris { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
  .achat-appris small { font-size: 11px; color: var(--ios-secondaire, var(--texte-doux)); }
  .achat-appris strong { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ios-vert, var(--vif-vert, #30b055)); }
}

@media screen {
  #segments-veille .segment.a-decider::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--ios-orange, var(--vif-orange, #ff9f0a)); vertical-align: middle; }
  .suivi-affaire { font-size: 13px; color: var(--ios-secondaire, var(--texte-doux)); }
  .suivi-affaire.vendue { color: var(--ios-vert, var(--vif-vert, #30b055)); font-weight: 600; }
  .suivi-affaire.a_decider { color: var(--ios-orange, var(--vif-orange, #ff9f0a)); font-weight: 600; }
  .suivi-affaire.retiree { color: var(--ios-rouge, var(--vif-rouge, #ff453a)); }
  .carte-affaire.vendue .marge-affaire, .carte-affaire.retiree .marge-affaire { color: var(--ios-secondaire, var(--texte-doux)); }
}

/* Contrôle Vinted : deux boutons côte à côte sur une ligne sans pièce. */
.ligne-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }

/* App Site : graphe des visiteurs, barres par destination, publication d'arrivage. */
.sous-titre-app { margin: -6px 0 12px; color: var(--texte-2, #8e8e93); font-size: 15px; }
.graphe-site { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 12px 14px; border-radius: 22px; background: var(--fond-carte, rgba(127,127,127,.12)); }
.graphe-site-barre { flex: 1; height: var(--haut); min-height: 2px; border-radius: 3px 3px 1px 1px; background: var(--c1, var(--vif-bleu, #0a84ff)); }
.barre-site { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; }
.barre-site + .barre-site { border-top: .5px solid var(--separateur, rgba(127,127,127,.25)); }
.barre-site-nom { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-site-jauge { height: 8px; border-radius: 4px; background: rgba(127,127,127,.18); position: relative; overflow: hidden; }
.barre-site-jauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--part); border-radius: 4px; background: var(--c1, var(--vif-bleu, #0a84ff)); }
#app-site .graphe-site-barre, #app-site .barre-site-jauge::after { background: #5b6cff; }
.barre-site-valeur { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2ch; text-align: right; }
.actions-arrivage { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.apercus-arrivage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; min-height: 44px; align-items: center; }
.apercus-arrivage > .discret { grid-column: 1 / -1; text-align: center; }
.apercu-arrivage { position: relative; aspect-ratio: 4 / 5; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgba(127,127,127,.15); cursor: pointer; }
.apercu-rang { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 600; }
.apercu-arrivage img { width: 100%; height: 100%; object-fit: cover; }
.vignette-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.boutons-partage-site { display: grid; gap: 10px; padding: 4px 0; }

/* Supervision de la collecte, dans l'app Site. Mobile d'abord : une ligne
   résume la flotte, puis des cartes basses. Aucun style de dashboard séparé. */
.resume-collecte-site { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.resume-collecte-site .tuile { min-height: 86px; }
.ligne-etat-collecte { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 2px 12px; color: var(--texte-2, #8e8e93); font-size: 12px; }
.etat-flux-collecte { color: var(--vif-vert, #34c759); font-weight: 650; white-space: nowrap; }
.etat-flux-collecte.hors-ligne { color: var(--vif-orange, #ff9f0a); }
.detail-global-collecte { text-align: right; line-height: 1.35; }
.grille-scrapers-site { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 24px; }
.carte-scraper-site { width: 100%; min-width: 0; padding: 0; overflow: hidden; text-align: left; color: inherit; border: .5px solid var(--separateur, rgba(127,127,127,.22)); border-radius: 18px; background: var(--fond-carte, rgba(127,127,127,.1)); cursor: pointer; box-shadow: none; }
.carte-scraper-site.etat-error { border-color: color-mix(in srgb, var(--vif-rouge, #ff453a) 55%, transparent); }
.carte-scraper-site.etat-cooldown { border-color: color-mix(in srgb, var(--vif-orange, #ff9f0a) 46%, transparent); }
.tete-scraper-site { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 8px; }
.nom-scraper-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.statut-scraper-site { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: rgba(127,127,127,.15); color: var(--texte-2, #8e8e93); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.etat-navigation .statut-scraper-site, .etat-scraping .statut-scraper-site, .etat-waiting .statut-scraper-site, .etat-idle .statut-scraper-site { background: color-mix(in srgb, var(--vif-vert, #34c759) 18%, transparent); color: #248a3d; }
.etat-cooldown .statut-scraper-site { background: color-mix(in srgb, var(--vif-orange, #ff9f0a) 18%, transparent); color: #c76b00; }
.etat-error .statut-scraper-site { background: color-mix(in srgb, var(--vif-rouge, #ff453a) 16%, transparent); color: #d70015; }
.page-scraper-site { display: block; margin: 0 12px; padding-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--texte-2, #8e8e93); font-size: 12px; font-variant-numeric: tabular-nums; }
.action-scraper-site, .chiffres-scraper-site { display: block; margin: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.action-scraper-site { padding-top: 8px; font-size: 13px; font-weight: 550; }
.chiffres-scraper-site { padding: 3px 0 10px; color: var(--texte-2, #8e8e93); font-size: 11px; font-variant-numeric: tabular-nums; }
.detail-scraper-site { display: grid; gap: 14px; }
.page-detail-site { min-width: 0; }
.grille-page-site { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.annonce-page-site { display: grid; gap: 1px; min-width: 0; color: inherit; text-decoration: none; font-size: 12px; }
.annonce-page-site strong, .annonce-page-site span, .annonce-page-site small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.annonce-page-site small { color: var(--texte-2, #8e8e93); font-variant-numeric: tabular-nums; }
.photo-page-site { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 4px; border-radius: 12px; overflow: hidden; background: rgba(127,127,127,.15); }
.photo-page-site img { width: 100%; height: 100%; object-fit: cover; display: block; }
.annonce-page-site.retenue .photo-page-site { outline: 2px solid var(--vif-vert, #34c759); outline-offset: -2px; }
.marque-page-site { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: var(--vif-vert, #34c759); color: #fff; font-size: 10px; font-weight: 700; }
.infos-scraper-site .valeur { max-width: 62%; overflow-wrap: anywhere; text-align: right; }
.evenements-scraper-site { border-radius: 16px; overflow: hidden; background: var(--fond-carte, rgba(127,127,127,.1)); }
.evenement-scraper-site { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 8px 12px; font-size: 12px; }
.evenement-scraper-site + .evenement-scraper-site { border-top: .5px solid var(--separateur, rgba(127,127,127,.22)); }
.evenement-scraper-site time { color: var(--texte-2, #8e8e93); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .resume-collecte-site { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-scrapers-site { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-scraper-site { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr); align-items: start; }
}
@media (min-width: 1100px) { .grille-scrapers-site { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Claude : iOS 26 pour toutes les apps — présentation seule =====
   Même langage que Mail et Notes : commandes en verre qui flottent au-dessus du contenu, capsules,
   cartes largement arrondies, texte calme. Aucun contrôle, état ou comportement n'est modifié.
   Notes, Mail et le Scanner gardent leurs propres règles. */
@media screen {
  :root, :root[data-theme], :root:not([data-theme]) {
    --v-verre: rgba(52, 52, 56, .72); --v-bord: rgba(255, 255, 255, .13); --v-reflet: rgba(255, 255, 255, .12);
    --v-ombre: 0 6px 24px rgba(0, 0, 0, .5);
    --rayon: 26px; --marge: 16px; --hauteur-nav: 62px;
  }
  :root[data-theme="light"] {
    --v-verre: rgba(255, 255, 255, .78); --v-bord: rgba(0, 0, 0, .07); --v-reflet: rgba(255, 255, 255, .7);
    --v-ombre: 0 6px 22px rgba(0, 0, 0, .13);
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --v-verre: rgba(255, 255, 255, .78); --v-bord: rgba(0, 0, 0, .07); --v-reflet: rgba(255, 255, 255, .7);
      --v-ombre: 0 6px 22px rgba(0, 0, 0, .13);
    }
  }

  /* --- Navigation : plus de barre pleine, des commandes en verre posées sur le contenu. */
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) > .nav-ios, #fiche > .nav-ios, #conversation > .nav-ios {
    background: transparent; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-inline: 16px;
  }
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) > .nav-ios::before, #fiche > .nav-ios::before, #conversation > .nav-ios::before {
    inset: 0 0 -26px; border: 0;
    background: linear-gradient(color-mix(in srgb, var(--fond) 90%, transparent) 38%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(#000 52%, transparent); mask-image: linear-gradient(#000 52%, transparent);
  }
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios .bouton-verre, #fiche .nav-ios .bouton-verre, #conversation .nav-ios .bouton-verre {
    width: 46px; height: 46px; border-radius: 23px; padding: 0; gap: 0;
    background: var(--v-verre); color: var(--texte); border: .5px solid var(--v-bord);
    box-shadow: var(--v-ombre), inset 0 1px 0 var(--v-reflet);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios .bouton-verre svg, #fiche .nav-ios .bouton-verre svg, #conversation .nav-ios .bouton-verre svg { width: 24px; height: 24px; stroke-width: 2; }
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios .bouton-verre.texte, #fiche .nav-ios .bouton-verre.texte, #conversation .nav-ios .bouton-verre.texte,
  #conversation .nav-ios .bouton-verre:has(span:not(.lecteur-seul)) {
    width: auto; padding: 0 18px; font-size: 17px; font-weight: 500; color: var(--texte);
  }
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios .bouton-verre.accent { background: var(--accent); color: #fff; border-color: transparent; }
  .nav-ios [data-accueil]::after { content: none; }
  .nav-ios [data-accueil], #fiche-retour { display: inline-grid; width: 46px; padding: 0; }
  .titre-nav { font-size: 17px; font-weight: 600; }
  .grand-titre { margin: 4px 4px 14px; letter-spacing: -.6px; line-height: 1.1; }
  .sous-titre-app { margin: -8px 4px 14px; font-size: 15px; color: var(--texte-doux); }
  .titre-section { margin: 26px 18px 8px; font-size: 13px; color: var(--texte-doux); }
  .pied-section { margin-inline: 18px; font-size: 13px; }
  .filtres-collants { background: transparent; }
  .vide { padding: 70px 24px; font-size: 20px; font-weight: 600; line-height: 1.3; }
  .vide-petit { font-size: 15px; font-weight: 400; }

  /* --- Listes et cartes : grands arrondis, filets fins en retrait. */
  .liste, .liste-cases { border-radius: 26px; }
  .carte, .fiche-section, .graphique, .resume-ventes, .encart, .resultat-simulation, .carte-simulateur, .pieces-colis, .declaration-urgente { border-radius: 26px; }
  .tuile { border-radius: 22px; }
  .carte, .fiche-section { padding: 18px; }
  .ligne-article { padding: 12px 16px; min-height: 76px; }
  .ligne-article + .ligne-article::before { left: 88px; right: 16px; }
  .ligne-reglage + .ligne-reglage::before { right: 16px; }
  .vignette-mini { border-radius: 12px; }
  .ligne-titre { font-weight: 500; }
  .ligne-haut .code, .code { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--texte-doux); }
  .puce-code { border-radius: 999px; padding: 4px 11px; background: var(--fond-champ); color: var(--texte-doux); font-family: inherit; font-size: 13px; font-weight: 600; }
  .pastille { border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
  .ligne-reglage { min-height: 54px; }
  .pastille-reglage { width: 30px; height: 30px; border-radius: 8px; }
  .tuile-valeur { font-weight: 700; letter-spacing: -.4px; }
  .meta-valeur { font-weight: 600; }

  /* --- Boutons : des capsules. Le principal est plein, le secondaire est gris, le texte reste sobre. */
  .bouton { border-radius: 25px; min-height: 50px; padding: 0 22px; font-size: 17px; font-weight: 600; }
  .bouton.petit { border-radius: 17px; min-height: 34px; padding: 0 14px; font-size: 15px; font-weight: 500; }
  .bouton.large { min-height: 54px; border-radius: 27px; }
  .bouton.secondaire { color: var(--accent); }
  .bouton.danger { color: var(--alerte); }
  .bouton:active:not(:disabled) { transform: scale(.97); opacity: .75; }
  .bouton-icone.encadre { border-radius: 50%; background: var(--fond-champ); }
  .ligne-article.avec-action .bouton { min-height: 34px; padding-inline: 12px; background: var(--fond-champ); border-radius: 17px; font-size: 15px; font-weight: 500; }
  .actions-arrivage .bouton { background: var(--fond-champ); }

  /* --- Filtres et onglets. */
  .puces { gap: 8px; }
  .puce { border-radius: 20px; min-height: 38px; padding-inline: 16px; font-size: 15px; font-weight: 500; }
  .puce.active { font-weight: 600; }
  .segments { border-radius: 22px; padding: 3px; gap: 0; }
  .segment { border-radius: 19px; min-height: 36px; font-size: 14px; font-weight: 500; }
  .segment.actif { font-weight: 600; }
  .segments.mini { border-radius: 16px; }
  .segments.mini .segment { border-radius: 13px; min-height: 30px; }

  /* --- Barre du bas : plus de bandeau, des éléments en verre qui flottent, comme dans Mail. */
  .barre-flottante {
    left: 0; right: 0; bottom: var(--clavier, 0px); gap: 12px; padding: 10px 22px calc(14px + var(--bas));
    background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
  }
  .barre-flottante > * { pointer-events: auto; }
  .capsule-recherche {
    height: 50px; border-radius: 25px; padding-inline: 16px; background: var(--v-verre); border: .5px solid var(--v-bord);
    box-shadow: var(--v-ombre), inset 0 1px 0 var(--v-reflet);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .capsule-recherche input { font-size: 17px; }
  .barre-flottante .bouton, .fiche-actions .bouton { border-radius: 25px; min-height: 50px; font-size: 17px; box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
  .barre-flottante .bouton.secondaire, .fiche-actions .bouton.secondaire {
    background: var(--v-verre); color: var(--texte); border: .5px solid var(--v-bord);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .barre-flottante .bouton-verre.grand { width: 50px; height: 50px; border-radius: 25px; box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
  .barre-flottante .bouton-verre.grand:not(.accent) {
    background: var(--v-verre); color: var(--texte); border: .5px solid var(--v-bord);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .barre-selection { border-radius: 25px; background: var(--v-verre); border: .5px solid var(--v-bord); box-shadow: var(--v-ombre);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }

  /* --- Champs et feuilles. */
  .champ { border-radius: 14px; min-height: 50px; border: 0; background-color: var(--fond-carte); font-size: 17px; }
  .liste .champ, .carte .champ, .fiche-section .champ { background-color: var(--fond-champ); }
  .champ.compact { min-height: 40px; border-radius: 12px; }
  .libelle-champ { margin-left: 6px; font-size: 13px; color: var(--texte-doux); }
  .aide-champ { margin-left: 6px; }
  .case input { border-radius: 50%; }
  #modale { border-radius: 34px 34px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
  #modale-form { padding: 6px 18px calc(16px + var(--bas)); }
  #modale-titre { font-size: 17px; font-weight: 600; }
  #modale-menu .bouton { border-radius: 25px; min-height: 50px; }
  #modale .champ { background-color: var(--fond-carte); }
  .poignee { width: 38px; margin-bottom: 12px; background: color-mix(in srgb, var(--texte-doux) 55%, transparent); }
  .notification { border-radius: 24px; background: var(--v-verre); border: .5px solid var(--v-bord); box-shadow: var(--v-ombre);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
  .menu-rapide { border-radius: 22px; }

  /* Boutons de texte dans la barre du haut (« Choisir », « Modifier »…) : capsules en verre, texte sobre. */
  .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios > button:not(.bouton-verre), .app:not(.app-scanner):not(.app-notes):not(.app-mail) .nav-ios > div > button:not(.bouton-verre) {
    height: 46px; min-height: 46px; padding: 0 18px; border-radius: 23px; font-size: 17px; font-weight: 500;
    background: var(--v-verre); color: var(--texte); border: .5px solid var(--v-bord);
    box-shadow: var(--v-ombre), inset 0 1px 0 var(--v-reflet);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .nav-ios .bouton.petit, .nav-ios .bouton-choisir {
    height: 46px; min-height: 46px; padding: 0 18px; border-radius: 23px; font-size: 17px; font-weight: 500;
    background: var(--v-verre); color: var(--texte); border: .5px solid var(--v-bord);
    box-shadow: var(--v-ombre), inset 0 1px 0 var(--v-reflet);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  }
  .nav-ios > * { align-self: center; }
  .nav-ios > div { display: flex; align-items: center; gap: 10px; }
  .ligne-reglage .valeur { font-weight: 400; }
  /* Un léger fondu sous les commandes flottantes du bas, pour qu'elles restent lisibles sur le contenu. */
  .barre-flottante::before {
    content: ""; position: absolute; inset: -22px 0 0; z-index: -1; pointer-events: none;
    background: linear-gradient(transparent, color-mix(in srgb, var(--fond) 82%, transparent) 55%);
  }

  /* --- Fiche d'un article. */
  .fiche-entete h2 { letter-spacing: -.5px; }
  .hero-vide .bouton { color: var(--vif-bleu, #007aff); border-radius: 25px; }
  .hero-points { border-radius: 999px; }
  .fiche-section h3, .carte h3 { font-size: 17px; }
}

/* ------------------------------------------------------------------ App Serveurs */
.resume-serveurs h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.3px; color: var(--succes); }
.resume-serveurs.attention h3 { color: var(--attention); }
.resume-serveurs.critique h3 { color: var(--alerte); }
.resume-serveurs > .discret { margin: 4px 0 0; }
.alerte-serveur { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0 0; margin-top: 11px; border-top: .5px solid var(--separateur); font-size: 15px; }
.alerte-serveur small { color: var(--texte-doux); font-size: 12px; }
.point-serveur { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; flex: none; background: var(--texte-doux); }
.alerte-serveur .point-serveur { margin-right: 0; }
.point-serveur.ok { background: var(--succes); }
.point-serveur.attention { background: var(--attention); }
.point-serveur.critique { background: var(--alerte); box-shadow: 0 0 0 4px color-mix(in srgb, var(--alerte) 22%, transparent); }
.titre-serveur { margin: 30px 6px 10px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; text-transform: capitalize; }
.carte-serveur { margin-top: 26px; }
.ligne-serveur .libelle { flex: 1; }
.carte-serveur.hors-ligne { border: 1.5px solid var(--alerte); }
.tete-serveur { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tete-serveur h3 { margin: 0; font-size: 20px; text-transform: capitalize; }
.tete-serveur .discret { margin-top: 2px; font-size: 13px; }
.etat-serveur { flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--succes) 18%, transparent); color: var(--succes); }
.etat-serveur.attention { background: color-mix(in srgb, var(--attention) 18%, transparent); color: var(--attention); }
.etat-serveur.critique { background: color-mix(in srgb, var(--alerte) 18%, transparent); color: var(--alerte); }
.anneaux-serveur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 6px; }
.anneau-serveur { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; --couleur: var(--accent); }
.anneau-serveur.attention { --couleur: var(--attention); }
.anneau-serveur.critique { --couleur: var(--alerte); }
.anneau-serveur-cadre { position: relative; width: min(100%, 92px); aspect-ratio: 1; margin-bottom: 6px; }
.anneau-serveur svg { width: 100%; height: 100%; fill: none; }
.anneau-serveur .fond { stroke: var(--fond-champ); stroke-width: 7; }
.anneau-serveur .valeur { stroke: var(--couleur); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .6s cubic-bezier(.2, .9, .25, 1); }
.anneau-serveur-chiffre { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.anneau-serveur strong { font-size: 14px; font-weight: 600; }
.anneau-serveur small { font-size: 11.5px; color: var(--texte-doux); white-space: nowrap; }
.historique-serveur { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--separateur); font-size: 12px; color: var(--texte-doux); }
.courbe-serveur { width: 100%; height: 34px; display: block; }
.courbe-serveur .ligne { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.courbe-serveur .aire { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: none; }
.ligne-serveur .libelle { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.ligne-serveur .libelle small { flex-basis: 100%; margin-top: 1px; font-size: 12px; color: var(--texte-doux); }
.ligne-serveur .libelle .point-serveur + small, .ligne-serveur .libelle:has(.point-serveur) small { padding-left: 18px; }
.ligne-serveur .valeur { flex: none; max-width: 58%; text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ App Mail
   Présentation reprise de Mail sur iPhone (iOS 26) : fond uni, cartes arrondies, commandes en verre
   flottantes, bleu système. Les couleurs de l'Atelier ne s'appliquent pas ici, comme pour Notes. */
.app-mail, .mail-apple {
  --m-fond: var(--crm-fond); --m-liste: var(--crm-fond); --m-carte: var(--crm-panneau); --m-feuille: var(--crm-panneau);
  --m-texte: var(--crm-texte); --m-second: var(--crm-doux); --m-ligne: var(--crm-bord); --m-bleu: var(--crm-accent);
  --m-pastille: var(--crm-accent); --m-rouge: var(--crm-rouge); --m-orange: var(--crm-ambre);
  --m-verre: var(--crm-panneau-2); --m-verre-bord: var(--crm-bord); --m-verre-ombre: none;
  --m-champ: var(--crm-champ); --m-menu: var(--crm-panneau-2);
  --accent: var(--crm-accent); color: var(--m-texte); color-scheme: inherit; background: var(--m-fond);
  font-family: var(--crm-police);
}
.app-mail.mail-en-liste { background: var(--m-liste); }
.app-mail svg, .mail-apple svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-mail svg.plein, .mail-apple svg.plein, .app-mail svg .plein { fill: currentColor; stroke-width: 1; }
.mail-espace { flex: 1; }

/* Commandes en verre : cercles et capsules flottants. */
.mail-verre {
  display: inline-flex; align-items: center; justify-content: center; flex: none; height: 46px; border-radius: 23px;
  border: .5px solid var(--m-verre-bord); background: var(--m-verre); color: var(--m-texte);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--m-verre-ombre), inset 0 1px 0 rgba(255, 255, 255, .12);
  font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; transition: transform .15s, opacity .15s;
}
button.mail-verre:active, .mail-verre button:active { transform: scale(.94); opacity: .7; }
.mail-verre:disabled { opacity: .45; }
.mail-rond { width: 46px; padding: 0; }
.mail-rond svg { width: 24px; height: 24px; stroke-width: 2; }
.mail-capsule { padding: 0 18px; }
.mail-rond.actif { background: var(--m-bleu); color: #fff; border-color: transparent; }

.mail-navigation {
  position: absolute; inset: var(--haut) 0 auto; z-index: 7; display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 8px 16px; pointer-events: none;
}
.mail-navigation > * { pointer-events: auto; }
.mail-titre-nav { flex: 1; min-width: 0; display: grid; gap: 1px; pointer-events: none; }
.mail-titre-nav strong { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 12px var(--m-liste); }
.mail-titre-nav span { font-size: 13px; color: var(--m-second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 12px var(--m-liste); }
.app-mail:not(.mail-en-liste) .mail-navigation { justify-content: flex-start; }
.mail-defilement { padding: calc(var(--haut) + 74px) 16px calc(var(--bas) + 96px); }
.mail-en-liste .mail-defilement { padding: calc(var(--haut) + 68px) 0 calc(var(--bas) + 96px); }
.mail-grand-titre { margin: 4px 4px 2px; font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.6px; color: var(--m-texte); }
.mail-sous-titre { margin: 0 4px 14px; font-size: 15px; color: var(--m-second); }
.mail-vide { margin: 70px 20px; text-align: center; font-size: 20px; font-weight: 600; color: var(--m-second); }

/* Écran « Boîtes » : cartes arrondies, filets en retrait. */
.mail-carte { border-radius: 26px; background: var(--m-carte); overflow: hidden; }
.mail-ligne-boite {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 16px 0 16px;
  border: 0; background: transparent; color: var(--m-texte); font: inherit; font-size: 17px; text-align: left; cursor: pointer;
}
.mail-ligne-boite:not(:last-child)::after { content: ""; position: absolute; left: 60px; right: 16px; bottom: 0; border-bottom: .5px solid var(--m-ligne); }
.mail-ligne-boite:active { background: color-mix(in srgb, var(--m-second) 22%, transparent); }
.mail-icone-boite { width: 29px; height: 29px; flex: none; color: var(--m-bleu); stroke-width: 1.55; }
.mail-ligne-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-ligne-boite small { font-size: 17px; color: var(--m-second); }
.mail-chevron { width: 13px; height: 17px; flex: none; color: color-mix(in srgb, var(--m-second) 70%, transparent); stroke-width: 2.4; }
.mail-section {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 26px 0 8px; padding: 0 18px;
  border: 0; background: transparent; color: var(--m-texte); font: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.3px; text-align: left; cursor: pointer;
}
.mail-chevron-section { width: 18px; height: 18px; color: var(--m-second); stroke-width: 2.4; transition: transform .25s; }
.mail-section.repliee .mail-chevron-section { transform: rotate(-90deg); }

/* Barre flottante du bas. */
.mail-barre {
  position: absolute; inset: auto 0 calc(var(--clavier, 0px)) 0; z-index: 8; display: flex; align-items: center; gap: 12px;
  padding: 10px 26px calc(var(--bas) + 14px); pointer-events: none;
}
.mail-barre > * { pointer-events: auto; }
.mail-barre .mail-rond { width: 50px; height: 50px; border-radius: 25px; }
.mail-recherche { flex: 1; min-width: 0; height: 50px; border-radius: 25px; gap: 8px; padding: 0 16px; justify-content: flex-start; cursor: text; }
.mail-recherche svg { width: 22px; height: 22px; flex: none; stroke-width: 2.2; }
.mail-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--m-texte); font: inherit; font-size: 18px; -webkit-appearance: none; appearance: none; }
.mail-recherche input::placeholder { color: var(--m-second); }
.mail-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mail-trio { flex: 1; height: 50px; border-radius: 25px; justify-content: space-around; padding: 0 8px; }
.mail-trio button { border: 0; background: transparent; color: var(--m-bleu); font: inherit; font-size: 17px; padding: 8px 12px; cursor: pointer; }
.mail-trio button:last-child { color: var(--m-rouge); }
.mail-trio button:disabled { color: var(--m-second); }

/* Catégories : celle qui est choisie porte son nom et sa couleur. */
.mail-categories { display: flex; gap: 10px; padding: 4px 16px 14px; overflow-x: auto; scrollbar-width: none; }
.mail-categories::-webkit-scrollbar { display: none; }
.mail-categorie {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 44px; min-width: 68px; padding: 0 18px;
  border: 0; border-radius: 22px; background: var(--m-champ); color: var(--m-second); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, flex-grow .25s;
}
.mail-categorie svg { width: 23px; height: 23px; }
.mail-categorie.active { flex: 1 0 auto; background: var(--couleur); color: #fff; }
.mail-categorie-point { position: absolute; top: 9px; right: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--couleur); border: 2px solid var(--m-champ); }

/* Liste des messages. */
.mail-message { position: relative; overflow: hidden; background: var(--m-liste); }
.mail-balayage { position: absolute; inset: 0; display: flex; align-items: stretch; background: var(--m-rouge); }
.mail-message.vers-droite .mail-balayage { background: var(--m-bleu); }
.mail-balayage > * { display: grid; place-items: center; width: 84px; border: 0; color: #fff; font: inherit; font-size: 15px; font-weight: 500; }
.mail-balayage-lu { background: var(--m-bleu); }
.mail-balayage-drapeau { background: var(--m-orange); cursor: pointer; }
.mail-balayage-corbeille { background: var(--m-rouge); cursor: pointer; }
.mail-balayage .mail-espace { width: auto; background: transparent; }
.mail-message.au-bout .mail-balayage-drapeau { display: none; }
.mail-message.au-bout .mail-balayage-corbeille { width: 168px; justify-items: start; padding-left: 22px; }
.mail-message-contenu {
  position: relative; display: flex; align-items: flex-start; gap: 0; width: 100%; padding: 9px 0 0 0; border: 0; background: var(--m-liste);
  color: var(--m-texte); font: inherit; text-align: left; cursor: pointer; touch-action: pan-y; transition: transform .28s cubic-bezier(.2, .9, .25, 1);
  -webkit-user-select: none; user-select: none;
}
.mail-message-contenu:active { background: color-mix(in srgb, var(--m-second) 18%, var(--m-liste)); }
.mail-marge { flex: none; width: 34px; height: 50px; display: grid; place-items: center; padding-left: 6px; }
.mail-point { width: 11px; height: 11px; border-radius: 50%; background: var(--m-bleu); }
.mail-repondu { width: 15px; height: 15px; color: var(--m-second); stroke-width: 2; }
.mail-coche { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--m-second); }
.mail-message.choisi .mail-coche { border-color: var(--m-bleu); background: var(--m-bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.mail-message.choisi .mail-message-contenu { background: color-mix(in srgb, var(--m-bleu) 14%, var(--m-liste)); }
.mail-vignette {
  flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-right: 12px;
  background: linear-gradient(160deg, hsl(var(--teinte) 62% 62%), hsl(var(--teinte) 58% 44%)); color: #fff; font-size: 19px; font-weight: 600; letter-spacing: .3px;
  border: .5px solid var(--m-verre-bord);
}
.mail-vignette.grande { width: 44px; height: 44px; border-radius: 22px; font-size: 17px; margin-right: 12px; }
.mail-message-texte { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 0 14px 11px 0; border-bottom: .5px solid var(--m-ligne); }
.mail-message:last-child .mail-message-texte { border-bottom-color: transparent; }
.mail-message-tete { display: flex; align-items: baseline; gap: 8px; }
.mail-message-tete strong { flex: 1; min-width: 0; font-size: 17px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-message.non-lu .mail-message-tete strong { font-weight: 700; }
.mail-message-date { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--m-second); }
.mail-trombone { width: 15px; height: 15px; stroke-width: 2; }
.mail-message-sujet { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.mail-message-sujet > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-drapeau { width: 16px; height: 16px; flex: none; color: var(--m-orange); }
.mail-pictogramme { width: 17px; height: 17px; flex: none; color: var(--couleur); }
.mail-suspect { flex: none; padding: 1px 7px; border-radius: 8px; background: var(--m-orange); color: #1c1c1e; font-size: 11px; font-weight: 700; font-style: normal; }
.mail-message-extrait { font-size: 16px; line-height: 1.3; color: var(--m-second); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-suite { display: block; width: 100%; padding: 18px; border: 0; background: transparent; color: var(--m-bleu); font: inherit; font-size: 17px; cursor: pointer; }

/* Lecture d'un message. */
dialog.mail-apple { background: var(--m-liste); color: var(--m-texte); display: none; flex-direction: column; overflow: hidden; }
dialog.mail-apple[open] { display: flex; }
.mail-duo { height: 46px; border-radius: 23px; padding: 0 4px; }
.mail-duo button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--m-texte); display: grid; place-items: center; cursor: pointer; }
.mail-duo button:disabled { opacity: .3; }
.mail-duo svg { width: 22px; height: 22px; stroke-width: 2.2; }
.mail-lecture-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: calc(var(--haut) + 76px) 18px calc(var(--bas) + 100px); }
.mail-lecture-sujet { margin: 0 0 16px; font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; }
.mail-lecture-entete { display: flex; align-items: flex-start; padding-bottom: 14px; border-bottom: .5px solid var(--m-ligne); }
.mail-lecture-identite { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mail-lecture-ligne { display: flex; align-items: baseline; gap: 8px; }
.mail-lecture-ligne strong { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-lecture-ligne span { flex: none; font-size: 14px; color: var(--m-second); }
.mail-lecture-vers { border: 0; padding: 0; background: transparent; color: var(--m-second); font: inherit; font-size: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mail-lecture-vers.deplie { white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-lecture-texte { margin: 18px 0 0; font: inherit; font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.mail-alerte { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--m-orange) 22%, transparent); font-size: 14px; }
.mail-jointes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mail-jointes:empty { display: none; }
.mail-jointe {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; max-width: 100%; padding: 10px 14px 10px 10px;
  border: 0; border-radius: 14px; background: var(--m-champ); color: var(--m-texte); font: inherit; text-align: left; cursor: pointer;
}
.mail-jointe svg { grid-row: 1 / 3; width: 28px; height: 28px; color: var(--m-bleu); }
.mail-jointe strong { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.mail-jointe small { font-size: 12px; color: var(--m-second); }
.mail-outils { height: 50px; border-radius: 25px; padding: 0 8px; gap: 4px; }
.mail-outils button { width: 52px; height: 46px; border: 0; background: transparent; color: var(--m-texte); display: grid; place-items: center; cursor: pointer; }
.mail-outils svg { width: 25px; height: 25px; }

/* Feuille de rédaction : elle monte du bas, coins arrondis, grand titre. */
dialog.mail-feuille { inset: calc(var(--haut) + 10px) 0 0 0; height: auto; border-radius: 34px 34px 0 0; background: var(--m-feuille); box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
.mail-poignee { flex: none; width: 38px; height: 5px; margin: 6px auto 0; border-radius: 3px; background: color-mix(in srgb, var(--m-second) 55%, transparent); }
.mail-feuille-tete { flex: none; display: flex; justify-content: space-between; padding: 8px 18px 4px; }
.mail-feuille-tete .mail-rond { width: 48px; height: 48px; border-radius: 24px; }
.mail-envoi:not(:disabled) { background: var(--m-bleu); color: #fff; border-color: transparent; }
.mail-redaction-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px calc(var(--bas) + var(--clavier, 0px) + 80px); }
.mail-redaction-corps .mail-grand-titre { margin: 8px 0 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-champ {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: .5px solid var(--m-ligne);
  background: transparent; color: var(--m-texte); font: inherit; font-size: 17px; text-align: left;
}
.mail-champ > span { flex: none; color: var(--m-second); }
.mail-champ input, .mail-champ select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--m-texte); font: inherit; font-size: 17px; padding: 0; -webkit-appearance: none; appearance: none; }
.mail-champ-resume { cursor: pointer; }
.mail-champ-resume em { font-style: normal; color: var(--m-second); }
.mail-texte { display: block; width: 100%; min-height: 220px; margin-top: 16px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--m-texte); font: inherit; font-size: 17px; line-height: 1.4; }
.mail-erreur { margin: 10px 0 0; color: var(--m-rouge); font-size: 15px; }
.mail-redaction-outils { position: absolute; right: 22px; bottom: calc(var(--bas) + var(--clavier, 0px) + 14px); }
.mail-redaction-outils .mail-rond { width: 50px; height: 50px; border-radius: 25px; }

/* Feuille d'actions. */
.mail-actions-voile { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .4); animation: mail-voile .2s ease-out; }
.mail-actions-voile.part { opacity: 0; transition: opacity .2s; }
.mail-actions { width: 100%; padding: 0 8px calc(var(--bas) + 8px); display: grid; gap: 8px; animation: mail-monte .3s cubic-bezier(.2, .9, .25, 1); }
.mail-actions-groupe { border-radius: 14px; overflow: hidden; background: var(--m-menu); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.mail-actions-titre { margin: 0; padding: 14px 16px; font-size: 13px; color: var(--m-second); text-align: center; border-bottom: .5px solid var(--m-ligne); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-action { display: block; width: 100%; min-height: 57px; padding: 0 16px; border: 0; border-bottom: .5px solid var(--m-ligne); background: transparent; color: var(--m-bleu); font: inherit; font-size: 20px; cursor: pointer; }
.mail-actions-groupe .mail-action:last-child { border-bottom: 0; }
.mail-action.danger { color: var(--m-rouge); }
.mail-action.annuler { border: 0; border-radius: 14px; background: var(--m-menu); font-weight: 600; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.mail-action:active { background: color-mix(in srgb, var(--m-second) 25%, transparent); }
@keyframes mail-voile { from { opacity: 0; } }
@keyframes mail-monte { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .mail-actions-voile, .mail-actions { animation: none; } .mail-message-contenu { transition: none; } }
.mail-resume { display: inline-block; width: 17px; height: 15px; margin-right: 5px; vertical-align: -2px; stroke-width: 2; }

/* Parcours et indicateurs : couleurs d'état issues du thème commun. */
:root { --p-ambre: var(--crm-ambre); --p-vert: var(--crm-vert); --p-violet: var(--vif-violet); }
.parcours { gap: 12px; }
.frise-parcours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.etape-parcours { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 2px 8px; border: 0; background: none; color: var(--texte-2, #8e8e93); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.etape-parcours + .etape-parcours::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--texte-2, #8e8e93) 30%, transparent); }
.etape-parcours.passee + .etape-parcours::before { background: var(--succes); }
.rond-parcours { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--texte-2, #8e8e93) 18%, transparent); color: var(--texte-2, #8e8e93); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .2s ease; }
.rond-parcours svg { width: 16px; height: 16px; stroke-width: 2.8; }
.etape-parcours.passee .rond-parcours { background: var(--succes); color: #fff; }
.etape-parcours.courante .rond-parcours { background: var(--vif-bleu, #0a84ff); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--vif-bleu, #0a84ff) 22%, transparent); }
.etape-parcours.oublis .rond-parcours { background: var(--vif-orange, #ff9f0a); color: #fff; }
.etape-parcours.courante { color: var(--texte); }
.etape-parcours.choisie .nom-etape { color: var(--texte); }
.etape-parcours.choisie::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: currentColor; }
.etape-parcours:active .rond-parcours { transform: scale(.9); }
.etape-parcours:focus-visible { outline: 2px solid var(--vif-bleu, #0a84ff); outline-offset: 2px; border-radius: 10px; }
.nom-etape { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.resume-parcours { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.resume-parcours.manque { color: var(--texte); }
.oubli-parcours { margin: -6px 0 0; font-size: 13px; color: var(--p-ambre); }
.note-etape { margin: 0; padding: 8px 0 2px; font-size: 13px; color: var(--texte-2, #8e8e93); }
.taches-parcours { display: flex; flex-direction: column; }
.tache-parcours { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; }
.tache-parcours + .tache-parcours { border-top: .5px solid var(--separateur); }
.tache-etat { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; }
.tache-etat svg { width: 14px; height: 14px; stroke-width: 3; }
.tache-parcours.faite .tache-etat { background: var(--succes); color: #fff; }
.tache-parcours.manque .tache-etat { border: 2px solid var(--vif-orange, #ff9f0a); }
.tache-parcours.libre .tache-etat { border: 2px dashed color-mix(in srgb, var(--texte-2, #8e8e93) 60%, transparent); }
.tache-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tache-nom { font-size: 16px; font-weight: 600; }
.tache-parcours.faite .tache-nom { font-weight: 500; }
.tache-detail { font-size: 13px; color: var(--texte-2, #8e8e93); overflow-wrap: anywhere; }
.tache-parcours.manque .tache-detail { color: var(--p-ambre); }
.bouton.pilule-tache { flex: none; min-height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; font-weight: 600; }
.manque-controle { margin: 0; font-size: 14px; font-weight: 600; color: var(--p-ambre); }

.carte-stock { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.carte-stock-titre { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.etiquette-nature { align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.etiquette-nature.reel { background: color-mix(in srgb, var(--vif-vert, #34c759) 18%, transparent); color: var(--p-vert); }
.etiquette-nature.prevision { background: color-mix(in srgb, var(--vif-violet, #5e5ce6) 18%, transparent); color: var(--p-violet); }
.carte-stock.prevision { border: 1.5px dashed color-mix(in srgb, var(--vif-violet, #5e5ce6) 45%, transparent); }

.note-estimer { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.suggestions-estimation { overflow: hidden; }
.ligne-suggestion { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.ligne-suggestion + .ligne-suggestion { border-top: .5px solid var(--separateur); }
.ligne-suggestion:active { background: color-mix(in srgb, var(--texte-2, #8e8e93) 14%, transparent); }
.ligne-suggestion strong { flex: none; font-variant-numeric: tabular-nums; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .rond-parcours { transition: none; } }

/* Dossier comme sur iPhone : le nom au-dessus du panneau, on ferme en touchant à côté. */
.dossier-ios-panneau { position: relative; overflow: visible; }
.dossier-ios-panneau .grille-dossier-apps {
  max-height: calc(min(72dvh, 620px) - 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.dossier-ios-tete { position: absolute; left: 0; right: 0; bottom: calc(100% + 16px); min-height: 0; margin: 0; }
.dossier-ios-tete h2 { max-width: 100%; font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.dossier-ios-tete button { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.dossier-ios-tete button:focus-visible { width: 34px; height: 34px; clip-path: none; opacity: 1; }
.compta-detail { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* ===== Claude : mouvements communs (animations-ui.js) ===== */
.segments { position: relative; }
.segments .segment { position: relative; z-index: 1; }
.pastille-segment { position: absolute; z-index: 0; transform-origin: left center; pointer-events: none; will-change: transform; }
.segment.pastille-en-route { background: transparent !important; box-shadow: none !important; }
/* Retours tactiles homogènes : tout ce qui se touche réagit, puis revient en douceur. */
.ligne-article, .ligne-compta, .ligne-reglage, .carte.cliquable, .tuile, .carte-scraper-site, .ligne-conv, .ligne-bordereau, .carte-affaire,
.tache-parcours .bouton, .etape-parcours, .puce, .segment, .icone-app .carre-app, .ligne-suggestion {
  transition: transform .22s cubic-bezier(.2, .9, .25, 1), background-color .18s ease, filter .18s ease, opacity .18s ease;
}
.icone-app:active .carre-app { transform: scale(.92); }
.ligne-compta:active, .carte-scraper-site:active { transform: scale(.985); }
.segment:active:not(.actif) { opacity: .55; }
/* Une case qui se coche « saute » légèrement, comme une confirmation. */
@keyframes coche-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.tache-parcours.faite .tache-etat svg, .puce-controle.ok svg, .compta-alerte.ok svg { animation: coche-pop .42s cubic-bezier(.2, .9, .25, 1) both; }
/* Les barres et les jauges se remplissent en arrivant. */
@keyframes barre-pousse { from { transform: scaleY(0); } }
@keyframes jauge-remplit { from { transform: scaleX(0); } }
.graphe-site-barre { transform-origin: bottom; animation: barre-pousse .6s cubic-bezier(.2, .9, .25, 1) both; }
.graphe-site-barre:nth-child(n+8) { animation-delay: .06s; } .graphe-site-barre:nth-child(n+16) { animation-delay: .12s; } .graphe-site-barre:nth-child(n+24) { animation-delay: .18s; }
.barre-site-jauge::after, .barre-site-jauge::before { transform-origin: left; animation: jauge-remplit .6s cubic-bezier(.2, .9, .25, 1) both; }
/* L'interrupteur glisse au lieu de sauter. */
.interrupteur .glissiere, .interrupteur .glissiere::after { transition: background-color .25s ease, transform .28s cubic-bezier(.2, .9, .25, 1); }
@media (prefers-reduced-motion: reduce) {
  .tache-parcours.faite .tache-etat svg, .puce-controle.ok svg, .compta-alerte.ok svg, .graphe-site-barre, .barre-site-jauge::after, .barre-site-jauge::before { animation: none; }
  .ligne-article, .ligne-compta, .ligne-reglage, .carte.cliquable, .tuile, .carte-scraper-site, .ligne-conv, .ligne-bordereau, .carte-affaire, .etape-parcours, .puce, .segment, .icone-app .carre-app, .interrupteur .glissiere, .interrupteur .glissiere::after { transition: none; }
}

.cerveau-attente { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* Mail : l en-tête générique des apps ajoutait une seconde marge au-dessus du contenu (Boîtes trop bas). */
.mail-defilement::before { display: none; }
/* Mail : une ligne ne dépasse plus l écran, l expéditeur et l objet trop longs sont coupés par « … ». */
.mail-message-texte { grid-template-columns: minmax(0, 1fr); }
.mail-message-tete, .mail-message-sujet, .mail-message-extrait { min-width: 0; }

/* ===== Claude : écran à distance du navigateur du compte Vinted ===== */
.cadre-ecran-vinted { border-radius: 14px; overflow: hidden; background: #111; border: .5px solid var(--separateur); }
.cadre-ecran-vinted { position: relative; }
.cadre-ecran-vinted img { display: block; width: 100%; height: auto; aspect-ratio: 500 / 812; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lecteur-son-vinted { display: block; width: 100%; margin-block: 8px; }
.marque-clic-vinted { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(10, 132, 255, .35); border: 2px solid var(--vif-bleu, #0a84ff); pointer-events: none; opacity: 0; }
.marque-clic-vinted.visible { animation: clic-vinted .5s ease-out; }
@keyframes clic-vinted { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.3); } }
.barre-saisie-vinted { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--vif-bleu, #0a84ff) 16%, var(--carte, #1c1c1e)); border: 1.5px solid var(--vif-bleu, #0a84ff); }
.etiquette-saisie-vinted { font-size: 13px; font-weight: 600; color: var(--vif-bleu, #0a84ff); }
.aide-ecran-vinted { margin: 0; font-size: 13px; }
.cadre-ecran-vinted img.attente { opacity: .25; }
.adresse-vinted { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.ligne-saisie-vinted { display: flex; gap: 8px; align-items: center; }
.ligne-saisie-vinted .champ { flex: 1; min-width: 0; }
.touches-vinted { flex-wrap: wrap; }

.segments-sites-vinted { margin-bottom: 0; }
.pages-site-vinted { display: contents; }

.onglets-vinted { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.onglets-vinted::-webkit-scrollbar { display: none; }
.onglets-vinted .puce { flex: none; }

/* Proposition de l'IA : l'annonce complète telle qu'elle partira. */
.apercu-annonce { white-space: pre-wrap; margin: 0; padding: 14px; border-radius: 14px; background: var(--ios-champ, rgba(127,127,127,.12)); font-size: 13px; line-height: 1.5; user-select: text; }

/* Données lisibles (Assistant, Société) : clé et valeur, au lieu du JSON brut (07/11). */
.donnees-lisibles { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 13px; }
.donnees-lisibles dt { color: var(--texte-secondaire, #6b6f76); overflow-wrap: anywhere; }
.donnees-lisibles dd { margin: 0; overflow-wrap: anywhere; }
.donnees-lisibles .donnees-lisibles { grid-column: 1 / -1; margin: 0 0 4px; padding-left: 10px; border-left: 2px solid rgba(127, 127, 127, .25); }
/* Liste d'achat (07/11) : message vide avec sa marge, détails des modèles en entier (plus de « tai… »). */
.vide-encadre { padding: 12px 14px; }
.texte-client small.detail-complet { white-space: normal; overflow: visible; text-overflow: clip; }
/* Simulateur de négociation (fiche, 09/11). */
.simulateur-nego { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--bord, rgba(127,127,127,.25)); display: grid; gap: 8px; }
.nego-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.nego-tete .surtitre { flex-basis: 100%; }
.nego-prix { font-size: 26px; font-variant-numeric: tabular-nums; }
.nego-marge { font-weight: 650; font-variant-numeric: tabular-nums; }
.nego-marge.positif { color: var(--succes); } .nego-marge.negatif { color: var(--alerte); }
.nego-jauge { position: relative; padding: 6px 0; }
.nego-jauge input[type=range] { width: 100%; min-height: 32px; accent-color: var(--texte); }
.nego-plancher { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--alerte); border-radius: 2px; pointer-events: none; }
.nego-avis { margin: 0; font-size: 14px; }
/* Le lot qui se rembourse (09/11). */
.jauge-lot { display: grid; gap: 8px; margin: 10px 0; }
.jauge-lot-tete { font-weight: 650; }
.jauge-lot-barre { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--texte) 10%, transparent); }
.jauge-lot-seg { height: 100%; border-right: 1px solid var(--fond, #fff); }
.jauge-lot .c0 { background: #34c759; } .jauge-lot .c1 { background: #30b0c7; } .jauge-lot .c2 { background: #5e5ce6; }
.jauge-lot .c3 { background: #ff9f0a; } .jauge-lot .c4 { background: #ff375f; } .jauge-lot .c5 { background: #a2845e; }
.jauge-lot-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.jauge-lot-pieces li { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.jauge-lot-pieces li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.jauge-lot-pieces li strong { margin-left: auto; font-variant-numeric: tabular-nums; }
/* Passeport de la pièce (09/11). */
.passeport { display: grid; gap: 12px; padding: 14px; margin-bottom: 12px; border-radius: 18px; border: 1px solid var(--bord, rgba(127,127,127,.25)); }
.passeport-haut { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.passeport-photo { width: 84px; height: 105px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--texte) 8%, transparent); }
.passeport-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.passeport-tete { display: grid; gap: 3px; min-width: 0; }
.passeport-code { font: 600 11.5px/1 ui-monospace, monospace; letter-spacing: .06em; color: var(--texte-doux); }
.passeport-tete strong { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.passeport-tete small { color: var(--texte-doux); }
.passeport-frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.passeport-frise li { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--texte) 6%, transparent); font-size: 12px; min-width: 0; }
.passeport-frise li.fait { background: color-mix(in srgb, var(--succes) 16%, transparent); }
.passeport-frise li b { font-size: 12.5px; } .passeport-frise li small { color: var(--texte-doux); overflow-wrap: anywhere; }
/* Ton mois en bref (09/11). */
.mois-en-bref { display: grid; gap: 12px; }
.grille-mois { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .grille-mois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tuile-mois { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--bord, rgba(127,127,127,.25)); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tuile-mois:disabled { cursor: default; opacity: 1; }
.tuile-mois strong { font-size: 21px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tuile-mois small { color: var(--texte-doux); font-size: 12.5px; overflow-wrap: anywhere; }
.records-atelier { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-record { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--succes) 14%, transparent); }
.badge-record small { color: var(--texte-doux); font-size: 12px; }
/* Studio multicanal (09/11). */
.studio-canaux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .studio-canaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.studio-carte { display: grid; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--bord, rgba(127,127,127,.25)); min-width: 0; }
.studio-site { margin: 0; font-weight: 750; font-size: 13px; }
.studio-vinted .studio-site { color: #09b1ba; } .studio-leboncoin .studio-site { color: #ec5a13; } .studio-depop .studio-site { color: #ff2300; }
.studio-photo { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--texte) 8%, transparent); }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-titre { font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.studio-prix { margin: 0; font-size: 18px; font-weight: 750; }
.studio-meta { margin: 0; color: var(--texte-doux); font-size: 13px; }
.studio-texte { margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; font-size: 12.5px; line-height: 1.45; font-family: inherit; }
/* Table de préparation (09/11) : les colis en cartons. */
.table-colis { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.table-colis .carton { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 88px; padding: 10px 8px; border-radius: 14px; border: 1.5px dashed var(--bord, rgba(127,127,127,.35)); background: color-mix(in srgb, #b98a53 14%, transparent); color: inherit; font: inherit; cursor: pointer; }
.table-colis .carton svg { width: 22px; height: 22px; stroke: currentColor; }
.table-colis .carton b { font-size: 12px; } .table-colis .carton small { color: var(--texte-doux); font-size: 11.5px; }
.table-colis .carton.actif { border-style: solid; border-color: var(--texte); }
.table-colis .carton.pret { background: color-mix(in srgb, var(--succes) 18%, transparent); }
.table-colis .carton.retard { border-color: var(--alerte); }
/* Plan des bacs (09/11). */
.plan-bacs { display: grid; gap: 10px; margin-bottom: 14px; }
.plan-bacs-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.bac-case { display: grid; gap: 2px; justify-items: start; padding: 14px 12px; border-radius: 12px; border: 2px solid var(--bord, rgba(127,127,127,.3)); background: color-mix(in srgb, var(--texte) 5%, transparent); color: inherit; font: inherit; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.bac-case small { color: var(--texte-doux); }
.bac-case.sans-bac { border-style: dashed; }
.bac-case.allume { border-color: #ffcc00; background: color-mix(in srgb, #ffcc00 30%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, #ffcc00 25%, transparent); }
.bac-case.eteint { opacity: .4; }
.piece-bac { display: block; width: 100%; text-align: left; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* Dressing virtuel et créateur de tenues (09/11). */
.outils-dressing { margin: 0 0 8px; }
.dressing { display: grid; gap: 18px; }
.portant-titre { margin: 0 0 4px; font-weight: 700; }
.portant-barre { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 14px 4px 6px; }
.portant-barre::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: linear-gradient(#b8bcc2, #7d8187); }
.cintre-piece { position: relative; flex: 0 0 104px; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cintre-crochet { width: 14px; height: 14px; border: 2px solid #7d8187; border-bottom: 0; border-radius: 8px 8px 0 0; margin-top: -8px; }
.cintre-image { display: grid; place-items: center; width: 104px; height: 130px; }
.cintre-image img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.cintre-piece small { font-size: 11.5px; color: var(--texte-doux); }
.planche-tenue { display: grid; gap: 10px; }
.planche { position: relative; aspect-ratio: 3 / 4; max-height: 60vh; border-radius: 16px; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(127,127,127,.12) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(127,127,127,.12) 23px 24px), #f4f2ec; overflow: hidden; touch-action: none; }
.planche-item { position: absolute; width: 22%; height: 28%; cursor: grab; touch-action: none; }
.planche-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.planche-retirer { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #16171a; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.planche-total { margin: 0; font-weight: 650; }
.planche-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.planche-vignette { display: grid; gap: 2px; justify-items: center; padding: 6px; border-radius: 10px; border: 1px solid var(--bord, rgba(127,127,127,.25)); background: none; color: inherit; font: inherit; cursor: pointer; }
.planche-vignette img { width: 60px; height: 72px; object-fit: contain; }
.planche-vignette small { font-size: 10.5px; color: var(--texte-doux); }
