/* Support City : univers néon d'Adrien (coucher de soleil, palmiers, HUD). Chargé après style.css, actif seulement avec html[data-univers="vice"].
   Le guichet de Laurence et Helin retire cet attribut et garde le style 7G. Aucun élément de jeu existant : polices libres, dessins maison. */
@font-face { font-family: "Anton"; src: url(/polices/anton.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/polices/barlow-condensed-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/polices/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root[data-univers="vice"] {
  --bg: #12072B; --surface: rgba(23,10,52,.88); --surface2: rgba(70,28,120,.5); --ink: #FFF4F8; --ink-soft: #EBD8F3; --muted: #C4AEDA;
  --line: rgba(255,255,255,.14); --line-2: rgba(255,110,185,.5); --accent: #FF3D9A; --accent-doux: rgba(255,61,154,.22); --sur-accent: #1A0628;
  --vert: #3DF5B0; --vert-doux: rgba(61,245,176,.16); --rouge: #FF6B70; --rouge-doux: rgba(255,70,80,.2); --orange: #FFB347; --orange-doux: rgba(255,160,50,.18);
  --mark: #FFE14D; --mark-ink: #201000; --cyan: #5FF0F5; --degrade: linear-gradient(95deg, #FF2E88 0%, #FF6A4D 55%, #FFB03A 100%);
  --shadow: 0 12px 30px -18px rgba(0,0,0,.9); --r: 6px; --f: "Barlow Condensed", "Segoe UI", system-ui, sans-serif; --titre: "Anton", Impact, "Arial Narrow", sans-serif; color-scheme: dark;
}
:root[data-univers="vice"] { background: #12072B; }
[data-univers="vice"] body { background: transparent; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: .01em; }

/* Le décor : ciel, soleil rayé, palmiers. Fixe, derrière tout. */
[data-univers="vice"] body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, #140830 0%, #2F0F66 34%, #8A1E90 60%, #F0307F 80%, #FF9A3C 100%); }
[data-univers="vice"] body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 500'%3E%3Cg fill='%230D0420'%3E%3Cpath d='M150 500C146 400 160 300 185 205l12 3C176 300 168 400 176 500z'/%3E%3Cpath d='M190 205C150 150 90 140 30 175 85 165 140 175 190 212z'/%3E%3Cpath d='M190 205C170 130 110 90 50 90 110 110 160 150 186 212z'/%3E%3Cpath d='M190 205C195 130 235 80 290 70 245 105 215 150 197 210z'/%3E%3Cpath d='M190 205C235 165 285 170 300 215 265 190 235 195 195 214z'/%3E%3Cpath d='M190 205C230 215 265 260 265 310 245 270 220 240 188 214z'/%3E%3Cpath d='M190 205C150 215 110 260 105 315 130 275 155 240 192 214z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 500'%3E%3Cg fill='%230D0420' transform='matrix(-1 0 0 1 300 0)'%3E%3Cpath d='M150 500C146 400 160 300 185 205l12 3C176 300 168 400 176 500z'/%3E%3Cpath d='M190 205C150 150 90 140 30 175 85 165 140 175 190 212z'/%3E%3Cpath d='M190 205C170 130 110 90 50 90 110 110 160 150 186 212z'/%3E%3Cpath d='M190 205C195 130 235 80 290 70 245 105 215 150 197 210z'/%3E%3Cpath d='M190 205C235 165 285 170 300 215 265 190 235 195 195 214z'/%3E%3Cpath d='M190 205C230 215 265 260 265 310 245 270 220 240 188 214z'/%3E%3Cpath d='M190 205C150 215 110 260 105 315 130 275 155 240 192 214z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFE14D'/%3E%3Cstop offset='.6' stop-color='%23FF7A45'/%3E%3Cstop offset='1' stop-color='%23FF2E88'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='400' height='400' fill='white'/%3E%3Cg fill='black'%3E%3Crect y='225' width='400' height='7'/%3E%3Crect y='255' width='400' height='10'/%3E%3Crect y='288' width='400' height='13'/%3E%3Crect y='324' width='400' height='16'/%3E%3Crect y='362' width='400' height='20'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='200' cy='200' r='195' fill='url(%23g)' mask='url(%23m)'/%3E%3C/svg%3E");
  background-size: min(34vw, 330px) auto, min(26vw, 250px) auto, min(62vw, 520px) auto;
  background-position: left -30px bottom -10px, right -20px bottom -10px, center bottom -60px;
}

/* Titres */
[data-univers="vice"] h1 { font: 400 clamp(30px, 5vw, 44px)/1.08 var(--titre); text-transform: uppercase; letter-spacing: .015em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
[data-univers="vice"] h2 { font: 400 20px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .03em; color: var(--cyan); }
[data-univers="vice"] a, [data-univers="vice"] .lien { color: var(--cyan); }
.sous-titre { display: none; }
[data-univers="vice"] .sous-titre { display: block; width: 100%; margin-top: -8px; color: var(--ink-soft); font-size: 16px; }
[data-univers="vice"] .petit { font-size: 15px; }

/* En-tête et HUD */
[data-univers="vice"] .entete { background: rgba(12,4,30,.92); border-bottom: 2px solid transparent; border-image: var(--degrade) 1; }
[data-univers="vice"] .entete img { border-radius: 4px; }
[data-univers="vice"] .marque { font: 400 23px/1 var(--titre); text-transform: uppercase; letter-spacing: .03em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud { display: none; }
[data-univers="vice"] .hud { display: flex; align-items: center; gap: 14px; margin-left: auto; white-space: nowrap; }
[data-univers="vice"] .entete .moi { margin-left: 8px; }
[data-univers="vice"] .etoiles { font-size: 19px; letter-spacing: 1px; color: rgba(255,255,255,.22); line-height: 1; }
[data-univers="vice"] .etoiles b { color: #FFE14D; font-weight: 400; text-shadow: 0 0 9px rgba(255,225,77,.75); }
[data-univers="vice"] .cash { font: 400 22px/1 var(--titre); letter-spacing: .03em; color: var(--vert); text-shadow: 0 0 10px rgba(61,245,176,.5), 0 2px 0 #000; }
[data-univers="vice"] .onglet { font: 400 16px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 9px 16px; border-radius: 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
[data-univers="vice"] .onglet:hover { background: rgba(255,255,255,.1); color: #fff; }
[data-univers="vice"] .onglet.actif { background: var(--degrade); color: var(--sur-accent); }

/* Surfaces */
[data-univers="vice"] .carte, [data-univers="vice"] .demande, [data-univers="vice"] .resultat, [data-univers="vice"] .vide { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
[data-univers="vice"] .demande { border-left: 4px solid var(--accent); }
[data-univers="vice"] .demande:hover { background: rgba(60,22,110,.92); border-color: var(--line-2); border-left-color: var(--mark); }
[data-univers="vice"] .demande .titre { font-weight: 700; font-size: 18px; }
[data-univers="vice"] .demande .num { font-family: var(--titre); color: var(--cyan); letter-spacing: .04em; font-weight: 400; }
[data-univers="vice"] .demande.finie { border-left-color: var(--vert); }
[data-univers="vice"] .section-titre { font: 400 22px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
[data-univers="vice"] .section-titre.alerte { color: var(--mark); }
[data-univers="vice"] .section-titre { display: flex; width: fit-content; max-width: 100%; padding: 2px 12px; background: rgba(12,4,30,.86); }
[data-univers="vice"] .agenda-jour { width: fit-content; padding: 1px 8px; background: rgba(12,4,30,.86); }
[data-univers="vice"] .section-titre .muet { font-family: var(--titre); color: inherit; opacity: .8; font-size: 18px; }
[data-univers="vice"] .vide { background: var(--surface); color: var(--ink-soft); border-color: var(--line-2); }
[data-univers="vice"] .tag { border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
[data-univers="vice"] .tag.bleu { background: rgba(95,240,245,.16); color: var(--cyan); }
[data-univers="vice"] .info { background: rgba(95,240,245,.14); }
[data-univers="vice"] .retour { background: var(--vert-doux); border-left: 4px solid var(--vert); }
[data-univers="vice"] .erreur { color: #FFC2C4; border-left: 4px solid var(--rouge); }
[data-univers="vice"] .message { background: rgba(70,28,120,.6); }
[data-univers="vice"] .message.note { background: rgba(255,160,50,.16); }
[data-univers="vice"] .proposition { border-color: var(--cyan); }

/* Boutons et champs */
[data-univers="vice"] .bouton { border-radius: 0; font: 400 15px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.08); border-color: transparent; color: #fff; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding: 9px 17px; }
[data-univers="vice"] .bouton:hover { background: rgba(255,255,255,.2); }
[data-univers="vice"] .bouton.plein, [data-univers="vice"] .bouton.plein:hover { background: var(--degrade); color: var(--sur-accent); }
[data-univers="vice"] .bouton.accompli, [data-univers="vice"] .bouton.accompli:hover { background: var(--vert); color: #04261A; }
[data-univers="vice"] .bouton.danger { background: var(--rouge-doux); color: #FFC2C4; }
[data-univers="vice"] .bouton:focus-visible, [data-univers="vice"] .onglet:focus-visible { outline: none; filter: brightness(1.25) drop-shadow(0 0 0 #fff); box-shadow: inset 0 0 0 2px #fff; }
[data-univers="vice"] input[type=text], [data-univers="vice"] input[type=password], [data-univers="vice"] input[type=date], [data-univers="vice"] input[type=time], [data-univers="vice"] input[type=number], [data-univers="vice"] input[type=search], [data-univers="vice"] select, [data-univers="vice"] textarea { background: rgba(8,2,22,.75); border-radius: 3px; border-color: var(--line-2); }
[data-univers="vice"] ::placeholder { color: var(--muted); opacity: 1; }
[data-univers="vice"] select option { background: #1C0C3F; color: #fff; }
[data-univers="vice"] :focus-visible { outline-color: var(--cyan); }
[data-univers="vice"] .filtre { border-radius: 2px; background: rgba(23,10,52,.85); }
[data-univers="vice"] .filtre.actif { background: var(--degrade); border-color: transparent; font-weight: 700; }
[data-univers="vice"] .zone-depot { border-color: var(--line-2); background: rgba(23,10,52,.75); }

.pleine-largeur { width: 100%; justify-content: center; margin-bottom: 12px; }
/* Perso */
[data-univers="vice"] .demande.perso { border-left-color: var(--cyan); }
[data-univers="vice"] .tag.marque-perso { background: rgba(95,240,245,.2); color: var(--cyan); border-color: transparent; }
[data-univers="vice"] .saisie select.choix-espace { width: auto; flex: none; margin: 0; }
/* Hors IA : impossible à rater */
[data-univers="vice"] .demande.hors-ia, [data-univers="vice"] .demande.hors-ia:hover { border: 2px solid var(--mark); border-left-width: 6px; background: rgba(70,52,4,.9); }
[data-univers="vice"] .tag.marque-hors-ia { background: var(--mark); color: var(--mark-ink); border-color: transparent; }
[data-univers="vice"] .bandeau-hors-ia { padding: 10px 12px; margin-top: 8px; background: var(--mark); color: var(--mark-ink); font-weight: 700; }
/* Tableau de bord des missions */
.stats { display: none; }
[data-univers="vice"] .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
[data-univers="vice"] .stat { background: var(--surface); border-bottom: 3px solid var(--accent); padding: 9px 13px; }
[data-univers="vice"] .stat b { display: block; font: 400 34px/1.05 var(--titre); color: #fff; }
[data-univers="vice"] .stat.chaud { border-bottom-color: var(--mark); }
[data-univers="vice"] .stat.chaud b { color: var(--mark); }
[data-univers="vice"] .stat.neuf { border-bottom-color: var(--cyan); }

/* Calendrier */
[data-univers="vice"] .grille { background: rgba(255,255,255,.14); border-radius: 4px; }
[data-univers="vice"] .grille .jour-nom { background: #1C0C3F; font: 400 15px/1.2 var(--titre); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
[data-univers="vice"] .case-jour { background: rgba(20,8,46,.92); }
[data-univers="vice"] .case-jour.autre { background: rgba(38,16,78,.82); }
[data-univers="vice"] .case-jour.ajd { box-shadow: inset 0 0 0 2px var(--accent); }
[data-univers="vice"] .case-jour.ajd .num-jour { background: var(--degrade); }
[data-univers="vice"] .evt { color: #fff; background: rgba(95,240,245,.2); border-radius: 2px; font-size: 14px; font-weight: 500; }
[data-univers="vice"] .evt.urgente { background: rgba(255,50,110,.5); color: #fff; }
[data-univers="vice"] .evt.haute { background: rgba(255,160,50,.34); color: #fff; }
[data-univers="vice"] .agenda-jour { color: #fff; font-size: 16px; text-shadow: 0 1px 0 #000; }

/* Connexion */
[data-univers="vice"] .connexion form { background: rgba(14,5,34,.9); border-radius: 0; border: 0; border-top: 3px solid var(--accent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-univers="vice"] .connexion img { display: none; }
[data-univers="vice"] .connexion h1 { font-size: 50px; }
[data-univers="vice"] .connexion p { color: var(--ink-soft); }

/* Chrono : dans le HUD et sur les cartes */
.demande-ligne { position: relative; }
.chrono-bt { position: absolute; top: 9px; right: 10px; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(8,2,22,.7); color: var(--vert); cursor: pointer; font-size: 13px; line-height: 1; }
.chrono-bt:hover { background: var(--vert); color: #04261A; }
.chrono-bt.marche { background: var(--rouge); color: #fff; border-color: transparent; }
.demande-ligne .demande { padding-right: 56px; }
[data-univers="vice"] .hud-chrono { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--vert); background: rgba(61,245,176,.12); color: var(--vert); cursor: pointer; font: 400 17px/1 var(--titre); letter-spacing: .03em; }
[data-univers="vice"] .hud-chrono strong { font-weight: 400; font-variant-numeric: tabular-nums; }
[data-univers="vice"] .hud-chrono:hover { background: var(--vert); color: #04261A; }
[data-univers="vice"] .hud-chrono-d { font-size: 13px; opacity: .85; }
.bouton.chrono-marche { background: var(--rouge-doux); color: var(--rouge); }
.ligne-temps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.ligne-temps input { width: 92px; margin: 0; }
.temps-libre { display: flex; gap: 6px; align-items: center; }
.temps-libre input { width: 92px; margin: 0; }
[data-univers="vice"] .demande-temps { border: 1px solid var(--vert); }

/* Fiche */
.actions-tel { display: none; }
@media (max-width: 860px) { .actions-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; } .actions-tel .bouton { justify-content: center; } }
.titre-bloc { margin-top: 18px; }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tache-projet { margin-top: 10px; display: grid; gap: 6px; }
.tache-projet input { margin: 0; }
.infos-fiche { margin-top: 14px; }
.lien.bloc { display: block; margin-bottom: 6px; }
.filtre-projet { max-width: 320px; }
[data-univers="vice"] .tag.projet { background: rgba(255,225,77,.14); color: var(--mark); }

/* Projets et récurrences */
.carte-projet .jauge { margin: 8px 0; }
[data-univers="vice"] .jauge { background: rgba(255,255,255,.1); border: 0; border-radius: 0; height: 8px; }
[data-univers="vice"] .jauge div { background: var(--degrade); }
[data-univers="vice"] .jauge div.plein { background: var(--rouge); }
.ligne-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.ligne-rec.eteinte { opacity: .6; }
[data-univers="vice"] .stats-projet { margin: 10px 0 14px; }
[data-univers="vice"] .stats-projet .stat { background: rgba(8,2,22,.55); }
[data-univers="vice"] .saisie input[type=date] { width: auto; flex: none; }

/* Agenda : ce qui vient du Suivi se voit tout de suite */
[data-univers="vice"] .evt.suivi { background: transparent; border: 1px dashed var(--cyan); color: var(--cyan); }
[data-univers="vice"] .passage { display: block; width: 100%; text-align: left; margin-bottom: 7px; padding: 9px 12px; background: var(--surface); border: 1px dashed var(--cyan); color: var(--cyan); cursor: pointer; }
.legende { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 2px 8px; background: rgba(12,4,30,.8); color: var(--cyan); }
.pastille-suivi { width: 12px; height: 12px; border: 1px dashed var(--cyan); display: inline-block; }

/* Affaires */
.infos-affaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px; }

/* Réputation */
[data-univers="vice"] .rang { border-top: 3px solid var(--accent); padding: 20px; }
[data-univers="vice"] .rang h1 { font-size: clamp(38px, 7vw, 66px); margin: 4px 0 12px; }
[data-univers="vice"] .stats-rep { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.succes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 14px; }
.un-succes { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); opacity: .72; }
.un-succes.atteint { opacity: 1; border-color: var(--mark); }
.medaille { font-size: 24px; line-height: 1; color: var(--muted); }
.un-succes.atteint .medaille { color: var(--mark); text-shadow: 0 0 10px rgba(255,225,77,.7); }

/* La récompense */
.mission-ok { position: fixed; left: 0; right: 0; top: 34%; z-index: 50; padding: 22px 16px; text-align: center; background: rgba(5,1,16,.86); pointer-events: none; animation: mission-ok 2.4s ease-out both; }
.mission-ok strong { display: block; font: 400 clamp(38px, 8vw, 78px)/1.05 var(--titre, Impact); text-transform: uppercase; letter-spacing: .02em; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mission-ok span { font: 400 clamp(22px, 4vw, 32px)/1.2 var(--titre, Impact); color: var(--vert); }
@keyframes mission-ok { 0% { opacity: 0; transform: scaleY(.3); } 10% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 700px) {
  [data-univers="vice"] .entete .moi .petit { display: none; }
  [data-univers="vice"] .marque { display: none; }
  [data-univers="vice"] .hud { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  [data-univers="vice"] .hud-chrono { font-size: 14px; padding: 4px 7px; }
  [data-univers="vice"] .hud-chrono-d { display: none; }
  [data-univers="vice"] .evt.suivi { background: var(--cyan); border: 0; }
  [data-univers="vice"] .saisie input[type=date] { width: 100%; }
  [data-univers="vice"] .saisie select.choix-espace { width: 100%; }
  [data-univers="vice"] .etoiles { font-size: 16px; letter-spacing: 0; }
  [data-univers="vice"] .cash { font-size: 18px; }
  [data-univers="vice"] .evt { font-size: 0; }
  [data-univers="vice"] .evt, [data-univers="vice"] .evt.haute { background: var(--mark); }
  [data-univers="vice"] .evt.urgente { background: #FF2E88; }
  [data-univers="vice"] .stat { padding: 7px 9px; font-size: 15px; }
  [data-univers="vice"] .stat b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .mission-ok { animation-duration: .01s; animation-delay: 2.2s; animation-fill-mode: backwards; opacity: 1; } }
