/* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;

  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);

  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: rgb(240, 240, 240, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
  --xy-node-border-radius-default: 3px;

  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;

  --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);

  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #ffffff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}
.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);

  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: rgb(60, 60, 60, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;

  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;

  --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);

  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}
.react-flow__background {
  background-color: var(--xy-background-color, var(--xy-background-color-props, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
}
.react-flow__pane.draggable {
    cursor: grab;
  }
.react-flow__pane.dragging {
    cursor: grabbing;
  }
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}
.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}
.react-flow .react-flow__edges {
  position: absolute;
}
.react-flow .react-flow__edges svg {
    overflow: visible;
    position: absolute;
    pointer-events: none;
  }
.react-flow__edge {
  pointer-events: visibleStroke;
}
.react-flow__edge.selectable {
    cursor: pointer;
  }
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge.selectable:focus .react-flow__edge-path,
  .react-flow__edge.selectable:focus-visible .react-flow__edge-path {
    stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}
.react-flow__node.selectable {
    cursor: pointer;
  }
.react-flow__node.draggable {
    cursor: grab;
    pointer-events: all;
  }
.react-flow__node.draggable.dragging {
      cursor: grabbing;
    }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
}
.react-flow__handle.connectingfrom {
    pointer-events: all;
  }
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
  }
.react-flow__handle-top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-left {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-right {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.center {
    left: 50%;
    transform: translateX(-50%);
  }
.react-flow__attribution {
  font-size: 10px;
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  left: 0;
  top: 0;
}
.react-flow__viewport-portal {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-flow__minimap {
  background: var(
    --xy-minimap-background-color-props,
    var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
  );
}
.react-flow__minimap-svg {
    display: block;
  }
.react-flow__minimap-mask {
    fill: var(
      --xy-minimap-mask-background-color-props,
      var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
    );
    stroke: var(
      --xy-minimap-mask-stroke-color-props,
      var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
    );
    stroke-width: var(
      --xy-minimap-mask-stroke-width-props,
      var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
    );
  }
.react-flow__minimap-node {
    fill: var(
      --xy-minimap-node-background-color-props,
      var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
    );
    stroke: var(
      --xy-minimap-node-stroke-color-props,
      var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
    );
    stroke-width: var(
      --xy-minimap-node-stroke-width-props,
      var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
    );
  }
.react-flow__background-pattern.dots {
    fill: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
    );
  }
.react-flow__background-pattern.lines {
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
    );
  }
.react-flow__background-pattern.cross {
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
    );
  }
.react-flow__controls {
  display: flex;
  flex-direction: column;
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
}
.react-flow__controls.horizontal {
    flex-direction: row;
  }
.react-flow__controls-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    padding: 4px;
    border: none;
    background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
    border-bottom: 1px solid
      var(
        --xy-controls-button-border-color-props,
        var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
      );
    color: var(
      --xy-controls-button-color-props,
      var(--xy-controls-button-color, var(--xy-controls-button-color-default))
    );
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
      fill: currentColor;
    }
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-input,
.react-flow__node-default,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  width: 150px;
  font-size: 12px;
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
}
.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
    }
.react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
    }
.react-flow__node-group {
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls-button:hover {
      background: var(
        --xy-controls-button-background-color-hover-props,
        var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default))
      );
      color: var(
        --xy-controls-button-color-hover-props,
        var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))
      );
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__controls-button:last-child {
    border-bottom: none;
  }
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}
.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* Plateforme de pilotage — système visuel.
   Mise en page : navigation latérale fixe, colonne de travail, panneaux latéraux à droite.
   Neutres gris légèrement verdâtres, anthracite pour le texte, un seul accent vert-de-gris
   réservé aux éléments actifs ; rouge uniquement pour les problèmes importants. */
:root {
  --bg: #f4f5f4;
  --surface: #ffffff;
  --surface-2: #f0f2f1;
  --surface-3: #e8ebea;
  --border: #e1e4e3;
  --border-strong: #cdd2d0;
  --fg: #22272a;
  --fg-2: #50585c;
  --fg-3: #7a8286;
  --accent: #2e6259;
  --accent-fg: #ffffff;
  --accent-soft: #e5efec;
  --critical: #b3261e;
  --critical-soft: #fbeceb;
  --warning: #8a5a00;
  --warning-soft: #f8f0df;
  --ok: #2d6a3c;
  --ok-soft: #e7f1e9;
  --neutral-soft: #eceeed;
  --chart-cur: #2e6259;
  --chart-prev: #a6aeab;
  --chart-area: rgba(46, 98, 89, 0.08);
  --scrim: rgba(24, 28, 30, 0.28);
  --shadow: 0 1px 2px rgba(20, 24, 26, 0.04), 0 8px 24px rgba(20, 24, 26, 0.08);
  --font-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 6px;
  --sidebar: 236px;
  --copilot: 400px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151819; --surface: #1c2022; --surface-2: #23282a; --surface-3: #2a3033; --border: #2f3538; --border-strong: #3d4447;
    --fg: #e5e8e7; --fg-2: #aab2b1; --fg-3: #7f8886; --accent: #7fb5aa; --accent-fg: #102420; --accent-soft: #1f3330;
    --critical: #f08a80; --critical-soft: #3a1f1d; --warning: #e2b25a; --warning-soft: #332a18; --ok: #85c494; --ok-soft: #1d2f22; --neutral-soft: #262b2d;
    --chart-cur: #7fb5aa; --chart-prev: #5d6664; --chart-area: rgba(127, 181, 170, 0.1); --scrim: rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151819; --surface: #1c2022; --surface-2: #23282a; --surface-3: #2a3033; --border: #2f3538; --border-strong: #3d4447;
  --fg: #e5e8e7; --fg-2: #aab2b1; --fg-3: #7f8886; --accent: #7fb5aa; --accent-fg: #102420; --accent-soft: #1f3330;
  --critical: #f08a80; --critical-soft: #3a1f1d; --warning: #e2b25a; --warning-soft: #332a18; --ok: #85c494; --ok-soft: #1d2f22; --neutral-soft: #262b2d;
  --chart-cur: #7fb5aa; --chart-prev: #5d6664; --chart-area: rgba(127, 181, 170, 0.1); --scrim: rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.muted { color: var(--fg-3); }
.small { font-size: 12.5px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.fw-500 { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row { display: flex; align-items: center; }
.gap-s { gap: 8px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.plain li + li { margin-top: 4px; }
.plain-list { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Coque ---------- */
.app { min-height: 100%; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 10px calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark { width: 26px; height: 26px; border-radius: 5px; background: var(--fg); color: var(--surface); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.brand-name { font-weight: 600; font-size: 15px; }
.nav { display: grid; gap: 1px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: none; border-radius: 5px;
  color: var(--fg-2); cursor: pointer; text-align: left; font-size: 13.5px;
}
.nav-item:hover { background: var(--surface-2); color: var(--fg); }
.nav-item.is-active { background: var(--accent-soft); color: var(--fg); font-weight: 500; }
.nav-item.is-active .icon { color: var(--accent); }
.nav-item .count { margin-left: auto; font-size: 11.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.sidebar-projects-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); padding: 0 10px; }
.nav-small .nav-item { font-size: 13px; padding: 5px 10px; }
.proj-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); flex: none; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--warning); background: var(--warning-soft);
  border-radius: 4px; padding: 2px 8px; white-space: nowrap; letter-spacing: 0.01em;
}
.sidebar .demo-badge { margin: 4px 10px 0; justify-content: center; }

.main-col { margin-left: var(--sidebar); min-width: 0; transition: margin-right 0.2s ease; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border);
}
.topbar .menu-btn { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
main { padding: 26px 28px 64px; outline: none; }
.page { max-width: 1320px; margin: 0 auto; display: grid; gap: 22px; }

/* Recherche */
.search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; }
.search input[type="search"] {
  width: 100%; height: 34px; padding: 0 34px 0 34px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
}
.search input::placeholder { color: var(--fg-3); }
.search-icon { position: absolute; left: 10px; color: var(--fg-3); pointer-events: none; }
.search-kbd { position: absolute; right: 8px; font: 11px var(--font-mono); color: var(--fg-3); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; max-height: 60vh; overflow: auto; z-index: 50;
}
.search-item { width: 100%; display: grid; grid-template-columns: 130px 1fr; gap: 0 10px; padding: 7px 8px; border: 0; background: none; text-align: left; border-radius: 4px; cursor: pointer; }
.search-item.is-active, .search-item:hover { background: var(--surface-2); }
.search-kind { grid-row: span 2; font-size: 11.5px; color: var(--fg-3); padding-top: 2px; }
.search-title { font-weight: 500; }
.search-sub { font-size: 12.5px; color: var(--fg-3); }
.search-empty { padding: 10px; color: var(--fg-3); font-size: 13px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--surface)); }
.btn-ghost { border-color: transparent; background: none; color: var(--fg-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn-small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-copilot.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.btn-copilot .icon { color: var(--accent); }
.icon-btn { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: var(--radius); color: var(--fg-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.icon-btn.small { width: 24px; height: 24px; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; font-weight: 500; text-align: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-btn.left { text-align: left; }
.row-title { border: 0; background: none; padding: 0; text-align: left; font-weight: 500; color: var(--fg); cursor: pointer; font-size: inherit; }
.row-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
button.row-title { display: inline; }

/* Notifications */
.notif { position: relative; }
.notif-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--critical); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.popover { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, 90vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; }
.popover-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 60vh; overflow: auto; padding: 4px; }
.notif-item { width: 100%; display: grid; grid-template-columns: 10px 1fr; gap: 2px 8px; text-align: left; border: 0; background: none; padding: 8px; border-radius: 4px; cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.is-read { opacity: 0.6; }
.notif-text { grid-column: 2; font-weight: 500; font-size: 13px; }
.notif-sub { grid-column: 2; font-size: 12px; color: var(--fg-3); }
.crit-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--critical); margin-top: 6px; }
.pad { padding: 12px; }

/* En-têtes et sections */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; line-height: 1.25; }
.page-sub { color: var(--fg-2); margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 75ch; }
.today::first-letter { text-transform: uppercase; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px 20px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 15px; }
.hint { color: var(--fg-3); font-size: 12.5px; margin-top: 2px; }
.section-actions { display: flex; align-items: center; gap: 8px; }
.sub-h { font-size: 13px; margin-top: 6px; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin-bottom: 4px; }

.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 22px 18px; text-align: center; display: grid; gap: 6px; justify-items: center; color: var(--fg-2); }
.empty-title { font-weight: 500; color: var(--fg); }
.empty-text { font-size: 13px; max-width: 60ch; }

/* Étiquettes */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; color: var(--fg-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.pill-accent .dot { background: var(--accent); }
.pill-critical .dot { background: var(--critical); }
.pill-critical { color: var(--critical); }
.pill-warning .dot { background: var(--warning); }
.pill-ok .dot { background: var(--ok); }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 4px; white-space: nowrap; line-height: 1.6; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warning { background: var(--warning-soft); color: var(--warning); }
.tag-critical { background: var(--critical-soft); color: var(--critical); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag-neutral { background: var(--neutral-soft); color: var(--fg-2); }
.kind { display: inline-block; font-size: 11.5px; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; white-space: nowrap; line-height: 1.7; }
.kind-bug { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 30%, var(--border)); background: var(--critical-soft); }
.kind-suggestion { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.prio .bars { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 10px; }
.prio .bars i { width: 3px; background: var(--border-strong); border-radius: 1px; }
.prio .bars i:nth-child(1) { height: 4px; } .prio .bars i:nth-child(2) { height: 7px; } .prio .bars i:nth-child(3) { height: 10px; }
.prio-haute .bars i { background: var(--fg); }
.prio-moyenne .bars i:nth-child(-n+2) { background: var(--fg); }
.prio-basse .bars i:nth-child(1) { background: var(--fg); }
.confidence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 10px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.meter i.on { background: var(--fg-2); }
.sev { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--fg-2); }
.sev-critique { color: var(--critical); }
.sev-attention { color: var(--warning); }
.delta { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg-3); }
.delta-up { color: var(--ok); }
.delta-down { color: var(--critical); }
.due-late { color: var(--critical); font-weight: 500; white-space: nowrap; }
.due-soon { font-weight: 500; white-space: nowrap; }
.impact { font-size: 12.5px; font-weight: 500; }
.impact-fort { color: var(--critical); }
.impact-moyen { color: var(--warning); }
.impact-faible { color: var(--fg-3); }

/* Selects compacts */
select, input[type="search"], input[type="text"], input[type="date"], input:not([type]), textarea {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius); padding: 5px 9px; min-height: 32px; max-width: 100%;
}
textarea { resize: vertical; line-height: 1.45; }
.input-small { min-height: 30px; padding: 3px 8px; font-size: 13px; }
.status-select, .prio-select { min-height: 28px; padding: 2px 6px; font-size: 12.5px; border-color: var(--border); background: var(--surface); }
.status-select.tone-critical { color: var(--critical); }
.status-select.tone-accent { color: var(--accent); font-weight: 500; }
.status-select.tone-ok { color: var(--ok); }
.status-select.tone-warning { color: var(--warning); }
.prio-select.prio-haute { font-weight: 500; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.check input { accent-color: var(--accent); }

/* Toolbar et filtres */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; justify-content: space-between; }
.toolbar.filters { justify-content: flex-start; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter { display: grid; gap: 3px; font-size: 12px; color: var(--fg-3); }
.filter select { font-size: 13px; color: var(--fg); min-height: 30px; padding: 3px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-size: 13px; cursor: pointer; color: var(--fg-2); display: inline-flex; gap: 6px; align-items: center; text-align: left; }
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip.is-active { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.filtre-projet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 1320px; margin: 0 auto 14px; }
.filtre-projet-lib { white-space: nowrap; }
.filtre-projet .chip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.filtre-projet select { max-width: 200px; font-size: 13px; }
@media (max-width: 640px) { .filtre-projet { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .filtre-projet .chip { flex: 0 0 auto; } }
.chip-count { font-size: 11.5px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--fg-2); min-height: 28px; }
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button.is-active { background: var(--fg); color: var(--surface); }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--fg-3); padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table-click tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.is-selected td { background: var(--accent-soft); }
.table tr.is-done .row-title { color: var(--fg-3); text-decoration: line-through; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 3px; }
.th-sort:hover { color: var(--fg); }
.sort-mark { width: 8px; }
.table td .tag { margin-left: 6px; }
.resume-table td:first-child { min-width: 160px; }
.resume-table td:last-child { width: 1%; }
.resume-table td:nth-child(3), .resume-table td:nth-child(4) { min-width: 180px; color: var(--fg-2); }
.task-table td:first-child { min-width: 240px; }

/* Cockpit */
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col-main, .col-side { display: grid; gap: 20px; min-width: 0; }
.prio-list { display: grid; }
.prio-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); align-items: start; }
.prio-item:first-child { border-top: 0; padding-top: 2px; }
.prio-rank { font-variant-numeric: tabular-nums; color: var(--fg-3); font-size: 13px; padding-top: 1px; text-align: right; }
.prio-body { display: grid; gap: 4px; min-width: 0; }
.prio-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; align-items: center; }
.prio-reason { font-size: 13px; color: var(--fg-2); }
.prio-side { display: flex; gap: 8px; align-items: center; }
.move { display: flex; flex-direction: column; }
.brief { display: grid; gap: 14px; }
.brief h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-3); font-weight: 500; margin-bottom: 4px; }
.brief li { position: relative; padding-left: 14px; font-size: 13.5px; display: grid; gap: 2px; justify-items: start; }
.brief li + li { margin-top: 5px; }
.brief li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); }
.alert-list { display: grid; gap: 8px; }
.alert-row { width: 100%; display: grid; gap: 3px; padding: 10px 12px; text-align: left; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.alert-row:hover { background: var(--surface-2); }
.alert-row.is-ignored { opacity: 0.55; }
.sev-row-critique { border-left-color: var(--critical); }
.sev-row-attention { border-left-color: var(--warning); }
.sev-row-info { border-left-color: var(--border-strong); }
.alert-top { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; align-items: center; }
.alert-title { font-weight: 500; }
.alert-detail { font-size: 13px; }
.mini-list { display: grid; }
.mini-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; cursor: pointer; font-size: 13.5px; }
.mini-list li:first-child .mini-row { border-top: 0; padding-top: 0; }
.mini-row:hover .mini-title { color: var(--accent); text-decoration: underline; }
.mini-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Boîte de réception */
.inbox-list { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.inbox-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border); align-items: start; }
.inbox-item:first-child { border-top: 0; }
.inbox-item .kind { justify-self: start; margin-top: 2px; }
.inbox-main { border: 0; background: none; text-align: left; display: grid; gap: 2px; cursor: pointer; padding: 0; min-width: 0; }
.inbox-main:hover .row-title { color: var(--accent); text-decoration: underline; }
.inbox-body { color: var(--fg-2); font-size: 13.5px; }
.inbox-meta { font-size: 12.5px; }
.inbox-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Projets */
.projects-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.tree { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px; position: sticky; top: 72px; }
.tree ul ul { margin: 2px 0 4px 18px; border-left: 1px solid var(--border); padding-left: 4px; }
.tree-item { width: 100%; display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 6px 8px; border-radius: 5px; cursor: pointer; text-align: left; color: var(--fg-2); font-size: 13.5px; }
.tree-item:hover { background: var(--surface-2); color: var(--fg); }
.tree-item.is-active { background: var(--accent-soft); color: var(--fg); font-weight: 500; }
.tree-item.sub { font-size: 13px; padding: 5px 8px; }
.tree-count, .tree-status { margin-left: auto; font-size: 11.5px; color: var(--fg-3); font-weight: 400; }
.project-detail { display: grid; gap: 20px; min-width: 0; }
.project-head { display: grid; gap: 10px; }
.project-title-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.project-title-row h2 { font-size: 22px; }
.project-head > p { color: var(--fg-2); max-width: 75ch; }
.crumb { display: inline-flex; gap: 4px; align-items: center; border: 0; background: none; color: var(--fg-3); cursor: pointer; padding: 0; font-size: 13px; justify-self: start; }
.crumb:hover { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 4px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.facts div { padding: 10px 14px; }
.facts div + div { border-left: 1px solid var(--border); }
.facts dt { font-size: 12px; color: var(--fg-3); }
.facts dd { margin: 2px 0 0; font-size: 13.5px; }
.subprojects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.subproject { width: 100%; height: 100%; display: grid; gap: 4px; align-content: start; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px; cursor: pointer; }
.subproject:hover { border-color: var(--border-strong); background: var(--surface-2); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.two-col.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.timeline { display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 2px 10px; font-size: 13.5px; }
.timeline li .tag { grid-column: 2; justify-self: start; }

/* Historique */
.history-day { display: grid; gap: 6px; }
.history-date { font-size: 13px; color: var(--fg-3); font-weight: 500; }
.history-list { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.history-list li { display: grid; grid-template-columns: 48px 130px minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); align-items: baseline; font-size: 13.5px; }
.history-list li:first-child { border-top: 0; }
.history-list .kind { justify-self: start; }
.history-time { font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* Paramètres */
.settings-list { display: grid; }
.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; }
.switch-row:first-child { border-top: 0; padding-top: 0; }
input[role="switch"] { appearance: none; width: 36px; height: 20px; border-radius: 10px; background: var(--border-strong); position: relative; cursor: pointer; flex: none; transition: background 0.15s; min-height: 0; padding: 0; border: 0; }
input[role="switch"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; }
input[role="switch"]:checked { background: var(--accent); }
input[role="switch"]:checked::after { transform: translateX(16px); }

/* Performance */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { border: 0; background: none; padding: 9px 14px; cursor: pointer; color: var(--fg-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.perf-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.scope { margin-top: -12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kpi-grid.kpi-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: grid; gap: 4px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; align-content: start; min-width: 0; }
.kpi:hover { border-color: var(--border-strong); }
.kpi.is-active { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.kpi-label { font-size: 12.5px; color: var(--fg-2); }
.kpi-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.2; }
.kpi-foot { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.kpi-sub { font-size: 12px; color: var(--fg-3); }
.callout { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--fg-2); display: grid; gap: 4px; }
.callout-warning { background: var(--warning-soft); color: var(--fg); }
.callout-critical { background: var(--critical-soft); color: var(--critical); }
.callout.protocol { grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--border); }
.callout.protocol .icon { margin-top: 2px; color: var(--fg-3); }
.legend-natures { background: var(--surface); border: 1px solid var(--border); }
.meaning { display: grid; gap: 8px; }
.meaning li { padding-left: 14px; position: relative; font-size: 13.5px; }
.meaning li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.rank-list { display: grid; }
.rank-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.rank-list li:first-child { border-top: 0; padding-top: 0; }
.rank-list li > :first-child { flex: 1; min-width: 0; }
.issue-list { display: grid; gap: 8px; }
.issue { border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 3px; }
.yn { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.yn-yes { color: var(--fg); font-weight: 500; }
.yn-no { color: var(--fg-3); }
.bar-cell { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 13px; }
.sharebar { position: relative; display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: var(--surface-3); flex: none; }
.sharebar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--chart-cur); }
.sharebar-prev { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fg); border-radius: 1px; }
.feature-list { display: grid; }
.feature-list li { display: grid; grid-template-columns: minmax(0, 1fr) 100px 46px 58px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list .sharebar { width: 100%; }
.loss { display: grid; gap: 10px; max-width: 90ch; }
.hyp { display: grid; gap: 6px; }
.hyp li { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; flex-wrap: wrap; }
.reco-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

/* Graphiques */
.chart { position: relative; min-width: 0; }
.chart svg { display: block; overflow: visible; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--fg-2); margin-bottom: 6px; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend-unit { margin-left: auto; color: var(--fg-3); }
.sw { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.sw-cur { background: var(--chart-cur); }
.sw-prev { background: repeating-linear-gradient(90deg, var(--chart-prev) 0 4px, transparent 4px 7px); }
.grid { stroke: var(--border); stroke-width: 1; }
.axis { fill: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font-ui); }
.line-cur { fill: none; stroke: var(--chart-cur); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-prev { fill: none; stroke: var(--chart-prev); stroke-width: 1.5; stroke-dasharray: 4 3; }
.area { fill: var(--chart-area); stroke: none; }
.dot-cur { fill: var(--chart-cur); stroke: var(--surface); stroke-width: 2; }
.dot-prev { fill: var(--chart-prev); stroke: var(--surface); stroke-width: 2; }
.crosshair { stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 2 2; }
.missing { fill: var(--surface-2); stroke: var(--border-strong); stroke-dasharray: 3 3; }
.tooltip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 8px 10px; font-size: 12.5px; display: grid; gap: 3px; min-width: 150px; font-variant-numeric: tabular-nums; }
.tooltip span { display: flex; gap: 6px; align-items: center; }
.funnel { display: grid; gap: 4px; }
.funnel-row { width: 100%; display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; text-align: left; border: 1px solid transparent; background: none; border-radius: var(--radius); padding: 6px 8px; cursor: pointer; }
.funnel-row:hover { background: var(--surface-2); }
.funnel-row.is-active { border-color: var(--border-strong); background: var(--surface-2); }
.funnel-label { font-size: 13px; }
.funnel-track { height: 14px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.funnel-bar { display: block; height: 100%; background: var(--chart-cur); border-radius: 3px; }
.funnel-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; }
.funnel-conv { grid-column: 2 / 4; font-size: 12px; color: var(--fg-3); }
.funnel-conv.is-worse { color: var(--critical); }
.funnel-conv em { font-style: normal; }
.funnel-note { font-size: 13px; color: var(--fg-2); border-top: 1px solid var(--border); padding-top: 10px; }
.cohort { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; width: 100%; }
.cohort th { font-weight: 500; color: var(--fg-3); font-size: 11.5px; padding: 4px 6px; text-align: left; white-space: nowrap; }
.cohort th.num { text-align: right; }
.cohort td { padding: 6px; white-space: nowrap; }
.cohort td.cell { background: color-mix(in srgb, var(--chart-cur) calc(var(--a, 0) * 70%), var(--surface-2)); color: var(--fg); border-radius: 3px; }
.cohort td.cell:not([style]) { background: transparent; }

/* Recommandations */
.reco { border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: grid; gap: 10px; background: var(--surface); }
.reco + .reco { margin-top: 0; }
.section > .reco + .reco { margin-top: 0; }
.reco.is-done { background: var(--surface-2); }
.reco-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.reco-head h3 { font-size: 14px; }
.reco-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13.5px; }
.reco-grid dt { color: var(--fg-3); font-size: 12.5px; padding-top: 1px; }
.reco-grid dd { margin: 0; }
.reco-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reco-state { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-2); flex-wrap: wrap; }

/* Panneaux latéraux */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 39; }
.scrim-nav { z-index: 29; display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; z-index: 40; outline: none;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: slide 0.18s ease-out;
}
@keyframes slide { from { transform: translateX(16px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.drawer-head h2 { font-size: 17px; line-height: 1.35; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: grid; gap: 14px; align-content: start; }
.drawer-foot { border-top: 1px solid var(--border); padding: 12px 16px; display: grid; gap: 10px; }
.copilot { width: min(var(--copilot), 100vw); z-index: 35; box-shadow: none; }
@media (min-width: 1400px) {
  .copilot-open .main-col { margin-right: var(--copilot); }
}
@media (max-width: 1399px) { .copilot { box-shadow: var(--shadow); } }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.kv > span { font-size: 12px; color: var(--fg-3); }
.kv p, .kv ul { font-size: 13.5px; }
blockquote { margin: 0; padding: 10px 12px; border-left: 2px solid var(--border-strong); background: var(--surface-2); font-size: 13.5px; border-radius: 0 var(--radius) var(--radius) 0; }
.sources { display: grid; gap: 4px; font-size: 13px; }
.sources li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.sources .icon { flex: none; color: var(--fg-3); position: relative; top: 2px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-kpis div { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.mini-kpis span:first-child { font-size: 11.5px; color: var(--fg-3); }
.mini-kpis strong { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; font-size: 12.5px; color: var(--fg-2); min-width: 0; }
.field > span { font-weight: 500; }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font-size: 14px; color: var(--fg); }
.form-error { color: var(--critical); font-size: 13px; }

/* Contexte */
.ctx-steps { display: grid; gap: 14px; counter-reset: step; }
.ctx-steps > li { display: grid; gap: 6px; padding-left: 26px; position: relative; counter-increment: step; }
.ctx-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 11px; display: grid; place-items: center; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ctx-steps h4 { font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.ctx-steps p { font-size: 13.5px; }
.ctx-list { display: grid; gap: 8px; }
.ctx-line { display: grid; gap: 4px; font-size: 13.5px; }
.ctx-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.ctx-next { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 12px 12px 36px !important; }
.ctx-next::before { left: 10px !important; top: 10px !important; }
.context.is-compact .ctx-steps { gap: 10px; }

/* Copilote */
.chat { gap: 12px; }
.chat-intro { color: var(--fg-2); font-size: 13.5px; background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.msg { display: grid; gap: 8px; font-size: 13.5px; }
.msg-user { justify-self: end; max-width: 85%; background: var(--fg); color: var(--surface); padding: 8px 12px; border-radius: 10px 10px 2px 10px; }
.msg-copilote { padding: 2px 0; }
.msg-bullets { display: grid; gap: 6px; }
.msg-bullets li { display: grid; gap: 3px; justify-items: start; padding-left: 12px; border-left: 2px solid var(--border); }
.suggestions { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; flex-wrap: wrap; max-height: 112px; overflow-y: auto; }
.suggestions .chip { font-size: 12.5px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; }

/* Fenêtres */
.modal-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-layer .scrim { z-index: 0; }
.modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; }
.modal-small { width: min(500px, 100%); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 12px 20px; }
.modal-foot { display: flex; gap: 8px; padding: 12px 20px 18px; flex-wrap: wrap; }
.dup { background: var(--warning-soft); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.dup p { display: flex; gap: 6px; align-items: center; }
.dup ul { display: grid; gap: 4px; }
.dup li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }

/* Toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--fg); color: var(--surface); padding: 10px 12px 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13.5px; animation: rise 0.18s ease-out; }
.toast span { flex: 1; }
.toast .link-btn { color: var(--surface); text-decoration: underline; }
.toast-x { border: 0; background: none; color: inherit; opacity: 0.7; cursor: pointer; display: grid; place-items: center; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Adaptation ---------- */
@media (max-width: 1180px) {
  .cockpit-grid { grid-template-columns: minmax(0, 1fr); }
  .col-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .kpi-grid.kpi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: none; }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow); }
  .scrim-nav { display: block; }
  .main-col { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .two-col, .two-col.wide-left { grid-template-columns: minmax(0, 1fr); }
  .projects-layout { grid-template-columns: minmax(0, 1fr); }
  .tree { position: static; }
}
@media (max-width: 720px) {
  .topbar { padding: 8px 16px; gap: 6px; }
  main { padding: 18px 16px 72px; }
  .search-kbd { display: none; }
  .capture-btn span, .btn-copilot span { display: none; }
  .capture-btn, .btn-copilot { padding: 0 9px; }
  .page-head h1 { font-size: 21px; }
  .section { padding: 14px 14px 16px; }
  .prio-item { grid-template-columns: 20px minmax(0, 1fr); }
  .prio-side { grid-column: 2; }
  .move { flex-direction: row; }
  .resume-table thead { display: none; }
  .resume-table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .resume-table tr:last-child { border-bottom: 0; }
  .resume-table td { display: block; border: 0; padding: 0 !important; min-width: 0 !important; width: auto !important; }
  .resume-table td:nth-child(2)::before { content: 'Dernière étape : '; color: var(--fg-3); }
  .resume-table td:nth-child(3)::before { content: 'Prochain point : '; color: var(--fg-3); }
  .resume-table td:last-child { padding-top: 6px !important; }
  .inbox-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
  .inbox-actions { justify-content: flex-start; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { border-left: 0; border-top: 1px solid var(--border); }
  .history-list li { grid-template-columns: 44px minmax(0, 1fr); }
  .history-list li .kind, .history-list li .tag { grid-column: 2; justify-self: start; }
  .history-list li .history-text { grid-column: 2; }
  .reco-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reco-grid dd { margin-bottom: 6px; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .funnel-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
  .funnel-conv { grid-column: 1 / -1; }
  .feature-list li { grid-template-columns: minmax(0, 1fr) 46px 58px; }
  .feature-list .sharebar { grid-column: 1 / -1; grid-row: 2; }
  .perf-filters { padding: 12px; }
  .perf-filters .filter { flex: 1 1 140px; }
  .perf-filters .filter select { width: 100%; }
  .search-item { grid-template-columns: minmax(0, 1fr); }
  .search-kind { grid-row: auto; }
}
@media (max-width: 460px) {
  .kpi-grid.kpi-4, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 20px; }
  .col-side { grid-template-columns: minmax(0, 1fr); }
}

/* Les enfants de grilles ne doivent jamais élargir la page : les tableaux défilent dans leur conteneur. */
.page > *, .section > *, .col-main > *, .col-side > *, .project-detail > *, .drawer-body > * { min-width: 0; }
.table-wrap { max-width: 100%; position: relative; }

/* ---------- Version 2 : document de référence ---------- */
:root { --hyp: #6b5a8a; --hyp-soft: #efecf4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hyp: #b9a8d6; --hyp-soft: #2a2533; } }
:root[data-theme="dark"] { --hyp: #b9a8d6; --hyp-soft: #2a2533; }
.tag-hyp { background: var(--hyp-soft); color: var(--hyp); }
.actor { display: inline-flex; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 3px; border: 1px solid var(--border); color: var(--fg-2); white-space: nowrap; line-height: 1.7; }
.actor-ia { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.actor-systeme { color: var(--fg-3); }
.reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.reason { font-size: 11.5px; color: var(--fg-2); background: var(--surface-2); border-radius: 3px; padding: 0 6px; line-height: 1.7; }
.reason-user { background: transparent; border: 1px dashed var(--border-strong); }
.prio-next { font-size: 13px; }
.subtasks { display: grid; gap: 4px; }
.subtasks .done { text-decoration: line-through; color: var(--fg-3); }
.subtasks .check { white-space: normal; color: var(--fg); }
.comments { display: grid; gap: 8px; }
.comments li { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid var(--border); font-size: 13.5px; }
.inline-form { display: flex; gap: 6px; margin-top: 6px; }
.inline-form input, .inline-form select:last-of-type { flex: 1; min-width: 0; }
.comment-form { display: grid; gap: 6px; }
.comment-form textarea { width: 100%; }
.suggestion-box { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; background: var(--accent-soft); }
.suggestion-box .reco-grid { grid-template-columns: 110px minmax(0, 1fr); }
.sugg-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 4px; }
.memory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.memory dt { font-size: 12px; color: var(--fg-3); margin-bottom: 2px; }
.memory dd { margin: 0; font-size: 13.5px; }
.dash li { position: relative; padding-left: 12px; }
.dash li::before { content: '–'; position: absolute; left: 0; color: var(--fg-3); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.rule { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.rule select { flex: none; }
.list-editor { display: grid; gap: 6px; margin-top: 2px; }
.list-editor li { display: flex; gap: 6px; align-items: center; }
.list-editor input { flex: 1; min-width: 0; }
.list-editor select { flex: none; width: auto; font-size: 13px; }
.modal-wide { width: min(760px, 100%); }
.tool-frame { overflow: auto; border-color: var(--border-strong); }
.tool-bar { display: flex; gap: 8px; align-items: center; padding: 8px 14px; font-size: 12.5px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.tool-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sim { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 8px 12px 12px; margin: 0; display: grid; gap: 6px; }
.sim legend { font-size: 12px; color: var(--fg-3); padding: 0 4px; }
.outbox { background: var(--warning-soft); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; }
.outbox ul { display: grid; gap: 6px; }
.outbox li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prompt-block { display: grid; gap: 8px; margin-top: 8px; }
.prompt-block textarea { width: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: var(--surface-2); }
.ctx-warn .ctx-line > span:first-child { color: var(--warning); }
.kv.internal { background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; }
.dup-select select { font-size: 13px; min-height: 32px; }
.mini-row.stacked { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.mini-row.stacked .mini-title { white-space: normal; }
.history-tags { display: inline-flex; gap: 6px; align-items: center; justify-self: end; }
.history-list li { grid-template-columns: 48px 130px minmax(0, 1fr) auto; }
.quiet-list { justify-content: flex-end; max-width: 60%; }
.ext { display: grid; gap: 4px; }
.timeline li .row { grid-column: 2; }
.timeline li .tag { grid-column: auto; }
@media (max-width: 1000px) {
  .memory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .memory { grid-template-columns: minmax(0, 1fr); }
  .history-tags { grid-column: 2; justify-self: start; }
  .quiet-list { max-width: none; justify-content: flex-start; }
  .switch-row { flex-wrap: wrap; }
  .suggestion-box .reco-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Version 3 : boutons modernisés ---------- */
.btn {
  height: 34px; padding: 0 14px; border-radius: 8px; gap: 7px;
  box-shadow: 0 1px 0 rgba(20, 24, 26, 0.04);
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
}
.btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--fg) 30%, var(--border-strong)); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .segmented button:focus-visible, .tab:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary { box-shadow: 0 1px 2px rgba(20, 24, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 88%, var(--accent)); border-color: transparent; }
.btn-ghost { box-shadow: none; }
.btn-small { height: 30px; padding: 0 11px; border-radius: 7px; font-size: 13px; }
.btn .icon { flex: none; }
.icon-btn { border-radius: 8px; transition: background-color 0.12s ease; }
.segmented { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; }
.segmented button { border-radius: 7px; border: 0 !important; display: inline-flex; gap: 6px; align-items: center; transition: background-color 0.12s ease, color 0.12s ease; }
.segmented button:hover:not(.is-active) { color: var(--fg); }
.segmented button.is-active { background: var(--surface); color: var(--fg); font-weight: 500; box-shadow: 0 1px 2px rgba(20, 24, 26, 0.12), 0 0 0 1px var(--border); }
.chip { transition: background-color 0.12s ease, border-color 0.12s ease; }
.chip-small { font-size: 12px; padding: 1px 9px; }
.chip.is-active.chip-small { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.tag-btn { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 500; }
.tag-btn:hover { text-decoration: underline; }
.link-plain { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--fg); }
.link-plain:hover { color: var(--accent); text-decoration: underline; }
.mini-row.as-div { cursor: default; align-items: center; }
.interrupt-btn .icon { color: var(--warning); }
.tab-count { margin-left: 6px; font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 6px; }
.tab-count.neutral { background: var(--surface-3); color: var(--fg-2); font-weight: 500; }
.view-switch { align-self: start; justify-self: start; }
.callout-ok { background: var(--ok-soft); color: var(--fg); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.callout-ok .icon { color: var(--ok); }
.verif { margin-left: 6px; }

/* ---------- Avancement ---------- */
:root { --seg-valide: #2e6259; --seg-livre: #8fb7ae; --seg-encours: #d9c79a; --seg-afaire: #e4e7e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seg-valide: #7fb5aa; --seg-livre: #3f6a62; --seg-encours: #7a6a3e; --seg-afaire: #2c3234; } }
:root[data-theme="dark"] { --seg-valide: #7fb5aa; --seg-livre: #3f6a62; --seg-encours: #7a6a3e; --seg-afaire: #2c3234; }
.progress { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; width: 100%; }
.progress-track { display: flex; height: 8px; border-radius: 999px; background: var(--seg-afaire); overflow: hidden; gap: 0; }
.progress.is-compact .progress-track { height: 6px; }
.seg { display: block; height: 100%; transition: width 0.3s ease; }
.seg-valide { background: var(--seg-valide); }
.seg-livre { background: var(--seg-livre); }
.seg-encours { background: var(--seg-encours); }
.seg-afaire { background: var(--seg-afaire); }
.progress-label { font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.progress-label strong { color: var(--fg); font-weight: 600; }
.progress-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--fg-2); }
.progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.progress-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.progress-legend.mini { font-size: 11.5px; gap: 2px 10px; }
.portfolio { display: grid; }
.portfolio-row { width: 100%; display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 2fr) 44px minmax(0, 0.9fr); gap: 14px; align-items: center; padding: 9px 0; border: 0; border-top: 1px solid var(--border); background: none; cursor: pointer; text-align: left; }
.portfolio li:first-child .portfolio-row { border-top: 0; padding-top: 2px; }
.portfolio-row:hover .pf-name { color: var(--accent); }
.pf-name { font-weight: 500; font-size: 13.5px; }
.pf-pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; text-align: right; }
.pf-meta { text-align: right; }
.head-progress { display: grid; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; max-width: 520px; }
.head-progress:hover .muted { color: var(--accent); }
.tree-note { padding: 8px 8px 2px; }

/* ---------- Cahier des charges ---------- */
.spec { display: grid; gap: 18px; min-width: 0; }
.spec > * { min-width: 0; }
.spec-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.spec-title h3 { font-size: 17px; display: flex; gap: 8px; align-items: baseline; }
.version { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; }
.spec-progress { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.objectives { display: grid; gap: 10px; }
.objective { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.objective-head { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(90px, 200px) 44px auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; background: var(--surface-2); cursor: pointer; text-align: left; }
.objective-head:hover { background: var(--surface-3); }
.obj-id { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.obj-text { font-weight: 500; }
.obj-pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; text-align: right; }
.objective-body { padding: 6px 14px 12px; display: grid; gap: 8px; }
.reqs { display: grid; }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.reqs .req:first-child { border-top: 0; }
.req.is-removed { opacity: 0.55; }
.req.is-removed .req-text { text-decoration: line-through; }
.req-main { display: grid; gap: 4px; min-width: 0; }
.req-head { display: flex; gap: 8px; align-items: baseline; }
.req-id { font-size: 12px; color: var(--fg-3); flex: none; }
.req-text { font-weight: 500; }
.req-acc { font-size: 13px; }
.missing { color: var(--warning); font-size: 12.5px; }
.req-proof { font-size: 12.5px; color: var(--ok); display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; }
.req-tasks { display: flex; flex-wrap: wrap; gap: 4px; }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.req-actions { display: flex; gap: 4px; align-items: center; }
.prio-chip { font-size: 11px; font-weight: 500; color: var(--fg-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; line-height: 1.7; white-space: nowrap; }
.prio-chip.prio-indispensable { color: var(--fg); border-color: var(--border-strong); }
.req-status-en_cours { color: var(--warning); }
.req-status-livre { color: var(--accent); }
.req-form { grid-column: 1 / -1; display: grid; gap: 10px; background: var(--surface-2); border-radius: 8px; padding: 12px; }
.proof-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.proof-fields .field { min-width: 160px; }
.proof-fields .grow, .grow { flex: 1; }
.add-link { display: inline-flex; gap: 4px; align-items: center; justify-self: start; }
.proposals { display: grid; gap: 10px; }
.proposal { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.diff { display: grid; gap: 4px; font-size: 13.5px; }
.diff p { display: flex; gap: 8px; align-items: baseline; }
.diff-label { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-3); width: 64px; }
.diff-new { color: var(--accent); }
.review { display: grid; gap: 8px; }
.review-item { border: 1px solid var(--border); border-left-width: 3px; border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; font-size: 13.5px; }
.versions { display: grid; gap: 10px; }
.versions > li { display: grid; grid-template-columns: 54px 110px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; }
.req-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sw-scope { background: var(--fg-3); }
.sw-delivered { background: var(--seg-livre); }
.line-scope { fill: none; stroke: var(--fg-3); stroke-width: 1.5; }
.line-delivered { fill: none; stroke: var(--seg-livre); stroke-width: 2; }
.marker { stroke: var(--border-strong); stroke-dasharray: 3 3; }
.marker-label { font-family: var(--font-mono); font-size: 10.5px; }

/* ---------- Interruptions et attentes ---------- */
.interrupt-banner { display: flex; gap: 14px; align-items: center; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent); border-radius: 10px; padding: 12px 16px; }
.interrupt-banner .icon { color: var(--warning); flex: none; }
.interrupt-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.interrupt-note { background: var(--warning-soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; justify-items: start; font-size: 13.5px; }
.waiting-list { display: grid; gap: 8px; }
.waiting { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.waiting.is-due { border-left: 3px solid var(--warning); }
.waiting-main { display: grid; gap: 2px; min-width: 0; justify-items: start; }

/* ---------- Santé des outils ---------- */
.run-strip { display: inline-flex; gap: 3px; align-items: center; }
.run-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--ok); display: inline-block; flex: none; }
.run-attention { background: var(--warning); }
.run-echec, .run-non_execute { background: var(--critical); }
.runs { display: grid; gap: 6px; }
.runs li { display: grid; grid-template-columns: 10px 120px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 13px; }
.health-line { width: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 1px solid var(--border); border-left: 3px solid var(--critical); border-radius: 8px; background: var(--surface); padding: 10px 12px; cursor: pointer; font-size: 13px; }
.health-line .icon { color: var(--critical); flex: none; margin-top: 1px; }
.health-line:hover { background: var(--surface-2); }

/* ---------- Documents : dépôt, lecteur, éditeur ---------- */
.dropzone { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 18px 20px; background: var(--surface); color: var(--fg-2); transition: border-color 0.12s ease, background-color 0.12s ease; flex-wrap: wrap; }
.dropzone > div { flex: 1; min-width: 180px; }
.dropzone .icon { color: var(--fg-3); flex: none; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-over .icon { color: var(--accent); }
.dropzone.is-compact { padding: 10px 12px; gap: 10px; border-radius: 10px; }
.dropzone.is-compact p { flex: 1; min-width: 140px; }
.dropzone label.btn { cursor: pointer; }
.global-drop { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--accent) 12%, transparent); backdrop-filter: blur(2px); display: grid; place-items: center; pointer-events: none; padding: 16px; }
.global-drop-card { background: var(--surface); border: 2px dashed var(--accent); border-radius: 16px; padding: 28px 36px; display: grid; gap: 6px; justify-items: center; text-align: center; box-shadow: var(--shadow); max-width: 420px; }
.global-drop-card .icon { color: var(--accent); }
.file-badge { flex: none; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.file-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.file-info { flex: 1; min-width: 140px; display: grid; }
.upload-list { display: grid; gap: 14px; }
.upload-row { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.upload-row:last-child { border-bottom: 0; padding-bottom: 0; }
.upload-file { display: flex; gap: 8px; align-items: center; }
.doc-list { display: grid; }
.doc-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.doc-list .doc-row:first-child { border-top: 0; }
.doc-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.doc-main:hover .row-title { color: var(--accent); text-decoration: underline; }
.doc-text { display: grid; min-width: 0; }

.viewer { position: fixed; inset: 0; z-index: 65; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.viewer-title { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; }
.viewer-name { display: grid; min-width: 0; }
.viewer-name strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-version select { font-size: 13px; max-width: 320px; }
.viewer-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zoom { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 9px; padding: 1px; background: var(--surface-2); }
.zoom-val { font-size: 12px; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.zoom .icon-btn { width: 30px; height: 30px; }
.editor-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tools { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.tool { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); cursor: pointer; font-size: 13px; }
.tool:hover:not(:disabled) { color: var(--fg); }
.tool:disabled { opacity: 0.4; cursor: default; }
.tool.is-active { background: var(--surface); color: var(--fg); font-weight: 500; box-shadow: 0 1px 2px rgba(20, 24, 26, 0.12), 0 0 0 1px var(--border); }
.colors { display: inline-flex; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--fg); }
.tool-size { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--fg-2); }
.tool-size select { min-height: 30px; font-size: 13px; }
.viewer-confirm { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--warning-soft); padding: 10px 16px; border-bottom: 1px solid var(--border); }
.viewer-body { flex: 1; min-height: 0; display: flex; }
.viewer-scroll { flex: 1; min-width: 0; overflow: auto; padding: 24px 16px 48px; }
.viewer-msg { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 60px 16px; color: var(--fg-2); }
.viewer-banner { max-width: 760px; margin: 0 auto 14px; background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: 13px; text-align: center; }
.pdf-pages { display: grid; gap: 18px; justify-items: center; }
.pdf-page { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.08); border-radius: 2px; flex: none; }
.pdf-page canvas { display: block; }
.pdf-overlay { position: absolute; inset: 0; touch-action: none; }
.pdf-overlay.tool-texte { cursor: text; }
.pdf-overlay.tool-surlignage, .pdf-overlay.tool-trait { cursor: crosshair; }
.ann-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ann { cursor: pointer; }
.tool-texte .ann, .tool-surlignage .ann, .tool-trait .ann { pointer-events: none; }
rect.ann.is-selected, polyline.ann.is-selected { outline: none; stroke: #2e6259; stroke-width: 2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ann-text { position: absolute; transform-origin: top left; white-space: pre; line-height: 1.25; font-family: Helvetica, Arial, sans-serif; padding: 0; }
.ann-text.is-selected { outline: 1.5px dashed #2e6259; outline-offset: 2px; }
.ann-input { position: absolute; min-width: 160px; min-height: 2em; font-family: Helvetica, Arial, sans-serif; background: rgba(255, 255, 255, 0.92); border: 1.5px solid #2e6259; border-radius: 4px; padding: 2px 4px; line-height: 1.25; resize: both; color: #22272a; }
.pages-panel { width: 168px; flex: none; overflow: auto; border-right: 1px solid var(--border); background: var(--surface); padding: 12px 10px; }
.pages-panel ol { display: grid; gap: 14px; }
.thumb { display: grid; justify-items: center; gap: 4px; }
.thumb .pdf-page { box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgba(0, 0, 0, 0.08); }
.thumb-label { font-size: 12px; color: var(--fg-2); }
.thumb-actions { display: flex; gap: 0; }
.viewer-img { display: block; margin: 0 auto; max-width: 100%; box-shadow: var(--shadow); border-radius: 4px; }
.viewer-text { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; white-space: pre-wrap; font-family: var(--font-mono); line-height: 1.55; }
.templates { display: grid; gap: 10px; }
.tpl-text { width: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; background: var(--surface-2); }

@media (max-width: 1000px) {
  .portfolio-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .portfolio-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .pf-meta { display: none; }
  .objective-head { grid-template-columns: auto minmax(0, 1fr) 44px auto; }
  .objective-head .progress { grid-column: 2 / 4; grid-row: 2; }
}
@media (max-width: 720px) {
  .interrupt-btn span { display: none; }
  .interrupt-btn { padding: 0 9px; }
  .req { grid-template-columns: minmax(0, 1fr); }
  .req-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .waiting { grid-template-columns: minmax(0, 1fr); }
  .versions > li { grid-template-columns: 54px minmax(0, 1fr); }
  .versions > li > ul { grid-column: 1 / -1; }
  .interrupt-banner { flex-wrap: wrap; }
  .pages-panel { display: none; }
  .viewer-version select { max-width: 100%; }
  .viewer-title { flex-basis: 100%; }
  .runs li { grid-template-columns: 10px minmax(0, 1fr); }
  .runs li > :nth-child(n+3) { grid-column: 2; }
}

/* ---------- Version 4 : ergonomie ---------- */
kbd { font: 500 11px/1.6 var(--font-mono); color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; white-space: nowrap; }

/* Navigation latérale regroupée et repliable */
.brand { position: relative; }
.collapse-btn { margin-left: auto; opacity: 0.6; }
.collapse-btn:hover { opacity: 1; }
.nav-group { display: grid; gap: 2px; margin-bottom: 14px; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3); padding: 0 10px 4px; font-weight: 500; }
.nav-item { transition: background 0.12s ease, color 0.12s ease; }
.nav-item.is-active { box-shadow: inset 2px 0 0 var(--accent); }
.nav-item .count { background: var(--surface-3); color: var(--fg-2); border-radius: 999px; padding: 0 7px; line-height: 18px; font-weight: 500; }
.nav-item .count.count-alert { background: var(--critical-soft); color: var(--critical); }
.nav-item kbd { margin-left: auto; }
.proj-dot.is-warn { background: var(--warning); }
.nav-recent .nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .nav-label .demo-badge { margin: 4px 10px 0; }
@media (min-width: 1001px) {
  .sidebar { transition: width 0.18s ease; }
  .sidebar.is-collapsed { width: 64px; padding-left: 8px; padding-right: 8px; overflow-x: hidden; }
  .sidebar.is-collapsed .nav-label, .sidebar.is-collapsed .nav-title, .sidebar.is-collapsed .brand-name, .sidebar.is-collapsed .nav-item kbd { display: none; }
  .sidebar.is-collapsed .brand { flex-direction: column; padding: 4px 0 14px; gap: 8px; }
  .sidebar.is-collapsed .collapse-btn { margin: 0; }
  .sidebar.is-collapsed .nav-item { justify-content: center; padding: 8px 0; position: relative; }
  .sidebar.is-collapsed .nav-item .count { position: absolute; top: 1px; right: 4px; font-size: 10px; padding: 0 4px; line-height: 14px; }
  .sidebar.is-collapsed .nav-group { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .sidebar.is-collapsed .proj-dot { width: 8px; height: 8px; }
  .nav-collapsed .main-col { margin-left: 64px; }
}
@media (max-width: 1000px) { .collapse-btn { display: none; } }

/* Déclencheur de recherche et palette de commandes */
.search-trigger {
  flex: 1; max-width: 460px; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 8px; color: var(--fg-3); cursor: pointer; text-align: left; transition: border-color 0.12s, box-shadow 0.12s;
}
.search-trigger:hover { border-color: var(--border-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.search-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-placeholder { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger .search-kbd { position: static; }
.palette-layer { align-items: flex-start; padding-top: min(12vh, 120px); }
.palette {
  position: relative; z-index: 1; width: min(640px, calc(100vw - 32px)); max-height: min(560px, 76vh); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22); overflow: hidden; animation: pop 0.14s ease-out;
}
@keyframes pop { from { transform: translateY(-6px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--fg-3); }
.palette-input input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; font-size: 16px; color: var(--fg); outline: none; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { overflow-y: auto; padding: 6px; flex: 1; }
.palette-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3); padding: 10px 10px 4px; font-weight: 500; }
.palette .search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--fg-2); }
.palette .search-item .icon { flex: none; color: var(--fg-3); }
.palette .search-item.is-active { background: var(--accent-soft); color: var(--fg); }
.palette .search-item.is-active .icon { color: var(--accent); }
.cmd-text { flex: 1; min-width: 0; display: grid; }
.cmd-text .search-title { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-text .search-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.palette-foot kbd { margin-right: 3px; }
.shortcuts { display: grid; gap: 0; margin: 0; }
.shortcuts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); align-items: center; }
.shortcuts div:first-child { border-top: 0; }
.shortcuts dd { margin: 0; color: var(--fg-2); }

/* Barre mobile et bouton flottant */
.mobile-bar, .fab { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 28;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-tab { display: grid; justify-items: center; gap: 1px; padding: 6px 0 4px; border: 0; background: none; color: var(--fg-3); font-size: 11px; cursor: pointer; border-radius: 8px; min-height: 48px; }
  .mobile-tab.is-active { color: var(--accent); font-weight: 600; }
  .mobile-icon { position: relative; display: grid; place-items: center; }
  .mobile-count { position: absolute; top: -4px; right: -10px; background: var(--accent); color: var(--accent-fg); font-size: 10px; font-weight: 600; border-radius: 999px; padding: 0 5px; line-height: 15px; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 28; width: 52px; height: 52px; border-radius: 50%;
    border: 0; background: var(--accent); color: var(--accent-fg); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); cursor: pointer;
  }
  .fab:active { transform: scale(0.96); }
  main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .topbar .capture-btn { display: none; }
  .search-trigger { height: 34px; }
  .search-trigger .search-kbd { display: none; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .palette-layer { padding-top: 12px; }
  .palette { max-height: calc(100vh - 24px); }
  .palette-foot { display: none; }
  .shortcuts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Toasts en bas à droite sur ordinateur */
@media (min-width: 721px) {
  .toasts { left: auto; right: 24px; transform: none; width: min(400px, calc(100vw - 48px)); }
}
.toast { border-radius: 10px; padding: 11px 12px 11px 14px; }

/* Entrée de page */
.page-anim { animation: page-in 0.2s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Panneaux : actions fixées en bas */
.drawer-body > .panel-actions { position: sticky; bottom: -24px; margin: 4px -20px -24px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(6px); z-index: 2; }

/* Cockpit */
.today { color: var(--fg-3); }
.day-summary { color: var(--fg); font-weight: 500; }
.more-link { margin-top: -14px; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s; position: relative; overflow: hidden;
}
.stat:hover { border-color: var(--border-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transform: translateY(-1px); }
.stat-value { font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--fg-2); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.stat-critical::before { background: var(--critical); }
.stat-critical .stat-value { color: var(--critical); }
.stat-warning::before { background: var(--warning); }
.stat-warning .stat-value { color: var(--warning); }
.stat-neutral .stat-value { color: var(--fg); }

.focus {
  display: grid; gap: 10px; padding: 20px 22px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}
.focus .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.focus h2 { font-size: 20px; line-height: 1.3; }
.focus h2 .row-title { font-size: inherit; font-weight: 600; text-align: left; }
.focus-next { display: flex; gap: 6px; align-items: baseline; color: var(--fg-2); }
.focus-next .icon { position: relative; top: 2px; color: var(--accent); flex: none; }

.prio-item { grid-template-columns: 14px 22px minmax(0, 1fr) auto; border-radius: 8px; transition: background 0.12s; cursor: grab; }
.prio-item:hover { background: var(--surface-2); }
.prio-item:hover .drag-handle { opacity: 1; }
.drag-handle { color: var(--fg-3); opacity: 0.35; font-size: 12px; letter-spacing: -2px; padding-top: 2px; user-select: none; }
.prio-item.is-dragging { opacity: 0.45; }
.prio-item.is-over { box-shadow: inset 0 2px 0 var(--accent); }
.move { display: flex; flex-direction: column; gap: 2px; }

.resume-list { display: grid; }
.resume-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.resume-item:first-child { border-top: 0; padding-top: 2px; }
.resume-main { display: grid; gap: 2px; min-width: 0; }
.resume-main .row-title { text-align: left; }

.journeys { display: grid; gap: 10px; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface); }
.journeys-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.journeys h2 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.journeys-count { font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 8px; }
.journeys-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.journeys-bar span { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
.journey-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; padding: 0; margin: 0; list-style: none; }
.journey-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--fg-2); cursor: help; }
.journey-check { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; margin-top: 2px; }
.journey-list li.is-done { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.journey-list li.is-done .journey-check { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.follow .tabs { margin-top: -4px; }
.wait-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.block { display: block; }

@media (max-width: 1180px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat-value { font-size: 20px; }
  .focus { padding: 16px; }
  .focus h2 { font-size: 17px; }
  .prio-item { grid-template-columns: 22px minmax(0, 1fr); cursor: default; }
  .drag-handle { display: none; }
  .resume-item { flex-direction: column; align-items: flex-start; }
  .journey-list { grid-template-columns: minmax(0, 1fr); }
  .wait-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Lignes de tableau entièrement cliquables */
tr.row-click { cursor: pointer; }
tr.row-click:hover td { background: var(--surface-2); }
.search-trigger { min-width: 0; }
@media (max-width: 720px) {
  .interrupt-btn span { display: none; }
  .interrupt-btn { padding: 0 9px; }
  .search-placeholder { font-size: 13px; }
}
@media (max-width: 720px) {
  .interrupt-banner { flex-wrap: wrap; }
  .interrupt-banner .interrupt-text { flex: 1 1 calc(100% - 40px); }
  .interrupt-banner .btn { margin-left: 28px; }
}
@media (max-width: 720px) { .stats .stat:last-child { grid-column: 1 / -1; } }
.palette-layer .scrim { background: color-mix(in srgb, var(--scrim) 100%, transparent); backdrop-filter: blur(2px); }
.palette { border-color: var(--border-strong); }

/* ===================================================================
   Version 5 : suite de logiciels (connexion, lanceur, console)
   =================================================================== */
:root { --ease: cubic-bezier(0.2, 0.7, 0.1, 1); --ease-in: cubic-bezier(0.4, 0, 1, 1); }
.stage { animation: stage-in 0.32s var(--ease) both; }
.stage.is-leaving { animation: stage-out 0.22s var(--ease-in) both; }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stage-out { to { opacity: 0; } }
.stage-outil .main-col { animation: app-in 0.45s var(--ease) both; }
.stage-outil .sidebar { animation: side-in 0.45s var(--ease) both; }
@keyframes app-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes side-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .stage-outil .sidebar { animation: none; } }

/* Marque */
.suite-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--fg); }
.suite-brand.is-light { color: #f2f5f4; }
.suite-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; padding: 5px; border-radius: 8px; background: var(--fg); }
.suite-mark span { width: 9px; height: 9px; border-radius: 2.5px; background: var(--surface); opacity: 0.9; }
.suite-mark span:nth-child(2) { background: #7fb5aa; opacity: 1; }
.suite-brand.is-light .suite-mark { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.suite-brand.is-light .suite-mark span { background: #f2f5f4; }
.suite-brand.is-light .suite-mark span:nth-child(2) { background: #8fd0c2; }

/* Vignettes d'outils */
.tool-icon {
  --h: 168; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: hsl(var(--h) 42% 94%); color: hsl(var(--h) 48% 30%); box-shadow: inset 0 0 0 1px hsl(var(--h) 35% 86%);
}
.tool-icon.small { width: 32px; height: 32px; border-radius: 9px; }
.tool-icon.large { width: 64px; height: 64px; border-radius: 18px; }
.tool-icon.neutral { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
.tool-icon.on-dark { background: hsl(var(--h) 35% 30% / 0.35); color: hsl(var(--h) 60% 80%); box-shadow: inset 0 0 0 1px hsl(var(--h) 40% 70% / 0.2); width: 34px; height: 34px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-icon:not(.on-dark):not(.neutral) { background: hsl(var(--h) 28% 18%); color: hsl(var(--h) 55% 74%); box-shadow: inset 0 0 0 1px hsl(var(--h) 30% 28%); } }
:root[data-theme="dark"] .tool-icon:not(.on-dark):not(.neutral) { background: hsl(var(--h) 28% 18%); color: hsl(var(--h) 55% 74%); box-shadow: inset 0 0 0 1px hsl(var(--h) 30% 28%); }

.avatar { --h: 168; display: inline-grid; place-items: center; border-radius: 50%; flex: none; font-weight: 600; color: hsl(var(--h) 45% 28%); background: linear-gradient(135deg, hsl(var(--h) 40% 88%), hsl(var(--h) 35% 80%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 55% 82%); background: linear-gradient(135deg, hsl(var(--h) 30% 26%), hsl(var(--h) 30% 20%)); } }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 55% 82%); background: linear-gradient(135deg, hsl(var(--h) 30% 26%), hsl(var(--h) 30% 20%)); }

/* ---------- Barre de la suite ---------- */
.suite-page { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.suite-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 32px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--border);
}
.suite-home { border: 0; background: none; padding: 4px 6px; margin-left: -6px; border-radius: 8px; cursor: pointer; }
.suite-home:hover { background: var(--surface-2); }
.crumb-sep { color: var(--border-strong); }
.suite-crumb { font-weight: 500; color: var(--fg-2); }
.suite-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.switcher { position: relative; }
.user-btn { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; display: grid; transition: box-shadow 0.15s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--surface-3); }
.popover.apps-pop, .popover.user-pop { border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--border); border: 0; animation: pop 0.16s var(--ease) both; transform-origin: top right; }
.apps-pop { left: 0; right: auto; width: 320px; transform-origin: top left; }
/* Dans la barre du haut d'un logiciel (à droite de l'écran) : le menu s'ouvre vers la gauche (15/10). */
.suite-top-right .apps-pop { left: auto; right: 0; transform-origin: top right; max-height: calc(100vh - 80px); overflow-y: auto; }
.apps-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3); padding: 6px 8px 8px; font-weight: 500; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.apps-item { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 12px; text-align: center; color: var(--fg-2); line-height: 1.25; }
.apps-item:hover { background: var(--surface-2); color: var(--fg); }
.apps-item.is-current { background: var(--accent-soft); color: var(--fg); font-weight: 500; }
.apps-all, .menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--fg-2); text-align: left; }
.apps-all { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; padding-top: 11px; }
.apps-all:hover, .menu-item:hover { background: var(--surface-2); color: var(--fg); }
.user-pop { width: 300px; }
.user-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.user-head p { line-height: 1.35; }
.topbar .apps-btn { margin-right: 2px; }

/* ---------- Logiciel pas encore construit ---------- */
.placeholder { display: grid; place-items: center; padding: 72px 24px; }
.placeholder-card { width: min(560px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); animation: card-in 0.5s var(--ease) both; }
.placeholder-card h1 { font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.placeholder-card > p:last-of-type { color: var(--fg-2); max-width: 46ch; margin: 6px 0 10px; }
.row.center { justify-content: center; }

/* ---------- Console d'administration ---------- */
.console { max-width: 1180px; margin: 0 auto; padding: 36px 32px 120px; display: grid; gap: 24px; }
.console-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; animation: rise-in 0.45s var(--ease) both; }
.console-head h1 { font-size: 28px; letter-spacing: -0.02em; }
.console-head p { max-width: 70ch; margin-top: 4px; }
.console-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.people { position: sticky; top: 76px; display: grid; gap: 10px; animation: rise-in 0.45s var(--ease) both 0.05s; }
.people ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.person { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; transition: background 0.15s; }
.person:hover { background: var(--surface-2); }
.person.is-active { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border); }
.person-text { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.person-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.status-dot.is-on { background: #3d9a6a; box-shadow: 0 0 0 3px color-mix(in srgb, #3d9a6a 18%, transparent); }
.fiche { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px 28px; display: grid; gap: 18px; animation: fiche-in 0.35s var(--ease) both; }
@keyframes fiche-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.fiche-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fiche-id { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.fiche-id h2 { font-size: 21px; letter-spacing: -0.015em; }
.fiche-active { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-2); }
.fiche-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fiche-fields input, .modal .field input { height: 38px; border-radius: 9px; }
.fiche-fields input[type="email"], .modal .field input[type="email"] { border: 1px solid var(--border-strong); background: var(--surface); padding: 0 10px; border-radius: 9px; height: 38px; }
.fiche-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); font-weight: 600; margin-top: 6px; }
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.access-row { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s; }
.access-row.is-on { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface)); }
.access-main { display: flex; align-items: center; gap: 12px; }
.access-text { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.access-detail { display: grid; gap: 12px; padding: 12px 0 2px 44px; animation: rise-in 0.3s var(--ease) both; }
.visibility { display: grid; gap: 8px; justify-items: start; }
.project-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--fg-2); transition: all 0.15s; }
.pchip:hover { border-color: var(--fg-3); color: var(--fg); }
.pchip.is-on { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.warn-text { color: var(--warning); width: 100%; }
.switch { position: relative; width: 40px; height: 24px; border-radius: 999px; border: 0; background: var(--border-strong); cursor: pointer; flex: none; transition: background 0.2s; padding: 0; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.22s var(--ease); }
.switch.is-on { background: var(--accent); }
.switch.is-on .switch-knob { transform: translateX(16px); }
.switch:disabled { opacity: 0.45; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.access-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.access-log li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.save-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; width: min(760px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--fg); color: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.25s;
}
.save-bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.save-bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.save-bar .btn-ghost { color: var(--surface); opacity: 0.8; }
.save-bar .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; color: var(--surface); }
.save-bar .btn-primary { background: var(--surface); color: var(--fg); border-color: var(--surface); }
.console-note { display: flex; gap: 8px; align-items: center; }

/* ---------- Module : lecture par projet ---------- */
.brand-mark .icon { color: var(--surface); }
.nav-main .nav-item { font-size: 14px; padding: 8px 10px; font-weight: 500; }
.nav-pct { margin-left: auto; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; flex: none; }
.nav-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: none; border-radius: 5px; color: var(--fg-3); cursor: pointer; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-toggle:hover { color: var(--fg); background: var(--surface-2); }
.nav-toggle .chev { margin-left: auto; display: inline-grid; transition: transform 0.2s var(--ease); transform: rotate(-90deg); }
.nav-global.is-open .nav-toggle .chev { transform: none; }
.nav-global .nav { animation: rise-in 0.25s var(--ease) both; }
@media (min-width: 1001px) { .sidebar.is-collapsed .nav-toggle { justify-content: center; padding: 8px 0; } }

.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: -10px; }
.projects-layout.single { grid-template-columns: minmax(0, 1fr); }
.project-title-row h1 { font-size: 26px; letter-spacing: -0.02em; }
.scope-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }

.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pcard {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), border-color 0.2s, transform 0.25s var(--ease); animation: card-in 0.45s var(--ease) both;
}
.pcard:hover { box-shadow: 0 10px 28px rgba(20, 24, 26, 0.07); border-color: var(--border-strong); }
.pcard.is-interrupted { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.pcard.is-dormant { opacity: 0.75; }
.pcard-rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.pcard:first-child .pcard-rank { background: var(--fg); color: var(--surface); }
.pcard-body { display: grid; gap: 8px; min-width: 0; }
.pcard-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcard-title { border: 0; background: none; padding: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); cursor: pointer; text-align: left; }
.pcard-title:hover { color: var(--accent); }
.pcard-why { font-size: 12px; color: var(--accent); font-weight: 500; background: var(--accent-soft); padding: 1px 9px; border-radius: 999px; }
.pcard.is-interrupted .pcard-why { color: var(--warning); background: var(--warning-soft); }
.pcard-progress { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 12px; align-items: center; }
.pcard-next { font-size: 13.5px; }
.pcard-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mchip { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font-weight: 500; }
.mchip.is-critical { background: var(--critical-soft); color: var(--critical); }
.mchip.is-warning { background: var(--warning-soft); color: var(--warning); }
.pcard-subs { list-style: none; margin: 4px 0 0; padding: 6px 0 0; border-top: 1px solid var(--border); display: grid; }
.sub-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; }
.sub-row:hover { background: var(--surface-2); }
.sub-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-open { align-self: center; }
.pcard-open .icon { transition: transform 0.2s var(--ease); }
.pcard:hover .pcard-open .icon { transform: translateX(3px); }

.segmented.small button { font-size: 12.5px; padding: 3px 10px; min-height: 26px; }
.by-project { display: grid; gap: 14px; }
.bp-group { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; animation: rise-in 0.3s var(--ease) both; }
.bp-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: var(--surface-2); cursor: pointer; text-align: left; }
.bp-head:hover .bp-name { color: var(--accent); }
.bp-name { font-weight: 600; flex: 1; min-width: 0; }
.bp-pct { font-size: 12px; font-weight: 600; color: var(--accent); }
.bp-group ul { list-style: none; margin: 0; padding: 4px 14px; }
.bp-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.bp-item:first-child { border-top: 0; }
.bp-item .prio-rank { width: 18px; }
.bp-meta { display: inline-flex; gap: 12px; margin-left: auto; font-size: 12.5px; }

.reports-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.2s; }
.reports-banner:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); }
.reports-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.reports-banner .link-btn { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Adaptation ---------- */
@media (max-width: 1000px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-aside { display: none; }
  .login-mobile-brand { display: block; margin-bottom: 28px; }
  .login-main { place-items: start center; padding-top: 56px; align-content: start; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-layout { grid-template-columns: minmax(0, 1fr); }
  .people { position: static; }
  .people ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .person { width: auto; flex: none; }
  .person-text .small { display: none; }
}
@media (max-width: 720px) {
  .suite-top { padding: 10px 16px; gap: 8px; }
  .suite-top .demo-badge, .hide-s { display: none; }
  .suite-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .launcher { padding: 28px 16px 64px; gap: 20px; }
  .launcher-hero h1 { font-size: 27px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tool-card { min-height: 0; padding: 16px; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .tool-card-top { grid-row: span 3; margin: 0; }
  .tool-card-top .tool-go { display: none; }
  .tool-foot { grid-column: 2; padding-top: 6px; }
  .console { padding: 24px 16px 120px; }
  .fiche { padding: 18px 16px; border-radius: 14px; }
  .fiche-fields { grid-template-columns: minmax(0, 1fr); }
  .access-detail { padding-left: 0; }
  .access-log li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .demo-list { grid-template-columns: minmax(0, 1fr); }
  .login-main { padding: 32px 16px 72px; }
  .pcard { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .pcard-rank { display: none; }
  .pcard-open { justify-self: start; }
  .pcard-progress { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .save-bar { flex-direction: column; align-items: stretch; bottom: 12px; }
  .apps-pop { position: fixed; left: 12px; right: 12px; top: 56px; width: auto; }
  .user-pop { position: fixed; right: 12px; left: 12px; top: 56px; width: auto; }
  .topbar .apps-btn { display: none; }
}

.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.brand { align-items: center; }
@media (max-width: 720px) { .suite-top:has(.suite-crumb) .suite-brand > span:last-child { display: none; } }
/* 17/11/2026 : le logo est devenu .wordmark (texte dans .wm-text) ; la règle ci-dessus ne le visait plus et, dans un outil,
   « Suite Zeia » poussait les boutons de droite hors de l'écran (17 px de trop à 390 px de large). */
@media (max-width: 720px) { .suite-top:has(.suite-crumb) .suite-home .wm-text { display: none; } }
@media (max-width: 420px) { .suite-top-right { gap: 4px; } }

/* ===================================================================
   Version 6 : identité Suite Zayah
   Une seule audace : les icônes d'application. Tout le reste reste calme.
   =================================================================== */
:root {
  --display: 'Zayah Display', 'IBM Plex Sans', system-ui, sans-serif;
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ios: cubic-bezier(0.32, 0.72, 0, 1);
  --z-mark-bg: #171a21;
  --aura-1: rgba(44, 199, 170, 0.16);
  --aura-2: rgba(176, 145, 255, 0.14);
  --aura-3: rgba(255, 198, 94, 0.10);
  --badge: #e5484d;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --z-mark-bg: #262c38; --aura-1: rgba(44, 199, 170, 0.12); --aura-2: rgba(140, 110, 255, 0.12); --aura-3: rgba(255, 170, 80, 0.06); } }
:root[data-theme="dark"] { --z-mark-bg: #262c38; --aura-1: rgba(44, 199, 170, 0.12); --aura-2: rgba(140, 110, 255, 0.12); --aura-3: rgba(255, 170, 80, 0.06); }

/* Marque */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.wm-text { font-family: var(--display); font-size: 17px; letter-spacing: -0.015em; white-space: nowrap; }
.wm-suite { font-weight: 420; color: var(--fg-2); }
.wm-name { font-weight: 720; }
.zayah-mark { flex: none; display: block; }
.zayah-mark .zm-bg { fill: var(--z-mark-bg); }
.zayah-mark .zm-bar { stroke: #fff; }

/* Icônes d'application */
.app-icon {
  position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 23.5%;
  color: var(--icon-ink); background: linear-gradient(150deg, var(--icon-c1), var(--icon-c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.12),
    0 1px 1.5px rgba(16, 20, 28, 0.16), 0 10px 22px -10px var(--icon-glow);
}
.app-icon::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 46%); }
.app-icon svg { position: relative; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16)); overflow: visible; }
.app-icon.is-dim { filter: saturate(0.5); opacity: 0.8; }
.app-badge {
  position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center;
  background: var(--badge); color: #fff; font: 600 12.5px/1 var(--font-ui); box-shadow: 0 0 0 2.5px var(--bg), 0 2px 6px rgba(229, 72, 77, 0.35);
}
.brand .app-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(16, 20, 28, 0.2); }

/* Fond commun : halo très léger aux couleurs de la suite, immobile */
.signin-aura, .home-aura {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(42% 38% at 12% 8%, var(--aura-1), transparent 70%), radial-gradient(40% 40% at 92% 18%, var(--aura-2), transparent 70%), radial-gradient(50% 40% at 50% 110%, var(--aura-3), transparent 70%);
}

/* ---------- Connexion ---------- */
.signin { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); overflow: hidden; }
.signin > :not(.signin-aura) { position: relative; z-index: 1; }
.signin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 32px; }
.signin-main { display: grid; justify-items: center; align-content: center; gap: 22px; padding: 24px 16px 40px; }
.constellation { display: flex; gap: 12px; margin-bottom: 6px; }
.const-item { display: block; transform: translateY(var(--y)) rotate(var(--r)); animation: const-in 0.7s var(--spring) both; animation-delay: calc(0.08s + var(--i) * 0.06s); }
@keyframes const-in { from { opacity: 0; transform: translateY(calc(var(--y) + 28px)) rotate(0deg) scale(0.6); } }
.constellation.is-merging .const-item { animation: none; transition: transform 0.5s var(--ios), opacity 0.4s ease; transition-delay: calc(var(--i) * 0.02s); transform: translate(var(--dx), 60px) scale(0.3); opacity: 0; }
.signin-card {
  width: min(400px, 100%); display: grid; gap: 16px; padding: 28px 28px 26px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 1px 2px rgba(16, 20, 28, 0.04), 0 24px 60px -24px rgba(16, 20, 28, 0.22);
  animation: card-rise 0.6s var(--ios) both 0.15s;
}
@keyframes card-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.signin-head { display: grid; gap: 6px; margin-bottom: 2px; }
.signin-head h1 { font-family: var(--display); font-size: 28px; font-weight: 680; letter-spacing: -0.025em; line-height: 1.15; }
.signin-head p { color: var(--fg-2); }
.signin-card .field > label { font-size: 13px; font-weight: 500; color: var(--fg); }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 13px; color: var(--fg-3); pointer-events: none; }
.input-icon input {
  width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.people .input-icon input { height: 36px; border-radius: 9px; font-size: 13.5px; }
.input-icon input:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--border-strong)); }
.input-icon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input-icon input[aria-invalid="true"] { border-color: var(--critical); }
.input-action { position: absolute; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--fg-3); border-radius: 8px; cursor: pointer; }
.input-action:hover, .input-action[aria-pressed="true"] { color: var(--fg); background: var(--surface-2); }
.form-error { display: flex; gap: 8px; align-items: center; color: var(--critical); background: var(--critical-soft); padding: 9px 12px; border-radius: 10px; font-size: 13px; animation: shake 0.35s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.form-ok { display: flex; gap: 8px; align-items: center; color: var(--ok); background: var(--ok-soft); padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.btn-large { height: 46px; border-radius: 12px; font-size: 15px; width: 100%; margin-top: 4px; }
.btn-large:active:not(:disabled) { transform: scale(0.985); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-accounts { width: min(560px, 100%); display: grid; justify-items: center; gap: 10px; animation: card-rise 0.6s var(--ios) both 0.3s; }
.demo-accounts > p { font-size: 12.5px; color: var(--fg-3); text-align: center; }
.demo-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.demo-account {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-size: 13px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); transition: border-color 0.15s, background 0.15s;
}
.demo-account:hover { border-color: var(--border-strong); background: var(--surface); }
.demo-account.is-active { border-color: var(--accent); background: var(--accent-soft); }
.demo-name { font-weight: 500; }
.demo-role { color: var(--fg-3); font-size: 12px; }
.signin-foot { text-align: center; padding: 0 16px 22px; font-size: 12px; color: var(--fg-3); }

/* ---------- Accueil de la suite ---------- */
.home-page { position: relative; }
.home-page > :not(.home-aura):not(.launch-veil) { position: relative; z-index: 1; }
.home-page .suite-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.home { max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; display: grid; justify-items: center; gap: 44px; }
.home-hero { text-align: center; display: grid; gap: 4px; animation: card-rise 0.5s var(--ios) both; }
.home-date { color: var(--fg-3); font-size: 14px; }
.home-date::first-letter { text-transform: uppercase; }
.home-hero h1 { font-family: var(--display); font-size: 44px; font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; }
.home-grid { display: grid; grid-template-columns: repeat(4, 132px); gap: 34px 26px; justify-content: center; }
.app-tile {
  display: grid; justify-items: center; align-content: start; gap: 11px; padding: 6px 4px; border: 0; background: none; cursor: pointer; color: var(--fg);
  border-radius: 18px; -webkit-tap-highlight-color: transparent;
  animation: tile-in 0.65s var(--spring) both; animation-delay: calc(0.12s + var(--i) * 0.045s);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(0.86); } to { opacity: 1; transform: none; } }
.app-tile .app-icon { transition: transform 0.4s var(--spring), box-shadow 0.3s ease; }
.app-tile:hover .app-icon { transform: translateY(-5px) scale(1.045); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.12), 0 2px 3px rgba(16, 20, 28, 0.12), 0 22px 36px -14px var(--icon-glow); }
.app-tile:active .app-icon { transform: scale(0.94); transition-duration: 0.12s; }
.app-tile:focus-visible { outline: none; }
.app-tile:focus-visible .app-icon { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent); }
.app-name { font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: center; max-width: 128px; text-wrap: balance; }
.app-tile.is-soon .app-name { color: var(--fg-2); }
.app-soon { margin-top: -6px; font-size: 11.5px; color: var(--fg-3); }
.home-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-3); text-align: center; animation: card-rise 0.5s var(--ios) both 0.5s; }
.home-keys kbd { margin: 0 2px; }
@media (hover: none) { .home-keys { display: none; } }

/* Ouverture d'un logiciel : l'icône s'agrandit jusqu'à remplir l'écran */
.launch-veil {
  position: fixed; z-index: 90; overflow: hidden; display: grid; place-items: center; border-radius: 23.5%;
  background: linear-gradient(150deg, var(--icon-c1), var(--icon-c2));
  transition: top 0.48s var(--ios), left 0.48s var(--ios), width 0.48s var(--ios), height 0.48s var(--ios), border-radius 0.48s var(--ios);
}
.launch-veil.phase-1, .launch-veil.phase-2 { top: 0; left: 0; width: 100vw; height: 100vh; border-radius: 0; }
.veil-content { display: grid; justify-items: center; gap: 16px; opacity: 0; transform: scale(0.7); transition: opacity 0.3s ease 0.12s, transform 0.5s var(--spring) 0.08s; }
.launch-veil.phase-1 .veil-content, .launch-veil.phase-2 .veil-content { opacity: 1; transform: none; }
.veil-content .app-icon { box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.veil-name { font-family: var(--display); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.launch-veil[style*="--icon-c1: #F6F7FA"] .veil-name { color: #2f3644; text-shadow: none; }
.veil-settle { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity 0.22s ease; }
.launch-veil.phase-2 .veil-settle { opacity: 1; }

/* Barre de la suite, menus, écrans secondaires */
.suite-home { border: 0; background: none; padding: 4px 6px; margin-left: -6px; border-radius: 10px; cursor: pointer; color: inherit; }
.apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.apps-item { padding: 12px 4px 10px; gap: 8px; border-radius: 12px; }
.apps-item .app-icon { transition: transform 0.3s var(--spring); }
.apps-item:hover .app-icon { transform: translateY(-2px) scale(1.04); }
.apps-item.is-current { background: var(--surface-2); }
.apps-title { text-transform: none; letter-spacing: -0.01em; font-family: var(--display); font-size: 14px; font-weight: 650; color: var(--fg); padding: 6px 10px 8px; }
.apps-all .app-icon { box-shadow: none; }
.placeholder-card { border-radius: 24px; padding: 44px 32px 36px; }
.placeholder-card h1 { font-family: var(--display); font-weight: 680; font-size: 30px; letter-spacing: -0.03em; margin-top: 10px; }
.placeholder-tag { color: var(--fg-3); margin-top: -6px; }
.placeholder-card .app-icon { animation: tile-in 0.6s var(--spring) both; }
.console-head h1, .fiche-id h2 { font-family: var(--display); letter-spacing: -0.025em; font-weight: 680; }
.console-head h1 { font-size: 32px; }
.access-main .app-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(16, 20, 28, 0.15); }

@media (max-width: 1000px) { .home-grid { grid-template-columns: repeat(4, 112px); gap: 28px 14px; } }
@media (max-width: 720px) {
  .signin-top { padding: 16px; }
  .signin-top .demo-badge { display: none; }
  .signin-main { align-content: start; padding-top: 12px; gap: 18px; }
  .constellation { gap: 6px; }
  .const-item .app-icon { width: 44px !important; height: 44px !important; }
  .signin-card { padding: 22px 18px; border-radius: 18px; }
  .signin-head h1 { font-size: 24px; }
  .home { padding: 20px 16px 56px; gap: 30px; }
  .home-hero h1 { font-size: 32px; }
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; width: 100%; }
  .app-tile .app-icon { width: 68px !important; height: 68px !important; }
  .app-tile .app-icon svg { width: 40px; height: 40px; }
  .app-name { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .const-item, .app-tile { animation: none; } }
.apps-item { align-content: start; }
.brand { gap: 9px; padding: 4px 4px 18px 6px; }
.brand-name { font-family: var(--display); font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.home { padding-top: max(48px, 7vh); }

/* ===================================================================
   Version 7 : direction unique « Contour, clair minéral, verre »
   Une seule règle pour toute la suite (accueil, connexion, administration,
   logiciels) : fond minéral, contenu net sur papier blanc, éléments flottants
   en verre, icônes au trait, une seule couleur d'accent.
   =================================================================== */
:root {
  --bg: #e9eeeb; --surface: #ffffff; --surface-2: #f3f6f4; --surface-3: #e3e9e6; --border: #dbe2de; --border-strong: #c3cdc8;
  --fg: #14221d; --fg-2: #4a5a53; --fg-3: #77877f; --accent: #0f6e56; --accent-fg: #ffffff; --accent-soft: #dcefe6;
  --chart-cur: #0f6e56; --chart-prev: #a9b7b1; --chart-area: rgba(15, 110, 86, 0.08); --scrim: rgba(14, 26, 22, 0.3);
  --seg-valide: #0f6e56; --seg-livre: #8fc6b2; --seg-encours: #d8c58f; --seg-afaire: #e2e8e5;
  --shadow: 0 1px 2px rgba(14, 30, 24, 0.05), 0 12px 32px -8px rgba(14, 30, 24, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.58); --glass-bg-strong: rgba(255, 255, 255, 0.74); --glass-edge: rgba(20, 44, 36, 0.09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 1px 2px rgba(14, 30, 24, 0.05), 0 10px 30px -12px rgba(14, 30, 24, 0.2);
  --glass-blur: blur(22px) saturate(1.6);
  --depth-1: rgba(15, 110, 86, 0.11); --depth-2: rgba(110, 145, 132, 0.16); --depth-3: rgba(255, 255, 255, 0.7);
  --radius-card: 14px;
  --badge: #0f6e56;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412; --surface: #151c19; --surface-2: #1a2320; --surface-3: #212b27; --border: #26312c; --border-strong: #35423c;
    --fg: #e3ebe7; --fg-2: #a4b3ac; --fg-3: #72827a; --accent: #5ccaa5; --accent-fg: #052a20; --accent-soft: #12302a;
    --chart-cur: #5ccaa5; --chart-prev: #4c5a54; --chart-area: rgba(92, 202, 165, 0.1); --scrim: rgba(0, 0, 0, 0.55);
    --seg-valide: #5ccaa5; --seg-livre: #2f6656; --seg-encours: #6f6238; --seg-afaire: #26302c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 36, 32, 0.55); --glass-bg-strong: rgba(26, 36, 32, 0.78); --glass-edge: rgba(255, 255, 255, 0.07);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --depth-1: rgba(92, 202, 165, 0.08); --depth-2: rgba(90, 120, 110, 0.12); --depth-3: rgba(255, 255, 255, 0.02);
    --badge: #5ccaa5;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1412; --surface: #151c19; --surface-2: #1a2320; --surface-3: #212b27; --border: #26312c; --border-strong: #35423c;
  --fg: #e3ebe7; --fg-2: #a4b3ac; --fg-3: #72827a; --accent: #5ccaa5; --accent-fg: #052a20; --accent-soft: #12302a;
  --glass-bg: rgba(26, 36, 32, 0.55); --glass-bg-strong: rgba(26, 36, 32, 0.78); --glass-edge: rgba(255, 255, 255, 0.07);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --depth-1: rgba(92, 202, 165, 0.08); --depth-2: rgba(90, 120, 110, 0.12); --depth-3: rgba(255, 255, 255, 0.02); --badge: #5ccaa5;
}

/* Profondeur minérale derrière tout : ce que le verre laisse deviner */
body { background: var(--bg); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% -5%, var(--depth-1), transparent 70%),
    radial-gradient(50% 45% at 100% 10%, var(--depth-2), transparent 70%),
    radial-gradient(70% 50% at 50% 105%, var(--depth-3), transparent 70%);
}
#root { position: relative; z-index: 1; }
.signin, .suite-page { background: transparent; }

/* Matière verre : uniquement pour ce qui flotte au-dessus du contenu */
.topbar, .sidebar, .suite-top, .popover, .palette, .mobile-bar, .signin-card, .demo-account, .search-trigger, .launch-veil {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.topbar { border-bottom: 1px solid var(--glass-edge); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4); }
.sidebar { border-right: 1px solid var(--glass-edge); box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.45); }
.home-page .suite-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.suite-top { border-bottom: 1px solid var(--glass-edge); }
.popover, .palette, .popover.apps-pop, .popover.user-pop { background: var(--glass-bg-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), 0 24px 60px -20px rgba(14, 30, 24, 0.35); }
.mobile-bar { border-top: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.search-trigger { border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); border-radius: 12px; }
.signin-card { background: var(--glass-bg-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow); border-radius: 20px; }
.demo-account { border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); }
.save-bar { background: color-mix(in srgb, var(--fg) 88%, transparent); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.25); }
.toast { background: color-mix(in srgb, var(--fg) 90%, transparent); backdrop-filter: var(--glass-blur); border-radius: 12px; }

/* Icônes des logiciels : tuile de verre, pictogramme au trait */
.app-icon {
  position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 26%;
  color: var(--fg-2); background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.4s var(--spring), background 0.2s ease;
}
.app-icon::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 38%); opacity: 0.8; }
.app-icon svg { position: relative; filter: none; overflow: visible; }
.app-icon.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--glass-bg-strong)), var(--glass-bg)); }
.app-badge { background: var(--badge); color: var(--accent-fg); box-shadow: 0 0 0 2.5px var(--bg); top: -6px; right: -6px; min-width: 22px; height: 22px; font-size: 12px; }
.brand .app-icon, .apps-all .app-icon, .access-main .app-icon { box-shadow: var(--glass-hi); }

/* Logo */
.zayah-mark .zm-frame { stroke: var(--fg); }
.zayah-mark .zm-z { stroke: var(--accent); }
.zayah-mark .zm-dot { fill: var(--accent); }
.wm-name { font-weight: 650; }

/* Accueil */
.app-tile:hover .app-icon, .app-tile:focus-visible .app-icon { transform: translateY(-4px); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--glass-hi), 0 18px 34px -14px color-mix(in srgb, var(--accent) 45%, transparent); }
.app-tile:active .app-icon { transform: scale(0.95); }
.app-tile:focus-visible .app-icon { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-grid { grid-template-columns: repeat(4, 124px); gap: 36px 28px; }
.app-name { font-weight: 500; font-size: 13px; }
.home-hero h1 { font-weight: 600; letter-spacing: -0.03em; }

/* Connexion : rangée droite, le logiciel principal mis en avant */
.constellation { gap: 10px; }
.const-item { transform: none; animation: const-in2 0.6s var(--spring) both; animation-delay: calc(0.08s + var(--i) * 0.05s); }
@keyframes const-in2 { from { opacity: 0; transform: translateY(16px) scale(0.85); } to { opacity: 1; transform: none; } }
.constellation.is-merging .const-item { transform: translate(var(--dx), 40px) scale(0.4); }
.signin-head h1 { font-weight: 600; }

/* Ouverture d'un logiciel : la tuile de verre s'étend jusqu'à l'écran */
.launch-veil { border-radius: 26%; border: 1px solid var(--glass-edge); background: var(--glass-bg-strong); box-shadow: var(--glass-hi), var(--glass-shadow); }
.launch-veil.phase-1, .launch-veil.phase-2 { border-color: transparent; }
.veil-name { color: var(--fg); text-shadow: none; font-weight: 600; }
.veil-content .app-icon { box-shadow: var(--glass-hi), 0 16px 40px -16px color-mix(in srgb, var(--accent) 50%, transparent); }

/* Même typographie et mêmes rayons dans les logiciels */
.page-head h1, .project-title-row h1, .focus h2, .pcard-title, .console-head h1, .fiche-id h2, .placeholder-card h1, .brand-name, .apps-title, .home-hero h1, .signin-head h1, .veil-name {
  font-family: var(--display); letter-spacing: -0.022em;
}
.page-head h1 { font-size: 27px; font-weight: 620; }
.project-title-row h1 { font-weight: 620; }
.focus h2 { font-weight: 600; }
.section, .pcard, .fiche, .placeholder-card, .access-row, .bp-group, .journeys { border-radius: var(--radius-card); }
.section { border-color: var(--border); box-shadow: 0 1px 2px rgba(14, 30, 24, 0.03); }
.stat { border-radius: 12px; }
.focus { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: inset 3px 0 0 var(--accent), 0 1px 2px rgba(14, 30, 24, 0.04); border-radius: var(--radius-card); }
.nav-item.is-active { background: color-mix(in srgb, var(--accent-soft) 80%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.btn-primary { background: var(--fg); border-color: var(--fg); }
.pcard:first-child .pcard-rank { background: var(--accent); color: var(--accent-fg); }
.pcard-why { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 720px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; }
  .app-tile .app-icon { width: 66px !important; height: 66px !important; }
  .app-tile .app-icon svg { width: 33px; height: 33px; }
  .const-item .app-icon { width: 40px !important; height: 40px !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(255, 255, 255, 0.92); --glass-bg-strong: #fff; }
}
.popover, .palette, .popover.apps-pop, .popover.user-pop { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.pcard-why.is-late { background: var(--critical-soft); color: var(--critical); }
.brand-name { font-size: 14px; }
.collapse-btn { width: 22px; height: 22px; }

/* ===================================================================
   Version 8 : moins de boîtes, typographie système
   - Police des apps Apple (SF Pro sur Mac et iPhone, Segoe UI sur Windows).
   - La structure vient de l'espace, des titres et de filets fins, pas de cadres.
   - Un cadre n'existe que pour ce qui flotte (menus, panneaux, fenêtres).
   - Pas de capitales espacées, pas de pastilles décoratives.
   =================================================================== */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
body { font-family: var(--font-ui); font-size: 14px; letter-spacing: -0.006em; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* Titres sans capitales espacées */
.nav-title, .nav-toggle, .eyebrow, .focus .eyebrow, .brief h3, .fiche-h, .palette-group, .apps-title, .sidebar-projects-title {
  text-transform: none !important; letter-spacing: -0.005em !important; font-size: 12.5px; font-weight: 600; color: var(--fg-3);
}
.focus .eyebrow { color: var(--accent); font-size: 13px; }

/* Sections ouvertes : un titre, de l'espace, un filet */
.section { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; gap: 12px; }
.section-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.page { gap: 36px; }
.cockpit-grid { gap: 48px; }
.col-main, .col-side { gap: 40px; }
.col-side > .section + .section { border-top: 1px solid var(--border); padding-top: 28px; }

/* Compteurs : une ligne de chiffres, pas cinq boîtes */
.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.stat { background: none; border: 0; border-radius: 0; box-shadow: none !important; padding: 2px 28px 2px 0; margin-right: 28px; border-right: 1px solid var(--border); transform: none !important; }
.stat:last-child { border-right: 0; }
.stat::before { display: none; }
.stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stat:hover .stat-label { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.stat-neutral .stat-value { color: var(--fg); }

/* « À faire maintenant » : mis en avant par la taille, pas par un cadre */
.focus { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; gap: 10px; }
.focus h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }

/* Interruption : une ligne, pas un encart */
.interrupt-banner { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 16px; }
.interrupt-banner .icon { color: var(--warning); }

/* Parcours : une liste à cocher posée sur la page */
.journeys { background: none; border: 0; border-radius: 0; padding: 0; }
.journeys-count { background: none; padding: 0; color: var(--fg-3); font-weight: 500; }

/* Raisons, étiquettes, compteurs de projet : du texte, pas des pastilles */
.reason, .mchip, .prio-chip { background: none !important; border: 0 !important; padding: 0 !important; color: var(--fg-3); font-size: 12.5px; }
.reasons { gap: 0; }
.reasons .reason + .reason::before, .pcard-chips .mchip + .mchip::before { content: ', '; color: var(--fg-3); }
.mchip.is-critical { color: var(--critical); }
.mchip.is-warning { color: var(--warning); }
.reason-user { color: var(--accent); }
.pcard-why { background: none !important; padding: 0; color: var(--fg-3); font-weight: 400; font-size: 13px; }
.pcard-why.is-late { color: var(--critical); }
.pcard.is-interrupted .pcard-why { color: var(--warning); }
.kind { background: none; border: 0; padding: 0; color: var(--fg-3); }
.kind-bug { color: var(--critical); background: none; }
.kind-suggestion { background: none; }

/* Projets : une liste, chaque projet séparé par un filet */
.pcards { gap: 0; border-top: 1px solid var(--border); }
.pcard { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 22px 0; box-shadow: none !important; }
.pcard:hover { background: none; }
.pcard:hover .pcard-title { color: var(--accent); }
.pcard.is-interrupted { border-color: var(--border); }
.pcard-rank { background: none !important; color: var(--fg-3) !important; font-size: 22px; font-weight: 300; width: auto; height: auto; place-items: start; line-height: 1.1; }
.pcard:first-child .pcard-rank { color: var(--accent) !important; font-weight: 500; }
.pcard-title { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.pcard-subs { border-top: 0; padding-top: 2px; }
.pcard-open { border-color: transparent; background: none; box-shadow: none; color: var(--fg-2); }
.pcard-open:hover { color: var(--accent); }

/* Alertes, faits, sous-projets, regroupements : filets au lieu de cadres */
.alert-list { gap: 0; }
.alert-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 12px 0; }
.alert-row:hover { background: none; }
.alert-row:hover .alert-title { color: var(--accent); }
.health-line { border: 0 !important; background: none !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; }
.facts { border: 0; background: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; }
.facts div { padding: 12px 20px 12px 0; }
.facts div + div { border-left: 0; padding-left: 20px; border-left: 1px solid var(--border); }
.subproject { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 14px 0; }
.subproject:hover { background: none; }
.bp-group { border: 0; border-radius: 0; }
.bp-head { background: none; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bp-group ul { padding: 0; }
.kpi { background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 4px 16px; box-shadow: none; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi-grid { gap: 0; }
.tab-count { background: none; color: var(--accent); padding: 0; font-weight: 600; }
.tab-count.neutral { background: none; color: var(--fg-3); }

/* Navigation : l'élément actif se lit à la couleur, pas à un bloc */
.nav-item.is-active { background: none; box-shadow: none; color: var(--fg); font-weight: 600; }
.nav-item.is-active .icon { color: var(--accent); }
.nav-item .count { background: none; padding: 0; }
.nav-item .count.count-alert { background: none; color: var(--critical); }

/* Boutons secondaires plus discrets */
.btn:not(.btn-primary) { background: none; box-shadow: none; }
.btn:not(.btn-primary):not(.btn-ghost) { border-color: var(--border-strong); }

/* ---------- Suite : pictogrammes seuls, sans tuile ---------- */
.app-icon { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 50%; color: var(--fg); }
.app-icon::before { display: none; }
.app-icon.is-active { color: var(--accent); }
.app-tile .app-icon svg { width: 46px; height: 46px; stroke-width: 1.25; }
.app-tile:hover .app-icon, .app-tile:focus-visible .app-icon { transform: translateY(-3px); color: var(--accent); box-shadow: none !important; background: none !important; }
.app-tile:focus-visible .app-icon { outline: 1.5px solid var(--accent); outline-offset: 6px; }
.app-tile.is-soon .app-icon { color: var(--fg-3); }
.app-tile.is-soon:hover .app-icon { color: var(--accent); }
.app-badge { top: 2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.home-grid { gap: 44px 32px; }
.app-name { font-size: 13.5px; }
.home-hero h1 { font-weight: 600; letter-spacing: -0.035em; font-size: 46px; }
.const-item .app-icon svg { width: 26px; height: 26px; }
.constellation { gap: 22px; color: var(--fg-3); }
.wordmark { gap: 8px; }
.zayah-mark .zm-z { stroke: var(--fg); }
.wm-text { font-size: 16px; }
.wm-suite { font-weight: 400; color: var(--fg-3); }
.wm-name { font-weight: 600; }

/* Connexion : le formulaire posé sur la page */
.signin-card { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0; width: min(360px, 100%); }
.signin-head h1 { font-size: 30px; }
.demo-account { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; padding: 2px 8px 2px 2px; }
.demo-account:hover .demo-name, .demo-account.is-active .demo-name { color: var(--accent); }
.input-icon input { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* Ouverture d'un logiciel : un fondu sur le fond, le pictogramme au centre */
.launch-veil { background: var(--bg) !important; border: 0 !important; box-shadow: none !important; border-radius: 50%; }

/* Administration et écrans secondaires */
.fiche { background: none; border: 0; padding: 0; }
.access-list { gap: 0; border-top: 1px solid var(--border); }
.access-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 14px 0; background: none !important; }
.person.is-active { background: none; box-shadow: none; }
.person.is-active .fw-500 { color: var(--accent); }
.placeholder-card { background: none; border: 0; box-shadow: none; }
.console-card { border: 0; }
.interrupt-banner + .stats, .more-link + .stats { border-top: 0; padding-top: 4px; }
.tag { background: none !important; padding: 0; font-weight: 500; }

/* ===================================================================
   Version 9 : signature « iPhone » et chiffres en héros
   - Grands titres ; quand ils ont défilé, un titre compact apparaît dans la
     barre, qui devient alors en verre (comme les barres d'iOS).
   - Ressorts physiques sur ce qui s'ouvre et sur chaque appui.
   - Les chiffres qui comptent s'affichent en grand et défilent jusqu'à leur valeur.
   =================================================================== */
:root { --spring-soft: cubic-bezier(0.22, 1.25, 0.36, 1); --spring-press: cubic-bezier(0.3, 1.6, 0.5, 1); }

/* Grands titres */
.page-head h1, .project-title-row h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.page-head { padding-top: 4px; }

/* Barre du haut : transparente en haut de page, verre dès que le titre a défilé */
.topbar { background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 0.25s ease, border-color 0.25s ease; }
.is-scrolled .topbar { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom-color: var(--glass-edge); }
.topbar-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.35s var(--spring-soft), max-width 0.35s ease; }
.is-scrolled .topbar-title { max-width: 320px; opacity: 1; transform: none; }
.search-trigger { transition: max-width 0.35s ease, border-color 0.15s; }
.is-scrolled .search-trigger { max-width: 260px; }

/* Chiffres en héros : Aujourd'hui */
.stats { padding: 18px 0; }
.stat-value { font-size: 40px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 6px; font-size: 13px; }
.stat { padding-right: 36px; margin-right: 36px; }

/* Chiffres en héros : accueil de la suite */
.home-figures { display: flex; justify-content: center; gap: 56px; margin-top: -14px; animation: card-rise 0.6s var(--ios) both 0.15s; }
.figure { display: grid; justify-items: center; gap: 4px; border: 0; background: none; cursor: pointer; color: var(--fg); padding: 4px 8px; border-radius: 12px; transition: transform 0.3s var(--spring-press); }
.figure-n { font-size: 56px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
.figure-l { font-size: 13px; color: var(--fg-3); }
.figure.is-critical .figure-n { color: var(--critical); }
.figure:hover .figure-n { color: var(--accent); }
.figure:hover .figure-l { color: var(--fg-2); }
.figure:active { transform: scale(0.95); }

/* Chiffres en héros : avancement des projets */
.pcard-figure { align-self: center; display: grid; justify-items: end; gap: 2px; border: 0; background: none; cursor: pointer; padding: 0 0 0 16px; color: var(--fg); transition: transform 0.3s var(--spring-press); }
.pcard-figure-n { font-size: 34px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pcard-figure-l { font-size: 12px; color: var(--fg-3); }
.pcard:hover .pcard-figure-n { color: var(--accent); }
.pcard-figure:active { transform: scale(0.95); }
.pcard-progress { grid-template-columns: minmax(0, 360px) auto; }

/* Ressorts : ce qui s'ouvre */
.drawer { animation: drawer-in 0.5s var(--spring-soft) both; }
@keyframes drawer-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { animation: modal-in 0.45s var(--spring-soft) both; border-radius: 18px; }
@keyframes modal-in { from { transform: translateY(14px) scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.popover, .palette { animation: pop-spring 0.38s var(--spring-soft) both; }
@keyframes pop-spring { from { transform: translateY(-6px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { animation: toast-in 0.5s var(--spring-soft) both; }
@keyframes toast-in { from { transform: translateY(18px) scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.page-anim { animation: page-spring 0.5s var(--spring-soft) both; }
@keyframes page-spring { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Ressorts : chaque appui */
.btn, .nav-item, .mobile-tab, .stat, .app-tile, .demo-account, .tab, .segmented button, .icon-btn, .mini-row, .sub-row {
  transition: transform 0.3s var(--spring-press), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active:not(:disabled), .nav-item:active, .mobile-tab:active, .stat:active, .demo-account:active, .tab:active, .segmented button:active, .icon-btn:active, .mini-row:active, .sub-row:active { transform: scale(0.96) !important; transition-duration: 0.08s; }

@media (max-width: 720px) {
  .page-head h1, .project-title-row h1 { font-size: 30px; }
  .stat-value { font-size: 30px; }
  .stat { padding-right: 18px; margin-right: 18px; }
  .home-figures { gap: 22px; margin-top: -6px; }
  .figure-n { font-size: 38px; }
  .figure-l { font-size: 12px; max-width: 90px; text-align: center; }
  .pcard { grid-template-columns: minmax(0, 1fr) auto; }
  .pcard-figure-n { font-size: 26px; }
  .topbar-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .modal, .popover, .palette, .toast, .page-anim, .home-figures { animation: none !important; } }
.pcard-chips { gap: 0; }
.pcard-chips > .muted { margin-left: 12px; }
.pcard-figure.is-count .pcard-figure-n { color: var(--fg-2); font-weight: 500; }
.is-scrolled .topbar { background: color-mix(in srgb, var(--bg) 84%, transparent); }

/* ===================================================================
   Version 10 : ordre et lisibilité
   Le verre ne doit jamais laisser du texte se superposer à du texte.
   - Barres : fond quasi opaque en permanence ; le verre n'est qu'une nuance.
   - Menus, panneaux, navigation mobile : opaques.
   =================================================================== */
:root { --glass-bg: rgba(244, 247, 245, 0.9); --glass-bg-strong: rgba(250, 252, 251, 0.97); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass-bg: rgba(16, 22, 20, 0.9); --glass-bg-strong: rgba(22, 30, 27, 0.97); } }
:root[data-theme="dark"] { --glass-bg: rgba(16, 22, 20, 0.9); --glass-bg-strong: rgba(22, 30, 27, 0.97); }

.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.is-scrolled .topbar { background: var(--glass-bg); border-bottom-color: var(--border); }
.popover, .palette, .popover.apps-pop, .popover.user-pop, .notif-pop { background: var(--surface) !important; }
.mobile-bar { background: color-mix(in srgb, var(--surface) 96%, transparent); }

@media (max-width: 1000px) {
  .sidebar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sidebar.is-open { box-shadow: 0 0 0 100vmax var(--scrim); }
}
@media (max-width: 720px) {
  /* Sans flou sur la barre, les menus en position fixe se calent sur l'écran et non sur la barre */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .is-scrolled .topbar { background: var(--bg); }
  .popover.notif-pop, .popover.user-pop, .popover.apps-pop { position: fixed; left: 12px; right: 12px; top: calc(56px + env(safe-area-inset-top, 0px)); width: auto; max-height: calc(100vh - 160px); overflow: auto; }
  main { padding-top: 12px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 16px 0; }
  .stat { border-right: 0; margin-right: 0; padding-right: 0; }
  .stats .stat:last-child { grid-column: auto; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 12px; }
}
.mobile-bar { background: color-mix(in srgb, var(--surface) 98%, transparent); }
.journeys { border-top: 1px solid var(--border); padding-top: 28px; }

/* ===================================================================
   Version 11 : tout sur un écran, et confortable à tout âge
   - Aujourd'hui et Projets tiennent dans la hauteur de l'écran : pas de
     longue page à faire défiler ; chaque colonne défile seule si besoin.
   - Texte plus grand et plus contrasté par défaut, cibles plus larges,
     réglage « Confort de lecture » (taille du texte, contraste renforcé).
   =================================================================== */
:root { --zoom: 1; --fg-3: #5f6d66; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fg-3: #8b9a93; } }
html[data-text] #root { zoom: var(--zoom); }
html[data-contrast="fort"] { --fg: #08110d; --fg-2: #25332d; --fg-3: #3f4d47; --border: #b4c0ba; --border-strong: #85948d; }
@media (prefers-color-scheme: dark) { html[data-contrast="fort"]:not([data-theme="light"]) { --fg: #ffffff; --fg-2: #d6e0db; --fg-3: #b3c1ba; --border: #46534d; --border-strong: #64736c; } }

/* Lisibilité par défaut */
body { font-size: 15px; }
.small, .hint, .muted.small, .stat-label, .figure-l, .pcard-figure-l, .app-soon, .demo-role, .search-sub, .tree-note, .kv > span, .mini-row, .alert-top, .prio-meta, .reasons, .reason, .pcard-why, .mchip, .kind, .tag { font-size: 13px; }
.btn { height: 38px; font-size: 14px; }
.btn-small { height: 32px; font-size: 13.5px; }
.icon-btn { width: 38px; height: 38px; }
.icon-btn.small { width: 28px; height: 28px; }
.nav-item { padding: 9px 10px; font-size: 14.5px; }
.nav-small .nav-item { font-size: 14px; padding: 7px 10px; }
.tab { padding: 10px 12px; font-size: 14.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Aujourd'hui sur un seul écran ---------- */
main:has(.today-page), main:has(.split) { padding-bottom: 18px; }
.today-page { position: relative; height: calc((100dvh - 56px - 26px - 18px) / var(--zoom)); min-height: 560px; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 16px; align-content: start; }
.today-page .page-head { padding-top: 0; }
.today-page .page-head h1 { font-size: 32px; }
.today-page .interrupt-banner { padding-bottom: 12px; }
.today-page .stats { padding: 10px 0; }
.today-page .stat-value { font-size: 30px; }
.today-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 0; min-height: 0; }
.today-left { overflow: auto; min-height: 0; padding-right: 32px; display: grid; gap: 30px; align-content: start; scrollbar-gutter: stable; }
.today-right { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--border); padding-left: 28px; }
.today-right .tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
.today-panel { overflow: auto; min-height: 0; padding: 16px 4px 8px 0; scrollbar-gutter: stable; }
.today-panel > .section > .section-head h2, .today-panel > .section > .section-head .hint { display: none; }
.today-panel > .section > .section-head { justify-content: flex-end; }
.today-panel .section-head:empty { display: none; }
.tab-count.is-critical { color: var(--critical); }
/* Parcours de validation : un menu déroulant, pas un bloc de page */
.today-page .journeys { position: absolute; right: 0; top: 64px; z-index: 25; width: min(760px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(14, 30, 24, 0.35); padding: 20px 22px; animation: pop-spring 0.35s var(--spring-soft) both; }
.btn .journeys-count { color: var(--accent); font-weight: 600; }

/* ---------- Projets : liste et projet côte à côte ---------- */
.split { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); height: calc((100dvh - 56px - 26px - 18px) / var(--zoom)); min-height: 560px; max-width: 1480px; margin: 0 auto; }
.split-list { overflow: auto; min-height: 0; padding-right: 20px; border-right: 1px solid var(--border); scrollbar-gutter: stable; }
.split-detail { overflow: auto; min-height: 0; padding: 0 4px 24px 32px; scrollbar-gutter: stable; }
.split-list .page, .split-detail .page { max-width: none; gap: 22px; }
.split-list .page-head h1 { font-size: 32px; }
.pcards.is-compact { border-top: 0; }
.pcards.is-compact .pcard { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 14px 10px; border-radius: 12px; border-bottom: 0; margin-bottom: 2px; cursor: pointer; }
.pcards.is-compact .pcard:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pcards.is-compact .pcard.is-selected { background: var(--surface); box-shadow: 0 1px 2px rgba(14, 30, 24, 0.06), 0 0 0 1px var(--border) !important; }
.pcards.is-compact .pcard-next, .pcards.is-compact .pcard-chips, .pcards.is-compact .pcard-progress { display: none; }
.pcards.is-compact .pcard-title { font-size: 16px; }
.pcards.is-compact .pcard-rank { font-size: 17px; }
.pcards.is-compact .pcard-figure-n { font-size: 22px; }
.pcards.is-compact .pcard-subs { margin-top: 2px; }
.pcards.is-compact .sub-row { font-size: 14px; padding: 5px 8px; }
.split-detail .crumbs:empty { display: none; }

@media (max-width: 1000px) {
  .today-page { height: auto; min-height: 0; }
  .today-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .today-left { overflow: visible; padding-right: 0; }
  .today-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .today-panel { overflow: visible; }
  .today-page .journeys { position: static; width: auto; }
}
.comfort { display: grid; gap: 10px; padding: 10px 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.section .comfort { border-bottom: 0; padding: 0; max-width: 420px; }
.comfort-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.comfort .segmented button { min-width: 40px; justify-content: center; font-weight: 600; }
.comfort .size-0 { font-size: 13px; } .comfort .size-1 { font-size: 16px; } .comfort .size-2 { font-size: 19px; }
.today-left, .today-panel, .split-list, .split-detail { position: relative; }
.today-page .page-sub { flex-wrap: wrap; gap: 6px 12px; }
.today-page .day-summary { font-weight: 600; }
.pcards.is-compact .pcard-figure { align-self: start; padding-top: 2px; }
.pcards.is-compact .sub-row .muted { display: none; }
.pcards.is-compact .pcard-subs { grid-column: 2 / -1; }
.pcards.is-compact .pcard-body { display: contents; }
.pcards.is-compact .pcard-head { grid-column: 2; }
.pcards.is-compact .pcard-figure { grid-column: 3; grid-row: 1; }
.pcards.is-compact .pcard-rank { grid-row: 1; }

/* ===================================================================
   Version 12 : retours de l'utilisateur sur la maquette
   =================================================================== */
/* Accueil : une seule rangée de logiciels, alignés en haut */
.home { gap: 40px; }
.home-grid { grid-template-columns: repeat(6, 128px); gap: 28px 20px; align-items: start; }
.app-tile { align-content: start; }
.app-name { min-height: 2.6em; }
.home-summary { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--fg-2); margin-top: -18px; padding: 6px 10px; border-radius: 10px; text-align: center; line-height: 1.5; }
.home-summary strong { color: var(--fg); font-weight: 600; }
.home-summary .is-critical { color: var(--critical); font-weight: 600; }
.home-summary .icon { color: var(--accent); transition: transform 0.25s var(--spring-press); }
.home-summary:hover { color: var(--fg); }
.home-summary:hover .icon { transform: translateX(3px); }
.admin-link { color: var(--fg-2); }

/* Compte : pictogramme au trait et prénom, pas de pastille */
.user-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); background: var(--surface); }
.user-btn:hover, .user-btn[aria-expanded="true"] { box-shadow: none; border-color: var(--border-strong); }
.user-glyph { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); border: 1px solid var(--border); }
.user-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.avatar { background: none !important; color: var(--fg-2) !important; border: 1px solid var(--border-strong); font-weight: 600; }

/* Connexion : sans rangée d'icônes, comptes de démonstration repliés */
.signin-main { gap: 28px; }
.demo-accounts { width: min(360px, 100%); display: block; animation: none; }
.demo-accounts summary { cursor: pointer; font-size: 13.5px; color: var(--fg-3); list-style: none; text-align: center; padding: 6px; border-radius: 8px; }
.demo-accounts summary::-webkit-details-marker { display: none; }
.demo-accounts summary:hover { color: var(--fg); }
.demo-accounts[open] summary { color: var(--fg-2); }
.demo-accounts > p { font-size: 13px; color: var(--fg-3); text-align: center; margin: 2px 0 8px; }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.demo-list li { border-bottom: 1px solid var(--border); }
.demo-account { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px !important; border-radius: 0; font-size: 14px; }
.demo-role { font-size: 13px; color: var(--fg-3); }

/* Menu : ce sur quoi on travaille */
.nav-now { margin-bottom: 18px; }
.now-task { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: color-mix(in srgb, var(--accent-soft) 60%, transparent); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.now-task:hover { background: var(--accent-soft); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.now-text { display: grid; gap: 2px; min-width: 0; }
.now-title { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.35; }
.now-project { font-size: 12.5px; color: var(--fg-3); }
@media (min-width: 1001px) { .sidebar.is-collapsed .nav-now { display: none; } }

@media (max-width: 1000px) { .home-grid { grid-template-columns: repeat(3, 120px); } }
@media (max-width: 720px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-summary { font-size: 15px; margin-top: -8px; }
  .user-name { display: none; }
  .user-btn { padding: 2px; border: 0; background: none; }
}
.home-summary { display: inline-block; }
.home-summary .icon { vertical-align: -3px; margin-left: 4px; }
.demo-list { justify-content: stretch; width: 100%; }

/* ===================================================================
   Suivi administratif › Abonnements (même système : liste à gauche,
   détail à droite, un seul écran, rappel bien visible)
   =================================================================== */
.btn-danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 35%, var(--border-strong)) !important; }
.btn-danger:hover:not(:disabled) { background: var(--critical-soft) !important; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 24px 32px 18px; }
.subs { height: calc((100dvh - 64px - 42px) / var(--zoom)); min-height: 560px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
.subs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.subs-head h1 { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.035em; }
.subs-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--fg-2); margin-top: 4px; }
.subs-sub strong { color: var(--fg); }
.is-due { color: var(--critical) !important; }
.subs-body { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); min-height: 0; }
.subs-list { overflow: auto; min-height: 0; padding-right: 20px; border-right: 1px solid var(--border); position: relative; scrollbar-gutter: stable; }
.subs-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.subs-group { font-size: 13px; font-weight: 600; color: var(--fg-3); margin: 18px 0 6px; }
.subs-list .segmented { margin-bottom: 4px; }
.sub-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; }
.sub-row:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.sub-row.is-selected { background: var(--surface); box-shadow: 0 1px 2px rgba(14, 30, 24, 0.06), 0 0 0 1px var(--border); }
.sub-main { display: grid; flex: 1; min-width: 0; }
.sub-name { font-weight: 600; font-size: 15px; }
.sub-meta { font-size: 13px; color: var(--fg-3); }
.sub-when { font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.sub-when.is-due { font-weight: 600; }
.sub-logo { flex: none; display: grid; place-items: center; border-radius: 26%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-weight: 600; letter-spacing: -0.02em; overflow: hidden; }
.sub-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; background: #fff; }
.subs-detail { overflow: auto; min-height: 0; padding: 4px 4px 24px 36px; display: grid; gap: 22px; align-content: start; position: relative; animation: page-spring 0.4s var(--spring-soft) both; }
.sub-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-hero h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.sub-price { margin-left: auto; display: grid; justify-items: end; }
.sub-price strong { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sub-price span { font-size: 13px; color: var(--fg-3); }
.sub-reminder { display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); }
.sub-reminder-q { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.sub-reminder input[type="text"] { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); padding: 0 12px; background: var(--surface); }
.sub-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sub-facts div { padding: 14px 16px 14px 0; }
.sub-facts div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.sub-facts dt { font-size: 13px; color: var(--fg-3); }
.sub-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.sub-facts select { height: 34px; }
.sub-auto { display: flex; gap: 8px; align-items: baseline; color: var(--fg-2); font-size: 14px; }
.sub-auto .icon { color: var(--accent); position: relative; top: 3px; flex: none; }
.logo-drop { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1.5px dashed var(--border-strong); border-radius: 14px; transition: border-color 0.15s, background 0.15s; }
.logo-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop-text { display: grid; gap: 2px; font-size: 14px; }
.modal .logo-drop { margin-bottom: 14px; }
.sub-history h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.sub-history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sub-history li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.home-summary-2 { margin-top: -30px; }

@media (max-width: 900px) {
  .admin-main { padding: 16px 16px 90px; }
  .subs { height: auto; }
  .subs-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .subs-list { border-right: 0; padding-right: 0; overflow: visible; }
  .subs-detail { padding: 0; border-top: 1px solid var(--border); padding-top: 20px; overflow: visible; }
  .sub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); }
  .sub-facts div:nth-child(4) { border-top: 1px solid var(--border); }
  .home-summary-2 { margin-top: -18px; }
}
.home-grid { grid-template-columns: repeat(auto-fit, 128px); max-width: 900px; width: 100%; }
.sub-auto { display: block; }
.sub-auto .icon { margin-right: 6px; }
@media (max-width: 720px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Automatisations */
.auto-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 4px; background: var(--border-strong); }
.auto-dot.is-active { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.auto-dot.is-pause { background: var(--warning); }
.auto-dot.is-a_construire { background: none; border: 1.5px dashed var(--fg-3); }
.auto-dot.is-ko { background: var(--critical); box-shadow: 0 0 0 4px color-mix(in srgb, var(--critical) 16%, transparent); }
.auto-toggle { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auto-trigger { display: flex; gap: 8px; align-items: baseline; font-size: 15px; }
.auto-trigger .icon { color: var(--accent); position: relative; top: 2px; flex: none; }
.auto-h { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.auto-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.auto-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.auto-step:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 1.5px; background: var(--border-strong); }
.auto-step-n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: var(--fg-2); background: var(--bg); }
.auto-step.is-valider .auto-step-n { border-color: var(--warning); color: var(--warning); }
.auto-step > div { display: grid; gap: 2px; padding-top: 5px; }
.auto-preview { border-left: 2px solid var(--border-strong); padding: 6px 12px; display: grid; gap: 4px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.home { max-width: 1120px; }
.home-grid { max-width: 1080px; grid-template-columns: repeat(auto-fit, 124px); gap: 28px 18px; }

/* Schéma de workflow */
.flow { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; gap: 16px 30px; }
.flow-node { position: relative; width: 172px; display: grid; gap: 6px; align-content: start; padding: 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.flow-node:not(:last-child)::after { content: ''; position: absolute; right: -24px; top: 28px; width: 18px; height: 1.5px; background: var(--fg-3); }
.flow-node:not(:last-child)::before { content: ''; position: absolute; right: -24px; top: 24.5px; width: 7px; height: 7px; border-top: 1.5px solid var(--fg-3); border-right: 1.5px solid var(--fg-3); transform: rotate(45deg); }
.flow-node.is-trigger { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.flow-node.is-valider { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); }
.flow-head { display: flex; align-items: center; gap: 8px; }
.flow-head .app-icon { color: var(--fg); }
.flow-node.is-trigger .flow-head .app-icon { color: var(--accent); }
.flow-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--fg); flex: none; }
.flow-mark.is-human { color: var(--warning); }
.flow-step { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.flow-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.flow-tool { font-size: 12.5px; color: var(--fg-2); }
.flow-lock { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--accent); }
.flow.is-compact .flow-node { width: 150px; padding: 10px; }
.flow-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.flow-tool-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; cursor: pointer; color: var(--fg); }
.flow-tool-link:hover { border-color: var(--accent); color: var(--accent); }
.flow-tool-link.is-static { cursor: default; color: var(--fg-2); }
.flow-tool-link.is-static:hover { border-color: var(--border); color: var(--fg-2); }
.auto-plain { display: grid; gap: 4px; font-size: 15px; }
.auto-note { display: flex; gap: 6px; align-items: baseline; color: var(--warning); font-size: 14px; }
.auto-note .icon { position: relative; top: 2px; flex: none; }
.proj-autos { display: grid; gap: 28px; }
.proj-auto { display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.proj-auto:last-child { border-bottom: 0; }
.proj-auto-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-auto-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.proj-auto-head .link-btn { margin-left: auto; }
.auto-state { font-size: 12.5px; font-weight: 600; }
.auto-state.is-active { color: var(--accent); }
.auto-state.is-pause { color: var(--warning); }
.auto-state.is-a_construire { color: var(--fg-3); }
@media (max-width: 720px) {
  .flow { flex-direction: column; gap: 22px; }
  .flow-node, .flow.is-compact .flow-node { width: 100%; }
  .flow-node:not(:last-child)::after { right: auto; left: 26px; top: auto; bottom: -18px; width: 1.5px; height: 14px; }
  .flow-node:not(:last-child)::before { right: auto; left: 23px; top: auto; bottom: -18px; transform: rotate(135deg); }
}

/* ===== Hub API ===== */
.hub .subs-head .segmented button { white-space: nowrap; }
.hub-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; min-height: 0; overflow: auto; position: relative; padding-bottom: 24px; }
.hub-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.hub-h { font-size: 1.02rem; font-weight: 600; margin: 8px 0 0; }
.hub-alerts, .hub-projects, .hub-workflows, .hub-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hub-alerts button, .hub-projects button, .hub-workflows button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; width: 100%; padding: 11px 12px; border-radius: 12px; transition: background 0.2s var(--ios); }
.hub-alerts button:hover, .hub-projects button:hover, .hub-workflows button:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.hub-alerts button:focus-visible, .hub-projects button:focus-visible, .hub-workflows button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hub-alerts li + li, .hub-projects li + li, .hub-workflows li + li, .hub-list li + li { border-top: 1px solid var(--line, rgba(0,0,0,.07)); }
.hub-alert-sev { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.hub-alert.is-bloquant .hub-alert-sev { color: var(--danger, #b42318); }
.hub-alert.is-attention .hub-alert-sev { color: var(--warn, #9a6200); }
.hub-list li { display: grid; gap: 2px; padding: 10px 0; }
.hub-flow { overflow-x: auto; }
.lifeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.lifeline li { display: grid; gap: 6px; font-size: 0.78rem; color: var(--muted); position: relative; }
.lifeline-dot { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.lifeline li.is-done .lifeline-dot { background: var(--accent); }
.lifeline li.is-current .lifeline-dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lifeline li.is-current { color: var(--text); font-weight: 600; }
.api-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; }
.api-facts > div { display: grid; gap: 2px; min-width: 0; }
.api-facts dt { font-size: 0.82rem; color: var(--muted); }
.api-facts dd { margin: 0; overflow-wrap: anywhere; }
.api-facts .api-note { grid-column: 1 / -1; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.api-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--text) 25%, transparent); }
.api-dot.is-active { background: var(--accent); }
.api-dot.is-configuree, .api-dot.is-testee, .api-dot.is-en_validation { background: var(--warning); }
.api-dot.is-documentee, .api-dot.is-qualifiee { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.api-dot.is-suspendue { background: var(--danger, #b42318); }
.hub .warn-text { color: var(--warning); width: auto; }
.http { font: 600 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.api-table code, .hub-catalog code { font-size: 0.85em; }
.cap.is-yes { color: var(--accent); display: inline-flex; }
.cap.is-no { color: var(--muted); }
.block { display: block; }
.hub-catalog { display: grid; gap: 14px; align-content: start; min-height: 0; overflow: auto; position: relative; }
.hub-search { max-width: 520px; }
.hub .tabs { overflow-x: auto; scrollbar-width: none; }
@media (max-width: 900px) {
  .hub-overview { grid-template-columns: 1fr; gap: 20px; }
  .api-facts { grid-template-columns: 1fr; }
  .lifeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .hub .subs-head .segmented { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .subs-head > div, .subs-head > form { min-width: 0; max-width: 100%; }
  .subs { grid-template-columns: minmax(0, 1fr); }
  .subs-sub { flex-wrap: wrap; }
  .subs-sub > * { white-space: normal; min-width: 0; }
  .hub .subs-head .row { flex-wrap: wrap; width: 100%; }
  .hub .subs-head .segmented { width: 100%; }
}

/* ===== Éditeur de workflow façon n8n (React Flow) ===== */
.wf { --wf-edge: color-mix(in srgb, var(--fg) 38%, transparent); --wf-dot: color-mix(in srgb, var(--fg) 22%, transparent); --wf-mini: color-mix(in srgb, var(--fg) 30%, transparent); --wf-mask: color-mix(in srgb, var(--bg) 70%, transparent);
  position: relative; border-radius: 16px; overflow: hidden; min-height: 220px; border: 1px solid var(--border); background: color-mix(in srgb, var(--fg) 2.5%, var(--bg)); flex: none; }
.wf .react-flow { --xy-background-color: transparent; --xy-node-border-radius: 14px; --xy-controls-button-background-color: var(--surface); --xy-controls-button-background-color-hover: var(--surface-2, var(--surface)); --xy-controls-button-color: var(--fg-2); --xy-controls-button-border-color: var(--border); --xy-controls-box-shadow: none; --xy-minimap-background-color: var(--surface); --xy-attribution-background-color: transparent; }
.wf .react-flow__attribution { font-size: 9px; opacity: 0.5; }
.wf .react-flow__controls { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wf .react-flow__minimap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wf .react-flow__node { cursor: grab; }
.wf .react-flow__node:active { cursor: grabbing; }
.wf .react-flow__node:focus-visible .wf-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.wf-node { width: 84px; position: relative; }
.wf-box { width: 84px; height: 84px; border-radius: 14px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--fg) 16%, transparent); display: grid; place-items: center; position: relative; color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 18px -10px rgba(0, 0, 0, 0.25); transition: border-color 0.2s var(--ios), box-shadow 0.25s var(--ios), transform 0.3s var(--spring); }
.wf-node:hover .wf-box { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-1px); }
.wf-node.is-trigger .wf-box { border-radius: 42px 14px 14px 42px; color: var(--accent); }
.wf-node.is-human .wf-box { border-color: color-mix(in srgb, var(--warning) 70%, transparent); background: var(--warning-soft); color: var(--warning); }
.wf-node.is-unsure .wf-box { border-style: dashed; }
.wf-node.is-selected .wf-box { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 8px 22px -10px rgba(0, 0, 0, 0.3); }
.wf-bolt { position: absolute; left: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-fg, #fff); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.wf-badge { position: absolute; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); }
.wf-badge.is-lock { top: -8px; right: -8px; color: var(--accent); }
.wf-badge.is-unsure { top: -8px; left: -8px; background: var(--warning); color: var(--surface); border: 0; }
.wf-badge.is-safety { bottom: -8px; right: -8px; color: var(--accent); }
.wf .wf-handle { width: 10px; height: 10px; top: 42px; background: var(--surface); border: 2px solid var(--wf-edge); min-width: 0; min-height: 0; }
.wf-end .wf-handle { top: 19px; opacity: 0; }
.wf-label { position: absolute; top: 94px; left: 50%; transform: translateX(-50%); width: 168px; display: grid; gap: 2px; text-align: center; pointer-events: none; }
.wf-title { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-sub { font-size: 11px; color: var(--fg-3); line-height: 1.25; }
.wf-end { width: 38px; height: 38px; }
.wf-add-end { width: 38px; height: 38px; border-radius: 10px; border: 2px dashed color-mix(in srgb, var(--fg) 30%, transparent); background: var(--surface); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; transition: all 0.2s var(--ios); }
.wf-add-end:hover { border-color: var(--accent); color: var(--accent); }
.wf-insert { position: absolute; pointer-events: all; width: 22px; height: 22px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; opacity: 0.85; transition: all 0.2s var(--ios); }
.wf-insert:hover { opacity: 1; border-color: var(--accent); color: var(--accent); transform: translate(-50%, -50%) scale(1.15) !important; }
.wf-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(300px, calc(100% - 20px)); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 14px; display: grid; gap: 10px; align-content: start; z-index: 6; animation: page-spring 0.35s var(--spring-soft) both; }
.wf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wf-panel-head .fw-500 { display: inline-flex; align-items: center; gap: 6px; }
.wf-add ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wf-add li button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.wf-add li button:hover, .wf-add li button:focus-visible { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.wf-warn { color: var(--warning); display: flex; gap: 6px; align-items: center; font-size: 13px; }
.wf-lockline { color: var(--accent); display: flex; gap: 4px; align-items: center; }
.wf-del { justify-self: start; }

/* Barre « décrire une automatisation » */
.auto-ask { box-sizing: border-box; flex: 1 1 420px; max-width: 620px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.35); transition: border-color 0.2s var(--ios), box-shadow 0.2s var(--ios); }
.auto-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.auto-ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--fg); outline: none; }
.auto-draft .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.auto-edit { display: grid; gap: 10px; margin: 10px 0; max-width: 560px; }
.auto-edit .field input, .auto-edit .field textarea, .auto-edit .field select { width: 100%; }
.sub-history .auto-hist li { grid-template-columns: 130px minmax(0, 1fr); }

/* Fenêtre « Nouvelle automatisation » */
.modal.composer { width: min(1180px, 100%); height: min(760px, calc(100dvh - 32px)); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 16px; }
.modal.composer h2 { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.modal.composer h2 svg { color: var(--accent); }
.composer-body { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 20px; min-height: 0; padding: 10px 20px; }
.composer-left { display: grid; gap: 14px; align-content: start; overflow: auto; min-height: 0; position: relative; padding-right: 4px; }
.composer-left textarea { font-size: 16px; line-height: 1.45; resize: vertical; }
.composer-right { min-height: 0; display: grid; }
.composer-right .wf { height: 100% !important; }
.composer-placeholder { border-radius: 16px; border: 1px dashed var(--border-strong, var(--border)); display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--fg-3); background: color-mix(in srgb, var(--fg) 2.5%, var(--bg)); }
.composer-examples { display: grid; gap: 6px; }
.composer-example { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 13.5px; line-height: 1.35; color: var(--fg-2); transition: all 0.2s var(--ios); }
.composer-example:hover, .composer-example:focus-visible { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.composer-understood { display: grid; gap: 8px; }
.composer-understood ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.composer-understood li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.composer-understood li svg { flex: none; margin-top: 2px; }
.composer-understood li.is-ok svg { color: var(--accent); }
.composer-understood li.is-safety { color: var(--fg-2); }
.composer-understood li.is-safety svg { color: var(--accent); }
.composer-understood li.is-unsure { color: var(--warning); }
.composer-questions { padding: 10px 12px; border-radius: 12px; background: var(--warning-soft); display: grid; gap: 6px; }
.composer-questions ul { padding-left: 18px; list-style: disc; display: grid; gap: 4px; font-size: 13.5px; }
.composer-legal { margin-right: auto; display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
  .composer-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(260px, 1fr); overflow: auto; }
  .composer-left { overflow: visible; }
  .auto-ask { flex-basis: 100%; }
  .wf-panel { top: auto; height: 62%; width: calc(100% - 20px); }
}

/* Version réelle : mot de passe provisoire, double authentification */
.temp-pwd { text-align: center; margin: 8px 0; }
.temp-pwd code { font-size: 1.25rem; letter-spacing: .06em; padding: 8px 14px; border-radius: 10px; background: var(--surface-2, #eef1ef); user-select: all; }
.mfa-qr { width: 196px; height: 196px; margin: 4px auto 8px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line, #dfe4e1); }
.mfa-qr svg { display: block; width: 100%; height: 100%; }
.mfa-secret { margin-bottom: 10px; }
.mfa-secret code { user-select: all; word-break: break-all; }

/* Accueil : la barre du haut (transparente) reste au-dessus de la grille, sinon le bas du menu du compte est incliquable. */
.home-page > .suite-top:not(.home-aura):not(.launch-veil) { z-index: 2; }

/* Logo Zeia : image détourée. Sur fond sombre, ses parties bleu nuit disparaîtraient : pastille claire. */
.zeia-mark, .zeia-logo { display: block; flex: none; object-fit: contain; }
.zeia-logo { margin: 0 auto 6px; }
.signin-head:has(.zeia-logo) { justify-items: center; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zeia-mark, :root:not([data-theme="light"]) .zeia-logo { background: #f4f6f5; border-radius: 22%; padding: 3px; box-sizing: border-box; } }
:root[data-theme="dark"] .zeia-mark, :root[data-theme="dark"] .zeia-logo { background: #f4f6f5; border-radius: 22%; padding: 3px; box-sizing: border-box; }

/* Marqueur d'environnement (dev uniquement) : bien visible, en haut à droite. */
.env-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #7a4a00; background: #ffe2a8; border: 1px solid #f0b445; white-space: nowrap; }
.signin-top .env-badge { margin-left: auto; }

/* Automatisations : bouton de l'IA locale dans la fenêtre « Nouvelle automatisation » */
.composer-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.composer-ai .form-error { flex-basis: 100%; margin: 0; }
.doc-path { overflow-wrap: anywhere; }
.doc-row > .file-badge { min-width: 46px; text-align: center; }

/* ---------- Calendrier d'un projet (dates facultatives) ---------- */
.pcard-due { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; font-size: 12px; color: var(--fg-3); }
.pcard-due.is-warning { color: var(--warning); }
.pcard-due.is-critical { color: var(--critical); font-weight: 500; }
.pcards.is-compact .pcard-due { grid-column: 2 / 3; margin-top: -6px; }
.cal-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; color: var(--fg-3); font-size: 13px; }
.cal-context { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; white-space: pre-line; }
.cal-frise { margin: 8px 0 14px; }
.cal-track { position: relative; height: 6px; margin: 30px 10px 14px; border-radius: 999px; background: var(--surface-3); }
.cal-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.cal-mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--fg-3); }
.cal-mark.is-start { border-color: var(--accent); }
.cal-mark.is-target { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.cal-mark.is-milestone.is-done { background: var(--ok); border-color: var(--ok); }
.cal-today { position: absolute; top: -26px; bottom: -6px; width: 0; border-left: 2px dashed var(--fg-2); }
.cal-today span { position: absolute; top: 0; left: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--fg-2); white-space: nowrap; background: var(--surface); padding: 0 4px; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: 12.5px; color: var(--fg-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .nowrap { font-weight: 600; color: var(--fg); }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--fg-3); }
.cal-legend .is-start .cal-dot { border-color: var(--accent); }
.cal-legend .is-target .cal-dot { border-radius: 2px; transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.cal-legend .is-done .cal-dot { background: var(--ok); border-color: var(--ok); }
.cal-lines { margin: 0 0 8px; padding-left: 18px; }
.cal-lines li { margin: 2px 0; }
.cal-warnings { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.cal-warnings li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--radius); background: var(--warning-soft); color: var(--warning); font-size: 13px; }
.cal-warnings li.is-critical { background: var(--critical-soft); color: var(--critical); }
.cal-warnings .icon { flex: none; margin-top: 2px; }
.cal-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 8px; }
.cal-kind { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--fg-2); }
.cal-kind input[type=radio] { width: auto; flex: none; }
.cal-kind legend { padding: 0; margin-bottom: 4px; font-weight: 500; }
.cal-kind .check { white-space: normal; align-items: flex-start; }
.cal-kind .check input { margin-top: 3px; }
.cal-ms-edit { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.cal-ms-edit li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
@media (max-width: 560px) { .cal-ms-edit li { grid-template-columns: minmax(0, 1fr) auto; } .cal-ms-edit li input[type=date] { grid-column: 1 / -1; } }

/* ---------- Pièces jointes (projets, tâches) et informations du projet ---------- */
.pre-line { white-space: pre-line; }
.project-comments { margin-top: 14px; }
.pj { border-radius: var(--radius); transition: background 0.15s; }
.pj.is-over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 4px; }
.pj .doc-row { gap: 6px; }
.pj-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pj.is-compact .doc-list { margin: 0; }
.pj-viewer { width: min(1100px, calc(100vw - 32px)); height: min(92vh, 1200px); display: flex; flex-direction: column; }
.pj-viewer .modal-head h2 { overflow-wrap: anywhere; }
.pj-viewer-body { flex: 1; overflow: auto; background: var(--surface-2); padding: 16px; }
.pj-pages { display: grid; justify-items: center; gap: 14px; }
.pj-page { max-width: 100%; height: auto; background: #fff; box-shadow: var(--shadow); }
.pj-img { display: block; max-width: 100%; margin: 0 auto; box-shadow: var(--shadow); background: #fff; }
.pj-text { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-wrap; word-break: break-word; font-size: 13px; }
@media (max-width: 640px) { .pj-viewer { height: 100%; width: 100%; border-radius: 0; } .pj .doc-row { flex-wrap: wrap; } }
.fiches-edit { margin-top: 14px; }
.fiches-edit select { box-sizing: border-box; width: 100%; max-width: 520px; margin-top: 6px; }
.pj a.btn { text-decoration: none; }
.fiche-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.fiche-chips .chip { display: inline-flex; align-items: center; gap: 4px; }
.chip-x { border: 0; background: none; padding: 0 2px; font-size: 15px; line-height: 1; color: inherit; cursor: pointer; }
.zr-bouton { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.zr-bouton:hover, .zr-bouton:focus-visible { background: var(--accent); color: var(--accent-fg); }
.zr-ecran { margin: 0 0 12px; padding: 6px 10px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
/* Captures d'écran jointes au retour (14/10/2026) */
.zr-captures { display: grid; gap: 8px; margin: 12px 0 4px; }
.zr-captures-titre { font-size: 13px; font-weight: 600; }
.zr-vignettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zr-vignettes li { position: relative; display: grid; gap: 2px; justify-items: center; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.zr-vignettes img { display: block; width: 112px; height: 72px; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
.zr-vignettes .icon-btn { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; background: var(--surface); }
.zr-captures .btn { justify-self: start; }
@media print { .zr-bouton { display: none; } }
.pj-viewer:focus { outline: none; }

/* Export des bases (src/real/exportBases.tsx) */
.xb-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.xb-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.xb-item p { margin: 0; }
.xb-item.is-echec { border-color: var(--critical, #8B3932); }
.xb-summary { margin-top: 4px !important; font-size: 13px; white-space: pre-line; }

/* Temps estimé du projet (durée des tâches, 14/10/2026) */
.temps-projet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 10px; }
.temps-projet .icon { color: var(--accent); }

/* ---------- Calendrier (CAL-1 / CAL-2, 14/10/2026) ---------- */
.cal-settings { display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.cal-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-set-row > span:first-child { min-width: 130px; color: var(--fg-2); font-weight: 500; }
.cal-num { width: 70px; }
.cal-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; }
.cal-set-note { margin: 4px 0 0; font-size: 12px; }
.cal-plan { padding: 14px 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); display: grid; gap: 10px; }
.cal-plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; }
.cal-plan-actions { display: flex; gap: 6px; }
.cal-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.cal-plan-list li { display: grid; grid-template-columns: 10px 170px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.cal-swatch { width: 10px; height: 10px; border-radius: 3px; }
.cal-plan-when { color: var(--fg-2); white-space: nowrap; }
.cal-plan-title { min-width: 0; }
.cal-plan-btns { display: flex; gap: 10px; }
.cal-plan-foot { margin: 0; font-size: 12.5px; }
.cal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.cal-side { display: grid; gap: 8px; position: sticky; top: 12px; }
.cal-side input { width: 100%; }
.cal-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: calc(100vh - 260px); overflow: auto; }
.cal-tasks li { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); cursor: grab; font-size: 13px; }
.cal-tasks li:active { cursor: grabbing; }
.cal-task-meta { font-size: 11.5px; }
.cal-main { min-width: 0; display: grid; gap: 10px; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cal-week-title { margin-left: 6px; font-size: 14px; }
.cal-weekend { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg-2); }
.cal-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cal-grid { display: grid; min-width: min-content; }
.cal-corner, .cal-dayhead { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--border); }
.cal-dayhead { padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); text-transform: capitalize; border-left: 1px solid var(--border); }
.cal-dayhead.is-today { color: var(--accent); }
.cal-all-day-heading { position: sticky; left: 0; z-index: 1; display: grid; place-items: center; padding: 4px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--fg-3); font-size: 9px; }
.cal-all-day-cell { min-height: 34px; display: grid; align-content: start; gap: 2px; padding: 3px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.cal-absence-tag { min-width: 0; overflow: hidden; padding: 2px 4px; border-left: 2px solid var(--pole,var(--accent)); border-radius: 2px 4px 4px 2px; background: var(--pole-soft,var(--accent-soft)); color: var(--fg-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cal-absence-tag.is-closure { border-left-color: var(--warning); background: var(--warning-soft); color: var(--warning); }
.cal-hours { position: relative; }
.cal-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--fg-3); }
.cal-hours span:first-child { transform: none; }
.cal-day { position: relative; border-left: 1px solid var(--border); background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 48px); background-color: var(--surface-2); }
.cal-work { position: absolute; left: 0; right: 0; background: var(--surface); opacity: 0.85; pointer-events: none; }
.cal-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--critical); z-index: 3; pointer-events: none; }
.cal-bloc { position: absolute; left: 4px; right: 4px; z-index: 1; display: flex; flex-direction: column; gap: 1px; padding: 3px 6px; overflow: hidden; text-align: left; font: inherit; font-size: 12px; line-height: 1.25;
  color: var(--fg); background: color-mix(in srgb, var(--c) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--border)); border-left: 4px solid var(--c); border-radius: 5px; cursor: pointer; min-height: 0; }
.cal-bloc:hover, .cal-bloc.is-active { box-shadow: var(--shadow); }
.cal-bloc.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-bloc.is-proposed { border-style: dashed; border-left-style: dashed; background: color-mix(in srgb, var(--c) 7%, var(--surface)); cursor: default; }
.cal-bloc.is-done { opacity: 0.55; }
.cal-bloc.is-done .cal-bloc-title { text-decoration: line-through; }
.cal-bloc-time { font-size: 11px; color: var(--fg-2); }
.cal-bloc-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.cal-pop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-pop-text { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.cal-pop-btns { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { position: static; }
  .cal-tasks { max-height: 220px; }
  .cal-plan-list li { grid-template-columns: 10px 1fr; }
  .cal-plan-list li .cal-plan-title, .cal-plan-list li .cal-plan-btns { grid-column: 2; }
  .cal-set-row > span:first-child { min-width: 100%; }
}

/* Bouton « Créer » de la barre du haut et projets de groupe (15/10) */
.popover.creer-pop { width: 220px; padding: 4px; }
.creer-item { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 4px; cursor: pointer; text-align: left; font-size: 13px; color: var(--fg); }
.creer-item:hover, .creer-item:focus-visible { background: var(--surface-2); }
.creer-item kbd { margin-left: auto; font-size: 11px; color: var(--fg-3); }
@media (max-width: 760px) { .creer-btn span { display: none; } .creer-btn { padding: 0 9px; } }
.membres-choix { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }
.membres-choix legend { font-size: 12px; color: var(--fg-3); padding: 0 4px; }
.membre-case { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.groupe-case { margin-bottom: 8px; }
.groupe-tag { display: inline-flex; align-items: center; gap: 4px; }

/* Cloche commune (15/10) : bien visible quand il y a du nouveau */
.notif-btn.has-unread { color: var(--critical); background: color-mix(in srgb, var(--critical) 10%, transparent); }
.notif-btn.has-unread .notif-count { min-width: 19px; height: 19px; border-radius: 10px; font-size: 11.5px; top: 0; right: -2px; box-shadow: 0 0 0 2px var(--surface); }
.notif-btn.is-ringing .icon { animation: notif-ring 0.9s ease-in-out 3; transform-origin: 50% 10%; }
@keyframes notif-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .notif-btn.is-ringing .icon { animation: none; } }
.unread-dot { background: var(--accent); }
.notif-tool { font-weight: 600; color: var(--fg-2); }
.notif-tool-crm { color: #477DA5; }
.notif-tool-equipe { color: #8C6D33; }
.notif-tool-zeia { color: var(--accent); }

/* Logo Zeia en haut à gauche d'Organisation projet : retour à l'accueil de la suite (15/10) */
.zeia-home { display: flex; align-items: center; gap: 8px; margin: 0 6px 10px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--fg-2); font-weight: 600; font-size: 13px; }
.zeia-home:hover, .zeia-home:focus-visible { background: var(--surface-2); color: var(--accent); }
.zeia-home .zeia-mark { flex: none; }
.sidebar.is-collapsed .zeia-home { justify-content: center; margin: 0 0 10px; }
.sidebar.is-collapsed .zeia-home-text { display: none; }
.topbar .zeia-home-top { display: none; margin: 0; padding: 4px 6px; }
@media (max-width: 1000px) { .topbar .zeia-home-top { display: flex; } .topbar .zeia-home-top .zeia-home-text { display: none; } }

/* CRM et Suivi équipe affichés dans la suite (15/10) : la page entière sous la barre Zeia */
.tool-frame-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.tool-frame-page .suite-top { flex: none; }
.tool-frame { flex: 1; width: 100%; border: 0; display: block; background: #fff; }

/* Accueil rangé par familles (15/10, proposition à valider par Thomas) */
.home-familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; width: min(1040px, 100%); margin: 0 auto; }
.home-famille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.home-famille-titre { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.home-famille .home-grid { grid-template-columns: repeat(auto-fill, 112px); gap: 22px 18px; justify-content: start; }
@media (max-width: 720px) { .home-familles { grid-template-columns: minmax(0, 1fr); } .home-famille .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Kanban du Suivi équipe dans Organisation projet (15/10) : toute la hauteur sous la barre */
.op-frame-page { height: calc(100vh - 140px); height: calc(100dvh - 140px); min-height: 480px; }
.op-frame { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: block; }

/* Tableau d'un projet (MT-1, 15/10/2026) : colonnes personnalisables, cartes glissées. */
.board-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.board { position: relative; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; scroll-snap-type: x proximity; }
.board-col { flex: 0 0 260px; scroll-snap-align: start; background: var(--surface-2); border: 1px solid var(--border); border-top: 3px solid var(--col, var(--border-strong)); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; transition: box-shadow 0.12s ease, background-color 0.12s ease; }
.board-col.is-over { box-shadow: 0 0 0 2px var(--col, var(--accent)); background: color-mix(in srgb, var(--col, var(--accent)) 8%, var(--surface-2)); }
.board-col-head { display: flex; align-items: center; gap: 7px; color: var(--col, var(--fg-2)); }
.board-col-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--fg); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.board-col-statut { margin: -4px 0 0; font-size: 11.5px; color: var(--fg-3); }
.board-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; cursor: grab; box-shadow: 0 1px 2px rgba(20, 24, 26, 0.05); }
.board-card:active { cursor: grabbing; }
.board-card.is-selected { box-shadow: 0 0 0 2px var(--accent); }
.board-card.is-done .board-card-title { color: var(--fg-3); text-decoration: line-through; }
.board-card-title { all: unset; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--fg); overflow-wrap: anywhere; line-height: 1.35; }
.board-card-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.board-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.board-card-projet { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board.is-glisse { scroll-snap-type: none; }
.board-fantome { position: fixed; z-index: 1000; pointer-events: none; opacity: 0.92; transform: rotate(2deg); box-shadow: 0 10px 28px rgba(20, 24, 26, 0.22); list-style: none; }
.board-card { -webkit-touch-callout: none; }
.board-move { font-size: 12px; min-height: 26px; padding: 2px 6px; color: var(--fg-2); max-width: 100%; }
.board-editor { display: flex; flex-direction: column; gap: 10px; }
.board-editor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-editor-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-left: 4px solid var(--col); border-radius: 8px; background: var(--surface); }
.board-editor-row .input-small { flex: 1 1 160px; min-width: 0; }
.board-editor-actions { flex-wrap: wrap; }
@media (max-width: 720px) {
  .board-col { flex-basis: 82vw; }
}

/* Tâche enrichie (MT-2, 15/10/2026) : modèles de checklist, champs du projet. */
.checklist-modeles { margin-top: 8px; }
.champs-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.champs-editor .board-editor-row { border-left-color: var(--accent); }

/* Page « Aujourd'hui » réglable et « Mon agenda » (MT-6, 15/10/2026). */
.today-body.is-plein { grid-template-columns: minmax(0, 1fr); }
.today-body.is-plein .today-left { padding-right: 0; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.agenda-item .row-title { text-align: left; overflow-wrap: anywhere; }
.agenda-item .prio-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.agenda-item .icon-btn { grid-column: 2; grid-row: 1 / span 2; }
.agenda-item.is-done .row-title { color: var(--fg-3); text-decoration: line-through; }
.compteurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.compteur { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.compteur strong { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--fg); }
.compteur span { font-size: 12.5px; color: var(--fg-2); }
.compteur.tone-critical strong { color: var(--critical); }
.compteur.tone-warning strong { color: var(--warning); }
.compteur:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reglage-dispo { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; background: var(--surface); }
.reglage-dispo .small-h { font-size: 14px; margin: 0; }
.reglage-liste { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }

/* Notes d'un projet (MT-7, 15/10/2026). */
.notes-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 10px; }
.notes-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.notes-item { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.notes-item:hover { background: var(--surface-2); }
.notes-item.is-active { background: var(--accent-soft); }
.notes-item:focus-visible { outline: 2px solid var(--accent); }
.note-edit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.note-titre { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; background: transparent; color: var(--fg); }
.note-titre:hover, .note-titre:focus { border-color: var(--border); background: var(--surface); }
.note-texte { width: 100%; box-sizing: border-box; min-height: 320px; resize: vertical; font: inherit; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); }
.liste-apercu { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
/* Planning déposé → tâches (19/10) */
.planning-import { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.planning-apercu { align-self: stretch; }
.planning-lignes { max-height: 420px; overflow-y: auto; }
.planning-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.planning-ligne input[type="text"], .planning-ligne input[type="date"] { min-width: 0; }
@media (max-width: 560px) { .planning-ligne { grid-template-columns: auto minmax(0, 1fr); } .planning-ligne input[type="date"] { grid-column: 2; } }
.liste-sous { margin: 2px 0 6px 26px; color: var(--fg-2); }
@media (max-width: 860px) { .notes-layout { grid-template-columns: minmax(0, 1fr); } }

/* Chronologie multi-projets et charge (MT-5, 15/10/2026). */
.gantt { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gantt-noms { border-right: 1px solid var(--border); background: var(--surface); }
.gantt-entete { height: 30px; position: relative; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.gantt-nom { all: unset; box-sizing: border-box; display: block; width: 100%; height: 34px; line-height: 34px; padding-right: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-bottom: 1px solid var(--border); }
.gantt-nom:hover, .gantt-nom:focus-visible { background: var(--accent-soft); }
.gantt-defile { overflow-x: auto; min-width: 0; }
.gantt-defile:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gantt-piste { position: relative; }
.gantt-mois { position: absolute; top: 7px; padding-left: 6px; font-size: 11.5px; color: var(--fg-3); white-space: nowrap; }
.gantt-trait { position: absolute; top: 30px; bottom: 0; width: 1px; background: var(--border); }
.gantt-auj { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .7; z-index: 2; }
.gantt-ligne { position: relative; height: 34px; border-bottom: 1px solid var(--border); }
.gantt-barre { position: absolute; top: 11px; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.gantt-barre.is-estimee { background: transparent; border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); top: 10px; height: 10px; }
.gantt-barre.sans-debut { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gantt-jalon { position: absolute; top: 11px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: var(--fg-2); z-index: 3; }
.gantt-jalon.is-fait { background: var(--ok); }
.gantt-tache { all: unset; position: absolute; top: 12px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--fg-2); border: 1px solid var(--surface); cursor: pointer; z-index: 4; }
.gantt-tache.is-retard { background: var(--critical); }
.gantt-tache.is-faite { background: var(--ok); opacity: .6; }
.gantt-tache:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.charge-table td.charge-sur { color: var(--critical); font-weight: 600; background: var(--critical-soft); }
@media (max-width: 720px) { .gantt { grid-template-columns: 130px minmax(0, 1fr); } }

/* Automatisations par colonne (MT-4, 15/10/2026). */
.col-auto { flex: 1 1 100%; margin-top: 2px; }
.col-auto summary { cursor: pointer; color: var(--fg-2); }
.col-auto .row { margin-top: 6px; }
.col-auto-jours { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); }
.col-auto-jours input { width: 70px; }
/* ===================================================================
   Mode daltonien (15/10/2026, demande de Thomas : un collègue est daltonien)
   Réglage « Couleurs pour daltoniens » du menu du compte (classe mode-daltonien sur
   <html>). Le vert des statuts « bon » devient bleu et le rouge devient brique-orangé :
   les deux restent distincts pour un daltonien rouge-vert. Même réglage dans le CRM et
   le Suivi équipe (clé zeia-mode-daltonien, message envoyé aux cadres).
   =================================================================== */
:root.mode-daltonien { --ok: #1f5fa8; --ok-soft: #e3ecf8; --critical: #c2410c; --critical-soft: #fce7db; }
@media (prefers-color-scheme: dark) { :root.mode-daltonien:not([data-theme="light"]) { --ok: #7fb0ea; --ok-soft: #16263b; --critical: #f28c5b; --critical-soft: #3b2014; } }
:root.mode-daltonien[data-theme="dark"] { --ok: #7fb0ea; --ok-soft: #16263b; --critical: #f28c5b; --critical-soft: #3b2014; }

/* Congés & présences : calendrier d’équipe, dans la charte minérale de Zeia. */
.cong-main { max-width: 1240px; padding-top: 30px; padding-bottom: 72px; }
.cong-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.cong-header h1, .cong-onboard h1 { margin: 3px 0 4px; font-family: var(--display); font-size: 32px; line-height: 1.15; letter-spacing: -.035em; }
.cong-header p, .cong-onboard-head p { margin: 0; color: var(--fg-3); font-size: 14px; }
.cong-header .btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 17px; border-radius: 9px; }
.cong-header-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px; }
.cong-eyebrow { color: var(--fg-3); font: 600 10px/1.3 var(--font-mono); letter-spacing: .1em; }
.cong-pending { display: flex; align-items: center; gap: 12px; padding: 12px 15px; margin: 0 0 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface); color: var(--fg-2); }
.cong-pending > .icon { flex: none; color: var(--accent); }
.cong-pending span { display: grid; gap: 2px; }
.cong-pending strong { color: var(--fg); font-size: 13px; font-weight: 600; }
.cong-pending small { color: var(--fg-3); font-size: 12px; }
.cong-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 27px; }
.cong-balance, .cong-team-stat { min-height: 103px; display: grid; align-content: center; gap: 3px; padding: 15px 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.cong-balance > span, .cong-team-stat > span { color: var(--fg-3); font-size: 12px; }
.cong-balance > strong, .cong-team-stat > strong { font-size: 25px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cong-balance > strong small, .cong-team-stat > strong small { color: var(--fg-3); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.cong-balance > i, .cong-team-stat > i { color: var(--fg-3); font-size: 11px; font-style: normal; }
.cong-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 12px; }
.cong-month-nav { display: flex; align-items: center; gap: 9px; }
.cong-month-nav h2 { min-width: 175px; margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: capitalize; letter-spacing: -.02em; }
.cong-arrow, .cong-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg-2); cursor: pointer; }
.cong-arrow:hover, .cong-close:hover { background: var(--surface-2); color: var(--fg); }
.cong-month-nav .btn { margin-left: 4px; }
.cong-filter { display: flex; align-items: center; gap: 9px; color: var(--fg-3); font-size: 12px; }
.cong-filter select { min-width: 160px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--fg); font: inherit; }
.cong-calendar { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cong-weekdays, .cong-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.cong-weekdays { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cong-weekdays span { padding: 10px 12px; color: var(--fg-2); font-size: 11px; font-weight: 600; }
.cong-weekdays .is-weekend { color: var(--fg-3); }
.cong-day, .cong-empty-day { min-width: 0; min-height: 96px; padding: 8px 9px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cong-day:nth-child(7n), .cong-empty-day:nth-child(7n) { border-right: 0; }
.cong-day-top { min-height: 21px; display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.cong-day-number { display: grid; place-items: center; width: 23px; height: 23px; color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.cong-day.is-today .cong-day-number { border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.cong-today-label { color: var(--accent); font-size: 9px; font-weight: 600; }
.cong-day.is-weekend { background: var(--surface-2); }
.cong-day.is-weekend .cong-day-number { color: var(--fg-3); }
.cong-day.is-closed { background: color-mix(in srgb, var(--warning-soft) 48%, var(--surface)); }
.cong-presence-dots { display: flex; align-content: start; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 15px; margin: 6px 0 3px; }
.cong-person-dot, .cong-legend-person { display: inline-block; width: 9px; height: 9px; flex: none; border: 1.5px solid var(--pole, var(--accent)); border-radius: 50%; background: var(--pole, var(--accent)); }
.cong-person-dot.is-absent, .cong-legend-person.is-absent { background: transparent; }
.cong-day-absences { display: grid; gap: 3px; margin-top: 4px; }
.cong-absence { overflow: hidden; padding: 2px 5px; border-left: 2px solid var(--accent); border-radius: 2px 4px 4px 2px; background: var(--accent-soft); color: var(--fg-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cong-more { color: var(--fg-3); font-size: 10px; }
.cong-closure { display: inline-block; margin-top: 4px; padding: 2px 5px; border-radius: 4px; background: var(--warning-soft); color: var(--warning); font-size: 9px; font-weight: 600; }
.pole-comm { --pole: #597a72; --pole-soft: #e9f0ee; }
.pole-jur { --pole: #7a6d8e; --pole-soft: #f0edf4; }
.pole-com { --pole: #a27c49; --pole-soft: #f5f0e7; }
.pole-dev { --pole: #5d7692; --pole-soft: #edf1f5; }
.cong-absence[class*="pole-"] { border-color: var(--pole); background: var(--pole-soft); }
.cong-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 11px 13px; color: var(--fg-3); font-size: 10px; }
.cong-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cong-legend-person { width: 8px; height: 8px; }
.cong-legend-separator { width: 1px; height: 13px; background: var(--border-strong); }
.cong-legend-closure-item { margin-left: auto; }
.cong-legend-closure { width: 9px; height: 9px; border-radius: 2px; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.cong-roster, .cong-upcoming { margin-top: 31px; }
.cong-closure-manager { margin: -4px 0 20px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cong-closure-list { display: grid; margin: 4px 0 13px; border-top: 1px solid var(--border); }
.cong-closure-row { display: flex; align-items: center; gap: 11px; min-height: 42px; border-bottom: 1px solid var(--border); color: var(--fg-3); font-size: 11px; }
.cong-closure-row strong { min-width: 175px; color: var(--fg-2); font-size: 12px; font-weight: 500; }
.cong-closure-row .btn { margin-left: auto; }
.cong-closure-row .btn + .btn { margin-left: 0; }
.cong-closure-form { display: grid; grid-template-columns: minmax(180px,1.6fr) repeat(2,minmax(130px,1fr)) auto; align-items: end; gap: 10px; padding-top: 6px; }
.cong-closure-form label { display: grid; gap: 5px; color: var(--fg-3); font-size: 10px; }
.cong-closure-form input { width: 100%; height: 35px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--fg); font: 11px var(--font-ui); }
.cong-closure-actions { display: flex; gap: 7px; }
.cong-closure-help { margin: 9px 0 0; color: var(--fg-3); font-size: 10px; }
.cong-hours-admin { display: grid; gap: 0; margin: 4px 0 20px; }
.cong-hours-head, .cong-hours-row { display: grid; grid-template-columns: minmax(120px,.7fr) repeat(2,minmax(210px,1fr)); align-items: center; gap: 12px; }
.cong-hours-head { padding: 8px 10px; color: var(--fg-3); font-size: 10px; }
.cong-hours-row { min-height: 43px; border-top: 1px solid var(--border); }
.cong-hours-row strong { padding-left: 10px; color: var(--fg-2); font-size: 11px; font-weight: 500; }
.cong-hours-row > div { display: flex; align-items: center; gap: 7px; }
.cong-hours-row > div span { color: var(--fg-3); font-size: 10px; }
.cong-hours-row .cong-slot-label { display: none; }
.cong-hours-row input { width: 92px; height: 31px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--fg); font: 11px var(--font-ui); }
.cong-hours-admin > .btn { justify-self: start; margin-top: 11px; }
.cong-closure-title { margin-top: 24px; }
.cong-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.cong-section-heading h2 { margin: 3px 0 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cong-section-heading > span { color: var(--fg-3); font-size: 11px; }
.cong-poles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.cong-pole { min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.cong-pole-heading { display: flex; align-items: center; gap: 8px; }
.cong-pole-marker { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--pole, var(--accent)); }
.cong-pole-heading h3 { flex: 1; margin: 0; font-size: 12px; font-weight: 600; }
.cong-pole-heading b { color: var(--fg-3); font-size: 11px; font-weight: 500; }
.cong-pole > p { margin: 10px 0 0 16px; color: var(--fg-3); font-size: 10px; }
.cong-members { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0 0 16px; }
.cong-members span { padding: 3px 7px; border-radius: 5px; background: var(--pole-soft, var(--surface-2)); color: var(--fg-2); font-size: 10px; }
.cong-upcoming ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cong-upcoming li { display: flex; align-items: center; gap: 10px; min-height: 43px; border-bottom: 1px solid var(--border); color: var(--fg-2); font-size: 12px; }
.cong-upcoming li strong { min-width: 130px; color: var(--fg); font-weight: 500; }
.cong-upcoming li time { margin-left: auto; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.cong-onboard { max-width: 760px; padding-top: 55px; }
.cong-onboard-head { max-width: 560px; margin-bottom: 25px; }
.cong-profile-form { max-width: 590px; display: grid; gap: 18px; padding: 23px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.cong-profile-form label, .cong-modal label { display: grid; gap: 6px; color: var(--fg-2); font-size: 12px; font-weight: 500; }
.cong-profile-form input, .cong-profile-form select, .cong-modal input, .cong-modal select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--fg); font: 13px var(--font-ui); }
.cong-profile-form small { color: var(--fg-3); font-size: 10px; font-weight: 400; }
.cong-form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cong-profile-form > .btn { justify-self: start; min-width: 190px; }
.cong-error { padding: 10px 12px; border-radius: 7px; background: var(--critical-soft); color: var(--critical); font-size: 12px; }
.cong-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: var(--scrim); backdrop-filter: blur(3px); }
.cong-modal { width: min(440px,100%); display: grid; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); animation: modal-in .2s ease-out both; }
.cong-modal-head { display: flex; align-items: start; justify-content: space-between; }
.cong-modal-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 22px; letter-spacing: -.025em; }
.cong-close { border: 0; background: var(--surface-2); font-size: 22px; line-height: 1; }
.cong-modal-note { margin: -4px 0 0; color: var(--fg-3); font-size: 11px; }
.cong-modal footer { display: flex; justify-content: end; gap: 8px; margin-top: 2px; }
@media (max-width: 820px) { .cong-poles { grid-template-columns: repeat(2,minmax(0,1fr)); } .cong-day, .cong-empty-day { min-height: 82px; padding: 6px; } .cong-closure-form { grid-template-columns: repeat(2,minmax(0,1fr)); } .cong-closure-form label:first-child { grid-column: 1 / -1; } .cong-hours-head, .cong-hours-row { grid-template-columns: 90px repeat(2,minmax(0,1fr)); gap: 7px; } .cong-hours-row input { width: 80px; } }
@media (max-width: 560px) { .cong-main { padding: 20px 12px 80px; } .cong-header { align-items: start; gap: 10px; } .cong-header h1 { font-size: 25px; } .cong-header p { max-width: 200px; font-size: 12px; } .cong-header .btn { width: 42px; overflow: hidden; gap: 20px; padding: 0 12px; white-space: nowrap; font-size: 0; } .cong-header .btn .icon { width: 17px; } .cong-overview { gap: 7px; margin-bottom: 20px; } .cong-balance, .cong-team-stat { min-height: 84px; padding: 10px 9px; } .cong-balance > span, .cong-team-stat > span { font-size: 10px; } .cong-balance > strong, .cong-team-stat > strong { font-size: 19px; } .cong-balance > i, .cong-team-stat > i { font-size: 9px; } .cong-toolbar { align-items: start; flex-direction: column; gap: 10px; } .cong-month-nav { width: 100%; gap: 6px; } .cong-month-nav h2 { flex: 1; min-width: 0; font-size: 18px; } .cong-filter { width: 100%; justify-content: space-between; } .cong-filter select { flex: 1; } .cong-weekdays span { padding: 7px 2px; text-align: center; font-size: 9px; } .cong-day, .cong-empty-day { min-height: 62px; padding: 3px; } .cong-day-number { width: 19px; height: 19px; font-size: 10px; } .cong-presence-dots { gap: 3px; } .cong-person-dot { width: 7px; height: 7px; } .cong-today-label { display: none; } .cong-day-absences { gap: 2px; } .cong-absence { padding: 2px 3px; font-size: 8px; } .cong-closure { margin-top: 2px; padding: 1px 3px; font-size: 7px; } .cong-legend { padding: 8px; gap: 7px 10px; font-size: 9px; } .cong-legend-separator { display: none !important; } .cong-legend-closure-item { margin-left: 0; } .cong-poles { gap: 7px; } .cong-pole { padding: 10px; } .cong-pole-heading h3 { font-size: 10px; } .cong-members { margin-left: 0; } .cong-members span { font-size: 9px; } .cong-upcoming li { flex-wrap: wrap; gap: 6px; padding: 7px 0; } .cong-upcoming li strong { min-width: 0; } .cong-upcoming li time { margin-left: auto; } .cong-profile-form { padding: 16px; } .cong-form-pair { gap: 8px; } .cong-modal { padding: 18px; } }
@media (max-width: 560px) { .cong-hours-head { display: none; } .cong-hours-row { grid-template-columns: 72px minmax(0,1fr); gap: 4px; padding: 5px 0; } .cong-hours-row strong { grid-row: 1 / span 2; padding-left: 3px; align-self: start; margin-top: 10px; } .cong-hours-row > div { grid-column: 2; gap: 4px; } .cong-hours-row .cong-slot-label { display: inline; min-width: 57px; font-size: 9px; } .cong-hours-row > div span:not(.cong-slot-label) { font-size: 9px; } .cong-hours-row input { width: 73px; } .cong-closure-row { flex-wrap: wrap; } }
@media (max-width: 560px) { .cong-header-actions { gap: 5px; } .cong-header-actions .btn:first-child:not(:last-child) { width: auto; height: 34px; gap: 4px; padding: 0 8px; font-size: 10px; } .cong-closure-manager { padding: 13px; } .cong-closure-row { flex-wrap: wrap; gap: 6px; padding: 7px 0; } .cong-closure-row strong { flex: 1; min-width: 0; } .cong-closure-row .btn { margin-left: 0; } .cong-closure-form { grid-template-columns: 1fr 1fr; } .cong-closure-actions { grid-column: 1 / -1; } }
.cong-closure-cost { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: #f4e8d5; color: #684c1d; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cong-closure-cost.is-offered { background: #e4f2eb; color: #236449; }
.cong-closure-check { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.cong-closure-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Calendrier : jour d'absence ou de fermeture, aucun créneau proposé */
.cal-day.is-blocked{background:repeating-linear-gradient(135deg,var(--surface-2,#F6F7F7) 0 8px,transparent 8px 16px)}

/* ---------- Mon agenda (accueil, 29/10/2026) : une couleur + une icône + un libellé par type ---------- */
/* Accueil : une ligne ; l'agenda complet s'ouvre dans un panneau depuis n'importe quel écran */
.ag-resume { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: -10px; font-size: 14px; color: var(--fg-2); }
.ag-resume-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font: inherit; cursor: pointer; }
.ag-resume-btn .icon { color: var(--accent); }
.ag-resume-btn:hover { border-color: var(--accent); }
.ag-resume-txt { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ag-resume-it { display: inline-flex; gap: 5px; align-items: center; max-width: 220px; border: 0; border-left: 3px solid var(--ag-c); background: color-mix(in srgb, var(--ag-c) 10%, var(--surface)); border-radius: 4px; padding: 2px 8px; font: inherit; font-size: 13px; color: var(--fg); cursor: pointer; }
.ag-resume-it time { color: var(--fg-2); font-size: 12px; }
.ag-resume-it span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-resume-due { color: #8B3932; font-weight: 600; }
.ag-tiroir-scrim { position: fixed; inset: 0; z-index: 55; background: var(--scrim); display: flex; justify-content: flex-end; }
.ag-tiroir { position: relative; width: min(1180px, 100vw); height: 100%; overflow: auto; background: var(--bg); box-shadow: var(--shadow); padding: 14px; animation: ag-glisse .22s ease-out; }
.ag-tiroir .ag { min-height: calc(100% - 4px); }
.ag-tiroir-close { position: absolute; top: 16px; right: 22px; z-index: 2; }
.ag-tiroir .ag-head { padding-right: 34px; }
@keyframes ag-glisse { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ag-tiroir { animation: none; } }
@media (max-width: 720px) { .ag-tiroir { padding: 0; } .ag-tiroir .ag { border-radius: 0; border: 0; } }
.ag { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 18px 14px; display: grid; align-content: start; gap: 12px; text-align: left; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ag-eyebrow { font-size: 11px; letter-spacing: .08em; color: var(--fg-3); font-weight: 600; }
.ag-title h2 { margin: 2px 0 0; font-size: 20px; font-weight: 600; text-transform: none; }
.ag-title h2::first-letter { text-transform: uppercase; }
.ag-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ag-nav { display: flex; gap: 4px; align-items: center; }
.ag-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.ag-arrow:hover { background: var(--surface-2); }
.ag-vues { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ag-vues button { border: 0; background: var(--surface); color: var(--fg-2); padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ag-vues button + button { border-left: 1px solid var(--border); }
.ag-vues button.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-legend button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); border-radius: 999px; padding: 3px 10px 3px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.ag-legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--ag-c); }
.ag-legend button .icon { color: var(--ag-c); }
.ag-legend button.is-off { opacity: .5; text-decoration: line-through; }
.ag-legend button.is-off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ag-c); }
.ag-error { margin: 0; color: var(--critical); background: var(--critical-soft); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.ag-scroll { overflow-x: auto; max-height: 560px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.ag-grid { display: grid; grid-template-columns: 52px repeat(var(--n), minmax(108px, 1fr)); min-width: calc(52px + var(--n) * 108px); position: relative; }
.ag-grid.ag-jour { grid-template-columns: 52px 1fr; min-width: 0; }
.ag-corner, .ag-dayhead { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); }
.ag-dayhead { padding: 6px 8px; display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--fg-3); text-transform: capitalize; border-left: 1px solid var(--border); }
.ag-dayhead b { font-size: 17px; color: var(--fg); font-weight: 600; }
.ag-dayhead.is-today b { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 7px; }
.ag-allday-label { font-size: 10px; color: var(--fg-3); padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--border); }
.ag-allday { border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; display: grid; gap: 3px; align-content: start; min-height: 30px; }
.ag-hours { position: relative; }
.ag-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10px; color: var(--fg-3); }
.ag-hours span:first-child { transform: none; }
.ag-col { position: relative; border-left: 1px solid var(--border); cursor: copy; }
.ag-col.is-weekend, .ag-dayhead.is-weekend { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.ag-col.is-off { cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--surface-2) 0 7px, transparent 7px 14px); }
.ag-line { position: absolute; left: 0; right: 0; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); pointer-events: none; }
.ag-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--critical); z-index: 2; pointer-events: none; }
.ag-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--critical); }
.ag-block { position: absolute; z-index: 1; overflow: hidden; text-align: left; border: 0; border-left: 3px solid var(--ag-c); border-radius: 5px; padding: 2px 6px; font: inherit; font-size: 11.5px; line-height: 1.3; color: var(--fg); cursor: pointer;
  background: color-mix(in srgb, var(--ag-c) 16%, var(--surface)); display: grid; align-content: start; }
.ag-block:hover, .ag-ev:hover { background: color-mix(in srgb, var(--ag-c) 26%, var(--surface)); }
.ag-block-t { display: flex; gap: 4px; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-block-t .icon, .ag-ev .icon { color: var(--ag-c); flex: none; }
.ag-block time { color: var(--fg-2); font-size: 10.5px; }
.ag-block.ag-tache { border-left-style: dashed; }
.ag-ev { display: flex; align-items: center; gap: 4px; min-width: 0; border: 0; border-left: 3px solid var(--ag-c); border-radius: 4px; padding: 2px 6px; font: inherit; font-size: 11.5px; color: var(--fg); cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--ag-c) 14%, var(--surface)); }
.ag-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev time { color: var(--fg-2); font-size: 10.5px; flex: none; }
.ag-ev.ag-echeance { background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-c) 45%, transparent); font-weight: 600; }
.ag-ev.ag-absence, .ag-ev.ag-equipe, .ag-ev.ag-fermeture { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ag-c) 18%, var(--surface)) 0 6px, color-mix(in srgb, var(--ag-c) 8%, var(--surface)) 6px 12px); }
.ag-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ag-month-wd { padding: 6px 8px; font-size: 11px; color: var(--fg-3); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ag-cell { min-height: 96px; padding: 4px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); display: grid; gap: 3px; align-content: start; cursor: pointer; min-width: 0; }
.ag-cell:nth-child(7n + 1) { border-left: 0; }
.ag-cell b { font-size: 12px; font-weight: 600; color: var(--fg-2); }
.ag-cell.is-out { background: var(--surface-2); }
.ag-cell.is-out b { color: var(--fg-3); }
.ag-cell.is-today b { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 6px; justify-self: start; }
.ag-more { font-size: 11px; color: var(--fg-3); padding-left: 4px; }
.ag-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: 16px; }
.ag-detail { width: min(440px, 100%); background: var(--surface); border-radius: 12px; border-top: 5px solid var(--ag-c); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 10px; }
.ag-detail-head { display: flex; justify-content: space-between; align-items: center; }
.ag-kind { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ag-c); }
.ag-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--fg-3); cursor: pointer; }
.ag-detail h3 { margin: 0; font-size: 18px; }
.ag-when, .ag-sub { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--fg-2); font-size: 13px; }
.ag-when { text-transform: none; }
.ag-notes { margin: 0; white-space: pre-wrap; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.ag-detail footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ag-form label { display: grid; gap: 4px; font-size: 12px; color: var(--fg-2); }
.ag-form input:not([type=checkbox]), .ag-form textarea { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 7px 9px; }
.ag-form .ag-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fg); }
.ag-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ag-hint { margin: 0; font-size: 12px; color: var(--fg-3); }
/* Partage d'agenda : collègues superposés (une couleur par personne), invitations, réglages */
.ag-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--fg-2); }
.ag-people button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); border-radius: 999px; padding: 2px 10px 2px 3px; font: inherit; font-size: 12px; cursor: pointer; }
.ag-people button abbr { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 9.5px; font-weight: 700; text-decoration: none; color: var(--ag-c); box-shadow: inset 0 0 0 1.5px var(--ag-c); }
.ag-people button small { color: var(--fg-3); font-size: 11px; }
.ag-people button.is-on { border-color: var(--ag-c); color: var(--fg); background: color-mix(in srgb, var(--ag-c) 10%, var(--surface)); }
.ag-people button.is-on abbr { background: var(--ag-c); color: #fff; }
.ag-who { flex: none; display: inline-grid; place-items: center; min-width: 17px; height: 15px; padding: 0 2px; border-radius: 3px; background: var(--ag-c); color: #fff; font-size: 8.5px; font-weight: 700; text-decoration: none; }
.ag-block.ag-collegue, .ag-ev.ag-collegue { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ag-c) 13%, var(--surface)) 0 10px, color-mix(in srgb, var(--ag-c) 9%, var(--surface)) 10px 20px); opacity: .92; }
.ag-block.is-pending, .ag-ev.is-pending { background: var(--surface); border-left-style: dashed; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-c) 50%, transparent); }
.ag-invites { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ag-invites li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.ag-invites li span { font-size: 12px; color: var(--fg-2); }
.ag-invites li.is-oui span { color: #367A59; } .ag-invites li.is-non span { color: #8B3932; } .ag-invites li.is-peut_etre span { color: #B78328; }
.ag-form select { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 8px; }
.ag-invite-pick { border: 1px solid var(--border); border-radius: 8px; margin: 0; padding: 6px 10px 8px; display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.ag-invite-pick legend { font-size: 12px; color: var(--fg-2); padding: 0 4px; }
.ag-dispo { margin-left: auto; font-size: 11.5px; color: var(--fg-3); }
.ag-dispo.is-free { color: #367A59; } .ag-dispo.is-busy { color: #B78328; } .ag-dispo.is-absent { color: #8B3932; }
.ag-share { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.ag-share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag-share-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ag-share-list li small { grid-column: 1 / -1; color: var(--fg-3); font-size: 11.5px; }
@media (max-width: 720px) { .ag-share-list li { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ag { padding: 12px; border-radius: 10px; }
  .ag-head { align-items: stretch; }
  .ag-tools { justify-content: space-between; width: 100%; }
  .ag-cell { min-height: 64px; }
  .ag-cell .ag-ev span, .ag-cell .ag-ev time { display: none; }
  .ag-cell .ag-ev { justify-content: center; padding: 2px; }
}

/* Calendrier d'Organisation projet : rendez-vous et réunions de Mon agenda, en lecture seule */
.cal-agenda{position:absolute;left:2px;right:2px;z-index:1;border-left:3px solid #1D6B66;border-radius:4px;padding:1px 5px;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--fg);background:color-mix(in srgb,#1D6B66 12%,var(--surface));pointer-events:none}

/* Hub API › Tables d'équivalence */
.eq-codes{display:flex;flex-wrap:wrap;gap:4px}
.eq-code{font-size:12px;padding:1px 6px;border-radius:4px;background:var(--surface-2,rgba(0,0,0,.05))}
.eq-toggle{all:unset;cursor:pointer}
.eq-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.eq-detail{padding:8px 4px}
.eq-tools{margin:8px 0;flex-wrap:wrap}
.eq-filtres{margin:0 0 8px;flex-wrap:wrap}
.eq-code.is-warn{background:rgba(201,122,0,.14);color:var(--warn,#9c5700)}
.ta-wrap{max-height:70vh;overflow:auto}
.ta-table th{position:sticky;top:0;z-index:1;background:var(--surface,#fff);white-space:nowrap;font-size:12px}
.ta-table th.is-ops{border-bottom:3px solid #1D6B66}
.ta-table th.is-macro{border-bottom:3px solid #2F4A5C}
.ta-table .ta-objet{position:sticky;left:0;background:var(--surface,#fff);min-width:220px;max-width:320px}
.ta-table th.ta-objet{z-index:2}
.ta-vide{opacity:.35}
.ta-ou{max-width:240px;word-break:break-all}
.ta-check{align-items:center}

/* ---------- OP (16/11/2026) : Organisation projet simple — chercher, ajouter, finir ---------- */
.rapide { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.rapide-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rapide-champ { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--fg-3); }
.rapide-champ:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rapide-champ input { all: unset; flex: 1; min-width: 0; font-size: 15px; color: var(--fg); padding: 8px 0; }
.rapide-ligne select { min-height: 40px; max-width: 240px; }
.rapide-resultats { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rapide-liste { list-style: none; margin: 0; padding: 0; }
.rapide-liste li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.rapide-liste li .row-title { flex: 1 1 240px; overflow-wrap: anywhere; }
.rapide-liste li.is-done .row-title { color: var(--fg-3); text-decoration: line-through; }
.finir { flex: none; width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--fg-3); background: var(--surface); color: transparent; cursor: pointer; vertical-align: middle; }
.finir:hover, .finir:focus-visible { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.finir:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finir.is-fait { border-color: var(--ok); background: var(--ok); color: #fff; cursor: default; }
td.avec-finir > .finir { margin-right: 8px; }
.prio-body.avec-finir { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.prio-body.avec-finir > :not(.finir) { grid-column: 2; }
.prio-body.avec-finir > .finir { grid-row: 1 / span 3; }
.board-card-top { display: flex; gap: 8px; align-items: flex-start; }
.board-card-top .board-card-title { flex: 1; min-width: 0; }
.nav-nouveau { color: var(--accent); }
@media (max-width: 640px) { .rapide-ligne select { flex: 1 1 140px; max-width: none; } }
/* OP lot 2 : page Recherche */
.recherche-page-q { width: 100%; max-width: 560px; }
.recherche-groupe { padding: 12px 14px; }
.recherche-titre { font-size: 14px; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.recherche-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.recherche-liste .search-item { width: 100%; display: flex; align-items: flex-start; gap: 10px; }
.recherche-liste .search-item svg { flex: 0 0 auto; margin-top: 2px; }
/* OP lot 3 : Agenda unifié */
.agenda-legende { display: flex; flex-wrap: wrap; gap: 6px; }
.agenda-fam { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-size: 13px; color: var(--fg-3); cursor: pointer; }
.agenda-fam i { width: 10px; height: 10px; border-radius: 3px; background: var(--fam); opacity: 0.35; }
.agenda-fam.is-active { color: var(--fg); border-color: var(--border-strong); }
.agenda-fam.is-active i { opacity: 1; }
.fam-reunion { --fam: #477DA5; } .fam-rdv { --fam: #1D6B66; } .fam-crm { --fam: #8C6D33; } .fam-echeance { --fam: #8B3932; } .fam-absence { --fam: #6B7C8E; }
.cal-agenda.fam-reunion, .cal-agenda.fam-rdv, .cal-agenda.fam-crm { border-left-color: var(--fam); background: color-mix(in srgb, var(--fam) 13%, var(--surface)); }
.cal-agenda-client { color: var(--fg-3); }
.agenda-jour, .agenda-echeance { min-width: 0; overflow: hidden; padding: 2px 4px; border-left: 2px solid var(--fam, #8B3932); border-radius: 2px 4px 4px 2px; background: color-mix(in srgb, var(--fam, #8B3932) 12%, var(--surface)); color: var(--fg-2); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.agenda-echeance { border: 0; border-left: 2px solid #8B3932; cursor: pointer; font: inherit; font-size: 9.5px; }
.agenda-echeance:hover { color: var(--fg); }

/* Barre du haut sur téléphone (17/11/2026) : les boutons (agenda, créer, interrompu, cloche, badge DEV, compte)
   demandaient 278 px pour ~250 disponibles à 390 px ; l'icône du compte sortait de l'écran (+24 px de défilement). */
@media (max-width: 480px) {
  .topbar { padding: 8px 10px; gap: 4px; }
  .topbar-actions { gap: 2px; min-width: 0; }
  .topbar-actions > .btn { padding-left: 8px; padding-right: 8px; }
  .env-badge { padding: 2px 6px; font-size: 10px; letter-spacing: 0.04em; }
}
/* Très petits téléphones (320 px, 18/11/2026) : les boutons de droite demandaient 220 px pour 188 ; on resserre. */
@media (max-width: 360px) {
  .topbar { padding: 8px 6px; gap: 2px; }
  .topbar-actions { gap: 0; }
  .topbar-actions > .btn { padding-left: 6px; padding-right: 6px; }
  .env-badge { padding: 2px 3px; font-size: 9px; letter-spacing: 0; }
}

/* OP lot 4 (17/11/2026) : page projet, onglet « Plus » et menu « ⋯ » de l'en-tête */
.menu-deroulant { display: inline-flex; flex: none; }
.tab.tab-plus { display: inline-flex; align-items: center; gap: 4px; }
.projet-plus-btn { min-width: 38px; justify-content: center; font-size: 18px; line-height: 1; letter-spacing: 0.05em; }
.menu-deroulant-pop .creer-item[aria-current="true"] { font-weight: 600; background: var(--surface-2); }
.menu-deroulant-pop .creer-item .tab-count { margin-left: auto; }

/* OP lot 5 (17/11/2026) : Schémas (dépendances, carte des projets, qui fait quoi) et Équipe */
.schemas-vues { margin: 4px 0 14px; }
.schemas-vues button { display: inline-flex; align-items: center; gap: 6px; }
.schemas-aide { margin: 0 0 10px; align-items: center; justify-content: space-between; }
.schema-zone { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 8px; max-height: 70vh; }
.schema-zone svg { display: block; }
.schema-arete { fill: none; stroke: var(--fg-3); stroke-width: 1.5; }
.schema-fleche { fill: var(--fg-3); }
.schema-noeud { cursor: pointer; }
.schema-noeud rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.schema-noeud:hover rect, .schema-noeud:focus-visible rect { stroke: var(--accent); stroke-width: 2; }
.schema-noeud:focus { outline: none; }
.schema-noeud.st-en_cours rect { stroke: var(--accent); }
.schema-noeud.st-bloquee rect, .schema-noeud.st-en_attente rect { stroke: var(--warning); stroke-dasharray: 5 3; }
.schema-noeud.st-terminee rect { fill: var(--surface-2); }
.schema-noeud.st-terminee .schema-titre { text-decoration: line-through; fill: var(--fg-3); }
.schema-titre { font-size: 13px; font-weight: 600; fill: var(--fg); }
.schema-sous { font-size: 11.5px; fill: var(--fg-3); }
.carte-projets, .carte-sous { list-style: none; margin: 0; padding: 0; }
.carte-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.carte-sous { margin: 6px 0 0 14px; padding-left: 12px; border-left: 2px dashed var(--border-strong); display: grid; gap: 6px; }
.carte-projet { width: 100%; display: grid; gap: 6px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; cursor: pointer; color: var(--fg); }
.carte-projet:hover, .carte-projet:focus-visible { border-color: var(--accent); }
.carte-projet.is-sous { padding: 8px 12px; }
.carte-projet.statut-livre, .carte-projet.statut-en_pause { opacity: 0.75; }
.carte-projet-nom { font-weight: 600; }
.carte-projet-barre { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.carte-projet-barre i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.matrice-qui { border-collapse: collapse; min-width: 100%; font-size: 13.5px; }
.matrice-qui th, .matrice-qui td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.matrice-qui th[scope="row"] { text-align: left; font-weight: 500; white-space: normal; min-width: 160px; }
.matrice-qui thead th { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.matrice-qui tfoot th, .matrice-qui tfoot td { border-bottom: 0; }
.matrice-n { min-width: 30px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--accent) calc(12% + var(--n) * 0.5), var(--surface)); }
.matrice-n:hover, .matrice-n:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.equipe-fermeture { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--fg-2); font-size: 13px; }
.equipe-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.equipe-carte { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.equipe-carte header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.equipe-carte h2 { font-size: 15px; margin: 0; flex: 1; min-width: 0; }
.equipe-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--fg-2); }
.equipe-absence { margin: 0; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, #6B7C8E 14%, var(--surface)); color: var(--fg-2); }
.equipe-taches { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.equipe-tache { width: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.equipe-tache:hover, .equipe-tache:focus-visible { background: var(--surface-2); }
.equipe-tache-texte { display: grid; gap: 2px; min-width: 0; }
.equipe-tache-texte b { font-weight: 500; font-size: 13.5px; }
.equipe-point { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--fg-3); }
.equipe-point.st-en_cours { background: var(--accent); }
.equipe-point.st-bloquee, .equipe-point.st-en_attente { background: var(--warning); }
.matrice-zone { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* OP lot 6 (17/11/2026) : « Ma journée », réunions et rendez-vous du jour */
.rdv-jour { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rdv-jour li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rdv-jour li:last-child { border-bottom: 0; }
.rdv-jour-heure { flex: none; min-width: 92px; font-variant-numeric: tabular-nums; color: var(--fg-2); font-size: 13px; }
.rdv-jour-texte { display: grid; gap: 2px; min-width: 0; }
.rdv-jour-texte b { font-weight: 500; }

/* Lot B prise de notes (18/11/2026) : aide des raccourcis clavier sous la zone de notes. */
.ru-aide-raccourcis { margin-top: 6px; font-size: 13px; color: #5E6B6A; }
.ru-aide-raccourcis summary { cursor: pointer; }
.ru-aide-raccourcis dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0 0; }
.ru-aide-raccourcis dt { margin: 0; } .ru-aide-raccourcis dd { margin: 0; }
.ru-aide-raccourcis code { background: #F6F7F7; border: 1px solid #E2E5E6; border-radius: 4px; padding: 0 4px; font-size: 12px; }

/* Kanban (23/11/2026) : saisie rapide d'une carte, hors projet. */
.kanban-nouvelle { margin: 0 0 12px; flex-wrap: nowrap; }
.kanban-nouvelle .input { flex: 1; min-width: 0; }

/* CAL-3 : agenda Outlook relu en lecture (lien .ics) */
.ag-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.ag-outlook-ko { color: #b42318; }

/* Présentations clients (cahier PC) — préparation dans la coque Zeia.
   Jetons de la suite uniquement (--fg, --accent, --border…), aucun thème propre.
   Les séries de graphiques suivent la charte Persephone (voir data.ts, SERIES). */
.pc-main { display: grid; gap: 28px; }
.pc-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.pc-head h1 { margin: 0; }
.pc-head p { margin: 6px 0 0; max-width: 70ch; }
.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.pc-col { display: grid; gap: 36px; min-width: 0; }
.pc-section { display: grid; gap: 12px; min-width: 0; }
.pc-section[hidden], .pc-side[hidden] { display: none !important; }
.pc-section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-section-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.pc-n { font-weight: 600; font-size: 13px; color: var(--accent); }
.pc-next { opacity: 0.6; gap: 8px; }
.pc-toggle-avance { justify-self: start; border: 0; padding: 4px 0; color: var(--fg-3); background: transparent; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-toggle-avance:hover { color: var(--fg); }
.pc-atelier .am-dia-liste { margin: 0; }
.pc-atelier .am-dia-inline { padding: 0; border: 0; background: transparent; }
.pc-atelier .am-dia-inline > header { display: none; }
.pc-atelier .am-dia-inline .am-dia-parcours { display: grid; gap: 16px; }
.pc-atelier .am-dia-inline .am-dia-parcours fieldset { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.pc-atelier .am-dia-inline .am-dia-parcours legend { padding: 0 5px; font-weight: 600; font-size: 13px; }
.pc-atelier .am-dia-inline .am-dia-choix-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-atelier .am-dia-inline .am-dia-choix-types button { display: grid; gap: 4px; padding: 11px; text-align: left; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.pc-atelier .am-dia-inline .am-dia-choix-types button.choisi { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.pc-atelier .am-dia-inline .am-dia-choix-types small { color: var(--fg-3); line-height: 1.35; }
.pc-atelier .am-dia-inline .am-dia-choix-bulles, .pc-atelier .am-dia-inline .am-dia-choix-sources { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pc-atelier .am-dia-inline .am-dia-choix-bulles label, .pc-atelier .am-dia-inline .am-dia-choix-sources label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.pc-atelier .am-dia-inline .am-dia-choix-bulles input, .pc-atelier .am-dia-inline .am-dia-choix-sources input { accent-color: var(--accent); }
.pc-atelier .am-dia-inline .am-dia-choix-sources small { color: var(--fg-3); }
.pc-atelier .am-dia-inline .am-dia-produits-atelier { display: grid; gap: 8px; margin-top: 12px; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier > label { display: grid; gap: 5px; font-size: 13px; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier input[type=search], .pc-atelier .am-dia-inline .am-dia-angle textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--fg); font: inherit; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier > div { display: grid; max-height: 200px; overflow: auto; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier > div > label { display: flex; align-items: flex-start; gap: 8px; padding: 7px 2px; border-top: 1px solid var(--border); font-size: 13px; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier label span { display: grid; }
.pc-atelier .am-dia-inline .am-dia-produits-atelier label small { color: var(--fg-3); }
.pc-atelier .am-dia-inline .am-dia-angle { display: grid; gap: 6px; font-size: 13px; font-weight: 550; }
.pc-atelier .am-dia-inline .am-dia-parcours-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-atelier .am-dia-inline .am-dia-parcours-pied p { margin: 0; }
.pc-atelier .am-dia-inline .am-dia-parcours-pied button { min-height: 42px; }

.pc-picker { position: relative; }
.pc-picker > .icon { position: absolute; left: 11px; top: 11px; color: var(--fg-3); }
.pc-picker input { width: 100%; height: 38px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 0 12px 0 34px; font: inherit; color: var(--fg); }
.pc-picker input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pc-picker-list { position: absolute; top: 43px; left: 0; right: 0; z-index: 5; display: grid; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; }
.pc-picker-list button { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 6px; text-align: left; cursor: pointer; color: var(--fg); font: inherit; }
.pc-picker-list button:hover, .pc-picker-list button.is-active { background: var(--surface-2); }
.pc-picker-empty { margin: 0; padding: 10px; color: var(--fg-3); font-size: 13px; }
.pc-picker-empty.is-error { color: var(--warning); }
.pc-hit { display: grid; min-width: 0; }
.pc-hit-name { font-weight: 500; }
.pc-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.pc-avatar-l { width: 44px; height: 44px; font-size: 15px; }

.pc-who { display: flex; gap: 14px; align-items: center; }
.pc-who p { margin: 2px 0 0; }
.pc-who-name { font-size: 16px; }
.pc-facts { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pc-facts > div { padding: 12px 20px 12px 0; min-width: 0; }
.pc-facts > div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.pc-facts dt { font-size: 12.5px; color: var(--fg-3); }
.pc-facts dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pc-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; }
.pc-row input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.pc-row > span { display: grid; gap: 2px; }

.pc-profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pc-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-3); margin-bottom: 8px; }
.pc-gauge { display: flex; gap: 4px; }
.pc-gauge i { flex: 1; height: 28px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--fg-3); background: var(--surface-2); }
.pc-gauge i.is-on { background: var(--accent); color: var(--accent-fg); }
.pc-prio { margin: 0; padding-left: 22px; display: grid; gap: 6px; list-style: decimal; }
.pc-prio li::marker { color: var(--accent); font-weight: 600; }

.pc-bars { display: grid; gap: 9px; }
.pc-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 14px; align-items: center; font-size: 13px; }
.pc-bar-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-bar-label i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.pc-bar-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.pc-bar-track span { display: block; height: 100%; border-radius: 5px; }
.pc-bar-value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pc-side { position: sticky; top: 16px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.pc-side h3 { margin: 0; font-size: 15px; }
.pc-side p { margin: 0; }
.pc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; font-size: 13px; }
.pc-checks li > div { display: grid; gap: 1px; }
.pc-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.pc-checks .is-ok .pc-ic { background: var(--ok-soft); color: var(--ok); }
.pc-checks .is-warn .pc-ic { background: var(--warning-soft); color: var(--warning); }
.pc-checks .is-block .pc-ic { background: var(--critical-soft); color: var(--critical); }
.pc-gen { width: 100%; height: 42px; }
.pc-gen:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 960px) {
  .pc-layout { grid-template-columns: minmax(0, 1fr); }
  .pc-side { position: static; }
  .pc-profil { grid-template-columns: minmax(0, 1fr); }
  .pc-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .pc-bar-track { grid-column: 1 / -1; order: 3; }
  .pc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-facts > div, .pc-facts > div + div { padding: 10px 0; border-left: 0; }
  .pc-facts dd { font-size: 17px; }
}
@media (max-width: 620px) { .pc-atelier .am-dia-inline .am-dia-choix-types { grid-template-columns: 1fr; } }

/* Étape 2 : produits à proposer et macro liée */
.pc-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pc-filter { flex: 1 1 260px; }
.pc-prods, .pc-macro { list-style: none; margin: 0; padding: 0; display: grid; }
.pc-prods > li { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); }
.pc-prods > li:last-child { border-bottom: 1px solid var(--border); }
.pc-prod-main { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-width: 0; flex: 1; }
.pc-prod-main input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.pc-prod-main > span { display: grid; gap: 3px; min-width: 0; }
.pc-prod-main strong { font-weight: 600; overflow-wrap: anywhere; }
.pc-prod-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.pc-amount { display: grid; gap: 3px; flex: none; text-align: right; }
.pc-amount-in { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 0 10px; height: 34px; }
.pc-amount-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pc-amount-in input { width: 110px; border: 0; background: none; font: inherit; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.pc-amount-in input::-webkit-outer-spin-button, .pc-amount-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-fin { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.pc-fin .pc-label { margin-bottom: 2px; }
.pc-fin-n { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pc-fin-effect { margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.pc-fin-effect.is-block { color: var(--critical); }
.pc-macro > li { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.pc-macro > li:last-child { border-bottom: 1px solid var(--border); }
.pc-macro-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.pc-macro-head > div { display: grid; gap: 2px; min-width: 0; }
.pc-phrases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.pc-phrases dt { font-size: 12.5px; font-weight: 600; color: var(--fg-3); margin-bottom: 3px; }
.pc-phrases dd { margin: 0; }
.pc-form { display: grid; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 14px; }
.pc-form p { margin: 0; }
.pc-form textarea { width: 100%; resize: vertical; font: inherit; }
.pc-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pc-form-actions.is-left { justify-content: flex-start; }
.pc-macro .callout .btn { justify-self: start; }

@media (max-width: 960px) {
  .pc-prods > li { flex-direction: column; gap: 10px; }
  .pc-amount { text-align: left; padding-left: 28px; }
  .pc-phrases, .pc-form-row { grid-template-columns: minmax(0, 1fr); }
  .pc-macro-head { flex-direction: column; gap: 6px; }
}

.pc-hist { display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 14px; }
.pc-hist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-hist li { display: grid; gap: 4px; justify-items: start; }

/* Étape 3 : la présentation (charte Persephone, indépendante du thème de la suite) */
.dk-root { position: fixed; inset: 0; z-index: 200; background: #0f130a; display: grid; place-items: center; outline: none; font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #17262a; overflow: hidden; }
.dk-scene { position: relative; overflow: hidden; background: #f7f5ef; cursor: default; }
.dk-slide { width: 1280px; height: 720px; box-sizing: border-box; padding: 34px 64px 30px; background: #f7f5ef; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 0; color: #17262a; font-size: 19px; line-height: 1.4; text-align: left; }
.dk-slide.is-sombre { background: #171c0f; color: #f7f5ef; grid-template-rows: minmax(0, 1fr); padding: 64px 90px; }
.dk-slide header, .dk-slide footer { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 0.04em; color: #6b6f66; }
.dk-marque { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: #8c6d33; font-weight: 600; }
.is-sombre .dk-marque { color: #ccb17d; }
.dk-chap { text-transform: uppercase; }
.dk-slide h2 { margin: 18px 0 20px; font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; color: #171c0f; max-width: 40ch; text-wrap: balance; }
.dk-corps { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.dk-source { margin: auto 0 10px; font-size: 12.5px; color: #6b6f66; line-height: 1.35; }
.dk-note { margin: 6px 0 0; font-size: 14.5px; color: #5e6b6a; }
.dk-vide { color: #6b6f66; }
.dk-cover, .dk-chapitre { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 14px; }
.dk-cover h1, .dk-chapitre h1 { margin: 26px 0 0; font-size: 68px; line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }
.dk-cover-client { margin: 20px 0 0; font-size: 30px; color: #ccb17d; }
.dk-cover-meta { margin: 0; font-size: 17px; color: #a8b5a0; }
.dk-chapitre b { font-size: 120px; line-height: 0.9; font-weight: 600; color: #ccb17d; letter-spacing: -0.05em; }
.dk-chapitre h1 { margin-top: 6px; }
.dk-chapitre ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 21px; color: #a8b5a0; }
.dk-chiffres { display: flex; margin: 0; border-top: 1px solid #d9d3c2; border-bottom: 1px solid #d9d3c2; }
.dk-chiffres > div { flex: 1; padding: 16px 22px 16px 0; min-width: 0; }
.dk-chiffres > div + div { padding-left: 22px; border-left: 1px solid #d9d3c2; }
.dk-chiffres dt { font-size: 14px; color: #6b6f66; }
.dk-chiffres dd { margin: 2px 0; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: #171c0f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-chiffres span { font-size: 14px; color: #5e6b6a; }
.dk-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.dk-deux h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b6f66; font-weight: 600; }
.dk-jauge { display: flex; gap: 5px; }
.dk-jauge i { flex: 1; height: 38px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 15px; color: #6b6f66; background: #e9e5d9; }
.dk-jauge i.is-on { background: #315344; color: #f7f5ef; }
.dk-jauge i.is-max { box-shadow: 0 4px 0 -1px #ccb17d; }
.dk-prio, .dk-reperes { margin: 0; padding-left: 24px; display: grid; gap: 7px; }
.dk-prio li::marker { color: #8c6d33; font-weight: 600; }
.dk-reperes { list-style: none; padding: 0; font-size: 17.5px; }
.dk-sommaire { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.dk-sommaire button, .dk-lien { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; }
.dk-sommaire button { display: flex; gap: 28px; align-items: center; padding: 22px 0; border-top: 1px solid #d9d3c2; }
.dk-sommaire li:last-child button { border-bottom: 1px solid #d9d3c2; }
.dk-sommaire b { font-size: 54px; font-weight: 600; color: #ccb17d; letter-spacing: -0.04em; width: 56px; }
.dk-sommaire span { display: grid; gap: 2px; font-size: 17px; color: #5e6b6a; }
.dk-sommaire strong { font-size: 27px; font-weight: 600; color: #171c0f; letter-spacing: -0.02em; }
.dk-sommaire button:hover strong, .dk-sommaire button:focus-visible strong { color: #315344; }
.dk-macro { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: center; }
.dk-graph svg { width: 100%; height: auto; display: block; }
.dk-tick { font-size: 12px; fill: #6b6f66; }
.dk-ref { font-size: 12px; fill: #6b6f66; }
.dk-end { font-size: 13.5px; fill: #315344; font-weight: 600; }
.dk-end-v { font-size: 19px; }
.dk-cle { display: grid; gap: 4px; }
.dk-cle > span { font-size: 14px; color: #6b6f66; }
.dk-cle strong { font-size: 76px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: #171c0f; font-variant-numeric: tabular-nums; }
.dk-cle p { margin: 0; font-size: 17px; }
.dk-lien { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 13px 20px; background: #171c0f; color: #f7f5ef; border-radius: 10px; }
.dk-lien span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #ccb17d; font-weight: 600; }
.dk-lien p { margin: 0; font-size: 17.5px; line-height: 1.3; }
.dk-lien em { font-style: normal; font-size: 15px; color: #ccb17d; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.dk-lien:hover, .dk-lien:focus-visible { background: #24301a; }
.dk-alloc { display: grid; gap: 13px; }
.dk-alloc > div { display: grid; grid-template-columns: 250px minmax(0, 1fr) 130px 84px; gap: 18px; align-items: center; }
.dk-alloc > div > span:first-child { display: flex; align-items: center; gap: 10px; }
.dk-alloc i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dk-track { height: 16px; border-radius: 8px; background: #e9e5d9; overflow: hidden; }
.dk-track span { display: block; height: 100%; border-radius: 8px; }
.dk-val { text-align: right; color: #5e6b6a; font-variant-numeric: tabular-nums; font-size: 17px; }
.dk-alloc strong { text-align: right; font-variant-numeric: tabular-nums; }
.dk-phrase { margin: 0; font-size: 20px; }
.dk-fleche { margin: 6px 0; font-size: 46px; letter-spacing: -0.03em; color: #6b6f66; font-variant-numeric: tabular-nums; }
.dk-fleche strong { color: #171c0f; font-weight: 600; }
.dk-aa { margin-top: 8px; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.dk-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b6f66; font-weight: 600; padding: 0 16px 10px 0; border-bottom: 1px solid #b9b29f; }
.dk-table td { padding: 15px 16px 15px 0; border-bottom: 1px solid #d9d3c2; vertical-align: top; }
.dk-table td:nth-child(3), .dk-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dk-attente { border: 2px dashed #b78328; border-radius: 12px; padding: 28px 32px; background: #f7eed9; color: #5c430f; max-width: 820px; }
.dk-attente p { margin: 0 0 8px; }
.dk-barre { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 10px; background: rgba(23, 28, 15, 0.82); opacity: 0; transition: opacity 0.18s; }
.dk-root:hover .dk-barre, .dk-barre:focus-within { opacity: 1; }
.dk-barre button { border: 0; background: none; color: #f7f5ef; font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 6px; cursor: pointer; }
.dk-barre button:hover:not(:disabled), .dk-barre button[aria-pressed='true'] { background: rgba(247, 245, 239, 0.16); }
.dk-barre button:disabled { opacity: 0.35; cursor: default; }
.dk-vue { position: absolute; inset: 0; overflow-y: auto; padding: 36px 36px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; align-content: start; }
.dk-vue > button { all: unset; cursor: pointer; display: grid; gap: 8px; }
.dk-mini { display: block; width: 280px; height: 157.5px; overflow: hidden; border-radius: 6px; outline: 2px solid transparent; outline-offset: 3px; pointer-events: none; }
.dk-mini > span { display: block; width: 1280px; height: 720px; transform-origin: 0 0; }
.dk-vue > button.is-courante .dk-mini, .dk-vue > button:focus-visible .dk-mini { outline-color: #ccb17d; }
.dk-mini-t { font-size: 13px; color: #c9cdbf; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .dk-barre { transition: none; } }
/* Cadre mis à l'échelle (plein écran, fenêtre client, vignettes du présentateur). */
.dk-cadre { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.dk-cadre > .dk-scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dk-plein { position: absolute; inset: 0; }
.dk-root-client { position: fixed; inset: 0; display: grid; }
.dk-alerte { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 8px; background: #f7eed9; color: #5c430f; font-size: 14px; }
/* PC-16 : écran du présentateur (jamais visible du client). */
.dk-presentateur { display: grid; grid-template-rows: auto minmax(0, 1fr); place-items: stretch; color: #f7f5ef; padding: 16px 20px 68px; box-sizing: border-box; gap: 14px; }
.dk-pr-haut { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #c9cdbf; }
.dk-pr-titre { flex: 1; }
.dk-pr-n { font-variant-numeric: tabular-nums; }
.dk-pr-grille { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; min-height: 0; }
.dk-pr-grille h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #ccb17d; font-weight: 600; }
.dk-pr-grille h3 small { text-transform: none; letter-spacing: 0; color: #9da291; font-weight: 400; }
.dk-pr-courante { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.dk-pr-cote { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; min-height: 0; }
.dk-pr-suivante .dk-cadre { height: auto; aspect-ratio: 16 / 9; }
.dk-pr-notes textarea { height: 100%; }
.dk-pr-fin { margin: 0; color: #9da291; }
.dk-pr-notes { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.dk-pr-notes textarea { width: 100%; box-sizing: border-box; resize: none; min-height: 120px; padding: 12px; border-radius: 8px; border: 1px solid rgba(247, 245, 239, 0.25); background: #171c0f; color: #f7f5ef; font: inherit; font-size: 17px; line-height: 1.45; }
.dk-barre-fixe { opacity: 1; }
/* PC-20 : export PDF, une diapositive par page. Hors impression, le conteneur reste invisible. */
.dk-print { display: none; }
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html.dk-imprime, html.dk-imprime body { margin: 0; padding: 0; background: #fff; }
  html.dk-imprime body > *:not(.dk-print) { display: none !important; }
  html.dk-imprime .dk-print { display: block; }
  .dk-print-page { width: 1280px; height: 720px; overflow: hidden; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dk-print-page:last-child { break-after: auto; page-break-after: auto; }
  .dk-print .dk-lien { pointer-events: none; }
}
/* t-1013-05 : variations sur un an des sous-jacents, à côté de la courbe des cours. */
.dk-varias { margin: 14px 0 12px; display: grid; gap: 10px; }
.dk-varias > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid #d9d3c2; padding-bottom: 8px; }
.dk-varias dt { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.dk-varias dt i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.dk-varias dd { margin: 0; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }


/* PT-08/09 (24/11/2026) : la toile est l'écran du Studio. */
.pc-toile { margin-bottom: 24px; }

/* Outil « Réunion » — jetons de la suite uniquement (--fg, --accent, --border…), même mise en page
   que Présentations clients. « À vérifier » = orange + pointillés + texte (C-7 : jamais la couleur seule). */
.ru-main { display: grid; gap: 22px; }
.ru-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.ru-head h1 { margin: 4px 0 0; }
.ru-head p { margin: 6px 0 0; max-width: 72ch; }
.ru-head-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ru-save.is-error { color: var(--warning); font-weight: 500; }
.ru-rappel { grid-template-columns: 1fr; border-left: 3px solid var(--accent); }
.ru-lien { color: var(--accent); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; width: fit-content; }

.ru-liste { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--border); }
.ru-liste li { border-bottom: 1px solid var(--border); }
.ru-liste button { width: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 6px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--fg); font: inherit; border-radius: 6px; }
.ru-liste button:hover { background: var(--surface-2); }
.ru-liste-date { font-variant-numeric: tabular-nums; color: var(--fg-2); font-size: 13px; }
.ru-liste-titre { display: grid; gap: 2px; min-width: 0; }
.ru-liste-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ru-vide { padding: 24px 0; }

.ru-etapes { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ru-etapes button { border: 0; background: none; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--fg-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ru-etapes button.is-current { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.ru-etapes button:disabled { opacity: 0.45; cursor: default; }

.ru-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ru-col { display: grid; gap: 30px; min-width: 0; }
.ru-section { display: grid; gap: 10px; min-width: 0; }
.ru-section h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.ru-section-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.ru-large { grid-column: 1 / -1; }
.field input[type="datetime-local"] { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius); padding: 5px 9px; min-height: 32px; }

.ru-odj { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.ru-odj li::marker { color: var(--accent); font-weight: 600; }
.ru-odj li { display: list-item; }
.ru-odj li input { width: calc(100% - 100px); }
.ru-odj li .icon-btn { vertical-align: middle; }
.ru-odj-lecture { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.ru-ajout { display: flex; gap: 8px; align-items: center; }
.ru-ajout input { flex: 1; min-width: 0; }

.ru-side { position: sticky; top: 16px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.ru-side h3 { margin: 0; font-size: 15px; }
.ru-side p { margin: 0; }
.ru-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ru-people li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.ru-invite { display: grid; gap: 6px; }
.ru-label { font-size: 12.5px; font-weight: 500; color: var(--fg-2); }
.ru-case { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ru-case input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }

.ru-bandeau { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ru-bandeau.is-live { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ru-bandeau-etat { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.ru-bandeau.is-live .ru-bandeau-etat { color: var(--accent); }
.ru-bandeau-point { color: var(--fg-2); flex: 1; min-width: 200px; }
.ru-bandeau-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ru-pendant { display: grid; gap: 22px; }
.ru-notes { width: 100%; min-height: 320px; font-size: 14.5px; }
.ru-fil { max-height: 360px; overflow-y: auto; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ru-fil-point { font-size: 12.5px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--border); padding-top: 8px; }
.ru-fil-ligne { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.ru-temps { font-variant-numeric: tabular-nums; color: var(--fg-3); font-size: 12.5px; padding-top: 2px; }
.ru-accord-texte { margin: 0; padding: 10px 12px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 6px; font-size: 13.5px; }

.ru-creer { max-width: 760px; }
.ru-compteurs { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.ru-compteurs strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.ru-c-verifier { color: var(--warning); }
.ru-phrases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ru-phrase { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ru-phrase.is-valide { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.ru-phrase.is-verifier, .ru-action.is-verifier { border: 1.5px dashed var(--warning); background: var(--warning-soft); }
.ru-phrase.is-retire, .ru-action.is-retire { opacity: 0.55; }
.ru-phrase.is-retire .ru-phrase-texte { text-decoration: line-through; }
.ru-verifier-texte { color: var(--warning); font-size: 13px; }
.ru-phrase-pied { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ru-phrase-actions { display: inline-flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.ru-source { color: var(--fg-2); background: var(--surface-2); border-radius: 6px; padding: 6px 9px; }
.ru-edition { display: grid; gap: 6px; }
.ru-edition textarea { width: 100%; }

.ru-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ru-action { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.ru-action-champs { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 6px; }
.ru-voix, .ru-diffusion { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }

/* Voyant d'état avant la réunion (C-9) : pictogramme + phrase, la couleur ne fait que renforcer. */
.ru-voyants { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ru-voyants ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.ru-voyant { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 500; }
.ru-voyant.is-pret .icon { color: var(--ok); }
.ru-voyant.is-indispo { padding: 2px 8px; border: 1.5px dashed var(--warning); border-radius: 8px; background: var(--warning-soft); }
.ru-voyant.is-indispo .icon { color: var(--warning); }
.ru-ecartees { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ru-ecartees summary { cursor: pointer; font-weight: 600; }
.ru-ecartees ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ru-ecartees li { display: grid; gap: 4px; padding: 8px 10px; border: 1.5px dashed var(--border-strong); border-radius: 8px; }
.ru-envoi { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.ru-envoi .icon { color: var(--ok); }

@media (max-width: 980px) {
  .ru-layout { grid-template-columns: 1fr; }
  .ru-side { position: static; }
  .ru-liste button { grid-template-columns: 1fr; gap: 4px; }
  .ru-liste-tags { justify-content: flex-start; }
}

/* Lot C : trames et « Depuis la dernière fois » */
.ru-choix-trame { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 14px; }
.ru-trames-groupe h3 { font-size: 14px; margin: 6px 0; }
.ru-trames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ru-trames li { display: flex; align-items: flex-start; gap: 4px; border: 1px solid var(--border); border-radius: 8px; }
.ru-trames li > button:first-child { flex: 1; display: grid; gap: 4px; padding: 10px 12px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--fg); font: inherit; border-radius: 8px; min-width: 0; }
.ru-trames li > button:first-child:hover { background: var(--surface-2); }
.ru-trame-garder { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; }
.ru-depuis { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); margin-bottom: 12px; }
.ru-depuis h2 { font-size: 15px; margin: 0; }
.ru-depuis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ru-depuis-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
@media (max-width: 640px) { .ru-depuis-liste li { grid-template-columns: auto minmax(0, 1fr); } .ru-depuis-liste li > :last-child { grid-column: 2; } }

/* Appli Macro (AM-01) — dans la coque Zeia, jetons de la suite uniquement (--fg, --accent, --border…).
   Séries : charte Perséphone (Teal, Ochre, Burgundy, Blue, Graphite, Copper), ordre vérifié
   (séparation et contraste), avec une variante claire pour le mode sombre. */
:root {
  --am-s1: #2e6f65; --am-s2: #b8893f; --am-s3: #66231f; --am-s4: #527c9b; --am-s5: #454a44; --am-s6: #a66f4e;
  --am-peur: #8b3932; --am-neutre: #b78328; --am-serein: #367a59;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --am-s1: #6fb3a6; --am-s2: #d4a85c; --am-s3: #c27b72; --am-s4: #8fb0cc; --am-s5: #b3b8b1; --am-s6: #cf9b7c; --am-peur: #d98b82; --am-neutre: #d9b264; --am-serein: #85c494; }
}
:root[data-theme="dark"] { --am-s1: #6fb3a6; --am-s2: #d4a85c; --am-s3: #c27b72; --am-s4: #8fb0cc; --am-s5: #b3b8b1; --am-s6: #cf9b7c; --am-peur: #d98b82; --am-neutre: #d9b264; --am-serein: #85c494; }

.am-main { display: grid; gap: 32px; }
.am-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.am-head h1 { margin: 0; }
.am-head p { margin: 6px 0 0; max-width: 72ch; }
.am-maj { font-size: 13px; }
.am-alerte { background: var(--warning-soft); color: var(--fg); }
.am-vide { padding: 40px 0; text-align: center; color: var(--fg-3); }
.am-tool h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.am-tool h2 .muted, .am-tool h3 .muted { font-weight: 400; font-size: 13px; letter-spacing: 0; margin-left: 6px; }

/* Baromètre */
.am-baro { display: grid; gap: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.am-baro-tete { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.am-baro-tete p { margin: 4px 0 0; font-size: 13px; }
.am-baro-chiffre { display: flex; align-items: baseline; gap: 10px; }
.am-baro-chiffre strong { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.am-baro-chiffre span { font-size: 15px; font-weight: 500; color: var(--fg-2); }
.am-echelle { position: relative; display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: visible; font-size: 11px; }
.am-echelle span { display: grid; place-items: center; color: var(--fg-2); background: var(--surface-2); white-space: nowrap; overflow: hidden; }
.am-echelle span:first-child { border-radius: 6px 0 0 6px; background: color-mix(in srgb, var(--am-peur) 16%, var(--surface)); }
.am-echelle span:nth-child(2) { background: color-mix(in srgb, var(--am-peur) 8%, var(--surface)); }
.am-echelle span:nth-child(4) { background: color-mix(in srgb, var(--am-serein) 8%, var(--surface)); }
.am-echelle span:last-child { border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--am-serein) 16%, var(--surface)); }
.am-echelle i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); }
.am-rappels { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.am-rappels strong { font-variant-numeric: tabular-nums; }
.am-plus { justify-self: start; gap: 6px; padding-left: 0; }
.am-compos ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.am-compos li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(140px, auto); gap: 12px; font-size: 13px; align-items: baseline; }
.am-compos li strong { text-align: right; font-variant-numeric: tabular-nums; }
.am-compos p { margin: 0; font-size: 12px; }
.am-avert { margin: 0; font-size: 12px; color: var(--fg-3); border-top: 1px solid var(--border); padding-top: 10px; }

/* Bulles */
.am-bulles { display: grid; gap: 20px; }
.am-famille { display: grid; gap: 10px; }
.am-bulles-rang { display: flex; flex-wrap: wrap; gap: 10px; }
.am-bulle-btn { display: grid; gap: 2px; text-align: left; padding: 12px 18px; min-width: 150px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.am-bulle-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.am-bulle-btn.is-on { border-color: var(--accent); background: var(--accent-soft); }
.am-bulle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-bulle-nom2 { font-weight: 600; font-size: 14px; }
.am-bulle-meta { font-size: 12px; color: var(--fg-3); }
.am-bulle-btn.niv-n1 .am-bulle-meta::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

/* Bulle ouverte et comparateur */
.am-axe { display: grid; gap: 18px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; scroll-margin-top: 80px; }
.am-axe-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.am-niv { font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.am-comp { display: grid; gap: 12px; }
.am-comp-barre { display: grid; gap: 10px; }
/* Comparateur (24/11/2026) : lien, export CSV, comparaisons enregistrées */
.am-comp-actions { display: grid; gap: 8px; margin: 10px 0 4px; }
.am-comp-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.am-comp-boutons .btn { display: inline-flex; align-items: center; gap: 6px; }
.am-comp-mes { border: 1px solid var(--line, #e3e6e8); border-radius: 10px; padding: 10px 12px; display: grid; gap: 10px; }
.am-comp-enr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.am-comp-enr label { font-weight: 600; flex-basis: 100%; }
.am-comp-enr input { flex: 1 1 220px; min-width: 0; }
.am-comp-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.am-comp-liste li { display: flex; align-items: center; gap: 6px; }
.am-comp-rappel { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 4px; border-radius: 6px; cursor: pointer; display: grid; color: inherit; font: inherit; }
.am-comp-rappel:hover, .am-comp-rappel:focus-visible { background: var(--hover, rgba(0,0,0,.04)); }
.am-comp-rappel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.am-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); max-width: 100%; }
.am-chip > i, .am-table td > i, .am-bulle-ligne > i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.am-table td > i { margin-right: 8px; vertical-align: 0; }
.am-chip button { border: 0; background: none; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.am-chip button:hover { background: var(--surface-3); color: var(--fg); }
.am-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.am-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface-2); }
.am-seg button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--fg-2); padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.am-seg button.is-on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 500; }
.am-seg button:disabled { opacity: .45; cursor: not-allowed; }
.am-note { margin: 0; font-size: 12px; }
.am-cherche { position: relative; }
.am-cherche > .icon { position: absolute; left: 11px; top: 11px; color: var(--fg-3); }
.am-cherche input { width: 100%; height: 38px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 0 12px 0 34px; font: inherit; color: var(--fg); }
.am-cherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.am-cherche-liste { position: absolute; top: 43px; left: 0; right: 0; z-index: 6; display: grid; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; }
.am-cherche-liste button { display: grid; gap: 1px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 6px; text-align: left; cursor: pointer; color: var(--fg); font: inherit; font-size: 13px; }
.am-cherche-liste button:hover { background: var(--surface-2); }
.am-cherche-nom { font-weight: 500; }
.am-cherche-vide { margin: 0; padding: 10px; color: var(--fg-3); font-size: 13px; }
.am-cherche-vide.is-error { color: var(--warning); }
.am-comp-zone { display: grid; gap: 8px; transition: opacity .2s; }
.am-comp-zone.is-busy { opacity: .55; }
.am-sources { margin: 0; font-size: 12px; color: var(--fg-3); }

/* Courbes */
.am-courbes { position: relative; width: 100%; overflow: hidden; }
.am-courbes svg { display: block; }
.am-grille { stroke: var(--border); stroke-width: 1; }
text.am-graduation { fill: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.am-fin { fill: var(--fg); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.am-repere line { stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55; }
.am-repere circle { fill: var(--surface); stroke: var(--fg-3); stroke-width: 1.5; cursor: help; }
.am-reticule line { stroke: var(--fg-2); stroke-width: 1; }
.am-bulle { position: absolute; top: 8px; z-index: 4; min-width: 220px; max-width: 320px; display: grid; gap: 4px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; pointer-events: none; }
.am-bulle-ligne { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; }
.am-bulle-ligne > i { align-self: center; }
.am-bulle-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.am-bulle-ligne strong { font-variant-numeric: tabular-nums; }
.am-bulle-repere { border-top: 1px solid var(--border); padding-top: 4px; color: var(--fg-2); }

.am-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-table th { text-align: left; font-weight: 500; color: var(--fg-3); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.am-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Lignes d'indicateurs d'une bulle */
.am-groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px 32px; }
.am-groupe h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.am-groupe ul { list-style: none; margin: 0; padding: 0; display: grid; }
.am-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.am-ligne-txt { display: grid; gap: 1px; min-width: 0; font-size: 12px; }
.am-ligne-nom { font-size: 13px; font-weight: 500; }
.am-ligne-val { display: grid; justify-items: end; font-size: 12px; }
.am-ligne-val strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.am-tend { color: var(--fg-2); }
.am-ajout { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.am-ajout:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.am-ajout.is-on { color: #fff; }
.am-ajout:disabled { opacity: .4; cursor: not-allowed; }

/* Repères */
.am-reperes { display: grid; gap: 10px; }
.am-reperes ul { list-style: none; margin: 0; padding: 0; display: grid; }
.am-reperes li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.am-reperes li time { color: var(--fg-2); font-variant-numeric: tabular-nums; grid-row: span 2; }
.am-reperes li .muted { font-size: 12px; }
.am-reperes > .btn { justify-self: start; }

@media (max-width: 640px) {
  .am-baro, .am-axe { padding: 16px; }
  .am-bulle-btn { min-width: 0; flex: 1 1 140px; }
  .am-echelle { font-size: 0; }
  .am-reperes li { grid-template-columns: 1fr; }
  .am-reperes li time { grid-row: auto; }
}

/* Lot 2 : chiffre clé daté dans chaque bulle */
.am-bulle-btn:has(.am-bulle-cle) { border-radius: 18px; min-width: 210px; max-width: 280px; padding: 14px 18px; gap: 4px; }
.am-bulle-cle { display: grid; gap: 1px; }
.am-bulle-chiffre { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.am-bulle-chiffre small { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.am-bulle-serie { font-size: 12px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.am-bulle-cle .am-tend { font-size: 12px; }

/* Lot 2 : globe (couleurs de la carte lues par le canvas) */
.am-monde { --am-ocean: #e9eff0; --am-terre: #d9dedc; --am-sans: #ecebe7; --am-grat: rgba(29, 107, 102, .10); --am-encre: #17262a; --am-bord: #cfd6d6;
  --am-globe-fond: #ffffff; --am-baisse: #8b3932; --am-hausse: #1d6b66; --am-stable: #6e7a79;
  display: grid; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-monde { --am-ocean: #13232a; --am-terre: #33403f; --am-sans: #2a3332; --am-grat: rgba(143, 178, 184, .14); --am-encre: #f1f4f3; --am-bord: #3a4746; --am-globe-fond: #1b2629; --am-baisse: #d98b82; --am-hausse: #6fb3a6; --am-stable: #9aa5a4; }
}
:root[data-theme="dark"] .am-monde { --am-ocean: #13232a; --am-terre: #33403f; --am-sans: #2a3332; --am-grat: rgba(143, 178, 184, .14); --am-encre: #f1f4f3; --am-bord: #3a4746; --am-globe-fond: #1b2629; --am-baisse: #d98b82; --am-hausse: #6fb3a6; --am-stable: #9aa5a4; }
.am-monde-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.am-couches { flex-wrap: wrap; }
.am-monde-corps { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.am-globe { display: grid; gap: 6px; justify-items: center; }
.am-globe-canvas { width: 100%; max-width: 440px; aspect-ratio: 1; touch-action: none; cursor: grab; display: block; }
.am-globe-canvas:active { cursor: grabbing; }
.am-globe-aide { margin: 0; font-size: 12px; }
.am-monde-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.am-monde-info h3 { margin: 0; font-size: 15px; font-weight: 600; }
.am-monde-info h4 { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.am-monde-info > p { margin: 0; font-size: 13px; }
.am-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--fg-2); }
.am-legende li { display: inline-flex; align-items: center; gap: 6px; }
.am-legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .06); }
.am-legende i.is-sans { background: var(--am-sans); }
.am-legende i.is-pt { border-radius: 50%; background: var(--am-stable); }
.am-legende i.is-pt.is-baisse { background: var(--am-baisse); }
.am-legende i.is-pt.is-hausse { background: var(--am-hausse); }
.am-choix { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); margin: 0; font-size: 13px; }
.am-choix-nom { font-size: 15px; }
.am-choix-val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.am-choix-val small { font-size: 13px; font-weight: 400; color: var(--fg-2); }
.am-ancien { color: var(--fg-2); font-style: italic; }
.am-classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.am-classement button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; text-align: left; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-classement button:hover, .am-classement button[aria-pressed="true"] { background: var(--accent-soft); }
.am-classement button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.am-classement strong { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .am-monde-corps { grid-template-columns: 1fr; }
  .am-globe-canvas { max-width: 360px; }
}
@media (max-width: 640px) {
  .am-bulle-btn:has(.am-bulle-cle) { min-width: 0; max-width: none; }
  .am-monde { padding: 16px; }
}

/* Boussole des régimes (AM-03) : quadrants croissance × inflation ; une couleur par zone, voisines bien séparées */
.am-boussole { --am-z1: #1d6b66; --am-z2: #527c9b; --am-z3: #454a44; --am-z4: #8b3932; --am-z5: #b8893f; --am-z6: #7a5c99; --am-z7: #a66f4e; --am-z8: #5f8a3e;
  --am-q-stag: #b8893f; --am-q-infl: #a66f4e; --am-q-rec: #527c9b; --am-q-gold: #315344;
  display: grid; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-boussole { --am-z1: #6fb3a6; --am-z2: #8fb0cc; --am-z3: #c9cec7; --am-z4: #d98b82; --am-z5: #d4a85c; --am-z6: #b9a0d6; --am-z7: #cf9b7c; --am-z8: #a5cc85; }
}
:root[data-theme="dark"] .am-boussole { --am-z1: #6fb3a6; --am-z2: #8fb0cc; --am-z3: #c9cec7; --am-z4: #d98b82; --am-z5: #d4a85c; --am-z6: #b9a0d6; --am-z7: #cf9b7c; --am-z8: #a5cc85; }
.am-bz-tete p { margin: 4px 0 0; font-size: 13px; max-width: 72ch; }
.am-bz-mode { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: 13px; color: var(--fg-2); max-width: 80ch; }
.am-bz-mode b { color: var(--fg); font-weight: 600; }
.am-bz-court { margin-top: 4px; font-size: 12px; color: var(--fg-2); }
.am-bz-lecture { display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; border-left: 4px solid var(--am-q, var(--accent)); background: color-mix(in srgb, var(--surface) 86%, var(--am-q, var(--accent))); }
.am-bz-lecture.q-stag { --am-q: var(--am-q-stag); } .am-bz-lecture.q-infl { --am-q: var(--am-q-infl); }
.am-bz-lecture.q-rec { --am-q: var(--am-q-rec); } .am-bz-lecture.q-gold { --am-q: var(--am-q-gold); }
.am-bz-lecture p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.am-bz-lec-tete { font-size: 16px !important; }
.am-bz-lec-tete strong { font-weight: 700; }
.am-bz-lecture dl { margin: 0; display: grid; gap: 8px; }
.am-bz-lecture dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-2); }
.am-bz-lecture dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.am-bz-zq rect { fill: var(--surface); }
.am-bz-zq.q-stag rect { fill: color-mix(in srgb, var(--surface) 88%, var(--am-q-stag)); }
.am-bz-zq.q-infl rect { fill: color-mix(in srgb, var(--surface) 88%, var(--am-q-infl)); }
.am-bz-zq.q-rec rect { fill: color-mix(in srgb, var(--surface) 90%, var(--am-q-rec)); }
.am-bz-zq.q-gold rect { fill: color-mix(in srgb, var(--surface) 90%, var(--am-q-gold)); }
.am-bz-zq text { font-size: 11px; font-weight: 600; fill: var(--fg-3); }
.am-bz-zq.is-actif text { fill: var(--fg); }
.am-bz-seg { stroke-width: 2; stroke-linecap: round; }
.am-bz-halo { opacity: 0.18; }
.am-bz-corps { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.am-bz-carte { display: grid; gap: 6px; min-width: 0; }
.am-bz-cax { justify-self: center; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.am-bz-cax-x { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.am-bz-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-radius: 12px; overflow: hidden; background: var(--border); }
.am-bz-quad { display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 14px; background: var(--surface); }
.am-bz-quad > div { display: grid; gap: 2px; }
.am-bz-quad > div strong { font-size: 15px; font-weight: 600; }
.am-bz-quad > div .muted { font-size: 12px; }
.q-stag { background: color-mix(in srgb, var(--surface) 88%, var(--am-q-stag)); }
.q-infl { background: color-mix(in srgb, var(--surface) 88%, var(--am-q-infl)); }
.q-rec { background: color-mix(in srgb, var(--surface) 90%, var(--am-q-rec)); }
.q-gold { background: color-mix(in srgb, var(--surface) 90%, var(--am-q-gold)); }
.am-bz-quad ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.am-bz-vide { font-size: 12px; color: var(--fg-3); }
.am-bz-zone { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) 16px; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-bz-zone i { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; }
.am-bz-zone b { font-size: 14px; font-weight: 600; }
.am-bz-zone span { grid-column: 2; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.am-bz-fleche { grid-row: 1 / 3; grid-column: 3; width: 16px; height: 16px; fill: none; stroke: var(--fg-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-bz-zone:hover { border-color: var(--border); }
.am-bz-zone[aria-pressed="true"] { border-color: var(--fg); }
.am-bz-zone:focus-visible, .am-bz-table button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.am-bz-info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.am-bz-detail h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.am-bz-detail p { margin: 6px 0 0; font-size: 13px; }
.am-bz-chemin { width: 100%; height: auto; display: block; border-radius: 10px; overflow: hidden; background: var(--bg, transparent); }
.am-bz-chemin path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.am-bz-axe { stroke: var(--border); stroke-width: 1; }
.am-bz-axe-t { font-size: 11px; fill: var(--fg-3); }
.am-bz-pt { font-size: 11px; fill: var(--fg-2); }
.am-bz-pt.is-dernier { font-weight: 600; fill: var(--fg); }
.am-bz-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.am-bz-table caption { caption-side: bottom; text-align: left; font-size: 12px; padding-top: 6px; }
.am-bz-table th, .am-bz-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: right; font-weight: 400; }
.am-bz-table thead th { font-size: 12px; color: var(--fg-2); }
.am-bz-table th:first-child { text-align: left; }
.am-bz-table tr.is-on { background: var(--accent-soft); }
.am-bz-table button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; }
.am-bz-table button i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 820px) { .am-bz-corps { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .am-boussole { padding: 16px; }
  .am-bz-quad { min-height: 0; padding: 10px; }
  .am-bz-zone { padding: 6px 8px; }
}

/* AM-04 (26/10) : toute la base dans la bulle — recherche, pays, thèmes, séries comparables. */
.am-complet { display: grid; gap: 16px; }
.am-complet-barre { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 12px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); scroll-margin-top: 80px; }
.am-complet-compte { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.am-select { display: grid; gap: 3px; font-size: 11px; color: var(--fg-3); }
.am-select select { height: 38px; max-width: 220px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); padding: 0 8px; font: inherit; font-size: 13px; color: var(--fg); }
.am-groupe h3 .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.am-ligne.is-une { background: linear-gradient(90deg, color-mix(in srgb, var(--am-s2) 9%, transparent), transparent 70%); }
.am-une { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--am-s2); border: 1px solid color-mix(in srgb, var(--am-s2) 45%, transparent); vertical-align: 1px; }
.am-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; }
.am-tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: 1px 8px; font: inherit; font-size: 11px; color: var(--fg-2); cursor: pointer; }
.am-tag:hover { border-color: var(--accent); color: var(--fg); }
.am-tag.is-comp { color: var(--am-s1); }
.am-tag[aria-expanded="true"] { background: color-mix(in srgb, var(--am-s1) 12%, var(--surface)); border-color: var(--am-s1); }
.am-semb { display: grid; gap: 8px; margin: 2px 0 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--am-s1) 40%, var(--border)); border-radius: 10px; background: var(--surface); font-size: 12px; }
.am-semb-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.am-semb-tete .btn { margin-left: auto; }
.am-semb ul { list-style: none; margin: 0; padding: 0; display: grid; max-height: 320px; overflow-y: auto; }
.am-semb ul li { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.am-semb .am-ajout { width: 26px; height: 26px; }
.am-cherche-mini > .icon { top: 9px; }
.am-cherche-mini input { height: 32px; font-size: 12px; }
@media (max-width: 720px) {
  .am-complet-barre { grid-template-columns: 1fr 1fr; }
  .am-complet-barre .am-cherche { grid-column: 1 / -1; }
  .am-select select { max-width: none; width: 100%; }
}

/* AM-06 (26/10/2026) : les 3 directions artistiques des maquettes du 22/10, au choix de l'utilisateur.
   Épure = jetons de la suite (rien à redéfinir). Nuit et or = toujours sombre. Atlas = clair, et sa
   variante sombre si la suite est en mode sombre. Polices : celles du poste (aucune police externe). */
.am-head-droite { display: grid; gap: 8px; justify-items: end; }
.am-da { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.am-da button { border: 0; background: transparent; color: var(--fg-2); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.am-da button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 640px) { .am-head-droite { justify-items: start; } }

.am-tool[data-da="nuit"], .am-tool[data-da="atlas"] { background: var(--bg); color: var(--fg); min-height: 100vh; }
.am-tool[data-da="nuit"] {
  color-scheme: dark;
  --bg: #12160f; --surface: #191f15; --surface-2: #1c2217; --surface-3: #232a1d; --border: #2a3024; --border-strong: #3a4232;
  --fg: #ecebe3; --fg-2: #c3c2b5; --fg-3: #a8a797; --accent: #ccb17d; --accent-fg: #12160f; --accent-soft: #2b2a1c;
  --warning-soft: #3a3020; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --am-s1: #ccb17d; --am-s2: #8fc1b5; --am-s3: #c98f7c; --am-s4: #8fb0cc; --am-s5: #b3b8b1; --am-s6: #cf9b7c;
  --am-peur: #d98b82; --am-neutre: #d9b264; --am-serein: #85c494;
}
.am-tool[data-da="nuit"] .am-monde { --am-ocean: #161b12; --am-terre: #3a4030; --am-sans: #2f3628; --am-grat: rgba(204, 177, 125, .12); --am-encre: #ecebe3; --am-bord: #2a3024; --am-globe-fond: #191f15; --am-baisse: #d98b82; --am-hausse: #8fc1b5; --am-stable: #a8a797; }
.am-tool[data-da="nuit"] h1, .am-tool[data-da="nuit"] .am-baro-chiffre strong, .am-tool[data-da="nuit"] .am-ligne-val strong { font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }

.am-tool[data-da="atlas"] {
  --bg: #f6f8fa; --surface: #ffffff; --surface-2: #e9eef4; --surface-3: #e0e6ee; --border: #e0e6ee; --border-strong: #c9d3df;
  --fg: #13294b; --fg-2: #3d4e66; --fg-3: #55657a; --accent: #315344; --accent-fg: #ffffff; --accent-soft: #e2ece6;
  --font-ui: "Plus Jakarta Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --am-s1: #315344; --am-s2: #b8893f; --am-s3: #527c9b; --am-s4: #66231f; --am-s5: #454a44; --am-s6: #a66f4e;
  font-family: var(--font-ui);
}
.am-tool[data-da="atlas"] .am-monde { --am-ocean: #eaf0f5; --am-terre: #c9d8cf; --am-sans: #d6dde5; --am-grat: rgba(19, 41, 75, .08); --am-encre: #13294b; --am-bord: #e0e6ee; --am-globe-fond: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-tool[data-da="atlas"] { color-scheme: dark; --bg: #0f1724; --surface: #16213a; --surface-2: #18243a; --surface-3: #1d2a42; --border: #22314a; --border-strong: #32435f; --fg: #e4ecf3; --fg-2: #b8c4d2; --fg-3: #9aabbd; --accent: #7fb89b; --accent-fg: #0f1724; --accent-soft: #1d3330; --am-s1: #7fb89b; --am-s2: #d4a85c; --am-s3: #8fb0cc; --am-s4: #c27b72; --am-s5: #b3b8b1; --am-s6: #cf9b7c; }
  :root:not([data-theme="light"]) .am-tool[data-da="atlas"] .am-monde { --am-ocean: #131d2c; --am-terre: #2c4a48; --am-sans: #22314a; --am-grat: rgba(143, 178, 204, .14); --am-encre: #e4ecf3; --am-bord: #22314a; --am-globe-fond: #16213a; }
}
:root[data-theme="dark"] .am-tool[data-da="atlas"] { color-scheme: dark; --bg: #0f1724; --surface: #16213a; --surface-2: #18243a; --surface-3: #1d2a42; --border: #22314a; --border-strong: #32435f; --fg: #e4ecf3; --fg-2: #b8c4d2; --fg-3: #9aabbd; --accent: #7fb89b; --accent-fg: #0f1724; --accent-soft: #1d3330; --am-s1: #7fb89b; --am-s2: #d4a85c; --am-s3: #8fb0cc; --am-s4: #c27b72; --am-s5: #b3b8b1; --am-s6: #cf9b7c; }
:root[data-theme="dark"] .am-tool[data-da="atlas"] .am-monde { --am-ocean: #131d2c; --am-terre: #2c4a48; --am-sans: #22314a; --am-grat: rgba(143, 178, 204, .14); --am-encre: #e4ecf3; --am-bord: #22314a; --am-globe-fond: #16213a; }

/* AM-08 (26/10/2026) : vue appli des maquettes du 22/10 — globe en grand, mise en page téléphone, onglets en bas.
   Sur ordinateur, la même vue tient dans une colonne de téléphone centrée. */
.am-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.am-app-racine { min-height: 100vh; background: var(--bg); color: var(--fg); }
.am-app { max-width: 560px; margin: 0 auto; padding: 0 0 calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 4px; }
.am-app-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 16px 6px; }
.am-app-tete h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.am-app-date { font-size: 13px; text-transform: capitalize; }
.am-app-corps { display: grid; gap: 14px; padding: 8px 12px; min-width: 0; }
.am-app-corps > * { min-width: 0; }
.am-app .am-monde, .am-app .am-baro, .am-app .am-axe, .am-app .am-reperes, .am-app-carte, .am-app-zones { border-radius: 18px; padding: 16px; }
.am-app-carte, .am-app-zones { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--border); }
.am-app-carte h2, .am-app-zones h2 { margin: 0; }
.am-app-carte p { margin: 0; font-size: 13px; }
.am-app-mentions { font-size: 12px; padding: 4px 4px 12px; }
.am-app-aide { margin: 0; font-size: 13px; }
/* Globe en grand : toute la largeur de la carte, couches en bande qui défile. */
/* minmax(0, 1fr) : la bande des couches (sans retour à la ligne) ne doit pas élargir la carte au-delà de l'écran. */
.am-app .am-monde, .am-app .am-globe { grid-template-columns: minmax(0, 1fr); }
.am-app .am-monde-corps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.am-app .am-globe-canvas { max-width: none; width: 100%; }
.am-app .am-couches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.am-app .am-couches::-webkit-scrollbar { display: none; }
.am-app .am-couches button { flex: none; }
.am-app .am-monde-tete { flex-direction: column; align-items: stretch; }
.am-app .am-bulles-rang { grid-template-columns: 1fr; }
.am-app .am-axe-tete { flex-wrap: wrap; }
.am-app .am-retour { padding-left: 0; }
.am-app-familles { overflow-x: auto; flex-wrap: nowrap; }
/* Barre d'onglets */
.am-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  max-width: 560px; margin: 0 auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); }
.am-tabbar button { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--fg-3); font: inherit; font-size: 11px; cursor: pointer; border-radius: 10px; }
.am-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-tabbar button[aria-current="page"] { color: var(--fg); font-weight: 600; }
.am-tabbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 561px) { .am-tabbar { border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 16px 16px 0 0; } }

/* AM-09 (26/10/2026) : tableaux partout, graphique et tableau côte à côte. Style repris de l'écran CRM
   « Suivi du CA mensuel » : bandeau de chiffres clés, en-têtes discrets, chiffres alignés à droite,
   passé en plein, prévisions en gris puis hachurées. */
.am-tool { --am-prev: #a3b1c0; --am-loin-trait: #8a9bb0; --am-loin-fond: #c9d2dc; --am-tab-tete: #fafbfb; --am-hachure-cellule: rgba(138, 155, 176, .14); }
.am-tool[data-da="nuit"] { --am-prev: #6b7468; --am-loin-trait: #8a9282; --am-loin-fond: #2f3628; --am-tab-tete: #1c2217; --am-hachure-cellule: rgba(204, 177, 125, .08); }
.am-tool[data-da="atlas"] { --am-tab-tete: #f6f8fa; }
/* La barre de Zeia est dans .am-tool : en DA sombre, son verre doit être sombre aussi (sinon texte clair sur fond clair). */
.am-tool[data-da="nuit"] { --glass-bg: rgba(18, 22, 15, .6); --glass-bg-strong: rgba(18, 22, 15, .85); --glass-edge: rgba(255, 255, 255, .07); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .03); --glass-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .am-tool[data-da="atlas"] { --glass-bg: rgba(15, 23, 36, .6); --glass-bg-strong: rgba(15, 23, 36, .85); --glass-edge: rgba(255, 255, 255, .07); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .03); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-tool[data-da="atlas"] { --glass-bg: rgba(15, 23, 36, .6); --glass-bg-strong: rgba(15, 23, 36, .85); --glass-edge: rgba(255, 255, 255, .07); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .03); }
}
:root[data-theme="dark"] .am-tool[data-da="epure"], :root[data-theme="dark"] .am-tool[data-da="atlas"] { --am-prev: #5d6b7a; --am-loin-trait: #7d8fa3; --am-loin-fond: #22314a; --am-tab-tete: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-tool[data-da="epure"], :root:not([data-theme="light"]) .am-tool[data-da="atlas"] { --am-prev: #5d6b7a; --am-loin-trait: #7d8fa3; --am-loin-fond: #22314a; --am-tab-tete: var(--surface-2); }
}

.am-bloc-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.am-bloc-tete h2 { margin: 0 0 2px; }
.am-bloc-tete p { margin: 0; }
.am-vue-choix button { font-size: 12.5px; }
.am-zones-tab, .am-prev { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 0 0 16px; }

.am-double { display: grid; gap: 16px; align-items: start; }
.am-double > div { min-width: 0; }
@media (min-width: 1000px) { .am-double.is-deux { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.am-app .am-double.is-deux { grid-template-columns: minmax(0, 1fr); }
.am-double-titre { margin: 0 0 8px; font-size: 14px; font-weight: 600; }

.am-tab-bloc { display: grid; gap: 8px; }
.am-tab-outils { display: flex; align-items: center; gap: 10px; }
.am-tab-filtre { flex: 1; max-width: 260px; padding: 6px 10px; border: 1px solid var(--border-strong, var(--border)); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.am-tab-defile { overflow: auto; max-height: 460px; border: 1px solid var(--border); border-radius: 10px; }
.am-tab-bulle { max-height: none; margin-bottom: 12px; }
.am-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.am-tab thead th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 500; font-size: 12px; color: var(--fg-3); padding: 9px 12px; background: var(--am-tab-tete); border-bottom: 1px solid var(--border); white-space: nowrap; }
.am-tab thead th small { display: block; font-weight: 400; font-size: 11px; }
.am-tab td, .am-tab tbody th { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; font-weight: 400; }
.am-tab tbody th { font-weight: 500; }
.am-tab tbody tr:last-child > * { border-bottom: 0; }
.am-tab .num { text-align: right; white-space: nowrap; }
.am-tab small { display: block; font-size: 11px; color: var(--fg-3); font-weight: 400; }
.am-tab tbody th > i, .am-tab td > i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
.am-tab th button { display: inline-flex; align-items: center; gap: 0; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; }
.am-tab thead th button { flex-direction: column; align-items: inherit; }
.am-tab thead th.num button { align-items: flex-end; }
.am-tab tr.is-on > *, .am-tab td.is-on, .am-tab thead th.is-on { background: var(--accent-soft); }
.am-tab tr.is-ancien, .am-tab td.is-ancien { color: var(--fg-3); }
.am-tab tbody tr:hover > * { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.am-tab-groupe th { background: var(--am-tab-tete); font-size: 12px; color: var(--fg-2); padding: 6px 12px; }
.am-tab tr.is-une th[scope="row"] { color: var(--fg); }
.am-tab .am-ajout { width: 26px; height: 26px; }
.am-tab-zones td { min-width: 92px; }
.am-tab-aide { margin: 0; font-size: 12px; }

/* Bandeau de chiffres clés (comme le CA mensuel du CRM) */
.am-kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0; }
.am-kpis small { display: block; font-size: 11.5px; color: var(--fg-2); }
.am-kpis b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.am-kpis b span { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.am-kpis em { display: block; font-style: normal; font-size: 11px; color: var(--fg-3); }
.am-kpis > div:first-child b { color: var(--accent); font-size: 22px; }
.am-prev-ind { flex-wrap: wrap; }

/* Graphique des prévisions : passé et année en cours en plein, prévision grise, prévision lointaine hachurée */
.am-prev-svg, .am-barres { display: block; width: 100%; height: auto; }
.am-prev-svg { max-height: 300px; }
.am-prev-grille { stroke: var(--border); }
.am-prev-zero { stroke: var(--fg-3); stroke-width: 1; }
.am-prev-axe, .am-prev-zone, .am-barres-lib, .am-barres-val { font-size: 11px; fill: var(--fg-2); font-family: inherit; }
.am-prev-zone.is-fr { font-weight: 600; fill: var(--fg); }
.am-prev-ecart { stroke: var(--fg); stroke-width: 1.2; opacity: .55; }
.am-b-passe { fill: var(--am-s1); background: var(--am-s1); }
.am-b-courant { fill: var(--am-s2); background: var(--am-s2); }
.am-b-prev { fill: var(--am-prev); background: var(--am-prev); }
.am-b-loin { stroke: var(--am-loin-trait); stroke-width: 1; background: repeating-linear-gradient(45deg, var(--am-loin-trait) 0 3px, var(--am-loin-fond) 3px 6px); }
.am-h-fond { fill: var(--am-loin-fond); }
.am-h-trait { fill: var(--am-loin-trait); }
.am-legende-prev { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--fg-2); }
.am-legende-prev li { display: inline-flex; align-items: center; gap: 6px; }
.am-cle { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.am-cle-ecart { width: 2px; height: 12px; border-radius: 0; background: var(--fg); opacity: .55; }
.am-tab-prev td.is-prev { background: var(--am-hachure-cellule); }
.am-tab-prev td.is-loin { background: repeating-linear-gradient(45deg, var(--am-hachure-cellule) 0 4px, transparent 4px 8px); }
.am-tab-prev thead th.is-prev, .am-tab-prev thead th.is-loin { color: var(--fg-3); }
.am-tab-prev tr.is-fr th[scope="row"] { font-weight: 700; }
.am-tab-detail td { background: var(--am-tab-tete); }
.am-tab-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.am-tab-detail li { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(4, 64px); gap: 8px; font-size: 12.5px; }
.am-barres-zero { stroke: var(--fg-3); }
@media (max-width: 640px) {
  .am-zones-tab, .am-prev { padding: 12px; }
  .am-tab { font-size: 13px; }
  .am-tab td, .am-tab tbody th, .am-tab thead th { padding: 8px 9px; }
  .am-tab-detail li { grid-template-columns: minmax(100px, 1fr) repeat(4, 48px); }
}

/* AM-10 (26/10/2026) : vue PC comme la maquette « Site — Épure » du 22/10 — onglets, planète et bulles en orbite,
   brief en cartes, offres, panneau latéral pour chaque bulle. */
.am-pc-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.am-pc-marque { font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.am-pc-onglets { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; min-width: 0; }  /* AM-35 : 11 onglets, passent à la ligne au lieu d'être coupés */
.am-pc-onglets button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.am-pc-onglets button:hover { color: var(--fg); background: color-mix(in srgb, var(--am-s1) 8%, transparent); }
.am-pc-onglets button[aria-current="page"] { color: var(--am-s1); background: color-mix(in srgb, var(--am-s1) 12%, var(--surface)); font-weight: 600; }
.am-pc-droite { display: flex; align-items: center; gap: 10px; }
.am-pc-main { display: grid; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; }
.am-pc-section { display: grid; gap: 12px; }
.am-pc-section h2 { margin: 0; }
.am-pc-petit { font-size: 12px; }
.am-pc-hero { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: 32px; align-items: center; min-height: 70vh; }
.am-pc-hero h1 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.am-pc-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.am-pc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.am-bulles-rang { display: flex; flex-wrap: wrap; gap: 12px; }
.am-pc-pied { font-size: 12px; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 14px; }
.am-pc-pied p { margin: 4px 0; }

/* Planète : globe au centre, bulles en orbite, positions calculées dans Planete.tsx. */
.am-planete { position: relative; width: 100%; max-width: 920px; justify-self: center; container-type: inline-size; }
.am-planete-globe { position: absolute; left: 27%; top: 27%; width: 46%; }
.am-planete-globe canvas, .am-planete-globe svg { max-width: none; width: 100%; height: auto; }
.am-planete-globe .am-globe-aide, .am-planete-globe .am-globe-outils { display: none; }
.am-planete-monde { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--am-s1) 50%, var(--border)); background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--fg); font: inherit; font-size: 2.1cqw; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.am-planete-monde.is-on, .am-planete-monde:hover { border-color: var(--am-s1); color: var(--am-s1); }
.am-planete-legende { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; text-align: center; font-size: 11px; }
.am-planete-groupe { position: absolute; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.am-planete-groupe.is-zone { left: 50%; top: 0; transform: translateX(-50%); }
.am-planete-groupe.is-theme { right: 0; top: 2%; }   /* coin haut droit : ne chevauche plus la bulle Japon (30/10) */
.am-planete-groupe.is-marches { left: 2%; top: 72%; }
/* 29/10 : les titres de famille passent devant les bulles (« …IRS POUSSÉS » caché derrière Émergents). */
.am-planete-groupe { z-index: 4; pointer-events: none; }
.am-orb { --am-orb: var(--am-s1); position: absolute; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2cqw; padding: .6cqw; border: 1px solid color-mix(in srgb, var(--am-orb) 45%, var(--border)); background: color-mix(in srgb, var(--surface) 90%, var(--am-orb));
  color: var(--fg); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.07); transition: scale .2s ease, box-shadow .2s ease; z-index: 2;
  animation: am-pop .45s cubic-bezier(.2, .9, .3, 1.3) backwards, am-flotte 6s ease-in-out infinite; }
.am-orb:hover, .am-orb:focus-visible { scale: 1.1; box-shadow: 0 14px 30px rgba(0,0,0,.16); z-index: 3; }
.am-orb.is-on { border-width: 2px; border-color: var(--am-orb); }
/* AM-31 : bulles neutres, plus de couleur de famille (retour du 28/10) ; les familles restent nommées autour. */
.am-orb-nom { font-size: 1.7cqw; font-weight: 600; line-height: 1.15; }
.am-orb-theme .am-orb-nom { font-size: 1.5cqw; }
.am-orb-val { font-size: 2.9cqw; font-weight: 600; color: var(--am-orb); line-height: 1; font-variant-numeric: tabular-nums; }
.am-orb-tend { font-size: 1.25cqw; color: var(--muted); line-height: 1.1; }
.am-orb-tend.is-up { color: var(--am-serein); } .am-orb-tend.is-down { color: var(--am-peur); }

/* Brief en cartes (« stories ») et offres. */
.am-brief-tete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.am-brief-tete .btn { margin-left: auto; }
.am-brief-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.am-story { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease; }
.am-story:hover { border-color: var(--am-s1); }
.am-story-kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--am-s1); }
.am-story-big { font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.am-story-big small { font-size: 14px; font-weight: 500; color: var(--muted); }
.am-story-txt { font-size: 13px; line-height: 1.45; }
.am-story-src { font-size: 11px; }
.am-offres-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.am-offre { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-offre h3 { margin: 0; font-size: 20px; }
.am-offre p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.am-offre-prix { margin-top: auto; padding-top: 10px; font-size: 22px; font-weight: 600; }

/* Panneau latéral d'une bulle. */
.am-pc-voile { position: fixed; inset: 0; z-index: 40; background: rgba(15, 22, 24, .28); }
.am-pc-panneau { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(760px, 100vw); overflow-y: auto; padding: 18px 20px 32px;
  background: var(--bg); border-left: 1px solid var(--border); box-shadow: -12px 0 32px rgba(0,0,0,.14); animation: am-entree .18s ease-out; }
.am-pc-panneau .am-axe { margin: 0; }
@keyframes am-entree { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* AM-12 : bulles « dynamiques » — apparition en cascade puis léger flottement ; le survol les grossit. */
@keyframes am-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes am-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2.5%; } }

/* AM-12 : sous-bulles d'une bulle (ses thèmes), en cercle autour d'elle. */
.am-sb { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 4px auto 8px; container-type: inline-size; }
.am-sb::before { content: ""; position: absolute; inset: 14.5%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--am-s1) 30%, var(--border)); }
.am-sb-centre, .am-sb-bulle { position: absolute; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4cqw; padding: 1.2cqw; font: inherit; text-align: center; cursor: pointer; color: var(--fg); }
.am-sb-centre { border: 2px solid var(--am-s1); background: color-mix(in srgb, var(--surface) 80%, var(--am-s1)); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.am-sb-centre .am-sb-nom { font-size: 4.2cqw; }
.am-sb-centre .am-sb-val { font-size: 6cqw; }
.am-sb-aide { font-size: 2.3cqw; color: var(--muted); }
.am-sb-centre:not(.is-on) .am-sb-aide { color: var(--am-s1); text-decoration: underline; }
.am-sb-bulle { --am-orb: var(--am-s4); border: 1px solid color-mix(in srgb, var(--am-orb) 45%, var(--border)); background: color-mix(in srgb, var(--surface) 90%, var(--am-orb));
  box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: scale .2s ease, opacity .2s ease, box-shadow .2s ease;
  animation: am-pop .4s cubic-bezier(.2, .9, .3, 1.3) backwards, am-flotte 6s ease-in-out infinite; }
.am-sb-bulle:nth-child(3n) { --am-orb: var(--am-s2); } .am-sb-bulle:nth-child(3n + 1) { --am-orb: var(--am-s1); }
.am-sb-bulle:hover, .am-sb-bulle:focus-visible { scale: 1.1; z-index: 2; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.am-sb-bulle.is-on { border: 2px solid var(--am-orb); scale: 1.12; z-index: 2; }
.am-sb-bulle.is-loin { opacity: .55; }
.am-sb-nom { font-size: 2.4cqw; font-weight: 600; line-height: 1.15; }
.am-sb-val { font-size: 3.6cqw; font-weight: 600; line-height: 1; color: var(--am-orb, var(--am-s1)); font-variant-numeric: tabular-nums; }
.am-sb-tend { font-size: 2cqw; color: var(--muted); line-height: 1.1; }
.am-sb-tend.is-up { color: var(--am-serein); } .am-sb-tend.is-down { color: var(--am-peur); }
.am-fil { color: var(--muted); font-weight: 400; }

@media (prefers-reduced-motion: reduce) { .am-pc-panneau, .am-orb, .am-sb-bulle { animation: none; } .am-orb, .am-sb-bulle { transition: none; } }

@media (max-width: 980px) {
  .am-pc-hero { grid-template-columns: 1fr; min-height: 0; }
  .am-pc-nav { flex-wrap: wrap; padding: 10px 16px; }
  .am-pc-main { padding: 16px 16px 40px; }
}
/* Prévisions 2028-2031 : case « 1 source » (une seule institution publie, chiffre non retenu). */
.am-une-source { display: inline-grid; justify-items: end; font-size: 12px; color: var(--muted); font-style: italic; }
.am-une-source small { font-style: normal; }

/* AM-13 (26/10/2026) : lot 1 « les chiffres qui bougent ». */
/* Bulles qui respirent : amplitude (--am-souffle) et rythme (--am-rythme) selon l'ampleur du mouvement sur un an. */
@keyframes am-respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(var(--am-souffle, 1.02)); } }
.am-orb, .am-sb-bulle { animation: am-pop .45s cubic-bezier(.2, .9, .3, 1.3) backwards, am-flotte 6s ease-in-out infinite, am-respire var(--am-rythme, 4s) ease-in-out infinite; }
.am-bulle-btn.am-respire { position: relative; animation: am-respire var(--am-rythme, 4s) ease-in-out infinite; }
/* Nouveau chiffre : une onde part de la bulle, comme un signal. */
@keyframes am-onde { from { opacity: .7; inset: -2px; } to { opacity: 0; inset: -18px; } }
.am-orb.is-neuf::after, .am-sb-bulle.is-neuf::after, .am-bulle-btn.is-neuf::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--am-s2); pointer-events: none; animation: am-onde 2s ease-out infinite; }
.am-neuf { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--am-s2); color: var(--surface); }
/* Records. */
.am-record { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--am-s2); background: color-mix(in srgb, var(--am-s2) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--am-s2) 40%, transparent); }
.am-record.is-bas { color: var(--am-s4); background: color-mix(in srgb, var(--am-s4) 12%, var(--surface)); border-color: color-mix(in srgb, var(--am-s4) 40%, transparent); }
.am-orb-record { position: absolute; top: 6%; right: 12%; font-size: 1.9cqw; color: var(--am-s2); line-height: 1; }
.am-sb-bulle .am-orb-record { font-size: 3cqw; }

/* Pouls du jour. */
.am-pouls { display: grid; gap: 10px; }
.am-pouls-trace { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.am-pouls-trace svg { display: block; width: 100%; height: auto; }
.am-pouls-jour { stroke: var(--border); stroke-dasharray: 3 4; }
.am-pouls-lib { font-size: 12px; fill: var(--muted); text-transform: capitalize; }
@keyframes am-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.am-pouls-ligne { fill: none; stroke: var(--am-s3); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: am-trace 2.4s ease-out both; }
.am-pouls-pic { fill: var(--am-s3); stroke: var(--surface); stroke-width: 2; cursor: help; }
.am-pouls-pic.is-up { fill: var(--am-hausse, var(--am-serein)); } .am-pouls-pic.is-down { fill: var(--am-baisse, var(--am-peur)); }
@keyframes am-balai { from { transform: translateX(16px); } to { transform: translateX(984px); } }
.am-pouls-balai { stroke: color-mix(in srgb, var(--am-s3) 45%, transparent); stroke-width: 2; animation: am-balai 6s linear infinite; }
.am-pouls-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.am-pouls-liste button { width: 100%; height: 100%; display: grid; gap: 3px; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.am-pouls-liste button:hover:not(:disabled) { border-color: var(--am-s1); }
.am-pouls-nom { font-size: 13px; font-weight: 600; line-height: 1.3; }
.am-pouls-val { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.am-pouls-quand { font-size: 11.5px; }

/* Cockpit de jauges. */
.am-cockpit { display: grid; gap: 10px; }
.am-cockpit-jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.am-jauge { margin: 0; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-jauge svg { width: 100%; max-width: 240px; height: auto; overflow: visible; }
.am-jauge-piste { fill: none; stroke: var(--border); stroke-width: 12; stroke-linecap: round; }
.am-jauge-cible { fill: none; stroke: color-mix(in srgb, var(--am-serein) 55%, transparent); stroke-width: 12; }
.am-jauge-an { stroke: var(--muted); stroke-width: 2; }
.am-jauge-aiguille { transform-box: view-box; transform-origin: 100px 100px; transition: transform 1.4s cubic-bezier(.25, 1.2, .4, 1); }
.am-jauge-aiguille line { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; }
.am-jauge-aiguille circle { fill: var(--fg); }
.am-jauge-borne { font-size: 11px; fill: var(--muted); }
.am-jauge figcaption { display: grid; gap: 2px; justify-items: center; }
.am-jauge figcaption b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.am-jauge figcaption span { font-size: 13px; font-weight: 500; }
.am-jauge figcaption small { font-size: 11px; line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  .am-orb, .am-sb-bulle, .am-bulle-btn.am-respire, .am-pouls-ligne, .am-pouls-balai { animation: none; }
  .am-orb.is-neuf::after, .am-sb-bulle.is-neuf::after, .am-bulle-btn.is-neuf::after { animation: none; inset: -4px; opacity: .6; }
  .am-jauge-aiguille { transition: none; }
}

/* AM-14 : rubriques et sous-onglets — bureau (onglets + pastilles) */
.am-rub { display: grid; gap: 10px; margin: 6px 0 2px; }
.am-rub-onglets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-bottom: 1px solid var(--border); }
.am-rub-onglets button { border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; text-align: left; padding: 10px 12px 9px; cursor: pointer;
  display: grid; gap: 2px; color: var(--fg-2); border-radius: 8px 8px 0 0; }
.am-rub-onglets button b { font-size: 15px; font-weight: 600; color: var(--fg); }
.am-rub-onglets button small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.am-rub-onglets button:hover { background: var(--surface-2); }
.am-rub-onglets button.is-on { border-bottom-color: var(--am-s1); background: color-mix(in srgb, var(--surface) 88%, var(--am-s1)); }
.am-rub-onglets button.is-on b { color: var(--am-s1); }
.am-sous-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.am-sous-onglets button { border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 7px; color: var(--fg); }
.am-sous-onglets button em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.am-sous-onglets button em.is-up { color: var(--am-serein); } .am-sous-onglets button em.is-down { color: var(--am-peur); }
.am-sous-onglets button:hover { border-color: var(--am-s1); }
.am-sous-onglets button.is-on { background: var(--am-s1); border-color: var(--am-s1); color: #fff; }
.am-sous-onglets button.is-on em { color: #fff; }
.am-sb.is-rubriques .am-sb-nom { font-size: 3.6cqw; }
.am-sb.is-rubriques .am-sb-tend { font-size: 2.1cqw; padding: 0 10%; }

/* AM-14 : téléphone — cartes de rubriques, barres défilantes au pouce, courbes repliées */
.am-axe-tel { gap: 12px; }
.am-axe-tel .am-axe-tete h2 { font-size: 20px; margin: 0; flex-basis: 100%; }
.am-tel-rubs { display: grid; gap: 12px; }
.am-tel-rub { display: grid; gap: 6px; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--border);
  border-left: 5px solid var(--am-s1); border-radius: 16px; padding: 14px 14px 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.am-tel-rub:nth-child(2) { border-left-color: var(--am-s2); } .am-tel-rub:nth-child(3) { border-left-color: var(--am-s4); }
.am-tel-rub:active { transform: scale(.985); }
.am-tel-rub-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.am-tel-rub-tete b { font-size: 19px; }
.am-tel-rub-tete .muted { font-size: 13px; white-space: nowrap; }
.am-tel-rub-aide { font-size: 13px; }
.am-tel-rub-chiffres { display: grid; gap: 0; margin-top: 4px; }
.am-tel-rub-ligne { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.am-tel-rub-groupe { font-size: 14px; font-weight: 500; display: grid; min-width: 0; }
.am-tel-rub-groupe small { font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-tel-rub-ligne strong { font-size: 18px; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.am-tel-rub-ligne .am-tend, .am-tel-rub-ligne .am-record { grid-column: 1 / -1; justify-self: start; font-size: 12px; }
.am-tel-barres { position: sticky; top: 0; z-index: 5; display: grid; gap: 6px; padding: 6px 0 8px; margin: 0 -12px; padding-inline: 12px;
  background: var(--bg, var(--surface)); border-bottom: 1px solid var(--border); }
.am-tel-defile { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.am-tel-defile::-webkit-scrollbar { display: none; }
.am-tel-defile button { flex: none; scroll-snap-align: start; font: inherit; cursor: pointer; white-space: nowrap; }
.am-tel-rubbar button { border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 4px; border-bottom: 3px solid transparent; min-height: 44px; }
.am-tel-rubbar button.is-on { color: var(--fg); border-bottom-color: var(--am-s1); }
.am-tel-chips button { border: 1px solid var(--border); background: var(--surface); font-size: 14px; padding: 8px 13px; border-radius: 999px; min-height: 40px; color: var(--fg); }
.am-tel-chips button em { font-style: normal; font-weight: 600; margin-left: 6px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.am-tel-chips button.is-on { background: var(--am-s1); border-color: var(--am-s1); color: #fff; }
.am-tel-chips button.is-on em { color: #fff; }
.am-tel-comp { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.am-tel-comp > summary { padding: 12px 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.am-tel-comp[open] > summary { border-bottom: 1px solid var(--border); }
.am-tel-comp > .am-comp, .am-tel-comp > section, .am-tel-comp > div { padding: 10px; }
@media (prefers-reduced-motion: reduce) { .am-tel-rub:active { transform: none; } }

/* AM-15 : bulles toujours rondes et lisibles (capture du 26/10 : ellipses et textes qui débordent) */
.am-sb-centre, .am-sb-bulle, .am-orb { box-sizing: border-box; min-height: 0; overflow: hidden; }
.am-sb-nom, .am-orb-nom { max-width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; overflow-wrap: break-word; }
.am-sb-bulle { padding: 1.6cqw; }
.am-sb.is-grille { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; container-type: normal; }
.am-sb.is-grille::before { display: none; }
.am-sb.is-grille .am-sb-centre, .am-sb.is-grille .am-sb-bulle { position: static; aspect-ratio: auto; border-radius: 14px; padding: 10px 12px; align-items: flex-start; text-align: left; gap: 3px; scale: 1; }
.am-sb.is-grille .am-sb-centre { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; box-shadow: none; }
.am-sb.is-grille .am-sb-nom { font-size: 14px; } .am-sb.is-grille .am-sb-centre .am-sb-nom { font-size: 16px; }
.am-sb.is-grille .am-sb-val { font-size: 18px; } .am-sb.is-grille .am-sb-tend, .am-sb.is-grille .am-sb-aide { font-size: 12px; }
.am-sb.is-grille .am-sb-bulle { animation: am-pop .35s ease backwards; }
.am-sb.is-grille .am-sb-bulle:hover { scale: 1.02; }

/* AM-15 : recherche intelligente */
.am-pc-chq { position: sticky; top: 0; z-index: 20; padding: 10px 24px; background: color-mix(in srgb, var(--bg, var(--surface)) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.am-chq { position: relative; max-width: 860px; margin: 0 auto; width: 100%; }
.am-chq-champ { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 0 10px 0 12px; color: var(--muted); }
.am-chq-champ:focus-within { border-color: var(--am-s1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--am-s1) 18%, transparent); }
.am-chq-champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; padding: 11px 0; color: var(--fg); }
.am-chq-kbd { font: 12px ui-monospace, monospace; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--muted); }
.am-chq-liste { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(70vh, 620px); overflow: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 6px; }
.am-chq-bloc h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 8px 4px; font-weight: 600; }
.am-chq-aller, .am-chq-serie { display: grid; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: var(--fg); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.am-chq-aller { grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-weight: 500; color: var(--am-s1); }
.am-chq-serie { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; }
.am-chq-aller:hover, .am-chq-serie:hover, .is-actif { background: color-mix(in srgb, var(--am-s1) 9%, var(--surface)); }
.am-chq-nom { font-weight: 500; } .am-chq-nom small { color: var(--muted); font-weight: 400; }
.am-chq-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .am-chq-val small { color: var(--muted); }
.am-chq-ou { grid-column: 1 / -1; font-size: 12px; }
.am-chq-compris { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--am-s1); background: color-mix(in srgb, var(--am-s1) 8%, var(--surface)); border-radius: 8px; padding: 6px 10px; margin: 2px 2px 4px; }
.am-chq-vide { padding: 12px; color: var(--muted); margin: 0; } .am-chq-vide.is-error { color: var(--am-peur); }
.am-chq-exemples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; }
.am-chq-exemples button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--fg); }
/* Téléphone : le champ ouvre une page de recherche plein écran */
.am-chq.is-tel .am-chq-champ { border-radius: 14px; min-height: 46px; }
.am-chq.is-tel .am-chq-champ input { font-size: 16px; }
.am-chq.is-plein { position: fixed; inset: 0; z-index: 60; max-width: none; background: var(--bg, var(--surface)); padding: calc(10px + env(safe-area-inset-top)) 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.am-chq.is-plein .am-chq-liste { position: static; flex: 1; max-height: none; box-shadow: none; border: 0; padding: 0; }
.am-chq.is-plein .am-chq-aller, .am-chq.is-plein .am-chq-serie { min-height: 48px; padding: 10px 6px; border-bottom: 1px solid var(--border); border-radius: 0; }
.am-chq-retour { padding: 4px; margin-left: -4px; }

/* AM-16 : brief rédigé */
.am-brief2 { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 30px 20px; display: grid; gap: 18px; }
.am-brief2-tete { display: grid; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.am-brief2-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--am-s1); font-weight: 600; }
.am-brief2-tete h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; max-width: 34ch; }
.am-brief2-section h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.am-brief2-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.am-brief2-section li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 15.5px; line-height: 1.55; max-width: 92ch; }
.am-brief2-section li:last-child { border-bottom: 0; }
.am-brief2-section.is-essentiel li { font-size: 16.5px; }
.am-brief2-section.is-essentiel li::before { content: ""; grid-column: 1 / -1; display: none; }
.am-brief2-zone { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--am-s1); }
.am-brief2-voir { border: 0; background: none; font: inherit; font-size: 13px; color: var(--am-s1); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; padding: 2px 4px; border-radius: 6px; }
.am-brief2-voir:hover { background: color-mix(in srgb, var(--am-s1) 10%, transparent); }
.am-brief2-pied { display: grid; gap: 10px; justify-items: start; }
.am-brief2-pied p { font-size: 12px; margin: 0; }
.am-app .am-brief2 { padding: 18px 16px 14px; border-radius: 16px; }
.am-app .am-brief2-section li { font-size: 15px; grid-template-columns: 1fr; }
.am-app .am-brief2-voir { justify-self: start; padding-left: 0; }

/* AM-16 : nouveaux chiffres */
.am-nouveaux-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.am-nouveaux-liste button { width: 100%; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.am-nouveaux-liste button:hover:not(:disabled) { border-color: var(--am-s1); }
.am-nv-quoi { display: grid; gap: 1px; min-width: 0; } .am-nv-quoi b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--am-s1); }
.am-nv-quoi span { font-size: 14px; line-height: 1.35; }
.am-nv-val { text-align: right; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; } .am-nv-val small { font-size: 12px; font-weight: 400; color: var(--muted); }
.am-nv-var { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); } .am-nv-var small { font-weight: 400; color: var(--muted); }
.am-nv-var.is-up { color: var(--am-serein); } .am-nv-var.is-down { color: var(--am-peur); }
.am-nv-quand { font-size: 12px; text-align: right; }
.am-nouveaux-liste .am-record { grid-column: 1 / -1; justify-self: start; }

/* AM-16 : face aux objectifs */
.am-objectifs-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.am-objectif { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.am-objectif figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.am-objectif-nom { font-weight: 600; font-size: 15px; }
.am-verdict { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.am-verdict.is-haut { background: #F6E7E4; color: #8B3932; } .am-verdict.is-bas { background: #E7F0F7; color: #477DA5; } .am-verdict.is-ok { background: #E2F0E7; color: #367A59; }
.am-regle { width: 100%; height: auto; overflow: visible; }
.am-regle-piste { stroke: var(--border); stroke-width: 6; stroke-linecap: round; }
.am-regle-cible { fill: color-mix(in srgb, #367A59 35%, transparent); }
.am-regle-cible-lib { font-size: 10.5px; fill: #367A59; font-weight: 600; }
.am-regle-borne { font-size: 10px; fill: var(--muted); }
.am-regle-an circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 2; } .am-regle-an text { font-size: 10px; fill: var(--muted); }
.am-regle-now { transition: transform 1s cubic-bezier(.2, .8, .2, 1); } .am-regle-now circle { fill: var(--am-s1); stroke: var(--surface); stroke-width: 3; }
.am-regle-now text { font-size: 13px; font-weight: 700; fill: var(--fg); }
.am-objectif-txt { margin: 0; font-size: 13.5px; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { .am-regle-now { transition: none; } }

/* AM-16 : tableau par zone, barres dans les cases */
.am-tab-zones2 th button { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; display: grid; text-align: left; color: inherit; padding: 0; }
.am-tab-zones2 th button small { font-weight: 400; color: var(--muted); font-size: 11px; }
.am-tab-zones2 td { min-width: 132px; vertical-align: middle; }
.am-tab-zones2 td small { display: block; font-size: 10.5px; color: var(--muted); }
.am-tab-zones2 .is-on { background: color-mix(in srgb, var(--am-s1) 6%, transparent); }
.am-tab-zones2 thead .is-on button { color: var(--am-s1); }
.am-cb { display: grid; grid-template-columns: 1fr 3.4em; gap: 6px; align-items: center; }
.am-cb-piste { position: relative; height: 10px; background: color-mix(in srgb, var(--border) 45%, transparent); border-radius: 3px; }
.am-cb-barre { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.am-cb-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.am-cb-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
.am-tab-zones2 .is-ancien .am-cb-val { color: var(--muted); font-weight: 400; }

/* AM-16 : sous-bulles plus sobres (« moche ») : fond uni, bord fin, pas d'halo ni de flottement */
.am-sb-bulle { background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.06); animation: am-pop .4s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.am-sb-bulle.is-neuf::after { animation: none; inset: auto; top: 9%; right: 16%; width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--am-s2); }
.am-sb-bulle .am-sb-val { color: var(--fg); }
.am-sb-bulle:hover, .am-sb-bulle:focus-visible { scale: 1.06; }
.am-sb-bulle.is-on { background: color-mix(in srgb, var(--surface) 86%, var(--am-orb)); }

/* AM-19 (27/10/2026) : la bulle ouverte en pleine page, la planète rangée en boussole en haut à gauche,
   ‹ › vers les bulles voisines ; visuels du Macro Visual Lab (empreinte, spirale, matrice thermique). */
.am-explo { display: grid; gap: 16px; }
.am-explo-barre { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 10px 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; }
.am-explo-boussole { width: 112px; height: 112px; overflow: visible; animation: am-explo-range .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 0 0; }
@keyframes am-explo-range { from { transform: translate(38vw, 26vh) scale(3.6); opacity: .4; } to { transform: none; opacity: 1; } }
.am-explo-orbite { fill: none; stroke: var(--border-strong); stroke-dasharray: 2 4; }
.am-explo-astre { cursor: pointer; }
.am-explo-astre circle { fill: color-mix(in srgb, var(--am-s4) 22%, var(--surface)); stroke: var(--am-s4); }
.am-explo-astre path { fill: none; stroke: var(--am-s4); stroke-width: .8; opacity: .7; }
.am-explo-astre:hover circle, .am-explo-astre:focus-visible circle { fill: color-mix(in srgb, var(--am-s4) 40%, var(--surface)); }
.am-explo-point { cursor: pointer; }
.am-explo-point circle:last-child { fill: var(--surface); stroke: var(--fg-3); stroke-width: 1.2; transition: r .25s; }
.am-explo-point.am-explo-zone circle:last-child { stroke: var(--am-s1); }
.am-explo-point.am-explo-theme circle:last-child { stroke: var(--am-s2); }
.am-explo-point.am-explo-marches circle:last-child { stroke: var(--am-s3); }
.am-explo-point.is-on circle:last-child, .am-explo-point:hover circle:last-child { fill: var(--am-s1); stroke: var(--am-s1); }
.am-explo-cible { fill: transparent; stroke: none; }
.am-explo-point:focus-visible .am-explo-cible, .am-explo-astre:focus-visible circle { outline: none; stroke: var(--accent); stroke-width: 2; }
.am-explo-titre { min-width: 0; animation: am-explo-monte .45s .15s ease-out both; }
.am-explo-titre h2 { margin: 2px 0; font-size: 26px; }
.am-explo-fil-ariane { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.am-explo-fil-ariane button { border: 0; background: none; padding: 0; color: var(--am-s1); cursor: pointer; font: inherit; }
.am-explo-fil-ariane [aria-current] { color: var(--fg); font-weight: 600; }
.am-explo-cle-chiffre { margin: 0; font-size: 13px; color: var(--fg-2); }
.am-explo-cle-chiffre strong { font-size: 18px; color: var(--fg); }
.am-explo-voisins { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.am-explo-corps { display: grid; gap: 16px; animation: am-explo-monte .5s .2s ease-out both; }
@keyframes am-explo-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.am-explo-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.am-explo-carte { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.am-explo-carte h3 { margin: 0 0 6px; font-size: 15px; }
.am-explo-fig { margin: 0; }
.am-explo-fig svg { width: 100%; height: auto; display: block; }
.am-explo-fig figcaption { font-size: 12px; color: var(--muted); line-height: 1.45; }
.am-explo-vide { padding: 30px 0; text-align: center; }
.am-explo-grille { fill: none; stroke: var(--border); stroke-width: 1; }
.am-explo-forme { fill: color-mix(in srgb, var(--am-s1) 20%, transparent); stroke: var(--am-s1); stroke-width: 2; stroke-linejoin: round; transition: all .5s; }
.am-explo-forme.is-an { fill: none; stroke: var(--am-s2); stroke-dasharray: 5 4; stroke-width: 1.6; }
.am-explo-branche { cursor: pointer; outline: none; }
.am-explo-sommet { fill: var(--surface); stroke: var(--am-s1); stroke-width: 2; }
.am-explo-branche.is-on .am-explo-sommet, .am-explo-branche:hover .am-explo-sommet, .am-explo-branche:focus-visible .am-explo-sommet { fill: var(--am-s1); }
.am-explo-branche.is-on .am-explo-lib, .am-explo-branche:focus-visible .am-explo-lib { fill: var(--fg); font-weight: 600; }
.am-explo-lib { font-size: 12.5px; fill: var(--fg-2); }
.am-explo-val { font-size: 14px; font-weight: 600; fill: var(--fg); font-variant-numeric: tabular-nums; }
.am-explo-unite { font-weight: 400; fill: var(--muted); font-size: 10px; }
.am-explo-fil { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.am-explo-mois { stroke: var(--surface); stroke-width: 1; cursor: crosshair; transition: r .15s; }
.am-explo-mois.is-tenu { stroke: var(--border-strong); stroke-dasharray: 1.5 1.5; }
.am-explo-centre-val { font-size: 20px; font-weight: 700; fill: var(--fg); font-variant-numeric: tabular-nums; }
.am-explo-cle { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 4px 0 6px; padding: 0; font-size: 11.5px; color: var(--muted); }
.am-explo-cle li { display: flex; align-items: center; gap: 5px; }
.am-explo-cle i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; }
.am-explo-cle i.is-plein { background: color-mix(in srgb, var(--am-s1) 30%, transparent); border: 2px solid var(--am-s1); }
.am-explo-cle i.is-tirets { border-top: 2px dashed var(--am-s2); height: 0; }
.am-explo-cle i.is-sans, .am-explo-case.is-sans { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 2px, transparent 2px, transparent 5px); border: 1px solid var(--border); }
.am-explo-matrice { display: grid; gap: 3px; overflow-x: auto; }
.am-explo-mrang { display: grid; grid-template-columns: minmax(190px, 1.4fr) repeat(24, minmax(14px, 1fr)); gap: 2px; align-items: center;
  border: 0; background: none; padding: 2px 4px; border-radius: 6px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.am-explo-mrang.is-tete { cursor: default; font-size: 10.5px; color: var(--muted); }
.am-explo-mrang.is-rub { cursor: default; display: block; padding: 8px 4px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.am-explo-mrang:not(.is-tete):not(.is-rub):hover, .am-explo-mrang:focus-visible { background: var(--surface-2); }
.am-explo-mrang.is-on { background: color-mix(in srgb, var(--am-s1) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--am-s1); }
.am-explo-mcol { white-space: nowrap; overflow: visible; }
.am-explo-mnom { display: flex; justify-content: space-between; gap: 8px; padding-right: 8px; font-size: 12.5px; min-width: 0; }
.am-explo-mnom b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-explo-mnom em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.am-explo-case { height: 20px; border-radius: 3px; }
.am-explo-case.is-tenu { opacity: .75; }
.am-explo-echelle { margin-top: 8px; }
.am-pc .am-planete { animation: am-explo-retour .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes am-explo-retour { from { transform: scale(.35) translate(-60%, -60%); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 980px) { .am-explo-duo { grid-template-columns: 1fr; } .am-explo-barre { grid-template-columns: auto 1fr; } .am-explo-voisins { grid-column: 1 / -1; justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .am-explo-boussole, .am-explo-titre, .am-explo-corps, .am-pc .am-planete { animation: none; } .am-explo-forme, .am-explo-mois { transition: none; } }

/* ── 27/10 : bulles rangées comme l'arborescence (maîtres, rubriques, une famille de mesure par bloc) et chemins ── */
.am-picto { vertical-align: -2px; margin-right: 6px; color: var(--am-s1); }
.is-on > b > .am-picto, button.is-on > .am-picto { color: inherit; }
.am-pays { margin: 2px 0 10px; }
.am-pays button em { margin-left: 6px; }
.am-pays button.is-ensemble, .am-tel-chips button.is-ensemble { border-style: dashed; }
.am-pays-reste { border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; min-height: 40px; padding: 0 12px; font: inherit; font-size: 14px; }
.am-tab-mesure th { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--am-s1); padding: 8px 12px 4px; background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--am-s1) 30%, var(--border)); }
.am-mesure-tete { list-style: none; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--am-s1); padding: 10px 0 4px; border-bottom: 1px solid color-mix(in srgb, var(--am-s1) 30%, var(--border)); }
.am-tab-actions { white-space: nowrap; }
.am-tab-actions .am-ajout + .am-ajout { margin-left: 6px; }
.am-ch-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--am-s1) 14%, var(--surface)); border-color: var(--am-s1); color: var(--am-s1); }
.am-tab-ch > td { padding: 0 8px 8px; background: var(--am-tab-tete); }
.am-ch-li { list-style: none; }
.am-ch .am-semb-tete strong { display: inline-flex; align-items: center; gap: 6px; }
.am-ch-sections { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.am-ch-sec { display: grid; gap: 4px; align-content: start; min-width: 0; }
.am-ch-sec h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; }
.am-ch-sec h4 .icon { color: var(--am-s1); }
.am-ch-sec h4 b { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.am-ch-sec h4 .muted { flex-basis: 100%; font-weight: 400; }
.am-ch-sec ul { max-height: 230px; }
.am-ch-sec.is-evite h4 .icon { color: var(--am-peur); }
.am-ch-sec.is-evite li { opacity: .75; }
.am-ch-prev { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-variant-numeric: tabular-nums; }
.am-ch-prev small { flex-basis: 100%; }
.am-comp-familles { display: grid; gap: 14px; }
.am-comp-famille { margin: 0; }
.am-comp-famille figcaption { font-size: 12px; margin: 0 0 4px; }
.am-ligne { grid-template-columns: minmax(0, 1fr) auto auto 30px; }
.am-ligne-mini { display: flex; align-items: center; }
.am-tab-mini { width: 132px; padding-top: 4px; padding-bottom: 4px; }
.am-mini { display: block; overflow: visible; }
.am-mini.is-vide { width: 128px; height: 34px; border-bottom: 1px dashed var(--border); }
.am-mini rect.is-pos { fill: var(--am-serein); }
.am-mini rect.is-neg { fill: var(--am-peur); }
.am-mini rect.is-haut { fill: var(--am-peur); }
.am-mini rect.is-bas { fill: var(--am-s1); }
.am-mini rect.is-neutre { fill: color-mix(in srgb, var(--am-s1) 70%, transparent); }
.am-mini-ligne { fill: none; stroke: var(--am-s1); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.am-mini-aire { fill: color-mix(in srgb, var(--am-s1) 18%, transparent); }
.am-mini-zero { stroke: var(--fg-2); stroke-width: .6; opacity: .5; }
.am-mini-seuil { stroke: var(--fg-2); stroke-width: .8; stroke-dasharray: 3 2; opacity: .8; }
.am-mini-fin { fill: var(--am-s1); stroke: var(--surface); stroke-width: 1; }
@media (max-width: 720px) {
  .am-ligne { grid-template-columns: minmax(0, 1fr) auto 30px; }
  .am-ligne-mini { grid-column: 1 / -1; order: 3; }
  .am-ligne-mini .am-mini { width: 100%; height: 34px; }
}
.am-groupes[hidden] { display: none; }

/* ── 27/10 : navigation (page d'une série, chemins cliquables) et carte reliée aux pays ── */
.am-lien { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--am-s1) 45%, transparent); text-underline-offset: 3px; }
.am-lien:hover, .am-lien:focus-visible { color: var(--am-s1); text-decoration-color: var(--am-s1); }
.am-ch .am-lien { font-weight: 600; }
.am-carte { margin: 4px 0 10px; }
.am-carte svg { display: block; width: 100%; height: auto; max-height: 240px; }
.am-carte-pays { fill: color-mix(in srgb, var(--fg-2) 12%, transparent); stroke: var(--surface); stroke-width: .3; transition: fill .2s ease; }
.am-carte-pays.is-present { fill: color-mix(in srgb, var(--am-s1) 30%, var(--surface)); cursor: pointer; }
.am-carte-pays.is-q0 { fill: color-mix(in srgb, var(--am-s1) 18%, var(--surface)); }
.am-carte-pays.is-q1 { fill: color-mix(in srgb, var(--am-s1) 36%, var(--surface)); }
.am-carte-pays.is-q2 { fill: color-mix(in srgb, var(--am-s1) 55%, var(--surface)); }
.am-carte-pays.is-q3 { fill: color-mix(in srgb, var(--am-s1) 75%, var(--surface)); }
.am-carte-pays.is-q4 { fill: var(--am-s1); }
.am-carte-pays.is-survol { fill: var(--am-s2); }
.am-carte-pays.is-on { fill: var(--am-s2); stroke: var(--fg); stroke-width: .6; }
.am-carte-pays.is-ref { stroke: var(--fg); stroke-width: 1; }
.am-carte-cle { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--fg-2); margin-top: 4px; }
.am-carte-cle i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.am-carte-cle i.is-q0 { background: color-mix(in srgb, var(--am-s1) 18%, var(--surface)); } .am-carte-cle i.is-q1 { background: color-mix(in srgb, var(--am-s1) 36%, var(--surface)); }
.am-carte-cle i.is-q2 { background: color-mix(in srgb, var(--am-s1) 55%, var(--surface)); } .am-carte-cle i.is-q3 { background: color-mix(in srgb, var(--am-s1) 75%, var(--surface)); }
.am-carte-cle i.is-q4 { background: var(--am-s1); }
.am-carte-aide { margin: -6px 0 8px; font-size: 12px; }
.am-sous-onglets button.is-survol, .am-tel-chips button.is-survol { border-color: var(--am-s2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--am-s2) 35%, transparent); }
.am-page-serie { display: grid; gap: 14px; animation: am-ps-entree .25s ease-out; }
@keyframes am-ps-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-page-serie { animation: none; } .am-carte-pays { transition: none; } }
.am-ps-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.am-ps-chiffre { display: grid; gap: 4px; justify-items: start; }
.am-ps-chiffre h3 { margin: 0; font-size: 20px; }
.am-ps-chiffre p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.am-ps-chiffre strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.am-ps-duo { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.am-ps-duo h4 { margin: 0 0 8px; font-size: 14px; }
.am-mini.is-grand { width: 100%; height: auto; }
.am-mini.is-grand .am-mini-ligne { stroke-width: 2; }
.am-mini-txt { font-size: 11px; fill: var(--fg-2); font-variant-numeric: tabular-nums; }
.am-mini-txt.is-fin { font-weight: 700; fill: var(--fg); }
.am-mini-txt.is-seuil { fill: var(--am-s1); }
.am-carte svg { overflow: hidden; }

/* 28/10 : accueil « stories + fil » (Fil.tsx), maquette téléphone du 22/10. */
.am-social { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.am-social.has-aside { grid-template-columns: minmax(0, 620px) minmax(320px, 520px); justify-content: center; }
.am-social-fil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.am-fil { grid-template-columns: minmax(0, 1fr); }
.am-coeur { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.am-social-aside { display: grid; gap: 18px; position: sticky; top: 16px; }
.am-social-aside .am-planete { max-width: 100%; }
.am-social-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 8px 0 4px; }
.am-app .am-social-tete { padding: calc(18px + env(safe-area-inset-top)) 16px 4px; }
.am-social-tete h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.am-app-date::first-letter { text-transform: uppercase; }
.am-pastille-neuf { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.am-app .am-social-fil > .am-cherche, .am-app .am-social-fil > div:has(> .am-cherche) { margin: 0 16px; }

.am-stories-cadre { display: grid; gap: 4px; padding: 8px 0 6px; }
.am-app .am-stories-cadre { padding-left: 10px; padding-right: 10px; }
.am-stories-bande { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 4px; }
.am-stories { display: grid; gap: 10px; justify-items: center; padding: 4px 0; touch-action: pan-y; }
.am-stories-fl { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; padding: 0; }
.am-stories-fl:disabled { opacity: .3; cursor: default; }
.am-stories-points { display: flex; justify-content: center; gap: 5px; }
.am-stories-points i { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: width .2s; }
.am-stories-points i.is-on { width: 16px; background: var(--am-s1); }
.am-sto { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; flex: none; width: 74px; color: var(--fg); font: inherit; cursor: pointer; }
.am-sto-anneau { width: 70px; height: 70px; border-radius: 50%; padding: 3px; display: flex; background: conic-gradient(from 200deg, var(--accent), var(--am-s2), var(--accent)); transition: transform .2s; }
.am-sto:hover .am-sto-anneau { transform: scale(1.05); }
.am-sto:focus-visible { outline: none; }
.am-sto:focus-visible .am-sto-anneau { box-shadow: 0 0 0 3px var(--accent-soft); }
.am-sto.is-vu .am-sto-anneau { background: var(--border); }
.am-sto-in { flex: 1; border-radius: 50%; border: 2px solid var(--bg, var(--surface)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; background: var(--accent-soft); color: var(--accent); overflow: hidden; }
.am-sto.is-brief .am-sto-in { background: var(--fg); color: var(--surface); }
.am-sto.is-officiel .am-sto-in { background: color-mix(in srgb, var(--am-s2) 18%, var(--surface)); color: var(--fg); }
.am-sto-in b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-sto-in small { font-size: 10px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-sto-nom { font-size: 12px; white-space: nowrap; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
.am-sto.is-vu .am-sto-nom { color: var(--fg-3); }

.am-fil-filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.am-app .am-fil-filtres { padding-left: 16px; padding-right: 16px; }
.am-fil-filtres::-webkit-scrollbar { display: none; }
.am-fil-filtres button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.am-fil-filtres button[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }

.am-fil { display: grid; gap: 14px; }
.am-post { display: grid; gap: 10px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; animation: am-post-entre .5s cubic-bezier(.2, .8, .2, 1) both; }
.am-app .am-post { border-radius: 0; border-left: 0; border-right: 0; }
@keyframes am-post-entre { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.am-post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--fg-3); }
.am-post-meta span:last-child { text-align: right; }
.am-post-kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.am-post.is-record .am-post-kicker { color: var(--am-s2); }
.am-post-nom { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--fg); cursor: pointer; }
.am-post-nom:hover { text-decoration: underline; text-underline-offset: 3px; }
.am-post-grand { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.am-post-grand small { font-size: 20px; font-weight: 500; color: var(--fg-2); margin-left: 4px; letter-spacing: 0; }
.am-post-titre { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; }
.am-post-question { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.am-post-officiel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--am-s2); }
.am-post-src { margin: 0; font-size: 12px; }
.am-post-graphe { display: grid; gap: 4px; }
.am-post-graphe .am-mini.is-grand { width: 100%; height: auto; max-height: 170px; }
.am-post-graphe > span { font-size: 12px; }
.am-post-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.am-post-actions > span:last-child { display: flex; align-items: center; gap: 2px; }
.am-post-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--fg-2); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.am-post-ic:hover:not(:disabled) { background: var(--surface-2); color: var(--fg); }
.am-post-ic:disabled { opacity: .55; cursor: default; }
.am-post-ic.is-on { color: var(--am-s3); animation: am-coeur .35s ease; }
.am-post-ic.is-on .am-coeur { fill: currentColor; }
@keyframes am-coeur { 50% { transform: scale(1.25); } }
.am-post-voir { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border); background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; margin-left: 4px; }
.am-post-voir:hover { border-color: var(--accent); color: var(--accent); }
.am-quiz { display: flex; gap: 8px; }
.am-quiz button { flex: 1; height: 46px; border-radius: 23px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.am-quiz button:disabled { cursor: default; }
.am-quiz button.is-juste { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.am-quiz button.is-faux { border-color: var(--am-peur); color: var(--am-peur); }
.am-quiz-rep { margin: 0; font-size: 14px; animation: am-post-entre .4s ease both; }
.am-fil-bulles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.am-fil-bulles button { flex: none; display: grid; gap: 2px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-fil-bulles button:hover { border-color: var(--accent); }
.am-fil-bulles small { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-fil-fin { text-align: center; font-size: 13px; padding: 12px 0 24px; }

/* Visionneuse de stories : plein écran sur téléphone, cadre de téléphone sur bureau. */
.am-story { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 12, 13, .72); display: flex; align-items: center; justify-content: center; animation: am-fondu .25s ease both; }
@keyframes am-fondu { from { opacity: 0; } to { opacity: 1; } }
.am-story-cadre { position: relative; width: 100%; height: 100%; max-width: 440px; background: #0f1718; color: #fff; overflow: hidden; outline: none; animation: am-story-entre .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes am-story-entre { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .am-story-cadre { height: min(92vh, 860px); border-radius: 24px; } }
.am-story-barres { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.am-story-barres span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.am-story-barres b { display: block; height: 100%; background: #fff; }
.am-story-tete { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 14px; right: 6px; display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.am-story-qui { display: flex; align-items: center; gap: 10px; }
.am-story-qui b { display: block; font-size: 14px; }
.am-story-qui small { display: block; font-size: 12px; color: #9fb0ae; }
.am-story-av { width: 34px; height: 34px; border-radius: 50%; background: var(--am-s1); color: #fff; display: grid; place-items: center; }
.am-story-btns { display: flex; }
.am-story-btns button { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.am-story-btns button:hover { background: rgba(255, 255, 255, .1); }
.am-story-diapo { position: absolute; left: 24px; right: 24px; top: 84px; bottom: 140px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateX(28px); transition: opacity .42s, transform .52s cubic-bezier(.2, .8, .2, 1); pointer-events: none; color: #e8efee; }
.am-story-diapo.is-cur { opacity: 1; transform: none; }
.am-story-diapo.is-passe { transform: translateX(-28px); }
.am-story-k { font-size: 15px; color: #b9c8c6; line-height: 1.35; }
.am-story-grand { font-size: 80px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.am-story-grand small { font-size: 24px; color: #b9c8c6; margin-left: 8px; letter-spacing: 0; }
.am-story-t { margin: 0; font-size: 18px; line-height: 1.45; }
.am-story-graphe { display: grid; gap: 4px; }
.am-story-graphe small { font-size: 11px; color: #8fa19f; }
.am-story-graphe .am-mini.is-grand { width: 100%; height: auto; }
.am-story-graphe .am-mini-ligne, .am-story-graphe .am-mini-fin { stroke: #fff; }
.am-story-graphe .am-mini-fin { fill: #fff; }
.am-story-graphe .am-mini-aire { fill: rgba(255, 255, 255, .14); }
.am-story-graphe .am-mini-txt { fill: #b9c8c6; }
.am-story-graphe .am-mini-seuil, .am-story-graphe .am-mini-zero { stroke: rgba(255, 255, 255, .35); }
.am-story-graphe rect.is-pos, .am-story-graphe rect.is-bas, .am-story-graphe rect.is-neutre { fill: #8fd3c4; }
.am-story-graphe rect.is-neg, .am-story-graphe rect.is-haut { fill: #e5a796; }
.am-story-tap { position: absolute; inset: 76px 0 130px; z-index: 2; touch-action: none; cursor: pointer; }
.am-story-pied { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 3; display: grid; gap: 10px; }
.am-story-actions { display: flex; gap: 8px; }
.am-story-cta { flex: 1; height: 48px; border-radius: 24px; border: 0; background: #fff; color: #0f1718; font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.am-story-rond { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.am-story-rond:disabled { opacity: .6; }
.am-story-pied small { font-size: 11px; color: #8fa19f; text-align: center; }
.am-story-nav { display: none; }
@media (min-width: 700px) and (hover: hover) {
  .am-story-nav { display: grid; place-items: center; position: absolute; top: 50%; z-index: 4; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
  .am-story-nav.is-g { left: 8px; } .am-story-nav.is-d { right: 8px; }
}
@media (max-width: 1000px) { .am-social.has-aside { grid-template-columns: minmax(0, 1fr); } .am-social-aside { position: static; } }
@media (prefers-reduced-motion: reduce) {
  .am-post, .am-story, .am-story-cadre, .am-quiz-rep { animation: none; }
  .am-story-diapo { transition: opacity .2s; transform: none !important; }
}

/* 28/10 : « Le point de l'investisseur » (Defile.tsx) : un écran par question, défilement aimanté. */
.am-entree-point { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; margin: 6px 0 2px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.am-entree-point:hover { transform: translateY(-1px); border-color: var(--accent); }
.am-app .am-entree-point { width: auto; margin: 8px 16px 2px; }
.am-entree-point > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.am-entree-point small { color: var(--fg-3); font-size: 12px; }
.am-entree-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; animation: am-pouls-point 2.4s ease-in-out infinite; }
.am-entree-ic svg { width: 18px; height: 18px; fill: var(--surface); }
@keyframes am-pouls-point { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 18%, transparent); } }

.am-defile-cadre { position: relative; height: calc(100vh - 210px); min-height: 560px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.am-app .am-defile-cadre { height: calc(100dvh - 84px - env(safe-area-inset-bottom)); min-height: 0; border: 0; border-radius: 0; }
.am-defile { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.am-defile::-webkit-scrollbar { display: none; }
.am-ecran { min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 28px 44px 28px 22px; box-sizing: border-box; }
.am-ecran-in { width: 100%; max-width: 640px; display: grid; gap: 14px; }
.am-ecran-in > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.am-ecran.is-actif .am-ecran-in > * { opacity: 1; transform: none; }
.am-ecran.is-actif .am-ecran-in > *:nth-child(2) { transition-delay: .06s; } .am-ecran.is-actif .am-ecran-in > *:nth-child(3) { transition-delay: .14s; }
.am-ecran.is-actif .am-ecran-in > *:nth-child(4) { transition-delay: .22s; } .am-ecran.is-actif .am-ecran-in > *:nth-child(n+5) { transition-delay: .3s; }
.am-ecran-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.am-ecran h2 { font-size: clamp(26px, 5vw, 36px) !important; line-height: 1.12; letter-spacing: -0.025em !important; }
.am-ecran-titre { font-size: clamp(32px, 7vw, 48px) !important; }
.am-ecran-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--fg-2); }
.am-ecran-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); border-left: 3px solid var(--accent-soft); padding-left: 12px; }
.am-ecran-avert { margin: 0; font-size: 12px; color: var(--fg-3); border-top: 1px solid var(--border); padding-top: 10px; }
.am-ecran.is-debut { background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.am-sommaire { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.am-sommaire button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--fg); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.am-sommaire b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; flex: none; }
.am-sommaire button:hover b { background: var(--accent); color: var(--surface); }
.am-ecran-suite { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--fg-3); font: inherit; font-size: 13px; cursor: pointer; }
.am-ecran-suite svg { animation: am-rebond 1.6s ease-in-out infinite; }
@keyframes am-rebond { 50% { transform: translateY(5px); } }

.am-thermo { display: grid; gap: 8px; }
.am-thermo-val { font-size: 88px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.am-thermo-val small { font-size: 22px; color: var(--fg-3); letter-spacing: 0; margin-left: 4px; }
.am-thermo-mot { font-size: 20px; font-weight: 600; }
.am-jauge { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--am-peur), var(--am-neutre), var(--am-serein)); }
.am-jauge i { position: absolute; top: -6px; bottom: -6px; width: 5px; margin-left: -2.5px; border-radius: 3px; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); transition: left 1.1s cubic-bezier(.2, .8, .2, 1); }
.am-jauge-bornes { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }

.am-dz { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-dz li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px 104px; gap: 10px; align-items: center; font-size: 14px; }
.am-dz-nom { font-weight: 600; }
.am-dz-barre { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.am-dz-barre i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.am-ecran.is-actif .am-dz-barre i { transform: scaleX(1); }
.am-dz li:nth-child(2) i { transition-delay: .05s; } .am-dz li:nth-child(3) i { transition-delay: .1s; } .am-dz li:nth-child(4) i { transition-delay: .15s; }
.am-dz li:nth-child(5) i { transition-delay: .2s; } .am-dz li:nth-child(6) i { transition-delay: .25s; } .am-dz li:nth-child(n+7) i { transition-delay: .3s; }
.am-dz-barre i.is-vert { background: var(--am-serein); } .am-dz-barre i.is-orange { background: var(--am-neutre); } .am-dz-barre i.is-rouge { background: var(--am-peur); }
.am-dz-barre b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); }
.am-dz-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; display: grid; }
.am-dz-val small { font-weight: 400; font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.am-feu { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.am-feu i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); background: currentColor; }
.am-feu.is-vert { color: var(--am-serein); } .am-feu.is-orange { color: var(--am-neutre); } .am-feu.is-rouge { color: var(--am-peur); }

.am-taux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.am-taux button, .am-bouge button { width: 100%; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.am-taux button:hover, .am-bouge button:hover { border-color: var(--accent); transform: translateY(-1px); }
.am-taux b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.am-taux small, .am-bouge small { font-size: 12px; color: var(--fg-3); }
.am-taux small.is-up, .am-bouge small.is-up { color: var(--am-s3); } .am-taux small.is-down, .am-bouge small.is-down { color: var(--am-s1); }
.am-officiels h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0 0 6px; color: var(--am-s2); }
.am-officiels ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.am-officiels li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 2px 10px; font-size: 13px; }
.am-officiels li small { grid-column: 2; }
.am-officiels time { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-bouge { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-bouge-tete { display: flex; justify-content: space-between; gap: 10px; }
.am-bouge-tete span { font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-bouge .am-mini { width: 100%; height: 40px; }

.am-nuage { width: 100%; max-width: 560px; height: auto; justify-self: center; overflow: visible; }
.am-nuage rect { opacity: .5; }
.am-nuage .q-stag { fill: color-mix(in srgb, var(--am-peur) 14%, var(--surface)); } .am-nuage .q-infl { fill: color-mix(in srgb, var(--am-neutre) 14%, var(--surface)); }
.am-nuage .q-rec { fill: color-mix(in srgb, var(--am-s4) 12%, var(--surface)); } .am-nuage .q-gold { fill: color-mix(in srgb, var(--am-serein) 14%, var(--surface)); }
.am-nuage > text { font-size: 10px; fill: var(--fg-3); font-weight: 600; }
.am-nuage-axe { stroke: var(--fg); stroke-width: 1.2; }
.am-nuage .am-nuage-leg { fill: var(--fg-2); font-weight: 400; }
.am-nuage-pt { cursor: pointer; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.am-nuage-pt circle { fill: var(--am-s1); stroke: var(--surface); stroke-width: 2; }
.am-nuage-pt text { font-size: 11px; fill: var(--fg); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.am-nuage-pt.is-sel circle { fill: var(--am-s2); }

.am-temp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.am-temp-chiffre { display: flex; align-items: flex-end; gap: 14px; }
.am-temp-tube { position: relative; width: 22px; height: 130px; border-radius: 11px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.am-temp-tube i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--am-s4), var(--am-neutre), var(--am-peur)); background-size: 100% 130px; background-position: bottom; transition: height 1.2s cubic-bezier(.2, .8, .2, 1); }
.am-temp-chiffre b { font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.am-temp-chiffre small { font-size: 18px; color: var(--fg-3); }
.am-temp-chiffre em { display: block; font-style: normal; font-weight: 600; font-size: 14px; margin-top: 4px; }
.am-poids { display: grid; gap: 8px; }
.am-poids p { margin: 0; font-size: 13px; }
.am-poids label { display: grid; grid-template-columns: minmax(0, 1fr) 110px 44px; gap: 8px; align-items: center; font-size: 13px; }
.am-poids input { accent-color: var(--accent); width: 100%; }
.am-poids small { color: var(--fg-3); }
.am-feux { display: flex; flex-wrap: wrap; gap: 8px; }
.am-feux button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-feux button[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.am-feux .am-feu { font-size: 0; gap: 0; }
.am-lecture { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.am-lecture p { margin: 0; line-height: 1.5; }
.am-lect-plus, .am-lect-moins { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-right: 6px; }
.am-lect-plus { background: color-mix(in srgb, var(--am-serein) 16%, transparent); color: var(--am-serein); }
.am-lect-moins { background: color-mix(in srgb, var(--am-peur) 14%, transparent); color: var(--am-peur); }
.am-ecran.is-fin .am-ecran-in { justify-items: center; text-align: center; }
.am-ecran.is-fin svg { color: var(--accent); }
.am-fin-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.am-defile-rail { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 2; }
.am-defile-rail button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--border-strong, var(--border)); cursor: pointer; transition: height .3s, background .3s; }
.am-defile-rail button[aria-current="step"] { height: 22px; background: var(--accent); }
.am-defile-prog { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: transparent; z-index: 2; }
.am-defile-prog i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
@media (max-width: 560px) {
  .am-ecran { padding: 22px 30px 22px 16px; align-items: flex-start; }
  .am-ecran-in { gap: 12px; }
  .am-thermo-val { font-size: 72px; }
  .am-dz li { grid-template-columns: 74px minmax(0, 1fr) 84px 14px; gap: 8px; font-size: 13px; }
  .am-dz .am-feu { font-size: 0; gap: 0; }
  .am-temp { grid-template-columns: minmax(0, 1fr); }
  .am-poids label { grid-template-columns: minmax(0, 1fr) 96px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-ecran-in > *, .am-dz-barre i, .am-nuage-pt, .am-temp-tube i { transition: none !important; }
  .am-ecran-in > * { opacity: 1; transform: none; }
  .am-dz-barre i { transform: none; }
  .am-entree-ic, .am-ecran-suite svg { animation: none; }
}

/* AM-24 (28/10) : navigateur de pages, un écran par niveau, rien ne défile (Navigateur.tsx). */
.am-nav { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.am-nav.is-tel { padding: calc(10px + env(safe-area-inset-top)) 12px 6px; gap: 8px; }
.am-nav-ariane { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); position: relative; z-index: 5; }
.am-nav.is-tel .am-nav-ariane { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-nav-ariane button { font: inherit; }
.am-nav-retour, .am-nav-voisin { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; flex: none; }
.am-nav-voisin:disabled { opacity: .35; cursor: default; }
.am-nav-retour:hover, .am-nav-voisin:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.am-nav-planete { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--fg-2); font-size: 13px; cursor: pointer; padding: 6px; }
.am-nav-sep { color: var(--fg-3); }
.am-nav-etape { position: relative; flex: none; }
.am-nav-etape > button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--fg-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.am-nav-etape > button:hover { background: var(--surface-2); color: var(--fg); }
.am-nav-etape > button.is-actuelle { color: var(--fg); font-weight: 600; background: var(--accent-soft); }
.am-nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px; max-height: 60vh; overflow-y: auto; display: grid; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); animation: am-fondu .15s ease; }
.am-nav-menu button { display: grid; text-align: left; gap: 1px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); font-size: 14px; cursor: pointer; }
.am-nav-menu button:hover { background: var(--surface-2); }
.am-nav-menu button.is-on { font-weight: 600; color: var(--accent); }
.am-nav-menu small { color: var(--fg-3); font-size: 12px; }
.am-nav-ici { font-weight: 600; font-size: 14px; padding: 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.am-nav-droite { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.am-nav-rang { font-size: 12px; font-variant-numeric: tabular-nums; }
.am-nav-comp { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-size: 13px; cursor: pointer; }
.am-nav-comp.is-on { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.am-nav-titre { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 0 4px; animation: am-post-entre .35s ease both; }
.am-nav-titre h2 { font-size: 24px !important; letter-spacing: -0.02em !important; }
.am-nav-titre .muted { font-size: 13px; }
.am-nav.is-tel .am-nav-titre h2 { font-size: 20px !important; }
.am-nav-corps { flex: 1; min-height: 0; display: grid; }

.am-nav-grille-cadre { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
.am-nav-grille { min-height: 0; display: grid; gap: 12px; align-content: start; overflow: hidden; touch-action: pan-y; animation: am-page-entre .3s ease both; }
@keyframes am-page-entre { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.am-nav-vide { grid-column: 1 / -1; }
.am-nav-pages { display: flex; align-items: center; justify-content: center; gap: 8px; }
.am-nav-pages > button:not(.am-nav-point) { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }
.am-nav-pages > button:disabled { opacity: .35; cursor: default; }
.am-nav-point { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--border); cursor: pointer; transition: width .25s, background .25s; }
.am-nav-point.is-on { width: 22px; background: var(--accent); }
.am-nav-pages .muted { font-size: 12px; font-variant-numeric: tabular-nums; }

.am-nav-tuile { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; overflow: hidden; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.am-nav-tuile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.am-nav-tuile.is-maitre { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
.am-nav-t-tete { display: flex; align-items: center; gap: 8px; min-width: 0; }
.am-nav-t-tete b { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1; }
.am-nav-t-tete .muted { font-size: 12px; white-space: nowrap; }
.am-nav-t-tete svg { color: var(--accent); flex: none; }
.am-nav-tuile.is-maitre b { font-size: 18px; }
.am-nav-aide { font-size: 13px; line-height: 1.35; }
.am-nav-t-val { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.am-nav-t-val b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-nav-t-val small { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-nav-tuile .am-mini { width: 100%; height: 34px; }
.am-nav-tuile small.am-tend, .am-nav-tuile > small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-nav-chiffres { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.am-nav-chiffres span { display: grid; min-width: 0; }
.am-nav-chiffres small { font-size: 11px; color: var(--fg-3); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-nav-chiffres b { font-size: 16px; font-variant-numeric: tabular-nums; }
.am-nav-pays { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); white-space: nowrap; flex: none; }
.am-nav-t-ouvrir { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.am-nav-plus { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; }
.am-nav-tuile .am-nav-plus { position: absolute; right: 10px; bottom: 10px; }
.am-nav-plus:disabled { opacity: .5; cursor: default; }
.am-nav-plus:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.am-nf { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; animation: am-page-entre .3s ease both; }
.am-nf-gauche, .am-nf-droite { min-height: 0; display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 16px; overflow: hidden; }
.am-nf-gauche { grid-template-rows: auto minmax(0, 1fr); }
.am-nf-droite { grid-template-rows: auto minmax(0, 1fr); }
.am-nf-tete { display: grid; gap: 4px; justify-items: start; }
.am-nf-tete h2 { font-size: 20px !important; }
.am-nf-tete p { margin: 0; }
.am-nf-val { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.am-nf-src { font-size: 12px; }
.am-nf-graphe { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; }
.am-nf-graphe .am-mini.is-grand { width: 100%; height: 100%; min-height: 0; }
.am-nf-onglets { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.am-nf-onglets button { padding: 7px 12px; border: 0; border-radius: 10px; background: none; color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; }
.am-nf-onglets button[aria-selected="true"] { background: var(--fg); color: var(--surface); }
.am-nf-onglets small { opacity: .7; }
.am-nf-panneau { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 8px; overflow: hidden; }
.am-nf-panneau .am-carte { align-self: start; }
.am-nf-secs { display: flex; gap: 6px; flex-wrap: wrap; }
.am-nf-secs button { padding: 5px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-nf-secs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.am-nf-secs button.is-evite[aria-pressed="true"] { border-color: var(--am-peur); background: color-mix(in srgb, var(--am-peur) 10%, transparent); color: var(--am-peur); }
.am-nf-aide { margin: 0; font-size: 12px; }
.am-nf-lien { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 6px 4px 10px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.am-nf-lien > button:first-child { display: grid; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: var(--fg); cursor: pointer; min-width: 0; }
.am-nf-lien > button:first-child:hover b { color: var(--accent); text-decoration: underline; }
.am-nf-lien b { font-size: 13px; }
.am-nf-lien span { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-nf-lien-val { display: grid; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.am-nf-lien-val small { font-size: 10px; font-weight: 400; color: var(--fg-3); }
.am-nf-lien.is-evite { opacity: .75; border-style: dashed; }

.am-nav-tiroir { position: fixed; inset: 0; z-index: 900; background: rgba(8, 12, 13, .35); display: flex; justify-content: flex-end; animation: am-fondu .2s ease; }
.am-nav-tiroir-in { width: min(760px, 100%); height: 100%; overflow-y: auto; background: var(--bg, var(--surface)); padding: 18px 20px; display: grid; align-content: start; gap: 12px; animation: am-tiroir .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes am-tiroir { from { transform: translateX(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.am-nav-tiroir-tete { display: flex; justify-content: space-between; align-items: center; }

.am-brief-ecran { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; overflow: hidden; }
.am-brief-ecran-tete { display: grid; gap: 8px; }
.am-brief-ecran-tete h2 { font-size: 24px !important; line-height: 1.2; }
.am-brief-carte { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; line-height: 1.45; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s; }
.am-brief-carte:hover { border-color: var(--accent); transform: translateY(-2px); }
.am-brief-carte > span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.am-brief-carte small { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; margin-top: auto; }
.am-brief-ecran-pied { margin: 0; font-size: 12px; }

@media (max-width: 900px) {
  .am-nf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .am-nf-gauche { grid-template-rows: auto; padding: 12px; }
  .am-nf-gauche .am-nf-graphe { display: none; }
  .am-nf-val { font-size: 30px; }
  .am-nf-droite { padding: 12px; }
  .am-nav-ici { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .am-nav-grille, .am-nf, .am-nav-titre, .am-nav-tiroir-in { animation: none; } }

/* AM-25 (28/10) : intérieur des bulles en planètes (Planetes.tsx). */
.am-bp-maitres { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.am-bp-maitres.is-tel { grid-auto-columns: minmax(120px, 1fr); overflow-x: auto; scrollbar-width: none; }
.am-bp-maitres button { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--am-teinte); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; min-width: 0; transition: background .2s, transform .2s, box-shadow .2s; }
.am-bp-maitres button:hover { transform: translateY(-1px); }
.am-bp-maitres button[aria-selected="true"] { background: color-mix(in srgb, var(--am-teinte) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--am-teinte); }
.am-bp-m-nom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--am-teinte); }
.am-bp-maitres b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.am-bp-maitres.is-tel b { font-size: 18px; }
.am-bp-maitres small { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-bp-maitres small.is-up { color: var(--am-s3); } .am-bp-maitres small.is-down { color: var(--am-s1); }

.am-bp { min-height: 0; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.am-bp.is-tel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.am-bp figure { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; justify-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.am-bp figure svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.am-bp figcaption { font-size: 13px; text-align: center; }
.am-bp-zone { align-self: end; max-height: 80%; }

.am-bp-orbite { fill: none; stroke: var(--border); stroke-dasharray: 3 5; }
.am-bp-sat { cursor: pointer; animation: am-sat-entre .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes am-sat-entre { from { opacity: 0; } to { opacity: 1; } }
.am-bp-sat circle { fill: color-mix(in srgb, var(--am-s4) 16%, var(--surface)); stroke: var(--am-s4); stroke-width: 1; transition: fill .2s; }
.am-bp-sat:hover circle, .am-bp-sat:focus circle { fill: color-mix(in srgb, var(--am-s4) 40%, var(--surface)); }
.am-bp-sat text { font-size: 10px; fill: var(--fg-2); }
.am-bp-astre-zone { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; cursor: pointer; }
.am-bp-zone-nom { font-size: 15px; font-weight: 700; fill: var(--fg); pointer-events: none; }
.am-bp-pays { cursor: pointer; }
.am-bp-pays circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1; transition: fill .2s; }
.am-bp-pays.is-on circle, .am-bp-pays:hover circle { fill: var(--accent); }
.am-bp-pays text { font-size: 8px; font-weight: 600; fill: var(--fg); pointer-events: none; }
.am-bp-pays.is-on text { fill: var(--surface); }

.am-bp-zoom { animation: am-bp-zoom .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes am-bp-zoom { from { transform: scale(.35); opacity: 0; } to { transform: none; opacity: 1; } }
.am-bp-g0 { stop-color: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.am-bp-g1 { stop-color: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.am-bp-astre { fill: url(#am-bp-grad); stroke: color-mix(in srgb, var(--accent) 45%, var(--border)); stroke-width: 1.5; }
.am-bp-bulle { cursor: pointer; animation: am-bulle-entre .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes am-bulle-entre { from { opacity: 0; } to { opacity: 1; } }
.am-bp-bulle circle { fill: color-mix(in srgb, var(--am-teinte) 14%, var(--surface)); stroke: var(--am-teinte); stroke-width: 1.4; transition: fill .2s, stroke-width .2s; }
.am-bp-bulle:hover circle, .am-bp-bulle:focus circle { fill: color-mix(in srgb, var(--am-teinte) 28%, var(--surface)); stroke-width: 2.6; }
.am-bp-bulle:focus { outline: none; }
.am-bp-b-txt { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; color: var(--fg); line-height: 1.15; pointer-events: none; overflow: hidden; }
.am-bp-b-nom { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.am-bp-b-txt b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.am-bp-b-txt i { font-style: normal; font-size: .8em; }
.am-bp-b-txt i.is-up { color: var(--am-s3); } .am-bp-b-txt i.is-down { color: var(--am-s1); }
.am-bp-suite { cursor: pointer; }
.am-bp-suite circle { fill: var(--fg); }
.am-bp-suite text { fill: var(--surface); font-size: 15px; font-weight: 700; pointer-events: none; }

.am-bp-zone-tel { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.am-bp-zt-centre { flex: none; padding: 6px 12px; border-radius: 16px; background: var(--accent); color: var(--surface); font-weight: 600; font-size: 13px; }
.am-bp-zone-tel button { flex: none; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-bp.is-tel .am-bp-ind { padding: 6px; }
@media (prefers-reduced-motion: reduce) { .am-bp-zoom, .am-bp-bulle, .am-bp-sat { animation: none; } }

/* AM-26 (28/10) : accueil sans fil, la planète et ses bulles sous les stories. */
.am-accueil-centre { display: grid; justify-items: center; padding: 4px 0 8px; }
.am-accueil-centre .am-planete { width: min(100%, calc(100vh - 330px), 760px); min-width: 300px; }
.am-social.is-planete { grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 24px; }
.am-social.is-planete .am-social-aside { position: static; }
@media (max-width: 1000px) { .am-social.is-planete { grid-template-columns: minmax(0, 1fr); } }
.am-app .am-accueil-centre { padding: 0 8px 96px; }

/* AM-26 : intérieur d'une bulle en un écran — globe fixé sur la zone | indicateurs avec courbe | graphique comparé. */
.am-ib { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.75fr) minmax(0, 1.7fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-height: 0; height: 100%; }
.am-ib-rubs { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.am-ib-rubs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-ib-rubs button[aria-selected="true"] { background: var(--am-s1); border-color: var(--am-s1); color: #fff; }
.am-ib-globe { display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 6px; min-height: 0; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.am-ib-globe .am-globe-canvas { width: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 1; object-fit: contain; min-height: 0; }
.am-ib-globe-aide { margin: 0; font-size: 12px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.am-ib-lien { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: var(--am-s1); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.am-ib-liste { display: grid; min-height: 0; min-width: 0; }
.am-ib-ind { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; height: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.am-ib-ind:hover { border-color: var(--am-s1); }
.am-ib-ind.is-on { border-color: var(--am-s1); box-shadow: inset 0 0 0 1px var(--am-s1); background: color-mix(in srgb, var(--am-s1) 8%, var(--surface)); }
.am-ib-ind-nom { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ib-ind > b { font-size: 14px; font-variant-numeric: tabular-nums; grid-row: 1 / 3; grid-column: 2; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.am-ib-ind > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ib-autre { font: inherit; font-size: 12px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); }
.am-ib-courbes { overflow: hidden; }
.am-ib-ind > .am-mini, .am-ib-ind > svg { grid-row: 1 / 3; grid-column: 3; width: 56px; height: 28px; }
.am-ib-ind > small { grid-column: 1; font-size: 11px; }
.am-ib-graphe { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; min-height: 0; overflow: hidden; }
.am-ib-graphe > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.am-ib-graphe h2 { margin: 0; font-size: 16px; }
.am-ib-graphe header p { margin: 2px 0 0; font-size: 12px; }
.am-ib-puces { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.am-ib-puces button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.am-ib-puces button[aria-pressed="true"] { border-color: var(--am-s1); background: color-mix(in srgb, var(--am-s1) 12%, transparent); font-weight: 600; }
.am-ib-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; }
.am-ib-legende span { display: inline-flex; align-items: center; gap: 6px; }
.am-ib-legende i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.am-ib-courbes { min-width: 0; flex: 1 1 0; min-height: 140px; }
@media (max-width: 1100px) { .am-ib:not(.is-tel) { grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.4fr); grid-template-rows: auto minmax(0, 1fr) auto; } .am-ib:not(.is-tel) .am-ib-graphe { grid-column: 1 / -1; } }
.am-ib.is-tel { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; }
.am-ib.is-tel .am-ib-globe { padding: 4px; }
.am-ib.is-tel .am-ib-globe-aide { display: none; }
.am-ib.is-tel .am-ib-graphe { grid-column: 1 / -1; padding: 8px 10px; }
.am-ib.is-tel .am-ib-rubs, .am-ib.is-tel .am-ib-puces { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-ib.is-tel .am-ib-puces button { white-space: nowrap; flex: none; }

/* AM-27 (28/10) : accueil « À la une » + placements ; bulle : arbre des sous-indicateurs, vues du graphique, chemins. */
.am-pl { --q: var(--am-s1); display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid var(--q); border-radius: 12px; background: var(--surface); font-size: 12.5px; }
.am-pl.q-stag { --q: #b8893f; } .am-pl.q-infl { --q: #a66f4e; } .am-pl.q-rec { --q: #527c9b; } .am-pl.q-gold { --q: #315344; }
.am-pl p { margin: 0; line-height: 1.35; }
.am-pl-tete { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.am-pl-tete .am-ib-lien { margin-left: auto; text-transform: none; letter-spacing: 0; }
.am-pl-regime b { color: var(--q); font-size: 14px; }
.am-pl-mieux, .am-pl-moins { font-weight: 600; }
.am-pl-mieux { color: var(--am-hausse, #1d6b66); } .am-pl-moins { color: var(--am-baisse, #8b3932); }
.am-pl-mention { font-size: 11px; }
.am-pl.is-accueil { border-left-width: 1px; }
.am-pl.is-accueil ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.am-pl.is-accueil li { --q: var(--am-s1); display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 6px; align-items: baseline; padding-left: 8px; border-left: 3px solid var(--q); }
.am-pl.is-accueil li.q-stag { --q: #b8893f; } .am-pl.is-accueil li.q-infl { --q: #a66f4e; } .am-pl.is-accueil li.q-rec { --q: #527c9b; } .am-pl.is-accueil li.q-gold { --q: #315344; }
.am-pl.is-accueil li small { grid-column: 1 / -1; color: var(--muted); }
.am-pl-badge { font-size: 11.5px; font-weight: 600; color: var(--q); }
.am-ib-globe .am-pl { justify-self: stretch; }
.am-ib-globe { grid-template-rows: minmax(0, 1fr) auto auto; }

.am-pc .am-social.is-planete .am-social-fil { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 236px); min-height: 520px; }
.am-une-cadre { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; }
.am-une-tete { display: flex; align-items: baseline; gap: 8px; }
.am-une-tete h2 { margin: 0; font-size: 16px; }
.am-une-tete span { font-size: 12px; }
.am-une-cadre .am-nav-grille { gap: 6px; }
.am-une { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 56px; align-items: center; gap: 8px; height: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.am-une:disabled { cursor: default; opacity: 1; }
.am-une:not(:disabled):hover { border-color: var(--am-s1); }
.am-une-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--am-s1) 12%, transparent); color: var(--am-s1); }
.am-une.is-officiel .am-une-ic { background: color-mix(in srgb, var(--am-s2) 16%, transparent); color: var(--am-s2); }
.am-une.is-record .am-une-ic { background: color-mix(in srgb, var(--am-s3) 14%, transparent); color: var(--am-s3); }
.am-une-txt { display: grid; min-width: 0; }
.am-une-txt small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-une-txt span { font-size: 13px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.am-une-val { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.am-une-val b { font-size: 14px; white-space: nowrap; }
.am-une-val small { font-size: 10.5px; white-space: nowrap; }
.am-une-val .is-up { color: var(--am-hausse, #1d6b66); } .am-une-val .is-down { color: var(--am-baisse, #8b3932); }
.am-une > svg, .am-une > .am-mini { width: 56px; height: 26px; }
.am-app .am-une-cadre { margin: 0 16px; min-height: 340px; }
.am-app .am-pl.is-accueil { margin: 0 16px; }

.am-ib-liste .am-nav-grille { gap: 6px; }
.am-ib-chevron { display: inline-block; width: 12px; color: var(--muted); }
.am-ib-ind.is-ouvert { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.am-ib-sous { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 48px; align-items: center; column-gap: 6px; height: 100%; margin-left: 16px; padding: 4px 10px; border: 1px solid var(--border); border-left: 3px solid color-mix(in srgb, var(--am-s1) 35%, var(--border)); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; min-width: 0; }
.am-ib-sous:hover { border-color: var(--am-s1); }
.am-ib-sous.is-on { border-left-color: var(--am-s1); background: color-mix(in srgb, var(--am-s1) 10%, var(--surface)); font-weight: 600; }
.am-ib-sous .am-ib-ind-nom { font-size: 12.5px; font-weight: inherit; }
.am-ib-sous > b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-ib-sous > svg, .am-ib-sous > .am-mini { width: 48px; height: 22px; }
.am-ib-puce { color: var(--am-s1); font-size: 10px; }
.am-ib-sous-plus { margin-left: 16px; align-self: center; }
.am-ib-ou { margin: 0 0 2px; font-size: 11.5px; color: var(--muted); }
.am-ib-ou b { color: var(--am-s1); }
.am-ib-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.am-ib-vues { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.am-ib-vues button { border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.am-ib-vues button[aria-selected="true"] { background: var(--am-s1); color: #fff; }
.am-ib-vues button:disabled { opacity: .4; cursor: default; }
.am-ib-classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; height: 100%; overflow: hidden; }
.am-ib-classement li { display: grid; grid-template-columns: 26px minmax(90px, 160px) minmax(0, 1fr) 70px; align-items: center; gap: 8px; height: 20px; font-size: 12.5px; }
.am-ib-classement li.is-ici { font-weight: 700; }
.am-ib-cl-rang { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.am-ib-cl-nom { border: 0; background: none; padding: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ib-cl-nom:disabled { cursor: default; }
.am-ib-cl-barre { position: relative; height: 12px; background: color-mix(in srgb, var(--border) 45%, transparent); border-radius: 3px; }
.am-ib-cl-barre i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--am-s5) 45%, transparent); }
.am-ib-classement li.is-comp .am-ib-cl-barre i { background: var(--am-s2); }
.am-ib-classement li.is-ici .am-ib-cl-barre i { background: var(--am-s1); }
.am-ib-classement li > b { text-align: right; font-variant-numeric: tabular-nums; }
.am-ib-cl-saut { height: 10px !important; color: var(--muted); padding-left: 30px; line-height: 6px; }
.am-ib-detail { display: grid; gap: 4px; height: 100%; align-content: start; }
.am-ib-detail svg { width: 100%; height: auto; max-height: calc(100% - 20px); }
.am-ib-chemins { display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.am-ib-chemins-onglets { display: flex; gap: 2px; flex-wrap: wrap; }
.am-ib-chemins-onglets button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 12.5px; padding: 3px 8px; cursor: pointer; }
.am-ib-chemins-onglets button small { font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--border) 60%, transparent); }
.am-ib-chemins-onglets button[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--am-s1); }
.am-ib-chemins .am-ib-puces b { font-variant-numeric: tabular-nums; }
.am-ib-chemins .am-ch-prev { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: 12.5px; }
.am-ib.is-tel .am-ib-vues button { padding: 4px 8px; }
.am-ib.is-tel .am-ib-chemins-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-ib.is-tel .am-ib-chemins-onglets button { flex: none; }
/* AM-27 retouches : « À la une » garde sa colonne ; placements d'accueil sur une ligne par zone ; noms entiers dans l'arbre. */
.am-une-cadre, .am-social.is-planete .am-social-fil > * { min-width: 0; }
.am-pc .am-social.is-planete .am-social-fil { height: calc(100vh - 222px); min-height: 560px; }
.am-social.is-planete .am-social-tete { padding-top: 0; }
.am-pl.is-accueil { gap: 3px; padding: 8px 10px; }
.am-pl.is-accueil ul { gap: 2px 10px; }
.am-pl.is-accueil li { grid-template-columns: auto auto minmax(0, 1fr); white-space: nowrap; }
.am-pl.is-accueil li small { grid-column: auto; overflow: hidden; text-overflow: ellipsis; }
.am-pl.is-accueil li small::before { content: '· '; }
.am-ib { grid-template-columns: minmax(240px, 0.95fr) minmax(250px, 0.95fr) minmax(0, 1.6fr); }
.am-ib-ind-nom, .am-ib-sous .am-ib-ind-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.am-une { padding: 4px 10px; }
.am-une-txt span { font-size: 12.5px; -webkit-line-clamp: 2; line-height: 1.2; }
.am-une-txt small { line-height: 1.2; }
.am-app .am-une-cadre { min-height: 0; }
.am-app .am-une-cadre .am-nav-grille { min-height: 230px; }
.am-social.is-planete .am-social-fil { gap: 8px; }
.am-ib.is-tel .am-ib-graphe > header { flex-direction: column; gap: 4px; }
.am-ib.is-tel .am-ib-graphe header p.muted, .am-ib.is-tel .am-ib-ou { display: none; }
.am-ib.is-tel .am-ib-graphe h2 { font-size: 14px; }
.am-ib.is-tel .am-ib-actions { justify-content: flex-start; }
.am-ib.is-tel .am-ib-legende { font-size: 12px; }

/* ── AM-30 (28/10/2026) : intérieur des bulles (Atelier.tsx, maquette « bulle v3 » validée) ──
   Graphique au centre, indicateurs à droite, séries ajoutées au fil de l'eau, formats grisés quand ils n'ont pas de sens. */
.am-at { min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.am-at-tete { display: grid; gap: 8px; }
.am-at-meteo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fg-2); }
.am-at-meteo b { color: var(--fg); }
.am-at-etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--e); }
.am-at-etat::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--e); }
.am-at-meteo.is-bon { --e: var(--am-serein); } .am-at-meteo.is-var { --e: var(--am-neutre); } .am-at-meteo.is-mal { --e: var(--am-peur); }
.am-at-rubs { display: flex; gap: 8px; flex-wrap: wrap; }
.am-at-rub { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.am-at-rub[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 600; }
.am-at-corps { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; min-height: 0; }
.am-at-graph, .am-at-panneau { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-height: 0; min-width: 0; }
.am-at-graph { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 8px; padding: 12px 16px; }
.am-at-place { font-size: 12px; color: var(--fg-3); margin: 0; }
.am-at-titre h3 { font-size: 18px; margin: 2px 0; }
.am-at-titre h3 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.am-at-petit { font-size: 12px; margin: 0; }
.am-at-panier { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.am-at-panier b { color: var(--accent); }
.am-at-serie { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.am-at-serie i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.am-at-serie button { border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; padding: 0 4px; }
.am-at-serie.is-ici { font-weight: 600; }
.am-at-serie.is-ici button { cursor: default; }
.am-at-x { color: var(--fg-3) !important; font-size: 15px !important; line-height: 1; }
.am-at-vider { margin-left: auto; border: 0; background: none; color: var(--fg-3); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.am-at-outils { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.am-at-formats { display: flex; gap: 4px; flex-wrap: wrap; }
.am-at-formats button, .am-at-periodes button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 9px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.am-at-formats svg { width: 16px; height: 16px; }
.am-at-formats button[aria-pressed="true"], .am-at-periodes button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 600; }
.am-at-formats button.is-off { opacity: .4; cursor: not-allowed; }
.am-at-periodes { display: inline-flex; gap: 2px; }
.am-at-regle { display: flex; gap: 8px; font-size: 12.5px; color: var(--fg-2); margin: 0; }
.am-at-regle b { color: var(--accent); }
.am-at-zone { min-height: 0; min-width: 0; overflow: auto; }
.am-at-svg { display: block; font-size: 11px; }
.am-at-svg text, .am-at-multi text { fill: var(--fg-3); }
.am-at-clic { cursor: pointer; }
.am-at-vide { padding: 24px; text-align: center; }
.am-at-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; align-self: start; }
.am-at-multi figure { margin: 0; border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 12px; padding: 8px 10px; }
.am-at-multi figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.am-at-multi svg { width: 100%; display: block; font-size: 10px; }
.am-at-panneau { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.am-at-onglets { display: flex; border-bottom: 1px solid var(--border); }
.am-at-onglets button { flex: 1; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--fg-3); font: inherit; font-size: 13.5px; padding: 11px 8px; cursor: pointer; }
.am-at-onglets button[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.am-at-aide { font-size: 12px; color: var(--fg-3); padding: 8px 12px 0; margin: 0; }
.am-at-liste { overflow-y: auto; padding: 8px; display: grid; gap: 4px; align-content: start; }
.am-at-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 34px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-at-ligne.is-ici { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.am-at-ligne.is-dans { border-color: var(--c); }
.am-at-ligne.is-n1 { margin-left: 14px; } .am-at-ligne.is-n2 { margin-left: 28px; }
.am-at-voir { display: grid; grid-template-columns: 12px minmax(0, 1fr) 58px auto; gap: 6px; align-items: center; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; padding: 7px 4px 7px 10px; cursor: pointer; min-width: 0; }
.am-at-nom { font-size: 13.5px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-at-nom small { display: block; font-size: 11px; font-weight: 400; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-at-ligne.is-n1 .am-at-nom, .am-at-ligne.is-n2 .am-at-nom { font-weight: 500; }
.am-at-ligne.is-n2 .am-at-voir { padding-top: 4px; padding-bottom: 4px; }
.am-at-v { font-size: 12.5px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.am-at-fle { font-size: 10px; color: var(--fg-3); transition: transform .15s; }
.am-at-fle.is-ouv { transform: rotate(90deg); }
.am-at-sp { width: 58px; height: 20px; }
.am-at-plus { border: 0; border-left: 1px solid var(--border); background: none; color: var(--accent); font-size: 17px; border-radius: 0 12px 12px 0; cursor: pointer; }
.am-at-plus:hover:not(:disabled):not([aria-pressed="true"]) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.am-at-plus[aria-pressed="true"] { background: var(--c); color: var(--surface); }
.am-at-plus:disabled { color: var(--fg-3); cursor: default; }
.am-at-plus:disabled[aria-pressed="true"] { color: var(--surface); }
/* Téléphone : la colonne défile, le graphique garde sa hauteur, la liste vient dessous. */
.am-at.is-tel { height: 100%; overflow-y: auto; grid-template-rows: auto auto; align-content: start; }
.am-at.is-tel .am-at-corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.am-at.is-tel .am-at-graph, .am-at.is-tel .am-at-panneau { min-height: auto; }
.am-at.is-tel .am-at-graph { grid-template-rows: auto auto auto auto 260px; padding: 12px; }
.am-at.is-tel .am-at-formats span { display: none; }
.am-at.is-tel .am-at-liste { max-height: 420px; }
@media (max-width: 1000px) { .am-at { height: auto; } .am-at-corps { grid-template-columns: minmax(0, 1fr); } .am-at-graph { grid-template-rows: auto auto auto auto 300px; } .am-at-liste { max-height: 420px; } }

/* ── AM-31 (28/10/2026) : accueil — À la une avec la presse, boussole parlante, planète plus vivante ── */
.am-une-filtres { display: flex; gap: 4px; flex-wrap: wrap; }
.am-une-filtres button { border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; }
.am-une-filtres button small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.am-une-filtres button[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.am-une-filtres button[aria-pressed="true"] small { color: inherit; opacity: .7; }
.am-une-filtres button:disabled { opacity: .45; cursor: default; }
.am-une-cadre { grid-template-rows: auto auto minmax(0, 1fr); min-height: 150px; }
a.am-une { text-decoration: none; color: var(--fg); margin: 0; }
a.am-une:hover { border-color: var(--am-s4); }
.am-une.is-presse .am-une-ic { background: color-mix(in srgb, var(--am-s4) 14%, transparent); color: var(--am-s4); }
.am-une.is-presse .am-une-txt small { color: var(--am-s4); }
.am-une-lire { font-size: 12px; font-weight: 600; color: var(--am-s4); text-align: right; }
.am-une-lire::after { content: " ↗"; }
.am-une.is-officiel .am-une-lire { color: var(--am-s2); }
.am-une.is-officiel .am-une-txt small { color: var(--am-s2); }
@media (max-width: 640px) { .am-une.is-officiel.is-lien { grid-template-columns: 28px minmax(0, 1fr) 0 44px; } }
.am-une.is-presse .am-une-val small { white-space: normal; text-align: right; max-width: 90px; line-height: 1.2; }
@media (max-width: 640px) { .am-une.is-presse .am-une-val { display: none; } .am-une.is-presse { grid-template-columns: 28px minmax(0, 1fr) 44px; } }

.am-ba { --q: var(--am-s1); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 10px; align-items: center;
  background: radial-gradient(circle at 12% 55%, color-mix(in srgb, var(--q) 9%, transparent), transparent 55%), var(--surface); flex: none; }
.am-ba.q-stag, .am-ba-zones .q-stag, .am-ba-autre.q-stag { --q: var(--am-peur); }
.am-ba.q-infl, .am-ba-zones .q-infl, .am-ba-autre.q-infl { --q: var(--am-neutre); }
.am-ba.q-rec, .am-ba-zones .q-rec, .am-ba-autre.q-rec { --q: var(--am-s4); }
.am-ba.q-gold, .am-ba-zones .q-gold, .am-ba-autre.q-gold { --q: var(--am-serein); }
.am-ba-tete { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.am-ba-tete h2 { margin: 0; font-size: 15px; }
.am-ba-zone { flex: 1; min-width: 0; max-width: 260px; font: inherit; font-size: 12px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); }
.am-ba-tete .am-ib-lien { margin-left: auto; }
.am-ba-cadran { width: 76px; height: 76px; display: block; overflow: visible; }
.am-ba-fond { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.am-ba-cercle { fill: none; stroke: var(--border); stroke-dasharray: 1.5 3; }
.am-ba-cran { stroke: var(--fg-3, var(--muted)); stroke-width: .6; opacity: .6; }
.am-ba-axe { font-size: 6px; font-weight: 600; text-anchor: middle; }
.am-ba-axe.is-mal { fill: var(--am-peur); } .am-ba-axe.is-bon { fill: var(--am-serein); }
.am-ba-coin { font-size: 5.6px; fill: var(--muted); }
.am-ba-coin.is-on { fill: var(--q); font-weight: 700; }
.am-ba-autre { fill: var(--q); opacity: .45; }
.am-ba-aiguille { transform-origin: 60px 60px; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.am-ba-pointe { fill: var(--q); }
.am-ba-queue { fill: var(--muted); opacity: .5; }
.am-ba-axe-c { fill: var(--fg); }
.am-ba-dit { display: grid; gap: 3px; min-width: 0; }
.am-ba-quand { margin: 0; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.am-ba-regime { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.1; color: var(--q); }
.am-ba-regime small { font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.am-ba-phrase { margin: 0; font-size: 12px; line-height: 1.3; }
.am-ba-mieux { margin: 0; font-size: 11.5px; line-height: 1.3; background: color-mix(in srgb, var(--q) 7%, var(--surface)); border-radius: 8px; padding: 5px 8px; }
.am-ba-zones { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; }
.am-ba-zones button { border: 1px solid color-mix(in srgb, var(--q) 45%, var(--border)); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 1px 9px; font: inherit; font-size: 11.5px; cursor: pointer; }
.am-ba-zones button[aria-pressed="true"] { background: var(--q); border-color: var(--q); color: var(--surface); }


.am-orb-sp { display: block; width: 56%; margin-top: .1cqw; pointer-events: none; }
.am-orb-theme .am-orb-sp { width: 50%; }
/* 29/10 : un nom sur deux lignes (« Énergie et matières ») tient dans le rond au lieu d'être rogné par le bord. */
.am-orb-marches .am-orb-nom { max-width: 84%; font-size: 1.4cqw; line-height: 1.1; -webkit-line-clamp: 2; }
.am-orb-marches .am-orb-sp { width: 50%; }
.am-orb-sp .am-mini { width: 100%; height: auto; max-height: 2.6cqw; }
.am-orb-theme .am-orb-val { font-size: 2.3cqw; }
.am-planete-orbite { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--am-s1) 32%, transparent); animation: am-orbite 140s linear infinite; pointer-events: none; }
.am-planete-globe { border-radius: 50%; animation: am-globe-halo 7s ease-in-out infinite; }
.am-planete:hover .am-planete-orbite { animation-play-state: paused; }
@keyframes am-orbite { to { transform: rotate(360deg); } }
@keyframes am-globe-halo { 0%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--am-s1) 7%, transparent), 0 0 50px 4px color-mix(in srgb, var(--am-s1) 14%, transparent); }
  50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--am-s1) 9%, transparent), 0 0 70px 10px color-mix(in srgb, var(--am-s1) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .am-planete-orbite, .am-planete-globe, .am-ba-aiguille { animation: none; transition: none; } }

/* AM-33 (29/10/2026) : menu des rubriques à gauche, arbre sur deux colonnes, acteurs principaux, survol des courbes */
.am-at-graph { display: flex; flex-direction: column; }
.am-at-zone { flex: 1 1 0; position: relative; }
.am-at-corps { grid-template-columns: minmax(0, 1fr) 440px; }
.am-at-corps.avec-menu { grid-template-columns: 160px minmax(0, 1fr) 440px; }
.am-at-graph { gap: 6px; }
.am-at-panier { padding: 6px 8px; gap: 5px; }
.am-at-serie { font-size: 12px; }
.am-at-formats button, .am-at-periodes button { padding: 4px 7px; white-space: nowrap; }
.am-at-zone { min-height: 240px; }
.am-at-menu { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.am-at-menu button { display: flex; align-items: flex-start; gap: 8px; border: 1px solid transparent; background: none; color: var(--fg-2); border-radius: 12px; padding: 9px 10px; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.am-at-menu button:hover { background: var(--surface); border-color: var(--border); }
.am-at-menu button[aria-current] { background: var(--surface); border-color: var(--accent); color: var(--fg); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.am-at-menu small { display: block; font-size: 11px; font-weight: 400; color: var(--fg-3); }
.am-at-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-height: 0; }
.am-at-col { display: grid; gap: 4px; align-content: start; min-width: 0; }
.am-at-col + .am-at-col { border-left: 1px dashed var(--border); padding-left: 8px; }
.am-at-coltitre { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin: 2px 2px 2px; }
.am-at-cols .am-at-voir { grid-template-columns: 10px minmax(0, 1fr) auto; }
.am-at-cols .am-at-sp { display: none; }
.am-at-cols .am-at-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 13px; }
.am-at-auto { border: 1px solid var(--accent); background: var(--accent); color: var(--surface); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.am-at-auto[aria-pressed="false"] { background: var(--surface); color: var(--accent); }
.am-at-serie.is-auto { border-style: dashed; }
.am-at-puces { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.am-at-puces button { border: 1px dashed var(--border-strong); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.am-at-puces button:hover { border-color: var(--accent); color: var(--accent); }
.am-at-puces .am-at-tous { border: 0; color: var(--fg-3); text-decoration: underline; }
.am-at-lignes { position: relative; }
.am-at-bulle { position: absolute; top: 8px; z-index: 4; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px; font-size: 12px; display: grid; gap: 2px; min-width: 170px; max-width: 280px; box-shadow: 0 8px 22px color-mix(in srgb, var(--fg) 16%, transparent); }
.am-at-bulle span { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.am-at-bulle span i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 1366px) { .am-at-corps, .am-at-corps.avec-menu { grid-template-columns: minmax(0, 1fr) 440px; } .am-at-menu { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; overflow: visible; } .am-at-menu small { display: none; } }
@media (max-width: 1000px) { .am-at-corps, .am-at-corps.avec-menu { grid-template-columns: minmax(0, 1fr); } .am-at-zone { flex: none; height: 300px; } }
.am-at.is-tel .am-at-zone { flex: none; height: 260px; }
/* AM-34 : carte du monde dans l'intérieur des bulles */
.am-at-carte { display: grid; gap: 6px; }
.am-at-carte .am-carte { margin: 0; }
.am-at-carte .am-carte svg { max-height: none; }
/* AM-34 : planisphère des routes */
.am-at-routes { background: color-mix(in srgb, var(--am-s4) 8%, var(--surface)); border-radius: 12px; }
.am-at-terre { fill: color-mix(in srgb, var(--fg-2) 14%, var(--surface)); stroke: var(--surface); stroke-width: .3; }
/* AM-34 : notation d'un pays (toile d'araignée) */
.am-at-toile { display: grid; gap: 8px; }
.am-at-pays { display: flex; flex-wrap: wrap; gap: 6px; }
.am-at-pays button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--fg); }
.am-at-pays button[aria-pressed="true"] { background: var(--am-s1); border-color: var(--am-s1); color: var(--surface); }
.am-at-notation { font-size: 12.5px; color: var(--fg-2); }
.am-at-notation summary { cursor: pointer; color: var(--am-s1); font-weight: 600; }
.am-at-notation ul { margin: 4px 0 0; padding-left: 18px; }

/* AM-35 (30/10/2026) : onglet « Lire un graphique » au rendu de la galerie validée le 29/10 (GalerieMoteur.ts) ; mêmes
   classes que la maquette, rangées sous .am-gal, couleurs reprises du thème de l'appli (Épure, Nuit et or, Atlas). */
.am-gal { --soft: var(--surface-2); --ink: var(--fg); --fg2: var(--fg-2); --line: var(--border); --accent: var(--am-s1);
  --accent-l: color-mix(in srgb, var(--am-s1) 12%, var(--surface)); --bon: var(--am-serein); --var: var(--am-neutre); --mal: var(--am-peur);
  --s1: var(--am-s1); --s2: var(--am-s2); --s3: var(--am-s3); --s4: var(--am-s4); --s5: var(--am-s5); --s6: var(--am-s6); --s7: var(--am-s7, #527c9b);
  --mer: color-mix(in srgb, var(--am-s4) 9%, var(--surface)); --terre: color-mix(in srgb, var(--fg) 13%, var(--surface)); --rec: color-mix(in srgb, var(--fg) 8%, var(--surface));
  --muted: var(--fg-3); display: grid; gap: 22px; min-width: 0; color: var(--ink); }
.am-gal .sur { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0; }
.am-gal .titre { margin: 2px 0 6px; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.15; text-wrap: balance; }
.am-gal h3 { margin: 0; font-size: 16px; text-wrap: balance; }
.am-gal p { margin: 0 0 6px; max-width: 75ch; }
.am-gal .muted { color: var(--muted); }
.am-gal .regle { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 18px 20px; display: grid; gap: 10px; min-width: 0; }
.am-gal .regle h3 { font-size: 18px; }
.am-gal .tab { overflow-x: auto; }
.am-gal table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 680px; }
.am-gal th, .am-gal td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.am-gal td { white-space: normal; }
.am-gal th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.am-gal td a { color: var(--accent); font-weight: 600; text-decoration: none; }
.am-gal td a:hover { text-decoration: underline; }
.am-gal .filtres { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-block: 8px; }
.am-pc .am-gal .filtres { top: 58px; }
.am-gal .filtres button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.am-gal .filtres button[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.am-gal .grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 16px; }
.am-gal .fiche { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; scroll-margin-top: 120px; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent); }
.am-gal .fiche header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.am-gal .nat { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--accent-l); color: var(--accent); white-space: nowrap; }
.am-gal .ex { font-size: 12.5px; color: var(--fg2); margin: 0; }
.am-gal .fig { position: relative; min-width: 0; }
.am-gal .fig svg { width: 100%; height: auto; display: block; font-size: 11px; }
.am-gal .fig text { fill: var(--muted); }
.am-gal .fig .lab { fill: var(--ink); font-weight: 600; }
.am-gal .lire { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; font-size: 13px; }
.am-gal .lire div { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.am-gal .lire b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.am-gal .lire .piege b { color: var(--mal); }
.am-gal .themes { display: flex; flex-wrap: wrap; gap: 4px; }
.am-gal .themes span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--fg2); }
.am-gal .src { font-size: 11.5px; color: var(--muted); margin: 0; }
.am-gal .leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--fg2); }
.am-gal .leg i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.am-gal .tip { position: absolute; z-index: 6; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font-size: 12px; box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 16%, transparent); min-width: 150px; display: grid; gap: 2px; }
.am-gal .tip[hidden] { display: none !important; }
.am-gal .tip span { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; }
.am-gal .tip i { width: 10px; height: 10px; border-radius: 3px; }
.am-gal .cur { stroke: var(--ink); stroke-dasharray: 3 3; pointer-events: none; }
.am-gal [data-tip] { cursor: pointer; }
.am-gal .puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.am-gal .puces button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.am-gal .puces button[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.am-gal .regle-note { font-size: 12.5px; color: var(--fg2); margin-top: 6px; }
.am-gal .regle-note summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.am-gal .regle-note ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 700px) { .am-gal .filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; } .am-gal .filtres button { flex: none; } }
.am-gal.is-court { display: block; }
.am-gal.is-court .fiche { padding: 12px 14px; border-radius: 12px; box-shadow: none; }
.am-at-comment { border: 0; background: none; padding: 0; margin-left: 6px; font: inherit; font-weight: 600; color: var(--am-s1); cursor: pointer; white-space: nowrap; }
.am-at-comment:hover { text-decoration: underline; }
.am-at-lecture { display: grid; gap: 6px; }
.am-at-lecture .am-at-tous-types { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--am-s1); cursor: pointer; text-decoration: underline; }
.am-at-regle-bloc { display: grid; gap: 8px; min-width: 0; }

/* AM-36 (30/10/2026) : plusieurs sources pour un même chiffre (Sources.tsx). Statuts toujours avec un libellé. */
.am-src { display: grid; gap: 6px; margin-top: 4px; min-width: 0; }
.am-src-badge { justify-self: start; border: 1px solid transparent; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.am-src-badge.is-ok { background: color-mix(in srgb, var(--am-serein) 14%, var(--surface)); color: var(--am-serein); border-color: color-mix(in srgb, var(--am-serein) 30%, transparent); }
.am-src-badge.is-ecart { background: color-mix(in srgb, var(--am-neutre) 16%, var(--surface)); color: var(--am-neutre); border-color: color-mix(in srgb, var(--am-neutre) 35%, transparent); }
.am-src-badge.is-moy { background: color-mix(in srgb, var(--am-s1) 12%, var(--surface)); color: var(--am-s1); border-color: color-mix(in srgb, var(--am-s1) 30%, transparent); }
.am-src-badge.is-seule { background: var(--surface-2); color: var(--fg-2); border-color: var(--border); }
.am-src-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; }
.am-src-detail ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.am-src-detail li.is-ecart { color: var(--am-neutre); }
.am-src-regle { margin: 0; color: var(--fg-2); }
.am-src-ecartees summary { cursor: pointer; color: var(--fg-3); }
.am-src-fig { margin: 0; }
.am-src-fig svg { width: 100%; height: auto; display: block; font-size: 11px; }
.am-src-fig text { fill: var(--fg-3); }
.am-src-fig .am-src-val { fill: var(--am-s1); font-weight: 600; }
.am-src-fig figcaption { font-size: 12px; color: var(--fg-3); }

/* AM-40 (30/10/2026) : planète à gauche, arbre à droite, placements visibles d'entrée. */
.am-at-corps.avec-planete { grid-template-columns: 270px minmax(0, 1fr) 400px; }
.am-at-gauche { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.am-at-gauche:not(.is-tel) > * { flex-shrink: 0; } /* AM-43 : la colonne défile, ses blocs ne se compriment pas (la planète passait sur les rubriques) */
.am-at-gauche .am-at-menu { flex-direction: row; flex-wrap: wrap; gap: 4px; overflow: visible; }
.am-at-gauche .am-at-menu button { padding: 5px 9px; font-size: 12.5px; border-color: var(--border); border-radius: 999px; align-items: center; gap: 5px; }
.am-at-gauche .am-at-menu button[aria-current] { box-shadow: none; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.am-at-planete { width: 100%; height: auto; display: block; }
.am-at-planete .am-at-orbite { fill: none; stroke: var(--border); stroke-dasharray: 3 4; }
.am-at-planete .am-at-coeur { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.am-at-planete text { text-anchor: middle; font-size: 9px; fill: var(--fg-2); pointer-events: none; }
.am-at-planete .am-at-coeur-nom { font-size: 10px; font-weight: 600; fill: var(--fg); }
.am-at-planete .am-at-coeur-v { font-size: 17px; font-weight: 700; fill: var(--accent); }
.am-at-astre { cursor: pointer; }
.am-at-astre circle { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; transition: transform .15s, fill .15s; }
.am-at-astre .am-at-astre-v { font-size: 10px; font-weight: 600; fill: var(--fg); }
.am-at-astre:hover circle, .am-at-astre.is-lu circle { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); transform: scale(1.12); }
.am-at-astre.is-ici circle { fill: var(--accent); stroke: var(--accent); }
.am-at-astre.is-ici text { fill: var(--surface); }
.am-at-astre.is-dans circle { stroke-width: 2.4; }
.am-at-gauche .am-pl { font-size: 12.5px; }
@media (max-width: 1280px) { .am-at-corps.avec-planete { grid-template-columns: 220px minmax(0, 1fr) 360px; } }
@media (max-width: 1000px) { .am-at-corps.avec-planete { grid-template-columns: minmax(0, 1fr); } .am-at-gauche { overflow: visible; } .am-at-planete { max-width: 320px; margin: 0 auto; } }
.am-at-gauche .am-pl ul { display: grid; grid-template-columns: minmax(0, 1fr); }
.am-at-gauche .am-pl li { min-width: 0; }

/* AM-41 (30/10/2026) : téléphone — rubriques et planète en tête, puis le graphique, les placements, l'arbre. */
.am-at-corps.avec-planete-tel { display: flex; flex-direction: column; gap: 12px; }
.am-at-gauche.is-tel { display: contents; }
.am-at-gauche.is-tel .am-at-menu { order: 1; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
.am-at-gauche.is-tel .am-at-menu button { flex: none; padding: 6px 11px; font-size: 13px; border: 1px solid var(--border); border-radius: 999px; align-items: center; gap: 5px; }
.am-at-gauche.is-tel .am-at-menu button[aria-current] { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: var(--accent); box-shadow: none; }
.am-at-gauche.is-tel .am-at-planete { order: 2; width: min(300px, 100%); max-width: 300px; margin: 0; align-self: center; }
.am-at-corps.avec-planete-tel > .am-at-graph { order: 3; }
.am-at-gauche.is-tel .am-pl { order: 4; font-size: 13px; }
.am-at-corps.avec-planete-tel > .am-at-panneau { order: 5; }
.am-at-gauche.is-tel .am-pl ul { display: grid; grid-template-columns: minmax(0, 1fr); }
.am-at.is-tel .am-at-astre circle { stroke-width: 1.4; }
.am-at-corps.avec-planete-tel { min-width: 0; max-width: 100%; }
.am-at-corps.avec-planete-tel > *, .am-at-gauche.is-tel > * { min-width: 0; max-width: 100%; }
.am-nav.is-tel, .am-nav.is-tel .am-nav-corps, .am-at.is-tel { min-width: 0; max-width: 100%; } /* AM-44 : sans ça, la navigation suit son contenu et déborde (426 px pour 390) */

/* AM-42 (30/10/2026) : vraie planète (globe + bulles en orbite, comme l'accueil) et vrai arbre à branches. */
.am-at-corps.avec-planete { grid-template-columns: 310px minmax(0, 1fr) 440px; }
@media (max-width: 1280px) { .am-at-corps.avec-planete { grid-template-columns: 280px minmax(0, 1fr) 360px; } }
.am-planete.is-bulle { aspect-ratio: 1; max-width: none; justify-self: stretch; }
.am-planete.is-bulle { margin-bottom: 30px; }
.am-planete.is-bulle .am-planete-legende { font-size: 10.5px; line-height: 1.3; }
.am-planete.is-bulle .am-planete-globe { left: 29%; top: 29%; width: 42%; }
.am-pb-centre { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 12px; max-width: 46%; text-align: center; line-height: 1.15; font-size: 3.8cqw; pointer-events: none; z-index: 2; }
.am-pb-centre b { font-size: 5.6cqw; color: var(--accent); }
.am-pb-astre .am-orb-nom { font-size: 3.6cqw; -webkit-line-clamp: 2; }
.am-pb-astre .am-orb-val { font-size: 5.2cqw; }
.am-pb-astre .am-orb-tend { font-size: 2.9cqw; }
.am-pb-astre.is-on { --am-orb: var(--accent); background: color-mix(in srgb, var(--surface) 70%, var(--accent)); border-width: 2px; }
.am-pb-astre.is-lu { scale: 1.14; z-index: 3; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 10px 24px rgba(0,0,0,.14); }
.am-pb-astre.is-dans { border-width: 2px; border-color: var(--am-orb); }
.am-at-arbre { position: relative; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.am-at-arbre .am-at-voir { grid-template-columns: 10px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 2px; padding: 6px 4px 6px 8px; }
.am-at-arbre .am-at-voir .am-at-nom { grid-column: 2; -webkit-line-clamp: 3; font-size: 12.5px; }
.am-at-arbre .am-at-voir .am-at-v { grid-column: 2; justify-self: start; font-size: 12.5px; }
.am-at-arbre .am-at-voir .am-at-fle { grid-row: 1; }
.am-at-arbre .am-at-plus { width: 26px; min-width: 26px; font-size: 14px; }
.am-at-arbre .am-at-col + .am-at-col { border-left: 0; padding-left: 0; }
.am-at-arbre .am-at-col { position: relative; z-index: 1; }
.am-at-branches { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.am-at-branches path { fill: none; stroke: color-mix(in srgb, var(--fg-3) 55%, transparent); stroke-width: 1.5; }
.am-at-branches path.is-on { stroke: var(--accent); stroke-width: 2.2; }
.am-at-racine { position: relative; z-index: 1; align-self: start; margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 5px; border-radius: 14px; background: var(--accent); color: var(--surface); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; overflow-wrap: normal; hyphens: auto; }
.am-at-racine small { font-size: 10.5px; font-weight: 400; opacity: .85; }
.am-at-arbre .am-at-ligne { background: var(--surface); }
.am-at-arbre .am-at-ligne.is-ouv { box-shadow: 0 0 0 1.5px var(--accent); }
.am-at-arbre .am-at-ligne.is-n1 { margin-left: 22px; }
/* Téléphone : la même planète, pleine largeur. */
.am-at-gauche.is-tel .am-planete.is-bulle { order: 2; width: 100%; max-width: 360px; align-self: center; }
.am-pb-astre.is-serre .am-orb-tend, .am-pb-astre.is-serre .am-orb-sp { display: none; }
.am-pb-astre.is-serre .am-orb-nom { font-size: 3cqw; }
.am-pb-astre.is-serre .am-orb-val { font-size: 4.3cqw; }
.am-at-arbre .am-at-ligne { grid-template-columns: minmax(0, 1fr) 26px; }

/* AM-43 (30/10/2026) : bulles d'orbite = titre seul, en entier ; bulle à hauteur d'écran (plus rien ne s'étire vers le bas). */
/* AM-43 : titre seul, dans le carré inscrit du cercle (72 %) ; la taille est ajustée par PlaneteBulle.tsx pour qu'il tienne entier. */
.am-pb-astre { padding: 0; }
.am-pb-astre .am-orb-nom, .am-pb-astre.is-serre .am-orb-nom { display: flex; align-items: center; justify-content: center; text-align: center; width: 76%; height: 76%; max-width: none; -webkit-line-clamp: unset; overflow: hidden; line-height: 1.08; hyphens: auto; overflow-wrap: normal; word-break: normal; }
.am-pb-centre span { font-size: 4.2cqw; font-weight: 600; }
@media (min-width: 1001px) {
  .am-at:not(.is-tel) .am-at-corps.avec-planete { height: max(560px, calc(100vh - 210px)); align-items: stretch; }
  .am-at:not(.is-tel) .am-at-corps.avec-planete > * { min-height: 0; max-height: 100%; }
  .am-at:not(.is-tel) .am-at-graph { overflow-y: auto; }
  .am-at:not(.is-tel) .am-at-zone { min-height: 280px; }
  .am-at:not(.is-tel) .am-at-panneau { overflow: hidden; }
}
/* Arbre compact : un nœud = son nom (et le + pour comparer) ; le détail est au survol. */
.am-at-arbre .am-at-voir { padding: 5px 4px 5px 8px; }
.am-at-arbre .am-at-voir .am-at-nom { -webkit-line-clamp: 2; font-size: 12.5px; }
.am-at-arbre .am-at-voir .am-at-nom small, .am-at-arbre .am-at-voir .am-at-v { display: none; }
.am-at-arbre .am-at-col { gap: 3px; }
.am-at-arbre .am-at-ligne { border-radius: 10px; }

/* AM-44 : arbre vertical sur téléphone. Tronc à gauche de chaque niveau, une branche horizontale vers chaque nœud ;
   la branche qui mène au chiffre regardé en couleur. */
.am-at-arbre-tel { --tr: color-mix(in srgb, var(--fg-3) 55%, var(--surface)); --mi: 23px; display: flex; flex-direction: column; gap: 0; }
.am-at-arbre-tel > .am-at-racine { align-self: flex-start; margin: 0 0 4px; padding: 8px 14px; flex-direction: row; gap: 8px; align-items: baseline; font-size: 13px; }
.am-at-rameaux { position: relative; display: flex; flex-direction: column; gap: 6px; margin-left: 12px; padding: 6px 0 0 18px; }
.am-at-rameau { position: relative; display: flex; flex-direction: column; }
.am-at-rameau::before { content: ''; position: absolute; left: -18px; top: -6px; bottom: -6px; border-left: 2px solid var(--tr); }
.am-at-rameau:last-child::before { bottom: auto; height: calc(var(--mi) + 6px); }
.am-at-rameau::after { content: ''; position: absolute; left: -18px; top: var(--mi); width: 16px; border-top: 2px solid var(--tr); }
.am-at-rameau.is-on::after { border-top-color: var(--accent); }
.am-at-arbre-tel .am-at-rameaux .am-at-rameaux { margin-left: 10px; }
.am-at-arbre-tel .am-at-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.am-at-arbre-tel .am-at-rameaux .am-at-rameaux .am-at-sp { display: none; } /* en profondeur, la place va au nom */

/* AM-46 (02/11) : onglet « Arbre » — toutes les bulles et ce qui en découle, chaque nom ouvre la bulle à cet endroit. */
.am-arb { --tr: color-mix(in srgb, var(--fg-3) 45%, var(--surface)); min-width: 0; }
.am-arb .sur { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0; }
.am-arb .titre { margin: 2px 0 6px; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.15; }
.am-arb-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.am-arb-q { flex: 1 1 260px; min-width: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; }
.am-arb-outils .muted { flex-basis: 100%; font-size: 12.5px; }
.am-arb-famille h3 { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.am-arb ul { list-style: none; margin: 0; padding: 0; }
.am-arb-racine { display: grid; gap: 2px; }
.am-arb-br { position: relative; margin-left: 11px; padding-left: 16px; }
.am-arb-br > .am-arb-n { position: relative; }
.am-arb-br > .am-arb-n::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 1.5px solid var(--tr); }
.am-arb-br > .am-arb-n:last-child::before { bottom: auto; height: 15px; }
.am-arb-br > .am-arb-n::after { content: ''; position: absolute; left: -16px; top: 15px; width: 12px; border-top: 1.5px solid var(--tr); }
.am-arb-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 30px; }
.am-arb-ligne .muted, .am-arb-n.is-s .muted { font-size: 12px; }
.am-arb-pli { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--fg-2); cursor: pointer; flex: none; }
.am-arb-pli[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.am-arb-lien { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-arb-lien:hover { color: var(--accent); text-decoration: underline; }
.am-arb-lien svg { opacity: 0; transition: opacity .12s; }
.am-arb-lien:hover svg, .am-arb-lien:focus-visible svg { opacity: 1; }
.am-arb-pli:focus-visible, .am-arb-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-arb-n.is-b > .am-arb-ligne > .am-arb-lien { font-weight: 700; font-size: 15px; }
.am-arb-n.is-r > .am-arb-ligne > .am-arb-lien { font-weight: 600; }
.am-arb-n.is-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 3px 0 3px 30px; }
.am-arb-n.is-s .am-arb-lien { font-size: 13.5px; }
.am-arb-err { color: var(--danger, #9b2c2c); font-size: 12px; }
@media (max-width: 700px) { .am-arb-br { margin-left: 8px; padding-left: 12px; } .am-arb-br > .am-arb-n::before, .am-arb-br > .am-arb-n::after { left: -12px; } .am-arb-br > .am-arb-n::after { width: 9px; } .am-arb-n.is-s { padding-left: 4px; } }

/* AM-47 (02/11) : accueil — « Ce qu'il faut retenir », boussole en quatre cases, actualité lisible (maquette validée). */
.am-pc .am-social.is-planete .am-social-fil { height: auto; min-height: 0; }
.am-accueil-bas { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.am-app .am-accueil-bas { padding-bottom: 96px; }
.am-ret { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.am-ret-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.am-ret-tete h2 { margin: 0; font-size: 19px; }
.am-ret-tete .muted { font-size: 12.5px; }
.am-ret-carte { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-ret-chiffre { display: flex; flex-direction: column; gap: 2px; }
.am-ret-chiffre b { font-size: 24px; line-height: 1.1; }
.am-ret-chiffre small { font-size: 12px; font-weight: 600; }
.am-ret-chiffre small.is-up { color: var(--am-serein); } .am-ret-chiffre small.is-down { color: var(--am-peur); }
.am-ret-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.am-ret-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.am-ret-txt h3 { margin: 0; font-size: 15.5px; line-height: 1.3; }
.am-ret-txt p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.am-ret-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
@media (max-width: 480px) { .am-ret-carte { grid-template-columns: minmax(0, 1fr); gap: 6px; } .am-ret-chiffre { flex-direction: row; align-items: baseline; gap: 10px; } }

.am-bq { --stag: #b5483a; --infl: #a57a1c; --rec: #3c6a94; --gold: var(--accent); display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.am-bq-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.am-bq-tete > div { display: flex; flex-direction: column; gap: 6px; max-width: 880px; }
.am-bq-sur { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.am-bq-tete h2 { margin: 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.3; }
.am-bq-tete p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.am-bq-detail { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.am-bq-grille { display: grid; grid-template-columns: 26px repeat(2, minmax(0, 1fr)); gap: 10px; }
.am-bq-axe { font-size: 12.5px; font-weight: 600; color: var(--fg-2); text-align: center; }
.am-bq-axe.is-haut, .am-bq-axe.is-bas { grid-column: 2 / span 2; }
.am-bq-axe.is-haut { color: var(--stag); }
.am-bq-axe.is-cote { grid-column: 1; grid-row: 2 / span 2; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }
.am-bq-case { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 190px; padding: 14px 16px; border-radius: 12px; }
.am-bq-case.q-stag { grid-column: 2; grid-row: 2; background: color-mix(in srgb, var(--stag) 10%, var(--surface)); --c: var(--stag); }
.am-bq-case.q-infl { grid-column: 3; grid-row: 2; background: color-mix(in srgb, var(--infl) 11%, var(--surface)); --c: var(--infl); }
.am-bq-case.q-rec { grid-column: 2; grid-row: 3; background: color-mix(in srgb, var(--rec) 10%, var(--surface)); --c: var(--rec); }
.am-bq-case.q-gold { grid-column: 3; grid-row: 3; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); --c: var(--gold); }
.am-bq-case-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: color-mix(in srgb, var(--c) 80%, var(--fg)); }
.am-bq-case-tete strong { font-size: 16.5px; }
.am-bq-case-tete span { font-size: 12.5px; font-weight: 600; }
.am-bq-case > p { margin: 0; font-size: 13.5px; color: var(--fg-2); }
.am-bq-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.am-bq-zones button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 46px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-bq-zones button b { font-size: 14.5px; }
.am-bq-zones button small { font-size: 12px; color: var(--fg-2); }
.am-bq-zones button[aria-pressed="true"] { border: 2px solid var(--accent); padding: 6px 10px; }
.am-bq-zones button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-bq-mieux { margin-top: auto; font-size: 12.5px; line-height: 1.4; color: var(--fg-2); }
.am-bq-lecture { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px 18px; border-radius: 12px; background: var(--surface-2, color-mix(in srgb, var(--fg) 4%, var(--surface))); }
.am-bq-lecture p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.am-bq-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.am-bq-chiffres > div { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.am-bq-chiffres small { font-size: 12px; color: var(--fg-2); }
.am-bq-chiffres b { font-size: 18px; }
.am-bq-chiffres span { font-size: 12.5px; font-weight: 600; }
.am-bq-chiffres .is-mal { color: var(--stag); } .am-bq-chiffres .is-bon { color: var(--accent); }
.am-bq-mention { margin: 0; font-size: 12px; }
@media (max-width: 700px) {
  .am-bq { padding: 16px; }
  .am-bq-grille { grid-template-columns: minmax(0, 1fr); }
  .am-bq-axe { display: none; }
  .am-bq-case.q-stag, .am-bq-case.q-infl, .am-bq-case.q-rec, .am-bq-case.q-gold { grid-column: 1; grid-row: auto; min-height: 0; }
  .am-bq-lecture { grid-template-columns: minmax(0, 1fr); }
}

.am-actu { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.am-actu-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; }
.am-actu-tete h2 { margin: 0; font-size: clamp(19px, 2.2vw, 25px); }
.am-actu-tete p { margin: 4px 0 0; font-size: 14.5px; }
.am-actu-filtres { display: flex; gap: 8px; }
.am-actu-filtres button { min-height: 44px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 22px; background: var(--surface); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.am-actu-filtres button[aria-pressed="true"] { background: var(--accent); color: var(--surface); }
.am-actu-corps { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.am-actu-corps.is-seul { grid-template-columns: minmax(0, 1fr); }
.am-actu-presse { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.am-actu-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.am-actu-carte { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.am-actu-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12.5px; color: var(--fg-2); }
.am-actu-meta b { color: var(--accent); }
.am-actu-carte h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.am-actu-lire { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--accent); }
.am-actu-lire:hover { text-decoration: underline; }
.am-actu-plus { align-self: flex-start; }
.am-actu-off { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.am-actu-off h3 { margin: 0 0 6px; font-size: 16px; }
.am-actu-doc { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.am-actu-doc small { font-size: 12px; font-weight: 600; color: var(--infl, #8a6a1f); }
.am-actu-doc span { font-size: 14.5px; line-height: 1.4; }
.am-actu-doc em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.am-actu-doc:hover span { text-decoration: underline; }
@media (max-width: 900px) { .am-actu-corps { grid-template-columns: minmax(0, 1fr); } }

/* AM-53 : boussole en nuage de points partout (accueil, onglet Boussole, encart d'une zone), comme dans le point investisseur. */
.am-nuage.is-fixe .am-nuage-pt { cursor: default; }
.am-nuage.is-mini { max-width: 300px; justify-self: start; }
.am-bq-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.am-bq-carte { display: grid; gap: 12px; min-width: 0; }
.am-bq-puces { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.am-bq-puces button { min-height: 32px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--fg); cursor: pointer; }
.am-bq-puces button[aria-pressed="true"] { border-color: var(--am-s2); box-shadow: inset 0 0 0 1px var(--am-s2); }
.am-bq-puces button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-bq-corps .am-bq-lecture { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.am-bq-corps .am-bq-mieux { margin-top: 0; }
.am-bz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .am-bq-corps { grid-template-columns: minmax(0, 1fr); } }

/* AM-60 (02/11/2026) : « L'essentiel » en tête de bulle — verdict, trois chiffres, questions d'épargnant. */
.am-at-essentiel { display: grid; gap: 8px; }
.am-at-verdict { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; line-height: 1.45; color: var(--fg); }
.am-at-verdict.is-bon { --e: var(--am-serein); } .am-at-verdict.is-var { --e: var(--am-neutre); } .am-at-verdict.is-mal { --e: var(--am-peur); }
.am-at-verdict > span:last-child { flex: 1 1 320px; min-width: 0; }
.am-at-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.am-at-cle { display: grid; gap: 2px; text-align: left; border: 1px solid var(--border); border-left: 4px solid var(--e, var(--border)); border-radius: 10px; background: var(--surface); padding: 8px 12px; font: inherit; color: var(--fg); cursor: pointer; min-width: 0; }
.am-at-cle.is-bon { --e: var(--am-serein); } .am-at-cle.is-var { --e: var(--am-neutre); } .am-at-cle.is-mal { --e: var(--am-peur); }
.am-at-cle[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.am-at-cle-nom { font-size: 12.5px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-at-cle b { font-size: 19px; font-variant-numeric: tabular-nums; }
.am-at-cle small { font-size: 11.5px; color: var(--fg-3, var(--fg-2)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-at-questions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.am-at-questions button { border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.am-at-questions button[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 600; }
.am-at-avert { margin: 0; font-size: 11.5px; }
.am-at.is-tel .am-at-questions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.am-at.is-tel .am-at-questions button { white-space: nowrap; }
.am-at.is-tel .am-at-cles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-at.is-tel .am-at-cle { padding: 6px 8px; }
.am-at.is-tel .am-at-cle b { font-size: 16px; }
.am-at-questions > span { flex: none; white-space: nowrap; }
.am-at.is-tel .am-at-cle-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; line-height: 1.25; }
.am-at.is-tel .am-at-cle small { font-size: 10.5px; }
.am-at.is-tel .am-at-verdict { font-size: 14px; }

/* AM-67 (03/11/2026, Thomas : « ça va tellement vers le bas », « trop petit ») ---------------------------------- */
/* Deux colonnes quand la place manque : à gauche la planète en grand puis l'arbre dépliable, à droite le graphique. */
.am-at-corps.avec-planete.is-deux { grid-template-columns: minmax(330px, 34%) minmax(0, 1fr); }
.am-at-corps.is-deux > .am-at-gauche { overflow-y: auto; padding-right: 2px; }
.am-at-corps.is-deux .am-planete.is-bulle { width: 100%; max-width: 430px; align-self: center; }
.am-at-corps.is-deux .am-at-gauche > .am-at-panneau { display: block; }
.am-at-corps.is-deux .am-at-gauche .am-at-liste { overflow: visible; max-height: none; }
.am-at-corps.is-deux > .am-at-graph { min-width: 0; }
@media (max-width: 1000px) { .am-at-corps.avec-planete.is-deux { grid-template-columns: minmax(0, 1fr); } }
/* Trois colonnes (grand écran) : plus de place à la planète. */
.am-at-corps.avec-planete:not(.is-deux):not(.avec-planete-tel) { grid-template-columns: 380px minmax(0, 1fr) 420px; }
/* Arbre en accordéon sur ordinateur. */
.am-at-arbre-tel.is-pc .am-at-nom { -webkit-line-clamp: 2; font-size: 13px; }
.am-at-filtre { margin: 2px 0 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; }
.am-at-filtre:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.am-at-voirplus { margin: 8px 0 2px 30px; align-self: flex-start; padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.am-at-voirplus:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

/* AM-68 (03/11/2026) : indicateurs maîtres en tête de bulle, retrait des séries plus visible. */
.am-at-cle-maitre { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.am-at-cle[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.am-at-x { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0 !important; border-radius: 50%; font-size: 16px !important; }
.am-at-x:hover { background: color-mix(in srgb, var(--am-peur, #b33) 14%, var(--surface)); color: var(--fg) !important; }
.am-at-vider { font-size: 12.5px; font-weight: 600; color: var(--fg-2, var(--fg)); }
.am-at-court { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--am-s1, var(--accent)) 9%, var(--surface)); font-size: 13px; line-height: 1.4; }
.am-at-court button { border: 1px dashed var(--accent); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.am-at-vieux { margin: 2px 0 0; padding: 5px 10px; border-left: 3px solid var(--am-tempete, #b5651d); background: color-mix(in srgb, var(--am-tempete, #b5651d) 9%, var(--surface)); border-radius: 6px; font-size: 12.5px; line-height: 1.35; }

/* AM-69 : portes de rubrique lisibles (nom + indicateurs contenus) et carte du pays au centre de la planète. */
.am-at-questions button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; border-radius: 10px; text-align: left; max-width: 300px; }
.am-at-questions button b { font-weight: 600; }
.am-at-questions button small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.am-at-questions button[aria-current="true"] small { color: var(--surface); opacity: .9; }
.am-pb-carte { display: block; border-radius: 50%; overflow: hidden; }
.am-pb-mer { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.am-pb-voisins { fill: color-mix(in srgb, var(--fg) 7%, var(--surface)); stroke: color-mix(in srgb, var(--fg) 22%, var(--surface)); stroke-width: 2; }
.am-pb-pays { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.am-planete.is-bulle .am-planete-globe:has(.am-pb-carte) { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.am-planete.is-bulle .am-planete-globe:has(.am-pb-carte) ~ .am-pb-centre span { background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: 8px; padding: 2px 8px; }
.am-planete.is-bulle .am-planete-globe:has(.am-pb-carte) ~ .am-pb-centre { transform: translateY(15cqw); }
.am-planete.is-bulle .am-planete-globe.is-carte { left: 21%; top: 21%; width: 58%; }
.am-planete.is-bulle .am-planete-globe.is-carte ~ .am-pb-centre { transform: translateY(18cqw); }
/* AM-70 : carte du monde interactive (zoom fluide) et recherche dans l'arbre. */
.am-cz { position: relative; }
.am-cz-svg { width: 100%; height: auto; aspect-ratio: 1; }
.am-cz-pays { fill: color-mix(in srgb, var(--fg) 8%, var(--surface)); stroke: color-mix(in srgb, var(--fg) 25%, var(--surface)); stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: default; transition: fill .2s; }
.am-cz-pays.is-va { cursor: pointer; }
.am-cz-pays.is-va:hover { fill: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.am-cz-pays.is-on { fill: color-mix(in srgb, var(--accent) 70%, var(--surface)); stroke: var(--surface); }
.am-cz-pays.is-foyer, .am-cz-pays.is-on.is-foyer { fill: var(--accent); cursor: zoom-out; }
.am-cz-pays.is-on:hover { fill: var(--accent); }
.am-cz-svg .am-pb-mer { cursor: zoom-out; }
.am-cz-nom { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.am-at-ailleurs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.am-at-ailleurs button { border: 1px dashed var(--accent); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.am-at-ailleurs button small { color: var(--muted); margin-left: 4px; }
/* AM-71 : une carte par rubrique (chiffre maître + contenu), à la place des cartes + rangée « Rubriques ». */
.am-at-cles.is-rubs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.am-at-cle[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.am-at-cle .am-at-cle-dedans { margin-top: 3px; padding-top: 4px; border-top: 1px dashed var(--border); white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.am-at-cle.is-sans { align-content: start; }
.am-at.is-tel .am-at-cles.is-rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .am-at-cles.is-rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .am-at-cles.is-rubs .am-at-cle-dedans { -webkit-line-clamp: 2; font-size: 10.5px; } }
/* AM-72 : pendant le zoom, pas de traits ni d'effets (dessin plus léger, animation fluide). */
.am-cz-svg.is-anim .am-cz-pays { stroke: none; transition: none; }
.am-cz-svg.is-anim { shape-rendering: optimizeSpeed; }
.am-cz-svg { will-change: contents; }
/* AM-73 : couleur = chiffre (légende), contour = pays regardé / pays de la zone. */
.am-cz-pays.is-on, .am-cz-pays.is-on:hover { fill: color-mix(in srgb, var(--fg) 8%, var(--surface)); stroke: var(--fg); stroke-width: 1.4; }
.am-cz-pays.is-foyer, .am-cz-pays.is-on.is-foyer { fill: color-mix(in srgb, var(--fg) 8%, var(--surface)); stroke: var(--fg); stroke-width: 3.2; cursor: zoom-out; }
.am-cz-pays.is-va:hover { fill: color-mix(in srgb, var(--fg) 20%, var(--surface)); stroke: var(--fg); stroke-width: 1.6; }
.am-cz-pays[style].is-va:hover { filter: brightness(.92); }
.am-cz-svg.is-anim .am-cz-pays.is-foyer { stroke: var(--fg); stroke-width: 3.2; }
.am-cz-legende { margin: 2px auto 8px; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; pointer-events: auto; }
.am-cz-leg-titre { font-weight: 600; }
.am-cz-leg-cases { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 9px; }
.am-cz-leg-case { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.am-cz-leg-case i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.am-cz-leg-case i.is-vide { background: color-mix(in srgb, var(--fg) 8%, var(--surface)); }
.am-cz-leg-case i.is-foyer { background: transparent; border: 2.5px solid var(--fg); }
.am-cz-legende { margin-top: 14px; }
/* AM-74 : chargement d'une bulle sans écran vide : fine barre en haut, la bulle d'avant reste (légèrement atténuée). */
.am-nav { position: relative; }
.am-nav-charge { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; z-index: 5; border-radius: 2px; }
.am-nav-charge::after { content: ''; position: absolute; inset: 0; width: 35%; background: var(--accent); animation: am-charge 0.9s ease-in-out infinite; }
@keyframes am-charge { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.am-nav-corps.is-charge .am-at-graph, .am-nav-corps.is-charge .am-at-essentiel, .am-nav-corps.is-charge .am-at-panneau { opacity: .55; transition: opacity .25s; }
@media (prefers-reduced-motion: reduce) { .am-nav-charge::after { animation: none; width: 100%; opacity: .5; } }
.am-at-attente { opacity: .55; transition: opacity .2s; pointer-events: none; }

/* AM-75 (03/11/2026, Thomas : « on arrête avec le système de rectangle qui encadre chaque partie ? pour un truc plus
   design ») : plus de cadres dans la bulle. Les parties se distinguent par l'espace, la typographie et de fins filets ;
   la sélection par un trait de couleur ou la couleur du texte. Variables de thème seulement (Épure, Nuit et or, Atlas). */
.am-nav .am-nav-ariane { border: 0; background: transparent; padding: 2px 0; border-radius: 0; }
.am-nav .am-nav-retour, .am-nav .am-nav-voisin { border-color: transparent; background: transparent; }
.am-nav .am-nav-retour:hover, .am-nav .am-nav-voisin:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }

/* Rubriques : des colonnes séparées par un filet, pas des cartes. Le point donne la tendance, le trait la sélection. */
.am-at-cles.is-rubs { gap: 0; border-bottom: 1px solid var(--border); }
.am-at .am-at-cles.is-rubs .am-at-cle, .am-at-cles.is-rubs .am-at-cle { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 6px 18px 12px; position: relative; }
.am-at-cles.is-rubs .am-at-cle:first-child { padding-left: 0; }
.am-at-cles.is-rubs .am-at-cle + .am-at-cle::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 14px; width: 1px; background: var(--border); }
.am-at-cles.is-rubs .am-at-cle::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: transparent; transition: background .2s; }
.am-at-cles.is-rubs .am-at-cle:first-child::after { left: 0; }
.am-at-cles.is-rubs .am-at-cle[aria-pressed="true"]::after { background: var(--accent); }
.am-at-cles.is-rubs .am-at-cle:hover::after { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.am-at-cles.is-rubs .am-at-cle[aria-pressed="true"]:hover::after { background: var(--accent); }
.am-at-cles.is-rubs .am-at-cle b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.am-at-cles.is-rubs .am-at-cle .am-at-cle-dedans { border-top: 0; padding-top: 0; margin-top: 4px; }
.am-at-cles.is-rubs .am-at-cle-maitre::after { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-left: 2px; background: var(--e, transparent); }

/* Graphique et panneau : posés sur la page. */
.am-at .am-at-graph, .am-at .am-at-panneau { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.am-at .am-at-graph { padding: 4px 0 0; }
.am-at-titre h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }

/* Outils du graphique : du texte souligné à la sélection, plus de boutons encadrés. */
.am-at-formats button, .am-at-periodes button { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 2px 5px !important; margin-right: 10px; border-bottom: 2px solid transparent !important; color: var(--fg-2, var(--fg)); }
.am-at-formats button[aria-pressed="true"], .am-at-periodes button[aria-pressed="true"] { border-bottom-color: var(--accent) !important; color: var(--accent); font-weight: 600; }
.am-at-formats button.is-off { opacity: .4; }

/* Comparaison : plus de bac gris ni de pointillés. */
.am-at .am-at-series, .am-at-panier { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
.am-at-puces button, .am-at-auto, .am-at-court button { border: 0 !important; background: transparent !important; color: var(--accent); padding: 2px 4px !important; }
.am-at-puces button:hover, .am-at-auto:hover, .am-at-court button:hover { text-decoration: underline; }
.am-at-serie.is-ici { border-color: transparent; background: transparent; padding-left: 0; font-weight: 600; }
.am-at-court { background: transparent; padding: 0 0 0 12px; border-radius: 0; border-left: 2px solid var(--accent); }
.am-src-badge.is-seule { border: 0; background: transparent; padding-left: 0; }

/* Arbre : des lignes séparées par un filet ; le chiffre regardé en couleur, avec un trait à gauche. */
.am-at .am-at-ligne, .am-at .am-at-arbre-tel .am-at-ligne { border: 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.am-at .am-at-ligne:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.am-at .am-at-ligne.is-ici { border-bottom-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.am-at .am-at-ligne.is-ici .am-at-nom { color: var(--accent); font-weight: 600; }
.am-at .am-at-ligne button:last-child { background: transparent; border: 0; color: var(--accent); }
.am-at .am-at-arbre-tel > .am-at-racine { background: transparent; color: var(--fg); padding: 2px 0; border-radius: 0; font-size: 15px; font-weight: 600; }
.am-at .am-at-arbre-tel > .am-at-racine small { color: var(--fg-3, var(--fg-2)); opacity: 1; }
.am-at-filtre { border: 0; border-bottom: 1px solid var(--border-strong, var(--border)); border-radius: 0; background: transparent; padding: 7px 0; }
.am-at-filtre:focus { outline: 0; border-bottom-color: var(--accent); }
.am-at-voirplus { border: 0; background: transparent; color: var(--accent); }

/* Colonne droite ou bas : un seul filet entre le graphique et les indicateurs. */
.am-cz-leg-case i { border-radius: 50%; }
.am-at input.am-at-filtre, .am-at .am-at-arbre-tel input.am-at-filtre { border: 0; border-bottom: 1px solid var(--border-strong, var(--border)); border-radius: 0; background: transparent; box-shadow: none; }
.am-at input.am-at-filtre:focus { border-bottom-color: var(--accent); }
.am-at aside.am-pl { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }

/* AM-76 (03/11) : onglet Entreprises. Pas de cadres : filets, blancs et typographie, comme le reste depuis AM-75. */
.am-en-grille { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
.am-en-liste { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 60px); min-height: 0; }
.am-en-cherche { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--border-strong, var(--border)); border-radius: 0; background: transparent; color: var(--fg); padding: 8px 0; font: inherit; }
.am-en-cherche:focus { outline: 0; border-bottom-color: var(--accent); }
.am-en-filtres, .am-en-periodes { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.am-en-filtres button, .am-en-periodes button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--fg-2); padding: 2px 0; font: inherit; font-size: 13px; cursor: pointer; }
.am-en-filtres.is-zones button { font-size: 12px; }
.am-en-filtres button:hover, .am-en-periodes button:hover { color: var(--fg); }
.am-en-filtres button[aria-pressed="true"], .am-en-periodes button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.am-en-liste ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 200px; }
.am-en-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.am-en-nom { display: block; min-width: 0; width: 100%; text-align: left; border: 0; background: transparent; color: var(--fg); padding: 7px 0; font: inherit; cursor: pointer; }
.am-en-nom span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.am-en-nom small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg-3, var(--fg-2)); font-size: 11.5px; }
.am-en-nom:hover span { color: var(--accent); }
.am-en-nom[aria-current="true"] span, .am-en-liste li.is-pris .am-en-nom span { color: var(--accent); font-weight: 600; }
.am-en-var { color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-en-plus { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); font-size: 17px; line-height: 1; cursor: pointer; }
.am-en-plus:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.am-en-plus:disabled { opacity: .25; cursor: default; }
.am-en-vue { min-width: 0; }
.am-en-puces { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.am-en-puce { display: inline-flex; align-items: baseline; gap: 3px; font-size: 15px; }
.am-en-puce button:first-child { border: 0; background: transparent; color: var(--fg); padding: 0; font: inherit; cursor: pointer; }
.am-en-puce button:first-child:hover { color: var(--accent); }
.am-en-puce.is-ici, .am-en-puce.is-ici button:first-child { font-weight: 650; color: var(--accent); }
.am-en-x { border: 0; background: transparent; color: var(--fg-3, var(--fg-2)); padding: 0 3px; font-size: 15px; cursor: pointer; }
.am-en-x:hover { color: var(--fg); }
.am-en-lien { border: 0; background: transparent; color: var(--accent); padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.am-en-lien:hover { text-decoration: underline; }
.am-en-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 6px; }
.am-en-prix { margin: 0; color: var(--fg-2); font-size: 14px; }
.am-en-prix b { color: var(--fg); font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.am-en-prix small { color: var(--fg-3, var(--fg-2)); font-size: 12.5px; }
.am-en-courbe { min-height: 340px; transition: opacity .15s; }
.am-en-courbe.is-charge { opacity: .55; }
.am-en-note { margin: 8px 0 0; color: var(--fg-3, var(--fg-2)); font-size: 12.5px; }
.am-en-note strong { color: var(--fg); }
.am-en-absent { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.am-en-chiffres { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.am-en-chiffres dt { color: var(--fg-3, var(--fg-2)); font-size: 12px; }
.am-en-chiffres dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg); }
.am-en-comptes { margin-top: 38px; }
.am-en-comptes h3 { margin: 0; font-size: 21px; }
.am-en-comptes header p { margin: 3px 0 18px; color: var(--fg-2); font-size: 13.5px; }
.am-en-comptes header a { color: var(--accent); }
.am-en-piles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.am-en-col { margin: 0; min-width: 0; }
.am-en-col figcaption { margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.am-en-pile { display: flex; flex-direction: column; height: 300px; gap: 2px; }
.am-en-part { flex: 1 1 0; min-height: 3px; display: flex; align-items: center; padding: 0 12px; overflow: hidden; background: color-mix(in srgb, var(--accent) var(--t, 30%), var(--surface, transparent)); color: var(--fg); font-size: 13px; }
.am-en-col.is-passif .am-en-part { background: color-mix(in srgb, var(--fg) var(--t, 20%), var(--surface, transparent)); }
.am-en-col.is-passif .am-en-part.is-propre { background: color-mix(in srgb, var(--accent) var(--t, 60%), var(--surface, transparent)); }
.am-en-part span { display: flex; justify-content: space-between; gap: 10px; width: 100%; white-space: nowrap; overflow: hidden; }
.am-en-part b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.am-en-part i { font-style: normal; font-variant-numeric: tabular-nums; }
.am-en-defile { overflow-x: auto; }
.am-en-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.am-en-table caption { caption-side: top; text-align: left; color: var(--fg-3, var(--fg-2)); font-size: 12.5px; padding-bottom: 6px; }
.am-en-table thead th { text-align: right; color: var(--fg-2); font-weight: 500; font-size: 12.5px; padding: 4px 0 6px 18px; border-bottom: 1px solid var(--border-strong, var(--border)); white-space: nowrap; }
.am-en-table td { text-align: right; padding: 5px 0 5px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--fg); }
.am-en-table tbody th { text-align: left; font-weight: 400; padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--fg); }
.am-en-table tr.am-en-sec th { padding-top: 22px; border-bottom: 1px solid var(--border-strong, var(--border)); font-weight: 650; font-size: 14.5px; }
.am-en-table tr.is-n1 th { padding-left: 14px; color: var(--fg-2); }
.am-en-table tr.is-n1 td { color: var(--fg-2); }
.am-en-table tr.is-n2 th, .am-en-table tr.is-n2 td { font-weight: 650; }
.am-en-table tbody th small { display: block; color: var(--fg-3, var(--fg-2)); font-size: 11.5px; }
.am-en-table sup { color: var(--accent); margin-left: 1px; cursor: help; }
.am-en-rien { color: var(--fg-3, var(--fg-2)); }
.am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .am-en-grille { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .am-en-liste { position: static; max-height: 46vh; }
  .am-en-vue { order: -1; }
  .am-en-piles { grid-template-columns: minmax(0, 1fr); }
  .am-en-pile { height: 240px; }
}
.am-en input.am-en-cherche { border: 0; border-bottom: 1px solid var(--border-strong, var(--border)); border-radius: 0; background: transparent; box-shadow: none; padding: 8px 0; }
.am-en input.am-en-cherche:focus { border-bottom-color: var(--accent); outline: 0; box-shadow: none; }
/* AM-77 : la partie marchés dans les bulles et dans l'onglet Marchés. */
.am-at > .am-en { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.am-en-secteur { margin: 0; color: var(--fg-2); font-size: 13px; }

/* AM-79 (03/11, Thomas : « rend plus sobre, hésite pas à abuser des petits pictos ») : bulles plates et neutres,
   un picto au trait, le chiffre en encre ; aucune couleur sauf celles du globe, qui portent le chiffre (AM-73). */
.am-picto { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; }
.am-orb { background: var(--surface); border-color: var(--border); box-shadow: none; gap: .1cqw; }
.am-orb:hover, .am-orb:focus-visible { box-shadow: 0 4px 12px rgba(0,0,0,.08); border-color: var(--border-strong); }
.am-orb.is-on { border-color: var(--fg-2); }
.am-orb-picto { font-size: 2.4cqw; color: var(--fg-3); margin-bottom: .1cqw; }
.am-orb-theme .am-orb-picto, .am-orb-marches .am-orb-picto { font-size: 1.9cqw; }
.am-orb-nom { font-weight: 500; color: var(--fg-2); font-size: 1.75cqw; }
.am-orb-theme .am-orb-nom, .am-orb-marches .am-orb-nom { font-size: 1.5cqw; }
.am-orb-tend { font-size: 1.25cqw; }
.am-orb-val { color: var(--fg); font-weight: 600; }
.am-orb-tend, .am-orb-tend.is-up, .am-orb-tend.is-down { display: inline-flex; align-items: center; gap: .25cqw; color: var(--fg-3); }
.am-orb-record { top: 9%; right: 16%; font-size: 1.5cqw; color: var(--fg-3); }
.am-planete-orbite { border-color: color-mix(in srgb, var(--fg-3) 18%, transparent); }
.am-planete-globe { animation: none; box-shadow: 0 0 0 1px var(--border); }
/* am-monde porte les couleurs du globe (sans elles le canevas traçait la grille en noir) ; on enlève son cadre. */
.am-planete-globe.am-monde { display: block; padding: 0; background: none; border: 0; border-radius: 50%; }
.am-planete-groupe { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.am-planete-groupe .am-picto { font-size: 13px; }
.am-planete-monde { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.am-planete-monde .am-picto { font-size: 14px; color: var(--fg-3); }
/* Bulles d'indicateurs : le picto au-dessus du titre, le titre garde le reste du cercle (ajusterTitres). */
.am-pb-astre .am-orb-picto { position: absolute; top: 9%; left: 50%; translate: -50% 0; width: 22%; height: 22%; font-size: inherit; margin: 0; }
.am-pb-astre .am-orb-nom, .am-pb-astre.is-serre .am-orb-nom { height: 58%; width: 80%; margin-top: 22%; }
.am-at-cle-maitre .am-picto { font-size: 14px; }
/* Onglets et cartes : le picto devant le mot. */
.am-pc nav button .am-picto { margin-right: 6px; color: var(--fg-3); font-size: 15px; }
.am-pc nav button[aria-current="page"] .am-picto { color: currentColor; }
.am-ret-kicker { display: inline-flex; align-items: center; gap: 6px; }
.am-ret-kicker .am-picto { font-size: 14px; }

/* AM-80 : graphiques d'analyse (stories et résumés) ; une seule couleur, la valeur écrite au bout. */
.am-an-barres { width: 100%; height: auto; display: block; font-size: 10.5px; color: var(--fg-2); }
.am-an-barre { fill: currentColor; opacity: .55; }
.am-an-barre.is-bas { opacity: .3; }
.am-an-zero { stroke: currentColor; opacity: .35; }
.am-an-nom, .am-an-val { fill: currentColor; }
.am-an-nom.is-fr { font-weight: 700; }
.am-an-val { font-variant-numeric: tabular-nums; }
.am-an-barres.is-clair { color: #e6eeec; }
.am-story-titre-g { font-size: 17px; font-weight: 600; line-height: 1.25; }
.am-story-pic { font-size: 44px; color: #b9c8c6; }
.am-story-av { display: inline-grid; place-items: center; color: #fff; }
.am-story-av .am-picto { font-size: 16px; }
.am-sto-pic { font-size: 14px; opacity: .7; margin-bottom: 1px; }
.am-sto.is-analyse .am-sto-anneau { border-style: double; }

/* AM-81 : calendrier des analyses et teaser du lendemain. */
.am-cal { display: grid; gap: 8px; margin: 14px 0 6px; }
.am-cal-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.am-cal-tete h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 600; }
.am-cal-jours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.am-cal-jours button { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg-2); font: inherit; cursor: pointer; }
.am-cal-jours button .am-picto { font-size: 17px; }
.am-cal-jours small { font-size: 10.5px; text-transform: capitalize; color: var(--fg-3); }
.am-cal-jours span { font-size: 10.5px; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.am-cal-jours em { font-style: normal; font-size: 9.5px; font-weight: 600; }
.am-cal-jours .is-jour button { border-color: var(--fg-2); color: var(--fg); }
.am-cal-jours .is-demain button { border-style: dashed; }
.am-cal-jours .is-passe button { color: var(--fg-3); }
.am-cal-jours button:disabled { cursor: default; opacity: .75; }
.am-cal-jours button:not(:disabled):hover { border-color: var(--border-strong); }
.am-cal-teaser { margin: 0; display: flex; gap: 6px; align-items: baseline; font-size: 13px; color: var(--fg-2); }
.am-cal-teaser .am-picto { flex: none; align-self: center; }
.am-cal-teaser b { white-space: nowrap; }

/* AM-83 : choix des sources, dépliable. */
.am-src { margin: 4px 0 10px; font-size: 13px; }
.am-src summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); list-style: none; }
.am-src summary::-webkit-details-marker { display: none; }
.am-src[open] summary { color: var(--fg); }
.am-src-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; margin-top: 8px; }
.am-src fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 3px; align-content: start; }
.am-src legend { font-weight: 600; margin-bottom: 4px; }
.am-src label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.am-src legend label .am-picto { font-size: 14px; }
.am-actu-resume { font-size: 12px; color: var(--fg-2); line-height: 1.35; }
#am-actu-titre { display: inline-flex; align-items: center; gap: 7px; }

/* AM-82 : les trois résumés, document à l'écran puis en PDF. */
.am-res { display: grid; gap: 8px; margin: 14px 0 4px; }
.am-res h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 600; }
.am-res-portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.am-res-portes button { display: grid; gap: 3px; align-content: start; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.am-res-portes button:hover { border-color: var(--border-strong); }
.am-res-portes .am-picto { font-size: 18px; color: var(--fg-3); }
.am-res-portes b { font-size: 13px; font-weight: 600; }
.am-res-portes small { font-size: 11.5px; color: var(--fg-3); line-height: 1.3; }
@media (max-width: 700px) { .am-res-portes { grid-template-columns: 1fr; } }
.am-doc { position: fixed; inset: 0; z-index: 1000; background: var(--bg, #f4f6f5); overflow: auto; }
.am-doc-barre { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.am-doc-types, .am-doc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.am-doc-barre button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.am-doc-barre button[aria-selected="true"], .am-doc-barre button[aria-pressed="true"] { border-color: var(--fg-2); color: var(--fg); font-weight: 600; }
.am-doc-page { max-width: 820px; margin: 24px auto 60px; padding: 36px 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--fg); line-height: 1.5; font-size: 14px; outline: none; }
.am-doc-page.is-edition { box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg-2) 30%, transparent); }
.am-doc-tete h1 { margin: 4px 0 2px; font-size: 26px; letter-spacing: -.01em; }
.am-doc-tete p { margin: 0; }
.am-doc-marque { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.am-doc-sec { border-top: 1px solid var(--border); padding: 12px 0 4px; margin-top: 12px; }
.am-doc-sec summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.am-doc-sec summary .am-picto, .am-doc-sec h3 .am-picto { color: var(--fg-3); }
.am-doc-sec-corps { padding-top: 6px; }
.am-doc-sec h3 { display: flex; align-items: center; gap: 7px; font-size: 14.5px; margin: 14px 0 4px; }
.am-doc-chapo { font-size: 15.5px; }
.am-doc-liste { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.am-doc-liste > li { display: flex; gap: 8px; align-items: baseline; }
.am-doc-liste > li > .am-picto { flex: none; color: var(--fg-3); }
.am-doc-liste > li > span { flex: 1; }
.am-doc-liste.is-brief { list-style: disc; padding-left: 20px; display: block; }
.am-doc-liste.is-brief > li { display: list-item; margin: 3px 0; }
.am-doc-chiffre { display: inline-grid; justify-items: end; padding: 0 2px; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-align: right; white-space: nowrap; }
.am-doc-chiffre b { font-variant-numeric: tabular-nums; }
.am-doc-chiffre small { display: inline-flex; align-items: center; gap: 3px; color: var(--fg-3); font-size: 11px; }
.am-doc-chiffre:hover b { text-decoration: underline; }
.am-doc-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.am-doc-table th { text-align: left; font-weight: 600; color: var(--fg-2); border-bottom: 1px solid var(--border-strong, var(--border)); padding: 5px 6px; }
.am-doc-table td { border-bottom: 1px solid var(--border); padding: 5px 6px; vertical-align: top; }
.am-doc-table td .am-picto { margin-right: 5px; color: var(--fg-3); }
.am-doc-mini { width: 120px; }
.am-doc-graphes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-doc-graphes figure { margin: 0; }
.am-doc-graphes figcaption { font-size: 11px; color: var(--fg-3); }
.am-doc-nuage { max-width: 300px; margin: 6px auto; }
.am-doc-pied { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11.5px; }
@media (max-width: 700px) { .am-doc-page { padding: 20px 16px; margin: 0; border-radius: 0; } .am-doc-graphes { grid-template-columns: 1fr; } }
html.am-doc-ouvert body { overflow: hidden; }
@media print {
  @page { size: A4; margin: 14mm; }
  html.am-doc-ouvert body { overflow: visible; }
  html.am-doc-ouvert body * { visibility: hidden; }
  html.am-doc-ouvert .am-doc, html.am-doc-ouvert .am-doc * { visibility: visible; }
  html.am-doc-ouvert .am-doc { position: absolute; inset: 0 auto auto 0; width: 100%; overflow: visible; background: #fff; }
  html.am-doc-ouvert .am-doc-barre { display: none; }
  html.am-doc-ouvert .am-doc-page { margin: 0; padding: 0; border: 0; max-width: none; box-shadow: none; color: #111; }
  html.am-doc-ouvert .am-doc-sec { break-inside: auto; }
  html.am-doc-ouvert .am-doc-analyse, html.am-doc-ouvert .am-doc-table tr, html.am-doc-ouvert figure { break-inside: avoid; }
  html.am-doc-ouvert .am-doc-sec > summary { list-style: none; }
}
/* Pictos sur les titres des pages restantes. */
.am-pc-section h2, .am-brief2 h3, .am-brief-ecran-tete h2 { display: flex; align-items: center; gap: 7px; }
/* AM-79 fin : pictos devant les titres de toutes les pages et dans la barre du téléphone. */
.am-tool h2 > .am-picto, .am-tool h3 > .am-picto { margin-right: 7px; color: var(--fg-3); vertical-align: -.12em; }
.am-tabbar .am-tab-pic { width: 22px; height: 22px; }
/* AM-84 : planète centrée, bulles égales, drapeau ou picto + nom. */
.am-orb.is-sobre { gap: .5cqw; padding: .8cqw; }
.am-orb.is-sobre .am-orb-picto { font-size: 3.2cqw; width: 3.2cqw; height: 3.2cqw; margin: 0; }
.am-orb.is-sobre .am-drapeau.am-orb-picto { width: 4.2cqw; height: 2.8cqw; border-radius: 2px; }
.am-orb.is-sobre .am-orb-nom { font-size: 1.55cqw; font-weight: 600; color: var(--fg); line-height: 1.12; max-width: 88%; -webkit-line-clamp: 2; }
.am-planete .am-planete-orbite { inset: 9.5%; }
.am-planete-globe { left: 27%; top: 27%; width: 46%; }
.am-planete-groupe, .am-planete-groupe.is-zone, .am-planete-groupe.is-theme, .am-planete-groupe.is-marches { right: auto; translate: -50% -50%; transform: none; font-size: 1.15cqw; white-space: nowrap; background: color-mix(in srgb, var(--surface) 80%, transparent); padding: .2cqw .6cqw; border-radius: 999px; }
.am-drapeau { display: inline-block; flex: none; }

/* AM-84 : calendrier, cases toutes identiques et centrées. */
.am-cal-jours { grid-auto-rows: 1fr; }
.am-cal-jours li { display: flex; }
.am-cal-jours button { height: 100%; min-height: 84px; grid-template-rows: auto 20px auto 12px; align-content: center; align-items: center; }
.am-cal-jours em:empty { display: none; }
.am-cal-jours span { min-height: 2.3em; display: flex; align-items: center; justify-content: center; -webkit-line-clamp: unset; }

/* AM-84 : bloc Articles avec interrupteur Presse / Institutionnels. */
.am-art { display: grid; gap: 8px; margin: 14px 0 4px; }
.am-art-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.am-art-tete h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 600; }
.am-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.am-switch b { font-weight: 500; }
.am-switch b.is-on { color: var(--fg); font-weight: 600; }
.am-switch i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong, #c9d0cf); transition: background .2s; }
.am-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: translate .2s; }
.am-switch[aria-checked="true"] i::after { translate: 14px 0; }
.am-switch:focus-visible { outline: 2px solid var(--fg-2); outline-offset: 3px; border-radius: 6px; }
.am-art-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.am-art-liste li a { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.am-art-liste li a:hover b { text-decoration: underline; }
.am-art-liste .am-picto { grid-row: span 2; color: var(--fg-3); font-size: 16px; margin-top: 2px; }
.am-art-liste b { font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.am-art-liste small { color: var(--fg-3); font-size: 11.5px; }
.am-art-liste .am-art-res { grid-column: 2; font-size: 12px; color: var(--fg-2); line-height: 1.35; }
.am-art-plus { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .am-switch i, .am-switch i::after { transition: none; } }
/* AM-84 : sommaire et chapitres numérotés des résumés. */
.am-doc-sommaire { margin: 14px 0 4px; padding: 12px 16px; background: color-mix(in srgb, var(--fg-3) 6%, transparent); border-radius: 8px; }
.am-doc-sommaire b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.am-doc-sommaire ol { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.am-doc-sommaire button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 13px; padding: 2px 0; cursor: pointer; text-align: left; }
.am-doc-sommaire button:hover { text-decoration: underline; }
.am-doc-sommaire button span { color: var(--fg-3); min-width: 1.4em; }
.am-doc-sommaire .am-picto { color: var(--fg-3); }
.am-doc-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong, var(--border)); font-size: 12px; font-weight: 600; color: var(--fg-2); }
.am-doc-sec { scroll-margin-top: 70px; }
@media (max-width: 700px) { .am-doc-sommaire ol { columns: 1; } }
@media print { html.am-doc-ouvert .am-doc-sommaire button { color: #111; } }
.am-orb.is-sobre .am-orb-nom { hyphens: manual; overflow-wrap: normal; word-break: keep-all; font-size: 1.4cqw; max-width: 94%; }
.am-planete-groupe, .am-planete-groupe.is-zone, .am-planete-groupe.is-theme, .am-planete-groupe.is-marches { font-size: 1.05cqw; z-index: 3; }
/* AM-85 : familles délimitées (arc pointillé de couleur, trait entre familles), bulles regroupées, disque sans carte. */
.am-planete { --am-fam-zone: #2f6f8f; --am-fam-theme: #9a6b2f; --am-fam-marches: #5d6b3a; }
.am-fams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.am-fam path { fill: none; stroke-width: .35; stroke-dasharray: .9 1.1; stroke-linecap: round; }
.am-fam.is-zone path { stroke: var(--am-fam-zone); } .am-fam.is-theme path { stroke: var(--am-fam-theme); } .am-fam.is-marches path { stroke: var(--am-fam-marches); }
.am-fam path.am-fam-coupe { stroke: var(--fg-3); stroke-width: .25; opacity: .55; }
.am-orb.is-sobre.am-orb-zone { border-color: color-mix(in srgb, var(--am-fam-zone) 45%, var(--border)); }
.am-orb.is-sobre.am-orb-theme { border-color: color-mix(in srgb, var(--am-fam-theme) 45%, var(--border)); }
.am-orb.is-sobre.am-orb-marches { border-color: color-mix(in srgb, var(--am-fam-marches) 45%, var(--border)); }
.am-orb.is-sobre.am-orb-zone .am-orb-picto { color: var(--am-fam-zone); } .am-orb.is-sobre.am-orb-theme .am-orb-picto { color: var(--am-fam-theme); } .am-orb.is-sobre.am-orb-marches .am-orb-picto { color: var(--am-fam-marches); }
.am-planete-groupe.is-zone { color: var(--am-fam-zone); } .am-planete-groupe.is-theme { color: var(--am-fam-theme); } .am-planete-groupe.is-marches { color: var(--am-fam-marches); }
.am-orb.is-sobre .am-orb-picto { font-size: 3.6cqw; width: 3.6cqw; height: 3.6cqw; }
.am-orb.is-sobre .am-drapeau.am-orb-picto { width: 4.8cqw; height: 3.2cqw; }
.am-orb.is-sobre .am-orb-nom { font-size: 1.6cqw; }
.am-orb-nb { font-size: 1.1cqw; color: var(--fg-3); }
.am-orb.is-groupe { border-style: dashed; }
.am-orb-menu { position: absolute; z-index: 6; display: grid; gap: 2px; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.am-orb-menu button { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.am-orb-menu button:hover, .am-orb-menu button:focus-visible { background: color-mix(in srgb, var(--fg-3) 10%, transparent); }
.am-orb-menu small { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-planete-globe.is-disque { border-radius: 50%; }
.am-pb-disque { aspect-ratio: 1; width: 100%; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--fg-3) 7%, var(--surface)); border: 1px dashed var(--border-strong, var(--border)); }
.am-pb-disque .am-picto { width: 30%; height: 30%; color: var(--fg-3); }
.am-planete.is-bulle .am-planete-globe.is-disque ~ .am-pb-centre { transform: translate(-50%, 70%); max-width: 40%; }
.am-planete.is-bulle .am-planete-globe.is-disque ~ .am-pb-centre span { font-size: 3.4cqw; }
.am-pb-disque .am-picto { translate: 0 -25%; }
.am-planete.is-bulle .am-planete-globe.is-carte ~ .am-pb-centre span { font-size: 3cqw; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .am-planete { --am-fam-zone: #7fb3cf; --am-fam-theme: #d3a467; --am-fam-marches: #a9b97a; } }
:root[data-theme="dark"] .am-planete { --am-fam-zone: #7fb3cf; --am-fam-theme: #d3a467; --am-fam-marches: #a9b97a; }
.am-orb-menu button.is-en { border-top: 1px dashed var(--border); border-radius: 0 0 8px 8px; margin-top: 2px; }
/* AM-87 : l'actualité dans un seul dépliant. */
.am-art { border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; background: var(--surface); }
.am-art[open] { padding-bottom: 10px; }
.am-art-som { display: flex; align-items: center; gap: 8px; padding: 11px 0; cursor: pointer; list-style: none; }
.am-art-som::-webkit-details-marker { display: none; }
.am-art-som b { font-size: 15px; font-weight: 600; }
.am-art-som small { color: var(--fg-3); font-size: 12px; flex: 1; }
.am-art-chev { color: var(--fg-3); transition: rotate .2s; }
.am-art[open] .am-art-chev { rotate: 180deg; }
.am-art-tete { justify-content: flex-end; }
/* AM-88 : stories sans chiffres, picto centré ; actualité en panneau flottant en haut à droite. */
.am-sto-in.is-pic { display: grid; place-items: center; width: 100%; height: 100%; }
.am-sto-in.is-pic .am-sto-pic { font-size: 26px; width: 26px; height: 26px; opacity: .9; margin: 0; }
.am-sto-in.is-pic .am-drapeau.am-sto-pic { width: 30px; height: 20px; }
.am-actu-btn { display: inline-flex; align-items: center; gap: 6px; }
.am-actu-btn small { font-size: 11px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--fg-3) 14%, transparent); color: var(--fg-2); }
.am-actu-btn[aria-expanded="true"] { border-color: var(--fg-2); }
.am-actu-voile { position: fixed; inset: 0; z-index: 1099; background: rgba(10, 16, 17, .12); }
.am-actu-panneau { position: fixed; z-index: 1100; top: 76px; right: 16px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow: auto; padding: 4px 14px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); animation: am-actu-entre .2s ease-out both; }
@keyframes am-actu-entre { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .am-actu-panneau { animation: none; } }
.am-actu-panneau .am-art { border: 0; padding: 0; background: none; margin: 0; }
.am-art-som { cursor: default; }
.am-art-x { margin-left: auto; border: 0; background: none; color: var(--fg-3); cursor: pointer; padding: 4px; font-size: 16px; }
.am-art-x:hover { color: var(--fg); }
.am-social-tete .am-actu-btn { margin-left: auto; }
@media (max-width: 1500px) { .am-pc-droite .am-actu-btn-txt { display: none; } }
.am-actu-calque { position: static; display: contents; }

/* AM-96 (04/11, Thomas : « mettre plus en valeur, pour comprendre que c'est le premier bouton sur lequel cliquer si je
   veux analyser ») : la rangée des thèmes devient une rangée de vrais boutons, annoncée par un titre, avec « Analyser → ». */
.am-at-cles-titre { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.am-at-cles-titre .am-picto { font-size: 14px; }
.am-at-cles.is-rubs { gap: 10px; border-bottom: 0; }
.am-at .am-at-cles.is-rubs .am-at-cle, .am-at-cles.is-rubs .am-at-cle, .am-at-cles.is-rubs .am-at-cle:first-child {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 12px; padding: 10px 14px 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface)); box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.am-at-cles.is-rubs .am-at-cle + .am-at-cle::before, .am-at-cles.is-rubs .am-at-cle::after { display: none; }
.am-at-cles.is-rubs .am-at-cle:hover { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.am-at-cles.is-rubs .am-at-cle[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.am-at-cles.is-rubs .am-at-cle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-at-cle-go { margin-top: 6px; justify-self: start; font-size: 12px; font-weight: 700; color: var(--accent); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.am-at-cle:hover .am-at-cle-go, .am-at-cle[aria-pressed="true"] .am-at-cle-go { background: var(--accent); color: var(--surface); }

/* AM-98 (04/11) : risque géopolitique par région + faits datés (bulle Géopolitique). */
.am-geo { display: grid; gap: 12px; margin: 10px 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-geo-tete h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; }
.am-geo-tete p { margin: 2px 0 0; font-size: 12.5px; }
.am-geo-aide { text-decoration: underline dotted; cursor: help; }
.am-geo-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 8px; }
.am-geo-zone { --g: var(--border); display: grid; gap: 3px; text-align: left; font: inherit; color: var(--fg); cursor: pointer; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); border-left: 4px solid var(--g); background: color-mix(in srgb, var(--g) 6%, var(--surface)); transition: box-shadow .15s, transform .15s; }
.am-geo-zone:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.am-geo-zone[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.am-geo-zone.is-calme, .am-geo-detail li.is-calme { --g: var(--am-serein); }
.am-geo-zone.is-tendu, .am-geo-detail li.is-tendu { --g: var(--am-neutre); }
.am-geo-zone.is-eleve, .am-geo-detail li.is-eleve { --g: color-mix(in srgb, var(--am-peur) 70%, var(--am-neutre)); }
.am-geo-zone.is-extreme, .am-geo-detail li.is-extreme { --g: var(--am-peur); }
.am-geo-nom { font-size: 12.5px; font-weight: 700; color: var(--fg-2); }
.am-geo-score b { font-size: 26px; font-variant-numeric: tabular-nums; }
.am-geo-score small { margin-left: 4px; font-size: 12px; color: var(--fg-2); }
.am-geo-jauge, .am-geo-cbar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; }
.am-geo-jauge i, .am-geo-cbar i { display: block; height: 100%; background: var(--g); border-radius: 3px; }
.am-geo-an { font-size: 11.5px; color: var(--fg-2); }
.am-geo-courbe { margin-top: 2px; }
.am-geo-courbe polyline { fill: none; stroke: var(--g); stroke-width: 1.6; }
.am-geo-courbe .am-geo-seuil { stroke: var(--border); stroke-dasharray: 2 2; }
.am-geo-detail h4, .am-geo-faits h4 { margin: 0 0 6px; font-size: 13.5px; }
.am-geo-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.am-geo-detail li { --g: var(--border); display: grid; grid-template-columns: 110px minmax(120px, 1fr) 120px 32px; align-items: center; gap: 4px 10px; font-size: 13px; }
.am-geo-detail li small { grid-column: 2 / -1; color: var(--fg-2); font-size: 12px; }
.am-geo-genre { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-2); }
.am-geo-faits ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 8px; }
.am-geo-faits li { position: relative; display: grid; gap: 1px; font-size: 13px; }
.am-geo-faits li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.am-geo-faits li.is-chiffre::before { background: var(--am-neutre); }
.am-geo-faits time { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.am-geo-faits small { font-size: 11.5px; color: var(--fg-2); }
@media (max-width: 640px) { .am-geo-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .am-geo-detail li { grid-template-columns: 1fr 40px; } .am-geo-detail li .am-geo-cbar, .am-geo-genre { display: none; } .am-geo-detail li small { grid-column: 1 / -1; } }
/* AM-99 (04/11) : alertes du score géopolitique. */
.am-geo-alerte { justify-self: start; font-size: 11px; font-weight: 700; color: #fff; background: var(--am-peur); padding: 1px 8px; border-radius: 999px; }
.am-geo-faits li.is-alerte::before { background: var(--am-peur); box-shadow: 0 0 0 3px color-mix(in srgb, var(--am-peur) 25%, transparent); }
.am-geo-faits li.is-alerte span { font-weight: 600; }

/* AM-100 (04/11) : pétrole et détroits (bulle Énergie). */
.am-pet { display: grid; gap: 12px; margin: 10px 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-pet h4 { margin: 0; font-size: 13.5px; } .am-pet h4 small { font-weight: 400; }
.am-pet-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.am-pet-chiffre { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.am-pet-chiffre > span { font-size: 12px; font-weight: 700; color: var(--fg-2); text-transform: uppercase; letter-spacing: .04em; }
.am-pet-chiffre b { font-size: 22px; font-variant-numeric: tabular-nums; } .am-pet-chiffre b small { font-size: 12px; font-weight: 400; color: var(--fg-2); }
.am-pet-chiffre > small { font-size: 12px; color: var(--fg-2); }
.am-pet-detroits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.am-pet-detroits li { --c: var(--border); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--c); }
.am-pet-detroits li.is-coupe { --c: var(--am-peur); background: color-mix(in srgb, var(--am-peur) 7%, var(--surface)); }
.am-pet-detroits li.is-baisse { --c: var(--am-neutre); } .am-pet-detroits li.is-hausse { --c: var(--accent); } .am-pet-detroits li.is-normal { --c: var(--am-serein); }
.am-pet-nom { font-size: 12.5px; font-weight: 700; } .am-pet-detroits b { font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.am-pet-var { font-size: 12px; color: var(--fg-2); } .am-pet-detroits li.is-coupe .am-pet-var { color: var(--am-peur); font-weight: 700; }
.am-pet-mini { justify-self: end; } .am-pet-mini polyline { fill: none; stroke: var(--c); stroke-width: 1.5; }
.am-pet-detroits small { grid-column: 1 / -1; font-size: 11.5px; color: var(--fg-2); }
.am-pet-duo { margin: 0; } .am-pet-duo figcaption { font-size: 12px; color: var(--fg-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.am-pet-duo svg { width: 100%; height: auto; } .am-pet-duo text { font-size: 11px; fill: var(--fg-2); }
.am-pet-cle { display: inline-block; width: 14px; height: 3px; border-radius: 2px; } .am-pet-cle.is-o { background: var(--accent); } .am-pet-cle.is-b { background: var(--am-peur); margin-left: 8px; }
.am-pet-l { fill: none; stroke-width: 2; } .am-pet-l.is-o { stroke: var(--accent); } .am-pet-l.is-b { stroke: var(--am-peur); }
.am-pet-grille { stroke: var(--border); stroke-dasharray: 2 3; } .am-pet-duo text.is-o { fill: var(--accent); } .am-pet-duo text.is-b { fill: var(--am-peur); }
.am-pet-duo svg { max-width: 760px; display: block; }
.am-pet-detroits { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.am-pet-detroits li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.am-pet-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-pet-var { white-space: nowrap; }

/* AM-100 (04/11) : Ormuz et Brent en deux panneaux alignés, un axe chacun. */
.am-pet-duo { display: grid; gap: 4px; margin: 0; }
.am-pet-panneau p { margin: 0; font-size: 13px; }
.am-pet-pt.is-o { fill: var(--accent); stroke: var(--surface); stroke-width: 2; } .am-pet-pt.is-b { fill: var(--am-peur); stroke: var(--surface); stroke-width: 2; }

/* AM-101 (04/11) : prévisions contre réalité. */
.am-bil { display: grid; gap: 12px; margin: 16px 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-bil-filtre { display: flex; flex-wrap: wrap; gap: 6px; }
.am-bil-filtre button { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-bil-filtre button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.am-bil-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.am-bil-carte { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.am-bil-carte h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.am-bil-verdict { margin: 0; font-size: 14px; }
.am-bil-carte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.am-bil-carte li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 56px; align-items: center; gap: 8px; font-size: 13px; }
.am-bil-carte li i { display: block; height: 8px; }
.am-bil-carte li em { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; }
.am-bil-carte li b { text-align: right; font-variant-numeric: tabular-nums; }
.am-bil-carte small { font-size: 12px; }
.am-bil-prudence { margin: 0; font-size: 12.5px; color: var(--fg-2); }
.am-bil-detail { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.am-bil-choix { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.am-bil-choix select { margin-left: 4px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--fg); font: inherit; }
.am-bil-reel { margin: 0; font-size: 14px; } .am-bil-reel small { display: block; font-size: 12px; }
.am-bil-table { overflow-x: auto; }
.am-bil-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.am-bil-table th, .am-bil-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.am-bil-table thead th { font-size: 12px; color: var(--fg-2); }
.am-bil-table tbody th { font-weight: 500; min-width: 150px; }
.am-bil-table td { min-width: 130px; font-variant-numeric: tabular-nums; }
.am-bil-table td span { color: var(--fg-2); } .am-bil-table td small { display: block; font-size: 11.5px; }
.am-bil-courbe { margin: 6px 0 0; display: grid; gap: 6px; }
.am-bil-courbe figcaption { display: grid; gap: 4px; font-size: 13px; }
.am-bil-legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--fg-2); }
.am-bil-legende span { display: inline-flex; align-items: center; gap: 5px; }
.am-bil-legende i { display: inline-block; width: 16px; height: 0; border-top: 2px solid; }
.am-bil-legende i.is-reel { border-color: var(--am-s1); } .am-bil-legende i.is-prevu { border-color: var(--am-s2); border-top-style: dashed; }
.am-bil-plot { position: relative; max-width: 760px; }
.am-bil-plot svg { display: block; width: 100%; height: auto; }
.am-bil-l { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.am-bil-l.is-reel { stroke: var(--am-s1); } .am-bil-l.is-prevu { stroke: var(--am-s2); stroke-dasharray: 5 4; }
.am-bil-pt { stroke: var(--surface); stroke-width: 2; } .am-bil-pt.is-reel { fill: var(--am-s1); } .am-bil-pt.is-prevu { fill: var(--am-s2); }
.am-bil-zero { stroke: var(--fg-3); stroke-width: 1; }
.am-bil-croix { stroke: var(--fg-3); stroke-width: 1; }
.am-bil-et { font-size: 12px; fill: var(--fg-2); }
.am-bil-bulle { position: absolute; top: 8px; transform: translateX(-50%); padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.am-bil-pire { margin: 0; font-size: 12.5px; }

/* AM-104 (04/11) : en « Les deux », le graphique ne doit pas déborder sur le tableau (grille intérieure sans minimum). */
.am-comp-familles { grid-template-columns: minmax(0, 1fr); }
.am-comp-famille { min-width: 0; }
/* La bulle dit le nom complet : deux séries voisines ne se distinguent souvent que par la fin de leur nom. */
.am-bulle-nom { white-space: normal; overflow: visible; text-overflow: clip; }
.am-comp-annees { display: block; width: 100%; height: auto; max-width: 900px; }
/* AM-103 : légende trait plein / pointillés (l'identité ne repose pas sur la seule couleur). */
.am-at-legtrait { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--fg-2); margin: 0 0 6px; }
.am-at-legtrait span { display: inline-flex; align-items: center; gap: 7px; }
/* AM-109 : venir de l'arbre ne doit pas laisser le titre sous la barre de recherche collante. */
#am-en-titre, #am-baro-titre { scroll-margin-top: 110px; }

/* AM-111 (04/11/2026) : rubrique « Thématiques » — bulles des huit thèmes (Thematiques.tsx). Couleurs de la palette
   données de la charte (une par thème), version claire en mode sombre. */
.am-them { --t-conflits: #66231f; --t-ia: #6e6a8e; --t-emploi: #315344; --t-dette_fr: #527c9b; --t-crise: #a66f4e;
  --t-inflation: #b8893f; --t-croissance: #72988a; --t-taux: #454a44; --t-ancien: #a3abaa;
  display: grid; gap: 18px; min-width: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .am-them { --t-conflits: #c27b72; --t-ia: #a9a5cf; --t-emploi: #85c494; --t-dette_fr: #8fb0cc;
    --t-crise: #cf9b7c; --t-inflation: #d4a85c; --t-croissance: #9cc2b3; --t-taux: #b3b8b1; --t-ancien: #5e6b6a; }
}
:root[data-theme="dark"] .am-them { --t-conflits: #c27b72; --t-ia: #a9a5cf; --t-emploi: #85c494; --t-dette_fr: #8fb0cc;
  --t-crise: #cf9b7c; --t-inflation: #d4a85c; --t-croissance: #9cc2b3; --t-taux: #b3b8b1; --t-ancien: #5e6b6a; }
.am-them .t-conflits { --tc: var(--t-conflits); } .am-them .t-ia { --tc: var(--t-ia); } .am-them .t-emploi { --tc: var(--t-emploi); }
.am-them .t-dette_fr { --tc: var(--t-dette_fr); } .am-them .t-crise { --tc: var(--t-crise); } .am-them .t-inflation { --tc: var(--t-inflation); }
.am-them .t-croissance { --tc: var(--t-croissance); } .am-them .t-taux { --tc: var(--t-taux); }
.am-them-tete { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; }
.am-them-tete h2 { margin: 0 0 4px; }
.am-them-tete p { margin: 0; max-width: 72ch; }
.am-them-chiffres { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.am-them-chiffres div { display: flex; flex-direction: column-reverse; }
.am-them-chiffres dt { font-size: 12px; color: var(--fg-3, var(--muted)); }
.am-them-chiffres dd { margin: 0; font: 500 22px/1.1 var(--font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; }
.am-them-carte { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; scroll-margin-top: 80px; }
.am-them.is-tel .am-them-carte, .am-them.is-tel .am-them-tete { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .am-them-carte { grid-template-columns: minmax(0, 1fr); } }
.am-them-scene { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 0; }
.am-them-outils { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.am-them-outils input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--fg); }
.am-them-fil { font-size: 13px; color: var(--fg-3, var(--muted)); padding: 8px 12px 0; min-height: 30px; }
.am-them-fil button { all: unset; color: var(--accent); cursor: pointer; }
.am-them-fil button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-them-svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 780px; cursor: pointer; }
.am-them-svg circle { fill: var(--tc, var(--accent)); stroke: var(--tc, var(--accent)); stroke-width: 0; }
.am-them-svg circle.racine { fill: var(--surface); stroke: var(--border-strong, var(--border)); stroke-width: 1.5; }
.am-them-svg circle.grp { fill-opacity: .12; stroke-opacity: .5; stroke-width: .8; }
.am-them-svg circle.grp.n1 { fill-opacity: .09; stroke-width: 1.5; }
.am-them-svg circle.ind { fill-opacity: .85; }
.am-them-svg circle.ind.ancien { fill: var(--t-ancien); fill-opacity: .6; }
.am-them-svg circle.ind.calc { stroke: var(--fg); stroke-width: 1.4; stroke-dasharray: 2 2; }
.am-them-svg circle.manque { fill: var(--surface); stroke: var(--fg-3, var(--muted)); stroke-width: 1.2; stroke-dasharray: 4 3; }
.am-them-svg circle.manque-grp { fill: transparent; stroke: var(--fg-3, var(--muted)); stroke-width: 1.2; stroke-dasharray: 4 3; }
.am-them-svg circle.choisi { stroke: var(--fg); stroke-width: 2.5; stroke-dasharray: none; }
.am-them-svg circle.efface { fill-opacity: .05; }
.am-them-svg circle.ind.efface { fill-opacity: .12; }
.am-them-svg circle.trouve { fill-opacity: 1; stroke: var(--fg); stroke-width: 2; }
.am-them-svg circle:hover { stroke: var(--fg); stroke-width: 1.5; }
.am-them-noms text { pointer-events: none; font-weight: 500; paint-order: stroke; stroke-linejoin: round; }
.am-them-noms text.grp { fill: var(--fg); stroke: var(--surface); stroke-width: 3.5px; stroke-opacity: .85; }
.am-them-noms text.theme { font-family: var(--font-display, Georgia, serif); font-weight: 600; }
.am-them-noms text.texte { fill: var(--fg); }
.am-them-noms text.clair { fill: #fff; }
.am-them-noms text.fonce { fill: #17262a; }
.am-them-noms .n2 { font-family: var(--font-mono, ui-monospace, Menlo, monospace); opacity: .9; }
.am-them-noms text.grp .n2 { fill: var(--fg-3, var(--muted)); }
.am-them-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-3, var(--muted)); }
.am-them-legende i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: var(--tc); }
.am-them-legende i.ancien { background: var(--t-ancien); }
.am-them-legende i.calc { background: transparent; border: 1.5px dashed var(--fg); }
.am-them-legende i.manque { background: transparent; border: 1.5px dashed var(--fg-3, var(--muted)); }
.am-them-panneau { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; position: sticky; top: 12px; min-width: 0; }
.am-them.is-tel .am-them-panneau { position: static; }
@media (max-width: 900px) { .am-them-panneau { position: static; } }
.am-them-panneau h3 { margin: 4px 0 8px; }
.am-them-panneau p { margin: 0 0 8px; }
.am-them-sur { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.am-them-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.am-them-pastilles span { font-size: 11.5px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg-3, var(--muted)); white-space: nowrap; }
.am-them-pastilles .frais { color: #367a59; border-color: currentColor; }
.am-them-pastilles .ancien { color: #b78328; border-color: currentColor; }
.am-them-pastilles .calc { color: var(--accent); border-color: currentColor; }
.am-them-valeur { text-align: left; font: 500 30px/1.1 var(--font-mono, ui-monospace, Menlo, monospace); margin: 10px 0 2px; }
.am-them-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13px; margin: 12px 0 0; }
.am-them-kv dt { color: var(--fg-3, var(--muted)); }
.am-them-kv dd { margin: 0; overflow-wrap: anywhere; }
.am-them-ouvrir { margin-top: 14px; width: 100%; }
.am-them-courbe { margin-top: 10px; }
.am-them-courbe line { stroke: var(--border); stroke-width: 1; }
.am-them-courbe .aire { fill: var(--accent); opacity: .12; }
.am-them-courbe .trait { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.am-them-courbe .point { fill: var(--accent); }
.am-them-courbe text { font: 10px var(--font-mono, ui-monospace, Menlo, monospace); fill: var(--fg-3, var(--muted)); }
.am-them-liste { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 440px; overflow: auto; }
.am-them-liste button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.am-them-liste button:hover, .am-them-liste button:focus-visible { background: var(--accent-soft); }
.am-them-liste button span:last-child { color: var(--fg-3, var(--muted)); font-family: var(--font-mono, ui-monospace, Menlo, monospace); white-space: nowrap; }
.am-them-bloc h3 { margin: 8px 0 4px; }
.am-them-bloc > p { margin: 0 0 12px; max-width: 80ch; }
.am-them-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.am-them-scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.am-them-theme, .am-them-scen { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 12px; min-width: 0; }
.am-them-theme { border-top: 4px solid var(--tc); }
.am-them-theme .tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.am-them-theme h4, .am-them-scen h4 { margin: 0; font-size: 16px; }
.am-them-scen p { margin: 6px 0 0; font-size: 13.5px; }
.am-them-tab { overflow-x: auto; margin-top: 10px; }
.am-them-tab table { border-collapse: collapse; width: 100%; font-size: 13px; }
.am-them-tab th { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3, var(--muted)); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.am-them-tab td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.am-them-tab tr { cursor: pointer; }
.am-them-tab tbody tr:hover td, .am-them-tab tbody tr:focus-visible td { background: var(--accent-soft); }
.am-them-tab .r { text-align: right; }
.am-them .num { font-variant-numeric: tabular-nums; text-align: inherit; }
.am-them-tab td.r { text-align: right; }
.am-them-kv dd.num { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 12px; }
.am-them .haut { color: #8b3932; } .am-them .bas { color: #477da5; } .am-them .egal { color: var(--fg-3, var(--muted)); }
.am-them details { margin-top: 10px; }
.am-them summary { cursor: pointer; font-weight: 500; font-size: 13.5px; }
.am-them-manque { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.am-them-methode { font-size: 12.5px; max-width: 95ch; margin: 0; }

/* AM-112 (04/11/2026) : Thématiques en « Présentation » façon Prezi (Presentation.tsx). Le fond vert et la page
   blanche reprennent la présentation Macro de Thomas : ils restent les mêmes en mode sombre (c'est un support). */
.am-them-carte[hidden] { display: none; }
.am-them-modes { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; justify-self: start; background: var(--surface); }
.am-them-modes button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font: inherit; color: var(--fg-2, inherit); cursor: pointer; }
.am-them-modes button[aria-selected="true"] { background: #1D6B66; color: #fff; }
.am-them-modes button:focus-visible { outline: 2px solid #1D6B66; outline-offset: 2px; }
.am-prez { --or: #a8875a; --vert: #1D6B66; position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden;
  background: #141a12; container-type: inline-size; outline: none; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.am-prez.is-tel { aspect-ratio: 9 / 15; }
.am-prez:focus-visible { box-shadow: 0 0 0 3px var(--or); }
.am-prez-monde { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.am-prez-trait { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: .92; }
.am-prez-centre circle { fill: #fff; }
.am-prez-centre .t1 { font: 700 76px/1 var(--font-sans, system-ui, sans-serif); fill: #141a12; letter-spacing: -.01em; }
.am-prez-centre .t2 { font: 400 40px/1 var(--font-sans, system-ui, sans-serif); fill: #141a12; letter-spacing: .02em; }
.am-prez-bulle { cursor: pointer; outline: none; }
.am-prez-bulle circle { fill: #fff; transition: transform .25s ease; transform-box: fill-box; transform-origin: center; }
.am-prez-bulle:hover circle, .am-prez-bulle:focus-visible circle { transform: scale(1.06); }
.am-prez-bulle:focus-visible circle { stroke: var(--or); stroke-width: 5; }
.am-prez-bulle .nom { font: 500 21px/1 var(--font-sans, system-ui, sans-serif); fill: #1c1c1c; pointer-events: none; }
.am-prez-bulle .picto, .am-prez-tete .picto { fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.am-prez-aide { position: absolute; left: 0; right: 0; bottom: 1.4cqw; margin: 0; text-align: center; color: rgb(255 255 255 / .7); font-size: clamp(11px, 1.1cqw, 14px); pointer-events: none; }
.am-prez-page { position: absolute; inset: 0; background: #fff; color: #1c1c1c; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 2.4cqw 3cqw 1.6cqw; gap: 1.4cqw; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; outline: none; overflow: hidden; }
.am-prez-page.is-visible { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.am-prez-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.am-prez-tete h3 { margin: 0; font: 300 clamp(26px, 5cqw, 72px)/1 var(--font-sans, system-ui, sans-serif); display: flex; align-items: center; gap: .3em; color: #111; }
.am-prez-tete h3 .picto { width: .8em; height: .8em; stroke-width: 1.3; }
.am-prez-tete p { margin: .5em 0 0; font-size: clamp(13px, 1.6cqw, 22px); color: #333; }
.am-prez-marque { display: flex; flex-direction: column; align-items: center; color: #1c1c1c; text-align: center; }
.am-prez-marque b { font: 600 clamp(12px, 1.4cqw, 20px)/1 Georgia, 'Times New Roman', serif; letter-spacing: .08em; }
.am-prez-marque span { font-size: clamp(7px, .62cqw, 9px); letter-spacing: .14em; color: #555; margin-top: 4px; }
.am-prez-grille { display: grid; gap: 1.2cqw 1.8cqw; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; min-height: 0; overflow: auto; }
.am-prez-grille.n1 { grid-template-columns: minmax(0, 1fr); } .am-prez-grille.n2, .am-prez-grille.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-prez.is-tel .am-prez-grille { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.am-prez.is-tel .am-prez-page { padding: 18px 16px 12px; gap: 12px; }
.am-prez-graph { margin: 0; min-width: 0; }
.am-prez-graph-corps { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid #e3e6e3; border-radius: 8px; padding: .8cqw 1cqw .6cqw; }
.am-prez.is-tel .am-prez-graph-corps { padding: 10px 12px 8px; }
button.am-prez-graph-corps { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
button.am-prez-graph-corps:hover, button.am-prez-graph-corps:focus-visible { border-color: var(--vert); box-shadow: 0 2px 10px rgb(29 107 102 / .14); outline: none; }
.am-prez-graph figcaption { font-size: clamp(12px, 1.05cqw, 15px); line-height: 1.25; }
.am-prez-graph figcaption span { color: #666; }
.am-prez-dernier { margin: .2em 0 .1em; }
.am-prez-dernier .num { font: 600 clamp(15px, 1.6cqw, 24px)/1.1 var(--font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; color: var(--vert); }
.am-prez-dernier small, .am-prez-source { color: #666; font-size: clamp(10px, .8cqw, 12px); }
.am-prez-source { display: block; margin-top: .2em; }
.am-prez-courbe { width: 100%; height: auto; display: block; }
.am-prez-courbe line { stroke: #e6e8e6; stroke-width: 1; } .am-prez-courbe line.zero { stroke: #999; }
.am-prez-courbe text { font-size: 11px; fill: #777; font-variant-numeric: tabular-nums; }
.am-prez-courbe .trait { fill: none; stroke: var(--vert); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.am-prez-courbe .point { fill: var(--or); stroke: #fff; stroke-width: 1.5; }
.am-prez-attente { height: 0; padding-bottom: 43.75%; position: relative; color: #888; font-size: 12px; }
.am-prez-vide { color: #777; margin: 0; }
.am-prez-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(10px, 1cqw, 13px); color: #333; letter-spacing: .04em; }
.am-prez-pied nav { display: flex; gap: 6px; flex-wrap: wrap; }
.am-prez-pied button { border: 1px solid #d6dad6; background: #fff; color: #1c1c1c; border-radius: 999px; padding: 5px 14px; font: inherit; letter-spacing: 0; cursor: pointer; min-height: 32px; }
.am-prez-pied button:hover, .am-prez-pied button:focus-visible { border-color: var(--vert); color: var(--vert); outline: none; }
.am-prez-pied button.lien { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .am-prez-page, .am-prez-bulle circle { transition: none; } }

/* AM-113 (05/11/2026) : niveau « Focus » au clic sur une courbe (Presentation.tsx, composant Focus). La page Focus
   part du cadre de la carte cliquée (transform posé en ligne) et grandit jusqu'à la page entière. */
.am-prez-loupe { color: var(--vert); opacity: 0; transition: opacity .2s; }
button.am-prez-graph-corps:hover .am-prez-loupe, button.am-prez-graph-corps:focus-visible .am-prez-loupe { opacity: 1; }
.am-prez-page.a-focus > :not(.am-prez-focus) { visibility: hidden; transition: visibility 0s .5s; }
.am-prez-focus { position: absolute; inset: 0; z-index: 2; background: #fff; color: #1c1c1c; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 2.4cqw 3cqw 1.6cqw; gap: 1.2cqw; transform-origin: 0 0; outline: none; overflow: hidden;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .35s ease; box-shadow: 0 0 0 1px #e3e6e3; }
.am-prez-focus.sans-transition { transition: none; }
.am-prez.is-tel .am-prez-focus { padding: 18px 16px 12px; gap: 12px; overflow: auto; grid-template-rows: auto auto auto; }
.am-prez-sur { font-size: clamp(10px, .9cqw, 13px); letter-spacing: .14em; color: var(--or); font-weight: 600; margin-bottom: .4em; }
.am-prez-tete h3.focus { font-size: clamp(20px, 3cqw, 44px); font-weight: 400; line-height: 1.1; }
.am-prez-focus-corps { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 22cqw, 320px); gap: 2cqw; min-height: 0; }
.am-prez.is-tel .am-prez-focus-corps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.am-prez-focus-graph { min-width: 0; display: flex; flex-direction: column; gap: .8cqw; }
.am-prez-periodes { display: flex; gap: 4px; flex-wrap: wrap; }
.am-prez-periodes button { border: 1px solid #d6dad6; background: #fff; color: #333; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 30px; }
.am-prez-periodes button[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: #fff; }
.am-prez-periodes button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.am-prez-courbe.focus { touch-action: pan-y; cursor: crosshair; max-height: 100%; }
.am-prez-courbe.focus text { font-size: 13px; }
.am-prez-courbe.focus .trait { stroke-width: 2.4; }
.am-prez-courbe .viseur { stroke: #9aa39f; stroke-dasharray: 3 3; }
.am-prez-courbe .bulle-val .v { font: 600 17px var(--font-mono, ui-monospace, Menlo, monospace); fill: var(--vert); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.am-prez-courbe .bulle-val .d { font-size: 12.5px; fill: #555; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.am-prez-attente.grand { padding-bottom: 42%; }
.am-prez-note { margin: 0; color: #666; font-size: 12px; }
.am-prez-cles { margin: 0; display: flex; flex-direction: column; gap: .9cqw; align-content: start; overflow: auto; }
.am-prez.is-tel .am-prez-cles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-prez.is-tel .am-prez-cles .meta, .am-prez.is-tel .am-prez-cles .fort { grid-column: 1 / -1; }
.am-prez-cles div { border-top: 1px solid #e6e8e6; padding-top: .5cqw; }
.am-prez-cles dt { font-size: clamp(10px, .8cqw, 12px); color: #666; letter-spacing: .03em; }
.am-prez-cles dd { margin: 2px 0 0; display: flex; flex-direction: column; }
.am-prez-cles .num { font: 600 clamp(15px, 1.5cqw, 22px)/1.15 var(--font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; }
.am-prez-cles .fort .num { font-size: clamp(22px, 2.6cqw, 38px); color: var(--vert); }
.am-prez-cles small { color: #666; font-size: clamp(10px, .8cqw, 12px); }
.am-prez-cles .meta dd { font-size: clamp(10px, .85cqw, 12.5px); color: #444; }
.am-prez-cles a { color: var(--vert); }
@media (prefers-reduced-motion: reduce) { .am-prez-focus { transition: none; } }
.am-prez-courbe .viseur.repos { opacity: 0; }
.am-prez-petit { max-width: 640px; }
.am-prez.is-tel .am-prez-focus-corps { min-height: auto; }
.am-prez.is-tel .am-prez-cles { overflow: visible; }
.am-prez.is-tel .am-prez-courbe.focus text { font-size: 14px; }
.am-prez.is-tel .am-prez-periodes button { padding: 3px 10px; font-size: 12px; min-height: 28px; }

/* AM-114 (05/11/2026) : niveau « hub » d'un thème (sous-bulles sur fond vert) et pages récit (Recits.tsx). */
.am-prez-hub { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 1.6cqw 3cqw;
  background: radial-gradient(ellipse at 50% 45%, #2c3825, #141a12 75%); color: #fff; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; outline: none; overflow: hidden; }
.am-prez-hub.is-visible { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.am-prez-hub.a-sous > :not(.am-prez-sous) { visibility: hidden; transition: visibility 0s .5s; }
.am-prez-hub-scene { position: relative; min-height: 0; }
.am-prez-hub-nom { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 26cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; color: #141a12;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2cqw; }
.am-prez-hub-nom .picto { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: var(--or); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.am-prez-hub-nom h3 { margin: .3em 0 .2em; font: 600 clamp(18px, 2.6cqw, 40px)/1.05 var(--font-sans, system-ui, sans-serif); }
.am-prez-hub-nom p { margin: 0; font-size: clamp(10px, .95cqw, 14px); color: #555; }
.am-prez-sb { position: absolute; transform: translate(-50%, -50%); width: 15cqw; aspect-ratio: 1; border-radius: 50%; border: 0; background: #fff; color: #1c1c1c; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqw; padding: 1.2cqw; text-align: center; font: inherit;
  transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.am-prez-sb:hover, .am-prez-sb:focus-visible { transform: translate(-50%, -50%) scale(1.07); outline: none; box-shadow: 0 0 0 4px var(--or), 0 8px 22px rgb(0 0 0 / .3); }
.am-prez-sb .picto { width: 2.4cqw; height: 2.4cqw; fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.am-prez-sb .t { font: 600 clamp(11px, 1.2cqw, 17px)/1.15 var(--font-sans, system-ui, sans-serif); }
.am-prez-sb .a { font-size: clamp(9px, .78cqw, 12px); line-height: 1.25; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am-prez-sb.chiffres { background: #f3efe6; }
.am-prez.is-tel .am-prez-hub { padding: 16px; overflow: auto; }
.am-prez.is-tel .am-prez-hub.a-sous { overflow: hidden; } /* PF-90 : le thème ne défile plus sous la page ouverte */
.am-prez.is-tel .am-prez-hub-scene { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.am-prez.is-tel .am-prez-hub-nom { position: static; transform: none; grid-column: 1 / -1; width: 46%; justify-self: center; padding: 12px; }
.am-prez.is-tel .am-prez-hub-nom .picto { width: 26px; height: 26px; }
.am-prez.is-tel .am-prez-hub-nom p { display: none; }
.am-prez.is-tel .am-prez-sb { position: static; transform: none; width: 100%; padding: 12px; gap: 4px; }
.am-prez.is-tel .am-prez-sb:hover, .am-prez.is-tel .am-prez-sb:focus-visible { transform: scale(1.03); }
.am-prez.is-tel .am-prez-sb .picto { width: 22px; height: 22px; }
.am-prez.is-tel .am-prez-sb .t { font-size: 13px; }
.am-prez.is-tel .am-prez-sb .a { font-size: 10.5px; -webkit-line-clamp: 2; }
.am-prez-pied.sombre { color: rgb(255 255 255 / .75); }
.am-prez-pied.sombre button { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.am-prez-pied.sombre button:hover, .am-prez-pied.sombre button:focus-visible { border-color: var(--or); color: var(--or); }
.am-prez-sous { position: absolute; inset: 0; z-index: 3; transform-origin: 0 0; overflow: hidden; background: #fff;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .35s ease, border-radius .5s ease; }
.am-prez-sous.sans-transition { transition: none; }
.am-prez-sous > .am-prez-page { opacity: 1; visibility: visible; }
.am-prez-recit { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.2cqw; padding: 2.4cqw 3cqw 1.6cqw; background: #fff; color: #1c1c1c; outline: none; }
.am-prez.is-tel .am-prez-recit { padding: 16px 14px 10px; gap: 10px; }
.am-prez-tete h3.focus .picto { width: .8em; height: .8em; fill: none; stroke: var(--or); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.08em; }
.am-prez-recit-corps { overflow: auto; min-height: 0; display: grid; gap: 1.6cqw; align-content: start; padding-right: 6px; }
.am-rec-bloc h4 { margin: 0 0 .5em; font: 600 clamp(13px, 1.2cqw, 17px)/1.2 var(--font-sans, system-ui, sans-serif); }
.am-rec-texte { margin: 0; font-size: clamp(13px, 1.1cqw, 16px); line-height: 1.55; max-width: 80ch; color: #2a2a2a; }
.am-rec-note { margin: .4em 0 0; font-size: 12.5px; color: #555; max-width: 90ch; }
.am-rec-src { display: block; margin-top: .4em; font-size: 11.5px; color: #666; }
.am-rec-src a { color: #1D6B66; }
.am-rec-vide, .am-rec-attente { color: #777; font-size: 13px; margin: 0; padding: 18px 0; }
.am-rec-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.am-rec-chiffres.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.am-rec-chiffre { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid #e3e6e3; border-radius: 10px; padding: 12px 14px; position: relative; }
button.am-rec-chiffre { cursor: pointer; }
button.am-rec-chiffre:hover, button.am-rec-chiffre:focus-visible, .am-rec-chiffre.is-ouvert { border-color: #1D6B66; outline: none; }
.am-rec-chiffre .v { font: 600 clamp(18px, 1.8cqw, 28px)/1.1 var(--font-mono, ui-monospace, Menlo, monospace); color: #1D6B66; font-variant-numeric: tabular-nums; }
.am-rec-chiffre.fort .v { font-size: clamp(24px, 2.6cqw, 40px); }
.am-rec-chiffre .l { font-size: 13px; line-height: 1.35; color: #333; }
.am-rec-chiffre .d { font-size: 12.5px; line-height: 1.45; color: #444; border-top: 1px solid #eee; padding-top: 6px; margin-top: 4px; }
.am-rec-chiffre .nat { position: absolute; top: 8px; right: 10px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #a8875a; border: 1px solid #e6d8c2; border-radius: 999px; padding: 1px 6px; }
.am-rec-frise .piste { display: flex; gap: 0; overflow-x: auto; padding: 10px 2px 6px; position: relative; scroll-snap-type: x proximity; }
.am-rec-frise .piste::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: #d9ddd9; }
.am-rec-frise .etape { flex: 0 0 auto; width: 118px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; font: inherit; color: #333; cursor: pointer; padding: 0 4px; position: relative; text-align: center; }
.am-rec-frise .etape .pt { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #1D6B66; z-index: 1; transition: transform .2s; }
.am-rec-frise .etape.tag-crise .pt { border-color: #66231f; } .am-rec-frise .etape.tag-guerre .pt { border-color: #a66f4e; } .am-rec-frise .etape.tag-social .pt { border-color: #a8875a; }
.am-rec-frise .etape.is-choisie .pt { transform: scale(1.35); background: #1D6B66; }
.am-rec-frise .etape .dt { font: 500 11px var(--font-mono, ui-monospace, Menlo, monospace); color: #777; }
.am-rec-frise .etape .ti { font-size: 12px; line-height: 1.25; }
.am-rec-frise .etape.is-choisie .ti { font-weight: 600; color: #1D6B66; }
.am-rec-frise .etape:focus-visible { outline: 2px solid #a8875a; outline-offset: 2px; border-radius: 6px; }
.am-rec-frise .detail { border: 1px solid #e3e6e3; border-radius: 10px; padding: 14px 16px; margin-top: 8px; background: #fbfaf7; }
.am-rec-frise .detail .tete { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.am-rec-frise .detail .tete span { color: #777; font-size: 12.5px; }
.am-rec-frise .detail p { margin: .5em 0 0; font-size: 14px; line-height: 1.5; }
.am-rec-frise .detail .chiffre { font-weight: 600; color: #1D6B66; }
.am-rec-frise .detail .nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; color: #666; }
.am-rec-frise .detail .nav button, .am-rec-comp .lien, .am-rec-courbes .legende button, .am-rec-analog .onglets button, .am-rec-detroits .choix button {
  border: 1px solid #d6dad6; background: #fff; color: #1c1c1c; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; min-height: 30px; }
.am-rec-frise .detail .nav button:disabled { opacity: .4; cursor: default; }
.am-rec-sankey svg { width: 100%; height: auto; display: block; }
.am-rec-sankey .lien { fill: none; stroke: #1D6B66; stroke-opacity: .28; transition: stroke-opacity .2s; }
.am-rec-sankey .lien.actif { stroke-opacity: .7; stroke: #a8875a; } .am-rec-sankey .lien.efface { stroke-opacity: .08; }
.am-rec-sankey .noeud { cursor: pointer; outline: none; } .am-rec-sankey .noeud rect { fill: #1D6B66; } .am-rec-sankey .noeud.choisi rect, .am-rec-sankey .noeud:focus-visible rect { fill: #a8875a; }
.am-rec-sankey .noeud text { font-size: 14px; fill: #1c1c1c; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.am-rec-sankey-info { font-size: 13px; margin-top: 6px; min-height: 1.6em; } .am-rec-sankey-info ul { margin: 4px 0 0; padding-left: 18px; }
.am-rec-courbes .outils { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 6px; }
.am-rec-courbes .case { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.am-rec-courbes .legende { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; font-size: 12.5px; }
.am-rec-courbes .legende button { display: inline-flex; align-items: center; gap: 6px; }
.am-rec-courbes .legende button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.am-rec-courbes .legende i, .am-rec-courbes .lecture i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.am-rec-courbes .legende .cle { display: inline-flex; align-items: center; gap: 6px; color: #555; }
.am-rec-courbes .legende .cle i.crise { height: 12px; background: #e9ebe7; } .am-rec-courbes .legende .cle i.acc { background: #a8875a; height: 5px; }
.am-prez-courbe rect.crise { fill: #e9ebe7; } .am-prez-courbe rect.acc { fill: #a8875a; opacity: .85; }
.am-rec-courbes .am-prez-courbe .trait { stroke-width: 2; }
.am-rec-courbes .lecture { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; min-height: 1.6em; align-items: center; }
.am-rec-courbes .lecture span { display: inline-flex; align-items: center; gap: 6px; }
.am-rec-courbes .lecture .corr { color: #1D6B66; }
.am-rec-comp { display: grid; gap: 16px; }
.am-rec-comp .mesure .tete { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.am-rec-comp .mesure .tete .lien { margin-left: auto; }
.am-rec-comp .barre { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 64px 70px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.am-rec-comp .barre .piste { height: 14px; background: #f1f2f0; border-radius: 4px; overflow: hidden; }
.am-rec-comp .barre .rempli { display: block; height: 100%; background: #9cb8b4; border-radius: 4px; }
.am-rec-comp .barre .rempli.neg { background: #c9a28f; }
.am-rec-comp .barre.fr .rempli { background: #1D6B66; } .am-rec-comp .barre.fr .rempli.neg { background: #66231f; }
.am-rec-comp .barre.fr .pays { font-weight: 600; }
.am-rec-comp .barre .val { text-align: right; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; font-weight: 600; }
.am-rec-comp .barre .dt { font-size: 11.5px; }
.am-prez.is-tel .am-rec-comp .barre { grid-template-columns: 82px minmax(0, 1fr) 48px; } .am-prez.is-tel .am-rec-comp .barre .dt { display: none; }
.am-rec-detroits { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.am-prez.is-tel .am-rec-detroits { grid-template-columns: minmax(0, 1fr); }
.am-rec-detroits .globe { background: #141a12; border-radius: 12px; padding: 10px; min-height: 280px; }
.am-rec-detroits .globe canvas { max-width: 100%; }
.am-rec-detroits .choix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.am-rec-detroits .choix button { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.am-rec-detroits .choix button[aria-pressed="true"], .am-rec-analog .onglets button[aria-selected="true"] { background: #1D6B66; border-color: #1D6B66; color: #fff; }
.am-rec-detroits .fiche h4 { margin: 0 0 8px; font-size: 18px; }
.am-rec-detroits .fiche > .am-rec-chiffres { margin-bottom: 10px; }
.am-rec-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.am-prez.is-tel .am-rec-calc { grid-template-columns: minmax(0, 1fr); }
.am-rec-calc .saisie { display: grid; gap: 14px; background: #fbfaf7; border: 1px solid #e3e6e3; border-radius: 10px; padding: 14px; }
.am-rec-calc .saisie label { display: grid; gap: 6px; font-size: 13.5px; }
.am-rec-calc .saisie label.case { display: flex; align-items: center; gap: 8px; }
.am-rec-calc input[type=range] { width: 100%; accent-color: #1D6B66; }
.am-rec-calc .saisie b { font-size: 18px; color: #1D6B66; }
.am-rec-calc .resultat { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.am-rec-calc .resultat .fort { grid-column: 1 / -1; }
.am-rec-calc .detail { grid-column: 1 / -1; border-collapse: collapse; font-size: 13px; width: 100%; }
.am-rec-calc .detail td { padding: 5px 4px; border-bottom: 1px solid #eee; } .am-rec-calc .detail td.num { text-align: right; font-family: var(--font-mono, ui-monospace, Menlo, monospace); white-space: nowrap; }
.am-rec-calc .resultat .am-rec-note, .am-rec-calc .resultat .am-rec-src { grid-column: 1 / -1; }
.am-rec-analog .onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.am-rec-analog .carte { border: 1px solid #e3e6e3; border-radius: 12px; padding: 16px; background: #fbfaf7; }
.am-rec-analog .fleche { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 16px; margin-bottom: 12px; }
.am-rec-analog .fleche .auj { font-weight: 600; color: #1D6B66; } .am-rec-analog .fleche .hier { font-weight: 600; color: #66231f; } .am-rec-analog .fleche .sym { font-size: 24px; color: #a8875a; }
.am-rec-analog .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .am-prez.is-tel .am-rec-analog .deux { grid-template-columns: 1fr; }
.am-rec-analog h5 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #777; }
.am-rec-analog p { margin: 0; font-size: 14px; line-height: 1.5; }
.am-rec-tab .defile { overflow-x: auto; }
.am-rec-tab table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 620px; }
.am-rec-tab th, .am-rec-tab td { padding: 6px 8px; border-bottom: 1px solid #eceeec; text-align: right; }
.am-rec-tab thead th { font-size: 12px; color: #555; font-weight: 600; vertical-align: bottom; }
.am-rec-tab tbody th { text-align: left; font-weight: 500; color: #222; }
.am-rec-tab td.num { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; }
.am-rec-tab .auj { outline: 2px solid #a8875a; outline-offset: -2px; font-weight: 700; }
.am-rec-tab thead th.auj { color: #a8875a; outline: none; }
.am-rec-tab tbody tr { cursor: pointer; } .am-rec-tab tbody tr.is-choisie th { color: #1D6B66; font-weight: 700; }
/* AM-114 : le globe des détroits reprend les couleurs du globe (.am-monde) sans son cadre */
.am-rec-detroits.am-monde { padding: 0; background: none; border: 0; border-radius: 0; }
.am-rec-chiffre .v.long { font: 600 clamp(15px, 1.25cqw, 19px)/1.2 var(--font-sans, inherit); overflow-wrap: anywhere; }
.am-rec-detroits .globe { max-width: 460px; }
.am-rec-detroits .globe canvas { max-width: 420px; margin: 0 auto; display: block; }

/* AM-117 / AM-118 (05/11) : niveau 0 « Ce que tu loupes » (Loupes.tsx). */
.am-entree-loupes { background: linear-gradient(110deg, color-mix(in srgb, var(--am-serein) 22%, var(--surface)), var(--surface)); }
.am-entree-loupes .am-entree-ic { font-weight: 700; }
.am-n0 { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.am-n0-tete h1 { margin: 2px 0 6px; font-size: 30px; letter-spacing: -0.03em; }
.am-n0-pas { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.am-n0-flatte { font-size: 16px; margin: 0 0 8px; }
.am-n0-q h2 { font-size: 22px; margin: 4px 0 14px; }
.am-n0-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.am-n0-choix button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.am-n0-choix button:hover, .am-n0-choix button:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.am-n0-choix button > span:last-child { display: grid; gap: 2px; }
.am-n0-choix small { color: var(--fg-3); font-size: 12px; }
.am-n0-ic { font-size: 26px; line-height: 1; }
.am-n0-reglages { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-n0-reglages > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.am-n0-reglages > div > span { min-width: 90px; font-weight: 600; }
.am-n0-carte { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); animation: am-n0-arrive .45s ease-out both; }
.am-n0-carte p { margin: 0; }
.am-n0-perte { border-left: 4px solid var(--am-peur); }
.am-n0-loupe { border-left: 4px solid var(--am-serein); animation-delay: .12s; }
.am-n0-suite { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); animation-delay: .24s; }
.am-n0-gros { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.am-n0-perte .am-n0-gros { color: var(--am-peur); }
.am-n0-loupe .am-n0-gros { color: var(--am-serein); }
.am-n0-ecart { font-size: 16px; }
.am-n0-objets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.am-n0-objets li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.am-n0-objets li .am-n0-ic { grid-row: span 2; align-self: center; }
.am-n0-objets strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.am-n0-objets small { grid-column: 1 / -1; font-size: 11px; }
.am-n0-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes am-n0-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-n0-carte { animation: none; } }
@media (max-width: 760px) { .am-n0 { padding: 8px 0 24px; } .am-n0-gros { font-size: 32px; } .am-n0-reglages > div > span { min-width: 0; width: 100%; } }
.am-n0-reglages .am-seg { flex-wrap: wrap; }
.am-n0-reglages .am-seg button { white-space: nowrap; }
/* AM-116 : page de récit « présentation » (un visuel de concept, 3 chiffres clés, détails repliés) */
.am-prez-concept { margin: 4px 0 14px; }
.am-prez-concept .am-rec-bloc { margin: 0; }
.am-prez-cles-recit { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.am-prez-cles-recit li { border-left: 3px solid #a8875a; padding: 4px 0 4px 12px; display: grid; gap: 2px; }
.am-prez-cles-recit b { font: 600 clamp(18px, 1.7cqw, 26px)/1.1 var(--font-mono, ui-monospace, Menlo, monospace); color: #1D6B66; }
.am-prez-cles-recit span { font-size: 13px; color: var(--text-muted, #5b6766); line-height: 1.35; }
.am-prez-details { border-top: 1px solid var(--border, #e3e6e5); padding-top: 10px; }
.am-prez-details .ouvrir { background: none; border: 1px solid var(--border, #d6dbda); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.am-prez-details .ouvrir:hover { border-color: #1D6B66; color: #1D6B66; }
.am-prez-details .contenu { margin-top: 14px; }
/* Bulles reliées */
.am-rec-reseau { display: grid; gap: 10px; }
.am-rec-reseau svg { width: 100%; height: auto; max-height: min(50vh, 470px); display: block; margin: 0 auto; }
.am-rec-reseau .nom { font: 600 17px/1 var(--font-sans, inherit); fill: #17262a; pointer-events: none; }
.am-rec-reseau .nom.grand { font-size: 34px; }
.am-rec-reseau .val { font: 500 14px/1 var(--font-sans, inherit); fill: #1D6B66; pointer-events: none; }
.am-rec-reseau .val.grand { font-size: 26px; }
.am-rec-reseau .noeud:focus { outline: none; }
.am-rec-reseau .noeud:focus-visible circle:first-of-type { stroke: #1D6B66; stroke-width: 4; }
.am-rec-reseau .legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.am-rec-reseau .legende li { display: flex; align-items: center; gap: 8px; }
.am-rec-reseau .legende svg { width: 30px; height: 10px; }
.am-rec-reseau .fiche { min-height: 44px; font-size: 14px; }
.am-rec-reseau .fiche p { margin: 4px 0; }
.am-rec-reseau .fiche .aide { color: var(--text-muted, #6b7675); }
.am-rec-reseau .fiche ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.am-rec-reseau .fiche i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.am-prez.is-tel .am-rec-reseau .nom { font-size: 24px; }
.am-prez.is-tel .am-rec-reseau .nom.grand { font-size: 40px; }
.am-prez.is-tel .am-rec-reseau .val { font-size: 20px; }

/* AM-128 (05/11) : « Une question pour investir ? » (Contact.tsx). */
.am-contact-bouton { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-contact-bouton:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.am-contact-bouton > span:first-child { font-size: 22px; }
.am-contact-bouton > span:last-child { display: grid; gap: 2px; }
.am-contact-bouton small { color: var(--fg-3); font-size: 12px; }
.am-contact-bouton.is-compact { width: auto; padding: 8px 12px; }
.am-contact-form { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); }
.am-contact-form textarea, .am-contact-form input { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--fg); }
.am-contact-ok { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--am-serein) 16%, var(--surface)); font-weight: 600; }
.am-app .am-contact { margin: 12px 16px; }
.am-app .am-app-corps .am-contact, .am-app .am-n0 .am-contact { margin: 0; }
/* AM-116 : pictogrammes « combien d'actifs pour un retraité » */
.am-rec-pictos { display: grid; gap: 10px; }
.am-rec-pictos .q { font: 600 18px/1.3 var(--font-sans, inherit); margin: 0; }
.am-rec-pictos .grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.am-rec-pictos .pays { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #1D6B66 5%, transparent); }
.am-rec-pictos .pays strong { font-size: 16px; }
.am-rec-pictos .rang { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.am-rec-pictos .quand { width: 40px; font-size: 13px; color: #5b6b6e; flex: none; }
.am-rec-pictos .actifs { display: inline-flex; gap: 2px; min-width: 76px; }
.am-rec-pictos .v { font: 700 20px/1 var(--font-sans, inherit); color: #1D6B66; min-width: 34px; text-align: right; }
.am-rec-pictos .pour { font-size: 13px; color: #5b6b6e; }
.am-picto-p { width: 18px; height: 36px; flex: none; }
.am-picto-p g { fill: #1D6B66; }
.am-picto-p .vide { fill: color-mix(in srgb, #1D6B66 15%, transparent); }
.am-picto-p.senior g { fill: #a8875a; }
.am-picto-p.senior .vide { fill: #a8875a; }
.am-picto-p .canne { stroke: #a8875a; stroke-width: 2; }
.am-rec-pictos .legende { font-size: 13px; color: #5b6b6e; margin: 0; }
@media (max-width: 760px) { .am-rec-pictos .grille { grid-template-columns: 1fr; } .am-picto-p { width: 15px; height: 30px; } }

/* AM-121 (05/11) : « Le Journal de l'investisseur » (Journal.tsx), mise en page de grand quotidien. */
.am-entree-journal .am-entree-ic { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 700; }
.am-journal { --am-j-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif; display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 8px 0 24px; }
.am-j-manchette { text-align: center; border-bottom: 3px double var(--fg); padding-bottom: 10px; }
.am-j-filet { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border-strong); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.am-j-filet span:first-child::first-letter { text-transform: uppercase; }
.am-journal h1 { font-family: var(--am-j-serif); font-size: clamp(30px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; margin: 4px 0; }
.am-j-devise { margin: 0; font-family: var(--am-j-serif); font-style: italic; color: var(--fg-2); }
.am-j-periodes { justify-self: center; }
.am-j-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--am-peur); }
.am-journal h2 { font-family: var(--am-j-serif); font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; }
.am-j-une { display: grid; grid-template-columns: 2fr 1fr; gap: 0; border-bottom: 1px solid var(--border-strong); padding-bottom: 16px; }
.am-j-canon { padding-right: 20px; }
.am-j-gros-titre { font-size: clamp(24px, 3.4vw, 36px) !important; line-height: 1.12; }
.am-j-gros-titre a { color: inherit; text-decoration: none; }
.am-j-gros-titre a:hover { text-decoration: underline; }
.am-j-chapo { font-family: var(--am-j-serif); font-size: 17px; line-height: 1.5; margin: 8px 0; }
.am-j-breves { border-left: 1px solid var(--border-strong); padding-left: 20px; }
.am-j-breves ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-j-breves li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.am-j-breves a { font-family: var(--am-j-serif); color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.3; }
.am-j-breves a:hover { text-decoration: underline; }
.am-j-breves small { color: var(--fg-3); font-size: 11px; }
.am-j-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border-strong); }
.am-j-colonnes > .am-j-bloc:first-child { padding-right: 20px; border-right: 1px solid var(--border-strong); }
.am-j-colonnes > .am-j-bloc:last-child { padding-left: 20px; }
.am-j-bloc { padding-bottom: 16px; }
.am-j-course { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.am-j-course li { display: grid; grid-template-columns: 22px minmax(110px, 1.2fr) 1fr 64px; align-items: center; gap: 8px; }
.am-j-rang { font-family: var(--am-j-serif); font-weight: 700; color: var(--fg-3); }
.am-j-course li:first-child .am-j-rang { color: var(--accent); }
.am-j-nom { display: grid; } .am-j-nom small { color: var(--fg-3); font-size: 11px; }
.am-j-barre { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.am-j-barre i { display: block; height: 100%; background: var(--am-serein); border-radius: 4px; transition: width .4s ease-out; }
.am-j-barre i.is-bas { background: var(--am-peur); }
.am-j-perf { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--am-serein); }
.am-j-perf.is-bas { color: var(--am-peur); }
.am-j-note { font-size: 11px; margin: 8px 0 0; }
.am-j-zones { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.am-j-zones li { display: grid; grid-template-columns: 14px 150px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.am-j-feu { width: 12px; height: 12px; border-radius: 50%; }
.am-j-feu.is-vert { background: var(--am-serein); } .am-j-feu.is-orange { background: var(--am-neutre); } .am-j-feu.is-rouge { background: var(--am-peur); }
.am-j-phrase { font-family: var(--am-j-serif); color: var(--fg-2); }
.am-j-pastille { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; }
.am-j-pastille.is-vert { color: var(--am-serein); } .am-j-pastille.is-orange { color: color-mix(in srgb, var(--am-neutre) 70%, var(--fg)); } .am-j-pastille.is-rouge { color: var(--am-peur); }
.am-j-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.am-j-carte { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.am-j-carte h3 { font-family: var(--am-j-serif); font-size: 18px; margin: 0 0 4px; }
.am-j-carte p { margin: 0; font-size: 13px; color: var(--fg-2); }
.am-j-bientot { margin-top: 8px !important; font-size: 11px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3) !important; }
@media (max-width: 760px) {
  .am-j-une, .am-j-colonnes, .am-j-cartes { grid-template-columns: 1fr; }
  .am-j-canon { padding-right: 0; }
  .am-j-breves { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-strong); padding-top: 12px; margin-top: 12px; }
  .am-j-colonnes > .am-j-bloc:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .am-j-colonnes > .am-j-bloc:last-child { padding-left: 0; padding-top: 12px; }
  .am-j-zones li { grid-template-columns: 14px 1fr auto; } .am-j-zones li .am-j-pastille { grid-column: 3; grid-row: 1; justify-self: end; } .am-j-phrase { grid-column: 2 / -1; grid-row: 2; }
  .am-j-course li { grid-template-columns: 18px 1fr 60px; } .am-j-barre { display: none; }
}

/* AM-122 / AM-123 (05/11) : « Où investir ? », feux et poupées russes par décalage (Poupees.tsx). */
.am-poupees { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; padding: 8px 0 24px; }
.am-pr-feu { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.am-pr-feu.is-vert { background: var(--am-serein); color: var(--am-serein); } .am-pr-feu.is-orange { background: var(--am-neutre); color: var(--am-neutre); } .am-pr-feu.is-rouge { background: var(--am-peur); color: var(--am-peur); }
.am-pr-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; font-size: 13px; color: var(--fg-2); }
.am-pr-legende span { display: inline-flex; align-items: center; gap: 8px; }
.am-pr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-pr-poupee { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.am-pr-poupee.is-ouverte { border-color: var(--border-strong); box-shadow: var(--shadow); }
/* Chaque poupée s'ouvre dans la précédente, décalée vers la droite et un ton plus loin. */
.am-pr-n2 { background: var(--surface-2); border-radius: 12px; }
.am-pr-n3 { background: var(--surface); border-radius: 10px; }
.am-pr-dedans { display: grid; gap: 10px; margin: 0 10px 10px 26px; padding-left: 14px; border-left: 2px solid var(--border-strong); animation: am-n0-arrive .3s ease-out both; }
.am-pr-tete { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.am-pr-tete:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.am-pr-nom { display: grid; gap: 1px; } .am-pr-nom small { color: var(--fg-3); font-size: 12px; }
.am-pr-n1 > .am-pr-tete .am-pr-nom b { font-size: 17px; }
.am-pr-note { display: inline-flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums; }
.am-pr-note b { font-size: 20px; } .am-pr-note small { color: var(--fg-3); font-size: 11px; }
.am-pr-niv { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); min-width: 64px; text-align: right; }
.am-pr-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-pr-pc ul { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; display: grid; gap: 4px; font-size: 13px; }
.am-pr-pour { background: color-mix(in srgb, var(--am-serein) 10%, var(--surface)); }
.am-pr-contre { background: color-mix(in srgb, var(--am-peur) 9%, var(--surface)); }
.am-pr-pour li::before { content: "+ "; font-weight: 700; color: var(--am-serein); }
.am-pr-contre li::before { content: "− "; font-weight: 700; color: var(--am-peur); }
.am-pr-pour::before, .am-pr-contre::before { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.am-pr-pour::before { content: "Pour"; } .am-pr-contre::before { content: "Contre"; }
.am-pr-methode { font-size: 13px; color: var(--fg-2); } .am-pr-methode summary { cursor: pointer; font-weight: 600; } .am-pr-methode p { margin: 6px 0; }
.am-entree-ou .am-entree-ic { display: grid; place-items: center; }
@media (max-width: 760px) {
  .am-pr-pc { grid-template-columns: 1fr; }
  .am-pr-dedans { margin: 0 6px 8px 12px; padding-left: 10px; }
  .am-pr-niv { display: none; } .am-pr-tete { grid-template-columns: auto 1fr auto; padding: 10px 12px; }
}

/* Parcours grand public (05/11) : barre unique en tête de l'accueil. */
.am-parcours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
.am-app .am-parcours { margin: 8px 16px 4px; grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
.am-parcours button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
.am-parcours button:hover { transform: translateY(-1px); border-color: var(--accent); }
.am-parcours button > span:last-child { display: grid; } .am-parcours small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.am-parcours-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 700; font-family: "IBM Plex Serif", Georgia, serif; }
.am-parcours-ou .am-parcours-ic { color: var(--am-serein); }
.am-parcours-nolu .am-parcours-ic { background: var(--accent); color: var(--accent-fg); font-family: inherit; }

/* AM-125 : bandeau des feux en tête de la macro experte. */
.am-bf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-bf-titre { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.am-bf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.am-bf li button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.am-bf li button small { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.am-bf .am-pr-feu { width: 10px; height: 10px; }

/* AM-124 : agent Nolu. */
.am-agent { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.am-ag-fil { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.am-ag-msg { display: flex; gap: 8px; align-items: flex-end; animation: am-n0-arrive .25s ease-out both; }
.am-ag-msg.is-moi { justify-content: flex-end; }
.am-ag-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.am-ag-bulle { max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: var(--shadow); line-height: 1.45; }
.am-ag-msg.is-moi .am-ag-bulle { border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--accent-fg); }
.am-ag-ecrit { display: inline-flex; gap: 4px; } .am-ag-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: am-ag-point 1s infinite; } .am-ag-ecrit i:nth-child(2) { animation-delay: .15s; } .am-ag-ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes am-ag-point { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.am-ag-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.am-ag-choix button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.am-ag-choix button:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.am-ag-saisie { display: flex; gap: 8px; } .am-ag-saisie input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--fg); }
.am-ag-cartes { display: grid; gap: 8px; margin-top: 6px; }
.am-ag-carte { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.am-ag-carte p { margin: 2px 0; font-size: 13px; }
.am-ag-carte-tete { display: flex; align-items: center; gap: 8px; font-size: 15px !important; } .am-ag-carte-tete span:last-child { margin-left: auto; font-weight: 700; }
.am-ag-plus::before { content: "+ "; color: var(--am-serein); font-weight: 700; } .am-ag-moins::before { content: "− "; color: var(--am-peur); font-weight: 700; }
.am-ag-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.am-ag-table th, .am-ag-table td { padding: 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.am-ag-table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }

/* AM-119 : le jeu. */
.am-jeu { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.am-jeu-q h3, .am-jeu-fin h3 { font-size: 19px; margin: 4px 0 10px; }
.am-jeu-options { display: grid; gap: 8px; }
.am-jeu-options button { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.am-jeu-options button:not(:disabled):hover { border-color: var(--accent); }
.am-jeu-options button.is-bonne { border-color: var(--am-serein); background: color-mix(in srgb, var(--am-serein) 16%, var(--surface)); font-weight: 600; }
.am-jeu-options button.is-fausse { border-color: var(--am-peur); background: color-mix(in srgb, var(--am-peur) 12%, var(--surface)); }
.am-jeu-retour { margin-top: 10px; display: grid; gap: 6px; } .am-jeu-retour p { margin: 0; }
.am-jeu-fin { text-align: center; } .am-jeu-badge { font-size: 54px; margin: 0; animation: am-jeu-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes am-jeu-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.am-paquet-ferme { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 26px 16px; border: 2px dashed var(--accent); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); color: var(--fg); font: inherit; cursor: pointer; }
.am-paquet-ferme span { font-size: 44px; animation: am-paquet-bouge 1.6s ease-in-out infinite; } .am-paquet-ferme small { color: var(--fg-3); }
@keyframes am-paquet-bouge { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(0); } }
.am-paquet-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 900px; }
.am-carte { position: relative; height: 210px; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); font: inherit; color: var(--fg); }
.am-carte.is-vue { transform: rotateY(180deg); }
.am-carte-dos, .am-carte-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; }
.am-carte-dos { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--accent-fg); background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 10px, color-mix(in srgb, var(--accent) 80%, #000) 10px, color-mix(in srgb, var(--accent) 80%, #000) 20px); }
.am-carte-face { transform: rotateY(180deg); display: grid; align-content: start; gap: 4px; padding: 12px; text-align: left; background: var(--surface); border: 2px solid var(--border-strong); }
.am-carte.is-rare .am-carte-face { border-color: var(--am-s4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--am-s4) 25%, transparent); }
.am-carte.is-legendaire .am-carte-face { border-color: var(--am-neutre); box-shadow: 0 0 18px color-mix(in srgb, var(--am-neutre) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--am-neutre) 18%, var(--surface)), var(--surface) 60%); }
.am-carte-face small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.am-carte-face b { font-size: 15px; line-height: 1.2; } .am-carte-face strong { font-size: 28px; font-variant-numeric: tabular-nums; } .am-carte-face em { font-style: normal; font-size: 12px; color: var(--fg-2); }
.am-carte-feu { position: absolute; right: 12px; bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .am-carte { transition: none; } .am-paquet-ferme span, .am-jeu-badge { animation: none; } }

/* AM-120 : simulateur de versements. */
.am-n0-reglages-simple { padding: 0; border: 0; background: none; }
.am-n0-barres { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.am-n0-barres li { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 10px; }
.am-n0-barres i { display: block; height: 14px; border-radius: 7px; background: var(--fg-3); transition: width .4s ease-out; }
.am-n0-barres i.is-livret { background: var(--am-neutre); } .am-n0-barres i.is-bourse { background: var(--am-serein); }
.am-n0-barres b { text-align: right; font-variant-numeric: tabular-nums; }

/* AM-126 : favoris et notifications ; AM-127 : passerelle. */
.am-etoile { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.am-etoile.is-on { border-color: var(--am-neutre); color: var(--fg); background: color-mix(in srgb, var(--am-neutre) 14%, var(--surface)); } .am-etoile span { color: var(--am-neutre); font-size: 15px; }
.am-favoris { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.am-favoris li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); } .am-favoris li b { flex: 1; }
.am-favoris-genre { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); min-width: 72px; }
.am-notifs { display: grid; gap: 8px; margin-top: 8px; }
.am-notif { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .am-notif input { margin-top: 3px; } .am-notif span { display: grid; } .am-notif small { color: var(--fg-3); font-size: 12px; }
.am-j-pass { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.am-j-pass button { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 0; border-top: 3px solid var(--border); background: none; color: var(--fg-3); font: inherit; font-size: 12px; cursor: pointer; }
.am-j-pass button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-weight: 700; }
.am-j-pass button.is-fait { border-top-color: var(--accent); color: var(--fg); } .am-j-pass button.is-fait span { background: var(--accent); color: var(--accent-fg); }
.am-j-pass-texte { min-height: 2.6em; font-size: 20px !important; }
@media (max-width: 760px) {
  .am-parcours { grid-template-columns: repeat(5, minmax(140px, 1fr)); overflow-x: auto; }
  .am-paquet-cartes { grid-template-columns: 1fr; } .am-carte { height: 150px; }
  .am-n0-barres li { grid-template-columns: 1fr 80px; } .am-n0-barres i { grid-column: 1 / -1; grid-row: 2; }
  .am-j-pass button { font-size: 0; } .am-j-pass button span { font-size: 12px; }
  .am-ag-table { font-size: 12px; } .am-ag-table th:nth-child(5), .am-ag-table td:nth-child(5) { display: none; }
}
/* AM-116 : lectures en onglets, échelle, avant/après, modes de courbes */
.am-rec-lectures { display: grid; gap: 10px; }
.am-rec-lectures .onglets { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #d9e2e1; padding-bottom: 6px; }
.am-rec-lectures .onglets button { border: 1px solid #c9d6d4; background: #fff; border-radius: 999px; padding: 6px 14px; font: 500 14px/1.2 var(--font-sans, inherit); cursor: pointer; color: #17262a; }
.am-rec-lectures .onglets button[aria-selected="true"] { background: #1D6B66; border-color: #1D6B66; color: #fff; }
.am-rec-modes { margin-left: 8px; }
.am-rec-echelle { display: grid; gap: 8px; }
.am-rec-echelle svg { width: 100%; height: auto; max-height: min(52vh, 420px); display: block; }
.am-rec-echelle .axe { stroke: #8a9a9c; stroke-width: 3; stroke-linecap: round; }
.am-rec-echelle .grad { font: 500 15px/1 var(--font-sans, inherit); fill: #5b6b6e; }
.am-rec-echelle .repere line { stroke: #a8875a; stroke-dasharray: 5 5; }
.am-rec-echelle .repere text { fill: #a8875a; }
.am-rec-echelle .nom { font: 600 18px/1 var(--font-sans, inherit); fill: #17262a; }
.am-rec-echelle .nom .v { font-weight: 700; }
.am-rec-echelle .pt { cursor: pointer; }
.am-rec-echelle .legende, .am-rec-pente .legende { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.am-rec-echelle .legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.am-rec-echelle .fiche { margin: 0; padding: 8px 12px; border-left: 3px solid #1D6B66; background: color-mix(in srgb, #1D6B66 6%, transparent); }
.am-rec-pente svg { width: 100%; max-width: 760px; height: auto; max-height: min(48vh, 420px); display: block; margin: 0 auto; }
.am-rec-pente .col { font: 700 18px/1 var(--font-sans, inherit); fill: #5b6b6e; }
.am-rec-pente .axe { stroke: #c9d6d4; stroke-width: 2; }
.am-rec-pente .ligne line { stroke: #b9c6c4; stroke-width: 2.5; }
.am-rec-pente .ligne circle { fill: #b9c6c4; }
.am-rec-pente .ligne text { font: 500 16px/1 var(--font-sans, inherit); fill: #5b6b6e; }
.am-rec-pente .ligne.accent line { stroke: #1D6B66; stroke-width: 4.5; }
.am-rec-pente .ligne.accent circle { fill: #1D6B66; }
.am-rec-pente .ligne.accent text { fill: #17262a; font-weight: 700; }
.am-rec-pente .v { font-weight: 700; }
.am-prez-concept .am-rec-courbes svg.am-prez-courbe { width: min(100%, calc(min(44vh, 400px) * 2.647)); height: auto; display: block; margin: 0 auto; }
.am-prez-concept .am-rec-reseau svg { max-height: min(46vh, 460px); }
.am-prez-concept .am-rec-lectures .am-rec-reseau svg { max-height: min(40vh, 400px); }
.am-prez-concept .am-rec-reseau { gap: 6px; }
.am-prez-concept .am-rec-reseau .fiche { min-height: 0; }
.am-rec-echelle .liste { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; }
.am-rec-echelle .liste li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 48px; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.am-rec-echelle .liste .piste { position: relative; height: 4px; background: #c9d6d4; border-radius: 2px; }
.am-rec-echelle .liste .piste i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; }
.am-rec-echelle .liste b { text-align: right; }
@media (max-width: 760px) { .am-rec-echelle svg { display: none; } .am-rec-echelle .liste { display: grid; } }

/* ── Appli grand public (05/11/2026, refonte « vraie appli mobile ») ─────────────────────────── */
.gp-app {
  --gp-encre: #1b1f3b; --gp-fond: #fbf7f0; --gp-carte: #ffffff; --gp-trait: #ece6da; --gp-doux: #6b6f86;
  --gp-vert: #148a7e; --gp-vert-clair: #7fd1b9; --gp-or: #f4c152; --gp-corail: #f27a5e; --gp-bleu: #4b6cf0; --gp-ombre: rgba(27,31,59,.08);
  /* les écrans existants (journal, poupées, Nolu, jeu) prennent les couleurs de l'appli */
  --bg: var(--gp-fond); --surface: var(--gp-carte); --surface-2: #f4efe5; --border: var(--gp-trait); --border-strong: #d9d0bf;
  --fg: var(--gp-encre); --fg-2: #3c4060; --fg-3: var(--gp-doux); --muted: var(--gp-doux); --accent: var(--gp-vert); --accent-soft: #dff3ee;
  position: relative; height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column;
  background: var(--gp-fond); color: var(--gp-encre); font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased; color-scheme: light;
}
.gp-app *, .gp-app *::before, .gp-app *::after { box-sizing: border-box; }
.gp-app h1, .gp-app h2 { color: var(--gp-encre); letter-spacing: -0.02em; }
.gp-app :where(button) { font: inherit; color: inherit; cursor: pointer; }
.gp-app .am-n0-pas { display: none; } /* « Niveau 2 · … » : jargon interne, inutile dans l'appli client */
.gp-ecran { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gp-ecran-plein { padding-top: env(safe-area-inset-top); }
.gp-defile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 24px; display: grid; gap: 14px; align-content: start; }
.gp-hote { display: grid; gap: 14px; min-width: 0; }
.gp-hote > * { min-width: 0; }
.gp-entete-simple h1 { margin: 2px 0 0; font-size: 28px; }
.gp-sur { margin: 0; font-size: 14px; font-weight: 600; color: var(--gp-doux); }
.gp-clair { color: rgba(255,255,255,.9) !important; }
.gp-fermer { position: absolute; top: 10px; right: 10px; z-index: 30; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(27,31,59,.08); }

/* boutons et champs */
.gp-bouton { display: block; width: 100%; border: 0; border-radius: 16px; padding: 16px 18px; background: var(--gp-encre); color: #fff !important; font-weight: 700; font-size: 17px; box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s; }
.gp-bouton:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.gp-bouton:disabled { opacity: .35; cursor: default; }
.gp-bouton-blanc { background: #fff; color: var(--gp-encre) !important; }
.gp-lien { border: 0; background: none; padding: 8px; font-weight: 600; color: var(--gp-vert); text-decoration: underline; text-underline-offset: 3px; }
.gp-rond { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gp-trait); background: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; flex: none; }
.gp-rond-grand { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 6px 16px var(--gp-ombre); }
.gp-rond-grand.is-oui { color: #e5689b; } .gp-rond-grand.is-non { color: var(--gp-doux); }
.gp-champ { width: 100%; border: 2px solid var(--gp-trait); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--gp-encre); }
.gp-champ:focus { outline: none; border-color: var(--gp-vert); box-shadow: 0 0 0 4px var(--accent-soft); }
.gp-champ-grand { font-size: 24px; font-weight: 700; text-align: center; }
.gp-carte { display: grid; gap: 10px; text-align: left; background: var(--gp-carte); border: 1px solid var(--gp-trait); border-radius: 22px; padding: 16px; box-shadow: 0 2px 0 var(--gp-ombre); }
.gp-titre-carte { margin: 0; font-size: 18px; }
.gp-carte-tete { display: flex; justify-content: space-between; align-items: center; }
.gp-attente { color: var(--gp-doux); margin: 0; }
.gp-mentions { font-size: 11.5px; color: var(--gp-doux); margin: 0; line-height: 1.45; }
.gp-toast { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; background: var(--gp-encre); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; animation: gp-monte .3s ease-out; }
@keyframes gp-monte { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ouverture et présentation */
.gp-ouverture { flex: 1; border: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(circle at 50% 35%, #1f9e90, #0d5c55); color: #fff !important; }
.gp-logo { width: 150px; animation: gp-respire 2s ease-in-out infinite; }
.gp-marque { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.gp-slogan { font-size: 17px; opacity: .9; }
@keyframes gp-respire { 50% { transform: scale(1.06); } }
.gp-illus { width: 100%; height: auto; display: block; }
.gp-piece { animation: gp-flotte 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes gp-flotte { 50% { transform: translateY(-8px); } }
.gp-pulse { animation: gp-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gp-pulse { 50% { transform: scale(1.25); } }
.gp-scintille { animation: gp-scintille 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gp-scintille { 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }
.gp-intro { flex: 1; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 16px; padding: calc(16px + env(safe-area-inset-top)) 22px 26px; touch-action: pan-y; user-select: none; }
.gp-passer { justify-self: end; color: var(--gp-doux); text-decoration: none; }
.gp-intro-illus { align-self: center; padding: 0 10px; animation: gp-glisse .35s ease-out; }
.gp-intro-texte { text-align: center; animation: gp-glisse .35s ease-out; }
.gp-intro-texte h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; }
.gp-intro-texte p { margin: 0; color: var(--gp-doux); font-size: 16px; line-height: 1.45; }
@keyframes gp-glisse { from { opacity: 0; transform: translateX(24px); } }
.gp-points { display: flex; justify-content: center; gap: 8px; }
.gp-points button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--gp-trait); transition: width .2s; }
.gp-points button.is-on { width: 26px; background: var(--gp-vert); }

/* questionnaire */
.gp-quiz { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 18px 22px; }
.gp-quiz-haut { display: flex; align-items: center; gap: 12px; }
.gp-progres { flex: 1; height: 12px; border-radius: 99px; background: var(--gp-trait); overflow: hidden; }
.gp-progres i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gp-vert), var(--gp-vert-clair)); transition: width .4s ease; }
.gp-quiz-compte { font-size: 13px; font-weight: 700; color: var(--gp-doux); }
.gp-quiz-corps { flex: 1; min-height: 0; overflow-y: auto; animation: gp-glisse .3s ease-out; }
.gp-q { display: grid; gap: 14px; padding-top: 22px; }
.gp-q h2 { margin: 0; font-size: 26px; line-height: 1.18; }
.gp-q-emoji { margin: 0; font-size: 56px; line-height: 1; }
.gp-q-aide { margin: 0; color: var(--gp-doux); font-size: 15px; line-height: 1.4; }
.gp-surligne { background: linear-gradient(transparent 55%, var(--gp-or) 55%); padding: 0 3px; }
.gp-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-tuile { display: grid; gap: 8px; justify-items: center; align-content: center; text-align: center; min-height: 128px; padding: 14px 10px; border-radius: 20px; border: 2px solid var(--gp-trait); background: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 var(--gp-trait); transition: transform .12s, border-color .12s, background .12s; }
.gp-tuile > span { font-size: 40px; line-height: 1; transition: transform .2s; }
.gp-tuile:hover > span { transform: scale(1.15) rotate(-6deg); }
.gp-tuile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gp-trait); }
.gp-tuile.is-on { border-color: var(--gp-vert); background: var(--accent-soft); box-shadow: 0 4px 0 var(--gp-vert); }
.gp-tuiles-3 .gp-tuile-petite { min-height: 104px; font-size: 13.5px; }
.gp-tuiles-3 .gp-tuile-petite > span { font-size: 32px; }
.gp-reaction { position: absolute; left: 18px; right: 18px; top: 50%; z-index: 20; text-align: center; background: var(--gp-encre); color: #fff; border-radius: 20px; padding: 18px; font-size: 20px; font-weight: 800; animation: gp-pop .35s cubic-bezier(.3,1.6,.6,1); }
@keyframes gp-pop { from { transform: scale(.6); opacity: 0; } }
.gp-pile { position: relative; height: 330px; margin-top: 4px; }
.gp-swipe { position: absolute; inset: 0; border-radius: 28px; color: #fff; display: grid; align-content: end; gap: 6px; padding: 24px; box-shadow: 0 14px 30px rgba(27,31,59,.22); touch-action: none; cursor: grab; user-select: none; }
.gp-swipe.is-dessous { box-shadow: none; opacity: .55; }
.gp-swipe-ic { font-size: 92px; line-height: 1; position: absolute; top: 34px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0,0,0,.2)); }
.gp-swipe b { font-size: 28px; letter-spacing: -0.02em; }
.gp-swipe small { font-size: 15px; line-height: 1.35; opacity: .95; }
.gp-tampon { position: absolute; top: 22px; padding: 4px 12px; border: 4px solid; border-radius: 10px; font-size: 26px; font-weight: 900; letter-spacing: .05em; transform: rotate(-14deg); background: rgba(255,255,255,.15); }
.gp-tampon.is-oui { left: 20px; } .gp-tampon.is-non { right: 20px; transform: rotate(14deg); }
.gp-swipe-boutons { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 6px; }
.gp-risque { display: grid; justify-items: center; gap: 4px; padding: 18px 10px; border-radius: 24px; background: linear-gradient(135deg, #e7f6f2, #fde9e3); }
.gp-risque-ic { margin: 0; font-size: 76px; line-height: 1; transition: transform .2s; transform: rotate(calc((var(--v) - 50%) * 0.3)); }
.gp-risque-nom { margin: 0; font-size: 24px; font-weight: 800; }
.gp-curseur-bornes { width: 100%; display: flex; justify-content: space-between; font-size: 22px; }

/* curseur commun */
.gp-curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; margin: 10px 0 4px;
  background: linear-gradient(90deg, var(--gp-vert) 0 var(--v, 50%), var(--gp-trait) var(--v, 50%) 100%); }
.gp-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 4px solid var(--gp-vert); box-shadow: 0 3px 8px rgba(0,0,0,.2); cursor: grab; }
.gp-curseur::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--gp-vert); cursor: grab; }

/* portrait */
.gp-portrait > :not(.gp-confettis) { position: relative; z-index: 1; }
.gp-portrait { position: relative; flex: 1; overflow-y: auto; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px 22px; color: #fff; }
.gp-portrait h1 { margin: 0; font-size: 34px; color: #fff; }
.gp-portrait-ic { margin: 0; font-size: 110px; line-height: 1; animation: gp-pop .6s cubic-bezier(.3,1.6,.6,1); filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.gp-portrait-texte { margin: 0; font-size: 17px; line-height: 1.45; max-width: 320px; }
.gp-traits { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gp-traits li { background: rgba(255,255,255,.22); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.gp-xp-gagne { margin: 4px 0 8px; font-weight: 800; background: var(--gp-or); color: var(--gp-encre); border-radius: 99px; padding: 6px 14px; animation: gp-pop .5s .4s both cubic-bezier(.3,1.6,.6,1); }
.gp-confettis { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gp-confettis i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: gp-tombe 2.4s ease-in forwards; }
@keyframes gp-tombe { to { top: 105%; transform: rotate(540deg) translateX(30px); } }

/* compte */
.gp-compte h1 { margin: 0; font-size: 28px; }
.gp-sociaux { display: grid; gap: 8px; }
.gp-social { border-radius: 14px; padding: 13px; font-weight: 700; border: 2px solid var(--gp-trait); background: #fff; }
.gp-social.is-apple { background: #000; color: #fff !important; border-color: #000; }
.gp-social.is-google b { color: #4b6cf0; }
.gp-info { margin: 0; font-size: 13px; background: #fff6dd; border-radius: 10px; padding: 8px 10px; }
.gp-ou { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gp-doux); font-size: 13px; }
.gp-ou::before, .gp-ou::after { content: ""; flex: 1; height: 1px; background: var(--gp-trait); }
.gp-etiquette { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.gp-mdp { position: relative; display: block; } .gp-mdp .gp-lien { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.gp-force { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gp-force i { height: 5px; border-radius: 9px; background: var(--gp-trait); }
.gp-force i.is-1 { background: #e0675a; } .gp-force i.is-2 { background: #e8b84a; } .gp-force i.is-3, .gp-force i.is-4 { background: #2bb673; }
.gp-case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.gp-case input { width: 20px; height: 20px; accent-color: var(--gp-vert); flex: none; margin: 0; }
.gp-case small { color: var(--gp-doux); }
.gp-pied { display: grid; gap: 4px; justify-items: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gp-trait); background: var(--gp-fond); }

/* ce que tu loupes */
.gp-loupes { display: grid; gap: 14px; }
.gp-reglage { display: grid; }
.gp-reglage-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.gp-reglage-saisie { display: inline-flex; align-items: baseline; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 20px; }
.gp-reglage-saisie input { width: 7.5ch; border: 0; background: none; font: inherit; text-align: right; color: var(--gp-encre); padding: 0; }
.gp-reglage-saisie input:focus { outline: none; }
.gp-choix-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.gp-puce { border: 2px solid var(--gp-trait); background: #fff; border-radius: 99px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.gp-puce.is-on { border-color: var(--gp-vert); background: var(--accent-soft); }
.gp-resultat { text-align: center; justify-items: center; border: 0; color: #fff; background: linear-gradient(150deg, #1b1f3b, #3b2a6b); }
.gp-resultat.is-bravo { background: linear-gradient(150deg, #148a7e, #2bb673); }
.gp-resultat-sur { margin: 0; font-weight: 700; opacity: .85; }
.gp-resultat-chiffre { margin: 0; font-size: 48px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: var(--gp-or); font-variant-numeric: tabular-nums; }
.gp-resultat-chiffre.is-petit { font-size: 20px; color: #fff; }
.gp-resultat-sous { margin: 0; font-size: 14.5px; line-height: 1.45; opacity: .92; }
.gp-objets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 4px; }
.gp-objet { display: grid; justify-items: center; gap: 2px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 10px 4px; }
.gp-objet span { font-size: 30px; } .gp-objet b { font-size: 22px; } .gp-objet small { font-size: 11.5px; opacity: .85; line-height: 1.2; }
.gp-alerte { margin: 4px 0 0; font-size: 13.5px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 10px; }
.gp-barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gp-barres li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.gp-barres i { height: 14px; border-radius: 99px; background: #c9c3b6; transition: width .4s ease; }
.gp-barres i.is-livret { background: var(--gp-or); } .gp-barres i.is-bourse { background: var(--gp-vert); }

/* appli : barre d'onglets */
.gp-barre { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--gp-trait); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.gp-barre button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 700; color: var(--gp-doux); }
.gp-barre button.is-on { color: var(--gp-vert); }
.gp-barre button.is-on .gp-ic { transform: translateY(-2px) scale(1.08); }
.gp-ic { width: 28px; height: 28px; transition: transform .2s; }
.gp-ic-fond { fill: currentColor; } .gp-ic-or { fill: var(--gp-or); } .gp-ic-or-trait { stroke: var(--gp-or); }

/* accueil */
.gp-accueil, .gp-moi { display: grid; gap: 14px; }
.gp-tete { display: flex; justify-content: space-between; align-items: flex-start; }
.gp-tete h1 { margin: 2px 0 0; font-size: 28px; }
.gp-serie { background: #fff1e6; color: #d4561f; border-radius: 99px; padding: 6px 12px; font-weight: 800; }
.gp-niveau { display: flex; gap: 12px; align-items: center; }
.gp-niveau > div { flex: 1; display: grid; gap: 4px; }
.gp-niveau small { color: var(--gp-doux); }
.gp-niveau-ic { font-size: 34px; width: 52px; height: 52px; display: grid; place-items: center; background: #e7f6f2; border-radius: 16px; }
.gp-xp { height: 10px; border-radius: 99px; background: var(--gp-trait); overflow: hidden; }
.gp-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--gp-or), var(--gp-corail)); border-radius: 99px; }
.gp-carte-loupe { border: 0; color: #fff; background: linear-gradient(150deg, #1b1f3b, #3b2a6b); gap: 2px; }
.gp-carte-loupe small { opacity: .8; font-size: 14px; } .gp-carte-loupe strong { font-size: 38px; color: var(--gp-or); letter-spacing: -0.03em; } .gp-carte-loupe span { font-weight: 700; font-size: 14px; }
.gp-carte-paquet, .gp-carte-journal, .gp-carte-nolu { display: flex; align-items: center; gap: 14px; }
.gp-carte-paquet > span:nth-child(2), .gp-carte-journal > span:nth-child(2), .gp-carte-nolu > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.gp-carte-paquet small, .gp-carte-journal small, .gp-carte-nolu small { color: var(--gp-doux); }
.gp-carte-paquet { background: linear-gradient(120deg, #fff6dd, #ffe6dc); border-color: #f6dcb4; }
.gp-paquet-ic { font-size: 40px; animation: gp-secoue 2.2s ease-in-out infinite; }
.gp-carte-paquet.is-ouvert .gp-paquet-ic { animation: none; }
@keyframes gp-secoue { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } 95% { transform: rotate(-5deg); } }
.gp-fleche { font-size: 26px; color: var(--gp-doux); }
.gp-journal-ic, .gp-nolu-bulle { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #eef1ff; color: var(--gp-bleu); }
.gp-nolu-bulle { background: var(--gp-vert); color: #fff; }
.gp-feux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-feux button { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--gp-trait); background: var(--gp-fond); border-radius: 14px; padding: 10px; }
.gp-feux b { flex: 1; text-align: left; font-size: 14px; } .gp-feux span:last-child { font-size: 12.5px; font-weight: 700; color: var(--gp-doux); }

/* moi */
.gp-moi-carte { display: flex; gap: 14px; align-items: center; border-radius: 24px; padding: 20px; color: #fff; background: linear-gradient(160deg, #148a7e, #1b1f3b); }
.gp-moi-carte h1 { margin: 0; color: #fff; font-size: 26px; } .gp-moi-carte p { margin: 2px 0 0; opacity: .9; font-weight: 600; }
.gp-avatar { font-size: 48px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.gp-carte-compte { border: 2px dashed var(--gp-vert); background: var(--accent-soft); gap: 2px; }
.gp-carte-compte small { color: var(--gp-doux); }
.gp-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gp-badges li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 4px; border-radius: 16px; background: var(--surface-2); opacity: .55; }
.gp-badges li.is-ok { opacity: 1; background: #fff6dd; }
.gp-badges span { font-size: 28px; } .gp-badges b { font-size: 12.5px; } .gp-badges small { font-size: 10.5px; color: var(--gp-doux); line-height: 1.2; }
.gp-liste { padding: 4px 0; gap: 0; }
.gp-liste button { display: flex; justify-content: space-between; border: 0; background: none; padding: 14px 16px; font-weight: 700; text-align: left; border-bottom: 1px solid var(--gp-trait); }
.gp-liste button:last-child { border-bottom: 0; }
.gp-liste span { color: var(--gp-doux); }

/* feuille qui monte (jeu, ce que tu loupes) */
.gp-feuille { position: absolute; inset: 40px 0 0; z-index: 40; display: flex; flex-direction: column; background: var(--gp-fond); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: gp-feuille .3s ease-out; }
@keyframes gp-feuille { from { transform: translateY(100%); } }
.gp-feuille-tete { display: flex; justify-content: center; position: relative; padding: 10px; }
.gp-poignee { width: 42px; height: 5px; border-radius: 9px; background: var(--gp-trait); margin-top: 4px; }
.gp-feuille-tete .gp-rond { position: absolute; right: 12px; top: 8px; width: 32px; height: 32px; font-size: 15px; }

/* présentation dans Zeia : cadre de téléphone (PC) et plein écran (téléphone) */
.gp-scene { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; padding: 8px 0 24px; }
.gp-tel { width: 390px; height: 800px; border-radius: 48px; padding: 12px; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 2px #333; position: relative; }
.gp-tel::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; border-radius: 20px; background: #000; z-index: 60; }
.gp-tel-ecran { display: block; width: 100%; height: 100%; border: 0; border-radius: 38px; background: #f5f1ea; }
.gp-cadre .gp-intro, .gp-cadre .gp-defile, .gp-cadre .gp-portrait { padding-top: 46px; }
.gp-cadre .gp-feuille .gp-defile { padding-top: 8px; }
.gp-scene-aide { display: grid; gap: 12px; max-width: 460px; }
.gp-scene-aide h2 { margin: 0; }
.gp-scene-aide ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.gp-plein { position: fixed; inset: 0; z-index: 1000; height: 100dvh; }
.gp-lanceur { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; border-radius: 20px; padding: 16px; color: #fff; background: linear-gradient(135deg, #148a7e, #3b2a6b); }
.gp-lanceur b { display: block; font-size: 17px; } .gp-lanceur small { opacity: .9; }
.gp-lanceur > span:first-child { font-size: 34px; }
@media (max-width: 900px) { .gp-scene { grid-template-columns: 1fr; justify-items: center; } }
@media (prefers-reduced-motion: reduce) { .gp-app *, .gp-app *::before, .gp-app *::after { animation: none !important; transition: none !important; } }
.am-prez-courbe text.droite { fill: #b23b32; }
.am-prez-courbe .trait.droite { stroke-dasharray: 6 4; }
.am-prez-concept .am-rec-lectures .am-rec-courbes svg.am-prez-courbe { width: min(100%, calc(min(34vh, 320px) * 2.647)); }

/* ── AM-132/133/138 : planche des 3 pistes de DA (05/11/2026) ─────────────────────────────────── */
@font-face { font-family: "GP Fraunces"; src: url(/fonts/gp/fraunces-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Fraunces"; src: url(/fonts/gp/fraunces-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GP Fraunces"; src: url(/fonts/gp/fraunces-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GP Fraunces"; src: url(/fonts/gp/fraunces-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "GP Grotesk"; src: url(/fonts/gp/space-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Grotesk"; src: url(/fonts/gp/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GP Grotesk"; src: url(/fonts/gp/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GP Archivo Black"; src: url(/fonts/gp/archivo-black-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Instrument"; src: url(/fonts/gp/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Instrument"; src: url(/fonts/gp/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GP Inter"; src: url(/fonts/gp/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Inter"; src: url(/fonts/gp/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

.gp-scene-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gpda-planche { display: grid; gap: 26px; }
.gpda-planche > p { margin: 0; }
.gpda-piste { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.gpda-piste.is-choisie { border: 2px solid var(--accent); }
.gpda-piste-tete { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.gpda-piste-tete h3 { margin: 0 0 4px; font-size: 20px; }
.gpda-piste-tete p { margin: 0 0 4px; }
.gpda-piste-tete dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13.5px; }
.gpda-piste-tete dt { font-weight: 700; }
.gpda-piste-tete dd { margin: 0; }
.gpda-nuancier { display: flex; gap: 6px; }
.gpda-nuancier i { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); }
.gpda-ecrans { display: grid; grid-template-columns: repeat(4, 250px); gap: 18px; overflow-x: auto; padding-bottom: 6px; }
.gpda-cadre { margin: 0; display: grid; gap: 6px; justify-items: center; }
.gpda-cadre figcaption { font-size: 12.5px; color: var(--fg-3); }
.gpda-ecran { position: relative; width: 250px; height: 520px; border-radius: 30px; overflow: hidden; border: 8px solid #111; background: var(--d-fond); color: var(--d-encre); font-family: var(--d-texte); display: flex; flex-direction: column; }
.gpda-ecran.is-sombre { background: linear-gradient(180deg, #1c2733, #3a2f45); color: #fff; }
.gpda-ecran h3 { margin: 0; font-family: var(--d-titre); color: inherit; }
.gpda-acc { flex: 1; display: grid; gap: 10px; align-content: start; padding: 18px 14px 8px; }
.gpda-acc-tete { display: flex; justify-content: space-between; align-items: flex-start; }
.gpda-acc-tete small { font-size: 11px; opacity: .7; }
.gpda-acc-tete h3 { font-size: 24px; line-height: 1.05; }
.gpda-serie { font-weight: 700; font-size: 12px; padding: 4px 8px; }
.gpda-loupe { display: grid; gap: 0; padding: 12px; }
.gpda-loupe small { font-size: 11px; } .gpda-loupe strong { font-family: var(--d-titre); font-size: 40px; line-height: 1.05; } .gpda-loupe span { font-size: 12px; }
.gpda-paquet { display: grid; grid-template-columns: 1fr auto; padding: 10px 12px; font-size: 12px; }
.gpda-paquet b { font-size: 13.5px; } .gpda-paquet span { grid-row: 2; opacity: .75; } .gpda-paquet i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 20px; }
.gpda-feux { display: grid; gap: 4px; font-size: 12.5px; padding: 10px 12px; }
.gpda-feux p { margin: 0; display: flex; align-items: center; gap: 8px; } .gpda-feux em { margin-left: auto; font-style: normal; font-weight: 700; }
.gpda-feux span { width: 10px; height: 10px; border-radius: 50%; } .f-v { background: #2a9d5c; } .f-o { background: #e0a21a; } .f-r { background: #d8342b; }
.gpda-barre { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px 8px; border-top: 1px solid var(--d-trait); background: var(--d-barre); }
.gpda-barre span { display: grid; justify-items: center; font-size: 9px; color: var(--d-doux); } .gpda-barre span.is-on { color: var(--d-accent); }
.gpda-barre i { font-style: normal; } .gpda-barre .gp-ic { width: 22px; height: 22px; }
.gpda-nolu { position: absolute; right: 12px; bottom: 62px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: var(--d-sur-accent); }
.gpda-nolu .gp-ic { width: 26px; height: 26px; }
.gpda-q { flex: 1; display: grid; gap: 10px; align-content: start; padding: 18px 14px 70px; }
.gpda-q-haut { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.gpda-q-prog { flex: 1; height: 6px; background: var(--d-trait); } .gpda-q-prog i { display: block; width: 33%; height: 100%; background: var(--d-accent); }
.gpda-q-sur { margin: 6px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--d-accent2, var(--d-accent)); font-weight: 700; }
.gpda-q h3 { font-size: 22px; line-height: 1.12; }
.gpda-q-rep { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.gpda-q-rep li { display: flex; gap: 10px; align-items: center; padding: 10px; font-size: 13.5px; font-weight: 500; }
.gpda-q-rep b { width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; flex: none; }
.gpda-q-pourquoi { margin: 0; font-size: 11px; line-height: 1.35; opacity: .8; }
.gpda-fond-carte { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; padding: 14px; }
.gpda-aide { margin: 0; font-size: 11px; opacity: .7; }
.gpda-carte { all: unset; box-sizing: border-box; width: 196px; height: 290px; display: flex; flex-direction: column; gap: 6px; padding: 12px; cursor: pointer; position: relative; overflow: hidden; transition: transform .35s; }
.gpda-carte:active { transform: rotateY(12deg) scale(.98); }
.gpda-carte:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 3px; }
.gpda-carte-tete { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gpda-carte-illus { display: block; height: 110px; overflow: hidden; }
.gpda-motif { width: 100%; height: 100%; display: block; }
.gpda-carte-nom { font-family: var(--d-titre); font-size: 26px; line-height: 1; }
.gpda-carte-sous { font-size: 10.5px; opacity: .75; }
.gpda-carte-stat { display: flex; align-items: baseline; gap: 6px; margin-top: auto; } .gpda-carte-stat strong { font-family: var(--d-titre); font-size: 28px; line-height: 1; } .gpda-carte-stat small { font-size: 10px; }
.gpda-carte-pied { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.gpda-verso-ligne { display: grid; gap: 1px; font-size: 11.5px; line-height: 1.25; } .gpda-verso-ligne small { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.gpda-carte.is-verso .gpda-carte-pied { margin-top: auto; }
.gpda-verrou { flex: 1; display: grid; gap: 7px; align-content: start; padding: 26px 10px; }
.gpda-heure { margin: 0; text-align: center; font-size: 54px; font-weight: 600; letter-spacing: -0.02em; font-family: -apple-system, system-ui, sans-serif; line-height: 1; }
.gpda-date { margin: 0 0 14px; text-align: center; font-size: 13px; font-family: -apple-system, system-ui, sans-serif; }
.gpda-notif { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 9px 10px; border-radius: 16px; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); font-family: -apple-system, system-ui, sans-serif; font-size: 11.5px; line-height: 1.3; }
.gpda-notif b { display: block; font-size: 12px; } .gpda-notif small { font-size: 10px; opacity: .75; }
.gpda-notif-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--d-icone); }
.gpda-canaux { display: grid; gap: 10px; }
.gpda-canaux h3, .gpda-canaux p { margin: 0; }
.gpda-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gpda-table th, .gpda-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.gpda-table thead th { font-size: 12px; color: var(--fg-3); }

/* Piste A · Kiosque */
.gpda-kiosque { --d-fond: #f3eee3; --d-encre: #141414; --d-accent: #e2231a; --d-sur-accent: #fff; --d-accent2: #1f3a8a; --d-trait: #141414; --d-doux: #6d675c; --d-barre: #f3eee3;
  --d-titre: "GP Fraunces", Georgia, serif; --d-texte: "GP Grotesk", system-ui, sans-serif;
  --d-icone: #e2231a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ctext x='13' y='19' text-anchor='middle' font-family='Georgia' font-weight='900' font-size='17' fill='%23fff'%3EP%3C/text%3E%3C/svg%3E"); }
.gpda-kiosque .gpda-ecran:not(.is-sombre) { background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 4px 4px; }
.gpda-kiosque .gpda-acc-tete h3 { font-weight: 900; font-size: 27px; }
.gpda-kiosque .gpda-acc-tete { border-bottom: 3px double #141414; padding-bottom: 6px; }
.gpda-kiosque .gpda-serie { border: 2px solid #141414; font-family: var(--d-titre); }
.gpda-kiosque .gpda-loupe { border: 2px solid #141414; background: #fff; }
.gpda-kiosque .gpda-loupe strong { color: #e2231a; font-weight: 900; }
.gpda-kiosque .gpda-loupe small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.gpda-kiosque .gpda-paquet { background: #141414; color: #f3eee3; }
.gpda-kiosque .gpda-feux { border-top: 1px solid #141414; border-bottom: 1px solid #141414; }
.gpda-kiosque .gpda-feux b { font-family: var(--d-titre); font-style: italic; }
.gpda-kiosque .gpda-nolu { border-radius: 0; box-shadow: 3px 3px 0 #141414; }
.gpda-kiosque .gpda-q h3 { font-weight: 900; }
.gpda-kiosque .gpda-q-rep li { border: 1.5px solid #141414; background: #fff; }
.gpda-kiosque .gpda-q-rep li.is-on { background: #141414; color: #f3eee3; }
.gpda-kiosque .gpda-q-rep b { border: 1.5px solid currentColor; border-radius: 50%; font-family: var(--d-titre); }
.gpda-kiosque .gpda-carte { background: #fbf7ec; color: #141414; border: 3px solid #141414; box-shadow: inset 0 0 0 4px #fbf7ec, inset 0 0 0 5px #141414, 5px 5px 0 #141414; }
.gpda-kiosque .gpda-carte-tete { background: #e2231a; color: #fff; margin: -2px -2px 0; padding: 4px 6px; }
.gpda-kiosque .gpda-carte-illus { border: 1.5px solid #141414; background: #f6e7c9; }
.gpda-kiosque .gpda-soleil { fill: #e2231a; } .gpda-kiosque .gpda-trame-pt { fill: #8c120c; } .gpda-kiosque .gpda-vague { stroke: #1f3a8a; stroke-width: 2.4; fill: none; } .gpda-kiosque .gpda-mont { fill: #141414; }
.gpda-kiosque .gpda-carte-nom { font-weight: 900; }
.gpda-kiosque .gpda-carte-stat strong { color: #e2231a; font-weight: 900; }
.gpda-kiosque .gpda-rarete { border: 1px solid #fff; padding: 0 4px; }

/* Piste B · Arcade */
.gpda-arcade { --d-fond: #fff8e1; --d-encre: #111; --d-accent: #2d5bff; --d-sur-accent: #fff; --d-accent2: #ff5fa2; --d-trait: #111; --d-doux: #444; --d-barre: #fff;
  --d-titre: "GP Archivo Black", Impact, sans-serif; --d-texte: "GP Grotesk", system-ui, sans-serif; --d-icone: #ffd400; }
.gpda-arcade .gpda-acc-tete h3 { font-size: 22px; text-transform: uppercase; }
.gpda-arcade .gpda-serie { background: #ff5fa2; border: 2.5px solid #111; border-radius: 99px; box-shadow: 2px 2px 0 #111; transform: rotate(6deg); }
.gpda-arcade .gpda-loupe, .gpda-arcade .gpda-paquet, .gpda-arcade .gpda-feux { border: 2.5px solid #111; border-radius: 14px; box-shadow: 4px 4px 0 #111; }
.gpda-arcade .gpda-loupe { background: #2d5bff; color: #fff; } .gpda-arcade .gpda-loupe strong { color: #ffd400; -webkit-text-stroke: 1px #111; }
.gpda-arcade .gpda-paquet { background: #ffd400; } .gpda-arcade .gpda-feux { background: #fff; }
.gpda-arcade .gpda-barre { border-top: 2.5px solid #111; }
.gpda-arcade .gpda-nolu { border: 2.5px solid #111; box-shadow: 3px 3px 0 #111; }
.gpda-arcade .gpda-q-prog { border: 2px solid #111; height: 12px; border-radius: 99px; background: #fff; } .gpda-arcade .gpda-q-prog i { background: #ff5fa2; border-radius: 99px; }
.gpda-arcade .gpda-q h3 { font-size: 19px; text-transform: uppercase; line-height: 1.15; }
.gpda-arcade .gpda-q-rep li { border: 2.5px solid #111; border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 #111; font-weight: 700; }
.gpda-arcade .gpda-q-rep li.is-on { background: #ffd400; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.gpda-arcade .gpda-q-rep b { background: #111; color: #fff; border-radius: 6px; }
.gpda-arcade .gpda-fond-carte { background: #2d5bff; }
.gpda-arcade .gpda-aide { color: #fff; }
.gpda-arcade .gpda-carte { background: #ffd400; color: #111; border: 3px solid #111; border-radius: 16px; box-shadow: 6px 6px 0 #111; }
.gpda-arcade .gpda-carte::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.65) 50%, transparent 60%); animation: gpda-brille 3s ease-in-out infinite; pointer-events: none; }
@keyframes gpda-brille { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.gpda-arcade .gpda-carte-illus { border: 2.5px solid #111; border-radius: 10px; background: #ff5fa2; }
.gpda-arcade .gpda-soleil { fill: #fff; stroke: #111; stroke-width: 2.5; } .gpda-arcade .gpda-trame { display: none; } .gpda-arcade .gpda-vague { stroke: #111; stroke-width: 3; fill: none; } .gpda-arcade .gpda-mont { fill: #2d5bff; stroke: #111; stroke-width: 2.5; }
.gpda-arcade .gpda-carte-nom { text-transform: uppercase; font-size: 22px; }
.gpda-arcade .gpda-rarete { background: #ff5fa2; border: 2px solid #111; border-radius: 99px; padding: 0 6px; transform: rotate(-6deg); }
.gpda-arcade .gpda-carte-stat strong { background: #111; color: #ffd400; padding: 2px 6px; border-radius: 6px; font-size: 22px; }

/* Piste C · Maison */
.gpda-maison { --d-fond: #f5f1ea; --d-encre: #0f2a28; --d-accent: #1d6b66; --d-sur-accent: #f5f1ea; --d-accent2: #b8925a; --d-trait: #d9cfbf; --d-doux: #7b847f; --d-barre: #f5f1ea;
  --d-titre: var(--gp-serif, "GP Instrument", Georgia, serif); --d-texte: "GP Inter", system-ui, sans-serif;
  --d-icone: #0f2a28 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ctext x='13' y='19' text-anchor='middle' font-family='Georgia' font-style='italic' font-size='18' fill='%23b8925a'%3EP%3C/text%3E%3C/svg%3E"); }
.gpda-maison .gpda-acc-tete h3 { font-size: 30px; font-weight: 400; }
.gpda-maison .gpda-serie { color: #b8925a; border: 1px solid #b8925a; border-radius: 99px; font-weight: 600; }
.gpda-maison .gpda-loupe { background: #0f2a28; color: #f5f1ea; border-radius: 16px; padding: 14px; }
.gpda-maison .gpda-loupe strong { color: #d9b77e; font-weight: 400; font-size: 44px; }
.gpda-maison .gpda-loupe small { letter-spacing: .1em; text-transform: uppercase; font-size: 9.5px; opacity: .8; }
.gpda-maison .gpda-paquet { border: 1px solid #b8925a; border-radius: 14px; }
.gpda-maison .gpda-feux { border-top: 1px solid var(--d-trait); }
.gpda-maison .gpda-feux b { font-family: var(--d-titre); font-size: 17px; font-weight: 400; }
.gpda-maison .gpda-nolu { box-shadow: 0 6px 14px rgba(15,42,40,.3); }
.gpda-maison .gpda-q h3 { font-weight: 400; font-size: 25px; }
.gpda-maison .gpda-q-rep li { border-bottom: 1px solid var(--d-trait); padding: 11px 4px; }
.gpda-maison .gpda-q-rep li.is-on { color: #1d6b66; font-weight: 600; } .gpda-maison .gpda-q-rep li.is-on b { background: #1d6b66; color: #fff; }
.gpda-maison .gpda-q-rep b { border: 1px solid #b8925a; border-radius: 50%; color: #b8925a; font-weight: 600; }
.gpda-maison .gpda-fond-carte { background: #e8e1d4; }
.gpda-maison .gpda-carte { background: radial-gradient(120% 80% at 20% 0%, #24524e, #0f2a28 60%); color: #f5f1ea; border-radius: 14px; box-shadow: inset 0 0 0 1px #b8925a, inset 0 0 0 5px #0f2a28, inset 0 0 0 6px rgba(184,146,90,.6), 0 14px 26px rgba(15,42,40,.35); padding: 16px; }
.gpda-maison .gpda-carte-tete { color: #d9b77e; font-weight: 600; }
.gpda-maison .gpda-carte-illus { border-top: 1px solid rgba(184,146,90,.6); border-bottom: 1px solid rgba(184,146,90,.6); }
.gpda-maison .gpda-soleil { fill: none; stroke: #d9b77e; stroke-width: 1.4; } .gpda-maison .gpda-trame { opacity: .35; } .gpda-maison .gpda-trame-pt { fill: #d9b77e; } .gpda-maison .gpda-vague { stroke: #d9b77e; stroke-width: 1.2; fill: none; } .gpda-maison .gpda-mont { fill: none; stroke: #f5f1ea; stroke-width: 1.2; }
.gpda-maison .gpda-carte-nom { font-style: italic; font-size: 30px; }
.gpda-maison .gpda-carte-stat strong { color: #d9b77e; font-weight: 400; font-size: 32px; }
@media (max-width: 1100px) { .gpda-piste-tete { grid-template-columns: 1fr; } }
/* AM-116 : prévisions des institutions (une ligne par zone) */
.am-rec-prev { display: grid; gap: 10px; }
.am-rec-prev .outils { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.am-rec-prev .lignes { --g: 150px; --dr: 90px; position: relative; display: grid; gap: 2px; }
.am-rec-prev .zero { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #a8875a; }
.am-rec-prev .ligne { display: grid; grid-template-columns: var(--g) 1fr var(--dr); align-items: center; min-height: 34px; cursor: pointer; border-radius: 6px; }
.am-rec-prev .ligne:hover, .am-rec-prev .ligne.ouvert { background: color-mix(in srgb, #1D6B66 6%, transparent); }
.am-rec-prev .ligne.fr .zone { font-weight: 700; }
.am-rec-prev .zone { padding-left: 8px; font-size: 15px; }
.am-rec-prev .piste { position: relative; height: 22px; }
.am-rec-prev .piste::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #dfe6e5; }
.am-rec-prev .fourchette { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); background: #c9d6d4; border-radius: 3px; }
.am-rec-prev .pt { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.am-rec-prev .moy { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%) rotate(45deg); background: #17262a; border: 2px solid #fff; }
.am-rec-prev .v { text-align: right; padding-right: 8px; font-size: 15px; }
.am-rec-prev .v em { color: #8a9a9c; font-size: 13px; }
.am-rec-prev .detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 8px 8px; font-size: 13px; }
.am-rec-prev .detail i, .am-rec-prev .legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.am-rec-prev .legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.am-rec-prev .legende i.moy { position: static; display: inline-block; transform: rotate(45deg); width: 9px; height: 9px; border-radius: 0; border: 0; margin-right: 8px; }
@media (max-width: 760px) { .am-rec-prev .lignes { --g: 92px; --dr: 64px; } .am-rec-prev .zone, .am-rec-prev .v { font-size: 13px; } }
.am-rec-prev .ligne { min-height: 28px; }
.am-rec-prev .graduation { cursor: default; min-height: 18px; }
.am-rec-prev .graduation:hover { background: none; }
.am-rec-prev .graduation em { position: absolute; transform: translateX(-50%); font: normal 12px/1 var(--font-sans, inherit); color: #8a9a9c; top: 2px; }
.am-rec-contrib { display: grid; gap: 8px; }
.am-rec-contrib .legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.am-rec-contrib .legende i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.am-rec-contrib .legende i.ligne { height: 3px; width: 18px; background: #17262a; vertical-align: 3px; }
.am-rec-contrib .total { fill: none; stroke: #17262a; stroke-width: 2.5; }
.am-rec-contrib .lecture { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.am-rec-contrib .lecture i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.am-prez-concept .am-rec-contrib svg { width: min(100%, calc(min(34vh, 320px) * 2.81)); height: auto; display: block; margin: 0 auto; }


/* ── AM-132 : DA retenue par Thomas le 05/11, « mélange » : base C Maison, cartes A Kiosque, quiz B Arcade ─ */
.gp-app {
  --gp-encre: #0f2a28; --gp-fond: #f5f1ea; --gp-carte: #fbf8f2; --gp-trait: #d9cfbf; --gp-doux: #667370; --gp-ombre: rgba(15,42,40,.08);
  --gp-vert: #1d6b66; --gp-vert-clair: #7fb5ab; --gp-or: #b8925a; --gp-or-clair: #d9b77e; --gp-corail: #b8925a; --gp-bleu: #1d6b66;
  --surface-2: #efe9dd; --border-strong: #c9bda8; --fg-2: #2c4441; --accent-soft: #dcebe7;
  font-family: "GP Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gp-app h1, .gp-app .gp-titre-carte { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; letter-spacing: -0.01em; }
.gp-app .gp-titre-carte { font-size: 22px; }
.gp-app .gp-entete-simple h1, .gp-app .gp-tete h1, .gp-app .gp-compte h1 { font-size: 34px; line-height: 1.05; }
.gp-sur { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.gp-tete .gp-sur { text-transform: capitalize; letter-spacing: 0; font-size: 13px; font-weight: 400; }
.gp-carte { background: var(--gp-carte); border-radius: 16px; box-shadow: none; }
.gp-bouton { border-radius: 12px; box-shadow: none; font-weight: 600; font-size: 16px; background: var(--gp-vert); }
.gp-bouton:active { transform: scale(.985); box-shadow: none; }
.gp-bouton-or { background: var(--gp-or-clair); color: var(--gp-encre) !important; }
.gp-lien { color: var(--gp-vert); }
.gp-rond { border-color: var(--gp-trait); background: var(--gp-carte); }
.gp-toast { background: var(--gp-encre); color: var(--gp-or-clair); font-weight: 600; bottom: 148px; }
.gp-fermer { color: var(--gp-encre); font-size: 22px; line-height: 1; }
/* ouverture et présentation */
.gp-ouverture { background: #0f2a28; }
.gp-marque { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 46px; letter-spacing: -0.01em; color: var(--gp-or-clair); }
.gp-slogan { color: #f5f1ea; font-size: 15px; }
.gp-intro-texte h2 { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 32px; line-height: 1.08; }
.gp-points button.is-on { background: var(--gp-or); }
/* accueil */
.gp-serie { background: none; border: 1px solid var(--gp-or); color: var(--gp-or); font-weight: 600; font-size: 13px; padding: 4px 10px; }
.gp-niveau { display: grid; gap: 6px; }
.gp-niveau-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.gp-niveau-ligne b { font-weight: 600; } .gp-niveau-ligne small { color: var(--gp-doux); font-size: 12px; }
.gp-xp { height: 4px; } .gp-xp i { background: var(--gp-or); }
.gp-carte-loupe { background: #0f2a28; color: #f5f1ea; border: 0; padding: 18px; }
.gp-carte-loupe small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.gp-carte-loupe strong { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 52px; line-height: 1.05; color: var(--gp-or-clair); letter-spacing: -0.01em; }
.gp-carte-loupe span { font-weight: 400; font-size: 13px; color: #cfd8d5; }
.gp-carte-paquet { background: var(--gp-carte); border: 1px solid var(--gp-or); }
.gp-paquet-ic { width: 54px; animation: none; flex: none; }
.gp-paquet-ic .gp-motif .m-a { fill: #e2231a; } .gp-paquet-ic .gp-motif .m-b { fill: #141414; } .gp-paquet-ic .gp-motif .m-t { stroke: #fbf7ec; stroke-width: 3; }
.gp-carte-paquet b, .gp-carte-journal b { font-weight: 600; }
.gp-journal-ic { background: var(--accent-soft); color: var(--gp-vert); }
.gp-feux button { background: none; border: 0; border-bottom: 1px solid var(--gp-trait); border-radius: 0; padding: 9px 2px; }
.gp-feux { grid-template-columns: 1fr; gap: 0; }
.gp-feux li:last-child button { border-bottom: 0; }
.gp-feux b { font-weight: 400; }
.gp-feux span:last-child { font-size: 14px; color: var(--gp-encre); font-weight: 600; }
.gp-barre { background: var(--gp-fond); }
.gp-barre button { font-weight: 500; }
.gp-ic-or { fill: var(--gp-or); } .gp-ic-or-trait { stroke: var(--gp-or); }
.gp-nolu-flottant { position: absolute; right: 14px; bottom: 78px; z-index: 20; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--gp-vert); color: #f5f1ea; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15,42,40,.3); }
.gp-carte-macro { background: none; border: 1px solid var(--gp-vert); gap: 2px; }
.gp-carte-macro small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gp-or); font-weight: 600; }
.gp-carte-macro b { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 22px; }
.gp-carte-macro span { font-size: 13px; color: var(--gp-doux); }
.gp-app .am-contact-bouton > span:first-child { display: none; }
/* moi */
.gp-moi-carte { background: #0f2a28; border-radius: 16px; }
.gp-moi-carte h1 { font-size: 34px; color: #f5f1ea; } .gp-moi-carte p { font-size: 13px; font-weight: 400; color: #cfd8d5; }
.gp-avatar { background: none; border: 1px solid var(--gp-or-clair); width: 66px; height: 66px; padding: 8px; flex: none; }
.gp-avatar .m-a { fill: var(--gp-or-clair); } .gp-avatar .m-b { fill: #0f2a28; } .gp-avatar .m-t { stroke: var(--gp-or-clair); stroke-width: 3; }
.gp-badges li { background: none; border: 1px solid var(--gp-trait); opacity: 1; }
.gp-badges li .gp-motif { width: 42px; } .gp-badges li .m-a { fill: var(--gp-trait); } .gp-badges li .m-b { fill: var(--gp-carte); } .gp-badges li .m-t { stroke: var(--gp-trait); stroke-width: 3; }
.gp-badges li b { color: var(--gp-doux); font-weight: 500; }
.gp-badges li.is-ok { background: none; border-color: var(--gp-or); }
.gp-badges li.is-ok .m-a { fill: var(--gp-vert); } .gp-badges li.is-ok .m-b { fill: var(--gp-or-clair); } .gp-badges li.is-ok .m-t { stroke: var(--gp-or); }
.gp-badges li.is-ok b { color: var(--gp-encre); font-weight: 600; }
.gp-liste button { font-weight: 500; }
.gp-carte-compte { border: 1px solid var(--gp-or); background: var(--gp-carte); }
.gp-carte-compte b { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 22px; }
/* ce que tu loupes */
.gp-curseur { height: 4px; background: linear-gradient(90deg, var(--gp-vert) 0 var(--v, 50%), var(--gp-trait) var(--v, 50%) 100%); }
.gp-curseur::-webkit-slider-thumb { width: 26px; height: 26px; border: 2px solid var(--gp-vert); box-shadow: 0 2px 6px rgba(15,42,40,.2); }
.gp-reglage { gap: 4px; } .gp-reglage-tete { font-weight: 500; font-size: 14px; }
.gp-reglage-saisie { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 24px; background: none; border-bottom: 1px solid var(--gp-or); border-radius: 0; padding: 0 2px; }
.gp-choix-ligne { font-weight: 500; font-size: 14px; }
.gp-puce { border-width: 1px; font-weight: 500; font-size: 13px; background: none; } .gp-puce.is-on { border-color: var(--gp-vert); background: var(--gp-vert); color: #f5f1ea !important; }
.gp-resultat, .gp-resultat.is-bravo { background: #0f2a28; color: #f5f1ea; }
.gp-resultat-sur { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.gp-resultat-chiffre { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 58px; color: var(--gp-or-clair); }
.gp-resultat-chiffre.is-petit { font-size: 24px; line-height: 1.15; color: #f5f1ea; }
.gp-objet { background: none; border: 1px solid rgba(217,183,126,.45); border-radius: 12px; padding: 8px 4px; }
.gp-objet .gp-motif { width: 38px; } .gp-objet .m-a { fill: var(--gp-or-clair); } .gp-objet .m-b { fill: #5d8c85; } .gp-objet .m-t { stroke: #f5f1ea; stroke-width: 2.5; }
.gp-objet .m-texte { font: 400 26px var(--gp-serif, "GP Instrument", Georgia, serif); fill: #0f2a28; }
.gp-objet b { font-family: var(--gp-serif, "GP Instrument", Georgia, serif); font-weight: 400; font-size: 26px; color: #f5f1ea; }
.gp-alerte { background: none; border-top: 1px solid rgba(217,183,126,.45); border-radius: 0; padding: 8px 0 0; }
.gp-barres i { height: 8px; background: var(--gp-trait); } .gp-barres i.is-livret { background: var(--gp-or); } .gp-barres i.is-bourse { background: var(--gp-vert); }
/* compte */
.gp-champ { border-width: 1px; border-radius: 10px; background: var(--gp-carte); }
.gp-etiquette { font-weight: 500; }
.gp-social { border-width: 1px; border-radius: 12px; font-weight: 500; background: var(--gp-carte); }
.gp-social.is-apple { background: #0f2a28; border-color: #0f2a28; }
/* feuille */
.gp-feuille { background: var(--gp-fond); border-radius: 18px 18px 0 0; }
.gp-cadre .gp-feuille { inset: 44px 0 0; }
.gp-motif { display: block; width: 100%; height: auto; }
.gp-motif .m-t { stroke: currentColor; stroke-width: 3; fill: none; }
.gp-motif .m-t.m-plein { fill: currentColor; } .gp-motif .m-t.m-epais { stroke-width: 6; }

/* Révélation du profil : base Maison, carte Kiosque */
.gp-portrait { background: #0f2a28; align-content: start; gap: 12px; padding: 34px 20px 24px; }
.gp-portrait-carte { flex: none; margin: 4px auto; }
.gp-traits li { background: none; border: 1px solid rgba(217,183,126,.55); color: #f5f1ea; font-weight: 500; font-size: 12.5px; padding: 4px 10px; }
.gp-change { width: 100%; text-align: left; color: #f5f1ea; font-size: 13.5px; line-height: 1.4; border-top: 1px solid rgba(217,183,126,.45); padding-top: 10px; }
.gp-change b { font: 400 20px var(--gp-serif, "GP Instrument", Georgia, serif); color: var(--gp-or-clair); }
.gp-change ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 3px; }

/* ── Cartes à collectionner : piste A Kiosque ─────────────────────────────────────────────────── */
.gpk-zone { display: grid; gap: 10px; }
.gpk-carte { all: unset; box-sizing: border-box; position: relative; display: block; width: 230px; height: 340px; cursor: pointer; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.3, 1.2, .5, 1); font-family: "GP Grotesk", system-ui, sans-serif; color: #141414; margin: 0 auto; }
.gpk-carte:focus-visible { outline: 3px solid #e2231a; outline-offset: 4px; }
.gpk-carte.is-vue { transform: rotateY(180deg); }
.gpk-dos, .gpk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-sizing: border-box; border: 3px solid #141414; box-shadow: inset 0 0 0 4px #fbf7ec, inset 0 0 0 5px #141414, 5px 5px 0 rgba(0,0,0,.85); }
.gpk-dos { background: #141414 radial-gradient(rgba(226,35,26,.75) 1.3px, transparent 1.4px) 0 0 / 7px 7px; display: grid; place-content: center; justify-items: center; gap: 10px; box-shadow: inset 0 0 0 4px #141414, inset 0 0 0 5px #fbf7ec, 5px 5px 0 rgba(0,0,0,.85); }
.gpk-dos-embleme { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fbf7ec; border: 3px solid #141414; font: 900 56px "GP Fraunces", Georgia, serif; color: #e2231a; }
.gpk-dos-serie { background: #fbf7ec; padding: 2px 8px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.gpk-face { transform: rotateY(180deg); background: #fbf7ec; padding: 12px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.gpk-tete { display: flex; justify-content: space-between; align-items: center; background: #e2231a; color: #fff; padding: 4px 7px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gpk-rarete { border: 1px solid #fff; padding: 0 4px; }
.gpk-carte.is-legendaire .gpk-tete { background: #141414; } .gpk-carte.is-legendaire .gpk-rarete { background: #e2231a; border-color: #e2231a; }
.gpk-carte.is-commune .gpk-tete { background: #1f3a8a; }
.gpk-illus { display: block; height: 118px; flex: none; border: 1.5px solid #141414; background: #f6e7c9 radial-gradient(rgba(20,20,20,.13) 1px, transparent 1.2px) 0 0 / 4px 4px; padding: 6px 0; }
.gpk-illus .gp-motif { height: 100%; width: 100%; }
.gpk-illus .m-a { fill: #e2231a; } .gpk-illus .m-b { fill: #141414; } .gpk-illus .m-t { stroke: #141414; stroke-width: 3; }
.gpk-genre { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #1f3a8a; margin-top: 3px; }
.gpk-nom { font: 900 24px/1.02 "GP Fraunces", Georgia, serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gpk-stat { display: flex; align-items: center; gap: 8px; } .gpk-stat strong { font: 900 30px/1 "GP Fraunces", Georgia, serif; color: #e2231a; }
.gpk-texte { font-size: 11.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gpk-pied { margin-top: auto; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #6d675c; border-top: 1px solid #141414; padding-top: 3px; }
.gpk-cartes { display: grid; gap: 12px; }
.gpk-eventail { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 14px 14px; margin: 0 -16px; perspective: 1000px; }
.gpk-eventail .gpk-carte { scroll-snap-align: center; }
.gpk-paquet { all: unset; box-sizing: border-box; display: block; position: relative; width: 210px; margin: 6px auto; cursor: pointer; font-family: "GP Grotesk", system-ui, sans-serif; color: #fbf7ec; text-align: center; }
.gpk-paquet:focus-visible { outline: 3px solid #e2231a; outline-offset: 4px; }
.gpk-paquet-haut { display: block; height: 22px; background: repeating-linear-gradient(90deg, #141414 0 7px, #2a2a2a 7px 14px); clip-path: polygon(0 100%, 4% 40%, 8% 100%, 12% 40%, 16% 100%, 20% 40%, 24% 100%, 28% 40%, 32% 100%, 36% 40%, 40% 100%, 44% 40%, 48% 100%, 52% 40%, 56% 100%, 60% 40%, 64% 100%, 68% 40%, 72% 100%, 76% 40%, 80% 100%, 84% 40%, 88% 100%, 92% 40%, 96% 100%, 100% 40%, 100% 100%); transition: transform .6s ease, opacity .6s; }
.gpk-paquet.is-dechire .gpk-paquet-haut { transform: translate(40px, -46px) rotate(18deg); opacity: 0; }
.gpk-paquet.is-dechire .gpk-paquet-corps { animation: gpk-secoue .55s ease; }
@keyframes gpk-secoue { 25% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.03); } 75% { transform: rotate(-2deg); } }
.gpk-paquet-corps { display: grid; justify-items: center; gap: 6px; padding: 16px 12px 18px; background: #141414 radial-gradient(rgba(226,35,26,.5) 1.2px, transparent 1.3px) 0 0 / 7px 7px; box-shadow: 6px 6px 0 rgba(20,20,20,.25); }
.gpk-paquet-marque { font: 900 25px/1.02 "GP Fraunces", Georgia, serif; background: #141414; padding: 2px 6px; }
.gpk-paquet-illus { width: 110px; } .gpk-paquet-illus .m-a { fill: #e2231a; } .gpk-paquet-illus .m-b { fill: #fbf7ec; } .gpk-paquet-illus .m-t { stroke: #fbf7ec; stroke-width: 3; }
.gpk-paquet-nb { font: 900 19px "GP Fraunces", Georgia, serif; background: #e2231a; padding: 1px 10px; }
.gpk-paquet-serie { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: #141414; padding: 1px 4px; }
.gpk-paquet-aide { display: block; margin-top: 12px; font-size: 13px; font-weight: 500; color: #141414; }

/* ── Questionnaire et quiz : piste B Arcade ───────────────────────────────────────────────────── */
.gpq-ecran { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: calc(16px + env(safe-area-inset-top)) 18px 18px; background: #fff8e1; color: #111; font-family: "GP Grotesk", system-ui, sans-serif; }
.gp-cadre .gpq-ecran { padding-top: 48px; }
.gpq-haut { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: #111; }
.gpq-retour-btn { flex: none; width: 34px; height: 34px; border: 2.5px solid #111; border-radius: 10px; background: #fff; font-size: 20px; line-height: 1; box-shadow: 2px 2px 0 #111; padding: 0; }
.gpq-prog { flex: 1; height: 14px; border: 2.5px solid #111; border-radius: 99px; background: #fff; overflow: hidden; }
.gpq-prog i { display: block; height: 100%; background: #ff5fa2; transition: width .35s ease; }
.gpq-corps { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 2px 8px 8px; animation: gp-glisse .28s ease-out; }
.gpq-q { display: grid; gap: 12px; }
.gpq-titre { margin: 0; font: 400 25px/1.1 "GP Archivo Black", Impact, sans-serif !important; text-transform: uppercase; letter-spacing: -0.005em !important; color: #111 !important; }
.gpq-aide { margin: 0; font-size: 14px; line-height: 1.35; }
.gpq-pourquoi { margin: 0; font-size: 12.5px; line-height: 1.35; background: #fff; border: 2px dashed #111; border-radius: 10px; padding: 7px 10px; }
.gpq-pourquoi b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #2d5bff; }
.gpq-rep { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gpq-rep button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; border: 2.5px solid #111; border-radius: 12px; background: #fff; box-shadow: 4px 4px 0 #111; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; color: #111; transition: transform .08s, box-shadow .08s; }
.gpq-rep button:focus-visible { outline: 3px solid #2d5bff; outline-offset: 2px; }
.gpq-rep button:not(:disabled):active, .gpq-rep button.is-choisi { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; background: #ffd400; }
.gpq-rep button > b { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #111; color: #fff; font-size: 13px; }
.gpq-rep button.is-bonne { background: #38d986; transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.gpq-rep button.is-fausse { background: #ff6b5e; transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.gpq-rep button.is-eteinte { opacity: .45; }
.gpq-bouton { all: unset; box-sizing: border-box; display: block; width: 100%; text-align: center; padding: 14px; border: 2.5px solid #111; border-radius: 12px; background: #2d5bff; color: #fff; box-shadow: 4px 4px 0 #111; font: 400 15px "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; cursor: pointer; }
.gpq-bouton:focus-visible { outline: 3px solid #ff5fa2; outline-offset: 2px; }
.gpq-bouton:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.gpq-bouton:disabled { background: #d8d2bd; color: #7a7566; cursor: default; }
.gpq-bouton.is-oui { background: #ff5fa2; color: #111; } .gpq-bouton.is-non { background: #fff; color: #111; }
.gpq-lien { all: unset; cursor: pointer; text-align: center; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: #111; }
.gpq-lien:focus-visible { outline: 3px solid #2d5bff; }
.gpq-champ { width: 100%; box-sizing: border-box; border: 2.5px solid #111; border-radius: 12px; background: #fff; padding: 13px; font: 400 22px "GP Archivo Black", Impact, sans-serif; color: #111; box-shadow: 4px 4px 0 #111; }
.gpq-champ-petit { font: 500 16px "GP Grotesk", system-ui, sans-serif; }
.gpq-champ:focus { outline: 3px solid #2d5bff; outline-offset: 2px; }
.gpq-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gpq-tuiles button { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: center; gap: 3px; text-align: center; padding: 8px 6px; border: 2.5px solid #111; border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 #111; font-weight: 700; font-size: 13px; line-height: 1.15; cursor: pointer; color: #111; }
.gpq-tuiles button:focus-visible { outline: 3px solid #2d5bff; outline-offset: 2px; }
.gpq-tuiles .gp-motif { width: 58px; } .gpq-tuiles .m-a { fill: #2d5bff; } .gpq-tuiles .m-b { fill: #ff5fa2; } .gpq-tuiles .m-t { stroke: #111; }
.gpq-tuiles button.is-choisi { background: #ffd400; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.gpq-reaction { position: absolute; left: 22px; right: 22px; top: 42%; z-index: 20; text-align: center; background: #ffd400; color: #111; border: 3px solid #111; border-radius: 14px; box-shadow: 6px 6px 0 #111; padding: 16px; font: 400 19px/1.15 "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; transform: rotate(-2deg); animation: gp-pop .3s cubic-bezier(.3,1.6,.6,1); }
.gpq-pile { position: relative; height: 270px; }
.gpq-swipe { position: absolute; inset: 0; display: grid; align-content: end; gap: 5px; padding: 18px; color: #fff; border: 3px solid #111; border-radius: 18px; box-shadow: 6px 6px 0 #111; touch-action: none; cursor: grab; user-select: none; }
.gpq-swipe b { font: 400 25px/1.05 "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; }
.gpq-swipe small { font-size: 14px; line-height: 1.3; font-weight: 500; }
.gpq-swipe-motif { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 148px; pointer-events: none; }
.gpq-swipe .m-a { fill: #fff; } .gpq-swipe .m-b { fill: #ffd400; } .gpq-swipe .m-t { stroke: #111; }
.gpq-tampon { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 2px 10px; background: #ffd400; color: #111; border: 3px solid #111; border-radius: 8px; font: 400 18px "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; transform: rotate(-10deg); }
.gpq-tampon.is-non { left: auto; right: 14px; background: #fff; transform: rotate(10deg); }
.gpq-swipe-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* quiz du jeu (dans la feuille) */
.gp-jeu { display: grid; gap: 22px; }
.gpq-zone { display: grid; gap: 10px; margin: 0 -16px; padding: 16px; background: #fff8e1; border-top: 3px solid #111; font-family: "GP Grotesk", system-ui, sans-serif; color: #111; }
.gpq-sur { margin: 0; font: 400 13px "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; color: #ff5fa2; -webkit-text-stroke: .3px #111; }
.gpq { display: grid; gap: 12px; }
.gpq-serie { background: #ff5fa2; border: 2px solid #111; border-radius: 99px; padding: 1px 8px; transform: rotate(4deg); white-space: nowrap; }
.gpq .gpq-titre { font-size: 20px !important; }
.gpq-retour { display: grid; gap: 7px; padding: 12px; border: 2.5px solid #111; border-radius: 12px; }
.gpq-retour.is-juste { background: #c9f5dd; } .gpq-retour.is-faux { background: #ffdcd8; }
.gpq-retour p { margin: 0; font-size: 13.5px; line-height: 1.35; }
.gpq-verdict { font: 400 14px/1.15 "GP Archivo Black", Impact, sans-serif !important; text-transform: uppercase; }
.gpq-fin { display: grid; gap: 8px; justify-items: center; text-align: center; }
.gpq-fin h3 { margin: 0; font: 400 22px "GP Archivo Black", Impact, sans-serif; text-transform: uppercase; color: #111; } .gpq-fin p { margin: 0; }
.gpq-medaille { display: flex; align-items: baseline; justify-content: center; gap: 2px; width: 96px; padding: 20px 0; border: 3px solid #111; border-radius: 50%; background: #ffd400; box-shadow: 4px 4px 0 #111; animation: gp-pop .4s cubic-bezier(.3,1.6,.6,1); }
.gpq-medaille b { font: 400 34px "GP Archivo Black", Impact, sans-serif; } .gpq-medaille small { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .gpk-carte, .gpk-paquet-haut { transition: none; } .gpk-paquet-corps, .gpq-corps, .gpq-reaction, .gpq-medaille { animation: none !important; } }
.gp-app .gp-toast { top: 14px; bottom: auto; animation: none; }
.gp-cadre .gp-toast { top: 52px; }
.gp-app .gp-toast { background: var(--gp-or-clair); color: var(--gp-encre); box-shadow: 0 6px 16px rgba(15,42,40,.25); }
/* AM-116 : carte + classement, barres empilées, variations mensuelles */
.am-rec-carte { display: grid; gap: 10px 24px; }
.am-rec-carte.avec-carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.am-rec-carte .fond { width: 100%; max-height: 52vh; display: block; }
.am-rec-carte .fond path { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-width: .5px; }
.am-rec-carte .fond path.pays { cursor: pointer; }
.am-rec-carte .fond path.pays.on { stroke: #a8875a; stroke-width: 1.6px; }
.am-rec-carte .classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.am-rec-carte .classement li { display: grid; grid-template-columns: 112px 1fr 78px; align-items: center; gap: 8px; font-size: 13px; line-height: 15px; border-radius: 3px; }
.am-rec-carte:not(.avec-carte) .classement li { font-size: 15px; line-height: 24px; grid-template-columns: 120px 1fr 90px; }
.am-rec-carte .classement li.on { background: color-mix(in srgb, #a8875a 16%, transparent); }
.am-rec-carte .classement li.ref { font-weight: 700; }
.am-rec-carte .classement .barre i { display: block; height: 9px; border-radius: 2px; }
.am-rec-carte:not(.avec-carte) .classement .barre i { height: 14px; }
.am-rec-carte .classement .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-rec-carte .classement .val em { color: #8a9a9c; font-size: 11px; }
.am-rec-carte .echelle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6d7d7f; margin-top: 6px; }
.am-rec-carte .echelle i { flex: 1; max-width: 160px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgb(220,235,232), rgb(19,79,75)); }
.am-rec-carte .legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.am-rec-carte .legende i, .am-rec-carte .palier strong i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.am-rec-carte .palier { margin-bottom: 14px; }
.am-rec-carte .palier strong { display: block; font-size: 14px; margin-bottom: 4px; }
.am-rec-carte .palier ul { list-style: none; margin: 0; padding: 0 0 0 17px; font-size: 15px; line-height: 24px; }
.am-rec-carte .palier li.on { background: color-mix(in srgb, #a8875a 16%, transparent); }
.am-rec-carte .lecture, .am-rec-carte .am-rec-note, .am-rec-carte .am-rec-src { grid-column: 1 / -1; }
.am-rec-carte .lecture { font-size: 14px; min-height: 20px; }
.am-rec-barres svg { width: 100%; max-width: 720px; max-height: 50vh; display: block; margin: 0 auto; }
.am-rec-barres text { font-size: 14px; fill: #4b5b5d; }
.am-rec-barres text.dans { fill: #fff; font-weight: 600; font-size: 13px; }
.am-rec-barres text.total { font-weight: 700; fill: #17262a; font-size: 15px; }
.am-rec-barres text.nomseg { font-weight: 600; }
.am-rec-barres .zero { stroke: #8a9a9c; }
.am-rec-variations { display: grid; gap: 10px; }
.am-rec-variations .tuiles { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.am-rec-variations .tuile { display: grid; }
.am-rec-variations .tuile b { font-size: 26px; line-height: 1.1; }
.am-rec-variations .tuile span { font-size: 13px; }
.am-rec-variations .tuile small { font-size: 12px; color: #8a9a9c; }
.am-rec-variations .moyenne { fill: none; stroke: #e08a1e; stroke-width: 2.4; }
.am-rec-variations .seuil line { stroke: #17262a; stroke-width: 1.4; stroke-dasharray: 6 5; }
.am-rec-variations .seuil text { font-size: 13px; font-weight: 600; fill: #17262a; }
.am-rec-variations .lecture { font-size: 14px; }
@media (max-width: 760px) {
  .am-rec-carte.avec-carte { grid-template-columns: minmax(0, 1fr); }
  .am-rec-carte .classement li { grid-template-columns: 92px 1fr 66px; }
  .am-rec-carte:not(.avec-carte) .classement li { font-size: 13px; grid-template-columns: 84px 1fr 66px; }
}

.am-rec-carte.avec-carte { grid-template-columns: auto minmax(0, 1fr); }
.am-rec-carte.avec-carte .fond { width: auto; height: min(40vh, 360px); max-width: 44vw; aspect-ratio: auto; }
.am-rec-carte.avec-carte:has(.paliers) .fond { width: 100%; max-width: 58vw; }
.am-rec-carte.avec-carte .classement { grid-auto-flow: column; grid-template-rows: repeat(16, auto); gap: 2px 22px; }
.am-rec-carte.avec-carte .classement li { grid-template-columns: 84px minmax(30px, 1fr) 74px; }
.am-rec-carte:not(.avec-carte) .classement li { line-height: 20px; }
.am-rec-variations .legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.am-rec-variations .legende i { display: inline-block; width: 12px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.am-rec-variations .legende i.l-moy { height: 0; border-top: 3px solid #e08a1e; vertical-align: 3px; border-radius: 0; width: 16px; }
.am-rec-variations .legende i.l-seuil { height: 0; border-top: 2px dashed #17262a; vertical-align: 3px; border-radius: 0; width: 18px; }
.am-rec-variations .am-prez-courbe { max-height: 34vh; width: 100%; }
@media (max-width: 760px) {
  .am-rec-carte.avec-carte, .am-rec-carte.avec-carte:has(.paliers) { grid-template-columns: minmax(0, 1fr); }
  .am-rec-carte.avec-carte .fond, .am-rec-carte.avec-carte:has(.paliers) .fond { width: 100%; height: auto; max-width: none; max-height: 52vh; }
  .am-rec-carte.avec-carte .classement { grid-auto-flow: row; grid-template-rows: none; }
  .am-rec-carte.avec-carte .classement li { grid-template-columns: 92px minmax(30px, 1fr) 74px; }
  .am-rec-variations .am-prez-courbe { max-height: none; }
}

/* ── AM-140 à 143 (05/11/2026) : profil à confirmer, cadre téléphone, briques de l'appli de base, feux expliqués ─ */
html.gp-cadre, html.gp-cadre body { height: 100%; margin: 0; overflow: hidden; background: #f5f1ea; }
.gp-racine { height: 100%; }
.gp-app, .gp-app * { scrollbar-width: none; }
.gp-app *::-webkit-scrollbar { display: none; }
.gp-defile { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.gp-hote { grid-template-columns: minmax(0, 1fr); }
.gp-confirme { width: 100%; display: grid; gap: 8px; text-align: left; color: #f5f1ea; font-size: 13.5px; line-height: 1.4; }
.gp-confirme h1 { margin: 0; font-size: 30px; line-height: 1.05; color: #f5f1ea; text-align: center; }
.gp-confirme ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.gp-confirme-autres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.gp-confirme-autres button { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 8px; border: 1px solid var(--gp-or-clair); border-radius: 12px; background: none; color: #f5f1ea; font-size: 12.5px; line-height: 1.25; }
.gp-confirme-autres b { font: 400 19px var(--gp-serif, "GP Instrument", Georgia, serif); color: var(--gp-or-clair); }
.gp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border: 1px solid var(--gp-trait); border-radius: 12px; }
.gp-seg button { border: 0; background: none; padding: 8px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--gp-doux); }
.gp-seg button.is-on { background: var(--gp-vert); color: #f5f1ea; }
.gp-carte-point { display: flex; align-items: center; gap: 14px; background: var(--gp-carte); }
.gp-carte-point > span:nth-child(1) { flex: 1; display: grid; gap: 2px; } .gp-carte-point b { font-weight: 600; } .gp-carte-point small { color: var(--gp-doux); }
.gp-feuille.is-haute { inset: 0; border-radius: 0; z-index: 45; }
.gp-feuille.is-haute .gp-defile { padding: 0 0 20px; display: block; }
.gp-bulle-retour { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: var(--gp-fond); width: 100%; font-weight: 600; color: var(--gp-vert); text-align: left; }
.gp-cadre .gp-bulle-retour { padding-top: 46px; }
.am-pr-pourquoi { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.am-pr-pourquoi h4 { margin: 0; font-size: 15px; }
.am-pr-barres { display: grid; gap: 5px; } .am-pr-barres p { margin: 0; display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; }
.am-pr-barres i { height: 7px; border-radius: 9px; background: var(--border); overflow: hidden; } .am-pr-barres b { display: block; height: 100%; background: var(--accent); }
.am-pr-barres em { font-style: normal; font-weight: 600; }
.am-pr-chiffres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.35; }
.am-pr-chiffres li { display: grid; gap: 1px; padding-top: 7px; border-top: 1px solid var(--border); } .am-pr-chiffres small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.am-pr-limite { margin: 0; font-size: 12px; line-height: 1.35; color: var(--fg-3); }
.gp-investir { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #0f2a28; color: #f5f1ea; font-family: "GP Inter", system-ui, sans-serif; }
.gp-investir h4 { margin: 0; font: 400 24px/1.1 var(--gp-serif, "GP Instrument", Georgia, serif); color: #f5f1ea; }
.gp-investir-chiffre { display: grid; gap: 0; padding: 10px 0; border-top: 1px solid rgba(217,183,126,.45); border-bottom: 1px solid rgba(217,183,126,.45); font-size: 13px; line-height: 1.35; }
.gp-investir-chiffre strong { font: 400 40px/1.1 var(--gp-serif, "GP Instrument", Georgia, serif); color: #d9b77e; }
.gp-investir ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; line-height: 1.35; }
.gp-investir li b { display: block; color: #d9b77e; font-weight: 600; }
.gp-investir small { font-size: 11px; line-height: 1.35; color: #cfd8d5; }
.gp-investir .am-contact { color: var(--gp-encre); }

/* Nolu dans l'appli : plus de boîte à défilement dans l'écran, réponses pleine largeur, tableau en fiches */
.gp-app .am-ag-fil { max-height: none; overflow: visible; padding: 0; border: 0; background: none; }
.gp-app .am-ag-msg { min-width: 0; scroll-margin-top: 54px; }
.gp-app .am-ag-msg.is-nolu .am-ag-bulle { flex: 1; min-width: 0; max-width: none; }
.gp-app .am-ag-avatar { width: 24px; height: 24px; font-size: 12px; }
.gp-app .am-ag-table, .gp-app .am-ag-table tbody { display: block; }
.gp-app .am-ag-table thead { display: none; }
.gp-app .am-ag-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gp-trait); }
.gp-app .am-ag-table th, .gp-app .am-ag-table td { display: block; padding: 0; border: 0; }
.gp-app .am-ag-table td:nth-child(3) { font-weight: 700; white-space: nowrap; }
.gp-app .am-ag-table td:nth-child(4), .gp-app .am-ag-table td:nth-child(5) { display: block; grid-column: 1 / -1; font-size: 12.5px; line-height: 1.35; }
.gp-app .am-ag-table td:nth-child(4)::before { content: "+ "; color: var(--am-serein); font-weight: 700; }
.gp-app .am-ag-table td:nth-child(5)::before { content: "− "; color: var(--am-peur); font-weight: 700; }
.gp-app .am-ag-saisie .btn-primary { background: var(--gp-vert); color: #f5f1ea; border: 0; padding: 0 14px; border-radius: 10px; font-weight: 600; }
.gp-app .am-ag-saisie .btn-primary:disabled { opacity: .55; }
/* Le contenu s'efface sous l'encoche au lieu de passer dessous ; le message de gain s'affiche en bas, jamais sur un titre */
.gp-cadre .gp-defile-appli { -webkit-mask-image: linear-gradient(to bottom, transparent 40px, #000 54px); mask-image: linear-gradient(to bottom, transparent 40px, #000 54px); }
.gp-app .gp-toast, .gp-cadre .gp-toast { top: auto; bottom: 84px; }
/* Téléphone, appli en plein écran : l'accueil qui tourne derrière ne doit plus élargir la page. */
:has(> .gp-plein) > :not(.gp-plein) { display: none; }
/* Une bande en haut pour le bouton de fermeture : il ne recouvre plus le badge, ni les onglets d'Explorer. */
.gp-plein .gp-defile-appli { padding-top: 54px; }
.gp-plein .gp-fermer { background: var(--gp-fond); box-shadow: 0 1px 4px rgba(15,42,40,.2); }
/* Explorer : la légende de la planète a sa place au lieu de passer sous le bloc suivant. */
.gp-hote .am-planete { margin-bottom: 40px; }
/* Bloc « comment on s'y met » : le sous-titre du bouton contact redevient lisible sur son fond clair. */
.gp-investir .am-contact small { color: var(--gp-doux); }
/* Téléphone, appli en plein écran : le bouton « Faire un retour » reste accessible, sans recouvrir l'onglet Moi. */
body:has(.gp-plein) .zr-bouton { right: 12px; bottom: 132px; }
.am-rec-carte .fond circle.site { fill: #e08a1e; fill-opacity: .55; stroke: #8a4f0a; stroke-width: .6px; vector-effect: non-scaling-stroke; }
.am-rec-carte .legende-site { font-size: 12px; color: #6d7d7f; margin: 6px 0 0; }
.am-rec-carte .legende-site i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #e08a1e; opacity: .7; }
.am-rec-carte.avec-carte:has(circle.site) .fond, .am-rec-carte.avec-carte.monde .fond { width: 100%; height: auto; max-width: 58vw; }
.am-rec-lignes { display: grid; gap: 10px; }
.am-rec-lignes .am-prez-courbe { max-height: 42vh; width: 100%; }
.am-rec-lignes .lecture { font-size: 14px; }
.am-rec-carte.avec-carte.monde { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.am-rec-carte.avec-carte.monde .fond { width: 100%; height: auto; max-width: none; max-height: 48vh; }
@media (max-width: 760px) { .am-rec-carte.avec-carte.monde { grid-template-columns: minmax(0, 1fr); } }
/* Présentation : la courbe et ses années tiennent sur l'écran, sans défiler. */
.am-prez-recit-corps .am-rec-lignes svg.am-prez-courbe { width: min(100%, calc(min(34vh, 320px) * 3)); }
.am-prez-recit-corps .am-rec-contrib svg.am-prez-courbe { width: min(100%, calc(min(31vh, 300px) * 2.8125)); }

/* AM-144 : la planète de retour, le feu sur la bulle, et la fiche pour / contre d'une zone. */
.gp-accueil-planete { padding-bottom: 26px; }
.gp-accueil-planete .am-planete, .gp-hote .am-planete { margin-bottom: 26px; }
.am-orb-feu.am-pr-feu { position: absolute; top: 7%; right: 15%; width: 2.6cqw; height: 2.6cqw; min-width: 8px; min-height: 8px; box-shadow: 0 0 0 1.5px var(--surface); }
.gp-zone { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; background: var(--gp-fond); animation: gp-zone .22s ease-out both; }
@keyframes gp-zone { from { transform: translateX(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gp-zone { animation: none; } }
.gp-zone-haut { padding: 10px 52px 8px 12px; border-bottom: 1px solid var(--gp-trait); }
.gp-cadre .gp-zone-haut { padding-top: 46px; }
.gp-zone-fil { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; font-size: 13px; }
.gp-zone-fil button { border: 0; background: none; padding: 6px; color: var(--gp-vert); font-weight: 600; }
.gp-zone-fil button + button::before { content: "›"; margin-right: 8px; color: var(--gp-doux); font-weight: 400; }
.gp-defile.gp-zone-corps { flex: 1; display: grid; align-content: start; gap: 14px; padding: 14px 16px 24px; }
.gp-cadre .gp-defile.gp-zone-corps { padding-top: 14px; }
.gp-zone-tete p { margin: 0; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-doux); }
.gp-zone-tete h1 { margin: 2px 0 6px; font: 400 36px/1.05 var(--gp-serif, "GP Instrument", Georgia, serif); color: var(--gp-encre); }
.gp-zone-tete > div { display: flex; align-items: center; gap: 8px; }
.gp-zone-tete > div b { font-size: 15px; }
.gp-zone-tete > div span:last-child { margin-left: auto; font-size: 20px; font-weight: 600; }
.gp-zone-tete small { font-size: 12px; font-weight: 400; color: var(--gp-doux); }
.gp-zone-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--gp-doux); }
.am-pr-balance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.am-pr-balance section { padding: 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.am-pr-balance .is-pour { background: #e3f0e8; color: #12382a; }
.am-pr-balance .is-contre { background: #f7e4e0; color: #4f1a14; }
.am-pr-balance h3 { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 700; font-family: inherit; }
.am-pr-balance h3 i { width: 12px; height: 12px; border-radius: 50%; }
.am-pr-balance .is-pour h3 i { background: #17794f; }
.am-pr-balance .is-contre h3 i { background: #b3362a; }
.am-pr-balance h3 small { grid-column: 2; font-size: 11.5px; font-weight: 500; opacity: .8; }
.am-pr-balance ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.am-pr-balance p { margin: 0; }
.gp-zone-enfants h2 { margin: 0 0 6px; font: 400 22px/1.15 var(--gp-serif, "GP Instrument", Georgia, serif); }
.gp-zone-enfants ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gp-trait); }
.gp-zone-enfants button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--gp-trait); background: none; text-align: left; color: var(--gp-encre); }
.gp-zone-enfants b { display: block; font-weight: 500; font-size: 14.5px; }
.gp-zone-enfants small { color: var(--gp-doux); font-size: 12px; }
.gp-zone-enfants em { font-style: normal; font-weight: 600; font-size: 14px; }
.gp-zone-enfants i { font-style: normal; color: var(--gp-doux); }
.gp-zone-details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gp-vert); padding: 4px 0; }
.gp-bouton.gp-bouton-clair { background: none; border: 1px solid var(--gp-vert); color: var(--gp-vert) !important; box-shadow: none; }
.am-ag-carte .am-pr-balance { margin-top: 8px; }

/* AM-145 : news, alertes, chemin, visite guidée, palmarès, histoires. */
.gp-news ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gp-news li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--gp-trait); }
.gp-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.gp-news a { color: var(--gp-encre); font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.gp-news small { font-size: 12px; color: var(--gp-doux); }
.gp-news .gp-news-raison { color: var(--gp-vert); font-weight: 600; }
.gp-news-lien { margin-top: 3px; font-size: 12.5px; }
.gp-news-lien b { color: #17794f; } .gp-news-lien b.is-bas { color: #b3362a; }
.gp-alerte-appli { position: relative; display: grid; gap: 6px; padding: 12px 40px 12px 14px; border-radius: 14px; background: #0f2a28; color: #f5f1ea; font-size: 13.5px; line-height: 1.35; }
.gp-alerte-appli b { color: #d9b77e; }
.gp-alerte-appli a { color: #f5f1ea; }
.gp-alerte-appli .gp-lien { justify-self: start; color: #f5f1ea; padding: 0; }
.gp-alerte-appli > div { display: flex; gap: 8px; }
.gp-alerte-appli .gp-rond { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.gp-chemin ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.gp-chemin button { display: grid; justify-items: center; gap: 3px; width: 100%; height: 100%; padding: 8px 2px; border: 1px solid var(--gp-trait); border-radius: 12px; background: var(--gp-carte); color: var(--gp-encre); text-align: center; }
.gp-chemin span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gp-trait); font-size: 12px; font-weight: 700; }
.gp-chemin b { font-size: 11.5px; font-weight: 600; }
.gp-chemin small { font-size: 10px; line-height: 1.2; color: var(--gp-doux); }
.gp-chemin .is-vu span { background: #17794f; color: #fff; }
.gp-chemin .is-ici button { border-color: var(--gp-vert); box-shadow: inset 0 0 0 1px var(--gp-vert); }
.gp-chemin .is-ici span { background: var(--gp-vert); color: #fff; }
.gp-palier-propose, .gp-avertir { margin: 0; font-size: 13.5px; line-height: 1.4; color: #f5f1ea; }
.gp-avertir { padding: 10px 12px; border: 1px solid #d9b77e; border-radius: 12px; }
.gp-pire p { margin: 0; font-size: 14px; line-height: 1.4; }
.gp-pire small { font-size: 12px; color: var(--gp-doux); }
.gp-visite { display: grid; gap: 14px; }
.gp-visite-pas { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 11px; text-align: center; color: var(--gp-doux); }
.gp-visite-pas li { padding-top: 6px; border-top: 3px solid var(--gp-trait); }
.gp-visite-pas .is-fait { border-color: #17794f; }
.gp-visite-pas .is-on { border-color: var(--gp-vert); color: var(--gp-encre); font-weight: 600; }
.gp-visite-corps { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.gp-visite-corps h2 { margin: 0; font: 400 26px/1.1 var(--gp-serif, "GP Instrument", Georgia, serif); }
.gp-visite-corps p { margin: 0; }
.gp-visite-feu { display: flex; align-items: center; gap: 8px; }
.gp-visite-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-visite-boutons { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.am-j-top { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.am-j-top li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.am-j-top small { display: block; font-size: 11px; color: var(--fg-3); }
.am-j-top b { color: #17794f; white-space: nowrap; } .am-j-top b.is-bas { color: #b3362a; }
.am-j-histoires { display: grid; gap: 12px; }
.am-j-histoires article { padding-top: 10px; border-top: 1px solid var(--border); }
.am-j-histoires h3 { margin: 0 0 3px; font-family: var(--am-j-serif); font-size: 17px; }
.am-j-histoires p { margin: 0 0 3px; line-height: 1.4; }
.am-j-histoires small { color: var(--fg-3); font-size: 12px; }
.gp-alerte-appli .gp-rond { color: #0f2a28; display: grid; place-items: center; padding: 0; }
.gp-app .am-n0-boutons .btn-primary { background: var(--gp-vert); color: #f5f1ea; }
.gp-app .am-n0-boutons .btn-ghost { color: var(--gp-encre); }

/* AM-147 (05/11/2026) : contributions génériques (croissance, emplois, commerce) — légende cliquable, périodes, récessions. */
.am-rec-contrib .tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.am-rec-contrib .legende button { all: unset; cursor: pointer; display: inline-flex; align-items: center; border-radius: 4px; padding: 1px 3px; }
.am-rec-contrib .legende button:focus-visible { outline: 2px solid #1D6B66; outline-offset: 1px; }
.am-rec-contrib .legende button.eteint { opacity: .4; }
.am-rec-contrib .legende i.crise { width: 14px; height: 12px; background: #e9ebe7; border-radius: 2px; margin-right: 6px; display: inline-block; vertical-align: -1px; }
.am-rec-contrib .point { fill: #17262a; stroke: #fff; stroke-width: 2; }

/* AM-147 : schéma en bulles v2 (flux animés, légende-filtre, visite guidée, pastilles de montant). */
.am-rec-reseau.v2 .barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.am-rec-reseau.v2 .legende button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; }
.am-rec-reseau.v2 .legende button:hover, .am-rec-reseau.v2 .legende button[aria-pressed="true"] { border-color: #cfdedd; background: #f4f9f8; }
.am-rec-reseau.v2 .legende button:focus-visible { outline: 2px solid #1D6B66; }
.am-rec-reseau.v2 .legende button.eteint { opacity: .4; }
.am-rec-reseau.v2 .guide { display: flex; gap: 6px; align-items: center; }
.am-rec-reseau.v2 .guide button { font: inherit; font-size: 13px; border: 1px solid #cfdedd; background: #fff; color: #17262a; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.am-rec-reseau.v2 .guide button.lire { background: #1D6B66; border-color: #1D6B66; color: #fff; font-weight: 600; }
.am-rec-reseau.v2 .guide button:focus-visible { outline: 2px solid #a8875a; outline-offset: 2px; }
.am-rec-reseau.v2 .noeud { transition: opacity .35s, transform .25s; }
.am-rec-reseau.v2 .noeud:hover, .am-rec-reseau.v2 .noeud.choisi { transform: scale(1.04); }
.am-rec-reseau.v2 .lien path { transition: opacity .35s, stroke-width .25s; }
.am-rec-reseau.v2 .pastille text { font: 600 14px/1 var(--font-sans, inherit); fill: #17262a; }
.am-rec-reseau.v2 .fiche { background: #f6faf9; border: 1px solid #e1ecea; border-radius: 10px; padding: 10px 14px; min-height: 52px; }
.am-rec-reseau.v2 .fiche b i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.am-rec-reseau.v2 .fiche .pas { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a8875a; margin-bottom: 2px; }
.am-prez-concept .am-rec-reseau.v2 .fiche { min-height: 0; padding: 7px 12px; }
@media (prefers-reduced-motion: reduce) { .am-rec-reseau.v2 .noeud, .am-rec-reseau.v2 .lien path { transition: none; } .am-rec-reseau.v2 .noeud:hover, .am-rec-reseau.v2 .noeud.choisi { transform: none; } }

/* AM-147 : grand écran, la fiche à côté du schéma, pour rester visible pendant le survol. */
@media (min-width: 1000px) {
  .am-rec-reseau.v2 { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; column-gap: 18px; }
  .am-rec-reseau.v2 > .barre, .am-rec-reseau.v2 > .am-rec-src { grid-column: 1 / -1; }
  .am-prez-concept .am-rec-reseau.v2 .fiche { padding: 10px 14px; }
}
.am-rec-reseau.v2 .legende svg { max-height: 10px; }

/* ── AM-157 (06/11/2026) : Mes présentations, Prezi maison charté Perséphone ── */
.am-dia-liste > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.am-dia-liste h3 { margin: 0 0 4px; font-size: 20px; }
.am-dia-liste header p { margin: 0; max-width: 70ch; }
.am-dia-liste .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.am-dia-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.am-dia-cartes li { display: flex; flex-direction: column; border: 1px solid #dfe6e4; border-radius: 12px; background: #fff; overflow: hidden; }
.am-dia-cartes .ouvrir { flex: 1; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 16px 12px; border: 0; background: linear-gradient(135deg, #1d2a1c, #2c3825); color: #fff; font: inherit; cursor: pointer; min-height: 96px; }
.am-dia-cartes .ouvrir b { font-size: 17px; font-weight: 600; }
.am-dia-cartes .ouvrir span { font-size: 12.5px; color: rgb(255 255 255 / .75); }
.am-dia-cartes .ouvrir:hover, .am-dia-cartes .ouvrir:focus-visible { outline: 3px solid #a8875a; outline-offset: -3px; }
.am-dia-cartes .suppr { border: 0; border-top: 1px solid #eef1ef; background: #fff; color: #8a2b25; padding: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.am-dia-erreur { color: #8a2b25; background: #fbeeec; border-radius: 8px; padding: 8px 12px; }

.am-dia-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.am-dia-barre .titre { flex: 1 1 240px; min-width: 0; font-size: 18px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; background: transparent; }
.am-dia-barre .titre:hover, .am-dia-barre .titre:focus { border-color: #cfdcd9; background: #fff; outline: none; }
.am-dia-barre .etat { font-size: 12.5px; color: #5d6b68; }
.am-dia-barre .etat.erreur { color: #8a2b25; font-weight: 600; }
.am-dia-corps { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 16px; align-items: start; }
.am-dia-editeur.is-tel .am-dia-corps { grid-template-columns: minmax(0, 1fr); }

.am-dia-arbre { position: sticky; top: 8px; max-height: calc(100vh - 24px); overflow: auto; background: #f6f8f7; border: 1px solid #e1e8e6; border-radius: 12px; padding: 10px 8px; font-size: 14px; }
.am-dia-arbre ul { list-style: none; margin: 0; padding: 0; }
.am-dia-arbre ul ul { margin-left: 12px; padding-left: 8px; border-left: 1px solid #d5dfdc; }
.am-dia-arbre li { margin: 2px 0; }
.am-dia-arbre .ligne { display: flex; align-items: center; gap: 2px; }
.am-dia-arbre .noeud { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; text-align: left; border: 0; background: transparent; border-radius: 7px; padding: 6px 8px; font: inherit; color: #17262a; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-dia-arbre .noeud:hover { background: #e9efed; }
.am-dia-arbre .noeud.choisi { background: #1D6B66; color: #fff; }
.am-dia-arbre .noeud.racine { font-weight: 700; }
.am-dia-arbre .noeud.section { font-weight: 600; }
.am-dia-arbre .noeud .picto { width: 17px; height: 17px; flex: none; fill: none; stroke: #a8875a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.am-dia-arbre .noeud.choisi .picto { stroke: #e2c48e; }
.am-dia-arbre .pastille { width: 12px; height: 12px; border-radius: 50%; background: #141a12; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #141a12; flex: none; }
.am-dia-arbre .num { flex: none; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; border: 1px solid #cfdcd9; color: #1D6B66; font-size: 11.5px; display: grid; place-items: center; }
.am-dia-arbre .noeud.choisi .num { border-color: transparent; }
.am-dia-arbre .plier { border: 0; background: transparent; width: 22px; padding: 0; color: #5d6b68; cursor: pointer; font-size: 13px; }
.am-dia-arbre .outils { display: flex; gap: 1px; flex: none; }
.am-dia-arbre .outils button, .am-dia-elements .outils button { border: 1px solid #d5dfdc; background: #fff; border-radius: 6px; width: 26px; height: 26px; padding: 0; cursor: pointer; color: #17262a; }
.am-dia-arbre .outils button:disabled, .am-dia-elements .outils button:disabled { opacity: .35; cursor: default; }
.am-dia-arbre .ajout { border: 1px dashed #b9cbc7; background: transparent; color: #1D6B66; border-radius: 7px; padding: 4px 10px; margin: 4px 0 2px 2px; font: inherit; font-size: 13px; cursor: pointer; }
.am-dia-arbre .ajout:hover { background: #fff; }

.am-dia-panneau { min-width: 0; display: grid; gap: 14px; }
.am-dia-panneau h4 { margin: 0 0 4px; font-size: 15px; color: #17262a; }
.am-dia-panneau .champs { display: grid; gap: 10px; }
.am-dia-panneau .champs.ligne3 { grid-template-columns: minmax(90px, 1fr) minmax(0, 2.4fr) minmax(0, 1.6fr); }
.am-dia-panneau label { display: grid; gap: 4px; font-size: 13px; color: #405250; }
.am-dia-panneau input:not([type=file]), .am-dia-panneau textarea, .am-dia-panneau select { font: inherit; font-size: 14px; color: #17262a; border: 1px solid #cfdcd9; border-radius: 8px; padding: 7px 10px; background: #fff; width: 100%; box-sizing: border-box; }
.am-dia-panneau textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.am-dia-panneau .pictos { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.am-dia-panneau .pictos legend { font-size: 13px; color: #405250; margin-bottom: 4px; }
.am-dia-panneau .pictos button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfdcd9; background: #fff; cursor: pointer; display: grid; place-items: center; }
.am-dia-panneau .pictos button[aria-pressed=true] { background: #1D6B66; border-color: #1D6B66; }
.am-dia-panneau .pictos svg { width: 22px; height: 22px; fill: none; stroke: #a8875a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.am-dia-panneau .pictos button[aria-pressed=true] svg { stroke: #e2c48e; }
.am-dia-page-edit { display: grid; gap: 14px; }
.am-dia-apercu .am-dia-cadre { box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.am-dia-elements { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-dia-elements > li { border: 1px solid #e1e8e6; border-left: 4px solid #a8875a; border-radius: 10px; background: #fff; padding: 10px 12px 12px; }
.am-dia-elements .entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.am-dia-elements .entete b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #1D6B66; }
.am-dia-elements .outils { display: flex; gap: 3px; }
.am-dia-elements .series { display: grid; gap: 6px; }
.am-dia-elements .boutons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.am-dia-grille { display: grid; gap: 4px; overflow-x: auto; }
.am-dia-grille input { padding: 5px 7px !important; font-size: 13px !important; }
.am-dia-grille input.tete { font-weight: 700; background: #eef4f2 !important; }
.am-dia-ajouts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px; border: 1px dashed #b9cbc7; border-radius: 10px; }
.am-dia-ajouts > span { font-size: 13px; color: #405250; margin-right: 4px; }

/* Rendu d'une page : mêmes codes que la Présentation des thèmes (page blanche, titre fin, marque, pied). */
.am-dia-elts { display: grid; gap: 1.4cqw 2cqw; grid-template-columns: minmax(0, 1fr); align-content: start; }
.am-dia-elts.n2, .am-dia-elts.n3, .am-dia-elts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-dia-elts .schema, .am-dia-elts .courbe, .am-dia-elts.n3 > :first-child, .am-dia-case.t-schema, .am-dia-case.t-courbe, .am-dia-case.t-video { grid-column: 1 / -1; }
.am-prez.is-tel .am-dia-elts { grid-template-columns: minmax(0, 1fr); }
.am-dia-e { min-width: 0; }
.am-dia-e h4 { margin: 0 0 .4em; font: 600 calc(clamp(13px, 1.5cqw, 22px) * var(--dia-echelle, 1))/1.2 var(--dia-police, var(--font-sans, system-ui, sans-serif)); color: var(--dia-couleur, #1D6B66); }
.am-dia-e.texte { font-size: calc(clamp(12px, 1.35cqw, 20px) * var(--dia-echelle, 1)); line-height: 1.5; color: var(--dia-couleur, #222); }
.am-dia-e.texte p { margin: 0 0 .6em; }
.am-dia-e.texte ul { margin: 0 0 .6em; padding-left: 1.2em; }
.am-dia-e.texte li { margin: .2em 0; }
.am-dia-e.texte li::marker { color: #a8875a; }
.am-dia-e.chiffre { display: grid; gap: .3em; border-left: 4px solid #a8875a; padding: .4em 0 .4em 1em; }
.am-dia-e.chiffre b { font: 300 calc(clamp(28px, 4.4cqw, 68px) * var(--dia-echelle, 1))/1 var(--dia-police, var(--font-sans, system-ui, sans-serif)); color: var(--dia-couleur, #1D6B66); }
.am-dia-e.chiffre span { font-size: calc(clamp(12px, 1.35cqw, 19px) * var(--dia-echelle, 1)); color: var(--dia-couleur, #222); }
.am-dia-e.chiffre small { font-size: calc(clamp(9px, .9cqw, 12px) * var(--dia-echelle, 1)); color: var(--dia-couleur, #6b6b6b); opacity: .85; }
.am-dia-e.tableau table { width: 100%; border-collapse: collapse; font-size: calc(clamp(11px, 1.2cqw, 17px) * var(--dia-echelle, 1)); }
.am-dia-e.tableau th { text-align: left; background: #1D6B66; color: #fff; font-weight: 600; padding: .5em .7em; }
.am-dia-e.tableau th:first-child { border-top-left-radius: 6px; }
.am-dia-e.tableau th:last-child { border-top-right-radius: 6px; }
.am-dia-e.tableau td { padding: .45em .7em; border-bottom: 1px solid #e5ebe9; color: var(--dia-couleur, #222); }
.am-dia-e.tableau tbody tr:nth-child(even) td { background: #f6f9f8; }
.am-dia-e.image { margin: 0; display: grid; gap: .4em; justify-items: center; }
.am-dia-e.image img { max-width: 100%; max-height: 52cqw; object-fit: contain; border-radius: 6px; }
.am-dia-e.image figcaption, .am-dia-e.video figcaption { font-size: calc(clamp(9px, .95cqw, 13px) * var(--dia-echelle, 1)); color: var(--dia-couleur, #6b6b6b); }
.am-dia-e .vide, .am-dia-elts > .vide { color: #8a8a8a; font-style: italic; margin: 0; }

/* Mode présentation : plein écran, même scène que la Présentation des thèmes. */
.am-dia-plein { position: fixed; inset: 0; z-index: 1000; background: #0b0f0a; display: grid; place-items: center; }
.am-dia-scene { width: min(100vw, calc(100vh * 16 / 9)); border-radius: 0; box-shadow: none; }
.am-dia-scene:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
.am-dia-rayon { stroke: rgb(255 255 255 / .22); stroke-width: 2; stroke-dasharray: 4 10; }
.am-dia-st { fill: #5b5b5b !important; }
.am-dia-scene .am-prez-centre .t1 { letter-spacing: -.02em; }
.am-prez-bulle.active circle, .am-dia-b.active > .am-prez-bulle > circle { stroke: var(--or, #a8875a); stroke-width: 6; }
.am-dia-vue { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.am-dia-vue.is-visible { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.am-dia-vue .am-dia-page { animation: am-dia-entree .35s ease; }
@keyframes am-dia-entree { from { opacity: .2; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-dia-vue .am-dia-page { animation: none; } }
.am-dia-commandes { position: absolute; top: 10px; right: 12px; display: flex; gap: 6px; align-items: center; z-index: 3; font-size: 12px; color: rgb(255 255 255 / .7); }
.am-dia-commandes button { border: 1px solid rgb(255 255 255 / .35); background: rgb(0 0 0 / .25); color: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; cursor: pointer; }
.am-dia-editeur.is-tel .am-dia-arbre { position: static; max-height: 42vh; }
.am-dia-editeur.is-tel .am-dia-panneau .champs.ligne3 { grid-template-columns: minmax(0, 1fr); }
.am-dia-scene > .am-prez-aide { bottom: auto; top: 14px; left: 16px; right: auto; text-align: left; }
.am-dia-commandes[hidden] { display: none; }
.am-dia-compte { align-self: center; color: #777; font-size: .9em; padding: 0 4px; }

/* ── AM-158 (06/11/2026) : Mes présentations plus permissif (mise en page libre, bulles libres, styles, vidéos) ── */
.am-dia-page { font-family: var(--dia-police, inherit); }
.am-dia-page .am-prez-tete h3, .am-dia-page .am-prez-tete p { font-family: var(--dia-police, var(--font-sans, system-ui, sans-serif)); }
.am-dia-case { min-width: 0; }
.am-dia-case > .am-dia-e { font-weight: inherit; font-style: inherit; }
.am-dia-e.texte p.grand { font-size: 1.6em; line-height: 1.2; font-weight: 300; margin-bottom: .4em; }
.am-dia-e.texte u { text-decoration-color: var(--or, #a8875a); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Mise en page libre : chaque élément à sa place, en % de la page. */
.am-dia-elts.libre { display: block; position: relative; overflow: hidden; padding-right: 0; }
.am-dia-libre { position: absolute; box-sizing: border-box; min-width: 0; }
.am-dia-libre > .contenu { width: 100%; height: 100%; overflow: auto; box-sizing: border-box; }
.am-dia-libre .am-dia-e.image { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.am-dia-libre .am-dia-e.image img, .am-dia-libre .am-dia-e.video video { max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.am-dia-libre .am-dia-e.video { height: 100%; }
.am-dia-elts.edition .am-dia-libre { cursor: move; outline: 1px dashed rgb(29 107 102 / .35); touch-action: none; user-select: none; }
.am-dia-elts.edition .am-dia-libre > .contenu { pointer-events: none; }
.am-dia-elts.edition .am-dia-libre:hover { outline-color: #1D6B66; }
.am-dia-elts.edition .am-dia-libre.choisi, .am-dia-elts.edition .am-dia-libre:focus-visible { outline: 2px solid #a8875a; outline-offset: 1px; z-index: 5; }
.am-dia-libre .poignee { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #a8875a; border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); cursor: nwse-resize; touch-action: none; }
/* Lien et vidéo. */
.am-dia-e.lien a { display: inline-flex; align-items: center; gap: .3em; font-size: calc(clamp(12px, 1.35cqw, 20px) * var(--dia-echelle, 1)); color: var(--dia-couleur, #1D6B66); font-weight: 600; text-decoration: none; border: 1.5px solid currentColor; border-radius: 999px; padding: .45em 1em; }
.am-dia-e.lien a:hover, .am-dia-e.lien a:focus-visible { background: rgb(29 107 102 / .08); }
.am-dia-e.video { margin: 0; display: grid; gap: .4em; }
.am-dia-e.video video { width: 100%; max-height: 52cqw; border-radius: 8px; background: #000; }
.am-dia-e.video button.ext { width: 100%; border: 0; cursor: pointer; font: inherit; }
.am-dia-e.video .lecteur { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100%; }
.am-dia-e.video .lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.am-dia-e.video a.ext, .am-dia-e.video button.ext { display: flex; align-items: center; justify-content: center; gap: .6em; min-height: 8cqw; border-radius: 10px; background: #141a12; color: #fff; text-decoration: none; font-size: calc(clamp(12px, 1.35cqw, 20px) * var(--dia-echelle, 1)); }
.am-dia-e.video .ext .lecture { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--or, #a8875a); color: #141a12; }
/* Bulles imbriquées en mode présentation. */
.am-dia-b .am-prez-bulle:hover circle, .am-dia-b .am-prez-bulle:focus-visible circle { transform: scale(1.03); }
.am-dia-b .am-prez-bulle:focus-visible circle { stroke: var(--or, #a8875a); }
.am-dia-b[data-niveau="2"] > .am-prez-bulle > circle, .am-dia-b[data-niveau="3"] > .am-prez-bulle > circle { filter: drop-shadow(0 2px 4px rgb(0 0 0 / .18)); }
.am-dia-b[data-niveau="2"] > .am-prez-bulle > circle:not([style*="fill"]) { fill: #f6f1e7; }
.am-dia-b[data-niveau="3"] > .am-prez-bulle > circle:not([style*="fill"]) { fill: #fff; }
/* Contrôles de l'éditeur. */
.am-dia-arbre .noeud.section.n2, .am-dia-arbre .noeud.section.n3 { font-weight: 500; }
.am-dia-arbre li.ajouts { display: flex; gap: 4px; flex-wrap: wrap; }
.am-dia-panneau .boutons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.am-dia-panneau .ligne3 { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.am-dia-panneau .ligne4 { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.am-dia-couleurs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; border: 0; padding: 0; margin: 0; }
.am-dia-couleurs legend { font-size: 13px; color: #405250; margin-bottom: 4px; }
.am-dia-couleurs .pastille { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #cfdcd9; cursor: pointer; padding: 0; }
.am-dia-couleurs .pastille[aria-pressed=true] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1D6B66; }
.am-dia-couleurs .aucune { border: 1px solid #cfdcd9; background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.am-dia-couleurs .aucune[aria-pressed=true] { background: #1D6B66; color: #fff; border-color: #1D6B66; }
.am-dia-couleurs .libre { display: inline-flex !important; align-items: center; gap: 4px; font-size: 12.5px; cursor: pointer; }
.am-dia-couleurs .libre input { width: 30px !important; height: 26px; padding: 0 !important; border: 1px solid #cfdcd9; border-radius: 6px; cursor: pointer; }
.am-dia-curseur > span { display: flex; gap: 8px; align-items: center; }
.am-dia-curseur input[type=range] { flex: 1; padding: 0 !important; border: 0 !important; accent-color: #1D6B66; }
.am-dia-curseur output { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; color: #17262a; }
.am-dia-format { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; border: 0; padding: 0; margin: 0; }
.am-dia-format legend { font-size: 13px; color: #405250; margin-bottom: 4px; }
.am-dia-format button { min-width: 32px; height: 30px; border: 1px solid #cfdcd9; background: #fff; border-radius: 6px; cursor: pointer; font: inherit; }
.am-dia-format button[aria-pressed=true] { background: #1D6B66; color: #fff; border-color: #1D6B66; }
.am-dia-format .muted { font-size: 12.5px; margin-left: 6px; }
.am-dia-mise { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #405250; }
.am-dia-mise .btn[aria-pressed=true] { background: #1D6B66; color: #fff; border-color: #1D6B66; }
.am-dia-mise .muted { flex-basis: 100%; }
.am-dia-style, .am-dia-style-page { margin-top: 8px; border-top: 1px dashed #dfe6e4; padding-top: 6px; }
.am-dia-style > summary, .am-dia-style-page > summary { cursor: pointer; font-size: 13px; color: #1D6B66; font-weight: 600; padding: 4px 0; }
.am-dia-style > .champs, .am-dia-style-page > .champs { margin-top: 8px; }
.am-dia-elements > li.choisi { border-left-color: #1D6B66; box-shadow: 0 0 0 2px rgb(29 107 102 / .18); }
/* Plan des bulles (édition). */
.am-dia-plan.interieur { max-width: 380px; }
.am-dia-plan svg { width: 100%; height: auto; display: block; border-radius: 10px; touch-action: none; user-select: none; }
.am-dia-plan .cadre { fill: #fff; opacity: .95; }
.am-dia-plan .b { cursor: move; outline: none; }
.am-dia-plan .b > circle:first-child { fill: #fff; stroke: transparent; stroke-width: 4; vector-effect: non-scaling-stroke; }
.am-dia-plan .b.centre > circle:first-child { fill: #fff; }
.am-dia-plan .b:hover > circle:first-child, .am-dia-plan .b:focus-visible > circle:first-child, .am-dia-plan .b.choisi > circle:first-child { stroke: #a8875a; }
.am-dia-plan .b text { fill: #1c1c1c; font-family: var(--font-sans, system-ui, sans-serif); pointer-events: none; }
.am-dia-plan .b.centre text { font-weight: 700; }
.am-dia-plan .picto { fill: none; stroke: #a8875a; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.am-dia-plan .poignee { fill: #a8875a; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: nwse-resize; opacity: 0; }
.am-dia-plan .b:hover .poignee, .am-dia-plan .b:focus-visible .poignee, .am-dia-plan .b.choisi .poignee, .am-dia-plan .b.centre .poignee { opacity: 1; }
.am-dia-editeur.is-tel .am-dia-panneau .ligne3, .am-dia-editeur.is-tel .am-dia-panneau .ligne4 { grid-template-columns: minmax(0, 1fr); }
@media (hover: none) { .am-dia-plan .poignee { opacity: 1; } }
/* Téléphone, mode présentation : une page en mise en page libre s'empile pour rester lisible. */
@media (max-width: 600px) {
  .am-dia-vue .am-dia-elts.libre { display: grid; gap: 10px; overflow: auto; }
  .am-dia-vue .am-dia-libre { position: static; width: auto !important; height: auto !important; }
  .am-dia-vue .am-dia-libre > .contenu { overflow: visible; }
}

/* AM-160 (06/11) : la une du Journal façon grand quotidien (UneQuotidien.tsx). Encre et papier = couleurs du thème. */
@font-face { font-family: "GP Fraktur"; src: url(/fonts/gp/unifrakturmaguntia-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Old Standard"; src: url(/fonts/gp/old-standard-tt-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Old Standard"; src: url(/fonts/gp/old-standard-tt-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GP Old Standard"; src: url(/fonts/gp/old-standard-tt-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GP Caslon"; src: url(/fonts/gp/libre-caslon-text-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Caslon"; src: url(/fonts/gp/libre-caslon-text-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GP Caslon"; src: url(/fonts/gp/libre-caslon-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
.am-journal { --am-une-mast: "GP Fraktur", "Old English Text MT", "Times New Roman", serif; --am-une-titre: "GP Old Standard", "Times New Roman", Georgia, serif; --am-une-texte: "GP Caslon", Georgia, "Times New Roman", serif; --am-une-filet: color-mix(in srgb, var(--fg) 30%, transparent); --am-une-teinte: color-mix(in srgb, var(--fg) 7%, transparent); }
.am-une-tete { display: grid; gap: 0; color: var(--fg); }
.am-une-mast { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; align-items: center; gap: 16px; padding-bottom: 6px; }
.am-une-oreille { border: 1px solid var(--fg); padding: 6px 8px; font-family: var(--am-une-titre); font-size: 11.5px; line-height: 1.3; text-align: center; }
.am-une-oreille i { display: block; font-size: 12.5px; }
.am-une-oreille b { display: block; }
.am-journal .am-une-mast h1 { font-family: var(--am-une-mast); font-weight: 400; font-size: clamp(36px, 7vw, 84px); line-height: 1.05; text-align: center; letter-spacing: 0; margin: 0; text-wrap: balance; }
.am-une-devise { margin: 2px 0 0; text-align: center; font-family: var(--am-une-titre); font-style: italic; font-size: 13px; }
.am-une-dateline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; margin: 0; border-top: 1px solid var(--fg); border-bottom: 3px double var(--fg); padding: 4px 0; font-family: var(--am-une-titre); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.am-une-marches { margin: 0; font-family: var(--am-une-titre); font-size: 12.5px; text-align: center; border-bottom: 1px solid var(--fg); padding: 5px 0; line-height: 1.6; font-variant-numeric: tabular-nums lining-nums; }
.am-une-marches span { white-space: nowrap; }
.am-une-marches span + span::before { content: "·"; padding: 0 8px; color: var(--fg-2); }
.am-une-grille { display: grid; grid-template-columns: 3fr 2fr 1fr; color: var(--fg); font-family: var(--am-une-texte); font-size: 15px; line-height: 1.5; border-bottom: 3px double var(--fg); padding-bottom: 14px; }
.am-une-grille > * { min-width: 0; padding: 0 14px; }
.am-une-grille > :first-child { padding-left: 0; }
.am-une-grille > :last-child { padding-right: 0; }
.am-une-grille > * + * { border-left: 1px solid var(--am-une-filet); }
.am-une-grille p { margin: 0 0 .6em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.am-une-kicker { display: block; font-family: var(--am-une-titre); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.am-journal .am-une-titre { font-family: var(--am-une-titre); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.am-une-decks { margin-bottom: 10px; }
.am-une-grille .am-une-deck { font-family: var(--am-une-titre); font-size: 16px; line-height: 1.25; text-align: center; margin: 8px auto 0; padding-top: 7px; }
.am-une-deck::before { content: ""; display: block; width: 56px; border-top: 1px solid var(--fg); margin: 0 auto 7px; }
.am-une-deck.is-it { font-style: italic; }
.am-une-planche { margin: 0 0 12px; border: 1px solid var(--fg); padding: 8px; }
.am-une-planche figcaption { font-family: var(--am-une-titre); font-style: italic; font-size: 12px; margin-top: 6px; line-height: 1.35; }
.am-une-horloge { width: 100%; height: auto; display: block; }
.am-une-horloge text { font-family: var(--am-une-titre); fill: var(--fg); font-size: 11px; }
.am-une-horloge .am-une-q { font-size: 12px; letter-spacing: .14em; fill: var(--fg-2); }
.am-une-horloge .am-une-ax { font-size: 10px; fill: var(--fg-2); font-style: italic; }
.am-une-horloge .is-gras { font-weight: 700; }
.am-une-teinte { fill: var(--am-une-teinte); }
.am-une-hachure { stroke: var(--am-une-filet); stroke-width: .5; }
.am-une-pointille { stroke: var(--am-une-filet); stroke-width: .5; stroke-dasharray: 1 3; }
.am-une-trait { stroke: var(--fg); stroke-width: 1; }
.am-une-cadre { fill: none; stroke: var(--fg); stroke-width: 1; }
.am-une-pt { fill: var(--bg, Canvas); stroke: var(--fg); stroke-width: 1.3; }
.am-une-pt.is-plein { fill: var(--fg); }
.am-une-cols { columns: 2 210px; column-gap: 24px; column-rule: 1px solid var(--am-une-filet); }
.am-une-lettrine::first-letter { font-family: var(--am-une-titre); font-weight: 700; float: left; font-size: 50px; line-height: .82; padding: 4px 6px 0 0; }
.am-une-grille .am-une-src { font-family: var(--am-une-titre); font-style: italic; font-size: 11px; color: var(--fg-2); text-align: left; margin-top: 6px; }
.am-journal .am-une-h3 { font-family: var(--am-une-titre); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 0; }
.am-une-grille .am-une-h4 { font-family: var(--am-une-titre); font-weight: 700; font-size: 16px; line-height: 1.15; margin: 0 0 3px; text-align: left; }
.am-une-podium { list-style: none; margin: 10px 0; padding: 0; border-top: 2px solid var(--fg); font-variant-numeric: tabular-nums lining-nums; }
.am-une-podium li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--am-une-filet); }
.am-une-rang { font-family: var(--am-une-titre); font-weight: 700; font-size: 20px; }
.am-une-nom { font-family: var(--am-une-titre); font-weight: 700; font-size: 16px; }
.am-une-nom small { display: block; font-family: var(--am-une-texte); font-weight: 400; font-size: 12px; color: var(--fg-2); }
.am-une-sc { font-family: var(--am-une-titre); font-size: 14px; text-align: right; }
.am-une-grille .am-une-petit { font-size: 12.5px; }
.am-une-fiche { background: var(--am-une-teinte); padding: 10px 12px; margin: 10px 0; }
.am-une-fiche dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; margin: 6px 0 0; font-size: 13px; font-variant-numeric: tabular-nums lining-nums; }
.am-une-fiche dd { margin: 0; text-align: right; font-family: var(--am-une-titre); font-weight: 700; }
.am-une-breve { border-top: 1px solid var(--fg); padding-top: 8px; margin-top: 8px; }
.am-une-breves .am-une-kicker + .am-une-breve { border-top-width: 2px; margin-top: 0; }
.am-une-grille .am-une-breve p { font-size: 13.5px; margin: 0; text-align: left; }
@media (max-width: 900px) {
  .am-une-mast { grid-template-columns: minmax(0, 1fr); }
  .am-une-oreille { display: none; }
  .am-une-grille { grid-template-columns: minmax(0, 1fr); }
  .am-une-grille > * { padding: 0 !important; border-left: 0 !important; }
  .am-une-grille > * + * { border-top: 1px solid var(--fg); margin-top: 16px; padding-top: 14px !important; }
}
@media (max-width: 520px) { .am-une-cols { columns: 1; } }

/* AM-162 (09/11/2026) : retours Taux / Dette / Inflation / Croissance ; graphiques combinés façon « Guide to the Markets ». */
.am-prez-courbe polygon.inversion { fill: #b23b32; opacity: .6; }
.am-prez-courbe rect.inversion { fill: #b23b32; opacity: .13; }
.am-prez-courbe rect.periode { fill: #66231f; opacity: .12; }
.am-rec-courbes .legende .cle i.periode { height: 12px; background: rgba(102, 35, 31, .28); }
.am-dia-generation { padding: 16px; margin: 18px 0; border: 1px solid rgba(168, 135, 90, .42); border-radius: 12px; background: #f6f1e7; }
.am-dia-generation > label { display: block; margin-bottom: 8px; color: #2c3825; font-weight: 650; }
.am-dia-generation > div { display: flex; align-items: stretch; gap: 10px; }
.am-dia-generation textarea { flex: 1; min-width: 0; resize: vertical; padding: 10px 12px; border: 1px solid #c7b99e; border-radius: 8px; font: inherit; }
.am-dia-generation .btn { align-self: center; }
.am-dia-generation p { margin: 7px 0 0; }
.am-dia-e.courbe + .am-dia-e { margin-top: 12px; }
.am-dia-panneau .champs label.am-dia-case { display: flex; align-items: center; gap: 8px; }
.am-dia-panneau .champs label > textarea { width: 100%; box-sizing: border-box; resize: vertical; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.am-dia-courbe-produit { display: block; width: 100%; height: auto; overflow: visible; }
.am-dia-courbe-produit .grille { stroke: #e6e1d4; stroke-width: 1; }
.am-dia-courbe-produit .axe { fill: #6b6b6b; font: 12px system-ui, sans-serif; }
.am-dia-courbe-produit .seuil { fill: #66231f; font: 11px system-ui, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.am-dia-courbe-produit-cle { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; font-size: 12px; }
.am-dia-courbe-produit-cle > div { display: flex; align-items: center; gap: 6px; }
.am-dia-courbe-produit-cle i { width: 12px; height: 3px; border-radius: 2px; }
.am-dia-e.courbe-produit > small { display: block; color: #666; }
.am-dia-context-overlay { position: fixed; inset: 0; z-index: 1200; }
.am-dia-context-menu { position: fixed; z-index: 1201; display: grid; gap: 5px; min-width: 210px; padding: 8px; border: 1px solid #d4c8b2; border-radius: 9px; background: #fffdf8; box-shadow: 0 8px 26px rgba(0,0,0,.2); color: #29271f; }
.am-dia-context-menu b { padding: 4px 8px; color: #8a795e; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.am-dia-context-menu button { border: 0; border-radius: 6px; padding: 9px 8px; text-align: left; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.am-dia-context-menu button:hover { background: #f2ecdf; }
.am-dia-plage-overlay { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: 18px; background: rgba(23, 28, 22, .56); }
.am-dia-plage-dialog { display: grid; gap: 15px; width: min(680px, 100%); max-height: min(88vh, 850px); overflow: auto; padding: 20px; border-radius: 14px; background: #fffdf8; color: #24271f; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.am-dia-plage-dialog > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.am-dia-plage-dialog h3 { margin: 0; font-size: 19px; }
.am-dia-plage-dialog header p { margin: 4px 0 0; }
.am-dia-plage-recherche { display: grid; gap: 6px; font-weight: 600; }
.am-dia-plage-recherche input { min-height: 42px; padding: 8px 12px; border: 1px solid #b9ad96; border-radius: 8px; font: inherit; }
.am-dia-plage-selection { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.am-dia-plage-selection button { border: 1px solid #bca57e; border-radius: 999px; padding: 5px 10px; background: #f6f1e7; color: #342b1e; cursor: pointer; }
.am-dia-plage-resultats { display: grid; max-height: 260px; overflow: auto; border-block: 1px solid #e2d9c8; }
.am-dia-plage-resultats > label { display: flex; gap: 9px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid #eee8dc; cursor: pointer; }
.am-dia-plage-resultats > label.selectionnee { background: #f4efe5; }
.am-dia-plage-resultats > label > span { display: grid; gap: 2px; }
.am-dia-plage-resultats small { color: #716c61; }
.am-dia-plage-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-dia-plage-dates label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.am-dia-plage-dates input { min-height: 36px; border: 1px solid #c8bda9; border-radius: 7px; padding: 5px 8px; font: inherit; }
.am-dia-plage-options { display: grid; gap: 7px; }
.am-dia-plage-options label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.am-dia-plage-apercu { display: grid; gap: 6px; max-height: 270px; overflow: auto; padding: 10px; border: 1px solid #e0d7c7; border-radius: 8px; background: #fff; }
.am-dia-plage-apercu > b { font-size: 13px; }
.am-dia-plage-apercu .am-rec-courbes { min-height: 220px; }
.am-dia-plage-dialog > footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
@media (max-width: 560px) { .am-dia-plage-dates { grid-template-columns: 1fr; } .am-dia-plage-dialog { padding: 16px; } }
@media (max-width: 700px) { .am-dia-generation > div { flex-direction: column; } .am-dia-generation .btn { align-self: stretch; } }
.am-rec-courbes .legende .cle i.inversion { height: 12px; background: rgba(178, 59, 50, .35); }
.am-prez-courbe .evt line { stroke: #a8875a; stroke-dasharray: 4 3; }
.am-prez-courbe .evt text { font-size: 11.5px; fill: #6d5a3a; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.am-prez-liaison { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--or, #a8875a); background: #faf7f1; font-size: 15px; color: #3a3a3a; border-radius: 0 8px 8px 0; }
.am-prez-liaison span { color: var(--or, #a8875a); font-weight: 700; margin-right: 4px; }
.am-prez-pied .am-prez-ensuite { font-size: 13px; color: #1D6B66; border-style: dashed; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.am-rec-ensemble { display: grid; gap: 18px; align-items: start; }
.am-rec-ensemble > .am-rec-bloc { margin: 0; min-width: 0; }
@media (max-width: 760px) { .am-rec-ensemble { grid-template-columns: 1fr !important; } }
.am-rec-image { margin: 0; }
.am-rec-image img { width: 100%; height: auto; border-radius: 10px; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.am-rec-image figcaption { font-size: 13px; color: #444; margin-top: 8px; line-height: 1.45; }
.am-rec-image figcaption small { display: block; color: #777; font-size: 11px; margin-top: 4px; }
.am-rec-image figcaption a { color: #1D6B66; }
.am-rec-illus { margin: 0; text-align: center; }
.am-rec-dessin { width: 100%; max-width: 280px; height: auto; }
.am-rec-illus figcaption { font-size: 12.5px; color: #555; line-height: 1.4; }

.am-rec-traj .legende { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; margin-bottom: 4px; }
.am-rec-traj .legende button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; color: inherit; }
.am-rec-traj .legende button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.am-rec-traj .legende i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.am-rec-traj .legende .cle { display: inline-flex; align-items: center; gap: 6px; color: #555; }
.am-rec-traj .legende i.pointille { background: repeating-linear-gradient(90deg, #555 0 4px, transparent 4px 7px); }
.am-rec-traj .legende i.bande { height: 12px; background: rgba(201, 162, 74, .25); }
.am-prez-courbe .trait.prevu { stroke-dasharray: 6 5; }
.am-prez-courbe .bande rect { fill: rgba(201, 162, 74, .16); }
.am-prez-courbe .bande .titre { font-size: 12.5px; font-weight: 700; fill: #8a6d33; }
.am-prez-courbe .bande .hausse { font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.am-prez-courbe .auj line { stroke: #888; stroke-dasharray: 2 3; }
.am-prez-courbe .auj text { font-size: 12px; fill: #555; font-style: italic; }
.am-prez-courbe text.fin { font-size: 12.5px; font-weight: 700; }
.am-rec-traj .lecture, .am-rec-nuage .lecture { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; min-height: 1.6em; align-items: center; }
.am-rec-traj .lecture span { display: inline-flex; align-items: center; gap: 6px; }
.am-rec-traj .lecture i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.am-rec-nuage .outils, .am-rec-cumul .outils, .am-rec-echeances .outils { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 6px; }
.am-rec-nuage .legende, .am-rec-cumul .legende, .am-rec-echeances .legende { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: #555; }
.am-rec-nuage .legende i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.am-rec-nuage .legende i.vieux { background: rgb(190, 214, 210); } .am-rec-nuage .legende i.recent { background: rgb(19, 79, 75); } .am-rec-nuage .legende i.dernier { background: #c9a24a; }
.am-prez-courbe .tendance { stroke: #b23b32; stroke-width: 2; stroke-dasharray: 7 4; }
.am-prez-courbe text.axe { font-size: 12px; fill: #444; font-weight: 600; }
.am-rec-nuage .corr { color: #333; }

.am-rec-cumul .legende i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.am-rec-cumul .legende i.n, .am-rec-cumul .b.n { background: #1D6B66; }
.am-rec-cumul .legende i.n1, .am-rec-cumul .b.n1 { background: #c7d8d5; }
.am-rec-cumul .grille { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(200px, 3fr); gap: 0; font-size: 13.5px; }
.am-rec-cumul .grille.deux { grid-template-columns: minmax(110px, 1fr) minmax(180px, 2.4fr) minmax(180px, 2.4fr) minmax(70px, .8fr); }
.am-rec-cumul .entete, .am-rec-cumul .ligne { display: contents; }
.am-rec-cumul .entete span { font-size: 12px; color: #666; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #ddd; }
.am-rec-cumul .groupe { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #a8875a; font-weight: 700; padding: 10px 6px 2px; }
.am-rec-cumul .ligne > * { padding: 6px; border-bottom: 1px solid #f0f0ee; cursor: pointer; }
.am-rec-cumul .ligne:hover > *, .am-rec-cumul .ligne.ouvert > * { background: #f6f8f7; }
.am-rec-cumul .ligne.fr .zone { font-weight: 700; }
.am-rec-cumul .zone small { display: block; font-size: 11px; color: #888; }
.am-rec-cumul .paire { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.am-rec-cumul .paire.vide { display: block; color: #aaa; font-style: italic; font-size: 12px; }
.am-rec-cumul .piste { position: relative; height: 22px; }
.am-rec-cumul .piste .b { position: absolute; border-radius: 2px; }
.am-rec-cumul .piste .b.n1 { top: 0; height: 8px; }
.am-rec-cumul .piste .b.n { top: 9px; height: 13px; }
.am-rec-cumul .piste .zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: #999; }
.am-rec-cumul .v { text-align: right; min-width: 64px; }
.am-rec-cumul .v b { font-variant-numeric: tabular-nums; }
.am-rec-cumul .v small, .am-rec-cumul .ecart small { display: block; font-size: 11px; color: #888; }
.am-rec-cumul .ecart b { font-variant-numeric: tabular-nums; }
.fl { font-size: 12px; font-weight: 700; white-space: nowrap; padding: 2px 6px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.fl.mal { color: #b23b32; background: #f8e9e7; } .fl.bien { color: #1D6B66; background: #e3f0ee; } .fl.neutre { color: #777; background: #f0f0ee; }
.am-rec-cumul .mini { grid-column: 1 / -1; padding: 6px 6px 12px; background: #f6f8f7; }
.am-rec-cumul .mini svg { max-width: 560px; }
.am-rec-cumul .mini .trait { stroke: #1D6B66; } .am-rec-cumul .mini .trait.n1 { stroke: #b9cfcb; stroke-dasharray: 5 4; }
.am-rec-cumul .mini .trait.sous { stroke-width: 1.2; opacity: .75; }
.am-rec-cumul .mini i.k { display: inline-block; width: 14px; height: 3px; margin: 0 4px 2px 8px; vertical-align: middle; }
.am-rec-cumul .mini i.k.n { background: #1D6B66; } .am-rec-cumul .mini i.k.n1 { background: #b9cfcb; }
@media (max-width: 760px) {
  .am-rec-cumul .grille.deux { grid-template-columns: minmax(90px, 1fr) minmax(150px, 2fr); }
  .am-rec-cumul .grille.deux .entete span:nth-child(n+3), .am-rec-cumul .grille.deux .ligne > :nth-child(n+3) { display: none; }
}

.am-rec-echeances .legende span { display: inline-flex; align-items: center; gap: 5px; }
.am-rec-echeances .legende i { width: 16px; height: 3px; display: inline-block; border-radius: 2px; }
.am-rec-echeances .legende i.plein { background: #555; } .am-rec-echeances .legende i.tirets { background: repeating-linear-gradient(90deg, #999 0 4px, transparent 4px 7px); }
.am-prez-courbe .trait.avant { stroke-dasharray: 5 4; opacity: .5; }
.am-rec-echeances .ecarts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; align-items: center; margin-top: 4px; }
.am-rec-echeances .ecarts span { display: inline-flex; gap: 6px; align-items: center; }

/* AM-165 : Guide des marchés (planches à jour, présentation, PDF pour Prezi). */
.am-guide-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.am-guide-tete p { margin: 4px 0 0; max-width: 62ch; }
.am-guide-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.am-guide-astuce { font-size: 12.5px; margin: 8px 0 0; }
.am-guide-info { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, #1D6B66 10%, var(--surface)); font-size: 13.5px; }
.am-guide-chapitres { margin: 14px 0; flex-wrap: wrap; }
.am-guide-raz { margin-left: auto; }
.am-guide-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.am-guide-planche { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 10px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.am-guide-planche.is-choisie { border-color: #1D6B66; box-shadow: 0 0 0 2px color-mix(in srgb, #1D6B66 25%, transparent); }
.am-guide-planche header { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.am-guide-chap { grid-column: 1; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #a8875a; font-weight: 600; }
.am-guide-planche h3 { grid-column: 1; margin: 0; font-size: 16px; line-height: 1.25; }
.am-guide-choix { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; white-space: nowrap; }
.am-guide-message { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--fg); }
.am-guide-corps { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; }
.am-guide-graph { margin: 0; }
.am-guide-graph svg { width: 100%; height: auto; display: block; }
.am-guide-graph text { font-size: 11px; fill: var(--fg-3); }
.am-guide-graph .grille { stroke: var(--border); stroke-width: 1; }
.am-guide-graph .zero { stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 3 3; }
.am-guide-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--fg-2); margin-top: 4px; }
.am-guide-legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.am-guide-chiffres { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-guide-chiffres b { display: block; font-size: 22px; line-height: 1.1; color: #1D6B66; font-variant-numeric: tabular-nums; }
.am-guide-chiffres span { font-size: 11.5px; color: var(--fg-3); line-height: 1.3; }
.am-guide-aide { margin: 0; font-size: 12px; color: var(--fg-3); }
.am-guide-planche footer { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); font-size: 11px; color: var(--fg-3); }
.am-guide-vide { color: var(--fg-3); font-size: 13px; padding: 30px 0; text-align: center; }
.am-guide-impression { display: none; }
@media (max-width: 700px) { .am-guide-corps { grid-template-columns: 1fr; } .am-guide-chiffres { grid-template-columns: 1fr 1fr; } }
@media print {
  html.am-guide-imprime body > :not(.am-guide-impression) { display: none !important; }
  html.am-guide-imprime body { background: #fff; overflow: visible; }
  html.am-guide-imprime .am-guide-impression { display: block; width: 100%; background: #fff; }
  html.am-guide-imprime .am-guide-feuille { break-after: page; page: guide; height: 180mm; display: flex; flex-direction: column; }
  html.am-guide-imprime .am-guide-feuille:last-child { break-after: auto; }
  html.am-guide-imprime .am-guide-planche { border: 0; box-shadow: none; padding: 0; flex: 1; color: #111; background: #fff; }
  html.am-guide-imprime .am-guide-planche h3 { font-size: 22px; }
  html.am-guide-imprime .am-guide-message { font-size: 15px; }
  html.am-guide-imprime .am-guide-corps { grid-template-columns: 1fr 200px; }
  html.am-guide-imprime .am-guide-chiffres b { font-size: 28px; }
  html.am-guide-imprime .am-guide-mention { font-size: 9px; color: #666; margin: 6px 0 0; }
  @page guide { size: A4 landscape; margin: 12mm 14mm; }
}

/* AM-166 : période du calcul et chiffre absent, dits plutôt que cachés. */
.gp-periode { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); text-align: center; }
.gp-investir-absent { font-size: 12.5px; color: var(--gp-encre-2, #5b5b5b); margin: 4px 0 8px; }
/* AM-167 : « Depuis ta dernière visite » */
.gp-depuis ul { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 6px; }
.gp-depuis li { font-size: 15px; }
.gp-depuis li small { color: var(--gp-encre-2, #5b5b5b); font-size: 12.5px; }
.gp-depuis .is-haut { color: #1d6b66; }
.gp-depuis .is-bas { color: #b4462f; }

/* ── AM-168 (10/11/2026) : DA « Maison » formalisée d'après le rapport de direction artistique remis par Thomas.
   Luxe éditorial discret : Cormorant Garamond (titres, montants) + Inter (texte, boutons, données) ; palette
   crème #F3EFE7, vert nuit #102F2B, sarcelle #23746D, ocre #C49A60, grège #DCD4C6. Priorité à la lisibilité :
   texte utile ≥ 14 px, étiquettes ≥ 12 px, zones tactiles ≥ 44 px, contrastes ≥ 4,5:1 (gris doux 5,15:1 sur crème ;
   l'ocre n'écrit jamais en petit sur fond clair : teinte foncée #7A5B2E, 5,44:1). Polices servies par la suite. ── */
@font-face { font-family: "GP Cormorant"; src: url(/fonts/gp/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GP Cormorant"; src: url(/fonts/gp/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GP Cormorant"; src: url(/fonts/gp/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GP Inter"; src: url(/fonts/gp/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
.gp-app {
  --gp-serif: "GP Cormorant", "Cormorant Garamond", Georgia, serif;
  --gp-encre: #102F2B; --gp-fond: #F3EFE7; --gp-carte: #FBF8F2; --gp-trait: #DCD4C6; --gp-doux: #5A6764;
  --gp-vert: #23746D; --gp-or: #C49A60; --gp-or-clair: #D4B07A; --gp-or-texte: #7A5B2E; --gp-corail: #C49A60; --gp-bleu: #23746D;
  --border-strong: #C9BDA8; --fg-2: #2A403D;
  font-size: 16px; line-height: 1.45;
}
/* Échelle typographique du rapport (H1 32, H2 25, H3 21, display ≥ 40) ; Cormorant a un petit œil : Medium sur les titres moyens. */
.gp-app h1 { font-family: var(--gp-serif); font-weight: 400; }
.gp-app .gp-entete-simple h1, .gp-app .gp-tete h1, .gp-app .gp-compte h1 { font-size: 32px; line-height: 1.08; letter-spacing: 0; }
.gp-app h2, .gp-app .gp-titre-carte { font-family: var(--gp-serif); font-weight: 500; letter-spacing: 0; }
.gp-app .gp-titre-carte { font-size: 23px; line-height: 1.15; }
.gp-app h3 { font-family: var(--gp-serif); font-weight: 500; font-size: 21px; }
.gp-app .gp-resultat-chiffre, .gp-app .gp-carte-loupe strong { font-family: var(--gp-serif); font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.gp-app .gp-resultat-chiffre { font-size: 60px; }
/* Texte utile ≥ 14 px. */
.gp-app .gp-carte-loupe span, .gp-app .gp-carte-macro span, .gp-app .gp-traits li, .gp-app .gp-change, .gp-app .gp-confirme,
.gp-app .gp-confirme-autres button, .gp-app .gp-seg button, .gp-app .gp-investir-chiffre, .gp-app .gp-investir ol,
.gp-app .gp-zone-fil, .gp-app .gp-zone-note, .gp-app .gp-news-lien, .gp-app .gp-alerte-appli, .gp-app .gp-palier-propose,
.gp-app .gp-avertir, .gp-app .gp-periode, .gp-app .gp-investir-absent, .gp-app .gp-puce, .gp-app .gp-niveau-ligne,
.gp-app .gp-barres li, .gp-app .gp-q-aide, .gp-app .gp-tete .gp-sur { font-size: 14px; }
.gp-app .gp-depuis li small { font-size: 13px; }
/* Étiquettes et métadonnées ≥ 12 px. */
.gp-app .gp-sur, .gp-app .gp-serie, .gp-app .gp-carte-loupe small, .gp-app .gp-carte-macro small, .gp-app .gp-resultat-sur,
.gp-app .gp-investir small, .gp-app .gp-zone-tete p, .gp-app .gp-zone-tete small, .gp-app .gp-zone-enfants small,
.gp-app .gp-chemin span, .gp-app .gp-chemin b, .gp-app .gp-chemin small, .gp-app .gp-visite-pas, .gp-app .gp-pire small,
.gp-app .gp-news small, .gp-app .gp-mentions { font-size: max(12px, 0.75rem); }
.gp-app .gp-mentions { line-height: 1.45; }
/* L'ocre n'écrit pas en petit sur fond clair. */
.gp-app .gp-serie { color: var(--gp-or-texte); border-color: var(--gp-or); }
.gp-app .gp-carte-macro small { color: var(--gp-or-texte); }
/* Zones tactiles ≥ 44 px. */
.gp-app .gp-puce, .gp-app .gp-seg button, .gp-app .gp-lien, .gp-app .gp-bouton, .gp-app .gp-confirme-autres button { min-height: 44px; }
.gp-app .gp-puce { padding: 10px 16px; }
.gp-app .gp-lien { display: inline-flex; align-items: center; }
.gp-app .gp-barre button { min-height: 48px; font-size: 12px; font-weight: 500; }
/* États visibles : clavier et appui. */
.gp-app button:focus-visible, .gp-app a:focus-visible, .gp-app input:focus-visible { outline: 2px solid var(--gp-vert); outline-offset: 2px; }
.gp-app .gp-puce:active, .gp-app .gp-seg button:active { transform: scale(.98); }
/* AM-168 finitions : chiffres alignés partout (Cormorant dessine des chiffres bas de casse par défaut, peu lisibles
   pour des montants), date de l'accueil en minuscules françaises, montants jamais coupés, légendes d'objets ≥ 12 px. */
.gp-app { font-variant-numeric: lining-nums; }
.gp-app .gp-tete .gp-sur { text-transform: none; }
.gp-app .gp-tete .gp-sur::first-letter { text-transform: uppercase; }
.gp-app .gp-alerte b, .gp-app .gp-resultat b, .gp-app .gp-barres b { white-space: nowrap; }
.gp-app .gp-objet small { font-size: 12px; line-height: 1.25; }

/* ── AM-169 (10/11/2026) : quiz et cartes à collectionner passent en DA « Maison », côté jeu gardé (go de Thomas :
   « garde le côté jeu mais adapte-le »). On garde ce qui fait jouer : réponses qui s'enfoncent à l'appui, jauge,
   tampons, réaction qui surgit, médaille, carte qui se retourne, paquet qu'on déchire. On change l'habillage :
   crème et vert nuit au lieu du jaune et du noir, ombres décalées adoucies (vert nuit), accents ocre, titres en
   Cormorant (plus de capitales criardes), texte en Inter, couleurs d'état doublées d'un mot (Juste / Faux). ── */
.gp-app {
  --gpq-encre: #102F2B; --gpq-ombre: rgba(16,47,43,.85); --gpq-fond: #F3EFE7; --gpq-carte: #FBF8F2;
  --gpq-sar: #23746D; --gpq-ocre: #C49A60; --gpq-ocre-pale: #EFE0C6; --gpq-juste: #DCEDE4; --gpq-faux: #F5DED6;
}
/* Quiz et questionnaire */
.gp-app .gpq-ecran, .gp-app .gpq-zone { background: var(--gpq-fond); color: var(--gpq-encre); font-family: "GP Inter", system-ui, sans-serif; }
.gp-app .gpq-zone { border-top: 1px solid var(--gp-trait); }
.gp-app .gpq-haut { color: var(--gpq-encre); font-size: 13px; font-weight: 600; }
.gp-app .gpq-retour-btn { width: 44px; height: 44px; border: 1.5px solid var(--gpq-encre); background: var(--gpq-carte); color: var(--gpq-encre); box-shadow: 2px 2px 0 var(--gpq-ombre); }
.gp-app .gpq-prog { height: 12px; border: 1.5px solid var(--gpq-encre); background: var(--gpq-carte); }
.gp-app .gpq-prog i { background: var(--gpq-ocre); }
.gp-app .gpq-titre { font: 500 27px/1.15 var(--gp-serif) !important; text-transform: none; letter-spacing: 0 !important; color: var(--gpq-encre) !important; }
.gp-app .gpq .gpq-titre { font-size: 23px !important; }
.gp-app .gpq-aide { font-size: 15px; }
.gp-app .gpq-pourquoi { font-size: 14px; background: var(--gpq-carte); border: 1.5px dashed var(--gpq-ocre); }
.gp-app .gpq-pourquoi b { font-size: 12px; color: var(--gp-or-texte); }
.gp-app .gpq-rep button { min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--gpq-encre); background: var(--gpq-carte); box-shadow: 3px 3px 0 var(--gpq-ombre); font-weight: 500; font-size: 16px; color: var(--gpq-encre); }
.gp-app .gpq-rep button:focus-visible, .gp-app .gpq-tuiles button:focus-visible, .gp-app .gpq-champ:focus { outline: 2px solid var(--gpq-sar); }
.gp-app .gpq-rep button:not(:disabled):active, .gp-app .gpq-rep button.is-choisi { background: var(--gpq-sar); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gpq-ombre); }
.gp-app .gpq-rep button > b { width: 28px; height: 28px; border-radius: 50%; background: var(--gpq-encre); color: var(--gpq-fond); font: 500 15px var(--gp-serif); }
.gp-app .gpq-rep button.is-choisi > b { background: var(--gpq-fond); color: var(--gpq-encre); }
.gp-app .gpq-rep button.is-bonne { background: var(--gpq-juste); color: var(--gpq-encre); border-color: var(--gpq-sar); box-shadow: 1px 1px 0 var(--gpq-sar); }
.gp-app .gpq-rep button.is-fausse { background: var(--gpq-faux); color: var(--gpq-encre); border-color: #9E3D2B; box-shadow: 1px 1px 0 #9E3D2B; }
.gp-app .gpq-rep button.is-bonne::after { content: "Juste"; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--gpq-sar); }
.gp-app .gpq-rep button.is-fausse::after { content: "Faux"; margin-left: auto; font-size: 13px; font-weight: 600; color: #9E3D2B; }
.gp-app .gpq-bouton { min-height: 50px; border: 0; border-radius: 12px; background: var(--gpq-sar); color: #fff; box-shadow: 3px 3px 0 var(--gpq-ombre); font: 600 16px "GP Inter", system-ui, sans-serif; text-transform: none; }
.gp-app .gpq-bouton:focus-visible { outline: 2px solid var(--gpq-ocre); }
.gp-app .gpq-bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gpq-ombre); }
.gp-app .gpq-bouton:disabled { background: var(--gp-trait); color: var(--gp-doux); box-shadow: none; }
.gp-app .gpq-bouton.is-oui { background: var(--gpq-sar); color: #fff; } .gp-app .gpq-bouton.is-non { background: var(--gpq-carte); color: var(--gpq-encre); border: 1.5px solid var(--gpq-encre); }
.gp-app .gpq-lien { min-height: 44px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--gpq-sar); }
.gp-app .gpq-champ { border: 1.5px solid var(--gpq-encre); background: var(--gpq-carte); box-shadow: 3px 3px 0 var(--gpq-ombre); font: 500 26px var(--gp-serif); color: var(--gpq-encre); }
.gp-app .gpq-champ-petit { font: 400 16px "GP Inter", system-ui, sans-serif; }
.gp-app .gpq-tuiles button { min-height: 96px; border: 1.5px solid var(--gpq-encre); background: var(--gpq-carte); box-shadow: 3px 3px 0 var(--gpq-ombre); font-weight: 500; font-size: 14px; color: var(--gpq-encre); }
.gp-app .gpq-tuiles .m-a { fill: var(--gpq-sar); } .gp-app .gpq-tuiles .m-b { fill: var(--gpq-ocre); } .gp-app .gpq-tuiles .m-t { stroke: var(--gpq-encre); }
.gp-app .gpq-tuiles button.is-choisi { background: var(--gpq-ocre-pale); border-color: var(--gpq-sar); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gpq-ombre); }
.gp-app .gpq-reaction { background: var(--gpq-encre); color: var(--gp-or-clair); border: 1.5px solid var(--gpq-ocre); box-shadow: 4px 4px 0 rgba(196,154,96,.55); font: italic 400 25px/1.15 var(--gp-serif); text-transform: none; }
.gp-app .gpq-swipe { border: 1.5px solid var(--gpq-encre); box-shadow: 4px 4px 0 var(--gpq-ombre); }
.gp-app .gpq-swipe b { font: 500 28px/1.08 var(--gp-serif); text-transform: none; }
.gp-app .gpq-swipe small { font-size: 15px; font-weight: 400; }
.gp-app .gpq-swipe .m-a { fill: #fff; } .gp-app .gpq-swipe .m-b { fill: var(--gpq-ocre); } .gp-app .gpq-swipe .m-t { stroke: var(--gpq-encre); }
.gp-app .gpq-tampon { background: var(--gpq-ocre); color: var(--gpq-encre); border: 1.5px solid var(--gpq-encre); font: 600 16px "GP Inter", system-ui, sans-serif; letter-spacing: .06em; }
.gp-app .gpq-tampon.is-non { background: var(--gpq-carte); }
.gp-app .gpq-sur { font: 600 12px "GP Inter", system-ui, sans-serif; letter-spacing: .08em; color: var(--gp-or-texte); -webkit-text-stroke: 0; }
.gp-app .gpq-serie { background: var(--gpq-ocre); color: var(--gpq-encre); border: 1px solid var(--gpq-encre); }
.gp-app .gpq-retour { border: 1.5px solid var(--gpq-encre); }
.gp-app .gpq-retour.is-juste { background: var(--gpq-juste); border-color: var(--gpq-sar); } .gp-app .gpq-retour.is-faux { background: var(--gpq-faux); border-color: #9E3D2B; }
.gp-app .gpq-retour p { font-size: 14px; }
.gp-app .gpq-verdict { font: 500 20px/1.15 var(--gp-serif) !important; text-transform: none; }
.gp-app .gpq-fin h3 { font: 500 26px var(--gp-serif); text-transform: none; color: var(--gpq-encre); }
.gp-app .gpq-medaille { border: 1.5px solid var(--gpq-encre); background: var(--gpq-ocre); color: var(--gpq-encre); box-shadow: 3px 3px 0 var(--gpq-ombre), inset 0 0 0 5px rgba(251,248,242,.45); }
.gp-app .gpq-medaille b { font: 500 38px var(--gp-serif); }

/* Cartes à collectionner */
.gp-app .gpk-carte { font-family: "GP Inter", system-ui, sans-serif; color: var(--gpq-encre); }
.gp-app .gpk-carte:focus-visible, .gp-app .gpk-paquet:focus-visible { outline: 2px solid var(--gpq-ocre); }
.gp-app .gpk-dos, .gp-app .gpk-face { border: 1.5px solid var(--gpq-ocre); border-radius: 14px; box-shadow: inset 0 0 0 5px var(--gpq-carte), inset 0 0 0 6px var(--gpq-ocre), 4px 4px 0 var(--gpq-ombre); }
.gp-app .gpk-dos { background: var(--gpq-encre) radial-gradient(rgba(196,154,96,.38) 1.1px, transparent 1.2px) 0 0 / 8px 8px; box-shadow: inset 0 0 0 5px var(--gpq-encre), inset 0 0 0 6px var(--gpq-ocre), 4px 4px 0 var(--gpq-ombre); }
.gp-app .gpk-dos-embleme { background: var(--gpq-carte); border: 1.5px solid var(--gpq-ocre); font: italic 400 58px var(--gp-serif); color: var(--gpq-encre); }
.gp-app .gpk-dos-serie { background: none; color: var(--gp-or-clair); font-size: 11px; font-weight: 600; }
.gp-app .gpk-face { background: var(--gpq-carte); padding: 13px; }
.gp-app .gpk-tete { background: var(--gpq-sar); border-radius: 6px; font-size: 11px; font-weight: 600; }
.gp-app .gpk-carte.is-legendaire .gpk-tete { background: var(--gpq-ocre); color: var(--gpq-encre); } .gp-app .gpk-carte.is-legendaire .gpk-rarete { background: var(--gpq-encre); color: var(--gp-or-clair); border-color: var(--gpq-encre); }
.gp-app .gpk-carte.is-commune .gpk-tete { background: var(--gpq-encre); }
.gp-app .gpk-illus { border: 1px solid var(--gp-trait); border-radius: 8px; background: #EFE7D8 radial-gradient(rgba(16,47,43,.07) 1px, transparent 1.2px) 0 0 / 5px 5px; }
.gp-app .gpk-illus .m-a { fill: var(--gpq-sar); } .gp-app .gpk-illus .m-b { fill: var(--gpq-encre); } .gp-app .gpk-illus .m-t { stroke: var(--gpq-encre); stroke-width: 2.5; }
.gp-app .gpk-genre { font-size: 11px; font-weight: 600; color: var(--gp-or-texte); }
.gp-app .gpk-nom { font: italic 500 27px/1.02 var(--gp-serif); }
.gp-app .gpk-stat strong { font: 500 31px/1 var(--gp-serif); color: var(--gpq-sar); }
.gp-app .gpk-texte { font-size: 12.5px; line-height: 1.35; }
.gp-app .gpk-pied { font-size: 10px; color: var(--gp-doux); border-top: 1px solid var(--gp-trait); }
.gp-app .gpk-paquet { font-family: "GP Inter", system-ui, sans-serif; color: var(--gpq-carte); }
.gp-app .gpk-paquet-haut { background: repeating-linear-gradient(90deg, var(--gpq-ocre) 0 7px, #B08850 7px 14px); }
.gp-app .gpk-paquet-corps { border-radius: 4px 4px 14px 14px; background: var(--gpq-encre) radial-gradient(rgba(196,154,96,.35) 1.1px, transparent 1.2px) 0 0 / 8px 8px; box-shadow: 4px 4px 0 rgba(16,47,43,.25), inset 0 0 0 1.5px var(--gpq-ocre); }
.gp-app .gpk-paquet-marque { font: italic 500 27px/1.02 var(--gp-serif); background: none; color: var(--gp-or-clair); }
.gp-app .gpk-paquet-illus .m-a { fill: var(--gpq-ocre); } .gp-app .gpk-paquet-illus .m-b { fill: var(--gpq-carte); } .gp-app .gpk-paquet-illus .m-t { stroke: var(--gpq-carte); }
.gp-app .gpk-paquet-nb { font: 600 15px "GP Inter", system-ui, sans-serif; background: var(--gpq-ocre); color: var(--gpq-encre); border-radius: 99px; padding: 3px 12px; }
.gp-app .gpk-paquet-serie { font-size: 10px; background: none; color: var(--gp-or-clair); }
.gp-app .gpk-paquet-aide { font-size: 14px; color: var(--gpq-encre); }
/* AM-169/170 : chiffres alignés partout, y compris là où la propriété raccourcie « font: » remet font-variant et
   font-feature-settings à zéro (titres du quiz, cartes, notes). Le :not(#…) donne à la règle la priorité d'un
   identifiant, pour passer devant ces « font: » ; seul lnum est imposé (tabular-nums reste possible à côté). */
.gp-app, .gp-app :not(#gp-chiffres-alignes) { font-feature-settings: "lnum" 1; }

/* AM-170 (10/11/2026, retour de Thomas : « problème avec le zoom sur Journal », sur PC dans le cadre téléphone) :
   la Une (« Édition stratège ») est centrée par margin: auto ; dans la grille de l'appli, un élément centré ne
   s'étire plus et prend la largeur naturelle de son contenu (815 px imposés par l'horloge du cycle) : le Journal
   paraissait zoomé et coupé à droite. On le tient à la largeur de l'écran et on laisse ses blocs rétrécir. */
.gp-app .am-journal { width: 100%; max-width: 100%; min-width: 0; justify-self: stretch; box-sizing: border-box; }
.gp-app .am-journal > *, .gp-app .am-une-tete > *, .gp-app .am-une-papier > *, .gp-app .am-une-grille > * { min-width: 0; }
.gp-app .am-journal svg, .gp-app .am-journal img { max-width: 100%; }
.gp-app .am-une-marches span { white-space: normal; }
/* AM-170 : pont du Journal vers « Où investir ? » */
.gp-ou-investir { display: grid; gap: 8px; border: 1.5px solid var(--gp-vert); }
.gp-ou-investir ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.gp-ou-investir li button { width: 100%; min-height: 56px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--gp-trait); border-radius: 12px; background: var(--gp-fond); color: var(--gp-encre); text-align: left; cursor: pointer; }
.gp-ou-investir li button:active { transform: scale(.99); }
.gp-ou-investir li b { display: block; font-size: 16px; font-weight: 600; }
.gp-ou-investir li small { display: block; font-size: 13px; color: var(--gp-doux); }
.gp-ou-investir li em { font: 500 24px var(--gp-serif); font-style: normal; color: var(--gp-encre); }
.gp-ou-investir li em small { display: inline; font: 400 12px "GP Inter", system-ui, sans-serif; color: var(--gp-doux); }
/* AM-171 : « Où investir » en article à rubriques (style éditorial Maison) */
.gp-ou-investir { gap: 0; }
.gp-ou-investir .gp-titre-carte { margin: 2px 0 6px; }
.gp-oi-chapeau { margin: 0 0 6px; font: italic 400 19px/1.3 var(--gp-serif); color: var(--gp-encre); }
.gp-oi-rubrique { display: grid; gap: 6px; padding: 14px 0 10px; border-top: 1px solid var(--gp-trait); }
.gp-oi-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-oi-rubrique h3 { margin: 0; font: 500 22px/1.15 var(--gp-serif); color: var(--gp-encre); }
.gp-oi-rubrique p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2, #2A403D); }
.gp-oi-rubrique ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.gp-oi-rubrique li small { color: var(--gp-doux); font-size: 13px; }
.gp-oi-rubrique .is-haut { color: #1d6b66; font-weight: 600; } .gp-oi-rubrique .is-bas { color: #9E3D2B; font-weight: 600; }
.gp-oi-autres { font-size: 14px !important; }
.gp-oi-mot { border: 0; background: none; padding: 6px 0; min-height: 32px; font: inherit; color: var(--gp-vert); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gp-oi-lire { justify-self: start; min-height: 44px; border: 0; background: none; padding: 0; font: 600 15px "GP Inter", system-ui, sans-serif; color: var(--gp-vert); cursor: pointer; }
.gp-oi-lire span { font-size: 18px; margin-left: 2px; }
.gp-ou-investir .gp-mentions { margin-top: 6px; }
.gp-oi-rubrique li b, .gp-oi-rubrique li small { display: inline; }
.gp-oi-rubrique li b { font-size: 15px; font-weight: 600; }

/* AM-175 (12/11/2026) : « Le feu du jour », une zone à la fois en haut de l'accueil (carrousel à glisser) */
.gp-fdj { gap: 8px; border: 1.5px solid var(--gp-vert); min-width: 0; }
.gp-fdj.is-vide { border: 1px solid var(--gp-trait); }
.gp-fdj-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gp-fdj-tete .gp-titre-carte { font-size: 26px; line-height: 1.1; margin: 2px 0 0; }
.gp-fdj-compte { font-size: 14px; font-weight: 600; color: var(--gp-doux); font-variant-numeric: tabular-nums; padding-bottom: 4px; }
.gp-fdj-aide { margin: 0; font-size: 14px; line-height: 1.4; color: var(--gp-doux); }
.gp-fdj-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 16px; min-width: 0; }
.gp-fdj-rail::-webkit-scrollbar { display: none; }
.gp-fdj-rail:focus-visible { outline: 3px solid var(--gp-vert); outline-offset: 2px; }
.gp-fdj-zone { flex: 0 0 100%; min-width: 0; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; background: var(--gp-fond); border-left: 5px solid var(--gp-trait); }
.gp-fdj-zone.is-vert { border-left-color: var(--am-serein); } .gp-fdj-zone.is-orange { border-left-color: var(--am-neutre); } .gp-fdj-zone.is-rouge { border-left-color: var(--am-peur); }
.gp-fdj-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gp-fdj-ligne h3 { margin: 0; font: 500 30px/1.05 var(--gp-serif, "GP Instrument", Georgia, serif); color: var(--gp-encre); min-width: 0; overflow-wrap: anywhere; }
.gp-fdj-note { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-fdj-note b { font: 500 34px/1 var(--gp-serif, "GP Instrument", Georgia, serif); color: var(--gp-encre); }
.gp-fdj-note small { font-size: 13px; color: var(--gp-doux); margin-left: 2px; }
.gp-fdj-feu { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.gp-fdj-feu b { font-weight: 600; }
.gp-fdj-feu small { font-size: 13px; color: var(--gp-doux); }
.gp-fdj-pourquoi { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2, #2A403D); }
.gp-fdj-actions { display: grid; gap: 8px; }
.gp-fdj-actions button { min-height: 48px; border-radius: 14px; padding: 8px 10px; font: 600 15px "GP Inter", system-ui, sans-serif; cursor: pointer; }
.gp-fdj-y-aller { border: 0; background: var(--gp-encre); color: #fff; }
.gp-fdj-pour-contre { border: 1.5px solid var(--gp-vert); background: #fff; color: var(--gp-vert); }
.gp-fdj-nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gp-fdj-fleche { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--gp-trait); background: #fff; color: var(--gp-encre); font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.gp-fdj-fleche:disabled { opacity: .35; cursor: default; }
.gp-fdj-points { display: flex; justify-content: center; flex-wrap: wrap; min-width: 0; }
.gp-fdj-points button { width: 36px; min-width: 0; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.gp-fdj-points i { display: block; width: 9px; height: 9px; border-radius: 99px; background: var(--border-strong, #d9d0bf); transition: width .2s; }
.gp-fdj-points .is-on i { width: 22px; background: var(--gp-vert); }
.gp-fdj-toutes summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--gp-vert); cursor: pointer; }
.gp-fdj-toutes .gp-feux button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .gp-fdj-points i { transition: none; } }
/* AM-177 (12/11/2026) : bandeau « Pour toi aujourd'hui » (GpAlertes.tsx), une alerte par jour en haut de l'accueil.
   Charte Maison : carte sombre sarcelle, titres Cormorant, texte Inter, zones tactiles de 44 px au moins. */
.gp-app .gp-pti { position: relative; display: grid; gap: 6px; padding: 12px 52px 12px 14px; border-radius: 16px; background: var(--gp-encre, #102F2B); color: #F3EFE7; font-family: "GP Inter", system-ui, sans-serif; min-width: 0; }
.gp-app .gp-pti-sur { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-or-clair, #D4B07A); }
.gp-app .gp-pti-corps { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; min-width: 0; }
.gp-app .gp-pti-texte { display: grid; gap: 3px; flex: 1; min-width: 0; }
.gp-app .gp-pti-titre { font-family: var(--gp-serif, "GP Cormorant", Georgia, serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: #FBF8F2; overflow-wrap: anywhere; }
.gp-app .gp-pti-aide { font-size: 14px; line-height: 1.4; color: #E4DED2; overflow-wrap: anywhere; }
.gp-app .gp-pti-bouton { justify-self: start; margin-top: 2px; font-size: 14.5px; font-weight: 600; color: var(--gp-or-clair, #D4B07A); text-decoration: underline; text-underline-offset: 3px; }
.gp-app .gp-pti .gp-fleche { color: var(--gp-or-clair, #D4B07A); }
.gp-app .gp-pti-feux { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 8px; border-radius: 999px; background: rgba(251,248,242,.1); font-size: 13px; color: #E4DED2; }
.gp-app .gp-pti-mention { margin: 0; font-size: 12px; color: #C9C2B4; }
.gp-app .gp-pti-fermer { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; color: #E4DED2; font-size: 22px; padding: 0; cursor: pointer; }
.gp-app .gp-pti-fermer:focus-visible, .gp-app .gp-pti-corps:focus-visible { outline: 2px solid var(--gp-or-clair, #D4B07A); outline-offset: 2px; border-radius: 10px; }
.gp-app .gp-pti-accord { padding-right: 14px; }
.gp-app .gp-pti-choix { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-app .gp-pti-choix .gp-puce { min-height: 44px; padding: 0 18px; }
.gp-app .gp-pti-accord .gp-puce:not(.is-on) { background: transparent; color: #FBF8F2; border-color: rgba(251,248,242,.5); }
/* AM-174 (12/11/2026) : objectifs et récompenses. Carte « Ton objectif » sur l'accueil (remplace « Ton chemin » et
   « Tes points »), parcours « Mon premier placement », objectif d'épargne et badges dans Moi. Charte Maison :
   Cormorant pour titres et montants, Inter pour le texte, cibles ≥ 44 px, ocre jamais en petit sur fond clair. */
.gp-obj-carte { width: 100%; gap: 8px; cursor: pointer; color: var(--gp-encre); font: inherit; border-color: var(--gp-vert); }
.gp-obj-carte > b { font: 500 22px/1.15 var(--gp-serif); }
.gp-obj-carte-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gp-obj-carte-tete small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-obj-compte { font: 500 20px var(--gp-serif); color: var(--gp-vert); font-variant-numeric: tabular-nums; }
.gp-obj-carte-pied { font-size: 14px; font-weight: 600; color: var(--gp-vert); }
.gp-obj-barre { height: 8px; border-radius: 99px; background: var(--gp-trait); overflow: hidden; }
.gp-obj-barre i { display: block; height: 100%; border-radius: 99px; background: var(--gp-vert); transition: width .4s ease; }
.gp-obj-serie { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.gp-obj-serie b { color: var(--gp-encre); font-weight: 600; }
.gp-obj-parcours { gap: 10px; }
.gp-obj-parcours .gp-titre-carte { margin: 0; }
.gp-obj-etapes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.gp-obj-etapes > li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--gp-trait); min-width: 0; }
.gp-obj-etapes > li > div { display: grid; gap: 4px; min-width: 0; }
.gp-obj-etapes b { font-size: 16px; font-weight: 600; }
.gp-obj-etapes small { font-size: 14px; color: var(--gp-doux); line-height: 1.4; }
.gp-obj-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gp-trait); font: 500 18px var(--gp-serif); color: var(--gp-doux); background: var(--gp-carte); }
.gp-obj-etapes li.is-ici .gp-obj-num { border-color: var(--gp-vert); color: var(--gp-vert); }
.gp-obj-etapes li.is-fait .gp-obj-num { border-color: var(--gp-vert); background: var(--gp-vert); color: #fff; font-family: "GP Inter", system-ui, sans-serif; font-size: 16px; }
.gp-obj-aller { justify-self: start; min-height: 44px; border: 0; background: none; padding: 0; font: 600 15px "GP Inter", system-ui, sans-serif; color: var(--gp-vert); cursor: pointer; }
.gp-obj-aller span { font-size: 18px; margin-left: 2px; }
.gp-obj-contact { margin-top: 4px; }
.gp-obj-contact .am-contact { width: 100%; min-height: 44px; }
.gp-a-valider { font-size: 12px; font-weight: 600; color: #9E3D2B; white-space: nowrap; }
.gp-obj-enveloppes { display: grid; gap: 8px; margin-top: 4px; }
.gp-obj-enveloppes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-obj-enveloppes li button { width: 100%; min-height: 56px; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--gp-trait); border-radius: 12px; background: var(--gp-fond); color: var(--gp-encre); font: inherit; cursor: pointer; }
.gp-obj-enveloppes li button.is-on { border-color: var(--gp-vert); background: var(--accent-soft, #dff3ee); }
.gp-obj-enveloppes li b { font-size: 15px; font-weight: 600; }
.gp-obj-enveloppes li small { font-size: 14px; color: var(--fg-2); }
.gp-obj-recompense { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; border: 1px dashed var(--gp-or); background: var(--gp-fond); }
.gp-obj-recompense.is-ok { border-style: solid; border-color: var(--gp-vert); }
.gp-obj-recompense .gp-motif { width: 44px; }
.gp-obj-recompense .m-a { fill: var(--gp-or-clair); } .gp-obj-recompense .m-b { fill: var(--gp-vert); }
.gp-obj-recompense > div { display: grid; gap: 4px; min-width: 0; }
.gp-obj-recompense > div > b { font: 500 19px/1.2 var(--gp-serif); }
.gp-obj-recompense > div > small { font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.gp-obj-form { display: grid; gap: 10px; }
.gp-obj-form label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.gp-obj-form label small { font-weight: 400; color: var(--gp-doux); font-size: 13px; }
.gp-obj-champ { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--gp-trait); border-radius: 12px; background: #fff; flex: none; }
.gp-obj-champ:focus-within { border-color: var(--gp-vert); }
.gp-obj-champ input { width: 8ch; border: 0; background: none; font: inherit; font-size: 16px; text-align: right; color: var(--gp-encre); padding: 0; font-variant-numeric: tabular-nums; }
.gp-obj-champ input:focus { outline: none; }
.gp-obj-champ i { font-style: normal; font-weight: 400; color: var(--gp-doux); font-size: 14px; }
.gp-obj-form .gp-bouton:disabled { opacity: .5; }
.gp-obj-resultat { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--gp-trait); }
.gp-obj-cap { margin: 0; font-size: 15px; color: var(--fg-2); }
.gp-obj-cap b { font: 500 32px/1 var(--gp-serif); color: var(--gp-encre); margin-right: 4px; }
.gp-obj-si { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.gp-obj-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-obj-lignes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--gp-fond); }
.gp-obj-lignes span { font-size: 14px; }
.gp-obj-lignes b { font: 500 22px var(--gp-serif); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-obj-lignes small { grid-column: 1 / -1; font-size: 13px; color: var(--gp-doux); }
.gp-obj-lignes small.is-ok { color: var(--gp-vert); font-weight: 600; }
.gp-obj-badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-obj-badges li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--gp-trait); border-radius: 14px; }
.gp-obj-badges li .gp-motif { width: 40px; }
.gp-obj-badges li .m-a { fill: var(--gp-trait); } .gp-obj-badges li .m-b { fill: var(--gp-carte); } .gp-obj-badges li .m-t { stroke: var(--gp-trait); stroke-width: 3; }
.gp-obj-badges li.is-ok { border-color: var(--gp-or); }
.gp-obj-badges li.is-ok .m-a { fill: var(--gp-vert); } .gp-obj-badges li.is-ok .m-b { fill: var(--gp-or-clair); } .gp-obj-badges li.is-ok .m-t { stroke: var(--gp-or); }
.gp-obj-badges li > span { display: grid; gap: 2px; min-width: 0; }
.gp-obj-badges b { font-size: 15px; font-weight: 600; }
.gp-obj-badges small { font-size: 13px; color: var(--gp-doux); line-height: 1.35; }
.gp-obj-badges em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--gp-doux); }
.gp-obj-badges li.is-ok em { color: var(--gp-vert); }
/* AM-176 (12/11/2026) : bulle macro en vue téléphone (BulleTel.tsx). Un seul fil : verdict, trois chiffres clés,
   graphique pleine largeur, rubriques en « stories » glissables, puis « Et pour mon argent ? ». Charte « Maison »
   (Cormorant pour les titres et les chiffres, Inter pour le texte), zones tactiles ≥ 44 px, chiffres alignés. Les
   couleurs sont reprises ici car la bulle s'ouvre aussi hors de .gp-app (onglet Indicateurs de l'appli téléphone). */
.am-bt {
  --bt-encre: #102F2B; --bt-fond: #F3EFE7; --bt-carte: #FBF8F2; --bt-trait: #DCD4C6; --bt-doux: #5A6764;
  --bt-vert: #23746D; --bt-or: #C49A60; --bt-or-texte: #7A5B2E; --bt-rouge: #9E3D2B; --bt-orange: #A0621C;
  --bt-serif: "GP Cormorant", "Cormorant Garamond", Georgia, serif;
  display: grid; gap: 14px; min-width: 0; padding: 4px 0 24px; color: var(--bt-encre);
  font-family: "GP Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums;
}
.am-bt *, .am-bt *::before, .am-bt *::after { box-sizing: border-box; }
.am-bt > * { min-width: 0; }
.am-bt h3 { margin: 0; font: 500 21px/1.15 var(--bt-serif); color: var(--bt-encre); font-variant-numeric: lining-nums; }
.am-bt button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.am-bt button:focus-visible { outline: 2px solid var(--bt-vert); outline-offset: 2px; }
/* 1. Verdict */
.am-bt-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--bt-carte); border: 1px solid var(--bt-trait); border-left: 5px solid var(--bt-orange); }
.am-bt-verdict.is-vert { border-left-color: var(--bt-vert); } .am-bt-verdict.is-rouge { border-left-color: var(--bt-rouge); }
.am-bt-feu { width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--bt-orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bt-orange) 18%, transparent); }
.am-bt-verdict.is-vert .am-bt-feu { background: var(--bt-vert); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bt-vert) 18%, transparent); }
.am-bt-verdict.is-rouge .am-bt-feu { background: var(--bt-rouge); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bt-rouge) 18%, transparent); }
.am-bt-etat { margin: 0; font: 500 26px/1.1 var(--bt-serif); }
.am-bt-phrase { margin: 4px 0 0; font-size: 15px; color: #2A403D; }
.am-bt-mention { margin: 6px 0 0; font-size: 12px; color: var(--bt-doux); }
/* 2. Chiffres clés */
.am-bt-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.am-bt-cle { display: flex; flex-direction: column; gap: 3px; min-height: 44px; min-width: 0; padding: 10px; text-align: left; border-radius: 14px; border: 1px solid var(--bt-trait); background: var(--bt-carte); }
.am-bt-cle[aria-pressed="true"] { border: 2px solid var(--bt-vert); padding: 9px; }
.am-bt-cle-nom { font-size: 12px; line-height: 1.3; color: var(--bt-doux); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.3em); }
.am-bt-chiffre { font: 500 26px/1.05 var(--bt-serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.am-bt-date { font-size: 12px; color: var(--bt-doux); }
.am-bt-tend { display: flex; gap: 3px; align-items: baseline; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--bt-doux); }
.am-bt-tend.is-bon { color: var(--bt-vert); } .am-bt-tend.is-mal { color: var(--bt-rouge); }
/* 3. Graphique */
.am-bt-graphe { scroll-margin-top: 70px; padding: 14px 12px 10px; border-radius: 16px; background: var(--bt-carte); border: 1px solid var(--bt-trait); }
.am-bt-courbe { display: grid; gap: 6px; min-width: 0; }
.am-bt-courbe-tete { display: grid; gap: 8px; }
.am-bt-courbe-tete h3 { font-size: 20px; }
.am-bt-courbe-tete h3 small { font: 400 14px "GP Inter", system-ui, sans-serif; color: var(--bt-doux); }
.am-bt-periodes { display: flex; gap: 6px; }
.am-bt-periodes button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--bt-trait); background: transparent; font-size: 14px; font-weight: 500; }
.am-bt-periodes button[aria-pressed="true"] { background: var(--bt-vert); border-color: var(--bt-vert); color: #fff; }
.am-bt-lu { margin: 2px 0 0; font-size: 14px; color: var(--bt-doux); }
.am-bt-lu b { font: 500 24px var(--bt-serif); color: var(--bt-encre); font-variant-numeric: lining-nums tabular-nums; margin-right: 4px; }
.am-bt-svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.am-bt-grille { stroke: var(--bt-trait); stroke-width: 1; }
.am-bt-zero { stroke: #9A9384; stroke-width: 1; }
.am-bt-seuil { stroke: var(--bt-or); stroke-width: 1.5; stroke-dasharray: 5 4; }
.am-bt-axe { fill: var(--bt-doux); font-size: 12px; font-family: "GP Inter", system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums; }
.am-bt-axe.is-seuil { fill: var(--bt-or-texte); paint-order: stroke; stroke: var(--bt-carte); stroke-width: 4px; stroke-linejoin: round; }
.am-bt-aire { fill: color-mix(in srgb, var(--bt-vert) 12%, transparent); stroke: none; }
.am-bt-ligne { fill: none; stroke: var(--bt-vert); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.am-bt-curseur { stroke: var(--bt-encre); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
.am-bt-point { fill: var(--bt-vert); stroke: #fff; stroke-width: 2; }
.am-bt-source { margin: 0; font-size: 12px; color: var(--bt-doux); overflow-wrap: anywhere; }
.am-bt-vide { margin: 12px 0; font-size: 14px; color: var(--bt-doux); }
/* 4. Stories */
.am-bt-stories { display: grid; gap: 8px; min-width: 0; }
.am-bt-onglets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.am-bt-onglets::-webkit-scrollbar { display: none; }
.am-bt-onglets button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bt-trait); background: var(--bt-carte); font-size: 14px; font-weight: 500; white-space: nowrap; }
.am-bt-onglets button[aria-selected="true"] { background: var(--bt-encre); border-color: var(--bt-encre); color: #fff; }
.am-bt-points { display: flex; gap: 5px; justify-content: center; }
.am-bt-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--bt-trait); }
.am-bt-points i.is-on { width: 18px; border-radius: 3px; background: var(--bt-vert); }
.am-bt-rail { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.am-bt-rail::-webkit-scrollbar { display: none; }
.am-bt-story { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; gap: 8px; padding: 14px 12px; border-radius: 16px; background: var(--bt-carte); border: 1px solid var(--bt-trait); }
.am-bt-story ul { list-style: none; margin: 0; padding: 0; display: grid; }
.am-bt-story li + li { border-top: 1px solid var(--bt-trait); }
.am-bt-item { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border: 0; background: none; text-align: left; }
.am-bt-item[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--bt-vert); padding-left: 10px; }
.am-bt-item-nom b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.am-bt-item-nom small { display: block; font-size: 12px; color: var(--bt-doux); margin-top: 2px; }
.am-bt-item-val { display: grid; justify-items: end; gap: 2px; max-width: 46vw; text-align: right; }
.am-bt-item-val b { font: 500 22px/1.1 var(--bt-serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.am-bt-item-val .am-bt-tend { justify-content: flex-end; }
.am-bt .am-bt-plus, .am-bt .am-bt-suite { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--bt-vert); }
.am-bt .am-bt-suite { justify-self: end; }
/* 5. Et pour mon argent ? */
.am-bt-argent { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--bt-encre); color: #F3EFE7; }
.am-bt-argent h3 { color: #F3EFE7; font-size: 24px; }
.am-bt-argent p { margin: 0; font-size: 15px; color: rgba(243, 239, 231, .88); }
.am-bt .am-bt-argent button { min-height: 48px; border: 0; border-radius: 12px; background: #D4B07A; color: var(--bt-encre); font-size: 16px; font-weight: 600; }
.am-bt .am-bt-expert { justify-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 14px; color: var(--bt-doux); text-decoration: underline; text-underline-offset: 3px; }

/* ── AM-179 (12/11/2026) « Mes intérêts » : DA Maison (Cormorant + Inter, crème, vert nuit, sarcelle, ocre), maquette
   v2/v3 validée par Thomas. Tout est préfixé gpi- et ne prend que les couleurs de l'appli grand public (--gp-*), qui
   restent claires quel que soit le thème du système, comme le reste de l'appli. ── */
.gp-app .gp-carte-interets { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border-left: 4px solid var(--gp-vert); }
.gp-app .gp-carte-interets > span:first-child { display: grid; gap: 2px; flex: 1; min-width: 0; }
.gp-app .gp-carte-interets small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-app .gp-carte-interets b { font-family: var(--gp-serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.gp-app .gp-carte-interets span span { font-size: 14px; color: var(--gp-doux); }

.gpi { --gpi-vert-doux: #DCEBE7; --gpi-nuit: #102F2B; --gpi-sur-nuit: #FBF8F2; --gpi-nuit-doux: #E4DED2; --gpi-fort: #C9BDA8;
  --gpi-feu-v: #367a59; --gpi-feu-o: #b78328; --gpi-feu-r: #8b3932;
  position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--gp-fond); color: var(--gp-encre);
  font-family: "GP Inter", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.45; animation: gp-zone .22s ease-out both; }
.gpi-charge { display: grid; place-items: center; color: var(--gp-doux); }
.gpi button { font: inherit; color: inherit; cursor: pointer; }
.gpi button:focus-visible, .gpi a:focus-visible, .gpi input:focus-visible { outline: 2px solid var(--gp-vert); outline-offset: 2px; }
.gpi h1, .gpi h2 { font-family: var(--gp-serif); font-weight: 500; margin: 0; letter-spacing: 0; }
.gpi h1 { font-size: 32px; line-height: 1.08; }
.gpi h2 { font-size: 23px; line-height: 1.12; }
.gpi p { margin: 0; }
.gpi-haut { flex: none; display: flex; justify-content: space-between; align-items: center; padding: max(8px, env(safe-area-inset-top)) 12px 0 8px; min-height: 52px; }
.gpi-retour { min-height: 44px; border: 0; background: none; font-weight: 600; color: var(--gp-vert); font-size: 15px; padding: 0 8px; }
.gpi-ecran { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 24px; display: grid; gap: 18px; align-content: start; grid-auto-rows: max-content; }
.gpi-ecran > * { min-width: 0; }
.gpi-sur { font-size: 14px; color: var(--gp-doux); }
.gpi-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gpi-tete .gpi-sur::first-letter { text-transform: uppercase; }
.gpi-rond { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gpi-fort); background: var(--gp-carte); display: grid; place-items: center; flex: none; padding: 0; font-size: 20px; }
.gpi-rond .am-picto { width: 22px; height: 22px; margin: 0; color: var(--gp-encre); }
.gpi-rond .gpi-nb { position: absolute; top: -3px; right: -3px; }
.gpi-nb { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gp-vert); color: var(--gpi-sur-nuit); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.gpi-mention { font-size: 12px; color: var(--gp-doux); line-height: 1.45; }
.gpi-petit { font-size: 12.5px; }
.gpi-bloc-titre { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gpi-section, .gpi-bloc { display: grid; gap: 8px; }
.gpi-section-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gpi-section-tete h2 .gpi-sur { font-family: "GP Inter", system-ui, sans-serif; }
.gpi-carte { background: var(--gp-carte); border: 1px solid var(--gp-trait); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.gpi-lien { border: 0; background: none; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 14px; color: var(--gp-vert); text-decoration: underline; text-underline-offset: 3px; text-align: left; justify-self: start; display: inline-flex; align-items: center; }
.gpi-bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 16px; padding: 12px 18px; background: var(--gp-vert); color: var(--gpi-sur-nuit) !important; font-weight: 600; font-size: 16px; }
.gpi-bouton .am-picto { width: 20px; height: 20px; margin: 0; color: currentColor; }
.gpi-bouton.is-second { background: transparent; color: var(--gp-vert) !important; border: 1.5px solid var(--gp-vert); }
.gpi-ajouter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--gp-vert); background: none; color: var(--gp-vert) !important; font-weight: 600; font-size: 14px; white-space: nowrap; }
.gpi-feu { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--fg-2, #2A403D); white-space: nowrap; }
.gpi-feu .am-pr-feu { width: 10px; height: 10px; box-shadow: none; }
.gpi-vide { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--gpi-fort); background: transparent; }
.gpi-vide b { font-weight: 600; font-size: 15px; }
.gpi-vide span { font-size: 14px; color: var(--gp-doux); }
.gpi-cache { position: absolute; left: -9999px; }

/* Badges : drapeau, picto de thème ou d'indicateur, logo (monogramme en repli) */
.gpi-drapeau, .gpi-pic, .gpi-mono, .gpi-logo { width: var(--t, 32px); height: var(--t, 32px); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; }
.gpi-drapeau { box-shadow: 0 0 0 1px var(--gpi-fort); background: #fff; }
.gpi-drapeau svg { width: 150%; height: 100%; display: block; }
.gpi-pic { background: var(--gpi-vert-doux); color: var(--gp-vert); }
.gpi-pic .am-picto { width: 60%; height: 60%; margin: 0; color: var(--gp-vert); }
.gpi-pic.is-indic { background: #EFE0C6; }
.gpi-pic.is-indic .am-picto { color: var(--gp-or-texte); }
.gpi-mono { background: var(--gpi-nuit); color: var(--gp-or-clair); font-family: var(--gp-serif); font-weight: 600; font-size: calc(var(--t, 32px) * .4); line-height: 1; }
.gpi-logo { border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--gp-trait); padding: 3px; }
.gpi-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Étiquettes, chaîne */
.gpi-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gpi-etiq { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 6px; border: 0; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--gp-vert); background: var(--gpi-vert-doux); white-space: nowrap; }
span.gpi-etiq { min-height: 0; padding: 2px 9px; font-size: 12px; }
.gpi-etiq.is-zone { color: var(--gp-or-texte); background: transparent; border: 1px solid var(--gp-or); }
.gpi-chaine { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gpi-maillon { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--gpi-fort); background: var(--gp-carte); font-size: 14px; font-weight: 500; }
.gpi-maillon.is-suivi { border-color: var(--gp-vert); box-shadow: inset 0 0 0 1px var(--gp-vert); }
.gpi-maillon.is-suivi::after { content: "✓"; font-size: 13px; font-weight: 700; color: var(--gp-vert); }
.gpi-fleche { color: var(--gp-or-texte); }

/* Accueil */
.gpi-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gpi-tuile { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 108px; padding: 12px 6px 10px; border-radius: 16px; border: 1px solid var(--gp-trait); background: var(--gp-carte); text-align: center; }
.gpi-tuile b { font-weight: 600; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.gpi-tuile small { font-size: 12px; color: var(--gp-doux); }
.gpi-tuile .gpi-nb { position: absolute; top: 6px; right: 6px; }
.gpi-tuile.is-ajout { border-style: dashed; border-color: var(--gpi-fort); color: var(--gp-vert); background: transparent; align-content: center; }
.gpi-couvertes { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--gpi-vert-doux); }
.gpi-couvertes p { font-size: 14px; }
.gpi-puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gpi-puce { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--gpi-fort); background: var(--gp-carte); font-size: 14px; font-weight: 500; white-space: nowrap; }
.gpi-puce:not(:has(.gpi-drapeau, .gpi-pic, .gpi-mono, .gpi-logo)) { padding-left: 14px; }
.gpi-puce.is-on { background: var(--gp-vert); border-color: var(--gp-vert); color: var(--gpi-sur-nuit) !important; }
.gpi-puce.is-on .gpi-nb { background: var(--gpi-sur-nuit); color: var(--gp-vert); }
.gpi-puce.is-suivie { border-color: var(--gp-vert); box-shadow: inset 0 0 0 1px var(--gp-vert); }
.gpi-via { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.gpi-defile { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.gpi-defile::-webkit-scrollbar { display: none; }
.gpi-defile .gpi-puce { flex: none; }
.gpi-pti { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--gpi-nuit); color: var(--gpi-sur-nuit) !important; border: 0; text-align: left; width: 100%; }
.gpi-pti small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-or-clair); }
.gpi-pti .gpi-ligne { display: flex; gap: 10px; align-items: center; }
.gpi-pti b { font-family: var(--gp-serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.gpi-pti .gpi-r { font-size: 14px; color: var(--gpi-nuit-doux); }
.gpi-pti em { font-style: normal; font-weight: 600; color: var(--gp-or-clair); text-decoration: underline; text-underline-offset: 3px; font-size: 14.5px; }

/* Rangées, fiches */
.gpi-rangee { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 8px 8px 10px; border-radius: 14px; border: 1px solid var(--gp-trait); background: var(--gp-carte); text-align: left; width: 100%; }
.gpi-ouvrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; min-height: 44px; }
.gpi-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gpi-rangee b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.gpi-rangee small { font-size: 13px; color: var(--gp-doux); }
.gpi-suivre { min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--gp-vert); background: var(--gp-vert); color: var(--gpi-sur-nuit) !important; font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.gpi-suivre.is-suivi { background: transparent; color: var(--gp-vert) !important; }
.gpi-suivre.is-couvert { background: transparent; color: var(--gp-vert) !important; border-style: dashed; }
.gpi-fiche-tete { display: flex; align-items: center; gap: 12px; }
.gpi-fiche-tete h1 { overflow-wrap: anywhere; }
.gpi-suivre-bloc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gpi-regler { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--gpi-fort); background: var(--gp-carte); font-size: 14px; font-weight: 500; }
.gpi-regler .am-picto { margin: 0; color: var(--gp-vert); }
.gpi-climat { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; border-left: 4px solid var(--gpi-feu-o); background: var(--gp-carte); font-size: 14px; }
.gpi-climat.is-vert { border-left-color: var(--gpi-feu-v); } .gpi-climat.is-rouge { border-left-color: var(--gpi-feu-r); } .gpi-climat.is-suivi { border-left-color: var(--gp-vert); }
.gpi-climat .gpi-lien { min-height: 32px; display: inline; }
.gpi-chiffres { display: grid; gap: 2px; font-size: 14px; }
.gpi-chiffres small { font-size: 12px; color: var(--gp-doux); }
.gpi-grand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gpi-grand strong { font-family: var(--gp-serif); font-weight: 500; font-size: 34px; line-height: 1; }
.gpi-final { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--gpi-vert-doux); }
.gpi-final h2 { font-size: 22px; }
.gpi-article { display: grid; gap: 16px; }
.gpi-titre-evt { font-size: 28px !important; line-height: 1.12 !important; }
.gpi-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 12px; border: 1px solid var(--gp-trait); background: var(--gp-carte); font-size: 14px; flex-wrap: wrap; }
.gpi-source .gpi-lien { min-height: 40px; }
.gpi-raison { font-size: 13px; color: var(--gp-vert); font-weight: 500; }
.gpi-carte > .gpi-raison { font-size: 14px; }
.gpi .am-pr-balance { margin: 0; }

/* Fil */
.gpi-jour { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); margin: 4px 0 -8px; }
.gpi-evt { display: grid; grid-template-columns: auto 1fr; gap: 10px; text-align: left; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--gp-trait); background: var(--gp-carte); position: relative; }
.gpi-evt.is-non-lu { border-color: var(--gp-vert); }
.gpi-evt.is-non-lu::after { content: ""; position: absolute; top: 14px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--gp-vert); }
.gpi-evt .gpi-txt { gap: 4px; padding-right: 12px; }
.gpi-evt b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.gpi-meta { font-size: 13px; color: var(--gp-doux); }
.gpi-src { font-size: 12.5px; color: var(--gp-doux); }
.gpi-statut { justify-self: start; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.gpi-statut.is-alerte { color: var(--gp-vert); background: var(--gpi-vert-doux); }
.gpi-statut.is-resume { color: var(--gp-or-texte); border: 1px solid var(--gp-or); }
.gpi-bilan { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--gpi-nuit); color: var(--gpi-sur-nuit); }
.gpi-bilan p { font-size: 14px; color: var(--gpi-nuit-doux); }
.gpi-bilan b { color: var(--gpi-sur-nuit); }
.gpi-bilan .gpi-lien { color: var(--gp-or-clair); min-height: 36px; padding: 0; }
.gpi-jauge { display: flex; gap: 4px; flex-wrap: wrap; }
.gpi-jauge i { width: 22px; height: 8px; border-radius: 99px; background: rgba(251,248,242,.18); }
.gpi-jauge i.is-on { background: var(--gp-or-clair); } .gpi-jauge i.is-maj { background: #7CC0B2; } .gpi-jauge i.is-res { background: transparent; border: 1px dashed var(--gp-or-clair); }
.gpi-masques { font-size: 14px; color: var(--gp-doux); padding: 8px 12px; border: 1px dashed var(--gpi-fort); border-radius: 14px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Suivre, Où investir */
.gpi-recherche { position: relative; display: block; }
.gpi-recherche .am-picto { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; margin: 0; color: var(--gp-doux); }
.gpi-champ { width: 100%; min-height: 48px; border: 1.5px solid var(--gpi-fort); border-radius: 14px; padding: 12px 14px 12px 42px; font: inherit; font-size: 16px; background: var(--gp-carte); color: var(--gp-encre); }
.gpi-champ:focus { outline: none; border-color: var(--gp-vert); box-shadow: 0 0 0 3px var(--gpi-vert-doux); }
.gpi-etape { display: grid; gap: 8px; }
.gpi-etape-tete { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.gpi-etape-tete i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--gpi-nuit); color: var(--gp-or-clair); display: grid; place-items: center; font-family: var(--gp-serif); font-size: 16px; }

/* Macro */
.gpi-planete { width: min(100%, 340px); justify-self: center; aspect-ratio: 1; }
.gpi-planete canvas, .gpi-planete svg { max-width: 100%; }
.gpi-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--gp-doux); }
.gpi-legende span { display: inline-flex; align-items: center; gap: 5px; }
.gpi-legende i { width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 0 1px var(--gp-trait); }

/* Réglages */
.gpi-voile { position: absolute; inset: 0; z-index: 30; background: rgba(8,20,18,.45); }
.gpi-feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 88%; overflow-y: auto; background: var(--gp-fond); border-radius: 24px 24px 0 0; padding: 6px 16px 24px; display: grid; gap: 14px; box-shadow: 0 -10px 30px rgba(16,47,43,.2); animation: gp-feuille .28s ease-out; }
.gpi-feuille-barre { display: flex; justify-content: center; position: relative; min-height: 44px; align-items: center; }
.gpi-feuille-barre .gpi-rond { position: absolute; right: 0; top: 4px; }
.gpi-poignee { width: 40px; height: 4px; border-radius: 99px; background: var(--gpi-fort); }
.gpi-feuille-tete { display: flex; align-items: center; gap: 12px; }
.gpi-feuille-tete h2 { font-size: 26px; }
.gpi-niv { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--gp-trait); background: var(--gp-carte); text-align: left; width: 100%; }
.gpi-niv.is-on { border-color: var(--gp-vert); background: var(--gpi-vert-doux); }
.gpi-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gpi-fort); flex: none; display: grid; place-items: center; }
.gpi-niv.is-on .gpi-radio { border-color: var(--gp-vert); }
.gpi-niv.is-on .gpi-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gp-vert); }
.gpi-niv b { display: block; font-weight: 600; font-size: 15px; }
.gpi-niv small { display: block; font-size: 13px; color: var(--gp-doux); }
.gpi-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gpi-type { position: relative; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--gp-trait); background: var(--gp-carte); font-size: 13.5px; font-weight: 500; text-align: left; color: var(--gp-doux) !important; }
.gpi-type.is-on { border-color: var(--gp-vert); color: var(--gp-encre) !important; background: var(--gpi-vert-doux); }
.gpi-maj { color: var(--gp-or-texte); font-weight: 700; margin-right: 4px; }
.gpi-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--gp-carte); border: 1px solid var(--gp-trait); }
.gpi-seg button { min-height: 44px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 500; padding: 0 4px; }
.gpi-seg button.is-on { background: var(--gp-vert); color: var(--gpi-sur-nuit) !important; }
.gpi-case { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--gp-trait); background: var(--gp-carte); }
.gpi-case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gp-vert); flex: none; }
.gpi-case b { display: block; font-weight: 600; font-size: 15px; }
.gpi-case small { display: block; font-size: 13px; color: var(--gp-doux); }
.gpi-danger { border: 0; background: none; min-height: 44px; color: var(--gpi-feu-r) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; justify-self: start; padding: 0; }

/* Défis */
.gpi-defi-carte { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--gp-or); background: var(--gp-carte); }
.gpi-defi-carte b { font-size: 15px; font-weight: 600; display: block; line-height: 1.3; }
.gpi-defi-carte small { font-size: 12px; display: block; color: var(--gp-doux); }
.gpi-defi-carte small:first-child { color: var(--gp-or-texte); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gpi-manette { width: 40px; height: 40px; border-radius: 12px; background: var(--gpi-nuit); color: var(--gp-or-clair); display: grid; place-items: center; font-family: var(--gp-serif); font-size: 24px; font-weight: 600; flex: none; }
.gpi-defi-voile { position: absolute; inset: 0; z-index: 45; background: rgba(8,20,18,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gpi-defi { width: 100%; max-height: 92%; overflow-y: auto; background: var(--gp-fond); border-radius: 22px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); border: 1px solid var(--gp-or); }
.gpi-defi-tete { display: flex; align-items: center; gap: 10px; }
.gpi-defi-tete > div { flex: 1; min-width: 0; }
.gpi-defi h2 { font-size: 24px; line-height: 1.15; }
.gpi-choix { display: grid; gap: 8px; }
.gpi-choix button { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--gp-encre); background: var(--gp-carte); font-weight: 600; font-size: 16px; text-align: left; padding: 10px 14px; box-shadow: 2px 2px 0 rgba(16,47,43,.85); }
.gpi-choix button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.gpi-choix button.is-juste { background: #DCEDE4; } .gpi-choix button.is-faux { background: #F5DED6; }
.gpi-choix button:disabled { cursor: default; }
.gpi-tampon { justify-self: start; font-family: var(--gp-serif); font-size: 22px; font-weight: 600; padding: 2px 12px; border: 2px solid; border-radius: 8px; transform: rotate(-3deg); }
.gpi-tampon.is-ok { color: var(--gpi-feu-v); } .gpi-tampon.is-ko { color: var(--gpi-feu-r); }
.gpi-score { font-weight: 600; font-size: 14px; color: var(--gp-or-texte); }

/* Barre du bas, toast */
.gpi-barre { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--gp-fond); border-top: 1px solid var(--gp-trait); padding: 4px 2px calc(6px + env(safe-area-inset-bottom)); }
.gpi-barre button { position: relative; border: 0; background: none; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 4px 0; font-size: 11.5px; font-weight: 500; color: var(--gp-doux) !important; }
.gpi-barre button .am-picto { width: 24px; height: 24px; margin: 0; color: currentColor; }
.gpi-barre button.is-on { color: var(--gp-vert) !important; font-weight: 600; }
.gpi-barre .gpi-nb { position: absolute; top: 2px; left: calc(50% + 6px); }
.gpi-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: var(--gpi-nuit); color: var(--gpi-sur-nuit); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; width: max-content; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) { .gpi, .gpi-feuille { animation: none; } }
/* AM-179 mode démo interne (?demo=cours) : bandeau toujours visible, cours et mini-courbe. */
.gpi-demo { flex: none; margin: 0 12px 6px; padding: 8px 12px; border-radius: 12px; background: #F5DED6; color: #6E2A24; border: 1.5px solid #8b3932; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }
.gpi-variations { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.gpi-variations .is-haut { color: var(--gpi-feu-v); } .gpi-variations .is-bas { color: var(--gpi-feu-r); }
.gpi-spark { width: 100%; height: 84px; display: block; }
.gpi-spark .gpi-ligne-c { fill: none; stroke: var(--gp-vert); stroke-width: 2; vector-effect: non-scaling-stroke; }
.gpi-spark .gpi-aire { fill: var(--gp-vert); opacity: .1; }

/* ===================================================================
   AM-181 (12/11/2026, Thomas) : accueil grand public (jeux + ce que je suis d'abord, le reste dépliable),
   nouvelles dépliantes, onglet Macro à part, et un feu lisible et identique partout.
   =================================================================== */
.gp-app, .gpi {
  --gpi-vert-doux: #DCEBE7; --gpi-nuit: #102F2B; --gpi-fort: #C9BDA8;
  /* Feux : remplissage de la pastille (signe blanc, ≥ 3:1), texte (≥ 7:1 sur le fond du feu) et fond. */
  --feu-v: #2E7A55; --feu-v-txt: #17482F; --feu-v-fond: #E3F0E8;
  --feu-o: #A86F14; --feu-o-txt: #5E3D06; --feu-o-fond: #F8ECD3;
  --feu-r: #A23B32; --feu-r-txt: #6E211B; --feu-r-fond: #F6E1DD;
}
/* Réglage « Couleurs pour daltoniens » du compte Zeia : vert → bleu, rouge → brique ; le signe (+ = −) reste. */
.mode-daltonien .gp-app, .mode-daltonien .gpi, .gp-app.mode-daltonien {
  --feu-v: #1F5FA8; --feu-v-txt: #123A68; --feu-v-fond: #E3ECF8;
  --feu-r: #C2410C; --feu-r-txt: #7A2A08; --feu-r-fond: #FCE7DB;
  --gpi-feu-v: #1F5FA8; --gpi-feu-r: #C2410C;
}
:root.mode-daltonien { --am-serein: #1f5fa8; --am-peur: #c2410c; }

.gp-feu-pastille { --c: var(--feu-o); width: var(--t, 20px); height: var(--t, 20px); flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); }
.gp-feu-pastille.is-vert { --c: var(--feu-v); } .gp-feu-pastille.is-rouge { --c: var(--feu-r); }
.gp-feu-pastille svg { width: 72%; height: 72%; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; }
.gp-feu { --f: var(--feu-o-txt); --fo: var(--feu-o-fond); display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--fo); color: var(--f); line-height: 1.2; white-space: nowrap; font-family: "GP Inter", "Inter", system-ui, sans-serif; vertical-align: middle; }
.gp-feu.is-vert { --f: var(--feu-v-txt); --fo: var(--feu-v-fond); } .gp-feu.is-rouge { --f: var(--feu-r-txt); --fo: var(--feu-r-fond); }
.gp-feu-txt { display: grid; }
.gp-feu-txt b { font-size: 14px; font-weight: 700; color: var(--f); }
.gp-feu-txt small { font-size: 12.5px; font-weight: 500; color: var(--f); }
.gp-feu-legende { display: grid; gap: 8px; }
.gp-feu-legende-l { display: flex; flex-wrap: wrap; gap: 6px; }
/* La pastille historique (macro, planète, jeu) prend aussi le signe. */
.am-pr-feu { display: inline-grid; place-items: center; }
.am-pr-feu::after { color: #fff; font: 700 11px/1 "Inter", system-ui, sans-serif; }
.am-pr-feu.is-vert::after { content: "+"; } .am-pr-feu.is-orange::after { content: "="; } .am-pr-feu.is-rouge::after { content: "−"; }
.am-orb-feu.am-pr-feu::after { font-size: max(7px, 1.9cqw); }
.am-pr-balance h3 i { width: 20px; height: 20px; display: inline-grid; place-items: center; color: #fff; font: 700 15px/1 "Inter", system-ui, sans-serif; font-style: normal; }
.gp-app .am-pr-balance .is-pour h3 i { background: var(--feu-v); } .gp-app .am-pr-balance .is-contre h3 i { background: var(--feu-r); }
.gp-app .gpi-climat .gp-feu, .gp-app .gp-fdj-feu .gp-feu { flex: none; }

/* Accueil : en-tête court, deux blocs visibles d'emblée. */
.gp-app .gp-tete-courte { margin-bottom: 0; }
.gp-app .gp-tete-courte h1 { font-size: 28px; }
.gp-bloc { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--gp-carte); border: 1px solid var(--gp-trait); min-width: 0; }
.gp-app .gp-bloc-titre { margin: 0; font-family: var(--gp-serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.gp-bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gp-bloc-tete .gp-lien { min-height: 44px; }
.gp-defi { display: grid; gap: 8px; }
.gp-defi-sur { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-defi-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gp-encre); color: var(--gp-or-clair); font: 600 14px/1 var(--gp-serif); letter-spacing: 0; }
.gp-defi-lie { border: 0; background: none; padding: 0; font: inherit; color: var(--gp-vert); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gp-defi-q { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.gp-defi-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-defi-choix button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--gp-vert); background: transparent; color: var(--gp-vert); font: 600 15px/1 "GP Inter", "Inter", system-ui, sans-serif; cursor: pointer; }
.gp-defi-choix button:disabled { cursor: default; opacity: .7; }
.gp-defi-choix button.is-juste { opacity: 1; background: var(--feu-v-fond); color: var(--feu-v-txt); border-color: var(--feu-v); }
.gp-defi-choix button.is-faux { opacity: 1; background: var(--feu-r-fond); color: var(--feu-r-txt); border-color: var(--feu-r); }
.gp-defi-res { display: grid; gap: 4px; font-size: 14px; }
.gp-defi-res p { margin: 0; }
.gp-defi .gp-mentions, .gp-defi-res .gp-mentions { margin: 0; }
.gp-jeux-vide { margin: 0; font-size: 14px; color: var(--gp-doux); }
.gp-jeux-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.gp-jeu-tuile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--gp-trait); background: var(--gp-fond); color: var(--gp-encre); text-align: left; cursor: pointer; font: inherit; }
.gp-jeu-tuile.is-fait { border-style: dashed; }
.gp-jeu-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.gp-jeu-ic svg { width: 100%; height: 100%; }
.gp-jeu-tuile b { display: block; font-size: 15px; font-weight: 600; }
.gp-jeu-tuile small { display: block; font-size: 12.5px; color: var(--gp-doux); }
.gp-suis-total { font-family: "GP Inter", "Inter", system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--gp-vert); }
.gp-suis-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-suis-puce { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 4px 12px 4px 5px; border-radius: 999px; border: 1px solid var(--gp-trait); background: var(--gp-fond); color: var(--gp-encre); font: 600 14px/1.2 "GP Inter", "Inter", system-ui, sans-serif; cursor: pointer; }
.gp-suis-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gp-suis-nb, .gp-dep-nb { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--gp-vert); color: #fff; font: 700 12px/1 "GP Inter", "Inter", system-ui, sans-serif; flex: none; }
.gp-suis-puce.is-ajout { border: 1.5px dashed var(--gp-vert); color: var(--gp-vert); padding-left: 12px; }
.gp-suis-puce.is-ajout .am-picto { width: 18px; height: 18px; margin: 0; }

/* Sections dépliables. */
.gp-deps { display: grid; gap: 8px; }
.gp-dep { border-radius: 16px; background: var(--gp-carte); border: 1px solid var(--gp-trait); min-width: 0; }
.gp-app .gp-dep-h { margin: 0; font: inherit; }
.gp-dep-tete { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; background: none; color: var(--gp-encre); text-align: left; cursor: pointer; font: inherit; border-radius: 16px; }
.gp-dep-pic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gpi-vert-doux); color: var(--gp-vert); }
.gp-dep-pic .am-picto { width: 20px; height: 20px; margin: 0; color: var(--gp-vert); }
.gp-dep-txt { display: grid; gap: 1px; flex: 1; min-width: 0; }
.gp-dep-txt b { font-family: var(--gp-serif); font-weight: 500; font-size: 21px; line-height: 1.15; }
.gp-dep-txt small { font-size: 13px; color: var(--gp-doux); }
.gp-dep-chevron, .gp-nv-chevron { flex: none; font-size: 24px; line-height: 1; color: var(--gp-vert); transform: rotate(90deg); transition: transform .18s ease; }
.gp-dep.is-ouvert .gp-dep-chevron, .gp-nv.is-ouvert .gp-nv-chevron { transform: rotate(-90deg); }
.gp-dep-corps { display: grid; gap: 10px; padding: 0 14px 14px; min-width: 0; }
.gp-dep-corps > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .gp-dep-chevron, .gp-nv-chevron { transition: none; } }

/* « Où investir ? » en fin d'écran. */
.gp-final { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--gp-encre); color: #F3EFE7; text-align: left; cursor: pointer; font: inherit; }
.gp-final > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.gp-final b { font-family: var(--gp-serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.gp-final small { font-size: 13px; color: #E4D3B4; }
.gp-final .am-picto { width: 26px; height: 26px; margin: 0; color: var(--gp-or-clair); }
.gp-final .gp-fleche { color: var(--gp-or-clair); }
.gp-tete-onglet { display: grid; gap: 4px; }
.gp-app .gp-tete-onglet h1 { margin: 0; font-size: 32px; line-height: 1.08; }
.gp-tete-onglet .gp-sur, .gp-tete-onglet .gp-q-aide { margin: 0; }
.gp-onglet-macro, .gp-onglet-nouvelles, .gp-onglet-investir { display: grid; gap: 14px; min-width: 0; }
.gp-seg.is-petit { justify-self: start; }
.gp-seg.is-petit button { padding: 6px 14px; min-height: 36px; }
.gp-carte-pas { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-left: 4px solid var(--gp-vert); }
.gp-carte-pas > span:first-child { display: grid; gap: 2px; flex: 1; }
.gp-carte-pas small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-carte-pas b { font-family: var(--gp-serif); font-weight: 500; font-size: 21px; line-height: 1.15; }

/* Indicateurs suivis (onglet Macro). */
.gp-indics { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-indics button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 8px 10px; border: 1px solid var(--gp-trait); border-radius: 12px; background: var(--gp-fond); color: var(--gp-encre); text-align: left; cursor: pointer; font: inherit; }
.gp-indics b { display: block; font-size: 14.5px; font-weight: 600; }
.gp-indics small { display: block; font-size: 12.5px; color: var(--gp-doux); }
.gp-indics strong { font-family: var(--gp-serif); font-weight: 500; font-size: 22px; }

/* Nouvelles dépliantes. */
.gp-nv-liste { display: grid; gap: 14px; min-width: 0; }
.gp-nv-groupe { display: grid; gap: 6px; min-width: 0; }
.gp-nv-groupe-titre { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-nv-groupe-titre span { margin-left: auto; color: var(--gp-doux); letter-spacing: 0; }
.gp-nv { border-radius: 14px; background: var(--gp-carte); border: 1px solid var(--gp-trait); min-width: 0; overflow: hidden; }
.gp-dep-corps .gp-nv { background: var(--gp-fond); }
.gp-nv.is-non-lu { border-left: 4px solid var(--gp-vert); }
.gp-nv-ligne { width: 100%; display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) 16px; gap: 10px; align-items: center; min-height: 60px; padding: 10px 12px; border: 0; background: none; color: var(--gp-encre); text-align: left; cursor: pointer; font: inherit; }
.gp-nv-type { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EAE3D5; color: var(--gp-encre); }
.gp-nv-type.is-majeur { background: var(--gp-encre); color: var(--gp-or-clair); }
.gp-nv-type .am-picto { width: 16px; height: 16px; margin: 0; color: inherit; }
.gp-nv-vide { width: 32px; }
.gp-nv-txt { display: grid; gap: 2px; min-width: 0; }
.gp-nv-txt b { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-nv.is-ouvert .gp-nv-txt b { -webkit-line-clamp: unset; display: block; }
.gp-nv-txt small { font-size: 12.5px; color: var(--gp-doux); }
.gp-nv-raison { color: var(--gp-vert); font-weight: 600; }
.gp-nv-corps { display: grid; gap: 8px; margin: 0 12px; padding: 12px 0 14px; border-top: 1px solid var(--gp-trait); font-size: 14.5px; min-width: 0; }
.gp-nv-corps p { margin: 0; }
.gp-nv-kicker { font-size: 11.5px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-nv-source a { color: var(--gp-vert); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gp-nv-climat { display: grid; gap: 6px; justify-items: start; padding: 10px; border-radius: 12px; background: var(--gp-fond); }
.gp-dep-corps .gp-nv-climat { background: var(--gp-carte); }
.gp-nv-climat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gp-nv-climat li b { margin-right: 6px; }
.gp-nv-climat .is-pour b { color: var(--feu-v-txt); } .gp-nv-climat .is-contre b { color: var(--feu-r-txt); }
.gp-nv-climat .gp-mentions { margin: 0; }
.gp-nv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-nv-investir { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--gp-encre); color: #F3EFE7; font: 600 15px/1 "GP Inter", "Inter", system-ui, sans-serif; cursor: pointer; }
.gp-nv-investir .am-picto { width: 18px; height: 18px; margin: 0; color: var(--gp-or-clair); }
.gp-nv-fiche { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--gp-vert); background: none; color: var(--gp-vert); font: 600 14px/1 "GP Inter", "Inter", system-ui, sans-serif; cursor: pointer; }
.gp-app button:focus-visible { outline: 2px solid var(--gp-vert); outline-offset: 2px; }
.gp-jeux-tuiles { grid-template-columns: 1fr 1fr; }
.gp-jeu-tuile { min-height: 52px; padding: 6px 8px; gap: 8px; }
.gp-jeu-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--gpi-vert-doux); color: var(--gp-vert); }
.gp-jeu-ic .am-picto { width: 19px; height: 19px; margin: 0; color: var(--gp-vert); }
.gp-jeu-tuile b { font-size: 14.5px; line-height: 1.2; }
.gp-jeux-profil { justify-self: start; text-align: left; font-size: 14px; min-height: 36px; }
.gp-suis-puces { gap: 6px; }
.gp-suis-puce { gap: 6px; padding: 3px 10px 3px 4px; font-size: 13.5px; min-height: 44px; }
.gp-suis-puce .gp-suis-nb { min-width: 20px; height: 20px; font-size: 11.5px; }
.gp-bloc { padding: 12px 14px; gap: 8px; }
.gpi-tuile .gp-feu { max-width: 100%; gap: 5px; padding: 2px 8px 2px 2px; }
.gpi-tuile .gp-feu-pastille { width: 16px; height: 16px; }
.gpi-tuile .gp-feu-txt b { font-size: 12.5px; }

/* ===================================================================
   AM-182 (13/11/2026, Thomas) : thème sombre de l'appli grand public.
   Réglage dans Moi › Apparence (Auto = suit l'appareil, Clair, Sombre). La classe .gp-sombre est posée sur .gp-app ;
   dans le cadre du téléphone, html.gp-cadre reçoit aussi .gp-sombre et data-theme="dark" (planète, boussole, journal).
   Fond vert nuit, texte crème ; les éléments qui prenaient l'encre comme fond (boutons, bandeaux) gardent un vert
   nuit relevé ; les cartes à collectionner restent des objets « papier » clairs. Contrastes ≥ 4,5:1 sur le texte.
   =================================================================== */
html.gp-cadre.gp-sombre, html.gp-cadre.gp-sombre body { background: #0f1c1a; }
.gp-app.gp-sombre, .gp-app.gp-sombre .gpi {
  color-scheme: dark;
  --gp-encre: #EDE7DC; --gp-encre-2: #B8C2BE; --gp-fond: #0F1C1A; --gp-carte: #172725; --gp-trait: #2B403C; --gp-doux: #A3B0AC;
  --gp-vert: #6CC0B4; --gp-vert-clair: #4F9D92; --gp-or: #CFA76C; --gp-or-clair: #DCBB85; --gp-or-texte: #DCBB85;
  --gp-corail: #CFA76C; --gp-bleu: #6CC0B4; --gp-ombre: rgba(0,0,0,.35);
  --bg: var(--gp-fond); --surface: var(--gp-carte); --surface-2: #1D302D; --surface-3: #223733; --border: var(--gp-trait); --border-strong: #3D5651;
  --fg: var(--gp-encre); --fg-2: #CDD5D1; --fg-3: var(--gp-doux); --muted: var(--gp-doux); --accent: #6CC0B4; --accent-soft: #1F3A36; --accent-fg: #0F1C1A;
  --gpq-encre: #EDE7DC; --gpq-ombre: rgba(0,0,0,.55); --gpq-fond: #0F1C1A; --gpq-carte: #172725;
  --gpq-sar: #6CC0B4; --gpq-ocre: #CFA76C; --gpq-ocre-pale: #3A3020; --gpq-juste: #1D3B2E; --gpq-faux: #44231F;
  --gpi-vert-doux: #1F3A36; --gpi-nuit: #234A45; --gpi-sur-nuit: #F3EFE7; --gpi-nuit-doux: #D3DAD6; --gpi-fort: #3D5651;
  --feu-v: #3F9A6F; --feu-v-txt: #A3DCBC; --feu-v-fond: #16322A;
  --feu-o: #B9842A; --feu-o-txt: #EBC57E; --feu-o-fond: #352910;
  --feu-r: #C4554B; --feu-r-txt: #F2ACA4; --feu-r-fond: #3D1D1A;
  --gpi-feu-v: #3F9A6F; --gpi-feu-o: #B9842A; --gpi-feu-r: #C4554B;
}
.mode-daltonien .gp-app.gp-sombre, .mode-daltonien .gp-app.gp-sombre .gpi, .gp-app.gp-sombre.mode-daltonien {
  --feu-v: #3E7FCC; --feu-v-txt: #ADCBF0; --feu-v-fond: #172A40;
  --feu-r: #D2632C; --feu-r-txt: #F5B48F; --feu-r-fond: #3D2015;
  --gpi-feu-v: #3E7FCC; --gpi-feu-r: #D2632C;
}
/* Éléments « encre en fond » (boutons, bandeaux, toasts) : vert nuit relevé, texte clair inchangé. */
.gp-app.gp-sombre :is(.gp-bouton, .gp-toast, .gp-reaction, .gp-fdj-y-aller, .gp-pti, .gp-defi-ic, .gp-final, .gp-nv-type.is-majeur, .gp-nv-investir) { --gp-encre: #234A45; }
.gp-app.gp-sombre .gp-toast { --gp-encre: #102F2B; }
.gp-app.gp-sombre :is(.gp-xp-gagne, .gp-bouton-or) { --gp-encre: #102F2B; }
/* Fonds sarcelle avec texte clair : sarcelle plus profonde (texte crème ≥ 4,5:1). */
.gp-app.gp-sombre :is(.gp-bouton, .gp-nolu-bulle, .gp-nolu-flottant, .gp-puce.is-on, .gp-seg button.is-on, .am-ag-saisie .btn-primary, .am-n0-boutons .btn-primary,
  .gp-chemin .is-ici span, .gp-obj-etapes li.is-fait .gp-obj-num, .gpi-nb, .gpi-bouton, .gpi-puce.is-on, .gpi-suivre, .gpi-seg button.is-on, .gp-suis-nb, .gp-dep-nb) { --gp-vert: #2A7A72; }
/* Cartes à collectionner et paquet : objets papier, on garde leurs couleurs claires. */
.gp-app.gp-sombre :is(.gpk-carte, .gpk-paquet) {
  --gpq-encre: #102F2B; --gpq-ombre: rgba(0,0,0,.6); --gpq-fond: #F3EFE7; --gpq-carte: #FBF8F2; --gpq-sar: #23746D; --gpq-ocre: #C49A60; --gpq-ocre-pale: #EFE0C6;
  --gp-encre: #102F2B; --gp-doux: #5A6764; --gp-vert: #23746D; --gp-or-texte: #7A5B2E; --fg: #102F2B; --fg-2: #2A403D;
}
/* Fonds clairs écrits en dur. */
.gp-app.gp-sombre :is(.gp-bouton-blanc, .gp-rond, .gp-champ, .gp-tuile, .gp-social, .gp-puce, .gp-barre, .gp-fdj-pour-contre, .gp-fdj-fleche, .gp-obj-champ,
  .gpq-retour-btn, .gpq-prog, .gpq-pourquoi, .gpq-rep button) { background: var(--gp-carte); }
.gp-app.gp-sombre .gp-social.is-apple { background: #EDE7DC; color: #0F1C1A !important; border-color: #EDE7DC; }
.gp-app.gp-sombre :is(.gp-info, .gp-badges li.is-ok, .gpi-pic.is-indic) { background: #352910; }
.gp-app.gp-sombre :is(.gp-niveau-ic, .gp-journal-ic) { background: var(--accent-soft); }
.gp-app.gp-sombre .gp-nv-type { background: var(--surface-2); }
.gp-app.gp-sombre .gp-nv-type.is-majeur { background: var(--gp-encre); }
.gp-app.gp-sombre .gp-risque { background: linear-gradient(135deg, #16322A, #3A2420); }
.gp-app.gp-sombre .gp-serie { background: #3A2416; color: #F2A774; }
.gp-app.gp-sombre .gp-carte-paquet { background: linear-gradient(120deg, #2E2614, #33221C); border-color: #4A3A22; }
.gp-app.gp-sombre .gp-barres i { background: #4A5A56; }
.gp-app.gp-sombre .gp-fermer { background: rgba(255,255,255,.1); }
.gp-app.gp-sombre .gpi-choix button.is-juste { background: #1D3B2E; }
.gp-app.gp-sombre .gpi-choix button.is-faux { background: #44231F; }
.gp-app.gp-sombre .gpi-demo { background: #3D1D1A; color: #F2ACA4; border-color: #8B3932; }
/* Logos et drapeaux : on garde la pastille blanche (logos sur fond clair) mais avec un liseré. */
.gp-app.gp-sombre :is(.gpi-drapeau, .gpi-logo) { box-shadow: 0 0 0 1px var(--gp-trait); }
/* Cartes vert nuit (Où investir, alertes, Moi, portrait…) : on les détache du fond. */
.gp-app.gp-sombre :is(.gp-investir, .gp-alerte-appli, .gp-moi-carte, .gp-carte-loupe, .gp-resultat, .gp-portrait, .gp-ouverture) { background: #1C3B37; }
.gp-app.gp-sombre .gp-objet .m-texte, .gp-app.gp-sombre .gp-avatar .m-b { fill: #1C3B37; }
/* Textes de couleur écrits en dur (hausse, baisse, à valider). */
.gp-app.gp-sombre :is(.gp-news-lien b, .gp-depuis .is-haut, .gp-oi-rubrique .is-haut) { color: #8FD3B0; }
.gp-app.gp-sombre :is(.gp-news-lien b.is-bas, .gp-depuis .is-bas, .gp-oi-rubrique .is-bas, .gp-a-valider) { color: #F2ACA4; }
.gp-app.gp-sombre .gpq-rep button.is-fausse::after { color: #F2ACA4; }
.gp-app.gp-sombre .gpq-rep button.is-fausse { border-color: #C4554B; box-shadow: 1px 1px 0 #C4554B; }
.gp-app.gp-sombre .gpq-retour.is-faux { border-color: #C4554B; }
.gp-app.gp-sombre .gpi-jauge i.is-maj { background: #4F9D92; }
/* Pour / contre côte à côte (fiches) : fonds des feux sombres, texte clair. */
.gp-app.gp-sombre .am-pr-balance .is-pour { background: var(--feu-v-fond); color: #DCEFE3; }
.gp-app.gp-sombre .am-pr-balance .is-contre { background: var(--feu-r-fond); color: #F6DEDA; }

/* AM-183 (13/11/2026) : jeu de cartes — flèches (PC), compteur, collection. */
.gpk-nav { margin-top: -4px; }
.gpk-compte { font-size: 13px; color: var(--gp-doux); font-variant-numeric: tabular-nums; }
.gpk-voir-coll { justify-self: start; }
.gpk-coll { display: grid; gap: 12px; }
.gpk-coll-tete { display: grid; gap: 4px; justify-items: start; }
.gpk-coll-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; perspective: 1000px; }
.gpk-coll-case { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.gpk-coll-case .gpk-carte { width: 230px; height: 340px; zoom: .68; }
.gpk-coll-case small { font-size: 12px; color: var(--gp-doux); }

/* ===================================================================
   AM-184 (13/11/2026, Thomas : « la première page a une DA bcp trop trop trop IA.. utilise cette DA ») : l'accueil
   prend la DA des cartes à collectionner, selon le rapport « Maison » (luxe éditorial contemporain) :
   fiches à bandeau vert nuit numéroté, cadre ocre fin doublé, ombre décalée, papier tramé ; Cormorant pour les
   titres, questions, noms et montants, Inter pour le reste ; plus de pilules ni de pastilles rondes.
   =================================================================== */
.gp-app { --fiche-papier: #FBF8F2; --fiche-trame: rgba(16,47,43,.06); --fiche-bande: #102F2B; --fiche-sur-bande: #F3EFE7; --fiche-ocre: #C49A60; --fiche-ombre: rgba(16,47,43,.85); }
.gp-app.gp-sombre { --fiche-papier: #172725; --fiche-trame: rgba(237,231,220,.05); --fiche-bande: #234A45; --fiche-sur-bande: #F3EFE7; --fiche-ocre: #A9824C; --fiche-ombre: rgba(0,0,0,.55); }

.gp-accueil { gap: 22px; }
.gp-app .gp-accueil .gp-tete-courte { align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--gp-trait); }
.gp-app .gp-accueil .gp-tete-courte .gp-sur { font: 600 12px/1.3 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-or-texte); margin: 0 0 2px; }
.gp-app .gp-accueil .gp-tete-courte h1 { font-size: 30px; line-height: 1.1; }
.gp-app .gp-accueil .gp-serie { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; color: var(--gp-doux); font: 500 12.5px/1.2 "GP Inter", "Inter", system-ui, sans-serif; text-align: right; width: auto; height: auto; }
.gp-app .gp-accueil .gp-serie b { display: block; font: 400 30px/1 var(--gp-serif); color: var(--gp-encre); }

/* La fiche */
.gp-fiche { position: relative; min-width: 0; background: var(--fiche-papier) radial-gradient(var(--fiche-trame) 1px, transparent 1.2px) 0 0 / 5px 5px;
  border: 1px solid var(--fiche-ocre); border-radius: 6px; box-shadow: inset 0 0 0 3px var(--fiche-papier), inset 0 0 0 4px color-mix(in srgb, var(--fiche-ocre) 55%, transparent), 4px 4px 0 var(--fiche-ombre); padding: 6px; }
.gp-fiche-bande { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 3px; background: var(--fiche-bande); color: var(--fiche-sur-bande);
  font: 600 11.5px/1.2 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.gp-fiche-num { color: var(--gp-or-clair, #D4B07A); }
.gp-fiche-droite { flex: none; padding: 2px 7px; border: 1px solid currentColor; border-radius: 2px; font-size: 11px; letter-spacing: .08em; }
.gp-fiche-corps { display: grid; gap: 12px; padding: 12px 8px 8px; min-width: 0; }

/* Défi du jour */
.gp-app .gp-fiche .gp-defi-sur { margin: 0; font: 600 12px/1.3 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-app .gp-fiche .gp-defi-sur .gp-defi-lie { font: inherit; letter-spacing: inherit; text-transform: none; color: var(--gp-vert); }
.gp-app .gp-fiche .gp-defi-q { font: 400 24px/1.2 var(--gp-serif); color: var(--gp-encre); }
.gp-app .gp-fiche .gp-defi-choix { display: grid; gap: 6px; }
.gp-app .gp-fiche .gp-defi-choix button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px 0 6px; border-radius: 4px; border: 1px solid var(--gp-trait);
  background: var(--gp-fond); color: var(--gp-encre); text-align: left; font: 500 16px/1.25 "GP Inter", "Inter", system-ui, sans-serif; box-shadow: 2px 2px 0 color-mix(in srgb, var(--fiche-ombre) 35%, transparent); }
.gp-app .gp-fiche .gp-defi-choix button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.gp-defi-lettre { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 3px; background: var(--fiche-bande); color: var(--fiche-sur-bande); font: 400 19px/1 var(--gp-serif); }
.gp-app .gp-fiche .gp-defi-choix button.is-juste { background: var(--feu-v-fond); color: var(--feu-v-txt); border-color: var(--feu-v); }
.gp-app .gp-fiche .gp-defi-choix button.is-juste .gp-defi-lettre { background: var(--feu-v); color: #fff; }
.gp-app .gp-fiche .gp-defi-choix button.is-faux { background: var(--feu-r-fond); color: var(--feu-r-txt); border-color: var(--feu-r); }
.gp-app .gp-fiche .gp-defi-choix button.is-faux .gp-defi-lettre { background: var(--feu-r); color: #fff; }

/* Paquet (dos de carte) et « Ce que tu loupes » (montant) */
.gp-app .gp-fiche .gp-jeux-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-jeu-dos, .gp-jeu-loupe { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: end; gap: 3px; min-height: 132px; padding: 12px; border-radius: 5px; position: relative; overflow: hidden; }
.gp-jeu-dos { background: var(--fiche-bande) radial-gradient(rgba(196,154,96,.38) 1.1px, transparent 1.2px) 0 0 / 8px 8px; color: var(--fiche-sur-bande);
  box-shadow: inset 0 0 0 3px var(--fiche-bande), inset 0 0 0 4px var(--fiche-ocre), 3px 3px 0 var(--fiche-ombre); }
.gp-jeu-dos-embleme { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--fiche-ocre); color: var(--gp-or-clair, #D4B07A); font: 400 22px/1 var(--gp-serif); background: var(--fiche-bande); }
.gp-jeu-dos b { font: italic 400 21px/1.1 var(--gp-serif); }
.gp-jeu-dos small { font: 500 13px/1.3 "GP Inter", "Inter", system-ui, sans-serif; color: #E4DED2; }
.gp-jeu-dos.is-fait { opacity: .92; }
.gp-jeu-loupe { background: var(--gp-fond); border: 1px solid var(--gp-trait); color: var(--gp-encre); box-shadow: 3px 3px 0 color-mix(in srgb, var(--fiche-ombre) 35%, transparent); }
.gp-jeu-sur { position: absolute; top: 12px; left: 12px; right: 12px; font: 600 11.5px/1.25 "GP Inter", "Inter", system-ui, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-or-texte) !important; }
.gp-jeu-loupe strong { font: 400 34px/1 var(--gp-serif); font-variant-numeric: lining-nums; color: var(--gp-encre); }
.gp-jeu-loupe strong.is-court { font-style: italic; font-size: 26px; }
.gp-jeu-loupe small { font: 400 13px/1.3 "GP Inter", "Inter", system-ui, sans-serif; color: var(--gp-doux); }
.gp-jeu-dos:focus-visible, .gp-jeu-loupe:focus-visible { outline: 2px solid var(--gp-vert); outline-offset: 2px; }
.gp-app .gp-fiche .gp-jeux-profil { font-size: 14px; }

/* Ce que tu suis : une liste qu'on lit d'un coup d'œil */
.gp-suis-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.gp-suis-liste li + li { border-top: 1px solid var(--gp-trait); }
.gp-suis-ligne { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 14px; gap: 12px; align-items: center; min-height: 58px; padding: 6px 2px; }
.gp-suis-ligne:focus-visible { outline: 2px solid var(--gp-vert); outline-offset: 2px; }
.gp-suis-txt { display: grid; gap: 1px; min-width: 0; }
.gp-app .gp-suis-ligne .gp-suis-nom { font: italic 400 21px/1.15 var(--gp-serif); color: var(--gp-encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-suis-txt small { display: flex; align-items: center; gap: 5px; font: 500 12.5px/1.3 "GP Inter", "Inter", system-ui, sans-serif; color: var(--gp-doux); }
.gp-suis-n { font: 500 12.5px/1.2 "GP Inter", "Inter", system-ui, sans-serif; color: var(--gp-doux); white-space: nowrap; }
.gp-suis-n.is-neuf { color: var(--gp-or-texte); }
.gp-suis-n b { font: 400 22px/1 var(--gp-serif); color: var(--gp-encre); }
.gp-suis-ligne .gp-fleche { color: var(--gp-vert); font-size: 20px; }
.gp-suis-pied { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--gp-trait); }
.gp-suis-pied .gp-lien { font-size: 14px; }

/* Et aussi, à déplier : un sommaire à filets, sans boîtes ni ronds */
.gp-deps-fiche .gp-fiche-corps { padding-top: 4px; }
.gp-deps-fiche .gp-deps { gap: 0; }
.gp-deps-fiche .gp-dep { background: none; border: 0; border-radius: 0; }
.gp-deps-fiche .gp-dep + .gp-dep { border-top: 1px solid var(--gp-trait); }
.gp-deps-fiche .gp-dep-tete { padding: 10px 2px; min-height: 60px; }
.gp-deps-fiche .gp-dep-pic { background: none; width: 26px; height: 26px; border-radius: 0; }
.gp-deps-fiche .gp-dep-pic .am-picto { width: 22px; height: 22px; color: var(--gp-or-texte); }
.gp-app .gp-deps-fiche .gp-dep-txt b { font-style: italic; font-weight: 400; font-size: 22px; }
.gp-deps-fiche .gp-dep-nb { border-radius: 2px; background: var(--fiche-bande); color: var(--fiche-sur-bande); }
.gp-deps-fiche .gp-dep-corps { padding: 0 2px 12px; }
/* Réponses courtes : sur une ligne, pour garder « Ce que tu suis » visible sans défiler. */
.gp-app .gp-fiche .gp-defi-choix.is-court { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.gp-app .gp-fiche .gp-defi-choix.is-court button { gap: 8px; padding: 0 8px 0 5px; font-size: 15px; }
.gp-app .gp-fiche .gp-defi-choix.is-court .gp-defi-lettre { width: 28px; height: 28px; font-size: 17px; }
.gp-jeu-dos, .gp-jeu-loupe { min-height: 112px; }
.gp-app .gp-fiche .gp-defi-q { font-size: 23px; }
.gp-fiche-corps { gap: 10px; padding-top: 10px; }
.gp-accueil { gap: 18px; }
/* Tuiles en flux (plus de chevauchement sur petit écran) */
.gp-jeu-dos, .gp-jeu-loupe { display: flex; flex-direction: column; justify-content: space-between; align-content: normal; gap: 6px; }
.gp-jeu-dos-embleme, .gp-jeu-sur { position: static; }
.gp-jeu-dos-embleme { width: 32px; height: 32px; font-size: 19px; margin-bottom: 4px; }
.gp-jeu-sur { margin-bottom: 4px; }
.gp-jeu-dos > b + small, .gp-jeu-loupe > strong + small { margin-top: -2px; }
@media (max-width: 360px) {
  .gp-app .gp-fiche .gp-defi-choix.is-court .gp-defi-lettre { display: none; }
  .gp-app .gp-fiche .gp-defi-choix.is-court button { justify-content: center; padding: 0 4px; }
  .gp-jeu-dos b { font-size: 19px; }
  .gp-jeu-loupe strong { font-size: 28px; }
}
.gp-jeu-txt { display: grid; gap: 3px; }

/* ===================================================================
   AM-185 (13/11/2026, Thomas : « faire un format de news grâce à ces cartes ») : chaque nouvelle est une carte à
   retourner, dans la DA des fiches (AM-184) : papier tramé, bandeau vert nuit numéroté, cadre ocre, Cormorant.
   Légendaire = bandeau ocre ; rare = vert nuit ; commune = sarcelle.
   =================================================================== */
.gp-ncartes { display: grid; gap: 12px; min-width: 0; }
.gp-ncartes-piste { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 14px; margin: 0 -16px; perspective: 1100px; scrollbar-width: none; }
.gp-ncartes-piste::-webkit-scrollbar { display: none; }
.gp-ncarte { all: unset; box-sizing: border-box; position: relative; display: block; width: 272px; height: 400px; cursor: pointer; scroll-snap-align: center; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.2, .5, 1); color: var(--gp-encre); font: 400 14px/1.35 "GP Inter", "Inter", system-ui, sans-serif; }
.gp-ncarte:focus-visible { outline: 3px solid var(--gp-vert); outline-offset: 4px; border-radius: 6px; }
.gp-ncarte.is-verso { transform: rotateY(180deg); }
.gp-ncarte-face { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--fiche-papier) radial-gradient(var(--fiche-trame) 1px, transparent 1.2px) 0 0 / 5px 5px; border: 1px solid var(--fiche-ocre); border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--fiche-papier), inset 0 0 0 4px color-mix(in srgb, var(--fiche-ocre) 55%, transparent), 4px 4px 0 var(--fiche-ombre); }
.gp-ncarte-verso { transform: rotateY(180deg); gap: 4px; }
.gp-ncarte-bande { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 3px; background: var(--gp-vert); color: var(--fiche-sur-bande); font: 600 11px/1.2 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.gp-ncarte.is-rare .gp-ncarte-bande { background: var(--fiche-bande); }
.gp-ncarte.is-legendaire .gp-ncarte-bande { background: var(--fiche-bande); color: var(--gp-or-clair, #D4B07A); box-shadow: inset 0 0 0 1px var(--fiche-ocre); }
.gp-ncarte-rarete { flex: none; padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; letter-spacing: .08em; }
.gp-ncarte.is-legendaire .gp-ncarte-rarete { background: var(--fiche-ocre); color: var(--fiche-bande); border-color: var(--fiche-ocre); }
.gp-ncarte-sujet { display: flex; align-items: center; gap: 8px; padding: 2px 6px 0; min-width: 0; font: 600 12px/1.25 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-ncarte-sujet > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-ncarte-accroche { padding: 0 6px; font: italic 400 27px/1.08 var(--gp-serif); color: var(--gp-encre); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gp-ncarte-chiffre { display: grid; gap: 2px; margin: 0 6px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--fiche-ocre) 60%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--fiche-ocre) 60%, transparent); }
.gp-ncarte-grand { display: flex; align-items: center; gap: 8px; }
.gp-ncarte-grand strong { font: 500 38px/1 var(--gp-serif); font-variant-numeric: lining-nums tabular-nums; color: var(--gp-encre); }
.gp-ncarte-chiffre small { font-size: 12px; line-height: 1.3; color: var(--gp-doux); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-ncarte-titre { padding: 0 6px; font-size: 13.5px; line-height: 1.35; color: var(--gp-encre); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.gp-ncarte-pied { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px 2px; border-top: 1px solid var(--fiche-ocre); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-doux); }
.gp-ncarte-pied > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-ncarte-kicker { padding: 4px 6px 0; font: 600 11px/1.2 "GP Inter", "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-or-texte); }
.gp-ncarte-texte { padding: 0 6px; font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gp-ncarte-verso .gp-feu { margin: 2px 6px; }
.gp-ncarte-pc { margin: 0 6px; padding: 4px 8px; border-radius: 3px; font-size: 12.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-ncarte-pc.is-pour { background: var(--feu-v-fond); color: var(--feu-v-txt); } .gp-ncarte-pc.is-contre { background: var(--feu-r-fond); color: var(--feu-r-txt); }
.gp-ncarte-mention { margin-top: auto; padding: 4px 6px 2px; border-top: 1px solid var(--fiche-ocre); font-size: 11px; line-height: 1.3; color: var(--gp-doux); }
.gp-ncartes-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gp-ncartes-actions a.gp-nv-fiche { display: inline-flex; align-items: center; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .gp-ncarte { transition: none; } }

/* ── AM-186 : Suivre, la ligne « pourquoi » sous chaque résultat ── */
.gpi-rangee.is-pourquoi { display: grid; gap: 6px; align-items: stretch; }
.gpi-rangee-haut { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gpi-pourquoi { display: grid; gap: 4px; padding: 6px 0 0 38px; border-top: 1px dashed var(--gp-trait); }
.gpi-pourquoi-faits { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 600; color: var(--gp-encre); font-variant-numeric: lining-nums tabular-nums; }
.gpi-pourquoi-faits > span:not(.gp-feu) + span:not(.gp-feu)::before { content: "·"; margin-right: 10px; color: var(--gp-doux); font-weight: 400; }
.gpi-demo { font-size: 11px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-or-texte) !important; }
.gpi-pourquoi-faits > .gpi-demo::before { content: none !important; }
.gpi-pourquoi-arg { margin: 0; font-size: 13px; line-height: 1.35; color: var(--gp-doux); }
.gpi-pourquoi-arg b { margin-right: 4px; } .gpi-pourquoi-arg b.is-pour { color: var(--feu-v-txt); } .gpi-pourquoi-arg b.is-contre { color: var(--feu-r-txt); }
.gpi-pourquoi-lien { min-height: 36px; }
@media (max-width: 360px) { .gpi-pourquoi { padding-left: 0; } }


/* Décryptages (CO-01) — dans la coque Zeia, jetons de la suite uniquement (--fg, --accent, --border…).
   Source A en brique douce, source B en vert : les deux couleurs de la charte (--critical, --ok), atténuées. */
.dc-main { display: grid; gap: 24px; }
.dc-head h1 { margin: 0; }
.dc-head p { margin: 6px 0 0; max-width: 76ch; }
.dc-head .dc-devise { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.dc-alerte { background: var(--warning-soft); color: var(--fg); }
.dc-vide { padding: 32px 0; text-align: center; color: var(--fg-3); }

.dc-barre { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.dc-onglets { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.dc-onglets button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--fg-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.dc-onglets button span { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dc-onglets button.is-on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); font-weight: 600; }
.dc-onglets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dc-barre-droite { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dc-lancer { display: grid; gap: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; animation: rise 0.18s ease-out; }
.dc-lancer-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-lancer-tete h2 { margin: 0; font-size: 18px; }
.dc-lancer .dc-onglets { justify-self: start; }
.dc-champ { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.dc-champ em { font-style: normal; font-weight: 400; color: var(--fg-3); margin-left: 4px; }
.dc-champ input, .dc-champ textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--fg); width: 100%; box-sizing: border-box; }
.dc-champ input:focus-visible, .dc-champ textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dc-lancer-pied { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dc-lancer-pied p { margin: 0; font-size: 12.5px; max-width: 60ch; }
.dc-carte.is-idee { border-style: dashed; }
.dc-ia { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--warning-soft); font-size: 13.5px; line-height: 1.5; }
.dc-ia > .icon { flex: none; margin-top: 3px; color: var(--warning); }
.dc-ia ul { margin: 6px 0 0; padding-left: 18px; }
.dc-job { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.dc-job.is-erreur { background: var(--critical-soft); }
.dc-job .link-btn { margin-left: auto; }
.dc-job-rond { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: dc-tourne 0.9s linear infinite; }
@keyframes dc-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dc-job-rond { animation: none; } }
.dc-filtre, .dc-etat { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.dc-filtre select, .dc-etat select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--fg); }

.dc-corps { display: grid; gap: 24px; }
.dc-corps.avec-tendances { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.dc-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dc-carte { width: 100%; height: 100%; text-align: left; display: grid; gap: 10px; align-content: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font: inherit; color: var(--fg); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.dc-carte:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.dc-carte.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dc-carte:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dc-carte-haut { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dc-theme { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); }
.dc-carte-titre { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.dc-carte-titre.dc-mot { font-size: 20px; }
.dc-carte-chiffre { font-size: 13px; color: var(--accent); font-weight: 500; }
.dc-carte-texte { font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.dc-carte-pied { font-size: 12px; color: var(--fg-3); }

.dc-statut { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--neutral-soft); color: var(--fg-2); white-space: nowrap; }
.dc-statut.is-a_valider { background: var(--warning-soft); color: var(--warning); }
.dc-statut.is-valide { background: var(--accent-soft); color: var(--accent); }
.dc-statut.is-publie { background: var(--ok-soft); color: var(--ok); }
.dc-statut.is-ecarte { text-decoration: line-through; }

.dc-panneau { position: relative; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; scroll-margin-top: 80px; animation: rise 0.18s ease-out; }
.dc-fermer { position: absolute; top: 14px; right: 14px; }
.dc-detail { display: grid; gap: 20px; }
.dc-detail-tete { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-right: 90px; }
.dc-detail-tete h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; max-width: 34ch; }
.dc-surtitre { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); }
.dc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc-video-ok { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ok); font-weight: 500; }
.dc-video-err { font-size: 12.5px; color: var(--critical); max-width: 32ch; }
.dc-chiffre { margin: 0; font-size: 18px; font-weight: 600; color: var(--accent); }
.dc-une-ligne { margin: 0; font-size: 17px; line-height: 1.5; max-width: 70ch; }

.dc-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.dc-vs { display: grid; place-items: center; font-size: 26px; color: var(--fg-3); }
.dc-source { display: grid; gap: 8px; align-content: start; padding: 16px 18px; border-radius: 10px; border: 1px solid transparent; }
.dc-source.is-a { background: color-mix(in srgb, var(--critical) 6%, var(--surface)); border-color: color-mix(in srgb, var(--critical) 22%, var(--surface)); }
.dc-source.is-b { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 24%, var(--surface)); }
.dc-source-tag { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dc-source.is-a .dc-source-tag { color: var(--critical); }
.dc-source.is-b .dc-source-tag { color: var(--ok); }
.dc-source h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.dc-source blockquote { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg); }
.dc-lien { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--fg-2); text-decoration: none; }
.dc-lien:hover { color: var(--accent); text-decoration: underline; }

.dc-analyse h3, .dc-sources h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.dc-analyse ol, .dc-analyse ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; max-width: 80ch; }
.dc-retenir { margin: 0; display: grid; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; line-height: 1.5; }
.dc-retenir strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.dc-marches { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 8px; line-height: 1.5; }
.dc-marches > .icon { flex: none; margin-top: 2px; color: var(--accent); }
.dc-marches strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.dc-marches p { margin: 4px 0 0; max-width: 80ch; }
.dc-limites { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--fg-2); }
.dc-limites .icon { flex: none; margin-top: 2px; }
.dc-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-sources li { display: grid; gap: 2px; font-size: 14px; }
.dc-pied { margin: 0; font-size: 12px; }

/* Maquette hebdomadaire Top 5, dans la charte de l'application : fond minéral, accent sarcelle. */
.dc-top5 { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.dc-top5-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.dc-top5-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.dc-top5-head h2 { margin: 7px 0 4px; font-size: 23px; letter-spacing: -.025em; }
.dc-top5-head p { margin: 0; max-width: 70ch; color: var(--fg-2); font-size: 13.5px; }
.dc-top5-date { flex: none; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--fg-2); font-size: 12px; }
.dc-top5-state { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--accent-soft); color: var(--fg-2); font-size: 13px; }
.dc-top5-state.is-error { background: var(--warning-soft); }
.dc-top5-pulse { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dc-top5-grid { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.7fr); gap: 18px; align-items: stretch; }
.dc-top5-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; padding: 24px; border-radius: 12px; background: #17262A; color: #fff; }
.dc-top5-cover span { color: #CCB17D; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.dc-top5-cover b { font-family: Georgia,serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.02; }
.dc-top5-cover small { color: #D7DEDC; font-size: 12px; }
.dc-top5-cover i { padding-top: 12px; border-top: 1px solid #536164; color: #D7DEDC; font-size: 12px; font-style: normal; }
.dc-top5-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dc-top5-list li { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dc-top5-list li:first-child { padding-top: 0; }
.dc-top5-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.dc-top5-num { color: var(--accent); font-family: Georgia,serif; font-size: 25px; }
.dc-top5-copy h3 { margin: 3px 0 5px; font-size: 15px; line-height: 1.3; }
.dc-top5-copy p { margin: 0 0 5px; color: var(--fg-2); font-size: 12.5px; line-height: 1.45; }
.dc-top5-source { color: var(--fg-3); font-size: 11px; }
.dc-top5-copy .dc-top5-impact { color: var(--fg); }
.dc-top5-impact b { color: var(--accent); }
.dc-top5-copy a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11.5px; text-decoration: none; }
.dc-top5-copy a:hover { text-decoration: underline; }
.dc-top5-foot { margin: 0; color: var(--fg-3); font-size: 11px; }
@media (max-width: 760px) { .dc-top5 { padding: 16px; } .dc-top5-head { align-items: start; flex-direction: column; } .dc-top5-grid { grid-template-columns: 1fr; } .dc-top5-cover { min-height: 220px; } }

.dc-tendances { position: sticky; top: 76px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 10px; }
.dc-tendances h2 { margin: 0; font-size: 15px; font-weight: 600; }
.dc-tendances h2 .muted { font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.dc-tendances ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 13.5px; }
.dc-tendances li::marker { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dc-tendances li { padding-left: 2px; }
.dc-tend-mot { font-weight: 500; }
.dc-tend-trafic { margin-left: 6px; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dc-tendances .link-btn { margin-left: 6px; font-size: 12px; }

@media (max-width: 900px) {
  .dc-corps.avec-tendances { grid-template-columns: 1fr; }
  .dc-tendances { position: static; }
}
@media (max-width: 640px) {
  .dc-panneau { padding: 18px 16px; }
  .dc-detail-tete { padding-right: 0; padding-top: 30px; }
  .dc-detail-tete h2 { font-size: 20px; }
  .dc-duel { grid-template-columns: 1fr; }
  .dc-vs { transform: rotate(90deg); font-size: 20px; }
  .dc-cartes { grid-template-columns: 1fr; }
}

/* Tendances triées par thème (26/10/2026) */
.dc-tend-cat { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 500; vertical-align: 1px; background: var(--accent-soft); color: var(--accent); }
.dc-tend-cat.cat-politique { background: #F6E7E4; color: #8B3932; }
.dc-tend-cat.cat-economie { background: #F7EED9; color: #8A6A2F; }
.dc-tend-cat.cat-societe { background: #E7F0F7; color: #3E6C8F; }
.dc-tend-cat.cat-autre { background: var(--surface-2); color: var(--fg-3); }
.dc-tendances li.is-autre .dc-tend-mot { color: var(--fg-3); }
:root[data-theme="dark"] .dc-tend-cat.cat-politique { background: #3a2422; color: #e0a39b; }
:root[data-theme="dark"] .dc-tend-cat.cat-economie { background: #3a3020; color: #e1c38a; }
:root[data-theme="dark"] .dc-tend-cat.cat-societe { background: #1f2d3a; color: #a3c3dd; }

.cdj-page { max-width: 1120px; margin: 0 auto; padding: 0 30px 72px; }
.cdj-title { margin: 22px 0 24px; }
.cdj-title h1 { margin:0; font-size:clamp(30px,4vw,42px); letter-spacing:-.055em; }
.cdj-title p { margin:7px 0 0; color:var(--muted); }
.cdj-toolbar { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:8px 0 22px; }
.cdj-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.cdj-actions input { width:min(260px,42vw); padding:10px 12px; border:1px solid var(--border); border-radius:9px; color:var(--fg); background:var(--surface); font:inherit; font-size:13px; }
.cdj-error[role="status"] { color:#594615; border-color:#ddc477; background:#fff9e7; }
.cdj-proposals { margin:22px 0; }
.cdj-proposals h2 { margin:0 0 12px; color:var(--fg); font-size:20px; }
.cdj-proposal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.cdj-proposal { display:grid; align-content:start; gap:10px; padding:18px; border:1px solid var(--line); border-radius:14px; color:var(--text); background:var(--surface); text-align:left; cursor:pointer; }
.cdj-proposal:hover { border-color:var(--accent); }
.cdj-proposals-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; margin-bottom:12px; }
.cdj-proposals-head h2 { margin:0; }
.cdj-proposals-head span, .cdj-proposals-empty { color:var(--fg-3); font-size:13px; }
.cdj-proposal { cursor:default; }
.cdj-proposal em a { color:inherit; text-decoration:underline; }
.cdj-proposal-actions { display:flex; gap:8px; margin-top:4px; }
.cdj-proposal strong { color:var(--fg); font-size:28px; letter-spacing:-.04em; }
.cdj-proposal strong small { color:var(--fg-3); font-size:12px; font-weight:500; letter-spacing:0; }
.cdj-proposal b { font-size:15px; line-height:1.35; }
.cdj-proposal > span:not(.cdj-eyebrow) { color:var(--fg-2); font-size:13px; line-height:1.45; }
.cdj-proposal blockquote { margin:0; padding:8px 10px; border-left:3px solid var(--line); color:var(--fg-3); font-size:12px; line-height:1.45; }
.cdj-proposal em { color:var(--fg-3); font-size:11px; font-style:normal; }
.cdj-date { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; text-transform:capitalize; }
.cdj-card { position:relative; overflow:hidden; padding:clamp(26px,5vw,64px); border:1px solid var(--line); border-radius:24px; color:#fff; background:radial-gradient(ellipse at 90% 8%,rgba(161,49,33,.2),transparent 32%),linear-gradient(145deg,#252525,#101010 72%); box-shadow:0 22px 70px rgba(0,0,0,.13); }
.cdj-card-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.cdj-label { display:inline-block; padding:11px 17px; background:#d7392e; font-size:15px; font-weight:850; letter-spacing:.07em; }
.cdj-category { color:#ddd; font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.cdj-context { position:relative; max-width:820px; margin:30px 0 25px; padding:16px 20px 16px 54px; border-radius:11px; color:#141414; background:rgba(255,255,255,.92); font-size:clamp(15px,2vw,19px); font-weight:680; line-height:1.45; }
.cdj-info { position:absolute; left:16px; top:50%; display:grid; place-items:center; width:25px; height:25px; transform:translateY(-50%); border:2px solid #111; border-radius:50%; font:bold italic 18px Georgia,serif; }
.cdj-headline { max-width:850px; margin:0 0 8px; font-size:clamp(23px,3.5vw,38px); line-height:1.13; font-weight:760; }
.cdj-number { margin-top:5px; font-size:clamp(94px,18vw,190px); line-height:.98; font-weight:780; letter-spacing:-.08em; overflow-wrap:anywhere; }
.cdj-rule { width:120px; height:3px; margin:22px 0 20px; background:#fff; }
.cdj-unit { margin:0 0 17px; color:#f2e568; font-size:clamp(24px,4.5vw,48px); line-height:1.08; font-weight:850; text-transform:uppercase; }
.cdj-analysis { max-width:850px; margin:0; color:#eee; font-size:clamp(16px,1.8vw,19px); line-height:1.65; white-space:pre-line; }
.cdj-source { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:28px; padding-top:19px; border-top:1px solid #ffffff30; color:#bbb; font-size:13px; }
.cdj-source a { display:inline-flex; align-items:center; gap:7px; color:white; font-weight:700; text-decoration:none; }
.cdj-source a:hover { text-decoration:underline; }
.cdj-card-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:20px; color:#aaa; font-size:12px; }
.cdj-card-actions .btn { color:#eee; }
.cdj-archive { margin-top:45px; }
.cdj-archive-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:14px; color:var(--fg-3); font-size:13px; }
.cdj-archive-head h2,.cdj-editor-head h2,.cdj-empty h2 { margin:5px 0 0; color:var(--fg); font-size:24px; letter-spacing:-.035em; }
.cdj-eyebrow { color:var(--fg-3); font-size:10px; font-weight:800; letter-spacing:.16em; }
.cdj-archive-list { display:grid; gap:8px; }
.cdj-archive-item { display:grid; grid-template-columns:150px minmax(130px,.6fr) 1fr 18px; align-items:center; gap:18px; width:100%; padding:17px 18px; border:1px solid var(--line); border-radius:13px; color:var(--text); background:var(--surface); text-align:left; cursor:pointer; }
.cdj-archive-item:hover,.cdj-archive-item.is-current { border-color:var(--accent); }
.cdj-archive-date,.cdj-archive-item small { color:var(--fg-3); font-size:12px; font-weight:500; }
.cdj-archive-item > span:nth-of-type(2) { font-size:13px; line-height:1.4; }
.cdj-empty { display:grid; justify-items:start; gap:9px; padding:45px; border:1px dashed var(--border); border-radius:18px; color:var(--fg-2); }
.cdj-empty p { max-width:560px; margin:0 0 8px; }
.cdj-editor { margin-bottom:22px; padding:24px; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.cdj-editor-head,.cdj-editor-foot { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.cdj-editor-head { margin-bottom:18px; }
.cdj-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cdj-form-grid label { display:grid; gap:6px; color:var(--fg-2); font-size:12px; font-weight:650; }
.cdj-form-grid .wide { grid-column:1/-1; }
.cdj-form-grid input,.cdj-form-grid select,.cdj-form-grid textarea { width:100%; padding:10px 11px; border:1px solid var(--border); border-radius:9px; color:var(--fg); background:var(--bg); font:inherit; font-size:14px; }
.cdj-form-grid textarea { resize:vertical; }
.cdj-editor-foot { margin-top:18px; color:var(--fg-3); font-size:12px; }
.cdj-error { padding:11px 14px; border:1px solid #d77; border-radius:9px; color:#9d201d; background:#fff1f0; }
@media(max-width:720px) { .cdj-page { padding:0 16px 48px; } .cdj-toolbar { align-items:flex-start; flex-direction:column; } .cdj-actions { width:100%; justify-content:flex-start; } .cdj-actions input { width:100%; } .cdj-card { padding:25px 20px; border-radius:17px; } .cdj-label { padding:9px 12px; font-size:12px; } .cdj-context { margin:22px 0; padding:14px 14px 14px 45px; } .cdj-archive-item { grid-template-columns:1fr auto 18px; gap:7px 12px; padding:14px; } .cdj-archive-date { grid-column:1/3; } .cdj-archive-item strong { grid-row:2; } .cdj-archive-item > span:nth-of-type(2) { grid-column:1/3; } .cdj-archive-item > svg { grid-column:3; grid-row:1/4; } .cdj-form-grid { grid-template-columns:1fr; } .cdj-form-grid .wide { grid-column:auto; } .cdj-editor-foot { align-items:flex-start; flex-direction:column; } }

.cours-page { --cours-pos:#2f6f50; --cours-neg:#8b3932; max-width:1180px; margin:0 auto; padding:0 30px 72px; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) .cours-page { --cours-pos:#7cc29c; --cours-neg:#e0978f; } }
:root[data-theme="dark"] .cours-page { --cours-pos:#7cc29c; --cours-neg:#e0978f; }
.cours-pos { color:var(--cours-pos); font-weight:600; white-space:nowrap; }
.cours-neg { color:var(--cours-neg); font-weight:600; white-space:nowrap; }
.cours-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px; margin-top:12px; }
.cours-head h1 { margin:4px 0 0; font-size:clamp(30px,4vw,42px); letter-spacing:-.055em; }
.cours-eyebrow { color:var(--fg-3); font-size:10px; font-weight:800; letter-spacing:.16em; }
.cours-periodes { display:inline-flex; border:1px solid var(--border-strong); border-radius:6px; overflow:hidden; background:var(--surface); }
.cours-periodes button { border:0; border-left:1px solid var(--border); background:none; padding:7px 12px; font:500 12.5px var(--font-ui); color:var(--fg-2); cursor:pointer; }
.cours-periodes button:first-child { border-left:0; }
.cours-periodes button[aria-pressed="true"] { background:var(--accent); color:var(--accent-fg); }
.cours-page button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.cours-error { padding:12px 16px; border-radius:8px; background:var(--critical-soft); color:var(--critical); margin:0; }
.cours-loading,.cours-vide { color:var(--fg-2); padding:22px; text-align:center; margin:0; }
.cours-phrase { display:grid; gap:3px; padding:12px 16px; background:var(--surface); border:1px solid var(--border); border-radius:8px; font-size:14.5px; }
.cours-phrase small { color:var(--fg-3); font-size:11.5px; }
.cours-zones { display:grid; gap:10px; }
.cours-zone { display:grid; grid-template-columns:78px minmax(0,1fr); gap:10px; align-items:start; }
.cours-zone > span { color:var(--fg-3); font-size:11px; font-weight:600; padding-top:8px; }
.cours-tuiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:8px; }
.cours-tuile { display:grid; gap:2px; min-width:0; padding:8px 10px; text-align:left; font:inherit; color:inherit; cursor:pointer; background:var(--surface); border:1px solid var(--border); border-radius:7px; }
.cours-tuile:hover { border-color:var(--accent); }
.cours-tuile[aria-pressed="true"] { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); background:var(--accent-soft); }
.cours-tuile .l { font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cours-tuile .r { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; font-variant-numeric:tabular-nums; min-height:20px; }
.cours-tuile small { color:var(--fg-3); font-size:11.5px; }
.cours-mini { width:64px; height:20px; flex:none; }
.cours-onglets { display:flex; flex-wrap:wrap; gap:2px; border-bottom:1px solid var(--border); }
.cours-onglets button { border:0; border-bottom:2px solid transparent; margin-bottom:-1px; background:none; padding:8px 12px; font:500 13px var(--font-ui); color:var(--fg-2); cursor:pointer; }
.cours-onglets button[aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
.cours-panneau { display:grid; gap:12px; min-width:0; padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:9px; }
.cours-synthese { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px; }
.cours-synthese .g,.cours-synthese .d { display:grid; gap:9px; align-content:start; min-width:0; }
.cours-synthese h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.cours-sur { color:var(--fg-3); font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.cours-grand { font-size:34px; letter-spacing:-.04em; line-height:1; font-variant-numeric:tabular-nums; }
.cours-niveau { color:var(--fg-2); font-variant-numeric:tabular-nums; }
.cours-courbe { width:100%; height:96px; display:block; }
.cours-legende { color:var(--fg-3); font-size:11.5px; }
.cours-largeur { display:grid; gap:5px; font-size:12px; color:var(--fg-2); }
.cours-largeur div { display:flex; flex-wrap:wrap; gap:3px; }
.cours-largeur i { width:9px; height:9px; border-radius:50%; }
.cours-largeur i.u { background:var(--cours-pos); }
.cours-largeur i.d { box-shadow:inset 0 0 0 1.5px var(--cours-neg); }
.cours-pastille { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:600; background:var(--warning-soft); color:var(--warning); }
.cours-tete { display:flex; justify-content:space-between; gap:8px; color:var(--fg-3); font-size:11px; font-weight:600; }
.cours-ligne { display:grid; grid-template-columns:minmax(92px,1.05fr) minmax(0,2fr) 66px; gap:10px; align-items:center; font-size:13px; font-variant-numeric:tabular-nums; }
.cours-ligne .n { overflow-wrap:anywhere; line-height:1.25; min-width:0; }
.cours-ligne .v { text-align:right; }
.cours-piste { position:relative; height:20px; }
.cours-piste b { position:absolute; top:3px; height:14px; border-radius:2px; }
.cours-piste .zero { position:absolute; left:50%; top:-5px; bottom:-5px; width:1px; background:var(--border-strong); }
.cours-piste .ref { position:absolute; top:-5px; bottom:-5px; width:0; border-left:2px dashed var(--fg-3); }
.cours-sep { height:1px; background:var(--border); margin:2px 0; }
.cours-defile { overflow-x:auto; max-width:100%; }
.cours-composants { width:100%; min-width:720px; border-collapse:collapse; font-size:12.5px; font-variant-numeric:tabular-nums; }
.cours-composants th,.cours-composants td { padding:7px 10px; white-space:nowrap; text-align:left; border-top:1px solid var(--border); }
.cours-composants thead th { border-top:0; background:var(--surface-2); color:var(--fg-3); font-size:11px; }
.cours-composants th button { all:unset; cursor:pointer; font-weight:600; }
.cours-composants .r { text-align:right; }
.cours-reglages { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:12.5px; color:var(--fg-2); }
.cours-reglages.entre { justify-content:space-between; }
.cours-reglages label { display:inline-flex; gap:6px; align-items:center; }
.cours-reglages select { font:inherit; padding:4px 6px; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface); color:var(--fg); }
.cours-carte { position:relative; width:100%; }
.cours-secteur { position:absolute; display:flex; justify-content:space-between; align-items:center; gap:6px; padding:0 3px; overflow:hidden; white-space:nowrap; font-size:11.5px; font-weight:600; color:var(--fg-2); }
.cours-secteur span:first-child { overflow:hidden; text-overflow:ellipsis; }
.cours-case { position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; padding:1px; text-align:center; line-height:1.2; cursor:pointer; border:1px solid var(--surface); font-family:var(--font-ui); font-variant-numeric:tabular-nums; }
.cours-case b { font-weight:600; }
.cours-gamme { display:flex; align-items:center; gap:2px; font-size:11px; color:var(--fg-3); }
.cours-gamme i { display:block; width:26px; height:12px; }
.cours-gamme span { padding:0 5px; }
.cours-texte { margin:0; }
.cours-saison { min-width:860px; width:100%; border-collapse:separate; border-spacing:1px; font-size:12px; font-variant-numeric:tabular-nums; }
.cours-saison th,.cours-saison td { padding:6px 5px; text-align:center; white-space:nowrap; }
.cours-saison thead th { color:var(--fg-3); font-size:11px; font-weight:600; }
.cours-saison tbody th { text-align:left; font-weight:500; padding-right:10px; }
.cours-saison .cours-stat th,.cours-saison .cours-stat td { background:var(--surface-2); }
.cours-saison .now { box-shadow:inset 0 2px 0 var(--accent); }
.cours-saison .an { font-weight:600; }
.cours-note { margin:0; color:var(--fg-3); font-size:12px; }
@media (max-width:820px) {
  .cours-page { padding:0 16px 56px; }
  .cours-synthese { grid-template-columns:minmax(0,1fr); }
  .cours-zone { grid-template-columns:minmax(0,1fr); gap:4px; }
  .cours-zone > span { padding-top:0; }
}

.cours-ecarts { display:grid; gap:8px; }
.cours-ecart { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 16px; padding:10px 14px; border-radius:8px; background:var(--warning-soft); border:1px solid var(--warning); font-size:13.5px; }
.cours-ecart > div:first-child { min-width:0; flex:1 1 420px; }
.cours-ecart-actions { display:flex; gap:6px; }
.cours-ecart-actions button { font:500 12.5px var(--font-ui); padding:6px 12px; border-radius:6px; border:1px solid var(--border-strong); background:var(--surface); color:var(--fg); cursor:pointer; }
.cours-ecart-actions button.ok { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }

/* Carrousel réseaux (tops et flops de la semaine) */
.car { display:grid; gap:12px; }
.car-barre { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.car-barre label { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--fg-2); }
.car-barre select { font:inherit; padding:5px 8px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--fg-1); }
.car-espace { flex:1; }
.car-btn { border:1px solid var(--border-strong); background:var(--surface); color:var(--fg-1); border-radius:6px; padding:7px 12px; font:500 12.5px var(--font-ui); cursor:pointer; }
.car-btn:disabled { opacity:.5; cursor:default; }
.car-principal { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.car-aide,.car-etat { margin:0; font-size:12px; color:var(--fg-3); }
.car-etat { color:var(--fg-2); }
.car-pile { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.car-item { display:grid; grid-template-columns:minmax(180px,300px) minmax(0,1fr); gap:16px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.car-item.masquee .car-apercu { opacity:.35; }
.car-apercu { width:100%; border-radius:6px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.15); cursor:pointer; }
.car-svg, .car-svg svg { width:100%; height:100%; display:block; }
.car-edition { display:grid; gap:8px; align-content:start; min-width:0; }
.car-tete { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.car-case { font-size:12.5px; color:var(--fg-2); display:inline-flex; gap:5px; align-items:center; }
.car-champ { display:grid; gap:3px; font-size:11.5px; color:var(--fg-3); }
.car-champ textarea { font:13.5px var(--font-ui); padding:7px 9px; border:1px solid var(--border-strong); border-radius:6px; background:var(--bg, var(--surface)); color:var(--fg-1); resize:vertical; }
.car-entreprises { font-size:12.5px; }
.car-entreprises summary { cursor:pointer; color:var(--fg-2); }
.car-entreprises > div { margin-top:6px; }
.car-entreprises ul { list-style:none; margin:4px 0 0; padding:0; display:grid; gap:3px; }
.car-entreprises small { color:var(--fg-3); }
.car-verif { color:var(--critical); font-style:normal; font-weight:600; }
.car-lien { justify-self:start; border:0; background:none; padding:0; color:var(--accent); font-size:12px; cursor:pointer; text-decoration:underline; }
@media (max-width:720px) { .car-item { grid-template-columns:minmax(0,1fr); } .car-apercu { max-width:320px; } }
.cours-export { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; margin-left:auto; }
.cours-export span { font-size:11.5px; color:var(--fg-3); font-weight:600; }
.cours-export button { border:1px solid var(--accent); background:var(--surface); color:var(--accent); border-radius:6px; padding:6px 10px; font:600 12px var(--font-ui); cursor:pointer; }
.cours-export button:hover:not(:disabled) { background:var(--accent); color:var(--accent-fg); }
.cours-export button:disabled { opacity:.5; cursor:default; }
.car-ent { display:grid; gap:2px; }
.car-source { color:var(--fg-3); font-size:11.5px; }
.car-source a { color:var(--accent); }

/* Communication > À poster (24/11/2026) : kits prêts à publier. Écran sobre, mêmes jetons que Cours. */
.fmt { display:grid; gap:18px; min-width:0; }
.fmt-barre { display:grid; gap:8px; }
.fmt-barre label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13px; color:var(--fg-2); }
.fmt-barre select, .fmt-choix select, .fmt-champ select, .fmt-champ input { font:inherit; font-size:13px; padding:6px 8px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--fg-1); max-width:100%; }
.fmt-aide { margin:0; color:var(--fg-3); font-size:12.5px; max-width:90ch; }
.fmt-semaine { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); border:1px solid var(--border); border-radius:8px; background:var(--surface); overflow:hidden; }
.fmt-semaine li { display:grid; gap:4px; padding:10px 12px; border-right:1px solid var(--border); font-size:13px; align-content:start; }
.fmt-semaine li:last-child { border-right:0; }
.fmt-semaine b { font-size:11.5px; color:var(--fg-3); font-weight:600; }
.fmt-pastille { justify-self:start; font-size:11.5px; font-weight:600; padding:2px 8px; border-radius:4px; background:var(--surface-2, var(--accent-soft)); color:var(--fg-2); }
.fmt-pastille.s-valide { background:var(--accent-soft); color:var(--accent); }
.fmt-pastille.s-publie { background:var(--accent); color:var(--accent-fg); }
.fmt-kit { display:grid; gap:12px; min-width:0; padding:18px; background:var(--surface); border:1px solid var(--border); border-radius:9px; }
.fmt-tete { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:flex-start; }
.fmt-tete h2 { margin:0; font-size:20px; letter-spacing:-.02em; }
.fmt-quand { margin:2px 0 0; color:var(--fg-3); font-size:12.5px; }
.fmt-statut { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.fmt-manque { margin:0; padding:10px 12px; border-radius:6px; background:var(--warning-soft, var(--accent-soft)); color:var(--fg-2); font-size:13px; }
.fmt-choix { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13px; color:var(--fg-2); border:0; padding:0; margin:0; }
.fmt-choix legend { padding:0; margin-bottom:4px; }
fieldset.fmt-choix { display:grid; gap:4px; }
.fmt-pile { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(170px,210px); gap:12px; overflow-x:auto; padding-bottom:6px; }
.fmt-diapo { margin:0; display:grid; gap:4px; align-content:start; }
.fmt-diapo.fmt-mini { grid-column:span 2; }
.fmt-svg { border:1px solid var(--border); background:#fff; line-height:0; }
.fmt-svg svg { width:100%; height:auto; display:block; }
.fmt-diapo figcaption { font-size:11.5px; color:var(--fg-3); }
.fmt-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.fmt-details summary { cursor:pointer; font-size:13px; color:var(--fg-2); }
.fmt-champs { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin-top:10px; }
.fmt-champ { display:grid; gap:4px; font-size:12px; color:var(--fg-3); }
.fmt-champ textarea { font:inherit; font-size:13px; padding:6px 8px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--fg-1); resize:vertical; }
.fmt-legendes { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:10px; margin-top:10px; }
.fmt-legende { display:grid; gap:6px; min-width:0; }
.fmt-legende > div { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; }
.fmt-legende pre { margin:0; white-space:pre-wrap; font:12.5px/1.45 var(--font-ui); padding:10px; border:1px solid var(--border); border-radius:6px; background:var(--bg, transparent); max-height:240px; overflow:auto; }
.fmt-qui { margin:0; color:var(--fg-3); font-size:11.5px; }

/* YouTube en 4 niveaux (24/11/2026) : même charte que « À poster ». */
.yt-echelle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid #D5E3E1; margin: 0 0 20px; }
.yt-echelle button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; background: #fff; border: 0; border-left: 1px solid #D5E3E1; text-align: left; cursor: pointer; font: inherit; color: #1B2A29; }
.yt-echelle button:first-child { border-left: 0; }
.yt-echelle button[aria-selected="true"] { background: #E6F1F0; box-shadow: inset 0 3px 0 #1D6B66; }
.yt-echelle button:focus-visible { outline: 2px solid #1D6B66; outline-offset: -2px; }
.yt-niv { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1D6B66; margin: 0; }
.yt-ech-titre { font-size: 13px; color: #5F6B6A; line-height: 1.35; }
.yt-cadre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 16px; }
.yt-cadre dt, .yt-mots dt { font-size: 12px; font-weight: 600; color: #1D6B66; text-transform: uppercase; letter-spacing: .05em; }
.yt-cadre dd, .yt-mots dd { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.yt-titres { margin-bottom: 16px; }
.yt-pile .fmt-diapo { flex: 0 0 360px; }
.yt-plan { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 14px; }
.yt-plan-tete { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-weight: 600; margin-bottom: 6px; }
.yt-plan-tete b { color: #1D6B66; font-variant-numeric: tabular-nums; }
.yt-visuel { font-weight: 400; font-size: 13px; color: #5F6B6A; border-left: 1px solid #D5E3E1; padding-left: 8px; }
.yt-plan textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.5; padding: 10px 12px; border: 1px solid #D5E3E1; resize: vertical; }
.yt-mots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 12px 0; }
.yt-regles ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
@media (max-width: 760px) {
  .yt-echelle { grid-template-columns: 1fr 1fr; }
  .yt-echelle button:nth-child(3) { border-left: 0; }
  .yt-echelle button:nth-child(n+3) { border-top: 1px solid #D5E3E1; }
  .yt-cadre, .yt-mots { grid-template-columns: 1fr; }
  .yt-pile .fmt-diapo { flex-basis: 280px; }
}
.fmt-tirage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.fmt-tirage .fmt-aide { margin: 0; }
/* Sujets de la semaine (Gemini + vérification Zeia) */
.fmt-sujets { display:grid; gap:14px; min-width:0; padding:18px; background:var(--surface); border:1px solid var(--border); border-radius:9px; }
.fmt-sujets-tete { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:10px 18px; }
.fmt-sujets-tete h2 { margin:0 0 4px; font-size:18px; }
.fmt-sujets-tete .fmt-aide { margin:0; max-width:70ch; }
.fmt-angle { display:grid; gap:4px; font-size:13.5px; }
.fmt-angle p { margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fmt-angle p b { font-weight:600; }
.fmt-verif { overflow-x:auto; }
.fmt-verif table { border-collapse:collapse; width:100%; min-width:560px; font-size:13px; }
.fmt-verif th, .fmt-verif td { text-align:left; vertical-align:top; padding:6px 10px 6px 0; border-bottom:1px solid var(--border); }
.fmt-verif th { font-weight:600; color:var(--muted, #5F6B6A); font-size:12px; }
.fmt-num { white-space:nowrap; font-variant-numeric:tabular-nums; }
.fmt-v { font-size:12px; padding:1px 8px; border-radius:99px; white-space:nowrap; }
.fmt-v.v-verifie { background:color-mix(in srgb, #2F6F50 16%, transparent); color:#2F6F50; }
.fmt-v.v-partiel { background:color-mix(in srgb, #C08A2E 20%, transparent); color:#8A5E12; }
.fmt-v.v-a_revoir { background:color-mix(in srgb, #8B3932 16%, transparent); color:#8B3932; }

/* PT-01 (13/11/2026), PT-02 (16/11 : sans tldraw, sur React Flow) : présentations sur toile. Charte 5161 : sarcelle #1D6B66, texte #17262A, IBM Plex Sans. */
.pt-liste { margin: 0 0 28px; padding: 18px 20px; border: 1px solid #E2E5E6; border-radius: 14px; background: #fff; }
.pt-liste > header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pt-liste h3 { margin: 0 0 4px; }
.pt-nouveau { font-size: 12px; font-weight: 600; color: #1D6B66; background: #E6F1F0; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.pt-editeur { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #F6F7F7; color: #17262A; font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.pt-editeur.pt-charge { align-items: center; justify-content: center; font-size: 18px; }
.pt-barre { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #E2E5E6; flex-wrap: wrap; }
.pt-titre { flex: 1 1 240px; min-width: 0; font-size: 17px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: #17262A; background: transparent; }
.pt-titre:hover, .pt-titre:focus { border-color: #E2E5E6; background: #fff; }
.pt-fige { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5E6B6A; }
.pt-fige input { font: inherit; border: 1px solid #E2E5E6; border-radius: 6px; padding: 3px 6px; }
.pt-etat { font-size: 13px; color: #5E6B6A; min-width: 110px; }
.pt-etat.erreur { color: #8B3932; }
.pt-erreur { margin: 0; padding: 8px 12px; background: #F6E7E4; color: #8B3932; display: flex; gap: 12px; align-items: center; }
.pt-corps { flex: 1; display: flex; min-height: 0; }
.pt-panneau { width: 290px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #E2E5E6; min-height: 0; }
.pt-onglets { display: flex; border-bottom: 1px solid #E2E5E6; }
.pt-onglets button { flex: 1; padding: 10px 6px; border: 0; background: none; font: inherit; font-size: 14px; color: #5E6B6A; cursor: pointer; border-bottom: 2px solid transparent; }
.pt-onglets button.actif { color: #1D6B66; border-bottom-color: #1D6B66; font-weight: 600; }
.pt-pan { padding: 12px; overflow: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pt-pan input[type=search], .pt-pan select { width: 100%; box-sizing: border-box; font: inherit; padding: 7px 9px; border: 1px solid #E2E5E6; border-radius: 8px; }
.pt-aide { margin: 0; font-size: 13px; color: #5E6B6A; }
.pt-info { margin: 0; font-size: 13px; background: #E6F1F0; color: #134A46; padding: 6px 8px; border-radius: 8px; }
.pt-periode { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5E6B6A; }
.pt-resultats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-resultats li { border: 1px solid #E2E5E6; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pt-resultats li b { display: block; font-size: 14px; }
.pt-resultats li small { display: block; font-size: 12px; color: #5E6B6A; }
.pt-resultats li span { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-resultats li span .btn { padding: 4px 10px; font-size: 13px; }
.pt-resultats li.pt-vide { border: 0; color: #5E6B6A; font-size: 13px; }
.pt-fige-bloc { margin-top: auto; border-top: 1px solid #E2E5E6; padding-top: 10px; font-size: 13px; }
.pt-fige-bloc p { margin: 0 0 6px; }
.pt-parcours { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pt-parcours li { display: flex; gap: 4px; align-items: center; }
.pt-parcours li button { border: 1px solid #E2E5E6; background: #fff; border-radius: 8px; padding: 5px 8px; cursor: pointer; font: inherit; }
.pt-parcours .pt-p-nom { flex: 1; text-align: left; display: flex; gap: 8px; align-items: center; }
.pt-parcours .pt-p-nom span.pt-p-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1D6B66; color: #fff; font-size: 12px; }
.pt-toile { flex: 1; position: relative; min-width: 0; }
.pt-toile .react-flow { background: #F6F7F7; }
.pt-presente .pt-toile .react-flow { background: #fff; }
.pt-toile .react-flow__node { border: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #17262A; cursor: grab; text-align: left; }
.pt-presente .pt-toile .react-flow__node { cursor: default; }
.pt-toile .react-flow__node.selected { outline: 2px solid #1D6B66; outline-offset: 2px; }
.pt-rz-l { border-color: #1D6B66 !important; }
.pt-rz-p { width: 10px !important; height: 10px !important; background: #fff !important; border: 2px solid #1D6B66 !important; border-radius: 2px !important; }
.pt-outils, .pt-style { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 24px); background: #fff; border: 1px solid #E2E5E6; border-radius: 12px; padding: 5px 6px; box-shadow: 0 2px 10px rgba(23, 38, 42, .08); }
.pt-outils { top: 10px; }
.pt-style { top: 60px; }
.pt-outils button, .pt-style button { border: 0; background: none; font: inherit; font-size: 14px; color: #17262A; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pt-outils button:hover, .pt-style button:hover { background: #EEF1F1; }
.pt-outils button:disabled, .pt-style button:disabled { opacity: .35; cursor: default; background: none; }
.pt-style button[aria-pressed="true"] { background: #E3F0EE; color: #1D6B66; font-weight: 600; }
.pt-sep { width: 1px; align-self: stretch; background: #E2E5E6; margin: 2px 4px; }
.pt-lab { font-size: 12px; color: #5E6B6A; padding: 0 4px; }
.pt-couleurs { display: inline-flex; gap: 4px; padding: 0 4px; }
.pt-style .pt-pastille { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid #C9D0D2; }
.pt-style .pt-pastille[aria-pressed="true"] { outline: 2px solid #1D6B66; outline-offset: 2px; }
.pt-accueil { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); margin: 0; max-width: 420px; text-align: center; color: #5E6B6A; font-size: 15px; pointer-events: none; }
/* Éléments libres */
.pt-cadre { width: 100%; height: 100%; box-sizing: border-box; border: 2px solid #1D6B66; border-radius: 6px; background: rgba(29, 107, 102, .035); position: relative; }
.pt-cadre-nom { position: absolute; left: 0; bottom: 100%; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: #1D6B66; white-space: nowrap; min-width: 60px; }
.pt-cadre-nom .pt-texte, .pt-cadre-nom .pt-saisie { height: auto; width: auto; min-width: 80px; }
.pt-presente .pt-cadre { border-color: transparent; background: none; }
.pt-presente .pt-cadre-nom { display: none; }
.pt-texte { width: 100%; height: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.3; overflow: hidden; }
.pt-texte-vide { color: #9AA5A6 !important; }
.pt-saisie { width: 100%; height: 100%; box-sizing: border-box; display: block; border: 0; outline: 2px solid #1D6B66; border-radius: 4px; background: #fff; font: inherit; line-height: 1.3; padding: 0; margin: 0; resize: none; color: inherit; cursor: text; }
.pt-geo { width: 100%; height: 100%; box-sizing: border-box; border: 3px solid; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.pt-geo .pt-texte { height: auto; max-height: 100%; }
.pt-geo .pt-saisie { height: 100%; text-align: center; }
.pt-fleche { display: block; overflow: visible; }
.pt-image { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 6px; user-select: none; }
.pt-commandes { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 400; display: flex; gap: 10px; align-items: center;
  background: rgba(23, 38, 42, .82); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 14px; opacity: .25; transition: opacity .2s; }
.pt-commandes:hover, .pt-commandes:focus-within { opacity: 1; }
.pt-commandes button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 4px 8px; }
.pt-commandes button:disabled { opacity: .4; cursor: default; }
/* Formes macro */
.pt-forme { width: 100%; height: 100%; box-sizing: border-box; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #17262A; }
.pt-vide { display: grid; place-items: center; color: #5E6B6A; background: #fff; border: 1px dashed #E2E5E6; border-radius: 10px; }
.pt-courbe .pt-c-titre { font-size: 16px; font-weight: 600; fill: #17262A; }
.pt-courbe .pt-c-unite, .pt-courbe .pt-c-axe, .pt-courbe .pt-c-leg { font-size: 11px; fill: #5E6B6A; }
.pt-courbe .pt-c-val { font-size: 12px; font-weight: 600; }
.pt-courbe .pt-c-src { font-size: 10px; fill: #6B7C8E; }
.pt-chiffre { display: flex; flex-direction: column; justify-content: center; gap: .3em; padding: 1em 1.1em; background: #fff; border: 1px solid #E2E5E6; border-left: .3em solid #1D6B66; border-radius: 12px; }
.pt-chiffre b { font-size: 2.6em; line-height: 1; color: #1D6B66; font-weight: 700; }
.pt-chiffre b i { font-style: normal; font-size: .38em; font-weight: 600; margin-left: .4em; color: #5E6B6A; }
.pt-chiffre .pt-ch-lib { font-size: 1em; font-weight: 600; }
.pt-chiffre .pt-ch-ecart { font-size: .85em; color: #5E6B6A; }
.pt-chiffre small { font-size: .7em; color: #6B7C8E; }
.pt-schema { background: #fff; border: 1px solid #E2E5E6; border-radius: 12px; padding: 12px; overflow: hidden; }
.pt-schema h4 { margin: 0 0 8px; font-size: 16px; }
@media (max-width: 760px) { .pt-panneau, .pt-droite, .pt-pellicule { display: none; } }
.pt-style > .pt-sep:first-child { display: none; }

/* PT-03 (17/11/2026, CDC v1.0 lot 1) : rail d'onglets, panneau de droite, pellicule, barre contextuelle, rotation, connecteurs. */
.pt-rail { width: 72px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; background: #fff; border-right: 1px solid #E2E5E6; }
.pt-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; border-radius: 10px; padding: 8px 2px; font: inherit; font-size: 11.5px; color: #5E6B6A; cursor: pointer; }
.pt-rail button:hover { background: #EEF1F1; color: #17262A; }
.pt-rail button.actif { background: #E3F0EE; color: #1D6B66; font-weight: 600; }
.pt-rail .am-picto { width: 22px; height: 22px; }
.pt-centre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-centre .pt-toile { flex: 1; min-height: 0; }
.pt-droite { width: 260px; flex: none; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #E2E5E6; min-height: 0; }
.pt-droite.replie { width: 36px; }
.pt-droite.replie .pt-onglets button[role=tab] { display: none; }
.pt-droite .pt-replier { flex: 0 0 32px; font-size: 18px; }
.pt-h { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5E6B6A; font-weight: 600; }
.pt-boutons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pt-boutons .btn { padding: 5px 10px; font-size: 13px; }
.pt-grille-textes { display: flex; flex-direction: column; gap: 6px; }
.pt-grille-textes button, .pt-grille-formes button, .pt-grille-icones button, .pt-grille-images button { border: 1px solid #E2E5E6; background: #fff; border-radius: 10px; cursor: pointer; font: inherit; color: #17262A; }
.pt-grille-textes button { text-align: left; padding: 8px 10px; }
.pt-grille-textes button:hover, .pt-grille-formes button:hover, .pt-grille-icones button:hover, .pt-grille-images button:hover { border-color: #1D6B66; background: #F3F8F7; }
.pt-grille-formes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pt-grille-formes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; }
.pt-grille-formes small { font-size: 11.5px; color: #5E6B6A; }
.pt-ech { display: grid; place-items: center; width: 40px; height: 28px; font-size: 20px; color: #17262A; }
.pt-ech-rect { border: 2.5px solid #1D6B66; border-radius: 5px; }
.pt-ech-rond { width: 30px; border: 2.5px solid #1D6B66; border-radius: 50%; }
.pt-ech-triangle { width: 32px; background: #1D6B66; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pt-ech-losange { width: 30px; background: #1D6B66; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pt-ech-cadre-169, .pt-ech-cadre-43, .pt-ech-cadre-carre, .pt-ech-cadre-rond { border: 2px dashed #1D6B66; }
.pt-ech-cadre-169 { width: 44px; height: 25px; } .pt-ech-cadre-43 { width: 36px; height: 27px; } .pt-ech-cadre-carre { width: 28px; height: 28px; }
.pt-ech-cadre-rond { width: 30px; height: 30px; border-radius: 50%; }
.pt-grille-icones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pt-grille-icones button { aspect-ratio: 1; display: grid; place-items: center; padding: 4px; color: #1D6B66; }
.pt-grille-icones .am-picto { width: 24px; height: 24px; }
.pt-grille-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pt-grille-images button { padding: 4px; aspect-ratio: 4 / 3; }
.pt-grille-images img { width: 100%; height: 100%; object-fit: contain; }
/* Parcours (Diapos) et pellicule */
.pt-parcours li { border-radius: 10px; }
.pt-parcours li.pt-tenu { opacity: .4; }
.pt-parcours li.pt-depot, .pt-pellicule li.pt-depot { box-shadow: 0 -3px 0 #1D6B66; }
.pt-pellicule li.pt-depot { box-shadow: -3px 0 0 #1D6B66; }
.pt-parcours .pt-p-nom { gap: 6px; padding: 4px 6px; min-width: 0; cursor: grab; }
.pt-parcours .pt-p-num { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1D6B66; color: #fff; font-size: 11px; }
.pt-parcours .pt-p-lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pt-parcours .pt-mini { width: 64px; height: 36px; flex: none; }
.pt-p-fin { font-size: 12px; color: #9AA5A6; padding: 6px; text-align: center; border: 1px dashed #E2E5E6; }
.pt-mini { display: block; background: #F6F7F7; border: 1px solid #E2E5E6; border-radius: 4px; }
.pt-pellicule { flex: none; height: 104px; background: #fff; border-top: 1px solid #E2E5E6; overflow-x: auto; overflow-y: hidden; }
.pt-pellicule ol { list-style: none; margin: 0; padding: 8px 10px; display: flex; gap: 8px; height: 100%; box-sizing: border-box; }
.pt-pellicule li { flex: none; border-radius: 8px; }
.pt-pellicule li.pt-tenu { opacity: .4; }
.pt-pellicule li > button { display: flex; flex-direction: column; gap: 4px; width: 128px; height: 100%; padding: 4px; border: 1px solid #E2E5E6; border-radius: 8px; background: #fff; cursor: grab; font: inherit; }
.pt-pellicule li > button:hover { border-color: #1D6B66; }
.pt-pellicule .pt-mini { width: 100%; height: 56px; }
.pt-pellicule li > button span { font-size: 11.5px; color: #17262A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pt-pellicule .pt-pel-plus button { width: 56px; height: 100%; border: 1px dashed #9AA5A6; border-radius: 8px; background: none; font-size: 22px; color: #5E6B6A; cursor: pointer; }
/* Réglages et calques */
.pt-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-champ { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #5E6B6A; }
.pt-champ input, .pt-champ-ligne select { font: inherit; font-size: 13px; color: #17262A; border: 1px solid #E2E5E6; border-radius: 6px; padding: 5px 6px; min-width: 0; }
.pt-champ-ligne { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #5E6B6A; }
.pt-memo { margin: 0; padding-left: 16px; font-size: 12.5px; color: #5E6B6A; display: flex; flex-direction: column; gap: 4px; }
.pt-calques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-calques li { display: flex; gap: 2px; align-items: center; border-radius: 8px; }
.pt-calques li.choisi { background: #E3F0EE; }
.pt-calques button { border: 0; background: none; font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: #17262A; }
.pt-calques button:disabled { opacity: .3; cursor: default; }
.pt-calques .pt-c-nom { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-c-type { display: inline-block; min-width: 50px; font-size: 10.5px; color: #6B7C8E; text-transform: uppercase; letter-spacing: .03em; }
/* Barre contextuelle au-dessus de l'objet */
.pt-contexte { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; max-width: 640px; background: #fff; border: 1px solid #E2E5E6; border-radius: 12px; padding: 4px 5px; box-shadow: 0 4px 14px rgba(23, 38, 42, .12); font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.pt-contexte button { border: 0; background: none; font: inherit; font-size: 13.5px; color: #17262A; padding: 5px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pt-contexte button:hover { background: #EEF1F1; }
.pt-contexte button[aria-pressed="true"] { background: #E3F0EE; color: #1D6B66; font-weight: 600; }
.pt-contexte .pt-pastille { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid #C9D0D2; }
.pt-contexte .pt-pastille[aria-pressed="true"] { outline: 2px solid #1D6B66; outline-offset: 2px; }
.pt-contexte > .pt-sep:last-of-type:first-child { display: none; }
.pt-outils button[aria-pressed="true"] { background: #E3F0EE; color: #1D6B66; font-weight: 600; }
/* Rotation, apparitions, ancres, repères */
.pt-rot { width: 100%; height: 100%; transform-origin: 50% 50%; transition: opacity .35s ease; }
.pt-cache { opacity: 0; pointer-events: none; }
g.pt-cache { transition: opacity .35s ease; }
.pt-rotation { position: absolute; left: 50%; top: -30px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid #1D6B66; cursor: grab; z-index: 5; }
.pt-rotation::after { content: ''; position: absolute; left: 5px; top: 14px; width: 2px; height: 14px; background: #1D6B66; }
.pt-ancre { opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; border: 0 !important; }
.pt-badge-app { position: absolute; right: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #CCB17D; color: #17262A; font-size: 11px; font-weight: 700; display: grid; place-items: center; pointer-events: none; }
.pt-repere { position: absolute; outline: 1px solid #D9480F; pointer-events: none; }
.pt-icone { width: 100%; height: 100%; display: grid; place-items: center; }
.pt-icone .am-picto { width: 100%; height: 100%; }
.pt-geo-svg { position: relative; border: 0; padding: 0; background: none; }
.pt-geo-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pt-geo-svg .pt-geo-texte { position: relative; width: 70%; max-height: 60%; margin-top: 18%; display: flex; align-items: center; justify-content: center; }
.pt-cadre-rond { border-radius: 50%; }
.pt-toile .react-flow__edge { cursor: pointer; }
/* Barres centrées par left: 50% : sans largeur propre, elles n'ont que la moitié de la place et passent sur deux lignes. */
.pt-outils, .pt-style { width: max-content; }
.pt-contexte { width: max-content; }
.pt-outils button[aria-label="Annuler"], .pt-outils button[aria-label="Rétablir"] { font-size: 19px; line-height: 1; padding: 4px 8px; }
.pt-champs > * { min-width: 0; }
.pt-champ input { width: 100%; box-sizing: border-box; }
/* PT-04 (17/11/2026, CDC v1.0 lot 2) : données sur la toile (macro, clients, produits, blocs maison), vivantes ou figées. */
.pt-fige .btn { padding: 3px 9px; font-size: 12.5px; margin-left: 6px; }
.pt-onglets-serres button { font-size: 12.5px; padding: 9px 2px; }
.pt-res-btn { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: #17262A; cursor: pointer; padding: 0; }
.pt-res-btn b { font-size: 14px; }
.pt-res-btn small { font-size: 12px; color: #5E6B6A; }
.pt-dossier { display: flex; flex-direction: column; gap: 6px; }
.pt-dossier > small { color: #5E6B6A; font-size: 12.5px; }
.pt-dossier .pt-res-btn { border: 1px solid #E2E5E6; border-radius: 10px; padding: 8px 10px; cursor: grab; }
.pt-dossier .pt-res-btn:hover, .pt-resultats .btn[draggable="true"]:hover { border-color: #1D6B66; }
.pt-resultats .btn[draggable="true"] { cursor: grab; }
.pt-case { display: flex; gap: 6px; align-items: center; font-size: 13px; color: #5E6B6A; }
.pt-info-erreur { background: #F6E7E4; color: #8B3932; }
.pt-reg-donnee, .pt-bloc-form { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #E2E5E6; padding-top: 8px; }
.pt-bloc-form input, .pt-evt-form input { font: inherit; font-size: 13px; border: 1px solid #E2E5E6; border-radius: 6px; padding: 5px 6px; min-width: 0; }
.pt-etat-donnee { margin: 0; font-size: 13px; color: #6B7C8E; }
.pt-etat-donnee.vivant { color: #1D6B66; }
.pt-evts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.pt-evts li { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.pt-evts button { border: 0; background: none; cursor: pointer; color: #5E6B6A; }
.pt-evt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pt-evt-form .btn { grid-column: 1 / -1; padding: 4px 8px; font-size: 13px; }
/* Visuels des données */
.pt-courbe .pt-c-evt-t { font-size: 10.5px; fill: #8C6D33; font-weight: 600; }
.pt-donnee .pt-c-leg2 { font-size: 12.5px; fill: #17262A; }
.pt-donnee .pt-c-gras { font-weight: 600; }
.pt-donnee .pt-c-titre { font-size: 16px; font-weight: 600; fill: #17262A; }
.pt-donnee .pt-c-axe { font-size: 11px; fill: #5E6B6A; }
.pt-donnee .pt-c-val { font-size: 15px; font-weight: 700; fill: #17262A; }
.pt-donnee .pt-c-src { font-size: 10px; fill: #6B7C8E; }
.pt-carte-donnee { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid #E2E5E6; border-radius: 12px; overflow: hidden; }
/* 24/11/2026 : tableau « Produits structurés » du client (charte du CRM : en-tête #1D6B66, bande #134A46, versés sable) */
.pt-ps { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid #E2E5E6; border-radius: 12px; overflow: hidden; font-size: 13px; color: #17262A; }
.pt-ps table { width: 100%; table-layout: auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt-ps th { background: #1D6B66; color: #fff; font-weight: 600; text-align: left; padding: 6px 6px; font-size: 12px; line-height: 1.25; vertical-align: bottom; }
.pt-ps td { padding: 6px 6px; border-bottom: 1px solid #ECEFEF; white-space: nowrap; }
.pt-ps .n { text-align: right; }
.pt-ps-sec td { background: #134A46; color: #fff; font-weight: 600; border-bottom: 0; }
.pt-ps-nom { font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.pt-ps-isin { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: #5E6B6A; }
.pt-ps td.pt-ps-verse, .pt-ps-pastille { background: #F7EED9; }
.pt-ps-pastille { display: inline-block; width: 18px; height: 10px; border-radius: 2px; vertical-align: middle; }
.pt-ps-classe { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #E6F1F0; color: #134A46; font-size: 12px; font-weight: 600; }
.pt-ps tfoot td { background: #E6F1F0; font-weight: 700; border-bottom: 0; border-top: 2px solid #1D6B66; }
.pt-ps-vide { color: #5E6B6A; font-style: italic; }
.pt-ps small { color: #5E6B6A; font-size: 11px; }
.pt-carte-donnee h4 { margin: 0; font-size: 17px; }
.pt-carte-donnee dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.pt-carte-donnee dt { font-size: 11.5px; color: #5E6B6A; text-transform: uppercase; letter-spacing: .03em; }
.pt-carte-donnee dd { margin: 0; font-size: 16px; font-weight: 600; color: #1D6B66; }
.pt-carte-donnee ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.pt-carte-donnee small { margin-top: auto; font-size: 10.5px; color: #6B7C8E; }
.pt-risque b { font-size: 34px; color: #1D6B66; line-height: 1; }
.pt-risque b i { font-style: normal; font-size: 15px; color: #5E6B6A; }
.pt-risque b.pt-alerte { color: #8B3932; }
.pt-risque > span { font-size: 12.5px; color: #5E6B6A; }
.pt-produit .pt-pr-sous { margin: 0; font-size: 12.5px; color: #5E6B6A; }
.pt-pr-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-pr-chiffres div { background: #F3F8F7; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.pt-pr-chiffres span { font-size: 11px; color: #5E6B6A; }
.pt-pr-chiffres b { font-size: 14px; color: #1D6B66; }
.pt-pr-macro { border-left: 3px solid #CCB17D; padding-left: 10px; font-size: 13px; }
.pt-pr-macro p { margin: 0 0 4px; }
.pt-pr-dic { margin: 0; font-size: 12px; color: #8C6D33; }
/* PT-05 (17/11/2026, CDC v1.0 lot 3) : vue présentateur, PDF, lien client. */
.pt-alerte-pres { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 410; margin: 0; background: #17262A; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pt-alerte-pres button { background: none; border: 0; color: #CCB17D; font: inherit; cursor: pointer; }
.pt-notes { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #E2E5E6; padding-top: 8px; }
.pt-notes textarea { font: inherit; font-size: 13.5px; border: 1px solid #E2E5E6; border-radius: 8px; padding: 6px 8px; resize: vertical; min-height: 70px; }
/* Vue présentateur (seconde fenêtre) */
body.pt-vp-corps { margin: 0; background: #17262A; color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.pt-vp { display: flex; flex-direction: column; height: 100vh; box-sizing: border-box; padding: 14px 18px; gap: 12px; }
.pt-vp header { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.pt-vp header b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-vp-temps { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: #CCB17D; }
.pt-vp-heure { font-variant-numeric: tabular-nums; color: #B9C4C6; }
.pt-vp button { font: inherit; border: 1px solid #3B4F55; background: #22363B; color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.pt-vp button.primaire { background: #1D6B66; border-color: #1D6B66; }
.pt-vp button:disabled { opacity: .45; cursor: default; }
.pt-vp main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.pt-vp section { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-vp h2 { margin: 0; font-size: 20px; }
.pt-vp h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #B9C4C6; }
.pt-vp .pt-mini { width: 100%; max-height: 36vh; background: #fff; border-radius: 6px; }
.pt-vp-ensuite .pt-mini { max-height: 24vh; opacity: .9; }
.pt-vp-notes { flex: 1; overflow: auto; font-size: 22px; line-height: 1.45; background: #22363B; border-radius: 10px; padding: 12px 16px; }
.pt-vp-notes p { margin: 0 0 8px; }
.pt-vp-vide { color: #8FA0A3; font-style: italic; font-size: 16px; }
.pt-vp footer { display: flex; justify-content: center; gap: 12px; }
/* PDF : pages 16:9 imprimées, invisibles à l'écran */
.pt-impression { position: fixed; left: -200000px; top: 0; }
.pt-page { position: relative; width: 1280px; height: 720px; overflow: hidden; background: #fff; page: toile; break-after: page; }
.pt-page .react-flow { background: #fff; }
.pt-page .react-flow__node { cursor: default; }
.pt-page-pied { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: #6B7C8E; }
@page toile { size: 338.67mm 190.5mm; margin: 0; }
@media print {
  body > *:not(.pt-impression) { display: none !important; }
  .pt-impression { position: static; }
  .pt-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Fenêtre « Lien client » */
.pt-voile { position: fixed; inset: 0; z-index: 900; background: rgba(23, 38, 42, .35); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.pt-dialogue { background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, .18); width: min(680px, 100%); max-height: 80vh; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pt-dialogue header { display: flex; justify-content: space-between; align-items: center; }
.pt-dialogue h3 { margin: 0; font-size: 18px; }
.pt-dialogue header button { border: 0; background: none; font-size: 16px; cursor: pointer; color: #5E6B6A; }
.pt-lien-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.pt-lien-form input, .pt-lien-form select { font: inherit; font-size: 14px; border: 1px solid #E2E5E6; border-radius: 8px; padding: 7px 9px; min-width: 0; }
.pt-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-liens li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #E2E5E6; border-radius: 10px; padding: 8px 10px; }
.pt-liens li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-liens li small { color: #5E6B6A; font-size: 12.5px; }
.pt-liens li > span { display: flex; gap: 6px; flex-shrink: 0; }
.pt-liens li.expire, .pt-liens li.revoque { opacity: .6; }
.pt-liens a.btn { text-decoration: none; }
@media (max-width: 560px) { .pt-lien-form { grid-template-columns: 1fr; } .pt-liens li { flex-direction: column; align-items: stretch; } }
/* Page du lien client */
.pt-public { position: fixed; inset: 0; }
.pt-public .pt-corps, .pt-public .pt-centre, .pt-public .pt-toile { height: 100%; }
.pt-lien-page { max-width: 560px; margin: 18vh auto 0; padding: 0 16px; text-align: center; color: #17262A; font-family: system-ui, sans-serif; }
.pt-lien-mention { position: fixed; left: 12px; bottom: 6px; margin: 0; z-index: 401; font-size: 11px; color: #6B7C8E; }

/* ───── PT-06 (lot 4) : thème, logo, commencer, reprise ───── */
.pt-toile .react-flow__node, .pt-page .react-flow__node { font-family: var(--pt-police, 'IBM Plex Sans', system-ui, sans-serif); color: var(--pt-encre, #17262A); }
.pt-toile .pt-forme, .pt-page .pt-forme { font-family: var(--pt-police, 'IBM Plex Sans', system-ui, sans-serif); }
.pt-cadre { border-color: var(--pt-principale, #1D6B66); }
.pt-cadre-nom { color: var(--pt-principale, #1D6B66); }
.pt-presente .pt-cadre { border-color: transparent; }
.pt-cadre-logo { position: absolute; right: 2.5%; bottom: 3%; max-width: 12%; max-height: 9%; object-fit: contain; pointer-events: none; }
.pt-cadre-rond .pt-cadre-logo { display: none; }
.pt-theme h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4A5A5E; }
.pt-chartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-chartes button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; border: 1px solid #E2E5E6; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-size: 14px; color: #17262A; }
.pt-chartes button[aria-pressed="true"] { border-color: #1D6B66; box-shadow: 0 0 0 2px rgba(29, 107, 102, .25); }
.pt-nuancier { display: flex; gap: 3px; }
.pt-nuancier i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.pt-theme select { width: 100%; }
.pt-logo-apercu { display: block; max-width: 160px; max-height: 70px; object-fit: contain; margin: 6px 0; border: 1px dashed #C9D0D2; padding: 6px; background: #fff; }
.pt-logo-boutons { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-commencer { width: min(760px, 100%); }
.pt-modeles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pt-modeles button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #E2E5E6; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; color: #17262A; }
.pt-modeles button:hover:not(:disabled) { border-color: #1D6B66; }
.pt-modeles button span { font-size: 13px; color: #4A5A5E; }
.pt-copies, .pt-reprise-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.pt-copies li, .pt-reprise-liste li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #EEF0F1; }
.pt-reprise-liste li > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pt-reprise-liste small { color: #6B7C8E; }
.pt-reprise { margin-top: 14px; }
.pt-reprise summary { cursor: pointer; font-weight: 600; }
.pt-reprise-liste { max-height: none; }
@media (max-width: 600px) { .pt-reprise-liste li { flex-wrap: wrap; } }

/* Lot 6 (18/11/2026) : public, validation avant envoi, archives, historique (PT-F1 → PT-F4) */
.pt-choix-public { height: 32px; border: 1px solid #D5DADB; border-radius: 8px; background: #fff; padding: 0 6px; font: inherit; font-size: 13px; color: #17262A; max-width: 190px; }
.pt-apercu { position: fixed; inset: 0; z-index: 2000; background: #fff; }
.pt-apercu-fermer { position: fixed; top: 12px; right: 12px; z-index: 2001; }
.pt-v-etat { margin: 0; padding: 8px 10px; border-radius: 8px; background: #F1F4F4; font-weight: 600; }
.pt-v-etat.pt-v-a_valider { background: #FFF4DB; color: #6B4E0F; }
.pt-v-etat.pt-v-valide { background: #E3F2EE; color: #12514C; }
.pt-v-etat.pt-v-refuse { background: #FBE7E5; color: #7A231C; }
.pt-v-mot { width: 100%; box-sizing: border-box; border: 1px solid #D5DADB; border-radius: 8px; padding: 6px 8px; font: inherit; resize: vertical; }
.pt-v-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-v-journal { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pt-v-journal small { color: #5E6B6A; }
.pt-etiquette { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1F4F4; color: #33413F; }
.pt-etiquette.pt-v-a_valider { background: #FFF4DB; color: #6B4E0F; }
.pt-etiquette.pt-v-valide { background: #E3F2EE; color: #12514C; }
.pt-etiquette.pt-v-refuse { background: #FBE7E5; color: #7A231C; }
.am-dia-cartes li.pt-a-valider { outline: 2px solid #E0B44C; outline-offset: 2px; border-radius: 12px; }

/* Lot 5 (18/11/2026, PT-D) : assistant IA. */
.pt-ia-marque { position: absolute; right: 0; bottom: 100%; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #8B5E14; background: #F7EED9; border: 1px solid #E3CFA3; padding: 2px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.pt-modele-ia button { border-color: #1D6B66 !important; background: #E6F1F0 !important; }
.pt-ia-local { margin: 0 0 10px; font-size: 13px; background: #E7F0F7; color: #2D5878; padding: 8px 10px; border-radius: 8px; }
.pt-assistant { display: flex; flex-direction: column; gap: 10px; }
.pt-assistant label, .pt-retouche label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #17262A; }
.pt-assistant input:not([type=checkbox]), .pt-assistant select, .pt-assistant textarea, .pt-retouche textarea { font: inherit; font-weight: 400; padding: 7px 9px; border: 1px solid #E2E5E6; border-radius: 8px; background: #fff; color: #17262A; }
.pt-assistant-ligne { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pt-assistant-ligne > label { width: 90px; }
.pt-assistant-client { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; position: relative; }
.pt-assistant-client p { margin: 0; font-weight: 400; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-assistant-hits { list-style: none; margin: 0; padding: 4px; border: 1px solid #E2E5E6; border-radius: 8px; background: #fff; max-height: 200px; overflow: auto; }
.pt-assistant-hits button { width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 6px; font: inherit; font-weight: 400; cursor: pointer; }
.pt-assistant-hits button:hover, .pt-assistant-hits button:focus-visible { background: #E6F1F0; }
.pt-assistant fieldset { border: 1px solid #E2E5E6; border-radius: 8px; padding: 6px 10px 8px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.pt-assistant legend { font-weight: 600; padding: 0 4px; }
.pt-assistant .pt-coche { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.pt-assistant-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.pt-assistant-etape { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #5E6B6A; }
.pt-tourne { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #E6F1F0; border-top-color: #1D6B66; animation: pt-tourne 0.9s linear infinite; }
@keyframes pt-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-tourne { animation: none; } }
.pt-retouche { max-width: 560px; }
.pt-retouche form { display: flex; flex-direction: column; gap: 8px; }
.pt-retouches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pt-voile-editeur { z-index: 2000; }

/* Communication : barre d'onglets commune aux logiciels de la famille (16/11/2026). */
.comm-nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding: 8px 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.comm-nav .comm-grp { display: flex; align-items: center; gap: 4px; }
.comm-nav .comm-lab { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3, #6B7C8E); margin-right: 4px; }
.comm-nav button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 500; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.comm-nav button:hover { background: var(--surface-2); }
.comm-nav button[aria-current="page"] { background: #E3F0EE; color: #1D6B66; font-weight: 600; }
.comm-nav .comm-sep { width: 1px; align-self: stretch; background: var(--border); }
@media (max-width: 760px) { .comm-nav { padding: 8px 16px; overflow-x: auto; flex-wrap: nowrap; } .comm-nav .comm-lab { display: none; } }

/* Tableau de bord réseaux sociaux (maquette du 16/11, données fictives) */
.rs-root{
  --bg:transparent; --surface:#FFFFFF; --surface-2:#EEF1F8; --fg:#141826; --muted:#5B6277; --line:#E1E5EF;
  --accent:#1D6B66; --accent-soft:#E3F0EE; --good:#11845A; --good-soft:#E3F5EC; --bad:#C2372C; --bad-soft:#FBE7E5;
  --warn:#A86200; --warn-soft:#FFF1D9;
  --ig:#D62976; --tt:#0B9AA3; --yt:#E5302A;
  --f-ui:inherit;
  --f-num:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --r:12px;
}
.rs-root *{box-sizing:border-box}
.rs-root{background:var(--bg);color:var(--fg);font-family:var(--f-ui);font-size:14px;line-height:1.5}
.rs-root .wrap{max-width:1240px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.rs-root h1,.rs-root h2,.rs-root h3{text-wrap:balance;margin:0}
.rs-root .num{font-family:var(--f-num);font-variant-numeric:tabular-nums}
.rs-root button{font:inherit;color:inherit;cursor:pointer}
.rs-root :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rs-root .rs-head{background:var(--surface);border-bottom:1px solid var(--line)}
.rs-root .top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-block:12px 8px}
.rs-root .brand{display:flex;align-items:center;gap:10px}
.rs-root .logo{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--fg);color:var(--bg);font-weight:800;font-size:13px}
.rs-root .brand h1{font-size:17px;font-weight:800;letter-spacing:-.01em}
.rs-root .demo-pill{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--warn-soft);color:var(--warn)}
.rs-root .tabs{display:flex;gap:4px;overflow-x:auto}
.rs-root .tab{border:0;background:none;padding:8px 12px;border-radius:8px;font-weight:600;color:var(--muted);white-space:nowrap}
.rs-root .tab[aria-selected="true"]{background:var(--accent-soft);color:var(--accent)}
.rs-root .controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding-block:8px 12px}
.rs-root .seg{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;gap:2px;flex-wrap:wrap}
.rs-root .seg button{border:0;background:none;padding:6px 11px;border-radius:8px;font-weight:600;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.rs-root .seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.rs-root .dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.rs-root .spacer{flex:1}
.rs-root .refresh{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.rs-root .btn{border:1px solid var(--line);background:var(--surface);padding:7px 12px;border-radius:9px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:6px}
.rs-root .btn:hover{border-color:var(--accent);color:var(--accent)}
.rs-root .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.rs-root .btn.primary:hover{filter:brightness(1.08);color:#fff}
.rs-root .spin svg{animation:rs-spin .8s linear infinite}
@keyframes rs-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rs-root .spin svg{animation:none}}
.rs-root .rs-main{padding-block:20px 48px;display:grid;gap:18px}
.rs-root .hint{font-size:13px;color:var(--muted)}
.rs-root .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;min-width:0}
.rs-root .panel-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.rs-root .panel-h h2{font-size:15px;font-weight:700}
.rs-root .panel-h p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.rs-root .kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.rs-root .kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:grid;gap:4px;min-width:0}
.rs-root .kpi .lab{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.rs-root .kpi .val{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.rs-root .kpi .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.rs-root .badge{font-family:var(--f-num);font-size:12px;font-weight:500;padding:2px 7px;border-radius:6px}
.rs-root .badge.up{background:var(--good-soft);color:var(--good)}
.rs-root .badge.down{background:var(--bad-soft);color:var(--bad)}
.rs-root .rs-split{display:flex;gap:4px;height:5px;border-radius:3px;overflow:hidden;margin-top:6px;background:var(--surface-2)}
.rs-root .rs-split span{display:block;height:100%}
.rs-root .grid2{display:grid;grid-template-columns:3fr 2fr;gap:18px}
.rs-root .chart-box{position:relative;height:300px}
.rs-root .chart-box.sm{height:260px}
.rs-root .legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}
.rs-root .legend span{display:inline-flex;align-items:center;gap:6px}
.rs-root .tbl-wrap{overflow-x:auto}
.rs-root table{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}
.rs-root .api-tbl td,.rs-root .api-tbl th{white-space:normal}
.rs-root .oui{color:var(--good);font-weight:700}
.rs-root .non{color:var(--bad);font-weight:700}
.rs-root .aver{color:var(--warn);font-weight:700}
.rs-root tr.tot td{font-weight:700;border-top:2px solid var(--line)}
.rs-root th{text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.rs-root th button{border:0;background:none;padding:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;display:inline-flex;gap:4px;align-items:center}
.rs-root th[aria-sort] button{color:var(--fg)}
.rs-root th.r,.rs-root td.r{text-align:right}
.rs-root th.r button{flex-direction:row-reverse}
.rs-root td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.rs-root tr:hover td{background:var(--surface-2)}
.rs-root .net-chip{display:inline-flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap}
.rs-root .fmt{font-size:11px;font-weight:600;padding:2px 7px;border-radius:5px;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.rs-root .title-cell{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-root .tbl-foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12px;color:var(--muted);gap:10px;flex-wrap:wrap}
.rs-root .cards3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rs-root .conn{display:grid;gap:12px;align-content:start}
.rs-root .conn-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rs-root .conn-h h3{font-size:16px;display:flex;align-items:center;gap:8px}
.rs-root .status{font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;letter-spacing:.04em}
.rs-root .status.demo{background:var(--warn-soft);color:var(--warn)}
.rs-root .status.ok{background:var(--good-soft);color:var(--good)}
.rs-root label{font-size:12px;font-weight:600;color:var(--muted);display:grid;gap:4px}
.rs-root input{font:inherit;font-family:var(--f-num);font-size:13px;padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--fg);width:100%}
.rs-root .msg{font-size:12px;padding:8px 10px;border-radius:8px;background:var(--surface-2);color:var(--muted)}
.rs-root .callout{border-left:3px solid var(--accent);background:var(--accent-soft);padding:12px 14px;border-radius:0 10px 10px 0;font-size:13px}
.rs-root .callout strong{color:var(--accent)}
.rs-root .flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.rs-root .flow div{background:var(--surface-2);border-radius:10px;padding:12px;font-size:13px;position:relative}
.rs-root .flow b{display:block;font-size:13px;margin-bottom:2px}
.rs-root .flow div:not(:last-child)::after{content:"→";position:absolute;right:-10px;top:50%;transform:translate(50%,-50%);color:var(--muted);font-weight:700}
.rs-root details.net{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.rs-root details.net summary{list-style:none;cursor:pointer;padding:14px 18px;display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px}
.rs-root details.net summary::-webkit-details-marker{display:none}
.rs-root details.net summary .meta{margin-left:auto;font-size:12px;font-weight:500;color:var(--muted)}
.rs-root details.net summary .chev{transition:transform .2s;color:var(--muted)}
.rs-root details.net[open] summary .chev{transform:rotate(90deg)}
.rs-root .guide-body{padding:0 18px 18px;display:grid;gap:16px}
.rs-root ol.steps{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:10px}
.rs-root ol.steps li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start}
.rs-root ol.steps li::before{content:counter(s);width:24px;height:24px;border-radius:50%;background:var(--fg);color:var(--bg);font-size:12px;font-weight:700;display:grid;place-items:center;margin-top:1px}
.rs-root ol.steps li div{min-width:0}
.rs-root ol.steps b{display:block}
.rs-root code{font-family:var(--f-num);font-size:12px;background:var(--surface-2);padding:1px 5px;border-radius:4px;overflow-wrap:anywhere}
.rs-root .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rs-root .box{background:var(--surface-2);border-radius:10px;padding:12px 14px;font-size:13px;min-width:0}
.rs-root .box h4{margin:0 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.rs-root .box ul{margin:0;padding-left:18px;display:grid;gap:3px}
.rs-root a{color:var(--accent)}
.rs-root pre{margin:0;background:var(--surface-2);padding:12px 14px;border-radius:10px;overflow-x:auto;font-family:var(--f-num);font-size:12px;line-height:1.6}
@media (max-width:1180px){.rs-root .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:980px){.rs-root .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.rs-root .grid2,.rs-root .cards3{grid-template-columns:1fr}
.rs-root .flow{grid-template-columns:1fr 1fr}
.rs-root .flow div::after{display:none}}
@media (max-width:560px){.rs-root .two{grid-template-columns:1fr}
.rs-root .kpi .val{font-size:23px}
.rs-root .chart-box{height:240px}
.rs-root .refresh .when{display:none}
.rs-root .flow{grid-template-columns:1fr}}
.rs-root .logo{display:none}
.rs-root{border-radius:0}
/* Une seule page (16/11) : plus d'onglets, la mise en route et le pas à pas sont sous les chiffres. */
.rs-root .rs-titre{font-size:20px;font-weight:800;letter-spacing:-.01em;margin-top:18px;padding-top:22px;border-top:1px solid var(--line)}
.rs-root .cards3{grid-template-columns:1fr}
.rs-root .conn .champs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rs-root .conn details.net{border:0;background:var(--surface-2);border-radius:10px}
.rs-root .conn details.net summary{font-size:14px;padding:11px 14px}
.rs-root .conn .guide-body{padding:0 14px 14px}
.rs-root .conn .box{background:var(--surface)}
.rs-root details.rs-tech summary{font-size:14px}
@media (max-width:560px){.rs-root .conn .champs{grid-template-columns:1fr}.rs-root details.net summary .meta{display:none}}
/* Tableau des posts resserré (Thomas 16/11 : « dézoome le tableau » pour voir toutes les colonnes). */
.rs-root table.compact{font-size:12px;min-width:0}
.rs-root table.compact th{font-size:10px;letter-spacing:.03em;padding:6px 6px}
.rs-root table.compact td{padding:6px 6px}
.rs-root table.compact .title-cell{max-width:230px}
.rs-root table.compact .fmt{font-size:11px;padding:1px 6px}
