/* Déclic · langage commun. DESIGN.md §11, 16 octobre 2026.
   Prolonge les composants existants et les deux références retenues. */
:root {
  --bg: #f9f1e7; --ink: #20242d; --accent: #b8c9ed; --cta: #f1f58c;
  --surface: #eee7de; --paper: #f9f1e7; --white: #fdf9f3; --cream: #f9f1e7;
  --muted: #59606c; --line: #d8cfc3; --outline: #8b8f97; --scan: #ff9a1f;
  --forest: #20242d; --forest-light: #353a45; --lime: #f1f58c; --yellow: #f1f58c; --fluo: #f1f58c;
  --display: 'Manrope', sans-serif; --serif: 'Manrope', sans-serif;
  --sans: 'IBM Plex Mono', monospace; --mono: 'IBM Plex Mono', monospace; --hand: var(--mono);
}
html { background: var(--bg); color-scheme: light; }
body { background: var(--bg); color: var(--ink); font: 400 13px/1.7 var(--mono); }
::selection { background: var(--accent); color: var(--ink); }
:is(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
:is(h1,h2,h3,h4) { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; text-wrap: balance; }
h1 { text-transform: none; }
:is(h1,h2,h3) em, .serif { font-family: var(--display); font-style: normal; font-weight: 800; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font-family: var(--mono); }
.declic-brand { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-decoration: none; flex-shrink: 0; }
.declic-brand img { display: block; width: clamp(116px, 12vw, 170px); height: auto; }
.declic-brand > span { margin-left: 5%; background: var(--accent); color: var(--ink); padding: 1px 4px; font: 500 6px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.declic-brand > span:before { content: none; }
.wordmark.declic-brand > span { color: var(--ink); background: var(--accent); }
.eyebrow, .small-label, .label { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; font-weight: 500; text-transform: uppercase; }
.eyebrow:before { background: var(--accent); box-shadow: none; }
:is(.button, .btn, .action) { font: 600 12px/1.5 var(--mono); letter-spacing: -.015em; border-radius: 0; min-height: 48px; background: var(--ink); color: var(--bg); }
:is(.button.secondary, .btn.ghost) { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
:is(.button.lime, .button.fluo, .btn.fluo, .action) { background: var(--cta); color: var(--ink); }
:is(.button, .btn):disabled { opacity: .55; cursor: not-allowed; }
.declic-app .button:hover { background: var(--accent); color: var(--ink); }
.field :is(input,textarea,select), .write-box, .presentation-headline { border-radius: 0; background: var(--white); border-color: var(--line); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input[type=checkbox], .check input { accent-color: var(--ink); }
:is(.panel, .profile-card, .project-card, .agenda-entry, .modal, .sheet, .client-sheet, .agenda-sheet) { border-radius: 0; background: var(--white); border-color: var(--line); box-shadow: none; }
.panel.yellow, .notice { background: var(--surface); color: var(--ink); }
.badge, .chip { border-radius: 0; background: var(--surface); color: var(--ink); font: 500 10px/1.5 var(--mono); }
.badge.yellow { background: var(--accent); }
.notice { border-left: 2px solid var(--accent); }
.error, .message.error { color: #8b2f27; }
dialog::backdrop { background: #20242d80; backdrop-filter: none; }
.page-footer, body > footer { font-family: var(--mono); }
.presentation-brand { font-family: var(--display); font-weight: 800; }
.presentation-brand em { font-style: normal; color: var(--ink); background: var(--accent); }
.exchange-card { border-radius: 0; background: var(--bg); border: 1px solid var(--ink); box-shadow: none; }
.exchange-card-top, .exchange-card-bottom { background: var(--ink); color: var(--bg); }
.exchange-card-top .presentation-brand em { color: var(--accent); background: transparent; }
.presentation-avatar { background: var(--surface); border-radius: 0; }
.presentation-facet { border-radius: 0; }
.presentation-heading h2, .presentation-review h3 { font-family: var(--display); font-weight: 800; font-style: normal; }
/* La carte et ses aperçus gardent les proportions physiques, avec la charte Déclic. */
html[data-design="declic"] .horizontal-sheet .exchange-card {
  background: var(--bg); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; box-shadow: none;
}
html[data-design="declic"] .horizontal-sheet :is(.exchange-card-top,.exchange-card-bottom) {
  background: transparent; color: var(--ink); border-color: var(--line);
}
html[data-design="declic"] .horizontal-sheet .exchange-card-top > span:last-child,
html[data-design="declic"] .horizontal-sheet .exchange-card .eyebrow { color: var(--ink); }
html[data-design="declic"] .horizontal-sheet .presentation-brand { font-weight: 800; }
html[data-design="declic"] .horizontal-sheet .presentation-brand em { color: var(--ink); background: var(--accent); }
html[data-design="declic"] .horizontal-sheet .exchange-card h3 { font-weight: 800; font-style: normal; }
html[data-design="declic"] .horizontal-sheet .presentation-avatar {
  background: var(--surface); border-radius: 0; display: block; margin: 0; overflow: hidden;
}
html[data-design="declic"] .horizontal-sheet :is(#exchangeSignature,#publicSignature) {
  font: 500 12px/1.4 var(--mono); color: var(--ink);
}
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .field :is(input,textarea,select), textarea, input { font-size: 16px; }
  .declic-brand img { width: 115px; }
  .declic-brand > span { font-size: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
