/**
 * Reset CSS - Normalisation des styles
 * Nav & Pilots
 */

/* ========================================
   BOX SIZING
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================================
   RESET DE BASE
   ======================================== */

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}

p {
  margin: 0;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

strong, b {
  font-weight: var(--font-semibold);
}

small {
  font-size: var(--text-sm);
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: 1em;
}

/* ========================================
   LISTES
   ======================================== */

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========================================
   MÉDIAS
   ======================================== */

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   FORMULAIRES
   ======================================== */

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
}

button, select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: var(--gray-400);
}

/* ========================================
   TABLEAUX
   ======================================== */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================
   ELEMENTS INTERACTIFS
   ======================================== */

summary {
  cursor: pointer;
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

[hidden] {
  display: none !important;
}

/* Focus visible pour accessibilité */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Supprimer outline par défaut */
:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   SCROLLBAR PERSONNALISÉE (Webkit)
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ========================================
   SÉLECTION DE TEXTE
   ======================================== */

::selection {
  background-color: var(--primary-200);
  color: var(--primary-900);
}

::-moz-selection {
  background-color: var(--primary-200);
  color: var(--primary-900);
}
