:root {
  --marine:        #1d3557;
  --marine-dim:    #122440;
  --cream:         #f4ede0;
  --cream-2:       #ede5d0;
  --brique:        #e8b327;
  --brique-light:  #f3c947;
  --carmin:        #8C2F39;    
  --ink:           #1a1a1a;
  --ink-2:         #4a4a4a;
  --ink-3:         #666666;    
  --line:          #d4c9a6;
  --on-brique:     var(--marine);

  --brique-ocre:   #8a5f00;
  --brique-texte:  var(--brique-ocre);

  --cream-mute:    rgba(244, 237, 224, 0.62);
  --cream-faint:   rgba(244, 237, 224, 0.12);

  --marine-hover:  #163052;    
  --term-bg:       #0f1c30;    
  --term-border:   #0a1424;    
  --dot-red:       #ff5f56;    
  --dot-yellow:    #ffbd2e;
  --dot-green:     #27c93f;
  --canvas-bg:     #0e1d34;    
  --surface:       #ffffff;    
  --cream-3:       #e6dcc1;    
  --brique-faint:  rgba(232, 179, 39, 0.18);  
  --scrim:         rgba(18, 36, 64, 0.55);    

  --note-ko:       #c0492f;
  --note-mid:      #aa7b0e;
  --note-ok:       #276832;
  --note-ok-vif:   #3e984d;

  --marine-2:      #2e4f7a;
  --marine-3:      #426a99;
  --marine-4:      #5985b3;

  --container-max: 960px;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --mono:    'IBM Plex Mono', 'Menlo', monospace;
}

.variant-terracotta {
  --brique:        #ad4824;
  --brique-light:  #cb7048;
  --on-brique:     var(--cream);
  --brique-texte:  var(--brique);    
}

.site-header, .snav, .cterm, .ab-board, .abw-body, .pc-icon, .code-block {
  --brique-texte:  var(--brique);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--canvas-bg); }
body {
  font-family: var(--mono);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--brique); color: var(--marine); }

#tweaks-root { z-index: 9999; }

:focus-visible {
  outline: 2px solid var(--brique);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--cream);
}

.main {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  min-height: 100vh;
}

.body {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1;
  background: var(--cream);
  padding: 56px 24px 72px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.cursor-block {
  display: inline-block;
  background: var(--brique-light);
  width: 12px;
  height: 34px;
  align-self: center;
  animation: blink 1.05s steps(2, end) infinite;
}
.cursor-block.lg {
  width: 14px;
  height: 50px;
  background: var(--brique);
}
@keyframes blink { to { opacity: 0; } }

.path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: normal;
  font-size: 22px;
  color: var(--marine);
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0 0 22px;
  padding: 0;
  text-transform: lowercase;
}

.path::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 22px;
  background: var(--brique);
  animation: blink 1.05s steps(2, end) infinite;
  flex: 0 0 8px;

}

.path.path-sm {
  font-size: 16px;
  margin-bottom: 14px;
}
.path.path-sm::after {
  width: 7px;
  height: 16px;
}

@media (max-width: 640px) {
  .path {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .path::after {
    width: 7px;
    height: 18px;
  }
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--brique-texte);
  text-decoration: none;
  padding: 4px;
  margin-bottom: 22px;
  transition: color 0.15s ease, transform 0.2s ease;
}
.back-arrow:hover {
  color: var(--brique-light);
  transform: translateX(-2px);
}
.back-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.tag {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  background: var(--brique);
  color: var(--on-brique);
  line-height: 1;
  letter-spacing: -0.015em;
  user-select: none;
}
.tag.sm  { font-size: 13px; padding: 6px 10px; }
.tag.md  { font-size: 22px; padding: 10px 16px; letter-spacing: -0.02em; }
.tag.big { font-size: 56px; padding: 14px 22px; letter-spacing: -0.025em; }
.tag.marine { background: var(--marine); color: var(--cream); }

.hs-label {
  display: inline-flex;
  align-items: stretch;
}
.hs-num {
  display: flex;
  align-items: center;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 0 18px 0 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.hs-title {
  display: flex;
  align-items: center;
  background: var(--marine);
  color: var(--cream);
  font-family: var(--display);
  font-weight: normal;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  margin-left: -10px;
  padding: 12px 32px 12px 24px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.hs-label.is-petit .hs-num { font-size: 13px; padding: 0 16px 0 12px; }
.hs-label.is-petit .hs-title { font-size: 18px; padding: 9px 26px 9px 20px; }

.cta-row {
  margin-top: 28px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.cta-row:has(.lm-embed) {
  margin-top: 28px;
  padding-top: 0;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}
.cta {
  font-family: var(--display);
  background: var(--marine);
  color: var(--cream);
  padding: 14px 22px;
  font-size: 17px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
}
.cta:hover { background: var(--marine-hover); }
.cta-ghost {
  font-size: 13px;
  color: var(--ink-3);
}
.cta-ghost:hover { color: var(--marine); }

.cta-row:has(.idl) {
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  display: block;
  margin-top: 32px;
  padding: 0;
}
.cta-row:has(.idl) .idl { width: 100%; max-width: 1100px; margin: 0 auto; }

.cta-row:has(.vcf) {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 0;
}
.cta-row:has(.vcf) .vcf { max-width: 1100px; margin: 0 auto; }

.sidebar {
  background: var(--marine);
  color: var(--cream);
  padding: 36px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
}
.brand-name {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 32px;
}
.profile-photo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brique);
  background: var(--marine-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--brique-texte);
  letter-spacing: 0.01em;
}
.profile-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-name {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cream);
}
.profile-bio {
  font-size: 11px;
  line-height: 1.4;
  color: var(--cream-mute);
}
.profile-links {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}
.profile-links a {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--brique-light);
}
.profile-links a:hover { color: var(--cream); }

.sb-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 30px;
}

.sb-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-label-num,
.sb-label-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brique-texte);
  white-space: nowrap;
}
.sb-label-num { letter-spacing: 0.1em; opacity: 0.85; }
.sb-label-rule {
  flex: 1;
  height: 1px;
  background: var(--cream-faint);
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0 10px 11px;
  margin-left: -2px;
  border-bottom: 1px solid var(--cream-faint);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, padding-left 0.16s ease;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { border-left-color: var(--brique); padding-left: 14px; }
.feed-item:hover .fi-title { color: var(--brique-texte); }

.feed-item .fi-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cream-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.feed-item .fi-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--cream);
  letter-spacing: -0.005em;
  transition: color 0.15s ease;

}

.sb-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream-mute);
  font-style: italic;
  padding: 8px 0;
}

.sb-note {
  font-size: 11.5px;
  color: var(--cream-mute);
  margin-top: 4px;
  font-style: italic;
  font-family: var(--mono);
}

.side-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cream-mute);
}
.side-footer a:hover { color: var(--brique-light); }
.side-footer .sep { color: var(--cream-faint); margin: 0 6px; }

.back-link {
  font-size: 13px;
  color: var(--cream-mute);
  margin-bottom: 22px;
  display: inline-block;
}
.back-link:hover { color: var(--brique-light); }

.hamburger,
.hamburger-close,
.sidebar-overlay,
.sidebar-mobile-head { display: none; }

.hamburger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--brique);
  border: 1px solid var(--marine);
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--scrim);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--marine);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.sidebar-mobile-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hamburger-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--cream);
}
.hamburger-close:hover { color: var(--brique-light); }

.sidebar-back-desktop { margin-bottom: 18px; }

.search {
  margin-top: 30px;           
  margin-bottom: 30px;
}

.search:focus-within .cursor-inline { display: none; }

@keyframes search-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.search-line.is-shake { animation: search-shake 0.4s ease-in-out; }
.search-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cream);
  background: var(--marine-dim);
  border: 1px solid var(--cream-faint);
  border-radius: 8px;
  padding: 9px 11px;
  transition: border-color 0.16s ease;
}
.search:focus-within .search-line { border-color: var(--brique); }
.search-line .dollar { color: var(--brique-light); }
.search-line input {
  flex: 0 1 auto;
  field-sizing: content;
  min-width: 0;
  max-width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--cream);
  caret-color: transparent;
}
.search-line input:focus { caret-color: var(--brique-light); }
.search-line input::placeholder {
  color: var(--cream-mute);
  opacity: 1;
}
.search-line input:focus::placeholder {
  color: rgba(244,237,224,0.30);
}
.search-line input::placeholder { color: var(--cream-mute); }

.search-line.is-clair {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  padding: 10px 12px;
}
.search-line.is-clair:focus-within { border-color: var(--brique); }
.search-line.is-clair .dollar { color: var(--brique-texte); }
.search-line.is-clair input {
  flex: 1 1 auto;
  field-sizing: fixed;
  color: var(--ink);
  caret-color: var(--brique);
  padding: 2px;
}
.search-line.is-clair input::placeholder,
.search-line.is-clair input:focus::placeholder { color: var(--ink-3); }
.search-clear {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 2px 4px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s;
}
.search-clear:hover { color: var(--brique-texte); }

.cursor-inline {
  display: inline-block;
  color: var(--brique-light);
  animation: blink 1.05s steps(2, end) infinite;
  font-size: 14px;
  line-height: 1;
  margin-left: -2px;
}

.cat-landing {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-intro {
  padding: 8px 0 0;
  max-width: 640px;
}

.cat-intro p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.tool-detail {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tool-detail .path,
.tool-detail .tool-head {
  align-self: flex-start;
}
.tool-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}
.tool-name {
  font-family: var(--display);
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--marine);
  text-transform: uppercase;
}
.tool-lead {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  text-align: center;
}

.td-annexes { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 44px; min-width: 0; }
.td-annexes .hs-label { align-self: flex-start; margin-top: 18px; }
.td-annexes .hs-label:first-child { margin-top: 0; }
.td-annexes .file-bar.is-center { margin: 0 auto; }

.tool-detail .outil-module { flex: 1 1 100%; width: 100%; min-width: 0; }

.cat-landing .cat-proposer {
  align-self: center;
  margin-top: 36px;
  font-family: var(--mono);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.td-lance { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; }
.td-lance[hidden], .td-lance [hidden] { display: none; }
.td-lance-nom {
  min-width: 0; margin: 0 auto 0 0; padding-left: 14px; border-left: 1px solid var(--cream-faint);
  font-family: var(--display); font-size: 15px; line-height: 1.2; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.td-lance-point { color: var(--brique); }
.td-lance-btn {
  flex: none; height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  background: transparent; border: 1px solid var(--cream-faint); border-radius: 0; color: var(--cream);
  font-family: var(--mono); font-size: 11px; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.td-lance-btn:hover { border-color: var(--brique); color: var(--brique); }
.td-lance-btn:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.td-lance-dl, .td-lance-dl:hover { background: var(--brique); border-color: var(--brique); color: var(--on-brique); font-weight: 600; }
.td-lance-aide, .td-lance-plein { width: 32px; padding: 0; justify-content: center; }
.td-lance-aide { font-family: var(--display); font-size: 14px; }
.td-lance-signal { border-color: var(--brique); }
.td-lance-signe { font-family: var(--display); font-size: 13px; color: var(--brique); }

html.gt-appli-lancee .sh-search,
html.gt-appli-lancee .csub,
html.gt-appli-lancee .tool-detail > .tb,
html.gt-appli-lancee .tool-detail > .file-bar,
html.gt-appli-lancee .tool-detail > .fb-suite { display: none; }
html.gt-appli-lancee .tool-detail > .page-header {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html.gt-appli-lancee .site-main { padding-top: 0; }
html.gt-appli-lancee .tool-detail > .cta-row { margin-top: 0; }

@media (max-width: 1100px) {
  .td-lance-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .td-lance-dl, .td-lance-signal { width: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 639px) {

  html.gt-appli-lancee .snav { display: none; }
  .td-lance { gap: 4px; padding: 0 6px 0 8px; }
  .td-lance-nom { font-size: 13px; padding-left: 8px; }
  .td-lance-btn { width: 40px; height: 40px; }
}

.lm-embed {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lm-emb-tabs {
  display: flex;
  height: 60px;
  user-select: none;
}
.lm-emb-tab {
  position: relative;
  flex: 1;
  background: var(--marine);
  color: var(--cream);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  padding: 0 18px;
  transition: flex 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
  text-align: center;
}

.lm-emb-tab:nth-child(1) { background: var(--marine); }
.lm-emb-tab:nth-child(2) { background: var(--marine-2); }
.lm-emb-tab:nth-child(3) { background: var(--marine-3); }
.lm-emb-tab:nth-child(4) { background: var(--marine-4); }
.lm-emb-tab:not(:first-child) {
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 26px;
}
.lm-emb-tab:not(:last-child) {
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-right: 26px;
}
.lm-emb-tab:not(:first-child):not(:last-child) {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.lm-emb-tab.active {
  background: var(--brique);
  color: var(--on-brique);
  flex: 1.4;
}
.lm-emb-tab:hover:not(.active) {
  flex: 1.15;
}

.lm-emb-pane {
  width: 100%;
}
.lm-emb-pane.hidden { display: none; }

.lm-emb-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lm-emb-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.lm-emb-prompt .dollar {
  color: var(--brique-texte);
  margin-right: 4px;
  font-weight: 600;
}

.lm-emb-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
}
.lm-emb-option input { cursor: pointer; }
.lm-emb-foot {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.lm-emb-fullscreen {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.lm-emb-fullscreen:hover {
  color: var(--brique-texte);
}

.idl-embed {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}
.idl-emb-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.idl-emb-prompt .dollar {
  color: var(--brique-texte);
  margin-right: 4px;
  font-weight: 600;
}
.idl-emb-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
.idl-emb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idl-emb-field .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 2px;
}
.idl-emb-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.15s ease;
}
.idl-emb-field input:focus {
  border-color: var(--brique);
}
.idl-emb-field input::placeholder {
  color: var(--ink-3);
  opacity: 0.7;
}

.idl-emb-cta {
  background: var(--marine);
  color: var(--cream);
  border: 0;
  border-radius: 0;
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  align-self: flex-start;
  margin-top: 4px;
}
.idl-emb-cta:hover { background: var(--marine-hover); }

.idl-emb-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-style: italic;
  padding-left: 2px;
  margin-top: -2px;
}

.rg-app, .rg-cal-pop {
  --heure-nuit: var(--marine);
  --heure-matin: var(--marine-4);
  --heure-midi: var(--brique);
  --heure-soir: var(--note-ko);
}

.rg-lanceur .rg-dossier, .fy-lanceur .rg-dossier {
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--marine);
  border-bottom: 1px solid var(--brique);
  padding: 2px 0;
  cursor: pointer;
}
.rg-lanceur .rg-dossier:hover, .fy-lanceur .rg-dossier:hover { color: var(--brique-texte); }
.rg-lanceur .lm-emb-pane:not(.hidden) { display: flex; flex-direction: column; gap: 14px; }
.rg-bientot {
  margin: 0;
  padding: 26px 22px;
  border: 1px dashed var(--line);
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.rg-occupe { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding: 34px 16px; text-align: center; margin: 0; }

.rg-en-lecture .outil-page > .container { max-width: none; padding: 0; }
.rg-en-lecture .outil-page > .container > .outil-h1,
.rg-en-lecture .outil-page > .container > .outil-sub { display: none; }
.rg-en-lecture [data-rg-verdict] {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(720px, calc(100vw - 32px));
  box-shadow: 0 10px 30px var(--scrim);
}
.rg-en-lecture [data-rg-verdict]:empty { display: none; }
.rg-app { font-family: var(--mono); color: var(--ink); background: var(--cream); }
.rg-app [hidden] { display: none !important; }

.rg-barre {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 72px 0 22px;    
  background: var(--marine);
  color: var(--cream);
  min-width: 0;
}
.rg-marque { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.rg-marque .pt { color: var(--brique); }
.rg-source {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  background: var(--brique);
  color: var(--on-brique);
}
.rg-compte { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rg-fichier { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--cream-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-fuseau {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; flex: none;
  font-family: var(--mono); font-size: 11px; color: var(--cream); white-space: nowrap; cursor: pointer;
  background: transparent; border: 1px solid var(--cream-faint);
}
.rg-fuseau:hover, .rg-fuseau[aria-expanded="true"] { border-color: var(--brique); background: var(--cream-faint); }
.rg-fuseau:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.rg-fuseau-k { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-mute); }
.rg-fuseau-v { color: var(--cream); }
.rg-fuseau b { font-weight: 600; color: var(--brique); font-variant-numeric: tabular-nums; }
.rg-fuseau svg { width: 14px; height: 14px; fill: none; stroke: var(--cream-mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.rg-fuseau[aria-expanded="true"] svg { transform: rotate(180deg); }

.rg-cal-pop.rg-zone-pop { width: min(360px, calc(100vw - 16px)); max-height: calc(100vh - 16px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.rg-zone-tete { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.rg-zone-tete strong { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--marine); }
.rg-zone-tete small { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.5; color: var(--ink-3); }
.rg-zone-corps { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 10px; }
.rg-zone-corps h4 { margin: 12px 8px 4px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rg-zone-liste { list-style: none; margin: 0; padding: 0; }
.rg-zone-l {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; text-align: left; cursor: pointer;
  font-family: var(--mono); background: transparent; border: 0; box-shadow: inset 3px 0 0 transparent;
}
.rg-zone-l:hover { background: var(--cream-2); }
.rg-zone-l:focus-visible { outline: 2px solid var(--brique); outline-offset: -2px; }
.rg-zone-l.is-choisi { background: var(--brique-faint); box-shadow: inset 3px 0 0 var(--brique); }
.rg-zone-nom { flex: 1; min-width: 0; font-size: 12.5px; color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-zone-l.is-choisi .rg-zone-nom { font-weight: 600; }
.rg-zone-nom small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-zone-l code { flex: none; font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rg-zone-l.is-choisi code { color: var(--brique-texte); font-weight: 600; }
.rg-zone-cherche { display: flex; align-items: center; gap: 8px; margin: 0 8px; padding: 0 10px; border: 1px solid var(--line); background: var(--cream-2); }
.rg-zone-cherche:focus-within { border-color: var(--marine); background: var(--surface); }
.rg-zone-cherche svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.rg-zone-cherche input { flex: 1; min-width: 0; padding: 9px 0; font-family: var(--mono); font-size: 12px; color: var(--ink); background: transparent; border: 0; outline: 0; }
[data-zone-trouves]:not(:empty) { margin-top: 4px; }
.rg-zone-rien { padding: 8px 10px; font-size: 11px; color: var(--ink-3); }
.rg-zone-fixe { display: flex; align-items: center; gap: 6px; margin: 0 8px; }
.rg-zone-fixe output { min-width: 96px; padding: 6px 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-zone-fixe .rg-btn { margin-left: auto; padding: 8px 12px; }
.rg-zone-pop .rg-cal-pied { margin: 0; padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--line); }

.rg-nouvelle { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: -0.01em; padding: 9px 14px; border: 1px solid var(--cream-faint); background: transparent; color: var(--cream); cursor: pointer; white-space: nowrap; }
.rg-nouvelle:hover { background: var(--cream-faint); }
.rg-nouvelle.rg-rapport-btn { border-color: var(--brique); background: var(--brique); color: var(--on-brique); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-right: 20px; }
.rg-nouvelle.rg-rapport-btn:hover { background: var(--brique-light); }
.rg-menu { display: none; background: none; border: 0; padding: 4px; color: inherit; cursor: pointer; }
.rg-menu svg, .rg-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.rg-espace { height: calc(100dvh - 56px); display: grid; grid-template-columns: 300px minmax(0, 1fr); position: relative; }

.rg-cote { background: var(--cream); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rg-nav { display: flex; flex-direction: column; padding: 12px 10px; border-bottom: 1px solid var(--line); gap: 2px; }
.rg-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--marine);
  font-family: var(--display);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.rg-nav button span { flex: 1; }
.rg-nav button small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.rg-nav-groupe { display: block; margin: 10px 11px 4px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rg-nav-groupe:first-child { margin-top: 2px; }
.rg-nav-num { flex: none; width: 30px; padding: 3px 0; font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--brique-texte); }
.rg-nav button:hover { background: var(--cream-2); }
.rg-nav button.is-choisi { background: var(--marine); color: var(--cream); }
.rg-nav button.is-choisi small { color: var(--cream-mute); }
.rg-nav button.is-choisi .rg-nav-num { background: var(--brique); color: var(--on-brique); text-align: center; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.rg-cat-titre { padding: 18px 21px 10px; }
.rg-cat-titre h2 { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--marine); margin: 0 0 5px; }
.rg-cat-titre h2 .pt { color: var(--brique); }
.rg-cat-titre p { font-size: 10px; line-height: 1.7; color: var(--ink-3); margin: 0; }

.rg-genres { display: flex; flex-wrap: wrap; row-gap: 4px; margin-top: 9px; }

.rg-genres button { font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em; min-height: 30px; padding: 0 17px 0 18px; margin-left: -4px; border: 0; background: var(--cream-3); color: var(--marine); cursor: pointer; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.rg-genres button:first-child { margin-left: 0; padding-left: 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.rg-genres button b { margin-left: 3px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rg-genres button:hover { background: var(--line); }
.rg-genres button[aria-pressed="true"] { background: var(--brique); color: var(--on-brique); }
.rg-genres button[aria-pressed="true"] b { color: var(--marine); }
.rg-genres button:focus-visible { outline: 2px solid var(--marine); outline-offset: -5px; }

.rg-genres.is-colonne { flex-wrap: nowrap; }
.rg-genres.is-colonne button { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 38px; padding: 0 10px 0 12px; font-size: 10px; white-space: nowrap; }
.rg-genres.is-colonne button:first-child { padding-left: 8px; }
.rg-genres.is-colonne button b { margin: 0; font-size: 10px; }

.rg-outils { display: flex; flex-direction: column; gap: 8px; margin: 0 12px 10px; padding: 10px; background: var(--marine); }
.rg-outils .rg-chercher { background: var(--cream-faint); border-color: transparent; }
.rg-outils .rg-chercher:focus-within { border-color: var(--brique); }
.rg-outils .rg-chercher svg { stroke: var(--cream-mute); }
.rg-outils .rg-chercher input { color: var(--cream); caret-color: var(--brique); }
.rg-outils .rg-chercher input::placeholder { color: var(--cream-mute); }
.rg-barre-tri { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }

.rg-tog {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.rg-tog svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rg-tog b { margin-left: 6px; font-weight: 500; font-size: 11px; font-variant-numeric: tabular-nums; }
.rg-tog .lbl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.2s ease, opacity 0.15s ease, margin 0.2s ease; }
.rg-tog:hover .lbl, .rg-tog.on .lbl { max-width: 190px; opacity: 1; margin-left: 6px; }
.rg-tog:hover { background: var(--cream-2); color: var(--marine); }
.rg-tog.on { color: var(--marine); box-shadow: inset 0 -2px 0 var(--brique); }
.rg-tog:focus-visible { outline: 2px solid var(--brique); outline-offset: 1px; }
.rg-outils .rg-tog { color: var(--cream-mute); }
.rg-outils .rg-tog:hover { background: var(--cream-faint); color: var(--cream); }
.rg-outils .rg-tog.on { color: var(--brique); box-shadow: none; background: transparent; }
.rg-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); }
.rg-outils .rg-sep { background: var(--cream-faint); }
.rg-togs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rg-resume .rg-lien { font-size: 10px; margin-left: 6px; }

.rg-chercher, .rg-cal-champ, .rg-tri {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.rg-chercher:focus-within, .rg-cal-champ:focus-within, .rg-tri:focus-within { border-color: var(--brique); }
.rg-chercher svg, .rg-cal-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-chercher { gap: 9px; padding: 0 11px; cursor: text; }
.rg-chercher input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 12px; color: var(--marine); }
.rg-chercher input::placeholder { color: var(--ink-3); }
.rg-cal-btn {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}
.rg-cal-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-cal-btn:hover { background: var(--cream-faint); }
.rg-cal-champ.is-actif { border-color: var(--brique); background: var(--brique-faint); }
.rg-cal-champ.is-actif .rg-cal-btn { color: var(--marine); font-weight: 600; }
.rg-cal-champ.is-actif .rg-cal-btn svg { stroke: var(--brique-texte); }
.rg-cal-effacer { flex: none; width: 34px; height: 100%; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-3); cursor: pointer; }
.rg-cal-effacer svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rg-cal-effacer:hover { color: var(--brique-texte); }
.rg-cal-champ.is-barre { width: 330px; height: 36px; }
.rg-cal-champ.is-grand { width: min(360px, 100%); height: 44px; }
.rg-tri { gap: 8px; padding: 0 0 0 11px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rg-tri select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--marine);
  cursor: pointer;
}
.rg-resume { margin: 0; padding: 0 21px 6px; font-size: 10px; line-height: 1.6; color: var(--ink-3); min-height: 6px; }
.rg-liste { flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 0 10px 12px; }
.rg-item { border: 1px solid transparent; margin: 2px 0; }
.rg-item.is-choisi { background: var(--brique-faint); border-color: var(--brique); }
.rg-conv {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--marine);
  cursor: pointer;
}
.rg-item:not(.is-choisi) .rg-conv:hover { background: var(--cream-2); }
.rg-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--marine);
  font-family: var(--display);
  font-size: 11px;
  color: var(--cream);
}
.rg-item.is-choisi .rg-avatar { background: var(--brique); color: var(--on-brique); }
.rg-conv-texte { min-width: 0; }
.rg-conv strong { display: block; font-family: var(--display); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-conv strong em { font-family: var(--mono); font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brique-texte); }
.rg-conv small { display: block; margin-top: 5px; font-size: 9.5px; color: var(--ink-3); }
.rg-hits { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 9px 54px; }
.rg-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.rg-hit:hover { border-left-color: var(--brique); background: var(--cream-2); }
.rg-hit span { display: block; font-size: 9.5px; color: var(--ink-3); margin-bottom: 2px; }
.rg-hit mark { background: var(--brique-light); color: var(--ink); padding: 0 1px; }
.rg-hit-plus { font-size: 9.5px; color: var(--ink-3); padding: 2px 10px; }
.rg-sous-titre { margin: 16px 11px 4px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-vide { font-size: 11px; color: var(--ink-3); padding: 10px 11px; margin: 0; }
.rg-cote-pied { border-top: 1px solid var(--line); padding: 13px 18px; margin: 0; font-size: 9.5px; line-height: 1.7; color: var(--ink-3); }

.rg-droite { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--cream); }
.rg-panneau { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rg-vue-barre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  min-width: 0;
}
.rg-vue-titre { flex: 1; min-width: 0; }
.rg-vue-titre strong { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-vue-titre .hs-label { max-width: 100%; }
.rg-vue-titre .hs-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rg-vue-titre small { display: block; margin-top: 7px; font-size: 10px; line-height: 1.5; color: var(--ink-3); }
.rg-vue-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.rg-btn { font-family: var(--mono); font-size: 12px; padding: 7px 2px 5px; border: 0; border-bottom: 1px solid var(--brique); background: transparent; color: var(--marine); cursor: pointer; white-space: nowrap; }
.rg-btn:hover { border-bottom-width: 2px; padding-bottom: 4px; }
.rg-btn[aria-pressed="true"] { font-weight: 600; border-bottom: 3px solid var(--brique); padding-bottom: 3px; }
.rg-btn svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rg-btn.is-plein { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: -0.01em; padding: 10px 16px; border: 0; background: var(--marine); color: var(--cream); }
.rg-btn.is-plein:hover { background: var(--marine-hover); padding-bottom: 10px; }
.rg-btn.is-plein svg { fill: var(--brique); stroke: var(--brique); }
.rg-btn:disabled { opacity: 0.45; cursor: default; }
.rg-defilant { flex: 1; min-height: 0; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 26px; }
.rg-conv-corps { flex: 1; min-height: 0; display: flex; position: relative; }
.rg-visionneuse { flex: 1; min-width: 0; border: 0; width: 100%; height: 100%; background: var(--cream); }
.rg-conv-stats {
  width: 360px;
  flex: none;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--cream);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rg-app .summary-bar { margin: 0; }
.rg-mini-chiffres .summary-bar .sb-cell { flex: 1 1 90px; padding: 12px 12px; gap: 6px; }
.rg-mini-chiffres .sb-v { font-size: 22px; }
.rg-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }

.rg-stats-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rg-stats-grille.is-compact { grid-template-columns: minmax(0, 1fr); }
.rg-carte-stat { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rg-carte-stat h3 { margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rg-graphe { width: 100%; height: auto; display: block; overflow: visible; }
.rg-axe { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-3); }
.is-compact .rg-axe { font-size: 9.5px; }
.rg-grille-l { stroke: var(--line); stroke-width: 1; }
.rg-cible { fill: transparent; }
g[data-t]:hover .rg-cible { fill: var(--cream-faint); }
.rg-s-envoyes { fill: var(--brique); background: var(--brique); }
.rg-s-recus { fill: var(--marine); background: var(--marine); }
.rg-h0 { fill: var(--cream-2); background: var(--cream-2); }
.rg-h1, .rg-h2, .rg-h3, .rg-h4 { fill: var(--marine); background: var(--marine); }
.rg-h1 { fill-opacity: 0.18; opacity: 1; }
.rg-h2 { fill-opacity: 0.4; }
.rg-h3 { fill-opacity: 0.65; }
.rg-h4 { fill-opacity: 0.92; }
.rg-legende i.rg-h1 { opacity: 0.18; }
.rg-legende i.rg-h2 { opacity: 0.4; }
.rg-legende i.rg-h3 { opacity: 0.65; }
.rg-legende i.rg-h4 { opacity: 0.92; }
rect[data-t]:hover { stroke: var(--brique); stroke-width: 1.5; }
.rg-legende { display: flex; align-items: center; gap: 14px; font-size: 10.5px; color: var(--ink-2); }
.rg-legende span { display: inline-flex; align-items: center; gap: 6px; }
.rg-legende i { display: inline-block; width: 10px; height: 10px; }
.rg-paliers { gap: 2px; }
.rg-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rg-barres li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 11px; }
.rg-barres-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rg-barres-piste { height: 8px; background: var(--cream-2); }
.rg-barres-piste i { display: block; height: 100%; background: var(--marine); }
.rg-barres-v { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rg-bulle {
  position: fixed;
  z-index: 1100;
  pointer-events: none;
  max-width: 280px;
  padding: 6px 10px;
  background: var(--marine);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 6px 18px var(--scrim);
}

.rg-recherche { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.rg-recherche input { font-family: var(--mono); font-size: 13px; background: transparent; border: 0; outline: 0; min-width: 0; }
.rg-section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rg-section > .hs-label { align-self: flex-start; margin: 0; }
.rg-section-tete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.rg-section-tete .hs-label { margin: 0; }
.rg-fiches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rg-table { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rg-table figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.rg-table figcaption span { font-size: 11px; letter-spacing: 0; color: var(--brique-texte); font-weight: 600; }
.rg-defile { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.rg-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; }
.rg-table th, .rg-table td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.rg-table tr:last-child > * { border-bottom: 0; }
.rg-table thead th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--cream-2);
  white-space: nowrap;
}
.rg-table td { color: var(--ink); overflow-wrap: anywhere; }
.rg-table tbody tr:hover { background: var(--cream-faint); }
.rg-table .is-nb { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-table.is-fiche tbody th { width: 42%; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.rg-table.is-fiche td { font-weight: 600; color: var(--marine); }
.rg-repli { display: none; }
.rg-table.is-ouvert .rg-repli, .is-filtre .rg-repli { display: table-row; }
.is-filtre .rg-plus { display: none; }
.rg-plus { align-self: flex-start; }
.rg-lien {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--marine);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--brique);
  padding: 2px 0;
  cursor: pointer;
}
.rg-lien:hover { color: var(--brique-texte); }
.rg-interlocuteurs td { vertical-align: middle; overflow-wrap: normal; }
.rg-lien-conv { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--marine); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.rg-lien-conv:hover { color: var(--brique-texte); text-decoration: underline; }
.rg-tag { font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brique-texte); }
.rg-col-barre { width: 34%; min-width: 140px; }
.rg-duo { display: flex; gap: 2px; height: 10px; }
.rg-duo i { display: block; height: 100%; }

.rg-carte-zone { flex: 1; min-height: 360px; position: relative; }
.rg-carte { position: absolute; inset: 0; background: var(--cream-2); }
.rg-carte-panneau {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  width: 264px;
  max-width: calc(100% - 28px);
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--marine);
  box-shadow: 0 10px 28px var(--scrim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rg-carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 0 0 4px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-carte-titre span { font-size: 15px; letter-spacing: 0; color: var(--marine); }
.rg-carte-contenu { display: flex; flex-direction: column; gap: 6px; }
.rg-carte-panneau.is-replie { width: auto; padding: 10px 12px 6px; }
.rg-carte-panneau.is-replie .rg-carte-contenu { display: none; }
.rg-carte-panneau h3 { margin: 4px 0 2px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-carte-panneau h3 + .rg-calque { margin-top: 0; }
.rg-carte-panneau p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }
.rg-calque { display: flex; align-items: center; gap: 9px; padding: 6px 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--cream-2); }
.rg-calque input { accent-color: var(--marine); margin: 0; width: 14px; height: 14px; cursor: pointer; }
.rg-calque .sw { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.rg-calque .sw.is-losange { border-radius: 2px; transform: rotate(45deg) scale(0.86); }

.rg-losange { display: block; width: 13px; height: 13px; border: 2px solid var(--surface); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 1px 3px var(--scrim); }
.rg-calque-nom { flex: 1; }
.rg-calque .nb { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-calque.is-vide { opacity: 0.45; cursor: default; }
.rg-calque:has(input:not(:checked)) .rg-calque-nom, .rg-calque:has(input:not(:checked)) .sw { opacity: 0.45; }
.rg-heure-barre { height: 10px; border-radius: 5px; margin-top: 2px; }
.rg-heure-axe { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-3); }
.rg-carte-astuce { display: flex; gap: 8px; align-items: flex-start; padding-top: 8px; border-top: 1px dashed var(--line); }
.rg-carte-astuce svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brique-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.rg-pop { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 11.5px; color: var(--ink); min-width: 180px; }
.rg-pop strong { font-family: var(--display); font-weight: 400; font-size: 13px; color: var(--marine); }
.rg-pop small { font-size: 10px; color: var(--ink-3); }
.rg-frise {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  z-index: 500;
  padding: 12px 16px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px var(--scrim);
  max-height: 46%;
  overflow: auto;
}
.rg-frise-ligne { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 24px; }
.rg-frise-jour { font-size: 11px; font-weight: 600; color: var(--marine); white-space: nowrap; }
.rg-frise-jour small { display: block; font-weight: 400; font-size: 9.5px; color: var(--ink-3); }
.rg-frise-piste { position: relative; height: 22px; background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.rg-frise-pt {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  padding: 0;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.12s;
}
.rg-frise-pt.is-souvenir, .rg-frise-pt.is-recherche { border-radius: 2px; transform: rotate(45deg); }
.rg-frise-pt:hover, .rg-frise-pt:focus-visible { transform: scale(1.5); z-index: 2; outline: none; }
.rg-frise-pt.is-souvenir:hover, .rg-frise-pt.is-recherche:hover { transform: rotate(45deg) scale(1.5); }
.rg-frise-ligne.is-axe { min-height: 16px; }
.rg-frise-axe { position: relative; height: 14px; }
.rg-frise-axe span { position: absolute; transform: translateX(-50%); font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.rg-frise-axe span:first-child { transform: none; }
.rg-frise-axe span:last-child { transform: translateX(-100%); }
.rg-calque:focus-visible, .rg-lien:focus-visible, .rg-dossier:focus-within, .rg-btn:focus-visible, .rg-conv:focus-visible, .rg-hit:focus-visible, .rg-nav button:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }

@media (max-width: 900px) {
  .rg-menu { display: block; }
  .rg-fichier, .rg-fuseau-k, .rg-fuseau-v { display: none; }
  .rg-barre { gap: 10px; padding: 0 60px 0 12px; }
  .rg-espace { grid-template-columns: minmax(0, 1fr); }
  .rg-cote { position: absolute; inset: 0 auto 0 0; width: min(320px, 88vw); z-index: 50; box-shadow: 10px 0 30px var(--scrim); transform: translateX(-105%); transition: transform 0.2s; }
  .rg-cote.is-ouvert { transform: translateX(0); }
  .rg-stats-grille { grid-template-columns: minmax(0, 1fr); }
  .rg-conv-stats { position: absolute; inset: 0 0 0 auto; width: min(360px, 100%); z-index: 5; }
}
@media (max-width: 560px) {
  .rg-marque, .rg-compte { display: none; }
  .rg-long { display: none; }    
  .rg-vue-barre { flex-wrap: wrap; padding: 12px 14px; }
  .rg-vue-titre { flex-basis: 100%; }
  .rg-vue-actions { justify-content: flex-start; }
  .rg-defilant { padding: 16px 14px; }
  .rg-carte-panneau { width: 220px; }
  .rg-frise-axe span:nth-child(even) { display: none; }
  .rg-frise { left: 8px; right: 8px; bottom: 18px; padding: 10px 10px 6px; }
  .rg-frise-ligne { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .rg-fiches { grid-template-columns: minmax(0, 1fr); }
  .rg-table th, .rg-table td { padding: 7px 9px; }
}

.rg-cal-pop {
  position: fixed;
  z-index: 1200;
  width: min(318px, calc(100vw - 16px));
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brique);
  box-shadow: 0 14px 36px var(--scrim);
  font-family: var(--mono);
  color: var(--ink);
}
.rg-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rg-cal-nav { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--marine); font-family: var(--mono); font-size: 16px; line-height: 1; cursor: pointer; }
.rg-cal-nav:hover:not(:disabled) { background: var(--cream-2); }
.rg-cal-nav:disabled { opacity: 0.3; cursor: default; }
.rg-cal-titre { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rg-cal-titre > span { display: flex; align-items: center; gap: 8px; }
.rg-cal-titre > small { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }
.rg-cal-an { font-family: var(--display); font-size: 15px; color: var(--marine); background: var(--surface); border: 1px solid var(--line); padding: 2px 4px; cursor: pointer; }
.rg-cal-an:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.rg-cal-mois { border: 0; background: none; cursor: pointer; font-family: var(--display); font-size: 15px; color: var(--marine); text-transform: capitalize; padding: 2px 0; }
.rg-cal-mois small { display: block; font-family: var(--mono); font-size: 9.5px; text-transform: none; color: var(--ink-3); margin-top: 2px; }
.rg-cal-mois:hover { color: var(--brique-texte); }
.rg-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rg-cal-sj { font-size: 10px; color: var(--ink-3); text-align: center; padding: 3px 0; }
.rg-cal-j {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  background: var(--cream-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: box-shadow 0.1s;
}
.rg-cal-j:hover { box-shadow: inset 0 0 0 2px var(--brique); }
.rg-cal-j.is-calme { background: transparent; color: var(--ink-3); }
.rg-cal-j.rg-act1 { background: color-mix(in srgb, var(--marine) 16%, var(--surface)); }
.rg-cal-j.rg-act2 { background: color-mix(in srgb, var(--marine) 36%, var(--surface)); }
.rg-cal-j.rg-act3 { background: color-mix(in srgb, var(--marine) 62%, var(--surface)); color: var(--cream); }
.rg-cal-j.rg-act4 { background: var(--marine); color: var(--cream); }
.rg-cal-j.is-choisi { box-shadow: inset 0 0 0 3px var(--brique); font-weight: 700; }
.rg-cal-j.is-choisi::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; background: var(--brique); }
.rg-cal-pos { position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brique); }
.rg-cal-legende { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 10px; color: var(--ink-3); }
.rg-cal-legende i { display: inline-block; width: 10px; height: 10px; }
.rg-cal-legende .rg-act1 { background: color-mix(in srgb, var(--marine) 16%, var(--surface)); }
.rg-cal-legende .rg-act2 { background: color-mix(in srgb, var(--marine) 36%, var(--surface)); }
.rg-cal-legende .rg-act3 { background: color-mix(in srgb, var(--marine) 62%, var(--surface)); }
.rg-cal-legende .rg-act4 { background: var(--marine); }
.rg-cal-legende .rg-cal-pos { position: static; display: inline-block; margin: 0 5px 0 0; width: 6px; height: 6px; vertical-align: middle; }
.rg-cal-gestes { margin: 8px 0 0; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }
.rg-cal-gestes kbd { font-family: var(--mono); font-size: 9px; padding: 0 4px; border: 1px solid var(--line); background: var(--cream-2); }
.rg-cal-pied { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-2); }
.rg-cal-pied > span { flex: 1; min-width: 0; color: var(--marine); font-weight: 600; }
.rg-cal-pied .rg-btn { padding: 8px 12px; }
.rg-paliers { display: inline-flex; gap: 2px; }

.rg-gal-outils { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.rg-gal-outils[hidden] { display: none; }
.rg-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-puce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.rg-puce span { font-size: 10.5px; }
.rg-puce[aria-pressed="true"] { color: var(--marine); background: var(--surface); border-color: var(--marine); box-shadow: inset 0 -2px 0 var(--brique); }
.rg-puce:hover { border-color: var(--marine-3); }
.rg-vide-grand { margin: 40px auto; font-size: 13px; color: var(--ink-3); text-align: center; }
.rg-gal-jour { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 -14px; font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--marine); }
.rg-gal-jour span { font-family: var(--mono); font-size: 10.5px; text-transform: none; color: var(--ink-3); }

.rg-gal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.rg-tuile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--cream-3);
  cursor: zoom-in;
  box-shadow: inset 3px 0 0 var(--marine-4);
}
.rg-tuile.is-envoye { box-shadow: inset 3px 0 0 var(--brique-texte); }
.rg-tuile-fond { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.rg-tuile-fond img, .rg-tuile-fond video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }    
.rg-tuile-fond > svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-tuile.is-audio { background: var(--cream-2); }
.rg-tuile.is-audio .rg-tuile-fond { color: var(--marine-3); }
.rg-tuile-badge { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--scrim); color: var(--cream); }
.rg-tuile-badge svg { width: 12px; height: 12px; fill: currentColor; }
.rg-tuile-legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  padding: 16px 8px 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cream);
  background: linear-gradient(transparent, var(--scrim));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.rg-tuile.is-audio .rg-tuile-legende { color: var(--ink-2); background: none; }
.rg-tuile:hover .rg-tuile-fond img, .rg-tuile:hover .rg-tuile-fond video { transform: scale(1.04); transition: transform 0.25s; }
.rg-tuile:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; }
.rg-tuile.is-illisible .rg-tuile-fond::after { content: "illisible"; font-size: 10px; }
.rg-gal-suite { align-self: center; }

.rg-visu {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--scrim);
  backdrop-filter: blur(2px);
}

.rg-visu-cadre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(800px, calc(100dvh - 48px));
  background: var(--term-bg);
  box-shadow: 0 24px 60px var(--scrim);
}
.rg-visu-media { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; height: 100%; padding: 18px; box-sizing: border-box; overflow: hidden; }
.rg-visu-media img, .rg-visu-media video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rg-visu-media .rg-occupe { color: var(--cream-mute); }
.rg-visu-audio { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--cream); }
.rg-visu-audio svg { width: 90px; height: 90px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.rg-visu-info { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; background: var(--cream); font-family: var(--mono); overflow: auto; }
.rg-visu-fermer { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.rg-visu-fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rg-visu-fermer:hover { color: var(--marine); }
.rg-visu-quand { margin: 8px 30px 0 0; font-size: 11.5px; color: var(--ink-2); }
.rg-visu-quand b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--marine); text-transform: none; margin-top: 4px; }
.rg-visu-info dl { margin: 0; display: grid; gap: 4px; }
.rg-visu-info dt { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.rg-visu-info dd { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--marine); overflow-wrap: anywhere; }
.rg-visu-info dd.rg-visu-fichier { font-weight: 400; font-size: 11px; color: var(--ink-2); }
.rg-visu-aller { margin-top: auto; padding: 13px 16px; font-size: 12.5px; }
.rg-visu-pas { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--ink-3); }
.rg-visu-pas .rg-btn { padding: 8px 10px; font-size: 10.5px; }

.rg-chrono { gap: 22px; }
.rg-ch-aide { font-size: 10.5px; color: var(--ink-3); }
.rg-ch-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.rg-ch-liste li + li { border-top: 1px solid var(--cream-2); }
.rg-ch-ligne {
  display: grid;
  grid-template-columns: 74px 104px minmax(0, 13em) minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.rg-ch-ligne:hover { background: var(--cream-faint); box-shadow: inset 3px 0 0 var(--brique); }
.rg-ch-heure { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-ch-heure i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.rg-ch-nature { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.is-envoye .rg-ch-nature { color: var(--brique-texte); }
.is-recu .rg-ch-nature { color: var(--marine-3); }
.is-manque .rg-ch-nature, .is-efface .rg-ch-nature { color: var(--note-ko); }
.is-trace .rg-ch-nature, .is-souvenir .rg-ch-nature, .is-recherche .rg-ch-nature { color: var(--note-ok); }
.rg-ch-qui { font-weight: 600; color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ch-qui small { display: block; font-weight: 400; font-size: 10px; color: var(--ink-3); }
.rg-ch-texte { color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.rg-ch-texte em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.rg-ch-accueil { max-width: 640px; display: flex; flex-direction: column; gap: 14px; margin: 10px auto 0; }
.rg-ch-accueil h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--marine); }
.rg-ch-accueil p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.rg-ch-accueil h4 { margin: 18px 0 0; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-ch-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }

.rg-ch-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 0 12px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); text-align: center; cursor: pointer; }
.rg-ch-jour-sem { align-self: stretch; padding: 6px 4px; background: var(--marine); color: var(--cream); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.rg-ch-jour b { margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: var(--marine); }
.rg-ch-jour-mois { font-size: 11px; color: var(--ink-2); }
.rg-ch-jour small { margin-top: 6px; padding: 0 8px; font-size: 10px; line-height: 1.4; color: var(--ink-3); }
.rg-ch-jour:hover .rg-ch-jour-sem, .rg-ch-jour:focus-visible .rg-ch-jour-sem { background: var(--brique); color: var(--on-brique); }
.rg-ch-jour:hover { border-color: var(--brique); }

@media (max-width: 900px) {
  .rg-visu { padding: 0; }
  .rg-visu-cadre { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100dvh; }
  .rg-visu-info { max-height: 46vh; }
  .rg-cal-champ.is-barre { width: 100%; }
}
@media (max-width: 560px) {
  .rg-gal-outils { padding: 10px 14px; }
  .rg-gal-grille { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 5px; }
  .rg-ch-ligne { grid-template-columns: 62px minmax(0, 1fr); gap: 4px 10px; }
  .rg-ch-nature { grid-column: 2; grid-row: 1; }
  .rg-ch-qui, .rg-ch-texte { grid-column: 2; }
}

.rg-tuile-origine {
  position: absolute; top: 7px; left: 10px; width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--marine); color: var(--brique);
}
.rg-tuile-origine svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-tuile.is-hors { box-shadow: inset 3px 0 0 var(--line); }
.rg-tuile.is-hors .rg-tuile-fond img { opacity: 0.92; }
.rg-tuile-calque { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rg-visu-pile { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.rg-visu-pile > * { grid-area: 1 / 1; }
.rg-visu-media .rg-visu-pile img, .rg-visu-media .rg-visu-pile video { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.rg-visu-media .rg-visu-pile .rg-visu-calque { pointer-events: none; }

.rg-fiche-compte { gap: 30px; }
.rg-titulaire {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 36px;
  align-items: center;
  padding: 26px 28px;
  background: var(--marine);
  color: var(--cream);
  box-shadow: inset 4px 0 0 var(--brique);
  --brique-texte: var(--brique);
}
.rg-tit-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.rg-tit-mono {
  flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center;
  background: var(--brique); color: var(--marine); font-family: var(--display); font-size: 26px; letter-spacing: -0.02em;
}
.rg-tit-noms { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-tit-sur { margin: 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brique); }
.rg-titulaire h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.05; color: var(--cream); overflow-wrap: anywhere; }
.rg-tit-nom { margin: 0; font-size: 13.5px; color: var(--cream-mute); }
.rg-tit-puces { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-tit-puces li { padding: 4px 9px; font-size: 10.5px; color: var(--cream-mute); border: 1px solid var(--cream-faint); }
.rg-tit-puces b { font-weight: 600; color: var(--cream); }
.rg-tit-reperes { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(9.5em, auto)); }
.rg-tit-reperes > div { padding: 4px 18px; border-left: 1px solid var(--cream-faint); min-width: 0; }
.rg-tit-reperes dt { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brique); }
.rg-tit-reperes dd { margin: 8px 0 0; font-size: 17px; font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rg-tit-reperes dt, .rg-tit-reperes small { white-space: nowrap; }
.rg-tit-reperes small { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 400; color: var(--cream-mute); }

.rg-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.rg-piece { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s; }
.rg-piece:hover { border-color: var(--marine-3); }
.rg-piece > header { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); }
.rg-piece-ico { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; background: var(--marine); color: var(--brique); }
.rg-piece-ico svg, .rg-copier svg, .rg-fiche-compte .rg-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-piece h3 { flex: 1; min-width: 0; margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rg-piece > header b { font-size: 11px; color: var(--brique-texte); }
.rg-copier {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-family: var(--mono); font-size: 10.5px;
  color: var(--marine); background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.rg-copier:hover { border-color: var(--marine); background: var(--cream-2); }
.rg-copier .lbl { display: none; }
.rg-copier.is-copie .lbl { display: inline; }
.rg-copier.is-copie, .rg-fiche-compte .rg-btn.is-copie { color: var(--note-ok); border-color: var(--note-ok); }
.rg-fiche-compte .rg-btn { display: inline-flex; align-items: center; gap: 8px; }
.rg-piece ul { list-style: none; margin: 0; padding: 0; }
.rg-piece li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-top: 1px dashed var(--line); }
.rg-piece li:first-child { border-top: 0; }
.rg-piece li.rg-repli { display: none; }
.rg-piece.is-ouvert li.rg-repli { display: flex; }
.rg-piece code { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--marine); overflow-wrap: anywhere; user-select: all; }
.rg-piece li small { font-size: 10px; line-height: 1.45; color: var(--ink-3); }
.rg-piece .rg-plus { margin: 2px 12px 10px; }
.rg-piece.is-vide { background: transparent; border-style: dashed; }
.rg-piece.is-vide > header { border-bottom: 0; }
.rg-piece.is-vide .rg-piece-ico { background: var(--cream-2); color: var(--ink-3); }
.rg-piece-vide { margin: 0; padding: 0 12px 12px 50px; font-size: 11px; color: var(--ink-3); }
.rg-piece.is-vide .rg-piece-vide { margin-top: -6px; }

.rg-dossier-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 30px; align-items: start; }
.rg-frise-app { list-style: none; margin: 0; padding: 4px 0 0 6px; display: flex; flex-direction: column; gap: 18px; }
.rg-frise-app li { position: relative; display: flex; flex-direction: column; gap: 3px; padding-left: 24px; min-width: 0; }
.rg-frise-app li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; background: var(--marine-4); }
.rg-frise-app li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 18px; bottom: -14px; width: 1px; background: var(--line); }
.rg-frise-app li.is-actuel::before { background: var(--brique); box-shadow: 0 0 0 3px var(--brique-faint); }
.rg-frise-quand { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.rg-frise-app li.is-actuel .rg-frise-quand { color: var(--brique-texte); font-weight: 600; }
.rg-frise-app strong { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--marine); overflow-wrap: anywhere; }
.rg-frise-app code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.rg-frise-app small { font-size: 11px; color: var(--ink-3); }
.rg-mini-carte { height: 230px; border: 1px solid var(--line); background: var(--cream-2); }
.rg-lieux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.rg-lieux li { display: flex; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rg-lieux li > i { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 3px; background: var(--marine-4); }
.rg-lieux li.is-domicile > i { background: var(--brique); }
.rg-lieux li.is-travail > i { background: var(--marine); }
.rg-lieux span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rg-lieux strong { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rg-lieux code { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--marine); overflow-wrap: anywhere; user-select: all; }
.rg-lieux small { font-size: 10px; color: var(--ink-3); }
.rg-villes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.rg-villes h4 { margin: 0 0 6px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rg-villes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.rg-villes ul { gap: 0; border-top: 1px solid var(--marine); }
.rg-villes li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.rg-villes li svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brique-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-villes li span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rg-villes li b { font-family: var(--display); font-weight: 400; font-size: 13.5px; color: var(--marine); overflow-wrap: anywhere; }
.rg-villes li small { font-size: 10.5px; color: var(--ink-3); }
.rg-villes li em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--brique-texte); }
.rg-dossier-duo .rg-section { gap: 14px; }

.rg-fiche-compte .rg-barres li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; }
.rg-secu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0 24px; border-top: 1px solid var(--marine); }
.rg-secu li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.rg-secu span { font-size: 11.5px; color: var(--ink-2); }
.rg-secu b { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.rg-secu small { grid-column: 1 / -1; font-size: 10px; color: var(--ink-3); }
.rg-secu small:empty { display: none; }
.rg-secu li.is-fait span { color: var(--ink); }
.rg-secu li.is-fait b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--marine); }
.rg-dossier-sep { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.rg-dossier-sep::before, .rg-dossier-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 1100px) {
  .rg-titulaire { grid-template-columns: minmax(0, 1fr); }
  .rg-tit-reperes > div:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .rg-dossier-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rg-titulaire { padding: 20px 18px; }
  .rg-tit-mono { width: 48px; height: 48px; font-size: 18px; }
  .rg-tit-reperes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rg-tit-reperes > div, .rg-tit-reperes > div:first-child { border-left: 0; padding: 0 0 0 12px; box-shadow: inset 1px 0 0 var(--cream-faint); }
  .rg-tit-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rg-fiche-compte .rg-barres li { grid-template-columns: minmax(0, 10em) minmax(0, 1fr) auto; }
}

.rg-barre-tri { flex-wrap: nowrap; justify-content: space-between; }
.rg-barre-tri .rg-tog { flex: 1 1 0; justify-content: center; padding-left: 0; padding-right: 0; }
.rg-barre-tri .rg-tog .lbl { display: none; }
.rg-barre-tri .rg-sep { flex: none; }
.rg-tri-legende { margin: 0; min-height: 14px; font-size: 10px; letter-spacing: 0.04em; color: var(--cream-mute); text-align: center; }
.rg-tri-legende b { font-weight: 500; color: var(--brique); }

.rg-polaroid .pc-img { background: var(--cream-3); }
.rg-polaroid-vide { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--cream-3) 0 6px, var(--cream-2) 6px 12px); }

.rg-carte-zone .rg-pop-photo .leaflet-popup-content { width: min(420px, calc(100vw - 56px)) !important; padding: 16px 18px 14px !important; }
.rg-carte-zone .rg-pop-photo .photo-popup { max-width: none; }
.rg-carte-zone .rg-pop-photo .photo-popup img { width: 100%; max-width: 100%; max-height: 340px; object-fit: contain; background: var(--marine-dim); border-radius: 0; }
.rg-carte-zone .rg-pop-photo .photo-popup .photo-name { text-align: left; }
.rg-carte-zone .rg-pop-photo .photo-popup .pp-label { flex-basis: 72px; }
.rg-pop-fichier { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(300px, calc(100vw - 150px)); font-size: 10.5px; }
.rg-carte-zone .rg-pop-photo .leaflet-popup-close-button {
  top: -12px !important; right: -12px !important; width: 30px !important; height: 30px !important; padding: 0 !important;
  display: grid !important; place-items: center; font: 400 20px/1 var(--mono) !important;
  color: var(--cream) !important; background: var(--marine) !important; border: 2px solid var(--cream) !important; opacity: 1 !important;
  box-shadow: 0 4px 12px var(--scrim);
}
.rg-carte-zone .rg-pop-photo .leaflet-popup-close-button:hover { background: var(--brique) !important; color: var(--on-brique) !important; }
.rg-carte-zone .rg-pop-photo .leaflet-popup-close-button span { display: block; line-height: 1; }

.rg-ensemble { gap: 34px; }
.rg-ensemble .rg-section { gap: 16px; }
.rg-blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.rg-bloc { display: flex; flex-direction: column; min-width: 0; margin: 0; gap: 0; }
.rg-bloc > .rg-bloc-corps { background: var(--surface); border: 1px solid var(--line); }
.rg-bloc.is-large { grid-column: 1 / -1; }
.rg-bloc-tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 0 0 8px; }

.rg-bloc-tete .hs-label { flex: none; max-width: 100%; align-self: flex-start; }
.rg-bloc-tete .hs-label.is-petit .hs-num { font-size: 11px; padding: 0 13px 0 11px; }
.rg-bloc-tete .hs-label.is-petit .hs-title { min-width: 0; font-size: 12px; padding: 0 20px 0 16px; line-height: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rg-bloc-tete .rg-bloc-action { padding: 0; }
.rg-bloc-tete > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brique-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-bloc-tete > b { font-size: 11px; font-weight: 600; color: var(--brique-texte); }
.rg-bloc-action { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rg-bloc-action .rg-legende { margin: 0; }
.rg-bloc-corps { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; min-width: 0; }
.rg-bloc-corps > .rg-graphe { margin-top: 2px; }
.rg-bloc-vide { margin: 0; font-size: 11.5px; color: var(--ink-3); }
.rg-bloc-sous { margin: 4px 0 -4px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rg-bloc.is-ouvert li.rg-repli { display: flex; }
.rg-bloc.is-ouvert tr.rg-repli { display: table-row; }

.rg-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.rg-kpi { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; min-width: 0; text-align: left; font-family: var(--mono); background: transparent; border: 0; border-left: 1px solid var(--line); color: inherit; }
.rg-kpi:first-child { border-left: 0; }
button.rg-kpi { cursor: pointer; }
button.rg-kpi:hover { background: var(--cream-2); box-shadow: inset 0 -2px 0 var(--brique); }
.rg-kpi-k { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.rg-kpi-k::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--brique); }
.rg-kpi-v { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-kpi small { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.rg-kpi small { color: var(--marine); }

.rg-repart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-block: 1px solid var(--line); }
.rg-repart li { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-left: 1px solid var(--line); margin-left: -1px; }
.rg-repart b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.02em; color: var(--marine); line-height: 1; }
.rg-repart span { display: flex; gap: 7px; font-size: 10px; line-height: 1.4; color: var(--ink-3); }
.rg-repart span::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 4px; background: var(--line); }
.rg-repart li.is-noté span::before { background: var(--brique); }
.rg-repart li.is-probable span::before { background: var(--marine); }
.rg-barres.is-liens li { grid-template-columns: minmax(0, 14em) minmax(0, 1fr) auto; }
.rg-barres.is-liens .rg-lien-conv { font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.rg-ids { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rg-ids li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.rg-ids li:first-child { border-top: 0; padding-top: 0; }
.rg-ids li.rg-repli { display: none; }
.rg-bloc.is-ouvert .rg-ids li.rg-repli { display: grid; }
.rg-ids li > svg { width: 17px; height: 17px; fill: none; stroke: var(--marine-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-ids li span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rg-ids em { font-style: normal; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.rg-ids code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--marine); overflow-wrap: anywhere; user-select: all; }
.rg-ids small { font-size: 10px; line-height: 1.45; color: var(--ink-3); }
.rg-ids-absents { margin: 0; padding: 8px 10px; font-size: 10.5px; color: var(--ink-3); background: var(--cream-faint); border: 1px dashed var(--line); }
.rg-copier.is-texte .lbl { display: inline; }

.rg-reseau { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rg-reseau li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.rg-reseau li:first-child { border-top: 0; }
.rg-reseau li > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rg-reseau .rg-lien-conv { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-reseau small { font-size: 10px; color: var(--ink-3); }

.rg-souv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.rg-souv li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rg-souv-img { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: repeating-linear-gradient(135deg, var(--cream-3) 0 6px, var(--cream-2) 6px 12px); }
.rg-souv-img span { position: absolute; inset: 0; }
.rg-souv-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.rg-souv-img:hover img { transform: scale(1.04); }
.rg-souv-img:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; }
.rg-souv li b { margin-top: 4px; font-size: 11.5px; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-souv li code { font-size: 10px; color: var(--ink-2); }
.rg-souv li small { font-size: 10px; color: var(--ink-3); }
.rg-souv li .rg-lien { align-self: flex-start; font-size: 10.5px; }

.rg-bloc.rg-table .rg-bloc-corps { padding: 0 0 12px; gap: 10px; }
.rg-bloc.rg-table .rg-defile { border: 0; }
.rg-bloc.rg-table .rg-plus { margin-left: 16px; }
.rg-registre { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.45; }
.rg-registre thead th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 16px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: var(--cream); border-bottom: 1px solid var(--marine); white-space: nowrap; }
.rg-registre td, .rg-registre tbody th { padding: 9px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.rg-registre tbody tr:last-child > * { border-bottom: 0; }
.rg-registre tbody td:first-child { font-weight: 600; color: var(--marine); }
.rg-registre tbody tr:hover > * { background: var(--cream-faint); }
.rg-registre tbody tr:hover > :first-child { box-shadow: inset 3px 0 0 var(--brique); }
.rg-registre .is-nb { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-registre tr.rg-repli { display: none; }
.is-filtre .rg-registre tr.rg-repli { display: table-row; }
.rg-bloc.is-fiche .rg-registre tbody th { width: 42%; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.rg-bloc.is-fiche .rg-registre td { font-weight: 600; color: var(--marine); }
.rg-registre .rg-lien-conv { font-size: 12px; }
.rg-bloc .rg-mini-carte { height: 220px; }

@media (max-width: 1100px) {
  .rg-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rg-kpi:nth-child(4) { border-left: 0; }
  .rg-kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .rg-blocs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-kpi:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .rg-kpi:nth-child(-n+2) { border-top: 0; }
  .rg-kpi:nth-child(even) { border-left: 1px solid var(--line); }
}

.rg-ensemble .rg-barres li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; }
.rg-ensemble .rg-secu { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.rg-ids li.is-suite { padding-top: 0; border-top: 0; margin-top: -2px; }
.rg-ids li.is-suite > i { width: 17px; }
.rg-registre .rg-lien-conv, .rg-reseau .rg-lien-conv, .rg-barres.is-liens .rg-lien-conv { text-decoration: none; border-bottom: 1px solid var(--brique); }
.rg-registre .rg-lien-conv:hover, .rg-reseau .rg-lien-conv:hover, .rg-barres.is-liens .rg-lien-conv:hover { color: var(--brique-texte); }
.rg-interlocuteurs td:nth-child(n+7) { white-space: nowrap; overflow-wrap: normal; }
.rg-interlocuteurs td { vertical-align: middle; }
@media (max-width: 560px) {
  .rg-source { display: none; }
  .rg-barre { gap: 8px; }
  .rg-fuseau { padding: 0 8px; gap: 6px; }
  .rg-nouvelle { padding: 8px 10px; font-size: 10.5px; }
  .rg-copier.is-texte .lbl { display: none; }
}

.rg-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 16px; }
.rg-bento > .rg-bloc { grid-column: span var(--cs, 6); grid-row: span var(--rs, 4); overflow: hidden; }
.rg-bento > .rg-bloc .rg-bloc-corps { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; padding: 0; display: block; }
.rg-bloc-in { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; min-width: 0; }
.rg-bloc.rg-table .rg-bloc-in { padding: 0 0 12px; gap: 10px; }
.rg-tout-voir { display: none; position: absolute; right: 14px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--brique-texte); background: var(--surface); border: 0; border-bottom: 1px solid var(--brique); padding: 2px 0; cursor: pointer; }
.rg-bloc.is-deborde .rg-bloc-corps::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(transparent, var(--surface) 72%); pointer-events: none; }
.rg-bloc.is-deborde .rg-tout-voir, .rg-bloc.is-ouvert .rg-tout-voir { display: block; }
.rg-bloc.is-ouvert [data-rg-plus] { display: none; }
.rg-bloc.is-ouvert .rg-bloc-in { padding-bottom: 38px; }
.rg-seg { display: inline-flex; flex: none; border: 1px solid var(--marine); overflow: hidden; }
.rg-seg button { font-family: var(--mono); font-size: 10.5px; min-height: 26px; padding: 0 9px; border: 0; background: transparent; color: var(--marine); cursor: pointer; }
.rg-seg button[aria-pressed="true"] { background: var(--marine); color: var(--cream); }
.rg-bloc.is-brut { border-color: var(--marine-dim); }
.rg-bloc.is-signale { animation: rg-signale 1.6s ease-out; }
@keyframes rg-signale { 0%, 40% { box-shadow: 0 0 0 3px var(--brique); } 100% { box-shadow: 0 0 0 0 transparent; } }
.rg-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rg-brut { grid-column: 1 / -1; grid-row: span 10; position: relative; min-width: 0; }
.rg-brut::before { content: ""; position: absolute; top: -9px; left: calc(var(--pointe, 50%) - 9px); border: 9px solid transparent; border-top: 0; border-bottom-color: var(--marine-dim); }
.rg-brut-pan { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; background: var(--marine-dim); color: var(--cream); border-radius: 4px; overflow: hidden; font-family: var(--mono); }
.rg-ix-brut .rg-brut-pan { height: 460px; }
.rg-brut-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-bottom: 1px solid var(--cream-faint); }
.rg-brut-titre { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brique); }
.rg-brut-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-brut-srcs button { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 2px; border: 1px solid var(--cream-faint); background: transparent; color: var(--cream-mute); cursor: pointer; }
.rg-brut-srcs button span { opacity: 0.7; }
.rg-brut-srcs button[aria-selected="true"] { background: var(--cream-faint); color: var(--cream); border-color: var(--cream-mute); }
.rg-brut-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rg-brut-actions button { font-family: var(--mono); font-size: 11px; min-height: 30px; padding: 0 10px; border-radius: 3px; background: transparent; color: var(--cream); border: 1px solid var(--cream-mute); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rg-brut-actions button:hover { border-color: var(--brique); color: var(--brique-light); }
.rg-brut-actions button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rg-brut-filtre input { font-family: var(--mono); font-size: 11.5px; width: 170px; min-height: 30px; padding: 0 10px; background: transparent; color: var(--cream); border: 1px solid var(--cream-faint); border-radius: 3px; }
.rg-brut-filtre input::placeholder { color: var(--cream-mute); }
.rg-brut-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.rg-brut-table { overflow: auto; border-right: 1px solid var(--cream-faint); }
.rg-brut-table table { border-collapse: collapse; font-size: 11.5px; min-width: 100%; }
.rg-brut-table th { position: sticky; top: 0; background: var(--marine-dim); text-align: left; font-weight: 500; color: var(--cream-mute); padding: 8px 12px; border-bottom: 1px solid var(--cream-faint); white-space: nowrap; }
.rg-brut-table td { padding: 7px 12px; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--cream-faint); }
.rg-brut-table tbody tr { cursor: pointer; }
.rg-brut-table tbody tr:hover { background: var(--cream-faint); }
.rg-brut-table tbody tr.is-choisi { background: var(--brique-faint); }
.rg-brut-rien { margin: 0; padding: 16px; font-size: 12px; color: var(--cream-mute); }
.rg-brut-ligne { overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rg-brut-k { font-size: 10.5px; color: var(--cream-mute); }
.rg-brut-ligne pre { margin: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--brique-light); white-space: pre-wrap; word-break: break-word; }
.rg-brut-lu { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--marine); border-radius: 3px; }
.rg-brut-lu dl { margin: 0; display: grid; gap: 4px; }
.rg-brut-lu dl div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px; font-size: 11.5px; }
.rg-brut-lu dt { color: var(--cream-mute); }
.rg-brut-lu dd { margin: 0; color: var(--cream); word-break: break-word; }
.rg-brut-pied { grid-column: 1 / -1; margin: 0; padding: 8px 16px; font-size: 10.5px; color: var(--cream-mute); border-top: 1px solid var(--cream-faint); }
.rg-brut-par { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--cream-mute); }
.rg-brut-par button { font-family: var(--mono); font-size: 11px; color: var(--brique-light); background: transparent; border: 0; border-bottom: 1px solid var(--brique); padding: 0; cursor: pointer; }

.rg-index { display: flex; flex-direction: column; gap: 12px; }
.rg-index-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--marine); }
.rg-index-tete h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--marine); }
.rg-index-tete .rg-recherche { flex: 0 1 420px; }
.rg-ix-colonnes, .rg-ix-ligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) 84px minmax(0, 1.2fr) minmax(0, 1.5fr) 16px; gap: 0 16px; align-items: center; }
.rg-ix-colonnes { padding: 0 16px; font-size: 10.5px; color: var(--ink-3); }
.rg-ix-colonnes span:nth-child(3) { text-align: right; }
.rg-ix-fam { background: var(--surface); border: 1px solid var(--line); }
.rg-ix-fam-tete { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border: 0; background: var(--cream-2); font-family: var(--mono); color: var(--ink); cursor: pointer; text-align: left; }
.rg-ix-fam-tete strong { font-size: 12px; font-weight: 600; color: var(--marine); }
.rg-ix-fam-tete code, .rg-ix-ligne code { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ix-fam-tete .rg-ix-n { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.rg-ix-fam-tete svg, .rg-ix-ligne > svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--marine); stroke-width: 2; transition: transform 0.15s; }
.rg-ix-fam.is-ouverte > .rg-ix-fam-tete svg { transform: rotate(180deg); }
.rg-ix-ligne { width: 100%; min-height: 50px; padding: 6px 16px; border: 0; border-top: 1px solid var(--cream-2); background: var(--surface); font-family: var(--mono); font-size: 12px; color: var(--ink); cursor: pointer; text-align: left; }
.rg-ix-ligne:hover { background: var(--cream); }
.rg-ix-ligne > svg { transform: rotate(-90deg); }
.rg-ix-ligne.is-ouverte > svg { transform: none; }
.rg-ix-ligne strong { font-weight: 600; color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ix-n { text-align: right; font-weight: 600; display: flex; flex-direction: column; align-items: flex-end; }
.rg-ix-n em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--brique-texte); }
.rg-ix-periode { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rg-ix-periode i { position: relative; height: 6px; background: var(--cream-2); border-radius: 3px; }
.rg-ix-periode b { position: absolute; top: 0; bottom: 0; background: var(--marine-3); border-radius: 3px; }
.rg-ix-periode small { font-size: 10px; color: var(--ink-3); }
.rg-ix-par { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.rg-etiq { font-size: 10px; padding: 2px 6px; border-radius: 2px; background: var(--cream-2); color: var(--marine); white-space: nowrap; }
.rg-ix-brut { padding: 0 12px 12px; background: var(--surface); }
.rg-ix-vides { margin: 0; padding: 12px 16px; border: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.rg-ix-vides span { margin-right: 8px; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 980px) {
  .rg-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .rg-bento > .rg-bloc { grid-column: auto; grid-row: auto; }
  .rg-bento > .rg-bloc .rg-bloc-corps { overflow: visible; }
  .rg-tout-voir { display: none !important; }
  .rg-brut { grid-row: auto; }
  .rg-brut-pan { height: 560px; }
  .rg-brut-corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
  .rg-brut-table { border-right: 0; }
  .rg-brut-ligne { max-height: 220px; border-top: 1px solid var(--cream-faint); }
  .rg-brut-actions { margin-left: 0; flex-wrap: wrap; }
  .rg-ix-colonnes { display: none; }
  .rg-ix-ligne { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 4px 12px; }
  .rg-ix-ligne > strong { grid-column: 1; grid-row: 1; }
  .rg-ix-ligne > .rg-ix-n { grid-column: 2; grid-row: 1; }
  .rg-ix-ligne > svg { grid-column: 3; grid-row: 1; }
  .rg-ix-ligne > code, .rg-ix-ligne > .rg-ix-periode, .rg-ix-ligne > .rg-ix-par { grid-column: 1 / -1; }
}
.rg-index .rg-tit-sur { color: var(--brique-texte); }
.rg-bento .rg-copier.is-texte .lbl { display: none; }

.rg-tit-photo { position: relative; flex: none; }
.rg-tit-mono.is-photo { position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden; }
.rg-tit-mono.is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-tit-mono.is-photo i { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; display: grid; place-items: center; background: var(--marine); }
.rg-tit-mono.is-photo i svg { width: 12px; height: 12px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-tit-mono.is-photo:hover, .rg-tit-mono.is-photo:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.rg-tit-mono.is-photo[data-rg-photo-locale] { cursor: default; outline: 0; }

.rg-pubs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rg-pubs-liste li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rg-pubs-liste li:first-child { border-top: 0; }
.rg-pubs-liste b { font-size: 11.5px; font-weight: 500; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-pubs-liste span { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.rg-pubs-liste small { grid-column: 2; font-size: 10px; color: var(--ink-3); }
.rg-bloc.is-ouvert .rg-pubs-liste li.rg-repli { display: grid; }
@media (max-width: 520px) { .rg-pubs-liste li { grid-template-columns: minmax(0, 1fr); } .rg-pubs-liste small { grid-column: 1; } }
.rg-tit-photo-pop { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; width: min(380px, 80vw); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--brique); box-shadow: 0 14px 30px -14px var(--marine-dim); }
.rg-tit-photo-pop[hidden] { display: none; }
.rg-tit-photo-pop p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.rg-tit-lien { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--marine); }
.rg-tit-photo-vue { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-tit-photo-vue:empty { display: none; }
.rg-tit-photo-vue figure { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.rg-tit-photo-vue img { max-width: 100%; max-height: 180px; object-fit: contain; border: 1px solid var(--line); }
.rg-tit-photo-vue figcaption, .rg-tit-photo-ko { font-size: 10.5px; color: var(--ink-3); }
.rg-tit-photo-actions { display: flex; justify-content: flex-end; gap: 8px; }

.rg-ml { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 360px minmax(0, 1fr); }
.rg-ml-libs { min-height: 0; overflow: auto; padding: 16px 10px 24px; background: var(--marine); color: var(--cream); scrollbar-width: thin; }
.rg-ml-libs h3 { margin: 0 8px 10px; font-family: var(--display); font-weight: 400; font-size: 12.5px; text-transform: uppercase; color: var(--brique); }
.rg-ml-libs ul { list-style: none; margin: 0; padding: 0; }
.rg-ml-lib { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 0 8px; border: 0; border-radius: 3px; background: transparent; color: var(--cream); font-family: var(--mono); font-size: 11.5px; text-align: left; cursor: pointer; }
.rg-ml-lib span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ml-lib b { flex: none; font-weight: 600; color: var(--brique); font-variant-numeric: tabular-nums; }
.rg-ml-lib:hover { background: var(--cream-faint); }
.rg-ml-lib[aria-current="true"] { background: var(--marine-hover); color: var(--brique); }
.rg-ml-lib:focus-visible { outline: 2px solid var(--brique); outline-offset: -2px; }
.rg-ml-sous { margin: 14px 8px 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-mute); }
.rg-ml-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--cream); }
.rg-ml-outils { display: flex; gap: 8px; padding: 12px 14px 8px; }
.rg-ml-outils .rg-chercher { flex: 1; min-width: 0; height: 34px; }
.rg-ml-outils select { flex: none; height: 34px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 11px; color: var(--marine); }
.rg-ml-etat { margin: 0; padding: 7px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.rg-ml-liste { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.rg-ml-ligne { position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 9px 14px 9px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; text-align: left; cursor: pointer; }
.rg-ml-ligne:hover { background: var(--cream-2); }
.rg-ml-ligne[aria-selected="true"] { background: var(--marine); color: var(--cream); }
.rg-ml-ligne.is-nonlu::before { content: ""; position: absolute; left: 9px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--brique); }
.rg-ml-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rg-ml-qui { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rg-ml-date { flex: none; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-ml-objet, .rg-ml-extrait { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ml-objet { color: var(--ink-2); }
.rg-ml-extrait { font-size: 10.5px; color: var(--ink-3); }
.rg-ml-clip { flex: none; padding: 0 5px; border-radius: 8px; background: var(--brique-faint); font-style: normal; font-size: 9.5px; color: var(--marine); }
.rg-ml-etoile { flex: none; display: inline-flex; }
.rg-ml-etoile svg, .rg-ml-actions svg { width: 14px; height: 14px; fill: var(--brique); stroke: var(--brique); stroke-width: 1.4; stroke-linejoin: round; }
.rg-ml-ligne[aria-selected="true"] .rg-ml-date, .rg-ml-ligne[aria-selected="true"] .rg-ml-extrait { color: var(--cream-mute); }
.rg-ml-ligne[aria-selected="true"] .rg-ml-objet { color: var(--cream); }
.rg-ml-plus { display: block; margin: 12px auto; }
.rg-ml-vide { padding: 40px 20px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rg-ml-lecture { min-width: 0; min-height: 0; overflow: auto; padding: 24px 28px 48px; background: var(--cream); scrollbar-width: thin; }
.rg-ml-feuille { max-width: 760px; margin: 0 auto; }
.rg-ml-titre { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.rg-ml-titre h2 { flex: 1 1 320px; margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--marine); overflow-wrap: anywhere; text-wrap: balance; }
.rg-ml-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 16px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.rg-ml-meta dt, .rg-ml-meta dd { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rg-ml-meta dt { padding-right: 20px; padding-top: 8px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.rg-ml-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.rg-ml-meta dd small { display: block; font-size: 10.5px; color: var(--ink-3); }
.rg-ml-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-ml-actions .rg-btn { display: inline-flex; align-items: center; gap: 6px; }
.rg-ml-actions .rg-btn.is-plein svg { fill: var(--on-brique); stroke: var(--on-brique); }
.rg-ml-actions [data-rg-ml-copier] svg { fill: none; stroke: var(--marine); stroke-width: 1.7; }
.rg-ml-onglets { display: flex; gap: 2px; margin-top: 24px; }
.rg-ml-onglets button { padding: 9px 14px; border: 0; background: var(--cream-2); color: var(--marine); font-family: var(--display); font-size: 11px; text-transform: uppercase; cursor: pointer; }
.rg-ml-onglets button[aria-selected="true"] { background: var(--marine); color: var(--cream); }
.rg-ml-corps { margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--marine); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .rg-ml { grid-template-columns: 190px 300px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .rg-ml { display: flex; flex-direction: column; overflow: auto; }
  .rg-ml > * { flex: none; }
  .rg-ml-libs { overflow: visible; padding: 12px; }
  .rg-ml-libs ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .rg-ml-lib { width: auto; border: 1px solid var(--cream-faint); }
  .rg-ml-col { border-right: 0; }
  .rg-ml-liste { flex: none; max-height: 60vh; }
  .rg-ml-lecture { overflow: visible; padding: 18px 14px 40px; }
}
.rg-hit-mail { width: auto; padding: 8px 10px; display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; border: 1px solid var(--brique); background: var(--brique-faint); }
.rg-hit-mail svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--marine); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.rg-pop-tag, .rg-visu-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.rg-pop-tag svg, .rg-visu-tag svg { width: 13px; height: 13px; fill: var(--brique); stroke: var(--brique); stroke-width: 1.4; stroke-linejoin: round; }
.rg-pop-tag.is-plein svg, .rg-visu-tag.is-plein svg { fill: var(--on-brique); stroke: var(--on-brique); }

.rg-rp-pop { width: 380px; }
.rg-rp-una { flex: none; font-family: var(--display); font-size: 10px; letter-spacing: 0.08em; color: var(--brique-texte); }
.rg-rp-liste { list-style: none; margin: 0 8px; padding: 0; border-top: 1px solid var(--line); }
.rg-rp-liste li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--marine); }
.rg-rp-liste li span { flex: 1; min-width: 0; }
.rg-rp-liste li small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.rg-rp-liste li b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brique-texte); }
.rg-rp-note { margin: 10px 8px 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--ink-3); }
.rg-rp-etat { margin: 10px 8px 0; font-family: var(--mono); font-size: 11px; color: var(--marine); }
.rg-rp-etat:empty { display: none; }
.rg-rp-pop .rg-cal-pied { display: flex; justify-content: space-between; gap: 8px; }

.rg-pp { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.rg-pp-filtres { margin: 0 14px 10px; }
.rg-pp-h { margin: 22px 0 8px; font-family: var(--display); font-weight: 400; font-size: 13px; text-transform: uppercase; color: var(--marine); }
.rg-pp-note { margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.rg-pp-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rg-pp-l li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.rg-pp-l li > span { flex: 1 1 200px; min-width: 0; color: var(--ink); }
.rg-pp-l li small { font-size: 10.5px; color: var(--ink-3); }
.rg-pp-l .rg-lien-conv { text-align: left; }
@media (max-width: 980px) {
  .rg-pp { display: flex; flex-direction: column; overflow: auto; }
  .rg-pp > * { flex: none; }
  .rg-pp .rg-ml-liste { flex: none; max-height: 60vh; }
}

.rg-tq-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 24px 6px; }
.rg-tq-outils .rg-genres { margin: 0; }
.rg-tq-outils .rg-chercher { flex: 1 1 220px; max-width: 380px; height: 34px; }
.rg-tq-zone { padding-top: 8px; }
.rg-tq { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.rg-tq th { position: sticky; top: 0; z-index: 1; padding: 0; background: var(--cream); border-bottom: 1px solid var(--marine); text-align: left; }
.rg-tq th button, .rg-tq th:last-child { display: block; width: 100%; padding: 8px 10px; border: 0; background: transparent; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: left; cursor: pointer; }
.rg-tq th button[aria-sort] { color: var(--marine); font-weight: 600; }
.rg-tq td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); overflow-wrap: anywhere; }
.rg-tq td.is-nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-tq tr.is-ouvert > td { background: var(--brique-faint); }
.rg-tq-v { padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--marine); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.rg-tq-v:hover { text-decoration: underline; }
.rg-tq-etoile { margin-left: 6px; padding: 0; border: 0; background: none; cursor: pointer; vertical-align: middle; }
.rg-tq-etoile svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linejoin: round; }
.rg-tq-etoile.is-on svg { fill: var(--brique); stroke: var(--brique); }
.rg-tq-detail td { padding: 0 10px 12px 24px; background: var(--brique-faint); }
.rg-tq-detail ol { margin: 0; padding: 0; list-style: none; max-height: 320px; overflow: auto; }
.rg-tq-detail li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rg-tq-detail li b { font-weight: 600; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-tq-detail li span, .rg-tq-detail li small { color: var(--ink-3); }
.rg-tq-detail p { margin: 8px 0 0; color: var(--ink-3); }

.rg-rp-annoter { margin-top: 10px; }
.rg-rp-notes { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--marine); max-height: 46vh; overflow: auto; }
.rg-rp-notes li { display: flex; flex-direction: column; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rg-rp-notes li span { font-size: 11.5px; color: var(--marine); overflow-wrap: anywhere; }
.rg-rp-notes li small { display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-rp-notes textarea { width: 100%; min-height: 44px; resize: vertical; padding: 6px 8px; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.rg-rp-notes textarea:focus-visible { outline: 2px solid var(--brique); outline-offset: 1px; border-color: var(--brique); }

.rg-tg-zone { gap: 22px; }
.rg-tg-zone .rg-pp-h { margin: 0 0 8px; }
.rg-tg-zone .rg-pp-h small { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.rg-tg-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--marine); }
.rg-tg-l li { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.rg-tg-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.rg-tg-quand { flex: none; width: 150px; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.rg-tg-quoi { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.rg-tg-quoi small { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-tg-quoi b { font-weight: 600; color: var(--marine); }
.rg-tg-quoi em { font-style: normal; font-size: 11px; color: var(--ink-2); }
.rg-tg-actions { flex: none; display: flex; gap: 14px; }
.rg-tg-obs { display: flex; align-items: flex-start; gap: 14px; }
.rg-tg-obs span { flex: none; width: 150px; padding-top: 7px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brique); }
.rg-tg-obs textarea { flex: 1; min-width: 0; min-height: 40px; resize: vertical; padding: 6px 8px; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.rg-tg-obs textarea:focus-visible { outline: 2px solid var(--brique); outline-offset: 1px; border-color: var(--brique); }
@media (max-width: 720px) {
  .rg-tg-quand, .rg-tg-obs span { width: auto; }
  .rg-tg-obs { flex-direction: column; gap: 4px; }
  .rg-tg-obs span { padding-top: 0; }
  .rg-tg-obs textarea { width: 100%; }
}
.rg-ml-pj { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-ml-pj li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rg-ml-pj li span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.rg-ml-pj li small { color: var(--ink-3); }
.rg-choix { margin-top: 18px; text-align: center; }
.rg-choix-n { margin: 0; font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.rg-jr td small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.rg-jr td b { font-weight: 600; color: var(--marine); }
.rg-jr td.is-nb small { margin-top: 2px; }
.rg-jr-liens { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.rg-jr-liens code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); overflow-wrap: anywhere; }

.rg-jr-lien { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.rg-jr-lien .rg-lien { font-size: 10.5px; flex: none; }
.rg-jr-lien .rg-lien.is-confirme { color: var(--brique-texte); }
.rg-jr td.rg-jr-etoile, .rg-jr th:last-child { width: 36px; }
.rg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rg-jr + .rg-ml-plus { margin: 12px 0 0; }
.rg-en-occ { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rg-en-occ:hover .rg-en-ext, .rg-en-occ:focus-visible .rg-en-ext { color: var(--marine); }
.rg-en-ou { color: var(--ink-3); }
.rg-en-ou b { font-weight: 600; color: var(--marine); font-variant-numeric: tabular-nums; }
.rg-en-ext { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.rg-en-ext mark { background: var(--brique-faint); color: var(--brique); font-weight: 600; padding: 0 2px; }
.rg-en-moi { display: inline-block; padding: 1px 6px; border: 1px solid var(--marine); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--marine); }
.rg-tq-detail .rg-btn { margin-top: 8px; }

.rg-ch-moment { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 12px 24px 4px; }
.rg-ch-moment label { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-ch-moment input, .rg-ch-moment select { height: 34px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 12px; color: var(--marine); text-transform: none; letter-spacing: 0; }
.rg-ch-moment input:focus, .rg-ch-moment select:focus { outline: 2px solid var(--brique); outline-offset: -1px; }
.rg-ch-enc { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--brique); background: var(--surface); }
.rg-ch-enc h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--marine); }
.rg-ch-enc-l { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.rg-ch-enc-k { padding-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rg-ch-enc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); background: var(--cream); font-family: var(--mono); font-size: 11.5px; color: var(--ink); text-align: left; cursor: pointer; }
.rg-ch-enc-b:hover { border-color: var(--marine); }
.rg-ch-enc-b b { color: var(--brique-texte); }
.rg-ch-enc-b small { color: var(--ink-3); overflow-wrap: anywhere; }
.rg-ch-enc-rien { padding-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
@media (max-width: 760px) {
  .rg-ch-enc-l { grid-template-columns: minmax(0, 1fr); }
  .rg-tq-outils, .rg-ch-moment { padding-left: 14px; padding-right: 14px; }
  .rg-tq { font-size: 11px; }
}

.rg-cv { grid-template-columns: 340px minmax(0, 1fr); }
.rg-cv-liste { padding: 6px 10px 12px; }
.rg-cv-fil { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--cream); }
.rg-cv-fil > .rg-ml-vide { margin: auto; }
.rg-cv-retour { display: none; }
.rg-tag-tout { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rg-tag-tout .rg-btn svg { fill: var(--brique); stroke: var(--brique); stroke-width: 1.4; stroke-linejoin: round; }
.rg-tag-tout .rg-btn.is-plein { padding: 7px 12px; }
.rg-confirme { font-family: var(--mono); font-size: 11px; color: var(--marine); }
@media (max-width: 980px) {
  .rg-cv { display: flex; flex-direction: column; overflow: hidden; }
  .rg-cv > .rg-ml-col { flex: 1; min-height: 0; border-right: 0; }
  .rg-cv .rg-ml-liste { flex: 1; max-height: none; }
  .rg-cv > .rg-cv-fil { flex: 1; min-height: 0; }
  .rg-cv:not(.is-fil) > .rg-cv-fil, .rg-cv.is-fil > .rg-ml-col { display: none; }
  .rg-cv-retour { display: inline-block; }
  .rg-panneau:has(> .rg-cv.is-fil) > .rg-vue-barre { display: none; }    
}

.rg-carte-panneau { max-height: calc(100% - 28px); overflow-y: auto; }
.rg-carte-panneau h3 small { margin-left: 6px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rg-per { display: flex; flex-direction: column; gap: 5px; }
.rg-per-champ { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rg-per-champ span { flex: 0 0 18px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.rg-per-champ input { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 0; background: var(--cream); color: var(--marine); font-family: var(--mono); font-size: 11.5px; color-scheme: light; }
.rg-per-champ input:focus { outline: 0; border-color: var(--brique); }
.rg-per-suite { display: flex; flex-direction: column; gap: 6px; }
.rg-per-suite > .rg-lien { align-self: flex-start; font-size: 10.5px; }
.rg-carte-panneau p.rg-per-resume { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.rg-per-resume b { font-weight: 500; color: var(--marine); }
.rg-per-resume small { font-size: 10px; color: var(--ink-3); }
.rg-carte-panneau p.rg-per-err { color: var(--note-ko); }
.rg-per-actions { display: flex; align-items: center; gap: 10px; }
.rg-per-actions .rg-pop-tag { margin-top: 0; }
.rg-per-actions .rg-lien { font-size: 10.5px; }
.rg-per-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rg-per-liste li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--cream-2); }
.rg-per-liste .rg-lien { font-size: 10.5px; text-align: left; }
.rg-per-liste .rg-lien.is-actif { color: var(--brique-texte); }
.rg-per-liste small { flex: none; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

.gt-progression {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  margin: 8px 0 26px; padding: 26px 28px 22px;
  background: var(--marine); color: var(--cream);
  box-shadow: inset 3px 0 0 var(--brique);
  font-family: var(--mono);
}
.gt-progression p { margin: 0; }
.gt-progression-titre {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  font-family: var(--display); font-size: 20px; letter-spacing: -0.015em; color: var(--brique-light);
}
.gt-progression-titre span { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--cream); font-variant-numeric: tabular-nums; }
.gt-progression-barre { position: relative; height: 8px; overflow: hidden; background: var(--marine-dim); }
.gt-progression-barre > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brique), var(--brique-light));
  transition: width 0.25s ease;
}
.gt-progression-barre.is-fine { height: 3px; }
.gt-progression-barre.is-attente > i { width: 28%; transition: none; animation: gt-progression-va 1.3s ease-in-out infinite; }
@keyframes gt-progression-va { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
.gt-progression-fichier { margin-top: 6px; font-size: 12px; color: var(--cream); overflow-wrap: anywhere; }
.gt-progression-etape { font-size: 11px; color: var(--cream-mute); }
.gt-progression-pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding-top: 10px; border-top: 1px solid var(--marine-dim);
  font-size: 10.5px; color: var(--cream-mute); font-variant-numeric: tabular-nums;
}
.gt-progression-pied span:last-child { color: var(--brique-light); }

@media (prefers-reduced-motion: reduce) {
  .gt-progression-barre > i { transition: none; }
  .gt-progression-barre.is-attente > i { animation: none; width: 100%; opacity: 0.45; }
}
@media (max-width: 760px) {
  .gt-progression { padding: 20px 16px 18px; }
  .gt-progression-titre { font-size: 17px; }
}

.fy-lanceur { display: flex; flex-direction: column; gap: 14px; }
.fy-occupe { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 24px 0; overflow-wrap: anywhere; }

.fy-resume { margin: 0 0 22px; }
.fy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fy-una { flex: 1 1 280px; min-width: 0; max-width: 420px; }
.fy-una .dollar { font-size: 10px; letter-spacing: 0.12em; }
.fy-una.fy-annexe { flex: 0 1 170px; }    
.fy-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fy-etat { margin: 8px 0 26px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.fy-fiches { display: flex; flex-direction: column; gap: 22px; }
.fy-fiche { border: 1px solid var(--line); background: var(--surface); box-shadow: inset 3px 0 0 var(--brique); min-width: 0; }
.fy-fiche > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fy-fiche h3 { flex: 1 1 260px; min-width: 0; margin: 0; font-family: var(--display); font-size: 16px; color: var(--marine); overflow-wrap: anywhere; }
.fy-num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--marine); }
.fy-nature { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brique-texte); }
.fy-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 18px; }
.fy-visuel, .fy-infos { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fy-apercu { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--cream-2); }
.fy-apercu.is-vide { display: grid; place-items: center; min-height: 160px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line); background: transparent; }
.fy-note { margin: 0; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

.fy-passages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.fy-passages li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fy-passages img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.fy-passages span { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--marine); text-align: center; }

.fy-table, .fy-groupe table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; table-layout: fixed; }
.fy-table th, .fy-groupe th { width: 34%; text-align: left; vertical-align: top; padding: 5px 10px 5px 0; font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.fy-table td, .fy-groupe td { padding: 5px 0; color: var(--ink); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.fy-table tr:first-child th, .fy-table tr:first-child td { border-top: 1px solid var(--marine); }
.fy-sha { font-size: 10.5px; color: var(--marine); word-break: break-all; }

.fy-gps h4, .fy-origine h4 { margin: 4px 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marine); }
.fy-gps p { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); overflow-wrap: anywhere; }
.fy-gps a { color: var(--marine); text-decoration: none; border-bottom: 1px solid var(--brique); }
.fy-gps a:hover { color: var(--brique-texte); }
.fy-carte { display: block; width: 100%; border: 1px solid var(--line); }
.fy-erreurs { margin: 0; padding: 8px 10px 8px 26px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--brique-faint); }

.fy-groupe { border-top: 1px solid var(--line); }
.fy-groupe summary { cursor: pointer; padding: 7px 0; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--marine); }
.fy-groupe summary small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }

.fy-oeil { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 1px solid transparent; background: none; color: var(--marine); cursor: pointer; vertical-align: middle; }
.fy-oeil:hover { border-color: var(--line); background: var(--cream-2); }
.fy-oeil:focus-visible { outline: 2px solid var(--brique); outline-offset: 1px; }
.fy-oeil.is-off { color: var(--ink-3); }
.fy-groupe summary .fy-oeil, .fy-gps h4 .fy-oeil { float: right; margin-top: -6px; }
.fy-fiche > header .fy-oeil { align-self: center; }
.fy-fiche.is-masque > .fy-corps, .fy-fiche.is-masque > header h3, .fy-groupe.is-masque table, .fy-gps.is-masque > :not(h4) { opacity: 0.4; }
.fy-groupe.is-masque summary, .fy-gps.is-masque h4 { color: var(--ink-3); }
.fy-groupe summary:hover { color: var(--brique-texte); }
.fy-groupe summary:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.fy-groupe table { margin-bottom: 8px; }

@media (max-width: 760px) {
  .fy-corps { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .fy-passages span { font-size: 8px; }
}

.journal-list {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journal-empty {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

.journal-article {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  color: var(--ink);
}

.journal-article .ja-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 22px -10px;
  color: var(--brique-texte);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.2s ease;
}
.journal-article .ja-back:hover {
  color: var(--marine);
  transform: translateX(-3px);
}
.journal-article .ja-back svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
}

.journal-article h1.ja-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.journal-article .ja-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  font-weight: 400;
  font-style: italic;
}

.journal-article .ja-cover {
  width: 100%;
  height: auto;
  margin: 0 0 36px;
  border: 1px solid var(--line);
}

.journal-article .ja-content {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.journal-article .ja-content > * + * {
  margin-top: 1.1em;
}

.journal-article .ja-content h2,
.journal-article .ja-content h3,
.journal-article .ja-content h4,
.journal-article .ja-content li,
.journal-article .ja-content table,
.journal-article .ja-content blockquote {
  text-align: left;
  hyphens: manual;
}
.journal-article .ja-content h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 24px;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.4em;
  line-height: 1.25;
}
.journal-article .ja-content h3 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 18px;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.journal-article .ja-content p {
  margin: 0;
}
.journal-article .ja-content strong {
  color: var(--ink);
  font-weight: 600;
}
.journal-article .ja-content em {
  font-style: italic;
}
.journal-article .ja-content a {
  color: var(--brique-texte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s, color 0.15s;
}
.journal-article .ja-content a:hover {
  text-decoration-color: var(--brique);
  color: var(--ink);
}
.journal-article .ja-content ul,
.journal-article .ja-content ol {
  padding-left: 1.5em;
}
.journal-article .ja-content li {
  margin: 0.3em 0;
}
.journal-article .ja-content blockquote {
  border-left: 3px solid var(--brique);
  padding: 4px 0 4px 18px;
  margin: 0;
  color: var(--ink-3);
  font-style: italic;
}
.journal-article .ja-content code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--cream-2);
  color: var(--marine);
  padding: 2px 6px;
  border-radius: 0;
  border: 1px solid var(--line);
}
.journal-article .ja-content pre {
  background: var(--marine);
  color: var(--cream);
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--marine-dim);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
}
.journal-article .ja-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}
.journal-article .ja-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.journal-article .ja-content hr {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 2em 0;
}
.journal-article .ja-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.journal-article .ja-content th,
.journal-article .ja-content td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.journal-article .ja-content th {
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journal-article .ja-specbar { margin: 0 0 32px; }
.journal-article .ja-specbar .file-bar { margin-bottom: 0; }
.journal-article .ja-toolbar {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}
.journal-article .ja-tool {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  text-decoration: none;
  overflow: hidden;
}

.journal-article .ja-tool.is-dl {
  background: var(--brique);
  color: var(--marine);
  border: 1px solid var(--brique);
}
.journal-article .ja-tool.is-in {
  background: var(--marine);
  color: var(--cream);
  border: 1px solid var(--marine);
}
.journal-article .ja-tool svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.journal-article .ja-tool-label {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transition: max-width 0.28s ease, opacity 0.18s ease, margin-left 0.28s ease;
}
.journal-article .ja-tool:hover .ja-tool-label,
.journal-article .ja-tool:focus-visible .ja-tool-label {
  max-width: 240px;
  opacity: 1;
  margin-left: 9px;
}
@media (prefers-reduced-motion: reduce) {
  .journal-article .ja-tool-label { transition: none; }
}

.journal-article .ja-tool.is-lang {
  margin-left: auto;
  background: transparent;
  color: var(--marine);
  border: 1px solid var(--marine);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 0 12px;
}
.journal-article .ja-tool.is-lang:hover,
.journal-article .ja-tool.is-lang:focus-visible {
  background: var(--marine);
  color: var(--cream);
}

.journal-article .ja-content .code-block {
  margin: 1.6em 0;
  border: 1px solid var(--marine-dim);
  background: var(--marine);
  overflow: hidden;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05),
              0 6px 16px -8px rgba(29, 53, 87, 0.18);
}

.journal-article .ja-content .code-block .cb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  user-select: none;
}

.journal-article .ja-content .code-block .cb-lang {
  flex: 1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journal-article .ja-content .code-block .cb-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.journal-article .ja-content .code-block .cb-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.journal-article .ja-content .code-block .cb-dot.dot-red    { background: var(--dot-red); }
.journal-article .ja-content .code-block .cb-dot.dot-yellow { background: var(--dot-yellow); }
.journal-article .ja-content .code-block .cb-dot.dot-green  { background: var(--dot-green); }

.journal-article .ja-content .code-block .cb-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(244, 237, 224, 0.18);
  color: rgba(244, 237, 224, 0.7);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;

  opacity: 0.7;
}
.journal-article .ja-content .code-block:hover .cb-copy {
  opacity: 1;
}
.journal-article .ja-content .code-block .cb-copy:hover {
  background: var(--brique);
  border-color: var(--brique);
  color: var(--marine);
}

.journal-article .ja-content .code-block .cb-copy.is-copied {
  background: var(--brique);
  border-color: var(--brique);
  color: var(--marine);
  opacity: 1;
}
.journal-article .ja-content .code-block .cb-copy.is-copied .cb-copy-label::after {
  content: ' ✓';
}

.journal-article .ja-content .code-block pre {
  margin: 0;
  padding: 16px 18px;
  background: transparent;      
  border: 0;                    
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream);
}
.journal-article .ja-content .code-block pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.journal-article .ja-content .code-block.is-terminal {

  background: var(--term-bg);
  border-color: var(--term-border);
}
.journal-article .ja-content .code-block.is-terminal .cb-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

.journal-article .ja-content .code-block.is-terminal pre code .line {
  display: block;
  position: relative;
  padding-left: 1.5em;
}
.journal-article .ja-content .code-block.is-terminal pre code .line::before {
  content: '$';
  position: absolute;
  left: 0;
  color: var(--brique-texte);
  font-weight: 600;
  opacity: 0.75;
  user-select: none;
}

.journal-article .ja-content .code-block.is-terminal pre code .line:empty::before,
.journal-article .ja-content .code-block.is-terminal pre code .line:has(> :only-child:empty)::before {
  content: '';
}

.journal-article .ja-content .code-block.is-code {

  background: var(--marine);
}

@media (max-width: 640px) {
  .journal-article .ja-content .code-block pre {
    font-size: 12.5px;
    padding: 14px 14px;
  }
  .journal-article .ja-content .code-block .cb-header {
    padding: 7px 10px;
    font-size: 11px;
  }
  .journal-article .ja-content .code-block .cb-dot {
    width: 9px;
    height: 9px;
  }
}

.home-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.hero {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--brique);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--marine);
  margin: 0 0 18px;
}

.hero-title .hero-accent {
  color: var(--brique);
}
.hero-title .hero-period {
  color: var(--brique);
}
.hero-title .hero-cursor {
  display: inline-block;
  width: 0.12em;
  height: 0.75em;
  background: var(--brique);
  vertical-align: -0.05em;
  margin-left: 0.12em;
  animation: blink 1.05s steps(2, end) infinite;
}

.hero-lead {
  font-family: var(--mono);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0;
}

.home-section .hs-header {
  display: flex;
  align-items: center;
  margin-bottom: 44px;
}

.home-section .hs-see-all {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  align-self: center;
}
.home-section .hs-see-all:hover { color: var(--brique-texte); }

.home-tools .ht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-tools .ht-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--marine-dim);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 240px;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04),
              0 6px 18px -10px rgba(29, 53, 87, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-tools .ht-card:hover {
  transform: translateY(-3px);
  border-color: var(--brique);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05),
              0 14px 32px -14px rgba(29, 53, 87, 0.28);
}
.home-tools .ht-card:hover .ht-name { color: var(--brique-texte); }
.home-tools .ht-card:hover .ht-foot-cta {
  background: var(--brique);
  color: var(--marine);
  border-color: var(--brique);
}

.home-tools .ht-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--term-bg);
  border-bottom: 1px solid var(--term-border);
}
.home-tools .ht-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.home-tools .ht-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.home-tools .ht-dot.dot-red    { background: var(--dot-red); }
.home-tools .ht-dot.dot-yellow { background: var(--dot-yellow); }
.home-tools .ht-dot.dot-green  { background: var(--dot-green); }
.home-tools .ht-card-path {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-tools .ht-card-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-tools .ht-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brique-texte);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.home-tools .ht-name {
  font-family: var(--display);
  font-weight: normal;
  font-size: 28px;
  color: var(--marine);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
  margin-bottom: 2px;
}
.home-tools .ht-lead {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}

.home-tools .ht-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-tools .ht-foot-meta {
  color: var(--ink-3);
}
.home-tools .ht-foot-cta {
  color: var(--marine);
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid var(--marine);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  flex: 0 0 auto;
}

.home-journal .hj-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  transition: border-color 0.18s ease;
}
.home-journal .hj-featured:hover { border-color: var(--brique); }
.home-journal .hj-featured:hover .hj-feat-title { color: var(--brique-texte); }
.home-journal .hj-featured:hover .hj-read { color: var(--brique-texte); }

.home-journal .hj-cover {
  position: relative;
  height: 150px;

  overflow: hidden;
  border-bottom: 1px solid var(--term-border);
}
.home-journal .hj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-journal .hj-feat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 20px;
}

.home-journal .hj-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-journal .hj-tag {
  color: var(--brique-texte);
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-journal .hj-feat-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--marine);
  margin: 0;
  transition: color 0.15s ease;
}
.home-journal .hj-feat-desc {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-journal .hj-read {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--marine);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 4px;
  transition: color 0.15s ease;
}

.home-journal .hj-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.home-journal .hj-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brique);
  padding: 15px 17px 16px;
  transition: background 0.18s ease;
}
.home-journal .hj-tile:hover { background: var(--cream-2); }
.home-journal .hj-tile:hover .hj-tile-title { color: var(--brique-texte); }

.home-journal .hj-tile.is-placeholder {
  border-left-color: var(--line);
  opacity: 0.6;
}

.home-journal .hj-tile-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 17px;
  color: var(--marine);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.15s ease;
}
.home-journal .hj-tile-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-journal .hj-tile-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-journal .hj-tile-tag {
  background: var(--brique);
  color: var(--marine);
  text-transform: none;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

.colophon {
  margin-top: 8px;
}

.footer-line {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .home-content { gap: 88px; }
  .home-tools .ht-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-journal .hj-cover { height: 130px; }
}

@media (max-width: 640px) {
  .home-content { gap: 64px; }
  .home-tools .ht-grid {
    grid-template-columns: 1fr;
  }
  .home-journal .hj-tiles {
    grid-template-columns: 1fr;
  }
}

.page-header {
  width: 100%;
  margin: 0 0 26px;
}

.page-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(46px, 7.5vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--marine);
  margin: 0;

  overflow-wrap: break-word;
}

@media (max-width: 640px) { .page-title { hyphens: auto; } }

.page-title::first-letter { text-transform: uppercase; }

.page-accent { color: var(--brique); }
.page-period { color: var(--brique); }
.page-cursor {
  display: inline-block;
  width: 0.1em;
  height: 0.72em;
  background: var(--brique);
  vertical-align: -0.04em;
  margin-left: 0.1em;
  animation: blink 1.05s steps(2, end) infinite;
}

.page-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 16px 0 0;
}

.hero-title.is-typing .hero-period,
.hero-title.is-typing .hero-cursor,
.page-title.is-typing .page-period,
.page-title.is-typing .page-cursor,
.abw-title.is-typing .abw-period,
.abw-title.is-typing .abw-cursor { display: none; }

.hero-title.is-typing [data-tw]::after,
.page-title.is-typing [data-tw]::after,
.abw-title.is-typing [data-tw]::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.75em;
  background: var(--brique);
  vertical-align: -0.05em;
  margin-left: 0.06em;
  animation: blink 1.05s steps(2, end) infinite;
}

.vcf { width: 100%; max-width: 1180px; min-width: 0; }

.vcf .dropzone { margin-bottom: 26px; }

.vcf .vcf-tools { display: none; margin-bottom: 22px; }
.vcf .vcf-tools.is-on { display: block; }
.vcf .vcf-stats { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.vcf .vcf-stats b { color: var(--marine); font-weight: 600; }

.vcf .vcf-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.vcf .vcf-search { flex: 1 1 260px; min-width: 0; font-size: inherit; }

.vcf .vcf-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vcf .vcf-actions .cta { font-size: 13px; padding: 11px 16px; border: 0; white-space: nowrap; }

.vcf .vcf-rapport { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.vcf .vcf-una { flex: 1 1 260px; min-width: 0; max-width: 420px; font-size: inherit; }
.vcf .vcf-una .dollar { font-size: 10px; letter-spacing: 0.12em; }
.vcf .vcf-una.vcf-annexe { flex: 0 1 170px; }    
.vcf .vcf-rapport .cta { font-size: 13px; padding: 11px 16px; border: 0; white-space: nowrap; }
.vcf .vcf-pdf-etat { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.vcf .vcf-density { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.vcf .vcf-dens {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; border: 0; background: none;
  color: var(--ink-3); cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.vcf .vcf-dens svg { width: 24px; height: 16px; fill: currentColor; display: block; }
.vcf .vcf-dens:hover { color: var(--marine); }
.vcf .vcf-dens.is-active { color: var(--brique-texte); }

.vcf-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}
.vcf-grid.is-on { display: grid; }
.vcf-grid.d-compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vcf-grid.d-normal  { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }

.vcf-grid.d-large   { grid-template-columns: 1fr; gap: 14px; }
.vcf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  transition: border-color 0.15s ease;
}
.vcf-card:hover { border-left-color: var(--brique); }
.vcf-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.vcf-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brique);
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; color: var(--marine);
  flex-shrink: 0; overflow: hidden;
}
.vcf-av img { width: 100%; height: 100%; object-fit: cover; }
.vcf-card-id { min-width: 0; }
.vcf-nm { font-family: var(--display); font-size: 15.5px; color: var(--marine); line-height: 1.12; letter-spacing: -0.01em; word-break: break-word; }
.vcf-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.vcf-body { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); padding-top: 10px; }
.vcf-row { display: flex; gap: 9px; }
.vcf-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); min-width: 34px; padding-top: 3px; flex-shrink: 0; }
.vcf-v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); line-height: 1.45; word-break: break-word; min-width: 0; }

.vcf .vcf-empty { display: none; padding: 40px 20px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-style: italic; }
.vcf .vcf-empty.is-on { display: block; }

gt-dropzone { display: block; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 38px 28px;
  background: var(--cream-2);
  border: 2px dashed var(--brique);
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--marine);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.dropzone:hover { background: var(--cream-3); }
.dropzone.dragover { background: var(--cream-3); border-color: var(--marine); }

.dropzone .hint {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 500;
}
.dropzone .hint strong { color: var(--brique-texte); font-weight: 500; }

.dropzone input[type="file"] { display: none; }

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--term-border);
  height: 50px;
  padding-left: 24px;
}
.sh-brand {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.sh-dot { color: var(--brique-texte); }

.sh-right { display: flex; align-items: stretch; }

.sh-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px 0 20px;
}
.sh-search::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marine-dim);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  z-index: 0;
}
.sh-search > * { position: relative; z-index: 1; }
.sh-prompt { color: var(--brique-texte); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.sh-search input {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--cream);
  caret-color: transparent;
  width: 190px;
  max-width: 36vw;
}
.sh-search input::placeholder { color: var(--cream-mute); }
.sh-search input:focus { caret-color: var(--brique); }
.sh-cursor { display: inline-block; width: 6px; height: 15px; background: var(--brique); animation: blink 1.05s steps(2, end) infinite; }
.sh-search:focus-within .sh-cursor { display: none; }

.sh-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: min(340px, 80vw);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  background: var(--marine-dim);
  border: 1px solid var(--term-border);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
}
.sh-results.is-open { display: block; }
.shr-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  border-top: 1px solid var(--cream-faint);
}
.shr-item:first-child { border-top: 0; }
.shr-item.is-active,
.shr-item:hover { background: var(--brique); }
.shr-kind {
  flex: 0 0 auto;
  width: 54px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brique-light);
}
.shr-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.3;
  word-break: break-word;
}
.shr-item.is-active .shr-kind,
.shr-item.is-active .shr-name,
.shr-item:hover .shr-kind,
.shr-item:hover .shr-name { color: var(--marine); }
.shr-empty {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: italic;
  color: var(--cream-mute);
}

.sh-lang { display: flex; align-items: stretch; margin-left: -14px; user-select: none; }
.sh-pill {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 14px;
  text-decoration: none;
}
.sh-pill.left  { clip-path: polygon(14px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding: 0 14px 0 20px; }
.sh-pill.right { clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%); padding: 0 20px 0 14px; margin-left: -7px; }
.sh-pill.active   { background: var(--brique); color: var(--marine); }
.sh-pill.inactive { background: var(--marine-dim); color: var(--cream-mute); }
.sh-pill.inactive:hover { color: var(--cream); }

.snav { display: flex; background: var(--cream); user-select: none; min-height: 100px; }
.snav a {
  text-decoration: none; position: relative; overflow: hidden;
  transition: flex 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}

.snav-g {
  flex: 0 0 200px;
  background: var(--canvas-bg);
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  padding: 0 24px 0 22px;
}
.snav-g-mark { font-family: var(--display); font-size: clamp(40px, 5.5vw, 58px); line-height: 0.78; }

.snav-dot { color: var(--brique-texte); }
.snav-g-sub { font-family: var(--mono); font-size: 9px; color: var(--cream-mute); }
.snav-g.is-active { background: var(--brique); color: var(--marine); }
.snav-g.is-active .snav-dot { color: var(--surface); }
.snav-g.is-active .snav-g-sub { color: rgba(29, 53, 87, 0.62); }

.snav-sec {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 16px 16px 32px;
  color: var(--cream);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.snav-sec:last-child { clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
.snav-sec:nth-of-type(2) { background: var(--marine); }
.snav-sec:nth-of-type(3) { background: var(--marine-2); }
.snav-sec:nth-of-type(4) { background: var(--marine-3); }
.snav-sec:nth-of-type(5) { background: var(--marine-4); }
.snav-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brique-light); }
.snav-name {
  font-family: var(--display); font-size: clamp(18px, 2.4vw, 30px);
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snav-arrow { align-self: flex-end; font-size: 13px; opacity: 0.7; }

.snav-sec.is-active { background: var(--brique) !important; color: var(--marine); }
.snav-sec.is-active .snav-num { color: var(--marine); opacity: 0.6; }

.snav:has(.snav-sec:hover) .snav-sec { flex: 0.7; }
.snav:has(.snav-sec:hover) .snav-sec:hover { flex: 1.7; background: var(--brique); color: var(--marine); }
.snav:has(.snav-sec:hover) .snav-sec:hover .snav-num { color: var(--marine); opacity: 0.6; }

.csub {
  display: flex;
  width: 100%;
  background: var(--cream);

  border-top: 4px solid var(--brique);
  user-select: none;
}
.csub-pane {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 44px 20px;
  background: var(--cream-2);
  color: var(--marine);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.csub-left {
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  padding-right: 58px;
}
.csub-right {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 58px;
  margin-left: -20px;
}
.csub-pane:hover { background: var(--cream); }

.csub-pane.is-active {
  background: var(--cream);
  box-shadow: inset 0 -4px 0 var(--brique);
}

.csub-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.csub-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--marine);
}

.csub-title::first-letter { text-transform: uppercase; }

.csub-dot { color: var(--brique); }
.csub-count {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--brique-texte);
}

.pick {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brique);
  padding: 16px 18px 16px 17px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.pick-card:hover { background: var(--cream-2); }

.pick-card.has-icon {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.pc-icon {
  flex: 0 0 auto;
  width: 120px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--marine);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.pc-icon img { width: 100%; height: 100%; object-fit: cover; }
.pc-icon-mono {
  font-family: var(--display);
  font-size: 40px;
  color: var(--brique-texte);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pc-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
}

.pc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brique-texte);
  letter-spacing: 0.06em;
}
.pc-num::before { content: '/ '; opacity: 0.55; }

.pc-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brique-texte);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pick-card:hover .pc-arrow { opacity: 1; transform: translateX(0); }

.pick-card.has-icon .pc-arrow { top: 14px; right: 16px; }

.pc-name {
  font-family: var(--display);
  font-size: 20px;
  color: var(--marine);
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding-right: 22px;
}

.pick--tools .pc-name { text-transform: uppercase; }

.pc-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.pc-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  background: var(--brique);
  color: var(--marine);
  padding: 2px 7px;
}
.pc-hash { color: var(--marine); }
.pc-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.pick-card.is-feature {
  grid-column: 1 / -1;
  border-left-width: 4px;
  padding: 26px 30px 24px;
  gap: 12px;
}
.pc-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brique);
  color: var(--marine);
  padding: 4px 10px;
  margin-bottom: 2px;
}
.pick-card.is-feature .pc-name {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  padding-right: 0;
}
.pick-card.is-feature .pc-desc {
  font-size: 15px;
  line-height: 1.6;
  max-width: 66ch;
}
.pick-card.is-feature .pc-arrow {
  top: 26px;
  right: 28px;
  font-size: 18px;
}

@media (max-width: 639px) {
  .pick { grid-template-columns: 1fr; }
  .pick-card.is-feature { padding: 20px 18px; }
  .pick-card.is-feature .pc-name { font-size: 26px; }
  .pc-icon { width: 84px; }
  .pc-icon-mono { font-size: 30px; }
  .pc-main { padding: 14px 16px; }
}

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  margin: 0 0 46px;
}
.sb-cell {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}
.sb-cell:first-child { border-left: 0; padding-left: 2px; }
.sb-k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sb-k::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--brique);
}
.sb-v {
  font-family: var(--display);
  font-size: 34px;
  color: var(--marine);
  line-height: 1;
  letter-spacing: -0.02em;
}

.file-bar {
  display: flex;
  flex-wrap: wrap;
  max-width: 720px;
  width: fit-content;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.file-bar.is-full { width: 100%; }
.file-bar.is-left { margin: 0 0 32px; }
.file-bar.is-center { margin: 38px auto 0; }

.file-bar.is-nowrap { flex-wrap: nowrap; }

.fb-dl,
.fb-envoi,
.fb-meta {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fb-dl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 22px;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.fb-dl:hover { background: var(--marine); color: var(--cream); }
.fb-dl-icon { font-family: var(--mono); font-size: 17px; line-height: 1; }

.fb-envoi {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  padding: 0;
  border-top: 0;
  border-left: 0;
  background: var(--cream);
  color: var(--marine);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.fb-envoi-signe {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}
.fb-envoi-texte {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 18px;
}
.fb-envoi-texte strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.fb-envoi-texte span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.fb-envoi-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brique-texte);
  transition: background 0.18s ease, color 0.18s ease;
}
.fb-envoi:hover { background: var(--cream-2); }
.fb-envoi:hover .fb-envoi-action { background: var(--marine); color: var(--cream); }
.fb-envoi:focus-visible { outline: 2px solid var(--marine); outline-offset: -2px; }

.file-bar.fb-suite { margin-top: 0; border-top: 0; }

.fb-help {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 60px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  color: var(--marine);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.fb-help:hover { background: var(--marine); color: var(--cream); }
.fb-help-q { font-family: var(--display); font-size: 20px; line-height: 1; }

.fb-meta {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
}
.fb-meta.is-grow { flex: 1 1 auto; }
.fb-meta-k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fb-meta-k::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--brique);
}
.fb-meta-v {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--marine);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-meta-link {
  color: var(--brique-texte);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fb-meta-link:hover { color: var(--marine); border-bottom-color: var(--marine); }

.file-bar.is-display .fb-meta { gap: 9px; padding: 14px 22px; }
.file-bar.is-display .fb-meta-v {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 560px) {
  .file-bar { flex-direction: column; width: 100%; }
  .fb-dl { justify-content: center; }
  .fb-envoi-action { display: none; }
}

.gt-fenetre {
  width: min(560px, calc(100vw - 24px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-left: 4px solid var(--brique);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  box-shadow: 0 16px 48px var(--scrim);
}
.gt-fenetre[open] { display: flex; flex-direction: column; }
.gt-fenetre [hidden] { display: none !important; }
.gt-fenetre-corps .search-line input { flex: 1 1 auto; }
.gt-fenetre::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.gt-fenetre-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px dashed var(--line);
}
.gt-fenetre-fermer {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
}
.gt-fenetre-fermer:hover { color: var(--marine); }
.gt-fenetre-corps {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}
.gt-fenetre-corps p { margin: 0; }
.gt-fenetre-corps .search-line { margin: 0; }
.gt-fenetre-corps textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.gt-fenetre-corps textarea:focus { outline: none; border-color: var(--brique); }
.gt-fenetre-case { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gt-fenetre-case input { margin-top: 3px; accent-color: var(--marine); }

.gt-fenetre-choix { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.gt-fenetre-corps .search-line select {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.gt-fenetre-corps .search-line select:invalid { color: var(--ink-3); }
.gt-fenetre-corps .search-line select option { color: var(--ink); }

.gt-fenetre-corps .search-line.is-clair:has(input[readonly]) { background: transparent; border-style: dashed; }
.gt-fenetre-alerte { padding: 10px 12px; background: var(--brique-faint); border-left: 3px solid var(--brique); color: var(--marine); }

.gt-fenetre-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gt-fenetre-erreur { color: var(--carmin); min-height: 1em; }

.gt-fenetre-pret { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brique); }
.gt-fenetre-pret p { flex: 1 1 220px; margin: 0; color: var(--marine); overflow-wrap: anywhere; }
.gt-fenetre-corps progress { width: 100%; height: 10px; accent-color: var(--marine); }
.gt-fenetre-pied {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.gt-fenetre-pied .cta { font-size: 14px; padding: 11px 18px; border: 0; }
.gt-fenetre-pied .cta:disabled { opacity: 0.5; cursor: progress; }
.gt-fenetre-pied .cta-ghost { background: transparent; border: 0; cursor: pointer; font-family: var(--mono); }

.gt-ip-btn {
  margin-left: 6px;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px dashed var(--brique);
  background: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  cursor: pointer;
  vertical-align: baseline;
  white-space: nowrap;
}
.gt-ip-btn:hover { color: var(--brique-texte); border-bottom-style: solid; }
.gt-ip-btn:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }

.gt-fenetre.gt-ip { width: min(520px, calc(100vw - 24px)); }
.gt-ip-fiche {
  display: grid;
  grid-template-columns: minmax(110px, max-content) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--marine);
  border-bottom: 1px solid var(--marine);
}
.gt-ip-fiche dt, .gt-ip-fiche dd {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.gt-ip-fiche dt {
  padding-right: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.gt-ip-fiche dd { color: var(--ink); overflow-wrap: anywhere; }
.gt-ip-fiche dd.is-alerte { color: var(--note-ko); font-weight: 600; }    
.gt-ip-fiche dt:last-of-type, .gt-ip-fiche dd:last-of-type { border-bottom: 0; }
.gt-ip-mention { font-size: 11.5px; color: var(--ink-2); }
.gt-fenetre.gt-ip .gt-fenetre-pied { flex-wrap: wrap; }
.gt-fenetre.gt-ip .gt-ip-lien { font-size: 13px; color: var(--marine); text-decoration: none; border-bottom: 1px solid var(--brique); padding: 0; }
.gt-fenetre.gt-ip .gt-ip-lien:hover { color: var(--brique-texte); }

@media (max-width: 480px) {
  .gt-ip-fiche { grid-template-columns: minmax(0, 1fr); }
  .gt-ip-fiche dt { padding-bottom: 0; border-bottom: 0; }
  .gt-ip-fiche dd { padding-top: 2px; }
}

.gt-lecture {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  margin: 0 0 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--marine);
}
.gt-lecture .fb-envoi-signe { flex-basis: 52px; font-size: 20px; }
.gt-lecture.is-ok .fb-envoi-signe { background: var(--marine); color: var(--cream); }
.gt-lecture.is-ko { border-color: var(--carmin); }
.gt-lecture.is-ko .fb-envoi-signe { background: var(--carmin); color: var(--cream); }
.gt-lecture .fb-envoi-texte span { overflow-wrap: anywhere; }
button.fb-envoi-action {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
}
.gt-lecture button.fb-envoi-action:hover { background: var(--marine); color: var(--cream); }
.gt-lecture button.fb-envoi-action:focus-visible { outline: 2px solid var(--marine); outline-offset: -2px; }
.gt-lecture-note { align-self: center; padding: 8px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); border-left: 1px solid var(--line); }

.gt-lecture.is-carte .fb-envoi-signe { flex: 0 0 64px; align-items: flex-start; padding-top: 22px; font-size: 26px; }
.gt-lecture-corps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gt-lecture.is-carte .fb-envoi-texte { padding: 18px 24px 16px; gap: 6px; }
.gt-lecture.is-carte .fb-envoi-texte strong { font-size: 17px; }
.gt-lecture.is-carte .fb-envoi-texte span { font-size: 12.5px; color: var(--ink-2); }
.gt-lecture-aide {
  margin: 0 24px;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  max-width: 68ch;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.gt-lecture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 18px 24px 22px; }
.gt-lecture-actions .gt-lecture-cta { display: inline-flex; align-items: center; gap: 10px; border: 0; font-size: 15px; padding: 12px 20px; }
.gt-lecture-actions .gt-lecture-cta:focus-visible,
.gt-lecture-actions .gt-lecture-reprendre:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }
.gt-lecture-actions .gt-lecture-reprendre { background: none; border: 0; padding: 4px 0; font-family: var(--mono); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.gt-lecture-actions .gt-lecture-note { border-left: 0; padding: 0; }
.gt-lecture.is-carte.is-ko .gt-lecture-aide { border-top-color: color-mix(in srgb, var(--carmin) 35%, var(--line)); }

@media (max-width: 640px) {
  .gt-lecture { flex-wrap: wrap; }
  .gt-lecture .fb-envoi-texte { flex: 1 1 calc(100% - 52px); }

  .gt-lecture.is-carte { flex-wrap: nowrap; }
  .gt-lecture.is-carte .fb-envoi-signe { flex-basis: 44px; padding-top: 18px; font-size: 22px; }
  .gt-lecture.is-carte .fb-envoi-texte { padding: 14px 16px 12px; }
  .gt-lecture-aide { margin: 0 16px; padding-top: 12px; font-size: 12.5px; }
  .gt-lecture-actions { padding: 14px 16px 18px; }
  .gt-lecture-actions .gt-lecture-cta { flex: 1 1 100%; justify-content: center; }
  .gt-lecture-actions .gt-lecture-reprendre { flex: 1 1 100%; text-align: center; }
  .gt-lecture button.fb-envoi-action, .gt-lecture > .gt-lecture-note { display: flex; align-items: center; flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); min-height: 44px; justify-content: center; }
}

.gt-lecture-fermer { flex: none; align-self: stretch; width: 46px; padding: 0; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
.gt-lecture-fermer:hover { background: var(--marine); color: var(--cream); }
.gt-lecture-fermer:focus-visible { outline: 2px solid var(--marine); outline-offset: -2px; }
.gt-lecture .fb-envoi-texte .gt-lecture-note { align-self: auto; padding: 0; border: 0; }

.gt-dossier-choix { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 18px; }
.gt-dossier-choix > * { min-width: 0; white-space: normal; text-align: center; }    
@media (max-width: 480px) { .gt-dossier-choix { gap: 12px; } .gt-dossier-choix .cta { font-size: 12px; padding: 10px 12px; } .gt-dossier-choix .cta-ghost { font-size: 12px; } }
.gt-dossier-choix .cta { border: 0; }
.gt-dossier-choix .cta-ghost { border: 0; background: none; padding: 6px 2px; font-family: var(--mono); border-bottom: 1px solid var(--brique); cursor: pointer; }
.gt-dossier-retrouver { max-width: 760px; margin: 24px auto; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); color: var(--ink); }
.gt-dossier-retrouver p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.gt-dossier-retrouver ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--marine); }
.gt-dossier-retrouver li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.gt-dossier-retrouver li b { font-weight: 600; color: var(--marine); overflow-wrap: anywhere; }
.gt-dossier-retrouver li small { grid-column: 1; font-size: 10.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.gt-dossier-retrouver li em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 11px; color: var(--ink-3); }
.gt-dossier-retrouver li.is-ok em { color: var(--marine); font-weight: 600; }
.gt-dossier-etat { min-height: 1.4em; font-size: 12px; color: var(--brique-texte); }
.gt-dossier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gt-dossier-actions .cta { border: 0; font-size: 13px; padding: 11px 18px; }
.gt-dossier-actions .cta-ghost { border: 0; background: none; padding: 6px 2px; font-family: var(--mono); border-bottom: 1px solid var(--brique); cursor: pointer; }

.gt-bulle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--marine);
  background: var(--marine);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.gt-bulle:hover { background: var(--brique); border-color: var(--brique); color: var(--on-brique); }
.gt-bulle:hover svg { stroke: currentColor; }
.gt-bulle:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; }
.gt-bulle svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brique); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.gt-bulle[aria-expanded="true"] { background: var(--cream); color: var(--marine); }

html.gt-appli-lancee .gt-bulle, html.gt-appli-lancee .gt-bulle-panneau { display: none; }

.gt-bulle-panneau {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 901;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  max-height: min(600px, calc(100vh - 110px));
  border: 1px solid var(--marine);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
}
.gt-bulle-panneau[hidden] { display: none; }
.gt-bulle-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 0 16px;
  min-height: 44px;
  background: var(--marine);
  color: var(--cream);
}

.gt-bulle-tete .tag { background: none; border: 0; padding: 0; color: var(--cream); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gt-bulle-tete .tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--brique); vertical-align: 1px; }
.gt-bulle-tete .gt-fenetre-fermer { width: 36px; height: 36px; color: var(--cream-mute); }
.gt-bulle-tete .gt-fenetre-fermer:hover { color: var(--brique); }
.gt-bulle-fil {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
}
.gt-bulle-msg {
  max-width: 88%;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.gt-bulle-msg.bot { align-self: flex-start; padding-left: 18px; position: relative; color: var(--marine); font-size: 14px; }
.gt-bulle-msg.bot::before { content: ">"; position: absolute; left: 0; top: 0; color: var(--brique-texte); font-weight: 600; }
.gt-bulle-msg.moi { align-self: flex-end; padding: 8px 12px; background: var(--marine); color: var(--cream); }
.gt-bulle-msg.erreur { color: var(--carmin); }
.gt-bulle-msg.erreur::before { color: var(--carmin); }

.gt-bulle-choix { counter-reset: gt-choix; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 100%; background: var(--line); border: 1px solid var(--line); }
.gt-bulle-choix button {
  counter-increment: gt-choix;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 12px 12px 14px;
  border: 0;
  background: var(--surface);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.gt-bulle-choix button::before { content: counter(gt-choix, decimal-leading-zero); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--brique-texte); }
.gt-bulle-choix button:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.gt-bulle-choix button:hover { background: var(--marine); color: var(--cream); }
.gt-bulle-choix button:hover::before { color: var(--brique); }
.gt-bulle-choix button:focus-visible { outline: 2px solid var(--brique); outline-offset: -2px; }
.gt-bulle-saisie { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--cream-2); }
.gt-bulle-saisie[hidden] { display: none; }
.gt-bulle-saisie textarea, .gt-bulle-saisie input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom-color: var(--marine);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  resize: vertical;
}
.gt-bulle-saisie textarea { min-height: 84px; max-height: 200px; }
.gt-bulle-saisie textarea:focus, .gt-bulle-saisie input:focus { outline: 2px solid var(--brique); outline-offset: -1px; }
.gt-bulle-boutons { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.gt-bulle-boutons .cta { padding: 10px 18px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .gt-bulle, .gt-bulle-choix button { transition: none; } }
@media (max-width: 560px) {
  .gt-bulle { right: 12px; bottom: 12px; }
  .gt-bulle-panneau { right: 0; bottom: 0; width: 100vw; max-height: 82vh; border-width: 1px 0 0; }
}

.tb {
  --tb-ease: cubic-bezier(.2, .8, .2, 1);
  container-type: inline-size;
  width: 100%;
  margin: 38px auto 0;
  font-family: var(--mono);
  color: var(--marine);
}

:where(.tb) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }

.tb-cl { display: flex; align-items: center; min-height: 28px; margin: 0 0 10px; font-size: 12.5px; color: var(--ink-2); }
.tb-seg { display: flex; align-items: center; gap: 8px; height: 20px; padding: 0 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.tb-seg:first-child { padding-left: 0; border-left: 0; }
.tb-seg.is-fin { margin-left: auto; padding-right: 0; border-left: 0; }
.tb-seg-date { display: none; }
.tb-dv { font-family: var(--display); text-transform: uppercase; color: var(--marine); }
.tb-seg .tb-dv { font-size: 12.5px; }
.tb-bdg { display: inline-flex; align-items: stretch; height: 24px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.tb-bdg-m { width: 24px; display: flex; align-items: center; justify-content: center; background: var(--marine-dim); font-family: var(--display); font-size: 13px; letter-spacing: 0; }
.tb-bdg-m i { font-style: normal; color: var(--brique); }
.tb-bdg-l { display: flex; align-items: center; padding: 0 9px 0 8px; }
.tb-bdg.is-suite .tb-bdg-m { color: var(--cream); }
.tb-bdg.is-suite .tb-bdg-l { background: var(--marine); color: var(--cream); }
.tb-bdg.is-com .tb-bdg-m { color: var(--brique); }
.tb-bdg.is-com .tb-bdg-l { background: var(--cream-2); color: var(--marine); box-shadow: inset 0 0 0 1px var(--line); }
.tb-av { width: 24px; height: 24px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: var(--marine); color: var(--cream); font-family: var(--display); font-size: 9px; line-height: 1; flex: 0 0 auto; }
.tb-av.is-plus { background: var(--brique); color: var(--on-brique); }
.tb-av.is-anon { background: var(--cream-3); color: var(--marine); }
.tb-pile { display: inline-flex; }
.tb-pile .tb-av + .tb-av { margin-left: -4px; border: 2px solid var(--cream); width: 26px; height: 26px; }
.tb-qui { display: inline-flex; align-items: center; gap: 8px; color: var(--marine); }
.tb .tb-qui .tb-n { font-weight: 500; border-bottom: 1px solid var(--brique); }
.tb .tb-qui:hover .tb-n { border-bottom-color: var(--marine); }
.tb .tb-vers { color: var(--brique-texte); border-bottom: 1px solid var(--brique); }
.tb .tb-vers:hover { color: var(--marine); border-bottom-color: var(--marine); }
.tb-qui:focus-visible, .tb-vers:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; }

.tb-bar { display: flex; align-items: stretch; height: 64px; box-sizing: border-box; border-top: 2px solid var(--marine); border-bottom: 1px solid var(--line); }
.tb-bar > * + * { border-left: 1px solid var(--line); }
.tb-bar a:focus-visible, .tb-bar button:focus-visible { outline: 2px solid var(--brique); outline-offset: -4px; }
.tb-bar .tb-dl:focus-visible { outline-color: var(--marine); }
.tb-key { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--marine); text-decoration: none; transition: background .2s var(--tb-ease), color .2s var(--tb-ease); }

.tb-key > * { flex-shrink: 0; }
.tb-sq { flex: 0 0 30px; height: 30px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; line-height: 1; transition: background .2s var(--tb-ease), color .2s var(--tb-ease), transform .35s var(--tb-ease); }
.tb-t { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.tb-t b { font-family: var(--display); font-weight: 400; font-size: 12.5px; line-height: 15px; text-transform: uppercase; }
.tb-t small { font-size: 10px; line-height: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.tb-dl { background-image: linear-gradient(var(--brique), var(--brique)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 5px; transition: background-size .42s var(--tb-ease); }
.tb-fl { flex: 0 0 30px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--brique); color: var(--on-brique); font-family: var(--display); font-size: 16px; line-height: 1; transition: background .2s var(--tb-ease), color .2s var(--tb-ease); }
.tb-fl i { display: inline-block; font-style: normal; }
.tb-dl .tb-t small { letter-spacing: .04em; }
.tb-dl:hover, .tb-dl:focus-visible { background-size: 100% 100%; color: var(--on-brique); }
.tb-dl:hover .tb-fl, .tb-dl:focus-visible .tb-fl { background: var(--marine); color: var(--brique); }
.tb-dl:hover .tb-fl i, .tb-dl:focus-visible .tb-fl i { animation: tb-tombe .9s var(--tb-ease) infinite; }
.tb-dl:hover .tb-t small, .tb-dl:focus-visible .tb-t small { color: inherit; }
.tb-sz { display: block; height: 12px; overflow: hidden; }
.tb-szi { display: flex; flex-direction: column; transition: transform .35s var(--tb-ease); }
.tb-szi small { height: 12px; }
.tb-dl:hover .tb-szi, .tb-dl:focus-visible .tb-szi { transform: translateY(-12px); }
@keyframes tb-tombe { 0% { transform: translateY(-4px); opacity: 0; } 40% { transform: none; opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }

button.tb-hash ~ .tb-sig, button.tb-hash ~ .tb-aide { flex: 1 0 auto; }
.tb-hash.is-provisoire { flex: 1 1 auto; }
.tb-sig .tb-sq { border: 2px solid var(--brique); color: var(--brique-texte); }
.tb-aide .tb-sq { border: 2px solid var(--marine); color: var(--marine); }
.tb-sig:hover .tb-sq, .tb-sig:focus-visible .tb-sq { background: var(--brique); color: var(--on-brique); transform: rotate(-10deg) scale(1.12); }
.tb-aide:hover .tb-sq, .tb-aide:focus-visible .tb-sq { background: var(--marine); color: var(--cream); transform: rotate(-10deg) scale(1.12); }
.tb-sw { display: block; height: 32px; overflow: hidden; }
.tb-swi { display: flex; flex-direction: column; transition: transform .4s var(--tb-ease); }
.tb-swi > .tb-t { height: 32px; justify-content: center; }
.tb-swi > .tb-t + .tb-t { color: var(--brique-texte); }
.tb-key:hover .tb-swi, .tb-key:focus-visible .tb-swi { transform: translateY(-32px); }

.tb-hash { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px; transition: background .2s var(--tb-ease); }
button.tb-hash:hover, button.tb-hash:focus-visible { background: var(--cream-2); }
.tb-ek { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.tb-hash:hover .tb-ek, button.tb-hash:focus-visible .tb-ek { color: var(--brique-texte); }
.tb-hv { display: flex; align-items: baseline; font-size: 18px; line-height: 22px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--marine); white-space: nowrap; overflow: hidden; }
.tb-hv i { font-style: normal; color: var(--ink-3); letter-spacing: 0; }
.tb-hv.is-texte { display: block; font-size: 12px; letter-spacing: 0; text-transform: none; text-overflow: ellipsis; color: var(--ink-3); }

.tb-date { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 14px; }
.tb-date .tb-dv { font-size: 14px; line-height: 1; }
.tb-statut { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.tb-statut .tb-sq { background: var(--cream-3); color: var(--marine); }
.tb-statut .tb-t { min-width: 0; overflow: hidden; }

@container (max-width: 700px) {
  .tb-sig .tb-sw, .tb-aide .tb-sw { display: none; }
  .tb-sig, .tb-aide { padding: 0; width: 56px; justify-content: center; }
}
@container (max-width: 560px) {
  .tb-dl { padding: 0; width: 56px; justify-content: center; }
  .tb-dl .tb-t, .tb-date, .tb-statut .tb-t small { display: none; }
  .tb-seg-par, .tb-seg-avec { display: none; }
  .tb-seg-date { display: flex; }
  .tb-hv { font-size: 15px; letter-spacing: .04em; }
}

@container (max-width: 360px) {
  .tb-hash { padding: 0 8px; }
  .tb-hv { font-size: 13px; letter-spacing: .02em; }
  .tb-ek { letter-spacing: .06em; }
  .tb-statut .tb-sq { display: none; }
  .tb-bdg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.tb-fen { color: var(--ink); }
.tb-fen .gt-fenetre-corps { gap: 16px; }
.tb-fa { display: flex; align-items: center; gap: 16px; }
.tb-big { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--brique); color: var(--on-brique); font-family: var(--display); font-size: 19px; }
.tb-fa strong { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; color: var(--marine); }
.tb-fa small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brique-texte); }
.tb-nomb { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.tb-nomb:hover { border-bottom-color: var(--brique); }
.tb-fen button:focus-visible, .tb-fen a:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.tb-k { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tb-fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-fg > div { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; min-width: 0; }
.tb-fg > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.tb-fg > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.tb-fg > div > span:last-child { font-size: 12.5px; color: var(--marine); }

.tb-fg a, .tb-lien { color: var(--brique-texte); text-decoration: none; font-size: 12.5px; align-self: flex-start; padding: 1px 4px; margin-left: -4px; background-image: linear-gradient(var(--brique), var(--brique)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; overflow-wrap: anywhere; }
.tb-fg a:hover, .tb-fg a:focus-visible, .tb-lien:hover, .tb-lien:focus-visible { background-size: 100% 2px; }
.tb-lien { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; }
.tb-li { display: inline-flex; }
.tb-li svg { display: block; }
.tb-fc { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tb-fc strong { font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--marine); }
.tb-fen .tb-fx { margin: -8px 0 0; font-size: 11.5px; color: var(--ink-2); }
.tb-liste { display: flex; flex-direction: column; }
.tb-cr, .tb-to { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.tb-cr .tb-av { width: 30px; height: 30px; font-size: 10px; }
.tb-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-cr .tb-tx b { font-weight: 500; font-size: 12.5px; color: var(--marine); }
.tb-tx small { font-size: 11px; color: var(--ink-3); }
.tb-d { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tb-fen .tb-vide { margin: -8px 0 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.tb-fs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-fs > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; min-width: 0; }
.tb-fs > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.tb-fs b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; color: var(--marine); }
.tb-fs span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tb-to { color: var(--marine); text-decoration: none; }
.tb-to .tb-tx b { font-family: var(--display); font-weight: 400; font-size: 13.5px; text-transform: uppercase; }
.tb-fle { color: var(--brique-texte); transition: transform .25s ease; }
.tb-to:hover .tb-fle { transform: translateX(3px); }
.tb-to:hover .tb-tx b { color: var(--marine-hover); }
.tb-tb { flex: 0 0 30px; width: 30px; height: 30px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: var(--marine); color: var(--cream); font-family: var(--display); font-size: 10px; }
.tb-tb.is-creux { background: transparent; border: 2px solid var(--marine); color: var(--marine); }
.tag.tb-tag-marine { background: var(--marine); color: var(--cream); }
.tb-fen .gt-fenetre-pied .tb-retour { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.tb-fen .gt-fenetre-pied .tb-retour:hover { color: var(--marine); }

.tb-sec { display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; height: 42px; box-sizing: border-box; background: transparent; border: 1.5px solid var(--marine); color: var(--marine); font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: -.015em; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tb-sec kbd { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 5px; border: 1px solid var(--line); color: var(--ink-3); transition: color .2s ease, border-color .2s ease; }
.tb-sec:hover, .tb-sec:focus-visible { background: var(--marine); color: var(--cream); }
.tb-sec:hover kbd, .tb-sec:focus-visible kbd { color: var(--cream-mute); border-color: var(--cream-faint); }
.tb-fen .gt-fenetre-pied .cta { height: 42px; box-sizing: border-box; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }

.tb-fen a.tb-profil { text-decoration: none; gap: 9px; background-color: var(--marine); background-image: linear-gradient(var(--brique), var(--brique)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0; transition: background-size .35s ease, color .25s ease; }
.tb-fen a.tb-profil:hover, .tb-fen a.tb-profil:focus-visible { background-color: var(--marine); background-size: 100% 100%; color: var(--on-brique); }
@media (max-width: 480px) {
  .tb-fen .gt-fenetre-pied { flex-wrap: wrap; gap: 10px; }
  .tb-sec kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tb *, .tb-fen a.tb-profil { transition: none !important; animation: none !important; }
}

.tx {
  --tx-ease: cubic-bezier(.65, 0, .35, 1);
  container: tx / inline-size;
  margin: 40px 0 0;
  font-family: var(--mono);
  color: var(--marine);
}

.tx-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; }

.tx-bascule { --tx-biais: 14px; display: flex; flex: 0 1 440px; min-width: 0; height: 48px; user-select: none; transition: opacity .2s ease; }

.tx.is-recherche .tx-bascule { opacity: .4; }
.tx-bascule label { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; background: var(--marine-dim); color: var(--cream-mute); font-family: var(--display); font-size: 13px; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: flex-grow .45s var(--tx-ease), background .2s ease, color .2s ease; }
.tx-bascule label:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--tx-biais)) 100%, 0 100%); }
.tx-bascule label + label { margin-left: calc(var(--tx-biais) / -2); clip-path: polygon(var(--tx-biais) 0, 100% 0, 100% 100%, 0 100%); }
.tx-bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tx-bascule b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: inherit; opacity: .8; }
.tx-bascule label:not(:has(input:checked)):hover { color: var(--cream); }
.tx-bascule label:has(input:checked) { flex-grow: 2; background: var(--brique); color: var(--marine); cursor: default; }

.tx-bascule label:has(input:focus-visible) { box-shadow: inset 0 -4px 0 var(--cream); }
.tx:has(#tx-suite:checked) .tx-face-com, .tx:has(#tx-com:checked) .tx-face-suite { display: none; }
.tx-cherche { display: flex; align-items: center; gap: 10px; flex: 0 1 380px; height: 48px; padding: 0 14px; box-sizing: border-box; border: 2px solid var(--marine); background: var(--surface); font-size: 13px; color: var(--marine); }
.tx-cherche[hidden] { display: none; }
.tx-cherche span { color: var(--brique-texte); font-weight: 500; }
.tx-cherche input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--marine); }
.tx-cherche input::placeholder { color: var(--ink-3); }
.tx-cherche:has(input:focus-visible) { outline: 2px solid var(--brique); outline-offset: 2px; }

.tx-acc { display: flex; gap: 6px; min-height: 460px; }

.tx-pan { --c: var(--marine); position: relative; flex: 0 0 76px; min-width: 0; display: flex; flex-direction: column; box-sizing: border-box; border: 1px solid transparent; background: var(--c); color: var(--cream); transition: flex-grow .5s cubic-bezier(.2, .8, .2, 1); }
.tx-pan:has(input:checked) { flex-grow: 1; background: var(--surface); color: var(--marine); border-color: var(--line); }
.tx-pan:not(:has(input:checked)):hover { filter: brightness(1.12); }

.p1 { --c: var(--marine); --c-nom: var(--marine-4); }
.p2 { --c: var(--marine-2); --c-nom: color-mix(in srgb, var(--marine-4) 65%, var(--surface)); }
.p3 { --c: var(--marine-3); --c-nom: color-mix(in srgb, var(--marine-4) 40%, var(--surface)); --c-no: var(--brique-light); }
.p4 { --c: var(--marine-dim); --c-nom: var(--marine-4); }
.tx-tete { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; }
.tx-tete input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tx-tete:has(input:focus-visible) { outline: 2px solid var(--brique); outline-offset: -4px; }
.tx-vert { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.tx-nb { font-family: var(--display); font-size: 22px; color: var(--c-no, var(--brique)); }
.tx-corps { display: none; }
.tx-pan:has(input:checked) .tx-tete { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 16px; padding: 18px 24px; background: var(--c); color: var(--cream); cursor: default; }
.tx-pan:has(input:checked) .tx-vert { writing-mode: horizontal-tb; transform: none; font-size: 28px; }
.tx-pan:has(input:checked) .tx-nb { margin-left: auto; }
.tx-pan:has(input:checked) .tx-corps { display: flex; flex-direction: column; flex: 1 1 auto; animation: tx-montre .35s ease both; }
@keyframes tx-montre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tx-ligne { --col: 72px; position: relative; container-type: inline-size; display: grid; grid-template-columns: var(--col) minmax(0, 1fr) auto; align-items: center; gap: 0 24px; min-height: 84px; padding: 0 24px 0 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--marine); transition: background .2s ease; }
.tx-ligne:first-child { border-top: 0; }

.tx-corps .tx-ligne:first-child { border-top: 1px solid var(--line); }
.tx-ligne:hover { background: var(--cream); color: var(--marine); }
.tx-ligne:focus-visible { outline: 2px solid var(--brique); outline-offset: -2px; }

.tx-m { position: absolute; top: 0; bottom: 0; left: 0; width: 68%; overflow: hidden; background: var(--c, var(--marine)); clip-path: inset(0 0 0 0); transition: clip-path .5s var(--tx-ease); }
.tx-ligne:hover .tx-m, .tx-ligne:focus-visible .tx-m { clip-path: inset(0 calc(100% - var(--col)) 0 0); }

.tx-m::after { content: ""; position: absolute; left: var(--col); top: 20px; bottom: 20px; width: 1px; background: var(--cream-faint); }
.tx-no { position: absolute; left: 0; top: 0; bottom: 0; width: var(--col); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; color: var(--c-no, var(--brique)); }

.tx-nom { --place: calc(68cqw - var(--col) - 48px); --fs: min(40px, calc(var(--place) / 9.4)); position: absolute; left: calc(var(--col) + 20px); top: 50%; transform: translateY(-46%); white-space: nowrap; font-family: var(--display); font-size: var(--fs); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; color: var(--c-nom, var(--marine-4)); transition: transform .45s var(--tx-ease), opacity .18s ease; }
.tx-nom.tx-long { white-space: normal; width: var(--place); font-size: calc(var(--fs) * .8); line-height: .95; }
.tx-ligne:hover .tx-nom, .tx-ligne:focus-visible .tx-nom { transform: translate(-32px, -46%); opacity: 0; }
.tx-t { grid-column: 2; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 0; opacity: 0; transform: translateX(-10px); transition: opacity .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.tx-ligne:hover .tx-t, .tx-ligne:focus-visible .tx-t { opacity: 1; transform: none; transition-delay: .25s; }
.tx-t b { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; }
.tx-t span { font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.tx-t small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tx-go { grid-column: 3; font-family: var(--display); font-size: 12px; text-transform: uppercase; white-space: nowrap; transition: color .2s ease, transform .3s ease; }
.tx-ligne:hover .tx-go { color: var(--brique-texte); transform: translateX(4px); }

.tx-libre { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; min-height: 300px; padding: 40px; box-sizing: border-box; background: var(--cream-3); border: 1px solid var(--line); }
.tx-libre-onglet { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brique-texte); }
.tx-libre-titre, .tx-rien-titre { margin: 0; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--marine); }
.tx-libre-titre span { color: var(--brique-texte); }
.tx-libre-texte { margin: 0; max-width: 480px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.tx-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border: 0; background: var(--marine); color: var(--cream); font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: -.015em; cursor: pointer; }
.tx-btn:hover { background: var(--marine-hover); }
.tx-btn:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }

.tx-res { display: flex; flex-direction: column; gap: 12px; }
.tx-res[hidden], .tx-res [hidden] { display: none; }
.tx-res-titre { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tx-res-liste { background: var(--surface); border: 1px solid var(--line); }
.tx-rien { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border: 1.5px dashed var(--marine); }
.tx-rien-titre { font-size: 28px; line-height: 1.05; }

@media (hover: none) {
  .tx-m { clip-path: inset(0 calc(100% - var(--col)) 0 0); }
  .tx-nom { opacity: 0; }
  .tx-t { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-m, .tx-t, .tx-nom, .tx-go, .tx-pan, .tx-bascule label { transition: none; }
  .tx-pan:has(input:checked) .tx-corps { animation: none; }
}

@container tx (max-width: 820px) {
  .tx-acc { flex-direction: column; height: auto; }
  .tx-pan, .tx-pan:has(input:checked) { flex: 0 0 auto; }
  .tx-tete { flex-direction: row; justify-content: space-between; padding: 16px 20px; }
  .tx-vert { writing-mode: horizontal-tb; transform: none; font-size: 20px; }
  .tx-pan:has(input:checked) .tx-vert { font-size: 22px; }
  .tx-cherche { flex: 1 1 100%; }
}

@container tx (max-width: 560px) {
  .tx-ligne { --col: 56px; grid-template-columns: var(--col) minmax(0, 1fr); gap: 0 16px; padding: 0 16px 0 0; }
  .tx-m { clip-path: inset(0 calc(100% - var(--col)) 0 0); }
  .tx-nom { opacity: 0; }
  .tx-t { opacity: 1; transform: none; }
  .tx-go { display: none; }
  .tx-libre { padding: 28px 22px; }
  .tx-libre-titre { font-size: 30px; }

  .tx-bascule { flex: 1 1 100%; }
  .tx-bascule label { padding: 0 12px; font-size: 12px; }
  .tx-bascule label:has(input:checked) { flex-grow: 1.4; }
  .tx-bascule label:not(:has(input:checked)) b { display: none; }
}

.gt-onglet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brique);
  background: var(--cream-2);
}
.gt-onglet p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.outil-page { background: var(--cream); min-height: 100vh; }
.outil-page > .container { padding: 48px 24px 72px; }
.outil-h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--marine);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.outil-h1 .pt { color: var(--brique); }
.outil-sub { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin: 0 0 34px; }

.stats { width: 100%; }

.st-updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.st-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 0 0 50px;
}
.st-block { display: flex; flex-direction: column; }
.stats > .st-block { margin-bottom: 50px; }

.st-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.st-title {
  position: relative;
  padding-left: 14px;
  margin: 0;
  font-family: var(--display);
  font-weight: normal;
  font-size: 19px;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.st-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--brique);
}
.st-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.st-bars { display: flex; flex-direction: column; gap: 13px; }
.st-bar {
  display: grid;
  grid-template-columns: minmax(0, 118px) 1fr auto;
  align-items: center;
  gap: 14px;
}
.st-bar .name {
  font-family: var(--display);
  font-size: 14px;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-bar .track { height: 15px; background: var(--cream-2); }
.st-bar .fill { display: block; height: 100%; background: var(--marine); }
.st-bar .fill.is-top { background: var(--brique); }
.st-bar .val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.st-trend {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 170px;
}
.st-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.st-month .cols {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.st-month .col { width: 16px; min-height: 2px; }
.st-month .col.runs { background: var(--marine); }
.st-month .col.dls { background: var(--brique); }
.st-month .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-legend .item { display: inline-flex; align-items: center; gap: 8px; }
.st-legend .swatch { width: 11px; height: 11px; display: inline-block; }
.st-legend .swatch.runs { background: var(--marine); }
.st-legend .swatch.dls { background: var(--brique); }

.st-stack { display: flex; height: 36px; background: var(--cream-2); overflow: hidden; }
.st-stack .seg {
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
}
.st-stack .seg.p0 { background: var(--marine); }
.st-stack .seg.p1 { background: var(--marine-3); }
.st-stack .seg.p2 { background: var(--brique); color: var(--marine); }

.st-attacks .st-trend { margin-bottom: 22px; }
.st-winner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
}
.st-winner:empty { margin: 0; }
.st-winner-line {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.st-winner-line strong { color: var(--marine); font-weight: 700; }

.st-winner-cta {
  text-decoration: none;
  font-size: 14px;
  padding: 12px 20px;
}

.st-mock {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  margin: 0;
}

.st-bar .fill,
.st-stack .seg { transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.st-month .col { transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.stats.is-arming .st-bar .fill,
.stats.is-arming .st-stack .seg { width: 0 !important; }
.stats.is-arming .st-month .col { height: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .st-bar .fill,
  .st-stack .seg,
  .st-month .col { transition: none; }
}

@media (max-width: 720px) {
  .st-row { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .st-bar { grid-template-columns: minmax(0, 90px) 1fr auto; gap: 10px; }
  .st-trend { gap: 8px; }
  .st-month .col { width: 12px; }
}

.about { display: block; }

.abw {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  box-shadow: 0 30px 80px -45px rgba(0, 0, 0, 0.6);
}

.abw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--marine-dim);
  border-bottom: 1px solid var(--term-border);
}
.abw-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.abw-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.abw-dot.dot-red { background: var(--dot-red); }
.abw-dot.dot-yellow { background: var(--dot-yellow); }
.abw-dot.dot-green { background: var(--dot-green); }
.abw-barpath {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-mute);
  letter-spacing: 0.05em;
}

.abw-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.abw-file {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cream-faint);
}
.abw-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.abw-mono {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--display);
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abw-id-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.abw-name {
  font-family: var(--display);
  font-weight: normal;
  font-size: 21px;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.01em;
}
.abw-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brique-light);
  letter-spacing: 0.02em;
}
.abw-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.abw-ref {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-mute);
  line-height: 1.8;
}
.abw-stamp {
  border: 2px solid var(--brique);
  color: var(--brique-texte);
  font-family: var(--display);
  font-weight: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  transform: rotate(6deg);
}

.abw-head { display: flex; flex-direction: column; gap: 10px; }
.abw-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
}
.abw-title::first-letter { text-transform: uppercase; }

.abw-accent { color: var(--brique); }
.abw-period { color: var(--brique); }
.abw-cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.72em;
  background: var(--brique);
  vertical-align: -0.04em;
  margin-left: 0.08em;
  animation: blink 1.05s steps(2, end) infinite;
}
.abw-lead {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-mute);
  max-width: 600px;
  margin: 0;
}

.abw-quote {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--brique);
  max-width: 720px;
}

.ab-board { display: flex; flex-direction: column; }

.ab-stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--cream-faint);
}
.ab-stat {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px;
  border-left: 1px solid var(--cream-faint);
}
.ab-stat:first-child { border-left: 0; }
.ab-stat-v {
  font-family: var(--display);
  font-size: 30px;
  color: var(--brique);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ab-stat-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.ab-row {
  display: flex;
  border-top: 1px solid var(--cream-faint);
}
.ab-row.is-single { display: block; }

.ab-cell { flex: 1; padding: 22px 24px; min-width: 0; }

.ab-cell.is-left {
  background: var(--marine);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  padding-right: 42px;
}

.ab-cell.is-right {
  background: var(--marine-dim);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -22px;
  padding-left: 44px;
}

.ab-row.is-single .ab-cell.is-left {
  background: var(--marine);
  clip-path: none;
  padding-right: 24px;
}

.ab-row.is-alt .ab-cell.is-left {
  background: var(--marine-dim);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
}
.ab-row.is-alt .ab-cell.is-right {
  background: var(--marine);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%);
}

.ab-cell-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--cream);
}
.ab-cell.is-left .ab-cell-title { color: var(--brique-texte); }

.ab-row.is-alt .ab-cell.is-left .ab-cell-title { color: var(--cream); }
.ab-row.is-alt .ab-cell.is-right .ab-cell-title { color: var(--brique-texte); }

.ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ab-list li {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cream-mute);
  padding-left: 18px;
  position: relative;
}
.ab-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brique-light);
}
.ab-list.is-neg li::before {
  content: "\00d7";  
  color: var(--ink-3);
}

.ab-links { display: flex; flex-direction: column; }
.ab-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  position: relative;
  padding: 9px 30px 9px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--cream-faint);
  transition: padding-left 0.16s ease;
}
.ab-link:last-child { border-bottom: 0; }
.ab-link:hover { padding-left: 8px; }
.ab-link:hover .ab-link-label { color: var(--brique-texte); }
.ab-link:hover .ab-link-arrow { color: var(--brique-texte); transform: translateX(3px); }
.ab-link-label {
  font-family: var(--display);
  font-weight: normal;
  font-size: 16px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.16s ease;
}
.ab-link-handle {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-mute);
}
.ab-link-arrow {
  position: absolute;
  right: 4px;
  top: 9px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream-mute);
  transition: color 0.16s ease, transform 0.16s ease;
}

.ab-row.is-single .ab-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
}

@media (max-width: 640px) {
  .abw-body { padding: 22px 18px 26px; gap: 22px; }
  .abw-file { flex-direction: column; gap: 16px; }
  .abw-meta { align-items: flex-start; text-align: left; }

  .ab-row { flex-direction: column; }
  .ab-cell.is-left,
  .ab-cell.is-right,
  .ab-row.is-alt .ab-cell.is-left,
  .ab-row.is-alt .ab-cell.is-right {
    clip-path: none;
    margin-left: 0;
    padding: 20px 20px;
  }
  .ab-cell.is-right { border-top: 1px solid var(--cream-faint); }
  .ab-row.is-single .ab-links { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .app {
    grid-template-columns: 280px 1fr;
  }
  .sidebar {
    padding: 28px 22px 20px;
  }
  .body {
    padding: 36px;
  }
  .lang {
    right: 36px;
  }
}

@media (max-width: 639px) {
  .app {
    grid-template-columns: 1fr;
  }

  .hamburger { display: flex; }
  .sidebar-overlay { display: block; }
  .sidebar-mobile-head { display: flex; }
  .sidebar-back-desktop { display: none; }
  .sidebar-desktop-tag { display: none; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    min-height: 0;
    padding: 20px 22px 24px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 65;
    box-shadow: 0 0 40px var(--scrim);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  body.sidebar-open .hamburger { display: none; }
  body.sidebar-open { overflow: hidden; }
  .brand-name {
    font-size: 38px;
  }
  .body {
    padding: 24px 18px;
  }

  .snav { flex-direction: column; min-height: 0; }
  .snav-g,
  .snav-sec,
  .snav-sec:last-child { flex: none; width: 100%; clip-path: none; }
  .snav-g {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    padding: 16px 20px;
  }
  .snav-g-mark { font-size: 34px; line-height: 1; }
  .snav-sec {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
  }
  .snav-name { font-size: 19px; }
  .snav-arrow { margin-left: auto; align-self: center; }

  .csub { flex-direction: column; }
  .csub-pane,
  .csub-left,
  .csub-right {
    clip-path: none;
    margin-left: 0;
    padding: 15px 20px;
  }
  .csub-pane.is-active { box-shadow: inset 4px 0 0 var(--brique); }

  .sh-search input { width: 88px; }

  .tool-name {
    font-size: 48px;
  }
  .idl-emb-row {
    grid-template-columns: 1fr;
  }
  .lm-emb-tab {
    font-size: 12px;
    padding: 0 12px;
  }
  .lang {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .site-header { padding-left: 16px; }
  .sh-brand { font-size: 21px; }

  .sh-search { display: none; }
  .site-main { padding: 40px 18px 56px; }

  .lm-emb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: auto; }
  .lm-emb-tabs > .lm-emb-tab:nth-child(n) { clip-path: none; padding: 0 10px; min-height: 48px; }
}

@page { margin: 16mm 14mm; }

@media print {
  :root {
    --cream:   var(--surface);
    --cream-2: var(--surface);
  }

  html, body, .site-shell, .site-main { background: var(--surface) !important; }
  body { color: var(--ink); }

  .skip-link, .site-header, .snav, .csub, .sh-results,
  .cta, .cta-ghost, .ja-back, .cb-copy, gt-dropzone, .dropzone,
  .page-cursor, .sh-cursor, .abw-cursor, .cursor-block { display: none !important; }

  .site-main { padding: 0; }
  .container { max-width: none; }

  .code-block, .cterm, .ab-board, .abw-body, .pc-icon {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    --brique-texte: var(--brique-ocre);
  }
  .code-block *, .cterm * { color: var(--ink) !important; background: transparent !important; }

  h1, h2, h3, h4 { break-after: avoid; }
  pre, figure, table, img, .code-block, .summary-bar, .file-bar { break-inside: avoid; }
  img { max-width: 100% !important; }

  .ja-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: var(--ink-2);
    word-break: break-all;
  }
}
