/* Axper Europe — css/shell.css
   Coquille commune : menu latéral, barre du haut, en-têtes de page, indicateurs,
   surfaces et tableaux, fenêtres (dialogues, panneau latéral), notifications, mobile. */

/* ============ Menu latéral : îlot flottant ============ */
.sidebar {
  background: linear-gradient(to top, var(--side-glow), transparent 55%) var(--side); color: var(--side-text); width: var(--side-w); position: fixed; inset: var(--gap) auto var(--gap) var(--gap);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: width .4s cubic-bezier(.4, 0, .2, 1), background-color .35s var(--ease);
  padding: 18px 12px 12px; display: flex; flex-direction: column; z-index: 30; overflow: hidden auto;
}
.brand {
  /* Lettrage « AXPER / EUROPE » aligné à gauche, comme la maquette ; le logo X n'apparaît qu'à l'écran de connexion */
  display: flex; align-items: center; gap: 10px; padding: 0 44px 0 12px; min-height: 44px; color: var(--text); text-decoration: none; min-width: 0;
}
.brand-logo { display: none; }
.brand-text { line-height: 1; white-space: nowrap; display: flex !important; flex-direction: column; align-items: flex-start; }
.brand-wordmark { display: block; width: 92px; height: auto; color: var(--text); transition: transform .4s var(--spring); }
.brand:hover .brand-wordmark { transform: translateX(2px); }
.brand-text small {
  display: block; font-family: var(--font); font-size: 9px; font-weight: 600; line-height: 1; text-transform: uppercase;
  letter-spacing: .6em; color: var(--accent-ink); margin-top: 6px;
}

.sidebar nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 12px; }
.nav-section { display: flex; align-items: center; gap: 8px; margin: 14px 12px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.section-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--dot); }
/* Halo qui pulse doucement : distingue les rubriques du menu */
.section-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); animation: dotPulse 2.4s ease-out infinite; }
.section-dot.planning { --dot: var(--info); }
.section-dot.stock { --dot: var(--accent); }
.section-dot.admin { --dot: var(--sav); }
.section-dot.outils { --dot: oklch(0.82 0.15 88); }
.nav-section:nth-of-type(2) .section-dot::after { animation-delay: .8s; }
.nav-section:nth-of-type(3) .section-dot::after { animation-delay: 1.6s; }
@keyframes dotPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.nav-link {
  position: relative; color: var(--side-text); text-decoration: none; height: 38px; padding: 0 13px; border-radius: 12px;
  display: flex; gap: 11px; align-items: center; font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, transform .2s;
}
.nav-link .ico { width: 20px; height: 20px; color: var(--muted); transition: transform .35s var(--spring), color .2s; }
.nav-link:hover { background: var(--surface-2); }
/* Survol : l'icône fait un petit geste (voir « Menu : animations au survol » en fin de fichier) */
.nav-link:active { transform: scale(.97); }
.nav-link.active { background: var(--side-2); color: var(--accent-ink); font-weight: 600; }
.nav-link.active .ico { color: var(--accent-ink); stroke-width: 2.1; }
.nav-link span { white-space: nowrap; }
.nav-link b {
  margin-left: auto; background: var(--accent); color: var(--on-accent); border-radius: 10px; min-width: 20px; height: 20px; padding: 0 6px;
  font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; animation: badgeIn .5s var(--spring);
}
.nav-link b:empty { display: none; }
@keyframes badgeIn { from { transform: scale(0); } }

/* Sélecteur Clair / Sombre (bas du menu) */
.theme-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 36px; margin: auto 4px 10px; padding: 3px;
  border-radius: 12px; background: var(--surface-2); flex: none;
}
.theme-switch::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px;
  background: var(--surface); box-shadow: var(--shadow-md); transition: transform .45s cubic-bezier(.5, 1.6, .4, 1);
}
[data-theme="dark"] .theme-switch::before { transform: translateX(100%); }
.theme-switch button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 0;
  font-size: 12.5px; font-weight: 600; color: var(--muted); border-radius: 9px; transition: color .25s;
}
.theme-switch .ico { width: 16px; height: 16px; }
[data-theme="light"] .theme-switch [data-set-theme="light"], [data-theme="dark"] .theme-switch [data-set-theme="dark"] { color: var(--text); }

.profile {
  display: flex; gap: 10px; align-items: center; text-align: left; font-size: 13.5px; position: relative; flex: none;
  border: 0; background: var(--surface-2); color: var(--text); padding: 10px; border-radius: 14px;
  transition: background-color .25s, padding .4s var(--ease);
}
.profile:hover { background: var(--surface-3); }
.profile .avatar {
  background: var(--user, var(--accent)); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: oklch(0.22 0.03 var(--hue)); flex-shrink: 0; font-weight: 700; font-size: 12.5px;
}
.profile strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

.nav-scrim { display: none; }

/* ============ Contenu principal ============ */
.main { margin-left: calc(var(--side-w) + var(--gap)); padding: 18px 28px 36px; max-width: 1900px; min-height: 100vh; transition: margin-left .4s cubic-bezier(.4, 0, .2, 1); }
.topbar { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.menu-toggle { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.crumbs strong { color: var(--text); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: stretch; }
.topbar-button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--surface); color: var(--text);
  border-radius: 20px; padding: 0 16px; height: 40px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-md);
  transition: transform .25s var(--spring), color .2s;
}
.topbar-button:hover { transform: translateY(-1px); color: var(--accent-ink); }
.topbar-button:active { transform: scale(.96); }

/* État de la synchronisation (données partagées) */
.sync-status {
  display: inline-flex; align-items: center; gap: 7px; align-self: center; height: 32px; padding: 0 12px; border-radius: 16px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; cursor: default;
}
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.sync-status:is([data-state="saving"], [data-state="loading"]) i { background: var(--info); animation: blink 1s ease-in-out infinite; }
.sync-status[data-state="offline"] { color: var(--low-ink); background: var(--low-bg); }
.sync-status[data-state="offline"] i { background: var(--low); }
.sync-status[data-state="error"] { color: var(--empty-ink); background: var(--empty-bg); }
.sync-status[data-state="error"] i { background: var(--empty); animation: pulse 1.8s ease-out infinite; }
@media (max-width: 900px) { .sync-status span { display: none; } .sync-status { width: 32px; padding: 0; justify-content: center; } }

/* Menu déroulant « Sauvegarde » */
.menu-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 310px; z-index: 40; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s, transform .3s var(--spring);
}
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown button {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 0; background: none;
  padding: 11px 12px; border-radius: 12px; transition: background-color .2s;
}
.dropdown button:hover { background: var(--surface-2); }
.dropdown button .ico { margin-top: 2px; color: var(--muted); }
.dropdown strong { display: block; font-size: 14px; font-weight: 600; }
.dropdown small { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.dropdown hr { border: 0; border-top: 1px solid var(--line-soft); margin: 5px 6px; }
.dropdown .danger-item strong, .dropdown .danger-item .ico { color: var(--empty-ink); }

/* Bouton de thème (barre du haut, mobile uniquement : sur grand écran, le sélecteur est dans le menu) */
.theme-toggle {
  position: relative; width: 40px; height: 40px; flex-shrink: 0; border: 0; background: var(--surface);
  border-radius: 20px; display: grid; place-items: center; overflow: hidden; color: var(--text); box-shadow: var(--shadow-md);
  transition: transform .3s var(--spring);
}
.theme-toggle:active { transform: scale(.9) rotate(-20deg); }
.theme-toggle svg { grid-area: 1/1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--spring), opacity .3s; }
.theme-toggle .sun { color: var(--low-ink); }
.theme-toggle .moon { color: var(--accent-ink); fill: color-mix(in srgb, var(--accent) 25%, transparent); }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: translateY(120%) rotate(-90deg); }
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: translateY(-120%) rotate(90deg); }
@media (min-width: 901px) { .theme-toggle { display: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Entrée de page */
.page-enter > * { animation: pageIn .55s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: 50ms; }
.page-enter > *:nth-child(3) { animation-delay: 100ms; }
.page-enter > *:nth-child(4) { animation-delay: 150ms; }
.page-enter > *:nth-child(n+5) { animation-delay: 200ms; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

/* ============ En-tête de page ============ */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin: 14px 0 var(--gap); gap: 10px 20px; }
.page-header h1 { font-size: 32px; font-weight: 600; letter-spacing: -.025em; margin: 2px 0 6px; line-height: 1.12; text-wrap: pretty; }
.page-header .subtitle { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 680px; line-height: 1.5; }
.page-header > div:first-child { flex: 1 1 380px; min-width: 0; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Pages sans titre : seulement les boutons, alignés à droite */
.page-header.actions-only { justify-content: flex-end; margin-top: 8px; }
.page-header.actions-only .header-actions { margin-left: auto; }

/* ============ Indicateurs ============ */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.metric {
  position: relative; overflow: hidden; background: var(--surface); border: 0; border-radius: var(--radius);
  padding: 16px 18px; text-align: left; color: inherit; text-decoration: none;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; row-gap: 12px;
  box-shadow: var(--shadow-md); transition: transform .3s cubic-bezier(.5, 1.6, .4, 1), background-color .35s var(--ease);
}
.metric:hover { transform: translateY(-3px); }
button.metric { font: inherit; cursor: pointer; width: 100%; }
a.metric, button.metric { user-select: none; } /* pas de texte surligné au clic */
a.metric:active, button.metric:active { transform: scale(.98); transition-duration: .08s; }
.surface { scroll-margin-top: 16px; }
.metric > span { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.25; }
.metric-icon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--tint-bg, var(--accent-soft)); color: var(--tint, var(--accent-ink));
}
.metric-icon .ico { width: 19px; height: 19px; }
.metric strong { font-family: var(--display); font-size: 36px; font-weight: 600; margin: 0; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { font-size: 12.5px; font-weight: 500; color: var(--muted); min-width: 0; }
.metric small em { font-style: normal; opacity: 0; transition: opacity .25s; }
.metric:hover small em { opacity: 1; }
.metric.info { --tint: var(--info-ink); --tint-bg: var(--info-bg); }
.metric.ok { --tint: var(--ok); --tint-bg: var(--ok-bg); }
.metric.accent { --tint: var(--low-ink); --tint-bg: var(--low-bg); }
.metric.accent strong { color: var(--low-ink); }
.metric.accent small { color: var(--low-ink); }
.metric.danger { --tint: var(--empty-ink); --tint-bg: var(--empty-bg); }
.metric.danger strong { color: var(--empty-ink); }
.metric.danger small { color: var(--empty-ink); }

/* ============ Surfaces et tableaux ============ */
.surface { border: 0; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-md); transition: background-color .35s var(--ease); margin-bottom: var(--gap); }
.surface-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; gap: 15px; }
.surface-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.surface-heading h2, .surface h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.surface-heading span { font-size: 12.5px; color: var(--muted); }
.legend { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.legend i { width: 8px; height: 8px; background: var(--ok); border-radius: 3px; }
.legend .amber { background: var(--low); margin-left: 10px; }
.legend .red { background: var(--empty); margin-left: 10px; }

.filters { display: flex; flex-wrap: wrap; padding: 14px 16px; gap: 8px; align-items: center; }
.search {
  display: flex; align-items: center; border: 0; background: var(--surface-2); border-radius: 12px;
  flex: 1 1 100%; min-width: 160px; padding-left: 12px; gap: 6px; color: var(--muted); transition: box-shadow .25s, background-color .25s;
}
.search:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-soft); color: var(--accent-ink); }
.search .ico { transition: transform .35s var(--spring); }
.search:focus-within .ico { transform: scale(1.1) rotate(-8deg); }
.search input { border: 0; width: 100%; min-width: 0; padding: 10px 8px; background: transparent; outline: none; font-size: 13.5px; }
.filters select { flex: 1; min-width: 150px; background: var(--surface-2); border-color: transparent; font-size: 13.5px; }

.caption { padding: 2px 20px 10px; color: var(--muted); font-size: 12.5px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 14px; }
th { font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); transition: background-color .2s; }
tbody tr { position: relative; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr td:first-child { transition: background-color .2s; }
tbody tr:hover td:first-child { border-radius: 14px 0 0 14px; }
tbody tr:hover td:last-child { border-radius: 0 14px 14px 0; }
.enter tbody tr { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

.product { display: flex; gap: 12px; align-items: center; min-width: 210px; }
.product b { font-weight: 600; display: block; }
.product small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.product-icon {
  display: grid; place-items: center; background: var(--surface-2); border: 0; color: var(--muted);
  border-radius: 12px; width: 38px; height: 38px; flex-shrink: 0; transition: transform .45s var(--spring), background-color .25s, color .25s;
}
.product-icon .ico { width: 19px; height: 19px; }
.product-icon.small { width: 32px; height: 32px; border-radius: 10px; }
.product-icon.small .ico { width: 17px; height: 17px; }
tbody tr:hover .product-icon { transform: rotate(-8deg) scale(1.06); background: var(--accent-soft); color: var(--accent-ink); }

.empty-state { padding: 48px 25px; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--text); margin: 0 0 8px; font-size: 17px; }
.empty-state > div { margin-top: 18px; }
.empty-state.small { padding: 26px 20px; font-size: 13.5px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 12px; margin-top: 6px; }

/* ============ Fenêtres ============ */
dialog {
  border: 0; border-radius: 24px; padding: 26px; width: 480px; max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text);
}
dialog[open] { animation: pop .45s var(--spring); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.wide-dialog { width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head .eyebrow { margin: 0; }
.close:not(.secondary) {
  border: 0; background: var(--surface-2); font-size: 22px; line-height: 1; color: var(--muted); width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0; transition: transform .35s var(--spring), background-color .2s, color .2s;
}
.close:not(.secondary):hover { transform: rotate(90deg); background: var(--surface-3); color: var(--text); }
dialog h2 { font-size: 24px; margin: 12px 0 6px; letter-spacing: -.02em; }
dialog p { font-size: 14px; color: var(--muted); line-height: 1.55; }
dialog label { display: block; font-size: 13.5px; font-weight: 600; margin-top: 16px; }
dialog input:not([type="checkbox"]), dialog select, dialog textarea {
  display: block; width: 100%; max-width: none; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: var(--input); transition: border-color .2s, box-shadow .2s;
}
dialog textarea { resize: vertical; min-height: 70px; }
dialog input, dialog select, dialog textarea { font-weight: 400; }
.optional { font-weight: 400; color: var(--faint); font-size: 12px; }
.field-hint { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--info-ink) !important; line-height: 1.5; }
.field-hint .ico { vertical-align: -3px; margin-right: 4px; }
.field-hint:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid input { min-width: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.form-error { color: var(--empty-ink) !important; margin: 12px 0 0; font-weight: 600; }
.form-error:empty { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* Interrupteur (case à cocher stylée) */
.switch { display: flex !important; align-items: center; gap: 12px; cursor: pointer; font-weight: 500 !important; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: relative; width: 40px; height: 22px; border-radius: 20px; background: var(--surface-3); flex-shrink: 0; transition: background-color .3s;
}
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .4s var(--spring);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* Confirmation */
.confirm-dialog { width: 440px; text-align: center; }
.confirm-dialog form { display: flex; flex-direction: column; align-items: center; }
.confirm-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); animation: pop .6s var(--spring); }
.confirm-icon.danger { background: var(--empty-bg); color: var(--empty-ink); }
.confirm-dialog h2 { font-size: 21px; }
.confirm-dialog .modal-actions { justify-content: center; width: 100%; }
.confirm-dialog .modal-actions button { flex: 1; }

/* Panneau latéral (fiche) : îlot flottant à droite */
dialog.drawer {
  margin: var(--gap) var(--gap) var(--gap) auto; height: calc(100dvh - 2 * var(--gap)); max-height: calc(100dvh - 2 * var(--gap));
  width: min(700px, calc(100vw - 2 * var(--gap))); max-width: 100vw; padding: 0; border-radius: var(--radius-lg); border: 0; overflow: hidden;
}
dialog.drawer[open] { animation: slideIn .5s var(--ease); }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { margin: 0 0 6px; font-size: 24px; }
.drawer-head p:not(.eyebrow) { margin: 0; font-size: 13.5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 24px 22px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.drawer-foot .form-error { margin: 0 0 12px; }
.drawer-actions { display: flex; gap: 8px; align-items: center; }

/* ============ Notifications ============ */
.toasts {
  position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 12px 14px 14px; border-radius: 16px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .toast { background: var(--surface-3); color: var(--text); }
.toast-icon { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); }
.toast.info .toast-icon { background: var(--info); color: var(--on-tone); }
.toast.warning .toast-icon { background: var(--empty); color: var(--on-tone); }
.toast-message { flex: 1; min-width: 0; }
.toast-action { flex-shrink: 0; border: 0; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; padding: 5px 10px; border-radius: 9px; font-weight: 700; font-size: 13px; }
.toast-action:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
.toast-close { flex-shrink: 0; border: 0; background: none; color: inherit; opacity: .6; width: 26px; height: 26px; border-radius: 8px; font-size: 18px; line-height: 1; }
.toast-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: toastProgress var(--toast-duration, 4000ms) linear forwards; }
.toast.info .toast-progress { background: var(--info); }
.toast.warning .toast-progress { background: var(--empty); }
.toast.paused .toast-progress { animation-play-state: paused; }
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============ Écrans moyens ============ */
@media (min-width: 1500px) { .main { padding-inline: 36px; } }
@media (max-width: 1180px) {
  :root { --side-w: 228px; }
  .main { padding: 16px 20px 30px; }
  .metric { padding: 15px 16px; }
  .metric strong { font-size: 32px; }
  td, th { padding-inline: 12px; }
  .page-footer { flex-direction: column; gap: 8px; }
}

/* ============ Mobile / petite fenêtre : menu escamotable ============ */
@media (max-width: 900px) {
  :root { --side-w: 0px; --gap: 12px; }
  .sidebar { width: 270px; transform: translateX(calc(-100% - 2 * var(--gap))); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: var(--scrim); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .brand { padding-right: 12px; }
  .menu-toggle { display: inline-grid; width: 40px; height: 40px; border-radius: 20px; box-shadow: var(--shadow-md); }
  /* La barre du haut (menu, sauvegarde, thème) reste à l'écran pendant le défilement */
  .topbar {
    position: sticky; top: 0; z-index: 20; margin: -12px -16px 0; padding: 10px 16px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .main { margin-left: 0; padding: 12px 16px 28px; }
  .topbar-button span { display: none; }
  .topbar-button { width: 40px; padding: 0; justify-content: center; }
  .page-header { margin-top: 16px; align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 26px; letter-spacing: -.02em; }
  .page-header > div:first-child { flex-basis: auto; }
  .header-actions { justify-content: flex-start; width: 100%; flex-wrap: wrap; }
  .header-actions > * { flex: 1 1 auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { row-gap: 10px; }
  .metric strong { font-size: 28px; }
  .metric small { grid-column: 1 / -1; }
  .filters { padding: 12px; }
  .filters select { flex-basis: calc(50% - 8px); min-width: 0; font-size: 13px; }
  .surface-heading { padding: 16px 16px 0; }
  .legend { display: none; }
  table { min-width: 820px; }
  dialog { padding: 20px; }
  dialog.drawer { margin: 0; height: 100dvh; max-height: 100dvh; width: 100vw; border-radius: 0; }
  .drawer-head, .drawer-body, .drawer-foot { padding-inline: 18px; }
  .form-grid { gap: 8px; }
  .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
/* ============ Tableaux en cartes (petit écran) ============ */
/* Chaque ligne devient une carte : l'élément principal en haut sur toute la largeur, les autres
   colonnes sur deux colonnes avec leur intitulé (data-label, posé par app.js), les boutons en bas. */
@media (max-width: 900px) {
  .table-scroll:has(> table.cards) { overflow: visible; }
  table.cards { display: block; min-width: 0 !important; }
  table.cards thead { display: none; }
  table.cards tbody { display: grid; gap: 10px; padding: 4px 12px 12px; }
  table.cards tbody tr {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px;
    padding: 14px; border-radius: 16px; background: var(--surface-2);
  }
  table.cards td {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0 !important; max-width: none !important;
    padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; text-align: left !important; overflow-wrap: anywhere;
  }
  table.cards td::before { content: attr(data-label); font-size: 11px; font-weight: 600; color: var(--muted); }
  table.cards td[data-label=""]::before { display: none; }
  /* Élément principal (site, produit) et boutons : toute la largeur, sans intitulé */
  table.cards td:has(> .product), table.cards td:has(> .actions), table.cards td:has(> .history-details) { grid-column: 1 / -1; }
  table.cards td:has(> .product)::before, table.cards td:has(> .actions)::before { display: none; }
  table.cards td:has(> .product) { padding-right: 36px !important; }
  table.cards .product { min-width: 0; }
  table.cards .actions { justify-content: flex-start; flex-wrap: wrap; }
  /* Éléments qui ont le fond de la carte : ils prennent le fond de la page pour rester visibles */
  table.cards :is(.actions button, .secondary, .icon-button, .threshold, .product-icon) { background: var(--surface); }
  /* Case « Finalisée » : en haut à droite de la carte */
  table.cards td:has(> .check) { position: absolute; top: 14px; right: 14px; }
  table.cards td:has(> .check)::before { display: none; }
  table.cards tbody tr:hover { background: var(--surface-3); }
  table.cards tbody tr:hover .product-icon, table.cards tbody tr:hover .site-avatar { transform: none; }
  table.cards tr.absence-row { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--line-soft) 8px 16px); }
  table.cards .cost-field { background: var(--surface); }
  table.cards .cost-field.missing { background: var(--low-bg); }
}

@media (max-width: 480px) {
  .crumbs span, .crumbs .ico { display: none; }
  .drawer-actions { flex-wrap: wrap; }
  .drawer-actions .primary { flex: 1; }
}


/* ============ Menu repliable (icônes seules) ============ */
/* Bouton carré en haut de l'îlot : à droite du lettrage, ou centré quand le menu est replié */
.nav-collapse {
  position: fixed; z-index: 35; top: calc(var(--gap) + 24px); left: calc(var(--gap) + var(--side-w) - 44px); width: 32px; height: 32px; padding: 0; margin: 0;
  border-radius: 10px; border: 0; background: none; color: var(--muted);
  display: grid; place-items: center; line-height: 0;
  transition: left .4s cubic-bezier(.4, 0, .2, 1), transform .2s, color .2s, background-color .2s;
}
.nav-collapse .ico { width: 18px; height: 18px; stroke-width: 2; transition: transform .45s var(--ease); }
.nav-collapse:hover { background: var(--surface-2); color: var(--text); }
.nav-collapse:active { transform: scale(.9); }
html.nav-collapsed .nav-collapse .ico { transform: rotate(180deg); }

/* Textes du menu : ils rétrécissent et s'effacent au repli (rien ne dépasse de la bande d'icônes),
   puis réapparaissent une fois le menu ouvert. */
.brand-text, .nav-link span, .nav-section span, .profile > span:last-child, .theme-switch span {
  display: inline-block; max-width: 190px; overflow: hidden; white-space: nowrap; vertical-align: middle;
  transition: opacity .25s ease .18s, max-width .45s var(--ease);
}
.brand-text { overflow: visible; }
.profile > span:last-child { display: block; max-width: 180px; min-width: 0; }
.nav-section, .profile { transition: margin .45s var(--ease), padding .45s var(--ease), background-color .25s, height .3s; }

@media (min-width: 901px) {
  html.nav-collapsed { --side-w: 72px; }
  html.nav-collapsed .nav-collapse { left: calc(var(--gap) + (var(--side-w) - 32px) / 2); }
  html.nav-collapsed .brand { opacity: 0; pointer-events: none; }
  html.nav-collapsed .nav-link span,
  html.nav-collapsed .nav-section span,
  html.nav-collapsed .profile > span:last-child,
  html.nav-collapsed .theme-switch span { opacity: 0; max-width: 0; pointer-events: none; transition: opacity .12s ease, max-width .45s var(--ease); }
  html.nav-collapsed .nav-link, html.nav-collapsed .profile { gap: 0; }
  html.nav-collapsed .nav-link { padding-left: 14px; }
  /* Rubriques : un simple trait de séparation */
  html.nav-collapsed .nav-section { height: 1px; margin: 10px 8px; background: var(--line); }
  html.nav-collapsed .section-dot { display: none; }
  /* Pastilles de nombre : un point sur l'icône */
  html.nav-collapsed .nav-link b {
    position: absolute; left: 30px; top: 7px; min-width: 0; width: 8px; height: 8px; padding: 0; font-size: 0;
    border-radius: 50%; box-shadow: 0 0 0 2px var(--side);
  }
  /* Thème : un seul bouton, celui du thème à activer */
  html.nav-collapsed .theme-switch { grid-template-columns: 1fr; width: 40px; height: 40px; margin-inline: auto; padding: 0; }
  html.nav-collapsed .theme-switch::before { display: none; }
  html.nav-collapsed .theme-switch button { color: var(--text); gap: 0; border-radius: 12px; transition: background-color .2s, transform .2s; }
  html.nav-collapsed .theme-switch button:hover { background: var(--surface-3); }
  html.nav-collapsed .theme-switch button:active { transform: scale(.9); }
  /* L'icône du thème à activer arrive en tournant ; elle pivote au survol */
  html.nav-collapsed .theme-switch .ico { width: 20px; height: 20px; animation: themeIconIn .5s var(--spring) both; transition: transform .45s var(--spring); }
  html.nav-collapsed .theme-switch button:hover .ico { transform: rotate(-20deg) scale(1.08); }
  [data-theme="light"].nav-collapsed .theme-switch [data-set-theme="light"],
  [data-theme="dark"].nav-collapsed .theme-switch [data-set-theme="dark"] { display: none; }
  html.nav-collapsed .profile { background: none; padding: 0; justify-content: center; }
  html.nav-collapsed .profile .avatar { width: 36px; height: 36px; }
}

@keyframes themeIconIn { from { opacity: 0; transform: rotate(-120deg) scale(.4); } }

/* Info-bulle des icônes (menu replié) */
.nav-tip {
  position: fixed; z-index: 60; left: 0; top: 0; transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg); transition: opacity .15s ease, transform .3s var(--spring);
}
.nav-tip::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.nav-tip.show { opacity: 1; transform: translate(0, -50%); }
.nav-tip b { margin-left: 6px; background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 1px 7px; font-size: 11px; }

@media (max-width: 900px) {
  .nav-collapse, .nav-tip { display: none; }
}

/* ============ Écrans d'accès (connexion, activation, mot de passe oublié) ============ */
body.auth-locked { overflow: hidden; }
body.auth-locked .sidebar, body.auth-locked .main, body.auth-locked .nav-collapse { visibility: hidden; }
.auth-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; overflow: auto;
  background: radial-gradient(circle at 20% 15%, var(--accent-soft), transparent 55%), radial-gradient(circle at 85% 85%, var(--info-bg), transparent 55%), var(--bg);
  animation: fade .35s ease;
}
.auth-gate.leaving { animation: fade .3s ease reverse both; }
.auth-card {
  width: min(420px, 100%); background: var(--surface); border-radius: 24px; padding: 30px 32px 26px; box-shadow: var(--shadow-lg);
  animation: pop .55s var(--spring) both;
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; color: var(--text); }
.auth-logo { width: 40px; height: auto; color: var(--text); }
.auth-brand span { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.auth-brand small { display: block; font-family: var(--font); font-size: 9.5px; font-weight: 600; letter-spacing: .6em; margin-right: -.6em; color: var(--accent-ink); margin-top: 5px; text-transform: uppercase; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 2px 0 8px; }
.auth-intro { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
.auth-card label { display: block; font-size: 13.5px; font-weight: 600; margin-top: 16px; }
.auth-card input {
  display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--input);
  font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.code-input { font-family: var(--mono); letter-spacing: 2px; text-transform: uppercase; }
.auth-hint { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }
.auth-card .primary { width: 100%; margin-top: 22px; height: 44px; }
.auth-card .form-error, .auth-message { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; }
.auth-message { color: var(--info-ink); }
.auth-message:empty { display: none; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--faint); margin: 22px 0 0; }

/* Menu « Administration » réservé aux administrateurs */
.admin-only { display: none; }
body.is-admin .admin-only { display: flex; }

/* Fenêtre « Mon compte » */
.account-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 20px 0 6px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; }
.account-facts dt { font-size: 12px; color: var(--faint); margin-bottom: 3px; }
.account-facts dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#account-password { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
#account-password summary { cursor: pointer; font-weight: 600; font-size: 14px; }
#account-password .primary { margin-top: 18px; }
#account-form .modal-actions { justify-content: space-between; }

/* Page Comptes */
.users-table td { vertical-align: middle; }
.users-table .actions button { font-size: 12.5px; padding: 6px 10px; }
.users-table .danger-action { color: var(--empty-ink); }
.users-table .danger-action:hover:not(:disabled) { background: var(--empty-bg); border-color: var(--empty); }
.me-tag { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 20px; margin-left: 4px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 6px; padding: 16px 18px; background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 14px; }
.code-box span { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: 1.5px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .account-facts { grid-template-columns: 1fr; } .code-box { flex-direction: column; align-items: stretch; text-align: center; } }
.users-table td, .users-table th { padding-inline: 14px; }
.users-table .actions { flex-wrap: wrap; }

/* ============ Présence en temps réel (qui est en ligne, où, ce qu'il modifie) ============ */
/* Arrivée d'une personne : simple fondu (les pastilles déjà affichées ne s'animent plus) */
.p-enter { animation: presenceIn .25s ease-out both; }
@keyframes presenceIn { from { opacity: 0; transform: scale(.92); } }
.presence-bar { position: relative; display: flex; align-items: center; align-self: center; padding: 4px 4px 4px 8px; border-radius: 20px; }
/* Sa pastille devant, les autres en éventail derrière ; au survol, l'éventail se déplie */
.presence-bar .presence-avatar { position: relative; margin-left: -18px; transition: margin .45s var(--spring), transform .3s var(--spring), opacity .3s, filter .3s; }
.presence-bar .presence-avatar:first-child { margin-left: 0; }
.presence-bar:is(:hover, :focus-within) .presence-avatar:not(:first-child) { margin-left: 4px; }
.presence-bar .presence-avatar:hover, .presence-bar .presence-avatar:focus-visible { transform: translateY(-2px) scale(1.08); outline: none; }
.presence-bar .presence-avatar.self { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
/* Bulle nom + page sous la pastille survolée */
.presence-bar .presence-avatar::after {
  content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); z-index: 50;
  padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .15s, transform .25s var(--spring);
}
.presence-bar .presence-avatar:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); }
.presence-bar .presence-avatar:last-child::after { left: auto; right: 0; transform: translate(0, -4px); }
.presence-bar .presence-avatar:last-child:is(:hover, :focus-visible)::after { transform: none; }
.presence-avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; flex-shrink: 0;
  background: var(--presence-bg, var(--presence)); color: oklch(0.22 0.03 var(--hue)); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--bg); cursor: default; transition: opacity .3s, filter .3s;
}
.presence-avatar.away { opacity: .5; filter: grayscale(.6); }
.presence-avatar.more { background: var(--surface-3); color: var(--text); }
.presence-avatar.mini { width: 20px; height: 20px; margin-left: -4px; font-size: 8.5px; box-shadow: 0 0 0 2px var(--surface); }
/* Menu : points de couleur posés en bas à droite de l'icône de la page (aucune place prise au libellé) */
.nav-presence { position: absolute; left: 22px; bottom: 3px; z-index: 1; display: inline-flex; }
.nav-presence .presence-more { display: none; } /* au-delà de 3 : les noms restent dans l'info-bulle */
/* Les pastilles ne suivent pas les règles des libellés du menu (largeur limitée, masquage au repli) */
.nav-link .nav-presence, .nav-link .presence-avatar, html.nav-collapsed .nav-link .nav-presence, html.nav-collapsed .nav-link .presence-avatar { max-width: none; overflow: visible; opacity: 1; vertical-align: middle; pointer-events: none; }
.nav-link .nav-presence { display: inline-flex; align-items: center; flex-shrink: 0; pointer-events: auto; }
.presence-dot { width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--presence-bg, var(--presence)); box-shadow: 0 0 0 2px var(--side); transition: opacity .3s, filter .3s; }
.presence-dot:first-child { margin-left: 0; }
.presence-dot.away { opacity: .45; filter: grayscale(.6); }
.presence-more { margin-left: 3px; padding: 0 4px; border-radius: 6px; background: var(--side); font-size: 9.5px; font-style: normal; font-weight: 700; line-height: 13px; color: var(--muted); }
/* Libellé long + pastilles + compteur : le libellé se termine par « … » au lieu d'être coupé net */
.nav-link > span:not(.nav-presence) { min-width: 0; text-overflow: ellipsis; }
.nav-link.active .presence-dot { box-shadow: 0 0 0 2px var(--surface-2); }
.nav-link .presence-avatar { display: inline-grid; }
.nav-presence .presence-avatar { box-shadow: 0 0 0 2px var(--side); }
html.nav-collapsed .nav-presence :is(.presence-dot:not(:first-child), .presence-more) { display: none; }

/* Fiche ou référence ouverte par quelqu'un : sa couleur et sa pastille */
.product, .event, .dash-item, .wk-chip, .day-chip, .dash-site, .timeline li { position: relative; }
.presence-tag { position: absolute; top: -7px; right: -5px; z-index: 2; display: inline-flex; padding-left: 4px; pointer-events: none; }
td > .product > .presence-tag, .product > .presence-tag { top: -9px; left: 26px; right: auto; }
.presence-open:not(tr) { outline: 2px solid var(--presence); outline-offset: 1px; }
tr.presence-open > td { background: color-mix(in srgb, var(--presence) 9%, transparent); }
tr.presence-open > td:first-child { box-shadow: inset 3px 0 0 var(--presence); }

/* Fiche : « Jean consulte aussi cette fiche » et champ en cours de saisie */
.sheet-presence { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 !important; padding-left: 4px; font-size: 12.5px !important; font-weight: 600; color: var(--text) !important; }
.sheet-presence .presence-avatar { box-shadow: 0 0 0 2px var(--surface); }
.presence-editing { position: relative; border-radius: 12px; box-shadow: 0 0 0 2px var(--presence); transition: box-shadow .2s; }
label.presence-editing:not(.cost-field) { box-shadow: none; }
label.presence-editing:not(.cost-field) :is(input, select, textarea) { border-color: var(--presence) !important; box-shadow: 0 0 0 2px var(--presence); }
.cost-field.presence-editing { box-shadow: 0 0 0 2px var(--presence) !important; }
.presence-label {
  position: absolute; top: -9px; right: 8px; z-index: 3; padding: 1px 7px; border-radius: 6px; pointer-events: none;
  background: var(--presence-bg, var(--presence)); color: oklch(0.22 0.03 var(--hue)); font-size: 10.5px; font-weight: 700; white-space: nowrap; animation: presenceIn .25s ease-out both;
}
label.presence-editing:not(.cost-field) > .presence-label { top: -2px; }
@media (max-width: 900px) { .presence-bar .presence-avatar:nth-child(n+4):not(.more) { display: none; } .presence-bar .presence-avatar:not(:first-child) { margin-left: -20px; } }

/* Pastille d'une personne dans les listes : même couleur que dans la barre du haut et le menu */
.site-avatar.user-avatar { background: var(--user); color: oklch(0.22 0.03 var(--hue)); border-radius: 50%; }


/* ============ Menu : animations au survol ============ */
/* L'icône fait un petit « pop », le libellé glisse légèrement ; quelques icônes ont leur propre geste. */
.nav-link > span:not(.nav-presence) { transition: opacity .25s ease .18s, max-width .45s var(--ease), translate .35s var(--spring); }
.nav-link:hover > span:not(.nav-presence) { translate: 3px 0; }
.nav-link:hover .ico { animation: navPop .5s var(--spring); }
.nav-link[href="#/accueil"]:hover .ico { animation: navHop .55s var(--ease); }
.nav-link[href="#/planning/calendrier"]:hover .ico { animation: navLift .5s var(--spring); }
.nav-link[href="#/planning/envois"]:hover .ico { animation: navDrive .6s var(--ease); }
.nav-link[href="#/stock/alertes"]:hover .ico { animation: navRing .7s ease-in-out; transform-origin: 50% 15%; }
.nav-link[href="#/stock/historique"]:hover .ico { animation: navSwap .5s var(--ease); }
.nav-link[href="#/outils/notes"]:hover .ico { animation: navTilt .5s var(--spring); }
@keyframes navPop { 40% { transform: scale(1.14) rotate(-8deg); } }
@keyframes navHop { 35% { transform: translateY(-3px); } 65% { transform: translateY(0) scale(1.05, .95); } }
@keyframes navLift { 40% { transform: translateY(-2px) rotate(-6deg) scale(1.08); } }
@keyframes navDrive { 45% { transform: translateX(3px); } 46% { transform: translateX(3px); } 70% { transform: translateX(-1px); } }
@keyframes navRing { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-4deg); } }
@keyframes navSwap { 50% { transform: scaleX(-1); } }
@keyframes navTilt { 40% { transform: rotate(-10deg) translateY(-1px); } }
