/* Portail Mobility Corner : couche de finition (chargee apres style.css, icons.css et responsive.css).
   Une rampe de gris neutres, un seul accent tire du logo, des chiffres en police a chasse fixe, aucun degrade ni halo.
   Polices IBM Plex (licence OFL) servies par le portail : aucun appel externe, donc rien a soumettre au consentement. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* ---------- jetons ---------- */
:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --bg: #0f1114; --bg-grad-a: #0f1114; --bg-grad-b: #0f1114;
  --card: #16181c; --card-hover: #1c1f24; --raised: #1b1e23;
  --line: #ffffff17; --line-strong: #ffffff2e; --divider: #ffffff0f; --row-hover: #ffffff08;
  --text: #e9eaec; --muted: #9a9ea6; --faint: #6f737b;
  --blue: #77bfde; --blue-dark: #1b2a33; --accent-ink: #0b1a22;
  --green: #5fc79a; --orange: #e0a85b; --red: #ec6f6f;
  --input-bg: #121418; --header-bg: #0f1114;
  --shadow-pop: 0 12px 32px #00000080;
  --mk1: #59c08c; --mk2: #77bfde; --mk3: #f3e68e;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6f7; --bg-grad-a: #f5f6f7; --bg-grad-b: #f5f6f7;
  --card: #ffffff; --card-hover: #f0f1f3; --raised: #ffffff;
  --line: #0000001a; --line-strong: #00000033; --divider: #0000000f; --row-hover: #00000006;
  --text: #17191c; --muted: #5b6068; --faint: #8a8f97;
  --blue: #17719a; --blue-dark: #e1eef5; --accent-ink: #ffffff;
  --green: #1d7f58; --orange: #9a5b0b; --red: #bd3636;
  --input-bg: #ffffff; --header-bg: #f5f6f7;
  --shadow-pop: 0 12px 32px #00000026;
  --mk1: #2f9e6c; --mk2: #3a8fb4; --mk3: #cfae28;
  color-scheme: light;
}

/* ---------- base ---------- */
body.pro {
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 400;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scrollbar-color: var(--line-strong) transparent;
}
body.pro a { color: var(--blue); text-underline-offset: 3px; }
body.pro a:hover { text-decoration-thickness: 1px; }
body.pro a.bento-tile, body.pro a.card-link, body.pro a.cov-meta, body.pro a.tool-card { color: inherit; }
body.pro h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 6px; }
body.pro h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; }
body.pro h3, body.pro .card h3 { font-weight: 500; font-size: 1rem; }
body.pro p.sub { color: var(--muted); margin: 0 0 24px; }
body.pro main { max-width: 1240px; padding: 32px 24px 72px; }
body.pro ::selection { background: color-mix(in srgb, var(--blue) 35%, transparent); }
body.pro code, body.pro pre, body.pro .mono { font-family: var(--font-mono); }
body.pro :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- en-tete ---------- */
body.pro header.topbar {
  height: 56px; padding: 0 24px; gap: 20px; flex-wrap: nowrap; align-items: stretch;
  background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: none;
}
body.pro header.topbar .brand { align-items: center; gap: 10px; color: var(--text); }
.mc-brand { display: inline-flex; align-items: center; gap: 10px; }
.mc-word { font-weight: 600; letter-spacing: 0; }
.mc-mark { display: block; flex: none; overflow: visible; }
.mc-mark rect { fill: none; stroke-width: 1.5; }
.mc-mark .m1 { stroke: var(--mk1); } .mc-mark .m2 { stroke: var(--mk2); } .mc-mark .m3 { stroke: var(--mk3); }
body.pro header.topbar .search-form { align-self: center; flex: 1 1 0; max-width: 380px; min-width: 140px; margin: 0 auto; }
body.pro header.topbar .search-form input { display: block; height: 34px; margin: 0; padding: 0 12px; line-height: 32px; font-size: .88rem; background: var(--input-bg); }
body.pro header.topbar nav { align-items: stretch; margin-left: 0; gap: 4px; }
body.pro .nav-links { gap: 2px; align-items: stretch; }
body.pro .nav-links a, body.pro .nav-menu summary {
  display: flex; align-items: center; padding: 0 12px; border-radius: 0; font-size: .9rem; font-weight: 500;
  color: var(--muted); background: transparent; box-shadow: none; position: relative;
  transition: color .15s var(--ease);
}
body.pro .nav-links a:hover, body.pro .nav-menu summary:hover, body.pro .nav-menu[open] summary { color: var(--text); background: transparent; }
body.pro .nav-links a.active, body.pro .nav-menu.has-active summary { color: var(--text); background: transparent; box-shadow: none; }
body.pro .nav-links a.active::before, body.pro .nav-menu.has-active summary::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--blue);
}
body.pro .nav-menu summary::after { content: ""; width: 5px; height: 5px; margin: -2px 0 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); font-size: 0; }
body.pro .nav-menu { display: flex; align-items: stretch; }
body.pro .nav-menu-list, body.pro .notif-panel {
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); top: calc(100% + 6px);
}
body.pro .nav-menu-list { padding: 4px; }
body.pro .nav-menu-list a { color: var(--muted); font-size: .88rem; border-radius: 6px; }
body.pro .nav-menu-list a:hover, body.pro .nav-menu-list a.active { background: var(--card-hover); color: var(--text); }
body.pro .nav-tools { align-self: center; gap: 6px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
body.pro .nav-user { font-size: .85rem; color: var(--muted); }
body.pro .nav-user small { color: var(--faint); font-size: .78rem; }
body.pro .notif-bell.has-unread { animation: none; }
body.pro .notif-badge { background: var(--blue); color: var(--accent-ink); font-weight: 600; font-family: var(--font-mono); font-size: .62rem; top: -5px; right: -5px; }

/* ---------- boutons ---------- */
body.pro .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  background: var(--text); color: var(--bg); border: 1px solid transparent; border-radius: 8px;
  font: 500 .88rem/1 var(--font-sans); letter-spacing: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), opacity .15s var(--ease);
}
body.pro .btn:hover { filter: none; opacity: .88; }
body.pro .btn:active { transform: scale(.98); }
body.pro .btn.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
body.pro .btn.secondary:hover { background: var(--card-hover); opacity: 1; }
body.pro .btn.danger { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
body.pro .btn.danger:hover { background: color-mix(in srgb, var(--red) 22%, transparent); opacity: 1; }
body.pro .btn.small { height: 28px; padding: 0 10px; font-size: .8rem; border-radius: 7px; }
body.pro .btn[disabled], body.pro .btn:disabled { opacity: .45; cursor: not-allowed; }
body.pro .btn .ic { width: 15px; height: 15px; }
body.pro .nav-toggle { display: none; }
body.pro .btn.ic-solo, body.pro .nav-tools .btn.small { min-width: 34px; padding: 0 8px; height: 34px; }

/* ---------- champs ---------- */
body.pro input[type=text], body.pro input[type=password], body.pro input[type=search], body.pro input[type=email],
body.pro input[type=number], body.pro input[type=file], body.pro input[type=datetime-local], body.pro input[type=date],
body.pro input[type=time], body.pro input[type=url], body.pro input[type=tel], body.pro select, body.pro textarea {
  background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px;
  padding: 0 12px; height: 36px; font: 400 .92rem/1.2 var(--font-sans);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
body.pro textarea { height: auto; padding: 9px 12px; line-height: 1.5; }
body.pro input[type=file] { height: auto; padding: 5px 8px; color: var(--muted); font-size: .86rem; }
body.pro input[type=file]::file-selector-button { height: 26px; padding: 0 10px; margin-right: 10px; background: var(--card-hover); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; font: 500 .82rem var(--font-sans); cursor: pointer; transition: background-color .15s var(--ease); }
body.pro input[type=file]::file-selector-button:hover { background: var(--raised); }body.pro input::placeholder, body.pro textarea::placeholder { color: var(--faint); }
body.pro input:hover, body.pro select:hover, body.pro textarea:hover { border-color: color-mix(in srgb, var(--text) 38%, transparent); }
body.pro input:focus, body.pro select:focus, body.pro textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
body.pro input[type=checkbox], body.pro input[type=radio] { accent-color: var(--blue); }
body.pro label { font-size: .85rem; }

/* ---------- cartes ---------- */
body.pro .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: none; }
body.pro a.card-link .card { transition: border-color .15s var(--ease), background-color .15s var(--ease); }
body.pro a.card-link:hover .card { border-color: var(--line-strong); background: var(--card-hover); }
body.pro .card .meta { color: var(--muted); font-size: .84rem; }
body.pro .project-cover-placeholder { background: var(--card-hover); color: var(--faint); font-weight: 500; letter-spacing: 0; }
body.pro .project-cover { border-radius: 0; }
body.pro .project-desc .read-more { font-weight: 500; }
body.pro .grid { gap: 16px; }
body.pro .grid > a.card-link { display: flex; } body.pro .grid > a.card-link .card { flex: 1; width: 100%; }


/* ---------- pastilles de categorie : neutres, un point de couleur ---------- */
body.pro .badge, body.pro .badge.servante, body.pro .badge:not(.servante):not(.mcmob), body.pro .badge.mcmob, body.pro .badge.mws-cuve:not(.servante):not(.mcmob) {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px;
  background: var(--card-hover); color: var(--muted); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
body.pro .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
body.pro .badge.servante::before { background: var(--blue); }
body.pro .badge.mcmob::before { background: var(--green); }
body.pro .badge.mws-cuve:not(.servante):not(.mcmob)::before { background: #5fb8b0; }
body.pro .badge:not(.servante):not(.mcmob):not(.mws-cuve)::before { background: var(--orange); }
body.pro .badge.cuve-on:not(.servante):not(.mcmob), body.pro .badge.cuve-off:not(.servante):not(.mcmob), body.pro .badge.cuve-warn:not(.servante):not(.mcmob) { background: var(--card-hover); border-color: var(--line); }
body.pro .badge.cuve-on:not(.servante):not(.mcmob) { color: var(--green); } body.pro .badge.cuve-on::before { background: var(--green); }
body.pro .badge.cuve-off:not(.servante):not(.mcmob) { color: var(--red); } body.pro .badge.cuve-off::before { background: var(--red); }
body.pro .badge.cuve-warn:not(.servante):not(.mcmob) { color: var(--orange); } body.pro .badge.cuve-warn::before { background: var(--orange); }
body.pro .ok, body.pro .bad, body.pro .warn { font-weight: 500; }

/* ---------- tableaux ---------- */
body.pro table th { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 12px; }
body.pro table td { padding: 10px 12px; border-bottom: 1px solid var(--divider); }
body.pro table tr:hover td { background: var(--row-hover); }

/* ---------- onglets, bascules ---------- */
body.pro .tabs { gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
body.pro .tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 14px; margin-bottom: -1px; color: var(--muted); font: 500 .9rem var(--font-sans); background: transparent; transition: color .15s var(--ease); }
body.pro .tabs button:hover { color: var(--text); }
body.pro .tabs button.active { background: transparent; color: var(--text); border-bottom-color: var(--blue); font-weight: 500; }
body.pro .view-toggle { border-color: var(--line-strong); border-radius: 8px; }
body.pro .view-toggle button { color: var(--muted); }
body.pro .view-toggle button.active { background: var(--card-hover); color: var(--text); }
body.pro .breadcrumbs { font-size: .86rem; }
body.pro .breadcrumbs a { color: var(--muted); }
body.pro .breadcrumbs a:hover { color: var(--text); }

/* ---------- messages, resultats ---------- */
body.pro .error-msg, body.pro .success-msg { border-radius: 8px; font-size: .88rem; }
body.pro .result-box { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 10px; }
body.pro .result-box .result-value { font-family: var(--font-mono); font-weight: 500; color: var(--blue); letter-spacing: -.01em; }
body.pro .verdict-badge { border-radius: 6px; font-weight: 500; }
body.pro .stat-row { border-bottom-color: var(--divider); }
body.pro .job-log, body.pro .code-viewer { background: var(--input-bg); color: var(--text); font-family: var(--font-mono); }
body.pro .code-line .line-content { color: var(--text); } body.pro .code-line .line-no { color: var(--faint); }

/* ---------- fenetres, panneaux, bulles ---------- */
body.pro .preview-modal-backdrop, body.pro .notif-popup-overlay, body.pro .docshare-overlay { background: #08090bb3; }
body.pro .preview-modal, body.pro .notif-popup, body.pro .docshare-modal, body.pro .chat-panel { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-pop); }
body.pro .notif-popup { animation: none; }
body.pro .notif-item.unread { border-left-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, transparent); }
body.pro .chat-bubble { background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); }
body.pro .chat-bubble:hover { filter: none; background: var(--card-hover); }
body.pro .chat-msg-user { background: var(--text); color: var(--bg); }
body.pro .chat-msg-assistant { background: var(--input-bg); }

/* ---------- accueil ---------- */
body.pro .hero-card { gap: 24px; }
body.pro .hero-card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
body.pro .hero-card p { color: var(--muted); font-size: .92rem; }
body.pro .bento { gap: 16px; grid-auto-rows: 124px; }
body.pro .bento-tile { border-radius: 12px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); box-shadow: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
body.pro .bento-tile:hover { transform: none; box-shadow: none; background: var(--card-hover); border-color: var(--line-strong); }
body.pro .bento-tile.accent { background: var(--card); color: var(--text); border: 1px solid var(--line); }
body.pro .bento-tile.accent:hover { background: var(--card-hover); border-color: var(--line-strong); }
body.pro .bento-top { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .85rem; color: var(--muted); opacity: 1; }
body.pro .bento-num { font-family: var(--font-mono); font-weight: 500; font-size: 2.1rem; letter-spacing: -.02em; }
body.pro .bento-num:not([data-count]) { font-family: var(--font-sans); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
body.pro .bento-tile.accent .bento-num { color: var(--blue); }
body.pro .bento-tile.accent .bento-label, body.pro .bento-label { color: var(--muted); font-size: .82rem; }
body.pro .bento-icon, body.pro .bento-tile.accent .bento-icon { opacity: .7; color: var(--faint); }
body.pro .bento-icon path, body.pro .bento-icon rect, body.pro .bento-icon circle { stroke: currentColor; }
body.pro .tool-chip { border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
body.pro .tool-chip:hover { transform: none; background: var(--card-hover); border-color: var(--line-strong); }
body.pro .tool-chip-cat { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .78rem; }
body.pro .tool-chip-title { font-weight: 500; color: var(--text); }

/* ---------- evenements (cartes produit) ---------- */
body.pro .evx-card { border-radius: 12px; transition: border-color .15s var(--ease); }
body.pro .evx-card:hover { border-color: var(--line-strong); box-shadow: none; }
body.pro .evx-chip, body.pro .evx-live, body.pro .evx-plain { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .76rem; }
body.pro .evx-panel { background: var(--input-bg); color: var(--text); border-color: var(--line); box-shadow: none; border-radius: 12px; }
body.pro .evx-panel .kpi > span, body.pro .evx-panel .tank-read .lbl { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .76rem; }
body.pro .evx-panel .pill { text-transform: none; letter-spacing: 0; font-weight: 500; }
body.pro .evx-view { animation: none; }

/* ---------- bandeau de consentement ---------- */
html[data-theme] body.pro .mcc, html[data-theme] body.pro .mcc-ov {
  --mcc-b: var(--raised); --mcc-t: var(--text); --mcc-m: var(--muted); --mcc-l: var(--line-strong); --mcc-a: var(--text); --mcc-ac: var(--bg); --mcc-h: var(--card-hover);
  font-family: var(--font-sans);
}
html[data-theme] body.pro .mcc { border-radius: 12px; box-shadow: var(--shadow-pop); padding: 16px 20px; }
html[data-theme] body.pro .mcc button, html[data-theme] body.pro .mcc-ov button { font-family: var(--font-sans); font-weight: 500; border-width: 1px; border-radius: 8px; min-height: 38px; min-width: 130px; }
html[data-theme] body.pro .mcc a, html[data-theme] body.pro .mcc-ov a { color: var(--blue); }
html[data-theme] body.pro .mcc-box { border-radius: 12px; box-shadow: var(--shadow-pop); }

/* ---------- connexion ---------- */
body.pro main:has(> .auth) { max-width: none; padding: 0; }
body.pro .auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
body.pro .auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 56px; background: var(--card); border-right: 1px solid var(--line); }
body.pro .auth-brand .mc-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; }
body.pro .auth-claim { font-size: 1.75rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 14px; max-width: 24ch; }
body.pro .auth-sub { color: var(--muted); margin: 0; max-width: 46ch; }
body.pro .auth-plot { width: 100%; max-width: 560px; height: auto; display: block; }
body.pro .auth-plot .g { stroke: var(--line); stroke-width: 1; fill: none; }
body.pro .auth-plot .ax { stroke: var(--line-strong); stroke-width: 1; fill: none; }
body.pro .auth-plot .u { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; }
body.pro .auth-plot .i { stroke: var(--muted); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-dasharray: 1 5; }
body.pro .auth-plot .ph { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
body.pro .auth-plot .dot { fill: var(--blue); } body.pro .auth-plot .ring { fill: none; stroke: var(--blue); stroke-opacity: .35; stroke-width: 1; }
body.pro .auth-plot text { font: 500 11px var(--font-mono); fill: var(--faint); }
body.pro .auth-plot text.tu { fill: var(--blue); }
body.pro .auth-foot { color: var(--faint); font-size: .8rem; }
body.pro .auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
body.pro .auth-card { width: 100%; max-width: 360px; }
body.pro .auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
body.pro .auth-card .field { margin-bottom: 16px; }
body.pro .auth-card label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .84rem; font-weight: 500; }
body.pro .auth-card .btn { width: 100%; height: 40px; margin-top: 4px; }
body.pro .auth-card .alt { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
body.pro .auth-card .m-brand { display: none; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 28px; }
@media (max-width: 900px) {
  body.pro .auth { grid-template-columns: 1fr; }
  body.pro .auth-brand { display: none; }
  body.pro .auth-panel { min-height: 100vh; padding: 32px 20px; align-items: flex-start; padding-top: 12vh; }
  body.pro .auth-card .m-brand { display: flex; }
}
/* pages d'authentification secondaires (oubli, reinitialisation, invitation) */
body.pro .login-wrap { flex-direction: column; gap: 0; }
body.pro .login-card { width: 360px; max-width: calc(100vw - 32px); }
body.pro .login-card .mc-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; margin-bottom: 18px; }
body.pro .login-card h1 { font-size: 1.35rem; }
body.pro .login-card .field { margin-bottom: 14px; }
body.pro .login-card label { color: var(--muted); font-size: .84rem; font-weight: 500; }

/* ---------- marque : nom en deux couleurs et phrase juste dessous ---------- */
body.pro header.topbar .brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
body.pro header.topbar .brand-name { font-weight: 600; font-size: 1rem; letter-spacing: 0; white-space: nowrap; }
body.pro header.topbar .brand-name span { color: var(--blue); }
body.pro header.topbar .brand-dept { font-size: .7rem; font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap; line-height: 1.22; }

/* ---------- accueil : tuile Projets (couvertures qui se fondent l'une dans l'autre) ---------- */
body.pro .bento-tile.cov { padding: 0; justify-content: flex-start; gap: 0; }
body.pro .cov-stage { position: relative; flex: 0 0 62%; overflow: hidden; background: var(--card-hover); border-bottom: 1px solid var(--line); }
/* Les couvertures sont empilees : celles qui ne sont pas a l'ecran doivent etre inertes (sinon la derniere de la pile recoit tous les clics). */
body.pro .cov-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .9s var(--ease), visibility 0s linear .9s; color: #fff; text-decoration: none; }
body.pro .cov-slide.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s var(--ease); }
body.pro .cov-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.pro .cov-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: .82rem; font-weight: 500; background: linear-gradient(to top, #000000a6, #00000000); }
body.pro .cov-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; z-index: 2; }
body.pro .cov-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff70; cursor: pointer; box-shadow: 0 0 0 4px transparent; transition: background-color .3s var(--ease); }
body.pro .cov-dots i.on { background: #fff; }
body.pro .cov-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 16px; color: inherit; text-decoration: none; }
body.pro .cov-meta .bento-num { display: block; }
body.pro .cov-meta .bento-label { display: block; }

/* ---------- accueil : selection d'outils (quatre a la fois, qui change) ---------- */
body.pro .tools-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
body.pro .tools-stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 178px; transition: opacity .26s var(--ease), transform .26s var(--ease); }
body.pro .tools-stage.out { opacity: 0; transform: translateY(-6px); }
body.pro .tools-stage.in .tool-card { animation: toolin .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes toolin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.pro .tool-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
body.pro .tool-card:hover { border-color: var(--line-strong); background: var(--card-hover); }
body.pro .tool-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.pro .tool-card-cat { font-size: .76rem; font-weight: 500; color: var(--muted); }
body.pro .tool-card-no { font: 400 .72rem var(--font-mono); color: var(--faint); }
body.pro .tool-card-title { font-size: .95rem; font-weight: 600; line-height: 1.3; }
body.pro .tool-card-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.45; }
body.pro .tool-card-go { margin-top: auto; padding-top: 4px; font-size: .82rem; font-weight: 500; color: var(--blue); }
body.pro .tool-card-go i { display: inline-block; font-style: normal; transition: transform .15s var(--ease); }
body.pro .tool-card:hover .tool-card-go i { transform: translateX(3px); }
body.pro .tools-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
body.pro .tools-bar { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
body.pro .tools-bar i { display: block; width: 0; height: 100%; background: var(--blue); }
body.pro .tools-bar i.run { animation: toolsbar 7s linear forwards; }
@keyframes toolsbar { from { width: 0; } to { width: 100%; } }
body.pro .tools-dots { display: flex; gap: 6px; }
body.pro .td { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; box-shadow: 0 0 0 6px transparent; transition: background-color .2s var(--ease); }
body.pro .td.on { background: var(--text); }
@media (max-width: 1000px) { body.pro .tools-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { body.pro .tools-stage { grid-template-columns: 1fr; } }
/* ---------- accueil : blocs differencies ---------- */
body.pro .hero-row { gap: 16px; }
body.pro .hero-a { position: relative; border-radius: 16px; border-left: 3px solid var(--blue); }
body.pro .hero-a h2 { font-size: 1.32rem; letter-spacing: -.012em; }
body.pro .hero-a p { font-size: .97rem; line-height: 1.65; }
body.pro .hero-b { position: relative; overflow: hidden; border-radius: 24px; background: var(--text); color: var(--bg); border-color: transparent; }
body.pro .hero-b h2 { color: var(--bg); font-size: 1.12rem; }
body.pro .hero-b p { color: color-mix(in srgb, var(--bg) 74%, transparent); }
body.pro .hero-b::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 92px; height: 80px; background: currentColor; opacity: .1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.5 30'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='1' y='1.5' width='8.2' height='28'/%3E%3Crect x='13' y='9.6' width='8.7' height='19.9'/%3E%3Crect x='25.3' y='16.3' width='8.2' height='13.2'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.5 30'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='1' y='1.5' width='8.2' height='28'/%3E%3Crect x='13' y='9.6' width='8.7' height='19.9'/%3E%3Crect x='25.3' y='16.3' width='8.2' height='13.2'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
body.pro .bento-tile.cov { border-radius: 16px; }
body.pro a.bento-tile[href="/monitoring"] { border-radius: 26px; background: color-mix(in srgb, var(--blue) 9%, var(--card)); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
body.pro a.bento-tile[href="/monitoring"] .bento-num { color: var(--blue); }
body.pro a.bento-tile:not(.accent)[href^="/projects"] { border-radius: 8px 18px 18px 8px; border-left: 3px solid var(--green); }
body.pro .band-card { position: relative; padding: 22px 28px 22px 34px; border-radius: 6px 18px 18px 6px; }
body.pro .band-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--blue); }
body.pro .band-card p { font-size: 1.02rem; line-height: 1.65; }
body.pro .home-links > a:nth-child(1) .card { border-top: 2px solid var(--blue); border-radius: 6px 18px 18px 18px; }
body.pro .home-links > a:nth-child(2) .card { border-top: 2px solid var(--green); border-radius: 18px 6px 18px 18px; }

/* ---------- accueil : « A la une » (evenements a venir et passes, titre sur l'image) ---------- */
body.pro .bento-tile.evh { grid-column: span 2; grid-row: span 2; display: block; padding: 0; position: relative; overflow: hidden; border-radius: 22px; background: #0f1114; color: #f1f2f4; border: 1px solid #ffffff1a; }
body.pro .bento-tile.evh:hover { background: #0f1114; border-color: #ffffff30; }
body.pro .evh-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; color: #f1f2f4; text-decoration: none; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
body.pro .evh-slide.on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
body.pro .evh-slide.is-art { background-image: linear-gradient(#ffffff0f 1px, transparent 1px), linear-gradient(90deg, #ffffff0f 1px, transparent 1px); background-size: 28px 28px; }
body.pro .evh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.pro .evh-slide.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #000000d0 0%, #00000070 38%, #00000014 68%, #00000038 100%), linear-gradient(to right, #000000a8 0%, #00000058 42%, #00000000 72%); }
body.pro .evh-art { position: absolute; right: 3%; top: 16%; width: 38%; height: 52%; color: var(--ac); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
body.pro .evh-slide.is-past .evh-art, body.pro .evh-slide.is-past .evh-img { opacity: .8; filter: saturate(.8); }
body.pro .evh-top { z-index: 2; position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.pro .evh-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #ffffff1f; font-size: .78rem; font-weight: 500; }
body.pro .evh-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
body.pro .evh-tag.is-next { background: var(--ac); color: #0b0d10; font-weight: 600; }
body.pro .evh-tag.is-next i { background: #0b0d10; }
body.pro .evh-rel { font: 500 .78rem var(--font-mono); color: #ffffffcc; }
body.pro .evh-slide.has-img .evh-tag:not(.is-next), body.pro .evx-poster.has-img .evx-pchip { background: #0000006e; }
body.pro .evh-title, body.pro .evx-ptitle, body.pro .evh-meta, body.pro .evx-pmeta, body.pro .evh-rel, body.pro .evx-pdate { text-shadow: 0 1px 14px #0009; }
body.pro .evh-body { z-index: 2; position: absolute; left: 22px; right: 22px; bottom: 46px; display: flex; flex-direction: column; gap: 6px; max-width: 64%; }
body.pro .evh-kicker { font-size: .8rem; font-weight: 500; color: var(--ac); }
body.pro .evh-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.6rem; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; }
body.pro .evh-meta { font-size: .82rem; color: #ffffffb8; }
body.pro .evh-foot { position: absolute; left: 22px; right: 22px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; }
body.pro .evh-count { font: 400 .72rem var(--font-mono); color: #ffffff99; }
body.pro .evh-bar { flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: #ffffff2b; }
body.pro .evh-bar i { display: block; width: 0; height: 100%; background: #fff; }
body.pro .evh-bar i.run { animation: toolsbar 6.5s linear forwards; }
body.pro .evh-dots { display: flex; gap: 6px; }
body.pro .evh-d { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #ffffff4d; cursor: pointer; box-shadow: 0 0 0 6px transparent; transition: background-color .2s var(--ease); }
body.pro .evh-d.on { background: #fff; }

/* ---------- evenements : mosaique d'affiches (la fiche complete se deplie dessous) ---------- */
body.pro .evx-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
body.pro .evx-tile { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .15s var(--ease); }
body.pro .evx-tile:hover { border-color: var(--line-strong); }
body.pro .evx-tile:nth-child(6n+1) { grid-column: span 4; border-radius: 24px; }
body.pro .evx-tile:nth-child(6n+2) { grid-column: span 2; border-radius: 10px 24px 10px 24px; }
body.pro .evx-tile:nth-child(6n+3) { grid-column: span 3; border-radius: 14px; }
body.pro .evx-tile:nth-child(6n+4) { grid-column: span 3; border-radius: 24px 10px 24px 10px; }
body.pro .evx-tile:nth-child(6n+5) { grid-column: span 2; border-radius: 18px; }
body.pro .evx-tile:nth-child(6n+6) { grid-column: span 4; border-radius: 10px 26px 10px 26px; }
body.pro .evx-tile[open] { grid-column: 1 / -1; }
body.pro .evx-poster { position: relative; display: block; flex: 1 1 auto; min-height: 236px; overflow: hidden; isolation: isolate; cursor: pointer; list-style: none; background-color: #101215; color: #f1f2f4; }
body.pro .evx-poster::-webkit-details-marker { display: none; }
body.pro .evx-tile:nth-child(6n+1) .evx-poster, body.pro .evx-tile:nth-child(6n+6) .evx-poster { min-height: 300px; }
body.pro .evx-tile[open] .evx-poster { min-height: 150px; }
body.pro .evx-poster.is-art { background-image: linear-gradient(#ffffff0f 1px, transparent 1px), linear-gradient(90deg, #ffffff0f 1px, transparent 1px); background-size: 28px 28px; }
body.pro .evx-pimg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
body.pro .evx-tile:hover .evx-pimg { transform: scale(1.03); }
body.pro .evx-poster.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #000000cc 0%, #0000006a 38%, #00000014 68%, #00000038 100%), linear-gradient(to right, #000000a0 0%, #00000052 42%, #00000000 72%); }
body.pro .evx-art { position: absolute; z-index: -1; right: 5%; top: 22%; width: 50%; height: 46%; color: var(--ac); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
body.pro .evx-tile.is-past .evx-art, body.pro .evx-tile.is-past .evx-pimg { opacity: .8; filter: saturate(.8); }
body.pro .evx-pdate { position: absolute; top: 14px; right: 16px; text-align: right; font-family: var(--font-mono); line-height: 1.05; }
body.pro .evx-pdate b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -.02em; }
body.pro .evx-pdate small { font-size: .7rem; color: #ffffffb8; }
body.pro .evx-pchips { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 62%; }
body.pro .evx-pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #ffffff1f; font-size: .74rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
body.pro .evx-pchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
body.pro .evx-pchip-ghost { background: transparent; border: 1px solid #ffffff40; color: #ffffffcc; }
body.pro .evx-pbody { position: absolute; left: 16px; right: 56px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
body.pro .evx-ptitle { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.1rem; font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
body.pro .evx-tile:nth-child(6n+1) .evx-ptitle, body.pro .evx-tile:nth-child(6n+6) .evx-ptitle { font-size: 1.45rem; }
body.pro .evx-pmeta { font-size: .78rem; color: #ffffffb8; }
body.pro .evx-plus { position: absolute; right: 14px; bottom: 14px; width: 28px; height: 28px; border: 1px solid #ffffff59; border-radius: 50%; }
body.pro .evx-plus::before, body.pro .evx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: #fff; transition: transform .2s var(--ease); }
body.pro .evx-plus::after { transform: rotate(90deg); }
body.pro .evx-tile[open] .evx-plus::after { transform: rotate(0); }
body.pro .evx-tile > .evx-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--card); }
body.pro .evx-tile > .evx-card:hover { box-shadow: none; }
body.pro .evx-visual { background: color-mix(in srgb, var(--ac) 4%, var(--card)); }

/* ---------- apercus interactifs : un ecran graphite, identique en themes clair et sombre ---------- */
body.pro .evx-panel { background: #0f1114; color: #e9eaec; border: 1px solid #ffffff1f; box-shadow: none; }
body.pro .evx-panel .evx-ph, body.pro .evx-panel .evx-tabs { border-bottom-color: #ffffff17; }
body.pro .evx-panel .evx-ill { border-top-color: #ffffff12; color: #7b818a; }
body.pro .evx-panel .evx-live, body.pro .evx-panel .evx-tabs button, body.pro .evx-panel .hint, body.pro .evx-panel .chart-read, body.pro .evx-panel .kpi > span, body.pro .evx-panel .kpi small,
body.pro .evx-panel .alerts small, body.pro .evx-panel .tank-read .lbl, body.pro .evx-panel .tank-read b small, body.pro .evx-panel .slider, body.pro .evx-panel .fw-row span, body.pro .evx-panel .stepper li { color: #9aa0a8; }
body.pro .evx-panel .evx-tabs button:hover, body.pro .evx-panel .evx-tabs button[aria-selected="true"], body.pro .evx-panel .stepper li.on { color: #fff; }
body.pro .evx-panel .kpi, body.pro .evx-panel .alerts li, body.pro .evx-panel .fw-row, body.pro .evx-panel .vgp li, body.pro .evx-panel .tr-checks button { background: #181b20; border-color: #ffffff17; color: #e9eaec; }
body.pro .evx-panel .kpi b, body.pro .evx-panel .tank-read b, body.pro .evx-panel .alerts b, body.pro .evx-panel .fw-row b, body.pro .evx-panel .vgp b { color: #f3f4f6; }
body.pro .evx-panel .bar { background: #ffffff14; }
body.pro .evx-panel .seg button, body.pro .evx-panel .modes button, body.pro .evx-panel .ack { background: #1e2127; border-color: #ffffff26; color: #d6d9de; }
body.pro .evx-panel .seg button:hover, body.pro .evx-panel .modes button:hover, body.pro .evx-panel .ack:hover:not(:disabled) { background: #272b32; }
body.pro .evx-panel .seg button[aria-pressed="true"], body.pro .evx-panel .modes button[aria-pressed="true"] { background: color-mix(in srgb, var(--ac) 26%, #0f1114); border-color: var(--ac); color: #fff; }
body.pro .evx-panel .cmd-state p, body.pro .evx-panel .tr-text { color: #d6d9de; }
body.pro .evx-panel .tank-wall { fill: #14171b; stroke: #7b818a; }
body.pro .evx-panel .stepper li::before { background: #ffffff1f; }
body.pro .evx-panel .stepper li i { background: #2a2e35; border-color: #0f1114; }
body.pro .evx-panel .chart .axis text { fill: #7b818a; }
body.pro .evx-panel .chart .cross circle { fill: #0f1114; }
body.pro .evx-panel .tr-checks button i { border-color: #5b616a; }
body.pro .evx-panel .pill { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .72rem; }

@media (max-width: 960px) {
  body.pro .evx-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pro .evx-tile, body.pro .evx-tile:nth-child(n) { grid-column: span 1; }
  body.pro .evx-tile:nth-child(3n+1) { grid-column: span 2; }
  body.pro .evx-tile[open] { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body.pro .evx-mosaic { grid-template-columns: 1fr; }
  body.pro .evx-tile, body.pro .evx-tile:nth-child(n), body.pro .evx-tile:nth-child(3n+1) { grid-column: 1 / -1; }
  body.pro .bento-tile.evh { grid-column: span 1; grid-row: span 1; min-height: 320px; }
  body.pro .evh-slide.has-img .evh-tag:not(.is-next), body.pro .evx-poster.has-img .evx-pchip { background: #0000006e; }
body.pro .evh-title, body.pro .evx-ptitle, body.pro .evh-meta, body.pro .evx-pmeta, body.pro .evh-rel, body.pro .evx-pdate { text-shadow: 0 1px 14px #0009; }
body.pro .evh-body { max-width: 92%; }
  body.pro .evh-title { font-size: 1.3rem; }
}

/* ---------- mouvement ---------- */
@media (prefers-reduced-motion: reduce) { body.pro *, body.pro *::before, body.pro *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  body.pro header.topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; align-items: center; }
  body.pro .nav-toggle { display: inline-flex; margin-left: auto; }
  body.pro header.topbar nav { margin-left: 0; }
  body.pro .nav-links a, body.pro .nav-menu summary { height: 40px; }
  body.pro .nav-links a.active::before, body.pro .nav-menu.has-active summary::before { left: 0; right: auto; width: 2px; top: 8px; bottom: 8px; height: auto; }
  body.pro .nav-tools { border-left: 0; margin-left: 0; padding-left: 0; }
}
@media (max-width: 720px) { body.pro main { padding: 20px 14px 80px; } body.pro .card { padding: 16px; } }

/* ---------- en-tete : places disponibles (la phrase sous le nom passe d'abord, puis le nom) ---------- */
@media (max-width: 1360px) {
  body.pro header.topbar { gap: 14px; }
  body.pro header.topbar .brand-dept { display: none; }
  body.pro .nav-links a, body.pro .nav-menu summary { padding: 0 10px; }
  body.pro .nav-tools { margin-left: 4px; padding-left: 10px; }
}
@media (max-width: 1100px) { body.pro header.topbar .brand-text { display: none; } }
@media (max-width: 1060px) and (min-width: 901px) { body.pro .nav-user { display: none; } }
@media (max-width: 980px) and (min-width: 901px) { body.pro header.topbar { gap: 10px; } body.pro .nav-links a, body.pro .nav-menu summary { padding: 0 8px; } }
@media (max-width: 900px) { body.pro header.topbar .brand-text { display: flex; } body.pro header.topbar .brand-dept { display: none; } }
/* Visuels d evenements : sujet decale a droite dans l image (titre a gauche), recadrage stable quelle que soit la forme de la tuile. */
body.pro .evh-img, body.pro .evx-pimg { object-position: 62% 50%; }
