/*
 * Feuille propre aux écrans d'Axone. La feuille compilée de Filament ne contient que ses classes :
 * nos gabarits utilisent ces classes préfixées « ax- », claires et sombres (leçon de Synapse).
 * Couleurs : identité Axone (rose corail, bleu nuit) pour l'outil ; charte des Patrons Résilients
 * seulement dans les visuels.
 */
:root {
  --ax-coral: #e8557a;
  --ax-coral-soft: #fde8ee;
  --ax-navy: #08152f;
  --ax-ink: #15213a;
  --ax-muted: #5d6888;
  --ax-line: #e3e8f0;
  --ax-card: #ffffff;
  --ax-bg-soft: #f5f7fb;
  --ax-ok: #1f8a5b;
  --ax-ok-soft: #e3f4ec;
  --ax-warn: #b26a00;
  --ax-warn-soft: #fff3dc;
  --ax-bad: #c44c51;
  --ax-bad-soft: #fbe7e8;
  --ax-info: #1b5aaa;
  --ax-info-soft: #e5eefa;
}
.dark {
  --ax-coral-soft: #3a1622;
  --ax-ink: #eef2fa;
  --ax-muted: #9aa6c2;
  --ax-line: #263252;
  --ax-card: #0f1b38;
  --ax-bg-soft: #0b1530;
  --ax-ok-soft: #0f2e22;
  --ax-warn-soft: #33250a;
  --ax-bad-soft: #3a1416;
  --ax-info-soft: #0f2445;
}

.ax-grid { display: grid; gap: 16px; }
.ax-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ax-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ax-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ax-stack { display: flex; flex-direction: column; gap: 12px; }
.ax-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ax-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ax-grow { flex: 1 1 auto; min-width: 0; }

.ax-card { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 14px; padding: 16px 18px; color: var(--ax-ink); }
.ax-card h3, .ax-h3 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-muted); margin: 0 0 8px; }
.ax-card.ax-soft { background: var(--ax-bg-soft); }
.ax-muted { color: var(--ax-muted); }
.ax-small { font-size: .82rem; }
.ax-tiny { font-size: .74rem; }
.ax-strong { font-weight: 700; }

.ax-kpi { display: flex; flex-direction: column; gap: 4px; }
.ax-kpi .ax-value { font-family: 'Barlow Condensed', 'Public Sans', sans-serif; font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: .01em; }
.ax-kpi .ax-unit { font-size: .95rem; font-weight: 600; color: var(--ax-muted); }
.ax-tone-ok .ax-value { color: var(--ax-ok); }
.ax-tone-warn .ax-value { color: var(--ax-warn); }
.ax-tone-bad .ax-value { color: var(--ax-bad); }
.ax-tone-bad { border-color: color-mix(in srgb, var(--ax-bad) 45%, var(--ax-line)); }

.ax-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b1a3d 0%, #08152f 60%, #2a1030 100%); color: #f4f7fc; border: 0; border-radius: 18px; padding: 22px 24px; }
.ax-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(232,85,122,.45), rgba(232,85,122,0) 70%); }
.ax-hero .ax-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff9fb6; }
.ax-hero .ax-title { font-family: 'Barlow Condensed', 'Public Sans', sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1.02; text-transform: uppercase; margin: 6px 0 8px; }
.ax-hero .ax-detail { color: #c9d3ea; max-width: 70ch; }
.ax-hero a.ax-btn, .ax-hero button.ax-btn { position: relative; z-index: 1; }

.ax-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: .86rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.ax-btn-primary { background: var(--ax-coral); color: #fff; }
.ax-btn-primary:hover { filter: brightness(1.06); }
.ax-btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.ax-btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.ax-btn-ok { background: var(--ax-ok); color: #fff; }
.ax-btn-danger { background: transparent; color: var(--ax-bad); border-color: color-mix(in srgb, var(--ax-bad) 40%, transparent); }
.ax-btn[disabled] { opacity: .5; cursor: not-allowed; }

.ax-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 600; background: var(--ax-bg-soft); color: var(--ax-muted); border: 1px solid var(--ax-line); white-space: nowrap; }
.ax-chip-ok { background: var(--ax-ok-soft); color: var(--ax-ok); border-color: transparent; }
.ax-chip-warn { background: var(--ax-warn-soft); color: var(--ax-warn); border-color: transparent; }
.ax-chip-bad { background: var(--ax-bad-soft); color: var(--ax-bad); border-color: transparent; }
.ax-chip-info { background: var(--ax-info-soft); color: var(--ax-info); border-color: transparent; }
.ax-chip-coral { background: var(--ax-coral-soft); color: var(--ax-coral); border-color: transparent; }
.ax-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.ax-bar { height: 8px; border-radius: 99px; background: var(--ax-bg-soft); border: 1px solid var(--ax-line); overflow: hidden; }
.ax-bar > span { display: block; height: 100%; background: var(--ax-coral); border-radius: 99px; }
.ax-bar > span.ax-full { background: var(--ax-ok); }

.ax-list { display: flex; flex-direction: column; }
.ax-list > .ax-item { padding: 10px 0; border-top: 1px solid var(--ax-line); }
.ax-list > .ax-item:first-child { border-top: 0; padding-top: 2px; }

.ax-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.ax-col { background: var(--ax-bg-soft); border: 1px solid var(--ax-line); border-radius: 14px; padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.ax-col-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-muted); padding: 2px 4px 4px; }
.ax-tile { display: block; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 11px; padding: 10px 11px; color: var(--ax-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.ax-tile:hover { border-color: var(--ax-coral); transform: translateY(-1px); }
.ax-tile .ax-tile-title { font-weight: 650; font-size: .92rem; line-height: 1.3; margin-bottom: 6px; }

.ax-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ax-cal-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ax-muted); text-align: center; padding: 4px 0; }
.ax-day { min-height: 104px; background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.ax-day.ax-out { opacity: .4; }
.ax-day.ax-today { border-color: var(--ax-coral); box-shadow: 0 0 0 1px var(--ax-coral) inset; }
.ax-day.ax-weekend { background: var(--ax-bg-soft); }
.ax-day.ax-hole { background: repeating-linear-gradient(135deg, var(--ax-card) 0 8px, var(--ax-warn-soft) 8px 16px); }
.ax-day-num { font-size: .75rem; font-weight: 700; color: var(--ax-muted); }
.ax-pub { display: block; font-size: .72rem; line-height: 1.25; padding: 3px 6px; border-radius: 6px; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-pub.ax-draft { opacity: .55; outline: 1px dashed rgba(255,255,255,.7); outline-offset: -2px; }

.ax-input, .ax-textarea, .ax-select { width: 100%; border: 1px solid var(--ax-line); border-radius: 10px; padding: 8px 10px; background: var(--ax-card); color: var(--ax-ink); font: inherit; font-size: .92rem; }
.ax-textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.ax-textarea.ax-tall { min-height: 360px; }
.ax-input:focus, .ax-textarea:focus, .ax-select:focus { outline: 2px solid color-mix(in srgb, var(--ax-coral) 55%, transparent); outline-offset: 1px; border-color: transparent; }
.ax-label { display: block; font-size: .78rem; font-weight: 600; color: var(--ax-muted); margin-bottom: 4px; }

.ax-hooks { display: grid; gap: 8px; }
.ax-hook { border: 1px solid var(--ax-line); border-radius: 11px; padding: 10px 12px; background: var(--ax-card); }
.ax-hook.ax-picked { border-color: var(--ax-coral); background: var(--ax-coral-soft); }

.ax-alert { border-radius: 11px; padding: 10px 12px; font-size: .88rem; }
.ax-alert-warn { background: var(--ax-warn-soft); color: var(--ax-warn); }
.ax-alert-bad { background: var(--ax-bad-soft); color: var(--ax-bad); }
.ax-alert-ok { background: var(--ax-ok-soft); color: var(--ax-ok); }
.ax-alert-info { background: var(--ax-info-soft); color: var(--ax-info); }

.ax-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ax-table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ax-muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--ax-line); }
.ax-table td { padding: 8px; border-bottom: 1px solid var(--ax-line); vertical-align: top; }
.ax-table tr:last-child td { border-bottom: 0; }
.ax-num { text-align: right; font-variant-numeric: tabular-nums; }

.ax-pre { white-space: pre-wrap; font-size: .9rem; line-height: 1.55; }
.ax-thumb { width: 100%; border-radius: 10px; border: 1px solid var(--ax-line); display: block; background: var(--ax-bg-soft); }
.ax-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ax-line); margin-bottom: 14px; overflow-x: auto; }
.ax-tab { padding: 8px 12px; font-weight: 600; font-size: .88rem; color: var(--ax-muted); border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; white-space: nowrap; }
.ax-tab.ax-active { color: var(--ax-ink); border-bottom-color: var(--ax-coral); }
.ax-spark { display: block; }

@media (max-width: 640px) {
  .ax-kpi .ax-value { font-size: 2.6rem; }
  .ax-hero .ax-title { font-size: 1.8rem; }
  .ax-cal { grid-template-columns: repeat(7, minmax(42px, 1fr)); overflow-x: auto; }
  .ax-day { min-height: 70px; }
}
.ax-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
