/* Reset minimal + fondations */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gs-bg);
  color: var(--gs-text);
  font-family: var(--gs-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--gs-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gs-container {
  width: 100%;
  max-width: var(--gs-container);
  margin-inline: auto;
  padding-inline: var(--gs-space-3);
}

@media (min-width: 768px) {
  .gs-container {
    padding-inline: var(--gs-space-4);
  }
}

.gs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gs-skip-link {
  position: absolute;
  top: -48px;
  left: var(--gs-space-2);
  z-index: 999;
  background: var(--gs-text);
  color: var(--gs-bg);
  padding: 12px 20px;
  border-radius: var(--gs-radius-md);
  transition: top 0.2s var(--gs-ease);
}

.gs-skip-link:focus {
  top: var(--gs-space-2);
}

:focus-visible {
  outline: 3px solid var(--gs-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gs-primary);
  color: var(--gs-on-primary);
}

/* Respect du mode "réduire les animations" — désactive tout mouvement non essentiel */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
