/* ==========================================================================
   CAPTAIN FUTURE — reset.css
   Normalize moderne minimal (base : normalize moderne type "modern-reset")
   ========================================================================== */

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

/* Marges */
* { margin: 0; }

/* Document */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Titres — poids/héritage normalisés (styles dans typography.css) */
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; overflow-wrap: break-word; }

/* Listes */
ul[class], ol[class] { padding: 0; list-style: none; }

/* Liens */
a { color: inherit; text-decoration: none; }

/* Médias */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formulaires & intéractivité */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; padding: 0; }
button:disabled { cursor: not-allowed; }

fieldset { border: none; padding: 0; }
legend { padding: 0; }

/* Tableaux */
table { border-collapse: collapse; border-spacing: 0; width: 100%; }

/* Détails */
summary { display: list-item; cursor: pointer; }

/* Divers */
blockquote, q { quotes: none; }
hr { border: none; }
code, pre, kbd, samp { font-size: 1em; }
small { font-size: 0.875em; }
sub, sup { font-size: 0.75em; line-height: 0; position: relative; }
[hidden] { display: none !important; }

/* Focus visible — accessibilité WCAG AA */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cf-gold, #FFB830);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Sélection de texte */
::selection {
  background: var(--cf-gold, #FFB830);
  color: #1A1206;
}
