/* ==========================================================================
   Accueil — base : polices locales, reset, éléments natifs
   ========================================================================== */

/* Polices vendored (fonts/) — latin puis latin-ext, chargées à la demande */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Les contrôles natifs restants (champs, cases) suivent le thème sombre. */
:root { color-scheme: dark; }

* { box-sizing: border-box; }

/* L'attribut hidden doit primer : plusieurs composants fixent un `display`
   qui écraserait sinon la règle du navigateur. */
[hidden] { display: none !important; }

html, body { height: 100%; }

/* Seuls endroits où sélectionner du texte a un sens : ce qu'on saisit, et ce
   qu'on peut vouloir recopier — un chemin de fichier, une adresse. */
input, textarea, [contenteditable="true"], .path-row, .modal__body, .toast__sub {
  user-select: text;
  -webkit-user-select: text;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* Un tableau de bord se clique, il ne se lit pas au surligneur : la
     sélection de texte n'y sert à rien et transforme le moindre glisser en
     traînée bleue. Les champs de saisie la retrouvent juste en dessous. */
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-strong); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
}

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* <dialog> natif : la boîte visible est le .modal à l'intérieur */
dialog { background: transparent; border: none; padding: 0; margin: auto; color: var(--text); max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(8, 9, 13, .62); }

input, select, textarea { font: inherit; }

/* Fond fixe : dégradé, image, voile */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg--gradient { background:
  radial-gradient(900px 520px at 12% -8%, rgba(167, 139, 250, .28), transparent 70%),
  radial-gradient(760px 480px at 88% 4%, rgba(34, 211, 238, .2), transparent 70%),
  radial-gradient(700px 500px at 60% 105%, rgba(251, 191, 36, .12), transparent 70%); }
.bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .6; }
.bg-veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--veil-top) 0%, var(--veil-mid) 55%, var(--veil-bottom) 100%); }
