/* NOIRE AUDIO back office. The charter of noireaudio.com (website/site/css/site-v3.css, account.css) and of the design
   system image: graphite surfaces with fine steel lines, Chalk primary button, Space Grotesk titles, Inter interface,
   JetBrains Mono for values and engraved labels. Meter Green marks links, focus and the active state; amber, red and
   blue only carry their state. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/SpaceGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/Inter-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --void: #0c0e0f;
  --graphite: #151719;
  --carbon: #202327;
  --steel: #30343a;
  --chalk: #e9e6e3;
  --muted: #aeb2b2;
  --dim: #82898b;
  --line: rgba(233, 230, 227, .14);
  --line-strong: rgba(233, 230, 227, .25);
  --green: #72b9a4;
  --amber: #d8a65c;
  --red: #d96668;
  --blue: #7ea8cc;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; background: var(--void); color: var(--chalk); font: 400 .95rem/1.5 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, label[for], .check, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sprite { display: none; }
.icon { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Boutons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .045);
  color: var(--chalk);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.button:hover { border-color: rgba(233, 230, 227, .5); background: rgba(255, 255, 255, .09); }
.button:active { transform: translateY(1px); }
.button--primary { border-color: var(--chalk); background: var(--chalk); color: var(--void); box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .8); }
.button--primary:hover { border-color: #fff; background: #fff; }
.button--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button--ghost:hover { border-color: var(--line); background: rgba(255, 255, 255, .05); color: var(--chalk); }
.button--danger { border-color: rgba(217, 102, 104, .5); background: rgba(217, 102, 104, .06); color: #f0a3a4; }
.button--danger:hover { border-color: var(--red); background: rgba(217, 102, 104, .16); color: #fff; }
.button--danger-solid { border-color: #c4484b; background: #c4484b; color: #fff; }
.button--danger-solid:hover { border-color: #d65558; background: #d65558; }
.button--small { min-height: 2.35rem; padding: .4rem .75rem; font-size: .82rem; }
.button--block { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.is-busy { cursor: progress; }
.button.is-busy::after { width: .85rem; height: .85rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Champs */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.field > label, .field__label { color: var(--chalk); font-size: .86rem; font-weight: 500; }
.field__hint { color: var(--dim); font-size: .8rem; line-height: 1.45; }
.input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(233, 230, 227, .24);
  border-radius: .7rem;
  background: rgba(5, 6, 7, .55);
  color: var(--chalk);
  font-size: .95rem;
  line-height: 1.3;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 5rem; resize: vertical; }
.field input::placeholder, .input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover, .input:hover { border-color: rgba(233, 230, 227, .38); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .input:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--green);
  background: rgba(5, 6, 7, .75);
  box-shadow: 0 0 0 3px rgba(114, 185, 164, .24);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeb2b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 1.1rem;
}
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.grid-2, .grid-3 { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 70rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.span-all { grid-column: 1 / -1; }

fieldset { min-width: 0; padding: 0; border: 0; }
legend { margin-bottom: .45rem; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .5rem; }
.check {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.9rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .02);
  font-size: .9rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: rgba(114, 185, 164, .55); background: rgba(114, 185, 164, .07); }
.check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.check input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--green); cursor: inherit; }
.check--all { margin-bottom: .5rem; }

.message { padding: .75rem .95rem; border: 1px solid var(--line-strong); border-radius: .7rem; background: rgba(255, 255, 255, .04); font-size: .88rem; line-height: 1.5; }
.message:empty { display: none; }
.message--error { border-color: rgba(217, 102, 104, .5); background: rgba(217, 102, 104, .1); color: #f6c4c5; }
.message--success { border-color: rgba(114, 185, 164, .45); background: rgba(114, 185, 164, .09); color: #cde8df; }
.message--warning { border-color: rgba(216, 166, 92, .45); background: rgba(216, 166, 92, .08); color: #ecd3ab; }

/* ------------------------------------------------------------------ Connexion */
.login { display: grid; place-items: center; min-height: 100dvh; padding: 2rem var(--gutter);
         background: radial-gradient(60rem 40rem at 50% -10%, rgba(233, 230, 227, .06), transparent 60%), var(--void); }
.login__card {
  width: min(25rem, 100%);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .008) 42%), var(--graphite);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.login__mark { width: 11.5rem; margin: .25rem auto 2.25rem; }
.login .form { gap: 1.15rem; }
.login .button--primary { margin-top: .35rem; min-height: 3.15rem; }

/* ------------------------------------------------------------------ Coque */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 100dvh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 15, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.topbar__mark { display: block; flex: none; border-radius: .4rem; }
.topbar__mark img { width: 8.25rem; }
.topbar__who { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar__email { overflow: hidden; color: var(--dim); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.sidenav { position: sticky; top: 4.25rem; z-index: 10; border-bottom: 1px solid var(--line); background: var(--void); }
.sidenav ul { display: flex; gap: .4rem; margin: 0; padding: .6rem var(--gutter); overflow-x: auto; list-style: none; scrollbar-width: none; }
.sidenav ul::-webkit-scrollbar { display: none; }
.sidenav a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.sidenav a:hover { border-color: var(--line-strong); color: var(--chalk); }
.sidenav a[aria-current="page"] { border-color: var(--chalk); background: var(--chalk); color: var(--void); }
.sidenav .icon { width: 1.05rem; height: 1.05rem; }
.view { min-width: 0; padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--gutter) 5rem; }
.view:focus { outline: none; }
.view > * { max-width: 78rem; }

@media (min-width: 62rem) {
  .shell { grid-template-columns: 15.5rem minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .sidenav { top: 4.25rem; align-self: start; height: calc(100dvh - 4.25rem); border-right: 1px solid var(--line); border-bottom: 0; background: transparent; }
  .sidenav ul { flex-direction: column; gap: .2rem; padding: 1.5rem 1rem; overflow: visible; }
  .sidenav a { width: 100%; border: 0; border-radius: .7rem; }
  .sidenav a:hover { background: rgba(255, 255, 255, .05); }
  .sidenav a[aria-current="page"] { background: rgba(233, 230, 227, .09); color: var(--chalk); box-shadow: inset 2px 0 0 var(--green); }
}
@media (max-width: 34rem) {
  .topbar__email { display: none; }
  .topbar__who .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar__who .button { width: 2.75rem; min-height: 2.75rem; padding: 0; }
}

/* ------------------------------------------------------------------ En-têtes et panneaux */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.75rem; }
.page-head__text { display: grid; gap: .55rem; min-width: 0; }
.page-title { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.85rem); font-weight: 400; line-height: 1.02; letter-spacing: -.05em; overflow-wrap: anywhere; }
.page-title:focus { outline: none; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; color: var(--muted); font-size: .92rem; }
.back { display: inline-flex; align-items: center; gap: .3rem; width: max-content; min-height: 2.75rem; margin: -.6rem 0 .2rem -.35rem; padding-right: .5rem;
        color: var(--muted); font-size: .86rem; text-decoration: none; }
.back:hover { color: var(--chalk); }
.engraved { color: var(--dim); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

.panel {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), transparent 45%), var(--graphite);
}
.panel + .panel, .panels + .panel, .panel + .panels { margin-top: 1.25rem; }
.panels { display: grid; gap: 1.25rem; align-items: start; }
.panels-col { display: grid; gap: 1.25rem; min-width: 0; }
.panels > .panel, .panels-col > .panel + .panel { margin-top: 0; }
@media (min-width: 75rem) { .panels { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.count { margin-bottom: .7rem; }
.actions > input { flex: 1 1 8rem; width: auto; min-width: 0; max-width: 12rem; }
.sessions { display: grid; gap: .45rem; padding: 0; list-style: none; font-size: .88rem; }
.sessions li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(233, 230, 227, .07); }
.sessions li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.panel__title { font-family: var(--display); font-size: 1.2rem; font-weight: 500; letter-spacing: -.03em; }
.panel__text { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.panel--danger { border-color: rgba(217, 102, 104, .32); background: linear-gradient(160deg, rgba(217, 102, 104, .06), transparent 50%), var(--graphite); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }

/* Valeurs d'une fiche */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.5rem; font-size: .92rem; }
.facts dt { color: var(--dim); }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .facts dd { margin-bottom: .55rem; } }

/* Chiffres de la vue d'ensemble : comme les lectures des plugins. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.figure { display: grid; gap: .55rem; align-content: start; padding: 1.15rem 1.25rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem;
          background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%), var(--graphite); }
.figure__value { font-family: var(--mono); font-size: clamp(1.7rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figure__note { color: var(--muted); font-size: .84rem; }

/* États : le point et le mot, comme la ligne « États » du design system. */
.state { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; white-space: nowrap; }
.state::before { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--dim); content: ""; }
.state--active::before { background: var(--green); }
.state--warning::before { background: var(--amber); }
.state--error::before { background: var(--red); }
.state--info::before { background: var(--blue); }
.tag { display: inline-flex; align-items: center; min-height: 1.6rem; padding: .1rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px;
       color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------------ Listes */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.search { position: relative; flex: 1 1 18rem; min-width: 0; }
.search .icon { position: absolute; top: 50%; left: .85rem; color: var(--dim); transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 2.6rem; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(5, 6, 7, .4); }
.segmented button { min-height: 2.35rem; padding: .35rem .8rem; border: 0; border-radius: .55rem; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 500;
                    transition: background-color 160ms ease, color 160ms ease; }
.segmented button:hover { color: var(--chalk); }
.segmented button[aria-pressed="true"] { background: var(--carbon); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--line-strong); }

.table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--graphite); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: .66rem; font-weight: 500;
            letter-spacing: .13em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(233, 230, 227, .07); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 140ms ease; }
.table tbody tr.is-link:hover { background: rgba(255, 255, 255, .035); }
.table .num { text-align: right; white-space: nowrap; }
.table td.num { font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; }
.table .end { text-align: right; white-space: nowrap; }
.cell-main { display: grid; gap: .1rem; min-width: 12rem; }
.cell-main a { color: var(--chalk); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cell-main a:hover { text-decoration: underline; text-underline-offset: .2em; }
.cell-sub { color: var(--dim); font-size: .82rem; overflow-wrap: anywhere; }
.panel .table-wrap { border: 0; border-radius: 0; background: transparent; margin-inline: calc(clamp(1.15rem, 2.6vw, 1.6rem) * -1); }
.panel .table th:first-child, .panel .table td:first-child { padding-left: clamp(1.15rem, 2.6vw, 1.6rem); }
.panel .table th:last-child, .panel .table td:last-child { padding-right: clamp(1.15rem, 2.6vw, 1.6rem); }
.empty { padding: 2.25rem 1rem; color: var(--muted); text-align: center; }
.panel .empty { padding: .5rem 0; text-align: left; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; color: var(--dim); font-size: .84rem; }
.link { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link:hover { color: var(--chalk); }
.link .icon { display: inline; width: .85rem; height: .85rem; margin-left: .15rem; vertical-align: -.1em; }

/* Téléphone : chaque ligne devient une carte, le nom de colonne devant chaque valeur. */
@media (max-width: 40rem) {
  .segmented { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: none; }
  .table-wrap { overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody { display: block; width: 100%; }
  .table tr { display: grid; gap: .4rem; padding: .95rem 1rem; border-bottom: 1px solid rgba(233, 230, 227, .07); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td, .panel .table td:first-child, .panel .table td:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0; border: 0; text-align: right; }
  .table td::before { flex: none; color: var(--dim); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-align: left; text-transform: uppercase; content: attr(data-label); }
  .table td:first-child, .panel .table td:first-child { display: block; margin-bottom: .15rem; text-align: left; }
  .table td:first-child::before, .table td[data-label=""]::before { content: none; }
  .table td[data-label=""] { justify-content: flex-end; }
  .panel .table tr { padding-inline: clamp(1.15rem, 2.6vw, 1.6rem); }
  .cell-main { min-width: 0; }
}

/* Clé montrée une fois */
.key-box { display: grid; gap: .8rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(114, 185, 164, .45); border-radius: 1rem; background: rgba(114, 185, 164, .06); }
.key { font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 500; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }

/* ------------------------------------------------------------------ Chargement */
.skeleton { border-radius: .8rem; background: linear-gradient(90deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .035) 75%);
            background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.skeleton--title { width: min(20rem, 70%); height: 2.6rem; margin-bottom: 1.75rem; }
.skeleton--panel { height: 12rem; border-radius: 1.15rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.view.is-entering > * { animation: enter 260ms var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------ Fenêtre de confirmation, notification */
.dialog { width: min(28rem, calc(100vw - 2rem)); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 1.15rem; color: var(--chalk);
          background: linear-gradient(160deg, rgba(255, 255, 255, .05), transparent 45%), var(--graphite); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.dialog::backdrop { background: rgba(5, 6, 7, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: enter 200ms var(--ease) both; }
.dialog__body { display: grid; gap: 1rem; padding: 1.5rem; }
.dialog__title { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: -.04em; }
.dialog__text { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: .25rem; }

.toast { position: fixed; right: var(--gutter); bottom: 1.5rem; z-index: 50; max-width: min(24rem, calc(100vw - 2rem)); padding: .85rem 1.1rem;
         border: 1px solid rgba(114, 185, 164, .45); border-radius: .85rem; background: var(--carbon); color: var(--chalk); font-size: .9rem;
         box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: enter 220ms var(--ease) both; }
.toast--error { border-color: rgba(217, 102, 104, .55); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
@media (forced-colors: active) {
  .state::before { forced-color-adjust: none; }
  .sidenav a[aria-current="page"] { border: 1px solid Highlight; }
}
