/* WEMOOVE MANAGEMENT.
   La DA de WEMOOVE Admin (noir, blanc, Inter Tight en capitales, filets blancs à 15%, verre),
   reprise sans la modifier. Une seule couleur en plus du blanc : le rouge, qui veut dire « bloque ». */

@font-face { font-family: "Inter Tight"; src: url("/fonts/intertight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000;
  --texte: #fff;
  --texte-2: rgb(255 255 255 / 0.66);
  --texte-3: rgb(255 255 255 / 0.52);
  --filet: rgb(255 255 255 / 0.15);
  --filet-fort: rgb(255 255 255 / 0.28);
  --alerte: #ff5a47;
  --titre: "Inter Tight", "Inter", system-ui, sans-serif;
  --corps: "Inter", system-ui, sans-serif;
  --g-fill: rgb(18 18 20 / 0.22);
  --g-fill-dense: rgb(16 16 18 / 0.78);
  --g-blur: blur(14px) saturate(190%) brightness(1.06);
  --g-edge-a: rgb(255 255 255 / 0.62);
  --g-edge-b: rgb(255 255 255 / 0.04);
  --g-inner: rgb(255 255 255 / 0.13);
  --g-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.85), 0 2px 6px -2px rgb(0 0 0 / 0.4);
  --r: 26px;
  --r-sm: 18px;
  --gouttiere: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --g-fill: #111; --g-fill-dense: #111; --g-blur: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--texte); font: 400 15px/1.5 var(--corps); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le fond : trois nappes de lumière blanche qui dérivent sur le noir */
.decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.nappe { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; }
.nappe-1 { width: 70vw; height: 26vw; left: -14vw; top: 30vh; background: radial-gradient(closest-side, rgb(255 255 255 / 0.26), transparent); transform: rotate(-14deg); }
.nappe-2 { width: 54vw; height: 20vw; left: 12vw; bottom: -6vh; background: radial-gradient(closest-side, rgb(255 255 255 / 0.12), transparent); transform: rotate(9deg); }
.nappe-3 { width: 46vw; height: 30vw; right: -8vw; top: 46vh; background: radial-gradient(closest-side, rgb(255 255 255 / 0.14), transparent); transform: rotate(-24deg); }
.grain { position: absolute; inset: 0; background: url("/grain.webp") 0 0 / 128px 128px; opacity: 0.07; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) {
  .nappe-1 { animation: derive 28s ease-in-out infinite alternate; }
  .nappe-2 { animation: derive 34s ease-in-out infinite alternate-reverse; }
  .nappe-3 { animation: derive 40s ease-in-out infinite alternate; }
}
@keyframes derive { from { translate: 0 0; } to { translate: 9vw 5vh; } }

/* Le verre */
.glass {
  position: relative; isolation: isolate; border-radius: var(--r);
  background: radial-gradient(120% 80% at 0% 0%, var(--g-inner), transparent 42%), radial-gradient(90% 60% at 100% 100%, rgb(255 255 255 / 0.05), transparent 60%), var(--g-fill);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), inset 1px 0 0 rgb(255 255 255 / 0.1), inset 0 -1px 0 rgb(0 0 0 / 0.24), inset 0 -14px 28px -18px rgb(255 255 255 / 0.16), var(--g-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, var(--g-edge-a) 0%, color-mix(in srgb, var(--g-edge-a) 30%, transparent) 26%, var(--g-edge-b) 58%, color-mix(in srgb, var(--g-edge-a) 26%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: url("/grain.webp") 0 0 / 128px 128px; opacity: 0.06; mix-blend-mode: overlay; }
.glass.bloque { box-shadow: inset 0 0 0 1px rgb(255 90 71 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25), var(--g-shadow); }

/* La barre */
.barre {
  position: sticky; top: 14px; z-index: 10; display: flex; align-items: center; gap: 18px;
  width: min(1240px, calc(100% - 2 * var(--gouttiere))); margin: 14px auto 0; padding: 10px 12px 10px 20px; border-radius: 999px;
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marque img { display: block; width: 104px; height: auto; }
.marque-pole { font: 600 10px/1 var(--titre); letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-2); padding: 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--filet); }
.onglets { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / 0.22); box-shadow: inset 0 0 0 1px var(--filet), inset 0 1px 3px rgb(0 0 0 / 0.4); overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { padding: 8px 14px; border-radius: 999px; font: 600 12px/1 var(--titre); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--texte-2); white-space: nowrap; transition: color 300ms var(--ease), background 300ms var(--ease); }
.onglets a:hover { color: var(--texte); }
.onglets a[aria-current="page"] { color: #000; background: linear-gradient(180deg, #fff, rgb(235 235 235)); box-shadow: 0 6px 18px -6px rgb(255 255 255 / 0.5); }
.onglets a:focus-visible, .btn:focus-visible, .tuile:focus-visible, .ligne-lien:focus-visible, .carte-deal:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.compte { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.moi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; font: 800 13px/1 var(--titre); }
.sortir { border: 0; background: none; color: var(--texte-3); font: 600 11px/1 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; padding: 8px 4px; }
.sortir:hover { color: var(--texte); }

/* Les vues */
main { width: min(1240px, calc(100% - 2 * var(--gouttiere))); margin: 0 auto; padding: clamp(36px, 6vw, 80px) 0 120px; }
.tete { max-width: 860px; margin-bottom: clamp(24px, 4vw, 44px); }
.titre { margin: 0; font: 900 clamp(44px, 8vw, 112px)/0.9 var(--titre); letter-spacing: -0.035em; text-transform: uppercase; overflow-wrap: anywhere; }
.titre .rouge { color: var(--alerte); }
.chapeau { margin: 16px 0 0; max-width: 620px; font-size: clamp(15px, 1.3vw, 18px); color: var(--texte-2); }
.sous-titre { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 14px; font: 800 22px/1 var(--titre); letter-spacing: -0.01em; text-transform: uppercase; }
.sous-titre small { font: 500 12.5px/1 var(--corps); color: var(--texte-3); letter-spacing: 0; text-transform: none; }
.sous-titre .btn { margin-left: auto; }

.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.colonne { padding: 22px 22px 14px; min-height: 220px; display: flex; flex-direction: column; }
.colonne-tete { display: flex; align-items: center; gap: 10px; }
.etiquette { margin: 0; font: 600 11px/1 var(--titre); letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-2); }
.compte-ligne { margin-left: auto; font: 800 34px/1 var(--titre); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bloque .compte-ligne { color: var(--alerte); }
.lignes { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.lignes li { border-bottom: 1px solid var(--filet); }
.lignes li:last-child { border-bottom: 0; }
.ligne-lien { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 12px; align-items: baseline; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 6px; }
.ligne-lien:hover .ligne-titre { text-decoration: underline; text-underline-offset: 3px; }
.ligne-titre { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-qui { font: 600 10.5px/1 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-3); white-space: nowrap; }
.ligne-detail { grid-column: 2 / 4; font-size: 12.5px; color: var(--texte-3); }
.vide { color: var(--texte-3); padding: 14px 0; font-size: 14px; margin: 0; }

.point { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--texte-3); align-self: center; flex: none; }
.point.surveiller { background: #fff; box-shadow: 0 0 10px rgb(255 255 255 / 0.6); }
.point.bloque { background: var(--alerte); box-shadow: 0 0 10px rgb(255 90 71 / 0.6); }

.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.kpi { padding: 18px 20px; border-radius: var(--r-sm); }
.kpi .chiffre { margin: 12px 0 4px; font: 800 40px/0.95 var(--titre); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi .unite { margin: 0; font-size: 12.5px; color: var(--texte-3); }

/* Talents */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.tuile { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--r-sm); text-decoration: none; min-height: 150px; border: 0; text-align: left; cursor: pointer; transition: transform 400ms var(--ease); }
.tuile:hover { transform: translateY(-2px); }
.tuile-nom { font: 800 18px/1.1 var(--titre); text-transform: uppercase; letter-spacing: -0.005em; }
.tuile-desc { font-size: 13px; color: var(--texte-2); }
.tuile-etat { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texte-2); min-width: 0; }
.tuile-etat span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile.sorti { opacity: 0.55; }

.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panneau { padding: 20px 22px; border-radius: var(--r); }
.panneau h3 { margin: 0 0 12px; font: 800 15px/1 var(--titre); letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.panneau h3 .btn { margin-left: auto; }
.faits { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
.faits dt { color: var(--texte-3); }
.faits dd { margin: 0; overflow-wrap: anywhere; }
.texte-libre { white-space: pre-wrap; font-size: 14px; color: var(--texte-2); margin: 10px 0 0; }
.large { grid-column: 1 / -1; }

/* Deals */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.etape { padding: 14px 12px; border-radius: var(--r-sm); min-height: 320px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.etape-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 6px; }
.etape-tete strong { font: 800 13px/1 var(--titre); letter-spacing: 0.1em; text-transform: uppercase; }
.etape-tete span { font-size: 12px; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.carte-deal { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; border-radius: 14px; border: 0; text-align: left; cursor: pointer; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--filet); transition: background 200ms; }
.carte-deal:hover { background: rgb(255 255 255 / 0.1); }
.carte-deal.bloque { box-shadow: inset 0 0 0 1px rgb(255 90 71 / 0.7); }
.carte-deal-haut { display: flex; align-items: center; gap: 8px; }
.carte-deal-marque { font: 800 15px/1.1 var(--titre); text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.carte-deal-montant { margin-left: auto; font: 700 14px/1 var(--titre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte-deal-qui, .carte-deal-action { font-size: 12.5px; color: var(--texte-2); }
.carte-deal-action { color: var(--texte-3); }

/* Ma semaine */
.groupe-jours { margin-bottom: 26px; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--filet); }
.item:last-child { border-bottom: 0; }
.item-date { font: 600 12px/1 var(--titre); color: var(--texte-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-detail { grid-column: 2 / 4; font-size: 12.5px; color: var(--texte-3); }
.item button.ligne-titre { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.item button.ligne-titre:hover { text-decoration: underline; }
.case { width: 20px; height: 20px; accent-color: #fff; cursor: pointer; }

/* Tableaux */
.tableau-zone { overflow-x: auto; padding: 6px 20px; }
.tableau { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.tableau th { text-align: left; font: 600 10.5px/1 var(--titre); letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-3); padding: 14px 10px 12px 0; border-bottom: 1px solid var(--filet); white-space: nowrap; }
.tableau td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .num { text-align: right; white-space: nowrap; }
.tableau .etat { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Boutons et formulaires */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 11px/1 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--filet-fort); transition: background 200ms, color 200ms; white-space: nowrap; }
.btn:hover { background: #fff; color: #000; box-shadow: none; }
.btn.plein { background: #fff; color: #000; }
.btn.plein:hover { background: rgb(235 235 235); }
.btn.danger { color: var(--alerte); }
.btn.danger:hover { background: var(--alerte); color: #000; }
.btn[disabled] { opacity: 0.5; cursor: wait; }

dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r); color: var(--texte); background: var(--g-fill-dense); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 0 0 1px var(--filet-fort), inset 0 1px 0 rgb(255 255 255 / 0.3), 0 40px 80px -20px rgb(0 0 0 / 0.9); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / 0.6); }
.dialogue { padding: 24px; }
.dialogue h2 { margin: 0 0 6px; font: 900 28px/1 var(--titre); text-transform: uppercase; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dialogue .aide { margin: 0 0 18px; font-size: 13px; color: var(--texte-3); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label, .champ .lib { font: 600 10.5px/1 var(--titre); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-3); }
.champ input:not([type="checkbox"]), .champ select, .champ textarea, .connexion input {
  width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: rgb(0 0 0 / 0.35); box-shadow: inset 0 0 0 1px var(--filet-fort); color: var(--texte); font-size: 14px; outline: none;
}
.champ textarea { min-height: 84px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .connexion input:focus { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7); }
.champ.coche { flex-direction: row; align-items: center; gap: 10px; }
.champ.coche label { text-transform: none; letter-spacing: 0; font: 500 14px/1.3 var(--corps); color: var(--texte-2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px !important; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.actions .danger { margin-right: auto; }
.message { margin: 12px 0 0; font-size: 13px; color: var(--alerte); min-height: 1em; }
.rappel { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--texte-2); box-shadow: inset 0 0 0 1px var(--filet); }
.sous-liste { margin-top: 20px; border-top: 1px solid var(--filet); padding-top: 14px; }
.sous-liste h3 { margin: 0 0 8px; font: 800 13px/1 var(--titre); letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; }
.sous-liste h3 .btn { margin-left: auto; }

/* Connexion */
.connexion { width: min(420px, calc(100% - 2 * var(--gouttiere))); margin: 14vh auto 0; padding: 32px 28px 26px; }
.connexion img { width: 132px; display: block; margin-bottom: 26px; }
.connexion h1 { margin: 0 0 22px; font: 900 40px/0.92 var(--titre); text-transform: uppercase; letter-spacing: -0.03em; }
.connexion label { display: block; margin: 14px 0 6px; font: 600 10.5px/1 var(--titre); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-3); }
.connexion .btn { margin-top: 22px; width: 100%; justify-content: center; padding: 13px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; font-size: 13.5px; font-weight: 500; box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.8); }
.toast.erreur { background: var(--alerte); }
.pied { margin: 40px 0 0; font-size: 12px; color: var(--texte-3); }

@media (prefers-reduced-motion: no-preference) {
  .vue .tete { animation: monte 600ms var(--ease) both; }
  .vue .trois > *, .vue .chiffres > *, .vue .tuiles > * { animation: monte 600ms var(--ease) both; animation-delay: 80ms; }
}
@keyframes monte { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* Téléphone */
@media (max-width: 960px) {
  .trois { grid-template-columns: 1fr; }
  .colonne { min-height: 0; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .barre { top: 10px; margin-top: 10px; padding: 8px 8px 8px 16px; gap: 10px; }
  .marque img { width: 92px; }
  .marque-pole { display: none; }

  /* Les onglets descendent en bas de l'écran, à portée du pouce */
  .onglets {
    position: fixed; left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; padding: 5px;
    background: rgb(14 14 16 / 0.8); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    box-shadow: inset 0 0 0 1px var(--filet-fort), inset 0 1px 0 rgb(255 255 255 / 0.3), 0 20px 40px -12px rgb(0 0 0 / 0.8);
  }
  .onglets a { padding: 11px 12px; font-size: 11px; letter-spacing: 0.08em; }
  main { padding-bottom: 140px; }
  .champs { grid-template-columns: 1fr; }
  .pipeline { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .etape { min-height: 0; }
  .kpi .chiffre { font-size: 32px; }
  .item { padding: 12px 10px; }
  .tableau-zone { padding: 4px 12px; }
}
.rouge { color: var(--alerte); }
@media (max-width: 820px) {
  /* Le flou d'arrière-plan de la barre ferait d'elle le repère des onglets fixes : on le retire ici */
  .barre.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(14 14 16 / 0.9); }
}
