/* ==========================================================================
   Base — reset, typographie, utilitaires
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* ancres sous le header épinglé */
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }

/* Sprite SVG caché */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Utilitaires */
.text-red { color: var(--c-red); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-red) 45%, transparent);
  outline-offset: 2px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--primary {
  background: var(--c-red);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(227, 16, 27, .25);
}
.btn--primary:hover { background: var(--c-red-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; }

.btn__icon  { width: 26px; height: 26px; }
.btn__arrow { width: 24px; height: 24px; margin-left: 6px; transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(4px); }
