/* Copie des feuilles du kit pour la page d'entrée, servie sans session (seul /web/entree* passe la garde de main.py).
   Ne pas modifier ici : après un changement de css/optic.css, css/kit.css ou css/coquille.css, la refaire (docs/KIT.md, « Page d'entrée »). */
/* Finition « Optic » reprise d'OpenSEO (licence MIT, (c) 2026 Ben Senescu, github.com/every-app/open-seo), adaptée au Cockpit SEO PlanJapon. */

/* Jetons, base et verre. Thème sombre par défaut ; <html data-theme="clair"> passe en clair.
   Toutes les couleurs passent par light-dark() : un jeton, deux valeurs, le thème choisit. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/web/entree-ressources/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/web/entree-ressources/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ═══════════════ Jetons ═══════════════ */
:root {
  color-scheme: dark;
  --o-font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Espace : une échelle de 4 px */
  --o-gutter: 24px;
  --o-gap: 16px;
  --o-pad: 20px;
  --o-cell: 12px;

  /* Rayons : panneaux 14, contrôles 9, petit 6, trait 4 */
  --o-r-panel: 14px;
  --o-r-ctl: 9px;
  --o-r-sm: 6px;
  --o-r-xs: 4px;

  /* Hauteurs */
  --o-h-sm: 28px;
  --o-h-md: 32px;
  --o-h-lg: 40px;
  --o-row: 40px;
  --o-bar-h: 50px;

  /* Texte : une famille, une échelle */
  --o-t-xs: 12px;
  --o-t-sm: 13px;
  --o-t-md: 15px;
  --o-t-lg: 20px;
  --o-t-xl: 24px;

  /* La lumière vient d'en haut à gauche : ombres, arêtes et caustiques en dérivent. */
  --la: -38deg;
  --lx: sin(var(--la));
  --ly: calc(cos(var(--la)) * -1);

  --o-ground: light-dark(#dfe6ec, #101317);

  /* Faces de verre, de la plus basse à la plus haute : dalle < relief < barre < flottant */
  --o-slab: light-dark(rgba(255, 255, 255, 0.58), rgba(34, 45, 57, 0.48));
  --o-raised: light-dark(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.06));
  --o-raised-hover: light-dark(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.09));
  --o-bar-face: light-dark(rgba(255, 255, 255, 0.58), rgba(44, 56, 70, 0.56));
  --o-float-face: light-dark(rgba(255, 255, 255, 0.9), rgba(42, 52, 64, 0.94));
  --o-lz-face: light-dark(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.085));
  --o-slab-solid: light-dark(#f1f4f7, #192028);
  --o-well: light-dark(rgba(16, 32, 48, 0.055), rgba(0, 0, 0, 0.24));
  --o-well-shade: light-dark(rgba(16, 32, 48, 0.12), rgba(0, 0, 0, 0.45));
  --o-well-lip: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05));

  /* Optique du verre */
  --o-edge-hi: light-dark(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.16));
  --o-edge-lo: light-dark(rgba(30, 50, 70, 0.1), rgba(0, 0, 0, 0.4));
  --o-fresnel: light-dark(rgba(60, 96, 124, 0.12), rgba(160, 200, 240, 0.1));
  --o-sheen: light-dark(rgba(255, 255, 255, 0.55), rgba(190, 214, 245, 0.06));
  --o-outline: light-dark(rgba(24, 44, 64, 0.13), rgba(0, 0, 0, 0.5));
  --o-caustic: light-dark(rgba(255, 255, 255, 0.95), rgba(120, 176, 255, 0.16));
  --o-shade-1: light-dark(rgba(22, 40, 58, 0.14), rgba(0, 0, 0, 0.55));
  --o-shade-2: light-dark(rgba(22, 40, 58, 0.08), rgba(0, 0, 0, 0.35));

  /* Traits et encres */
  --o-line: light-dark(rgba(20, 36, 52, 0.08), rgba(255, 255, 255, 0.065));
  --o-line-2: light-dark(rgba(20, 36, 52, 0.14), rgba(255, 255, 255, 0.11));
  --o-ctl-edge: light-dark(rgba(20, 36, 52, 0.14), rgba(255, 255, 255, 0.09));
  --o-box-edge: light-dark(rgba(20, 36, 52, 0.3), rgba(255, 255, 255, 0.3));
  --o-ink: light-dark(#0e1318, #e9edf1);
  --o-ink-2: light-dark(#46505c, #a9b3be);
  --o-ink-3: light-dark(#5a6370, #949ea9);
  --o-ink-4: light-dark(#9aa2ac, #58626d);
  --o-hover: light-dark(rgba(20, 36, 52, 0.045), rgba(255, 255, 255, 0.045));
  --o-fill: light-dark(rgba(20, 36, 52, 0.05), rgba(255, 255, 255, 0.055));
  --o-ghost: light-dark(rgba(20, 36, 52, 0.12), rgba(255, 255, 255, 0.08));
  --o-track: light-dark(rgba(20, 36, 52, 0.09), rgba(255, 255, 255, 0.1));
  --o-field: light-dark(rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0.18));

  /* Un seul accent : le bleu de traitement */
  --o-accent: light-dark(#1a5fd8, #2f6ee5);
  --o-acc-hi: light-dark(#3c80ee, #4a86f0);
  --o-acc-lo: light-dark(#124fbc, #2460d0);
  --o-acc-edge: light-dark(rgba(6, 40, 110, 0.45), rgba(150, 196, 255, 0.3));
  --o-acc-shadow: light-dark(rgba(16, 80, 200, 0.3), rgba(30, 100, 240, 0.4));
  --o-accent-text: light-dark(#1a5fd8, #86b4ff);
  --o-accent-line: light-dark(#1a5fd8, #5e9af8);
  --o-accent-tint: light-dark(rgba(26, 95, 216, 0.1), rgba(94, 154, 248, 0.14));
  --o-sel: light-dark(rgba(26, 95, 216, 0.095), rgba(94, 154, 248, 0.12));
  --o-checked: light-dark(rgba(26, 95, 216, 0.05), rgba(94, 154, 248, 0.06));
  --o-focus: light-dark(#1a5fd8, #86b4ff);

  /* Sens : bon, moyen, mauvais, à part de l'accent */
  --o-good: light-dark(#23794a, #5fd09a);
  --o-good-tint: light-dark(rgba(35, 121, 74, 0.1), rgba(95, 208, 154, 0.12));
  --o-warn: light-dark(#a65706, #f2a651);
  --o-warn-tint: light-dark(rgba(166, 87, 6, 0.09), rgba(242, 166, 81, 0.11));
  --o-bad: light-dark(#c0362c, #ff8a80);
  --o-bad-tint: light-dark(rgba(192, 54, 44, 0.08), rgba(255, 110, 99, 0.12));
  --o-info: var(--o-accent-text);
  --o-info-tint: var(--o-accent-tint);

  /* Données */
  --o-bar: light-dark(#7ea0e3, #2f4f86);
  --o-bar-on: light-dark(#1a5fd8, #5e9af8);

  /* Couleurs des séries (celles d'OpenSEO), puis les entités du cockpit, fixées une fois pour toutes. */
  --c-1: light-dark(oklch(57.5% 0.163 255.5), oklch(66% 0.161 255.1));
  --c-2: light-dark(oklch(67.1% 0.175 40.6), oklch(68% 0.173 40.1));
  --c-3: light-dark(oklch(60% 0.141 162.1), oklch(68% 0.128 163.1));
  --c-4: light-dark(oklch(70% 0.161 75.1), oklch(74% 0.143 73.2));
  --c-5: light-dark(oklch(62% 0.141 357.4), oklch(68% 0.171 0.8));
  --c-6: light-dark(oklch(55% 0.16 295), oklch(68% 0.14 295));
  --c-7: light-dark(oklch(58% 0.09 210), oklch(70% 0.09 210));
  --c-8: light-dark(oklch(60% 0.02 250), oklch(64% 0.02 250));

  /* Domaines : esimjp.com bleu, planjapon.com orange, esimjapon.com vert, partout. */
  --d-esimjp: var(--c-1);
  --d-planjapon: var(--c-2);
  --d-esimjapon: var(--c-3);

  /* Rouge de marque : « Japon » du logotype, rien d'autre. */
  --marque: #e7362b;

  background: var(--o-ground);
}
:root[data-theme="clair"] {
  color-scheme: light;
}

/* ═══════════════ Base ═══════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: transparent;
  color: var(--o-ink);
  font-family: var(--o-font);
  font-size: var(--o-t-sm);
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
  margin: 0;
}
:where(ul, ol) {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.o-tnum,
.num {
  font-variant-numeric: tabular-nums;
}
.o-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--c, currentColor);
}
.o-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ic {
  width: 16px;
  height: 16px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
::selection {
  background: var(--o-accent-tint);
}

/* Le sol : plat, fixe, le verre glisse dessus. */
.o-ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--o-ground);
}

/* ═══════════════ Verre : optique commune ═══════════════ */
/* Épais : arêtes de Fresnel et reflet venu du côté éclairé. */
.o-thick::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(calc(var(--la) + 180deg), var(--o-sheen) 0%, transparent var(--sheen-len, 40%));
  box-shadow:
    inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 0 0 var(--o-edge-hi),
    inset calc(var(--lx) * 2px) calc(var(--ly) * 2px) 3px -1px var(--o-edge-lo),
    inset 0 0 var(--fresnel-r, 16px) 0 var(--o-fresnel);
}
/* Ombre portée avec caustique : la dalle concentre un filet de lumière au-delà de son bord. */
.o-cast {
  box-shadow:
    0 0 0 0.5px var(--o-outline),
    calc(var(--lx) * -2px) calc(var(--ly) * -3px) 6px -3px var(--o-caustic),
    calc(var(--lx) * var(--z, 1) * -5px) calc(var(--ly) * var(--z, 1) * -7px) calc(var(--z, 1) * 16px)
      calc(var(--z, 1) * -9px) var(--o-caustic),
    calc(var(--lx) * var(--z, 1) * -6px) calc(var(--ly) * var(--z, 1) * -10px) calc(var(--z, 1) * 26px)
      calc(var(--z, 1) * -8px) var(--o-shade-1),
    0 1px 2px var(--o-shade-2);
}

@keyframes o-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes o-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* Finition « Optic » reprise d'OpenSEO (licence MIT, (c) 2026 Ben Senescu, github.com/every-app/open-seo), adaptée au Cockpit SEO PlanJapon. */

/* Les composants du kit (web/js/ui.js et web/js/graphes.js). Notice : docs/KIT.md. */

/* L'attribut hidden l'emporte toujours sur le display d'un composant (pied de tableau vide, etc.). */
[hidden] {
  display: none !important;
}

/* ═══════════════ Boutons ═══════════════ */
.o-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--o-h-md);
  padding: 0 12px;
  border: 0;
  border-radius: var(--o-r-ctl);
  font: inherit;
  font-size: var(--o-t-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  color: var(--o-ink);
  text-decoration: none;
  transition: background-color 120ms, color 120ms, box-shadow 120ms, transform 80ms, filter 120ms;
}
.o-btn .ic {
  width: 16px;
  height: 16px;
  color: var(--o-ink-3);
  transition: color 120ms;
}
.o-btn.o-sm {
  height: var(--o-h-sm);
  padding: 0 10px;
  border-radius: var(--o-r-sm);
  gap: 6px;
}
.o-btn.o-lg {
  height: var(--o-h-lg);
  padding: 0 20px;
}
.o-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.o-btn:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: 2px;
}
.o-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.o-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--o-acc-hi), var(--o-accent) 52%, var(--o-acc-lo));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 16, 60, 0.24),
    0 0 0 0.5px var(--o-acc-edge),
    calc(var(--lx) * -1px) calc(var(--ly) * -2px) 6px -2px var(--o-acc-shadow);
  text-shadow: 0 1px 0 rgba(0, 20, 70, 0.18);
}
.o-btn-primary .ic {
  color: currentColor;
}
.o-btn-primary:hover:not(:disabled) {
  filter: brightness(1.07) saturate(1.05);
}
.o-btn-secondary {
  background: var(--o-raised);
  box-shadow: inset 0 1px 0 var(--o-edge-hi), inset 0 0 0 1px var(--o-ctl-edge), 0 1px 2px var(--o-shade-2);
}
.o-btn-secondary:hover:not(:disabled),
.o-btn-secondary[data-ouvert] {
  background: var(--o-raised-hover);
}
.o-btn-quiet {
  color: var(--o-ink-2);
}
.o-btn-quiet:hover:not(:disabled),
.o-btn-quiet[data-ouvert] {
  background: var(--o-hover);
  color: var(--o-ink);
}
.o-icon-btn {
  width: var(--o-h-md);
  padding: 0;
}
.o-icon-btn.o-sm {
  width: var(--o-h-sm);
  padding: 0;
}
.o-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--o-accent-tint);
  color: var(--o-accent-text);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.o-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--o-track);
  border-top-color: var(--o-accent-line);
  animation: o-spin 0.8s linear infinite;
}
.o-ghost {
  display: block;
  height: 8px;
  border-radius: var(--o-r-xs);
  background: var(--o-ghost);
  animation: o-pulse 1.4s ease-in-out infinite;
}

/* ═══════════════ Segments : un puits creux et une pastille de verre ═══════════════ */
.o-seg {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  height: var(--o-h-md);
  padding: 3px;
  gap: 0;
  border-radius: var(--o-r-ctl);
  background: var(--o-well);
  box-shadow:
    inset calc(var(--lx) * -1px) calc(var(--ly) * -1.5px) 2px 0 var(--o-well-shade),
    calc(var(--lx) * -1px) calc(var(--ly) * -1px) 0 0 var(--o-well-lip);
}
.o-seg.o-sm {
  height: var(--o-h-sm);
}
.o-seg.o-lg {
  height: var(--o-h-lg);
}
.o-seg button {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: var(--o-r-sm);
  background: none;
  color: var(--o-ink-2);
  font: inherit;
  font-size: var(--o-t-xs);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms;
}
.o-seg.o-lg button {
  padding: 0 14px;
  font-size: var(--o-t-sm);
}
.o-seg button:hover {
  color: var(--o-ink);
}
.o-seg button[aria-checked="true"] {
  --fresnel-r: 8px;
  --z: 0.5;
  --sheen-len: 60%;
  color: var(--o-ink);
  background: var(--o-lz-face);
  box-shadow:
    0 0 0 0.5px var(--o-outline),
    calc(var(--lx) * -2px) calc(var(--ly) * -3px) 6px -3px var(--o-caustic),
    calc(var(--lx) * -3px) calc(var(--ly) * -5px) 13px -4px var(--o-shade-1),
    0 1px 2px var(--o-shade-2);
}
.o-seg button[aria-checked="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(calc(var(--la) + 180deg), var(--o-sheen) 0%, transparent 60%);
  box-shadow:
    inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 0 0 var(--o-edge-hi),
    inset calc(var(--lx) * 2px) calc(var(--ly) * 2px) 3px -1px var(--o-edge-lo),
    inset 0 0 8px 0 var(--o-fresnel);
}
.o-seg button:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: -2px;
}
.o-seg button .ic {
  width: 14px;
  height: 14px;
  margin: -2px 4px 0 -2px;
}
.o-seg button .o-badge {
  margin-left: 6px;
}

/* ═══════════════ Puces d'état et étiquettes ═══════════════ */
.o-puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: var(--o-t-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--o-ink-2);
  background: var(--o-fill);
}
.o-puce::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.o-puce.sans-point::before {
  display: none;
}
.o-puce[data-etat="bon"] {
  color: var(--o-good);
  background: var(--o-good-tint);
}
.o-puce[data-etat="moyen"] {
  color: var(--o-warn);
  background: var(--o-warn-tint);
}
.o-puce[data-etat="mauvais"] {
  color: var(--o-bad);
  background: var(--o-bad-tint);
}
.o-puce[data-etat="info"] {
  color: var(--o-info);
  background: var(--o-info-tint);
}
.o-puce[data-etat="inconnu"] {
  color: var(--o-ink-3);
}
/* Un mot précédé d'un point coloré, sans fond (domaine, intention, canal). */
.o-mot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: var(--o-ink-2);
  white-space: nowrap;
}
.o-mot-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-mot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--c, var(--o-ink-3));
}
.o-mot.fort {
  color: var(--o-ink);
  font-weight: 500;
}
/* pastille() et pastilles() */
.o-pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.o-pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--o-track);
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  white-space: nowrap;
}
.o-pastille::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--o-ink-3));
}
.o-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--o-r-xs);
  background: var(--o-fill);
  box-shadow: inset 0 0 0 1px var(--o-line);
  color: var(--o-ink-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
a.o-tag:hover {
  color: var(--o-ink);
  background: var(--o-hover);
}
.o-tag.accent {
  color: var(--o-accent-text);
  background: var(--o-accent-tint);
  box-shadow: none;
}

/* ═══════════════ Champs ═══════════════ */
.o-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--o-h-md);
  padding: 0 10px;
  border-radius: var(--o-r-ctl);
  background: var(--o-field);
  box-shadow: inset 0 0 0 1px var(--o-ctl-edge), inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 2px var(--o-well-shade);
  transition: box-shadow 120ms;
}
.o-field:focus-within {
  box-shadow: inset 0 0 0 1px var(--o-focus), 0 0 0 3px var(--o-accent-tint);
}
.o-field .ic {
  width: 14px;
  height: 14px;
  color: var(--o-ink-3);
}
.o-field input,
.o-field select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--o-ink);
  font-size: var(--o-t-sm);
}
.o-field input::placeholder,
.o-input::placeholder {
  color: var(--o-ink-3);
}
.o-input {
  display: block;
  width: 100%;
  min-height: var(--o-h-md);
  padding: 6px 10px;
  border: 0;
  outline: 0;
  border-radius: var(--o-r-ctl);
  background: var(--o-field);
  box-shadow: inset 0 0 0 1px var(--o-ctl-edge), inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 2px var(--o-well-shade);
  color: var(--o-ink);
  font-size: var(--o-t-sm);
  line-height: 20px;
  transition: box-shadow 120ms;
}
.o-input:focus {
  box-shadow: inset 0 0 0 1px var(--o-focus), 0 0 0 3px var(--o-accent-tint);
}
textarea.o-input {
  min-height: 84px;
  resize: vertical;
}
select.o-input {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23949ea9' d='m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
select.o-input option {
  background: var(--o-slab-solid);
  color: var(--o-ink);
}
input[type="date"].o-input::-webkit-calendar-picker-indicator {
  filter: light-dark(none, invert(0.8));
}

/* Formulaire léger */
.o-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.o-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.o-form .o-label {
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  line-height: 16px;
  font-weight: 500;
}
.o-form .o-indic {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
}
.o-form .o-rangee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.o-form .o-pied {
  display: flex;
  align-items: center;
  gap: 12px;
}
.o-form .o-retour {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
}
.o-form .o-retour[data-etat="bon"] {
  color: var(--o-good);
}
.o-form .o-retour[data-etat="mauvais"] {
  color: var(--o-bad);
}

/* ═══════════════ Panneaux ═══════════════ */
.o-panel {
  --z: 1;
  --fresnel-r: 20px;
  --sheen-len: 30%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--o-r-panel);
  background: var(--o-slab);
  backdrop-filter: blur(28px) saturate(1.35);
}
.o-panel-title {
  font-size: var(--o-t-md);
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.o-sub-title {
  font-size: var(--o-t-sm);
  line-height: 20px;
  font-weight: 600;
}
.o-hint {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
  font-weight: 400;
}
.o-p-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  padding: 12px var(--o-pad);
}
.o-p-head > .ic {
  color: var(--o-ink-3);
}
.o-p-head .o-p-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 4px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
  white-space: nowrap;
}
.o-p-head .o-p-meta b {
  color: var(--o-ink-2);
  font-weight: 500;
}
.o-p-head .o-grow {
  flex: 1;
  /* annule l'écart qui le précède : un en-tête juste assez large ne passe pas sur deux lignes pour un vide */
  margin-left: -8px;
}
.o-p-head > .o-btn-quiet:last-child {
  margin-right: -6px;
}
.o-p-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0 var(--o-pad) var(--o-pad);
}
.o-p-body.flush {
  padding: 0;
}
.o-p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 var(--o-pad);
  box-shadow: inset 0 1px 0 var(--o-line);
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
}
.o-sep-h {
  box-shadow: inset 0 1px 0 var(--o-line);
}
.o-section-t {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  font-size: var(--o-t-sm);
  font-weight: 600;
}
.o-section-t .o-hint {
  font-weight: 400;
}
.o-texte {
  color: var(--o-ink-2);
  max-width: 760px;
}
.o-texte b,
.o-texte strong {
  color: var(--o-ink);
  font-weight: 600;
}
.o-texte + .o-texte {
  margin-top: 8px;
}

/* Grilles de mise en page */
.o-grille {
  display: grid;
  gap: var(--o-gap);
  align-items: stretch;
  min-width: 0;
}
.o-grille.haut {
  align-items: start;
}
/* colonne() : des panneaux empilés dans une cellule ; ils se partagent la hauteur de la rangée */
.o-colonne {
  display: flex;
  flex-direction: column;
  gap: var(--o-gap);
  min-width: 0;
}
.o-colonne > .o-panel {
  flex: 1 1 auto;
}
.o-grille.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.o-grille.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.o-grille.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.o-grille.g21 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.o-grille.g12 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.o-grille > .o-large {
  grid-column: 1 / -1;
}
.o-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 32%, 400px);
  flex: 1;
}
.o-split > .o-cote {
  min-width: 0;
  padding: 0 var(--o-pad) var(--o-pad);
  box-shadow: inset 1px 0 0 var(--o-line);
}
@media (max-width: 1100px) {
  .o-grille.g2,
  .o-grille.g3,
  .o-grille.g21,
  .o-grille.g12 {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-grille.g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .o-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ═══════════════ Chiffres ═══════════════ */
.o-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.o-stat {
  min-width: 0;
}
.o-stat dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  line-height: 16px;
  white-space: nowrap;
}
.o-stat .o-v {
  margin-top: 4px;
  font-size: var(--o-t-xl);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.o-stat .o-v small {
  margin-left: 4px;
  color: var(--o-ink-3);
  font-size: var(--o-t-sm);
  font-weight: 500;
  letter-spacing: 0;
}
.o-stat .o-v.o-nil {
  color: var(--o-ink-3);
}
.o-stat .o-d {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  min-height: 16px;
  font-size: var(--o-t-xs);
  line-height: 16px;
  white-space: nowrap;
}
.o-stat .o-was {
  color: var(--o-ink-3);
  font-variant-numeric: tabular-nums;
}

/* Les tuiles : une rangée de chiffres dans un panneau ; une tuile allumée est une pastille de verre. */
.o-tuiles {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}
.o-tuile {
  --fresnel-r: 8px;
  --z: 0.5;
  --sheen-len: 60%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 12px 15px 13px;
  border: 0;
  border-radius: var(--o-r-ctl);
  background: none;
  color: var(--o-ink);
  font: inherit;
  text-align: left;
}
button.o-tuile {
  cursor: pointer;
  transition: background-color 120ms;
}
button.o-tuile:hover {
  background: var(--o-hover);
}
.o-tuile[data-on] {
  background: var(--o-lz-face);
  box-shadow:
    0 0 0 0.5px var(--o-outline),
    calc(var(--lx) * -2px) calc(var(--ly) * -3px) 6px -3px var(--o-caustic),
    calc(var(--lx) * -3px) calc(var(--ly) * -5px) 13px -4px var(--o-shade-1),
    0 1px 2px var(--o-shade-2);
}
.o-tuile[data-on]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(calc(var(--la) + 180deg), var(--o-sheen) 0%, transparent 60%);
  box-shadow:
    inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 0 0 var(--o-edge-hi),
    inset calc(var(--lx) * 2px) calc(var(--ly) * 2px) 3px -1px var(--o-edge-lo),
    inset 0 0 8px 0 var(--o-fresnel);
}
.o-tuile:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: -2px;
}
.o-tuile-k {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: var(--o-t-xs);
  line-height: 16px;
  color: var(--o-ink-2);
  white-space: nowrap;
}
.o-tuile-k > span:not(.o-key-box):not(.o-tuile-trend) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-tuile-k.avec-trend {
  align-self: stretch;
}
.o-key-box {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--o-box-edge);
}
.o-tuile[data-on] .o-key-box {
  background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.o-tuile-v {
  font-size: var(--o-t-xl);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.o-tuile-v small {
  margin-left: 4px;
  color: var(--o-ink-3);
  font-size: var(--o-t-sm);
  font-weight: 500;
  letter-spacing: 0;
}
.o-tuile-v.o-nil {
  color: var(--o-ink-3);
}
.o-tuile-d {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  max-width: 100%;
  font-size: var(--o-t-xs);
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.o-tuile-was {
  color: var(--o-ink-3);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-tuile .o-tuile-trend {
  /* dans la ligne du libellé, poussée à droite ; 16 px de haut pour ne pas grandir la ligne, la courbe déborde en bas
     comme avant (son haut reste à 14 px du bord de la tuile) */
  position: relative;
  top: 5px;
  display: flex;
  align-items: center;
  flex: none;
  height: 16px;
  margin-left: auto;
  margin-right: -1px;
  padding-left: 8px;
  opacity: 0.9;
}
.o-tuile .o-tuile-trend svg {
  display: block;
}
.o-tuile[data-etat="mauvais"] .o-tuile-v {
  color: var(--o-bad);
}
.o-tuile[data-etat="moyen"] .o-tuile-v {
  color: var(--o-warn);
}
@media (max-width: 1100px) {
  .o-tuiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Évolutions : une flèche et l'écart. Vert quand c'est mieux, rouge quand c'est pire. */
.o-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--o-t-xs);
  line-height: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--o-ink-3);
}
.o-delta .ic {
  width: 12px;
  height: 12px;
}
.o-delta[data-ton="bon"] {
  color: var(--o-good);
}
.o-delta[data-ton="mauvais"] {
  color: var(--o-bad);
}
.o-delta[data-ton="neutre"] {
  font-weight: 400;
}

/* Barre de progression */
.o-prog {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.o-prog-l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--o-t-xs);
  line-height: 16px;
  color: var(--o-ink-2);
}
.o-prog-l b {
  color: var(--o-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.o-prog-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--o-track);
  overflow: hidden;
}
.o-prog-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--o-accent-line);
  transition: width 320ms ease;
}
.o-prog-bar > b {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  border-radius: 1px;
  background: var(--o-ink-2);
}
.o-prog[data-etat="bon"] .o-prog-bar > i {
  background: var(--o-good);
}
.o-prog[data-etat="moyen"] .o-prog-bar > i {
  background: var(--o-warn);
}
.o-prog[data-etat="mauvais"] .o-prog-bar > i {
  background: var(--o-bad);
}
.o-mini-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--o-track);
  overflow: hidden;
  vertical-align: middle;
}
.o-mini-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c, var(--o-accent-line));
}

/* ═══════════════ Tableaux : lignes de 40 px ═══════════════ */
.o-tbl-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
}
.o-tbl-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 8px var(--o-pad) 10px;
}
.o-tbl-tools .o-grow {
  flex: 1;
}
.o-tbl-tools .o-field {
  width: 260px;
  height: var(--o-h-sm);
  border-radius: var(--o-r-sm);
}
.o-tbl-tools .o-count {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  font-variant-numeric: tabular-nums;
}
.o-tbl {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--o-line-2) transparent;
}
.o-tbl table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.o-tbl th {
  height: 36px;
  padding: 0 var(--o-cell);
  box-shadow: inset 0 1px 0 var(--o-line), inset 0 -1px 0 var(--o-line);
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.o-tbl th:first-child,
.o-tbl td:first-child {
  padding-left: var(--o-pad);
}
.o-tbl th:last-child,
.o-tbl td:last-child {
  padding-right: var(--o-pad);
}
.o-tbl th.n,
.o-tbl td.n {
  text-align: right;
}
.o-tbl th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  margin: 0 -2px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.o-tbl th button:hover,
.o-tbl th[aria-sort] {
  color: var(--o-ink);
}
.o-tbl th button .ic {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 120ms, transform 160ms;
}
.o-tbl th button:hover .ic {
  opacity: 0.5;
}
.o-tbl th[aria-sort] button .ic {
  opacity: 1;
}
.o-tbl th[aria-sort="ascending"] button .ic {
  transform: scaleY(-1);
}
.o-tbl th .o-aide {
  margin-left: 2px;
}
.o-tbl td {
  height: var(--o-row);
  padding: 0 var(--o-cell);
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.o-tbl tbody tr + tr td {
  box-shadow: inset 0 1px 0 var(--o-line);
}
.o-tbl tbody tr {
  transition: background-color 100ms;
}
.o-tbl tbody tr:hover {
  background: var(--o-hover);
}
.o-tbl tbody tr[data-clic] {
  cursor: pointer;
}
.o-tbl tbody tr[aria-current="true"] {
  background: var(--o-sel);
  box-shadow: inset 2px 0 0 var(--o-accent-line);
}
.o-tbl td.o-cle {
  max-width: 0;
  width: 46%;
}
.o-tbl td.o-cle > * {
  max-width: 100%;
}
/* Colonne { couper: true | '26%' } : elle cède sa place et son texte se coupe */
.o-tbl td.o-coupe {
  max-width: 0;
}
.o-tbl td.o-coupe > * {
  max-width: 100%;
}
.o-tbl .o-cut {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Un nombre suivi de sa part : 10 27 % (part en petit, largeur fixe pour garder la colonne alignée). */
.o-tbl small.o-part {
  display: inline-block;
  min-width: 36px;
  margin-left: 6px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  font-weight: 400;
  text-align: right;
}
.o-tbl .o-fort {
  color: var(--o-ink);
  font-weight: 500;
}
.o-tbl .o-sous {
  display: block;
  margin-top: -2px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.o-tbl td.haute {
  height: 52px;
}
.o-tbl td.wrap {
  white-space: normal;
}
.o-tbl .o-nil,
.o-nil {
  color: var(--o-ink-3);
}
.o-tbl a.o-lien {
  color: inherit;
  text-decoration: none;
}
.o-tbl a.o-lien:hover {
  color: var(--o-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.o-tbl tfoot td {
  height: 40px;
  box-shadow: inset 0 1px 0 var(--o-line-2);
  color: var(--o-ink);
  font-weight: 600;
}
.o-tbl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 48px;
  padding: 8px var(--o-pad);
  box-shadow: inset 0 1px 0 var(--o-line);
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
}
.o-tbl-note {
  flex: 1 1 240px;
  min-width: 0;
  line-height: 1.45;
}
.o-tbl-pages {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  white-space: nowrap;
}
.o-tbl-pos {
  white-space: nowrap;
}
.o-pager {
  display: flex;
  align-items: center;
  gap: 2px;
}
.o-pager .o-pg {
  min-width: 64px;
  text-align: center;
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  font-variant-numeric: tabular-nums;
}
.o-tbl-vide {
  padding: 28px var(--o-pad);
  color: var(--o-ink-2);
  text-align: center;
}
.o-tbl.defile {
  max-height: var(--hmax, 480px);
  overflow-y: auto;
}
.o-tbl.defile thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--o-slab-solid);
}

/* Listes courtes (tableau de bord) */
.o-liste-t,
.o-liste > li {
  display: grid;
  grid-template-columns: var(--cols, minmax(0, 1fr) 64px 56px);
  align-items: center;
  gap: 12px;
}
.o-liste-t {
  height: 28px;
  margin-top: 4px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  box-shadow: inset 0 -1px 0 var(--o-line);
}
.o-liste-t > span:not(:first-child) {
  text-align: right;
}
.o-liste > li {
  min-height: 36px;
  padding: 6px 0;
}
.o-liste > li + li {
  box-shadow: inset 0 1px 0 var(--o-line);
}
.o-liste .o-l-nom {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.o-liste .o-l-n {
  justify-self: end;
  color: var(--o-ink-2);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.o-liste .o-l-n b {
  color: var(--o-ink);
  font-weight: 600;
}
/* liste({ alignes }) : 'gauche' ou 'droite' pour une colonne, en-tête compris */
.o-liste-t > span.a-d,
.o-liste .a-d {
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.o-liste-t > span.a-g,
.o-liste .a-g {
  justify-self: start;
  text-align: left;
}

/* ═══════════════ Messages : vide, erreur, à configurer, en construction ═══════════════ */
.o-msg {
  display: grid;
  place-items: center;
  padding: 44px 24px;
  text-align: center;
}
.o-msg.o-compact {
  padding: 24px 12px;
}
.o-msg .o-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: var(--o-r-ctl);
  background: var(--o-fill);
  color: var(--o-ink-2);
  box-shadow: inset 0 1px 0 var(--o-edge-hi), inset 0 0 0 1px var(--o-line);
}
.o-msg .o-ic[data-etat="moyen"] {
  background: var(--o-warn-tint);
  color: var(--o-warn);
}
.o-msg .o-ic[data-etat="mauvais"] {
  background: var(--o-bad-tint);
  color: var(--o-bad);
}
.o-msg .o-ic[data-etat="info"] {
  background: var(--o-info-tint);
  color: var(--o-info);
}
.o-msg .o-ic .ic {
  width: 18px;
  height: 18px;
}
.o-msg h3 {
  font-size: var(--o-t-sm);
  line-height: 20px;
  font-weight: 600;
}
.o-msg p {
  max-width: 480px;
  margin: 2px auto 0;
  color: var(--o-ink-2);
  text-wrap: pretty;
}
.o-msg .o-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.o-msg ol {
  margin: 12px auto 0;
  padding: 0;
  max-width: 480px;
  counter-reset: etape;
  text-align: left;
  color: var(--o-ink-2);
}
.o-msg ol li {
  position: relative;
  padding: 4px 0 4px 28px;
  counter-increment: etape;
}
.o-msg ol li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--o-fill);
  box-shadow: inset 0 0 0 1px var(--o-line-2);
  color: var(--o-ink-2);
  font-size: 11px;
  font-weight: 600;
}
.o-msg code,
.o-code {
  padding: 1px 5px;
  border-radius: var(--o-r-xs);
  background: var(--o-fill);
  box-shadow: inset 0 0 0 1px var(--o-line);
  color: var(--o-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.o-msg .o-cout {
  margin-top: 10px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
}

/* Bandeau d'alertes */
.o-alertes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.o-alerte {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--o-r-ctl);
  background: var(--o-warn-tint);
  color: var(--o-ink);
}
.o-alerte > .ic {
  margin-top: 2px;
  color: var(--o-warn);
}
.o-alerte[data-etat="mauvais"] {
  background: var(--o-bad-tint);
}
.o-alerte[data-etat="mauvais"] > .ic {
  color: var(--o-bad);
}
.o-alerte[data-etat="info"] {
  background: var(--o-info-tint);
}
.o-alerte[data-etat="info"] > .ic {
  color: var(--o-info);
}
.o-alerte[data-etat="bon"] {
  background: var(--o-good-tint);
}
.o-alerte[data-etat="bon"] > .ic {
  color: var(--o-good);
}
.o-alerte .o-a-txt {
  flex: 1;
  min-width: 0;
}
.o-alerte .o-a-src {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  white-space: nowrap;
}
.o-alerte a {
  color: var(--o-accent-text);
  text-decoration: none;
  white-space: nowrap;
}
.o-alerte a:hover {
  text-decoration: underline;
}

/* Bulle d'aide : un (i) discret */
.o-aide {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--o-ink-3);
  cursor: help;
  vertical-align: middle;
}
.o-aide .ic {
  width: 14px;
  height: 14px;
}
.o-aide:hover {
  color: var(--o-ink);
}

/* ═══════════════ Graphiques ═══════════════ */
.o-graphe {
  position: relative;
  min-width: 0;
  outline: none;
  touch-action: pan-y;
}
.o-graphe svg {
  display: block;
  overflow: visible;
}
.o-graphe .g-grille {
  stroke: var(--o-line);
}
.o-graphe .g-base {
  stroke: var(--o-line-2);
}
.o-graphe .g-axe {
  fill: var(--o-ink-3);
  font-family: var(--o-font);
  font-size: var(--o-t-xs);
  font-variant-numeric: tabular-nums;
}
.o-graphe .g-axe.on {
  fill: var(--o-ink);
}
.o-graphe .g-ligne {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.o-graphe .g-ligne.pointille {
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.7;
}
.o-graphe .g-aire {
  opacity: 0.16;
}
.o-graphe .g-croix {
  stroke: var(--o-line-2);
}
.o-graphe .g-point {
  fill: var(--o-slab-solid);
  stroke-width: 2;
}
.o-graphe .g-ref {
  stroke: var(--o-ink-3);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}
.o-graphe .g-ref-t {
  fill: var(--o-ink-3);
  font-size: 11px;
  font-family: var(--o-font);
}
.o-graphe .g-barre {
  transition: opacity 120ms;
}
.o-graphe .g-val {
  fill: var(--o-ink-3);
  font-family: var(--o-font);
  font-size: var(--o-t-xs);
  font-variant-numeric: tabular-nums;
}
.o-graphe .g-val.on {
  fill: var(--o-ink);
}
.o-graphe .g-val.serree {
  visibility: hidden;
}
.o-graphe .g-val.serree.on {
  visibility: visible;
}
.o-graphe .g-zone {
  fill: transparent;
  cursor: crosshair;
}
.o-graphe .g-encours {
  opacity: 0.45;
}
.o-graphe-vide {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 160px;
  padding: 16px 24px;
  border-radius: var(--o-r-ctl);
  background: var(--o-fill);
  color: var(--o-ink-2);
  text-align: center;
}
.o-graphe-vide b {
  color: var(--o-ink);
  font-weight: 600;
}
.o-g-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 28px;
  margin-bottom: 12px;
}
.o-g-head .o-grow {
  flex: 1;
}
.o-legende {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  line-height: 16px;
}
.o-legende > span,
.o-legende > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.o-legende > button {
  height: 24px;
  margin: 0 -6px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--o-r-xs);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.o-legende > button:hover {
  background: var(--o-hover);
  color: var(--o-ink);
}
.o-legende > button[aria-pressed="false"] {
  color: var(--o-ink-3);
}
.o-legende > button[aria-pressed="false"] .o-swatch {
  opacity: 0.3;
}
.o-swatch {
  width: 14px;
  height: 0;
  border-top: 2px solid var(--c, var(--o-ink-2));
  flex: none;
}
.o-swatch.carre {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 3px;
  background: var(--c);
}
.o-swatch.pointille {
  border-top-style: dashed;
}

/* Bulle des graphiques (et des aides) : verre flottant */
.o-tip {
  --fresnel-r: 10px;
  --z: 0.8;
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  min-width: 160px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: var(--o-r-ctl);
  pointer-events: none;
  background: var(--o-float-face);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--o-ink);
  font-size: var(--o-t-xs);
  line-height: 16px;
  opacity: 0;
  transition: opacity 120ms;
}
.o-tip[data-on] {
  opacity: 1;
}
.o-tip .t-titre {
  margin-bottom: 4px;
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
}
.o-tip .t-ligne {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  line-height: 20px;
}
.o-tip .t-ligne.avec-avant {
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
}
.o-tip .t-ligne i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}
.o-tip .t-ligne i.trait {
  height: 2px;
  border-radius: 1px;
}
.o-tip .t-ligne span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--o-ink-2);
}
.o-tip .t-ligne b {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.o-tip .t-ligne em {
  min-width: 44px;
  text-align: right;
  font-style: normal;
  color: var(--o-ink-3);
  font-variant-numeric: tabular-nums;
}
.o-tip .t-total {
  margin-top: 4px;
  padding-top: 4px;
  box-shadow: inset 0 1px 0 var(--o-line-2);
}
.o-tip .t-texte {
  color: var(--o-ink);
  font-size: var(--o-t-xs);
  line-height: 17px;
  white-space: normal;
}

/* Répartition en barres horizontales */
.o-repart {
  display: flex;
  flex-direction: column;
}
.o-repart > div {
  display: grid;
  grid-template-columns: minmax(0, var(--nom, 1.1fr)) minmax(0, 1.6fr) var(--val, 92px) var(--delta, 56px);
  align-items: center;
  gap: 12px;
  height: 34px;
}
.o-repart > div + div {
  box-shadow: inset 0 1px 0 var(--o-line);
}
.o-repart .r-nom {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.o-repart .r-nom span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-repart .r-barre {
  height: 8px;
  border-radius: 2px;
  background: var(--o-track);
  overflow: hidden;
}
.o-repart .r-barre i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--c, var(--o-bar-on));
}
.o-repart .r-val {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.o-repart .r-val small {
  margin-left: 4px;
  color: var(--o-ink-3);
  font-weight: 400;
}
.o-repart .r-d {
  text-align: right;
}
.o-repart.sans-d > div {
  grid-template-columns: minmax(0, var(--nom, 1.1fr)) minmax(0, 1.6fr) var(--val, 92px);
}

/* Jauge de score */
.o-jauge {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.o-jauge svg {
  display: block;
}
.o-jauge .j-fond {
  stroke: var(--o-track);
}
.o-jauge .j-arc {
  stroke: var(--o-accent-line);
  transition: stroke-dashoffset 400ms ease;
}
.o-jauge[data-etat="bon"] .j-arc {
  stroke: var(--o-good);
}
.o-jauge[data-etat="moyen"] .j-arc {
  stroke: var(--o-warn);
}
.o-jauge[data-etat="mauvais"] .j-arc {
  stroke: var(--o-bad);
}
.o-jauge .j-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.o-jauge .j-v {
  font-size: var(--o-t-lg);
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.o-jauge .j-l {
  color: var(--o-ink-3);
  font-size: 11px;
  line-height: 14px;
}

/* Onglets dans un panneau */
.o-onglets {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Frise (journal) */
.o-frise {
  position: relative;
  margin: 0;
  padding: 0;
}
.o-frise > li {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}
.o-frise > li + li {
  box-shadow: inset 0 1px 0 var(--o-line);
}
.o-frise .f-jour {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.o-frise .f-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.o-frise .f-detail {
  margin-top: 2px;
  color: var(--o-ink-2);
  text-wrap: pretty;
}

/* Ligne de définition (clé : valeur) */
.o-defs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}
.o-defs dt {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  white-space: nowrap;
}
.o-defs dd {
  margin: 0;
  min-width: 0;
}

/* Squelette de chargement */
.o-charge {
  display: flex;
  flex-direction: column;
  gap: var(--o-gap);
}
.o-charge .o-panel {
  min-height: 120px;
  padding: var(--o-pad);
  gap: 14px;
}

/* Points de couleur alignés (domaines d'une requête) */
.o-points {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Coupe un texte sur une ligne avec points de suspension (hors tableau aussi) */
.o-cut {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Finition « Optic » reprise d'OpenSEO (licence MIT, (c) 2026 Ben Senescu, github.com/every-app/open-seo), adaptée au Cockpit SEO PlanJapon. */

/* La coquille : barre latérale en groupes, carte de projet, cadre de page, en-tête, barre de filtres, menus. */

.coquille {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ═══════════════ Barre latérale ═══════════════ */
.cote {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 12px 8px;
}
.cote-marque {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 4px 6px;
  text-decoration: none;
  color: var(--o-ink);
}
/* Le logo sur un carré blanc, en clair comme en sombre (règle d'Arthur). */
.carre-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.carre-logo img {
  display: block;
  width: 20px;
  height: 22px;
  object-fit: contain;
}
.cote-marque .m-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.cote-marque .m-nom {
  font-size: var(--o-t-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cote-marque .m-nom em {
  font-style: normal;
  color: var(--marque);
}
.cote-marque .m-sous {
  margin-top: 2px;
  color: var(--o-ink-3);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* La carte de projet : le domaine choisi, et le menu des domaines. */
.projet {
  display: flex;
  align-items: stretch;
  margin: 2px 0 8px;
  border-radius: var(--o-r-ctl);
  background: var(--o-raised);
  box-shadow: inset 0 1px 0 var(--o-edge-hi), inset 0 0 0 1px var(--o-line-2);
}
.projet > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 7px 10px 7px 12px;
  border: 0;
  border-radius: var(--o-r-ctl);
  background: none;
  color: var(--o-ink);
  text-align: left;
  cursor: pointer;
}
.projet > button:hover,
.projet > button[data-ouvert] {
  background: var(--o-hover);
}
.projet > button:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: -2px;
}
.projet .p-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.projet .p-nom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--o-t-sm);
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.projet .p-sous {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.projet .ic {
  color: var(--o-ink-3);
}
.p-pastilles {
  display: inline-flex;
  gap: 3px;
}
.p-pastilles i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.cote-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px 16px;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
}
.cote-nav::-webkit-scrollbar {
  display: none;
}
.groupe + .groupe {
  margin-top: 2px;
}
.groupe-t {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  font-weight: 500;
}
.lien-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--o-r-ctl);
  color: var(--o-ink-2);
  font-size: var(--o-t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 100ms, color 100ms;
}
.lien-nav .ic {
  color: var(--o-ink-3);
}
.lien-nav span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lien-nav:hover {
  background: var(--o-hover);
  color: var(--o-ink);
}
.lien-nav:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: -2px;
}
/* L'écran ouvert : une pastille de verre, comme le segment choisi d'un contrôle. */
.lien-nav[aria-current="page"] {
  color: var(--o-ink);
  background: var(--o-lz-face);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    0 0 0 0.5px var(--o-outline),
    calc(var(--lx) * -2px) calc(var(--ly) * -3px) 6px -3px var(--o-caustic),
    calc(var(--lx) * -3px) calc(var(--ly) * -5px) 13px -4px var(--o-shade-1),
    0 1px 2px var(--o-shade-2);
}
.lien-nav[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(calc(var(--la) + 180deg), var(--o-sheen) 0%, transparent 60%);
  box-shadow:
    inset calc(var(--lx) * -1px) calc(var(--ly) * -1px) 0 0 var(--o-edge-hi),
    inset calc(var(--lx) * 2px) calc(var(--ly) * 2px) 3px -1px var(--o-edge-lo),
    inset 0 0 8px 0 var(--o-fresnel);
}
.lien-nav[aria-current="page"] .ic {
  color: var(--o-accent-text);
}
.lien-nav .n-etat {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--o-ink-4);
}
.lien-nav .n-etat[data-etat="mauvais"] {
  background: var(--o-bad);
}
.lien-nav .n-etat[data-etat="moyen"] {
  background: var(--o-warn);
}
.lien-nav[data-absent] span {
  color: var(--o-ink-3);
}
.lien-nav .o-badge {
  margin-left: auto;
}

.cote-pied {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  box-shadow: inset 0 1px 0 var(--o-line);
}
.pied-ligne {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pied-ligne .lien-nav {
  flex: 1;
  min-width: 0;
}
.cote-pied .note-gel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 2px;
  color: var(--o-ink-3);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  text-decoration: none;
}
.cote-pied .note-gel:hover {
  color: var(--o-ink-2);
}
.cote-pied .note-gel .ic {
  width: 13px;
  height: 13px;
  flex: none;
}
.bouton-theme {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--o-r-ctl);
  background: none;
  color: var(--o-ink-3);
  cursor: pointer;
}
.bouton-theme:hover {
  background: var(--o-hover);
  color: var(--o-ink);
}
.bouton-theme:focus-visible {
  outline: 2px solid var(--o-focus);
  outline-offset: -2px;
}

/* ═══════════════ Cadre de page ═══════════════ */
.o-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.o-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 var(--o-gutter) var(--o-gutter) 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--o-line-2) transparent;
}
.o-content {
  display: flex;
  flex-direction: column;
  gap: var(--o-gap);
  min-width: 0;
  max-width: 1600px;
}

/* En-tête de page : le titre, une ligne de description, les actions. */
.o-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 18px;
}
.o-page-head:not(:has(.o-page-head-text > p)) {
  align-items: center;
}
.o-page-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--o-t-xl);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.o-page-head p {
  max-width: 820px;
  margin-top: 4px;
  color: var(--o-ink-2);
  font-size: var(--o-t-md);
  line-height: 22px;
  text-wrap: pretty;
}
.o-page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Barre de filtres : verre épais, 50 px, contrôles de 40 px à 5 px du bord. */
.o-scope {
  --z: 0.7;
  --fresnel-r: 16px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--o-bar-h);
  padding: 5px;
  margin-bottom: 0;
  border-radius: var(--o-r-panel);
  background: var(--o-bar-face);
  backdrop-filter: blur(16px) saturate(1.5);
}
.o-scope > .o-seg {
  height: var(--o-h-lg);
}
.o-scope > .o-seg button {
  padding: 0 13px;
  font-size: var(--o-t-sm);
}
.o-scope .o-vsep {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  flex: none;
  background: var(--o-line-2);
  box-shadow: 1px 0 0 var(--o-edge-hi);
}
.o-scope .o-btn {
  height: var(--o-h-lg);
  padding: 0 12px;
}
.o-scope .o-grow {
  flex: 1;
}
.o-scope-fin {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 11px 0 8px;
  color: var(--o-ink-2);
  font-size: var(--o-t-xs);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.o-scope-fin .vs {
  color: var(--o-ink-3);
}
@media (max-width: 1280px) {
  .o-scope {
    flex-wrap: wrap;
  }
  .o-scope .o-grow {
    flex-basis: 100%;
    height: 0;
  }
  .o-scope-fin {
    padding: 4px 8px;
  }
}

/* ═══════════════ Menus flottants ═══════════════ */
.o-menu {
  --fresnel-r: 12px;
  --z: 0.9;
  position: fixed;
  z-index: 50;
  min-width: 220px;
  max-width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 5px;
  border-radius: var(--o-r-panel);
  background: var(--o-float-face);
  backdrop-filter: blur(20px) saturate(1.5);
  isolation: isolate;
}
.o-menu-t {
  padding: 6px 10px 4px;
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  font-weight: 500;
}
.o-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--o-line-2);
}
.o-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--o-r-ctl);
  background: none;
  color: var(--o-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.o-menu button:hover,
.o-menu button:focus-visible {
  background: var(--o-hover);
  outline: none;
}
.o-menu button .m-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.o-menu button .m-txt b {
  font-weight: 500;
}
.o-menu button .m-txt small {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
}
.o-menu button > .ic:last-child {
  color: var(--o-accent-text);
  visibility: hidden;
}
.o-menu button[aria-checked="true"] > .ic:last-child {
  visibility: visible;
}

/* En construction : un écran dont le fichier n'existe pas encore. */
.o-construction .o-msg {
  padding: 72px 24px 80px;
}

/* ═══════════════ Page d'entrée ═══════════════ */
.entree {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.entree .o-panel {
  width: 380px;
  max-width: 100%;
}
.entree .e-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px var(--o-pad) 4px;
}
.entree .e-tete .carre-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.entree .e-tete .carre-logo img {
  width: 28px;
  height: 31px;
}
.entree .e-nom {
  font-size: var(--o-t-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 24px;
}
.entree .e-nom em {
  font-style: normal;
  color: var(--marque);
}
.entree .e-sous {
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
}
.entree form {
  padding: 16px var(--o-pad) var(--o-pad);
}
.entree .o-btn-primary {
  width: 100%;
}
.entree .e-erreur {
  display: none;
}
.entree .e-erreur.vu {
  display: flex;
}
.entree .e-pied {
  padding: 12px var(--o-pad) 16px;
  box-shadow: inset 0 1px 0 var(--o-line);
  color: var(--o-ink-3);
  font-size: var(--o-t-xs);
  line-height: 16px;
}

@media (max-width: 860px) {
  .coquille {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
    height: auto;
  }
  .cote {
    max-height: none;
  }
  .cote-nav {
    max-height: 40vh;
  }
  .o-scroll {
    padding: 0 16px 16px;
  }
}
.lien-nav .o-badge {
  flex: none;
}
