/* ========================================
   reset.css — Ultra Complet, Moderne
   Projet : Jean Gorin
   ======================================== */

/* 1. Box model universel */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Suppression des marges et paddings par défaut */
* {
  margin: 0;
  padding: 0;
}

/* 3. Meilleure qualité de texte sur tous navigateurs */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  height: 100%;
}

/* 4. Body global — variables définies dans style.css */
body {
  min-height: 100%;
  text-size-adjust: 100%;
  word-break: break-word;
  font-family: sans-serif;
  background-color: var(--bg, #fff);
  color: var(--text, #000);
}

/* 5. Images & media : responsive par défaut */
img, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* 6. Liens */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}
a:hover,
a:focus {
  outline: none;
}

/* 7. Titres et paragraphes */
h1, h2, h3, h4, h5, h6, p {
  font-weight: normal;
  margin: 0;
}

/* 8. Listes */
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* 9. Formulaires : bouton, input, select, textarea */
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* Boutons accessibles */
button {
  cursor: pointer;
  background-color: transparent;
}

/* 10. Tableaux */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11. Focus visible accessible */
:focus-visible {
  outline: 2px dashed var(--color-accent, #ff6600);
  outline-offset: 3px;
}

/* 12. Sélection de texte stylée */
::selection {
  background: var(--color-accent, #ff6600);
  color: #fff;
}

/* 13. Scrollbar WebKit stylée */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 102, 0, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* 14. Préparation color-scheme */
:root {
  color-scheme: light dark;
}

/* 15. Motion réduit : accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
