

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--noir);
  background-color: var(--blanc);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--wide {
  max-width: 1440px;
}

.container--narrow {
  max-width: 800px;
}

h1, .h1 {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--noir);
}

h2, .h2 {
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--noir);
}

h3, .h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--noir);
}

h4, .h4 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--noir);
}

.text-body {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

.text-small {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-caption {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
}

.text-price {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.link {
  color: var(--noir);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--jaune-hover);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.section--gray {
  background-color: var(--gris-50);
}

.section--dark {
  background-color: var(--gris-950);
  color: var(--blanc);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section__subtitle {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--jaune-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.section__title {
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--noir);
}

.section--dark .section__title {
  color: var(--blanc);
}

.section__description {
  max-width: 640px;
  margin: var(--space-4) auto 0;
  color: var(--gris-600);
}

.section--dark .section__description {
  color: var(--gris-400);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2,
.grid--3,
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.relative { position: relative; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

::selection {
  background-color: var(--jaune-light);
  color: var(--noir);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider {
  border: none;
  border-top: 1px solid var(--gris-200);
  margin: var(--space-6) 0;
}

@media (min-width: 1024px) {
  h1, .h1 {
    font-size: 3rem;
  }

  h2, .h2 {
    font-size: 2.25rem;
  }

  h3, .h3 {
    font-size: 1.5rem;
  }

  .text-price {
    font-size: 1.75rem;
  }

  .section__title {
    font-size: 2.25rem;
  }
}
