@import "./components.css"; /* Importe les styles des composants */
@import "./variables.css"; /* Importe les variables CSS */

/* Styles CSS initiaux pour retirer certains comportements de navigateur par défaut indésirables */
*,
*::after,
*::before {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;

  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

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

*::webkit-scrollbar {
  width: 5px;
}

*::webkit-scrollbar-track {
  background: transparent;
}

*::webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background-image: radial-gradient(
    100% 100% at 70% 100%,
    #3f5d2d 0%,
    #11190c 100%
  );
  background-attachment: fixed;
  background-size: cover;

  font-family: var(--font-family);
  color: var(--color-text);
}

input,
textarea,
button,
select {
  font: inherit;
  font-size: 1rem;
}

img,
svg,
video,
iframe,
picture,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-weight: 500;
  color: var(--color-heading);
}

.darken {
  color: var(--color-heading);
}

p,
.subtext {
  font-size: 15px;
  color: var(--color-paragraph);
}

a {
  color: inherit;
}

code,
pre {
  font-size: 1rem;
}

main {
  padding: 1rem;
}

.surface {
  background-color: var(--color-surface);
  border-radius: 1.75rem;
  border: 2px hsla(0, 100%, 100%, 0.2) solid;
  box-shadow: 0px 10px 40px hsla(0, 0%, 0%, 0.2);
}

.subtext {
  font-size: 0.875rem;
  color: var(--color-subtext);
}
