/*
  base.css — reset + styles des éléments HTML nus + layout container
  Mobile-first. Aucune media query ici (voir base.tablet.css / base.desktop.css).
*/

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-cream);
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

a {
  color: var(--color-terracotta-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brown-dark);
}

button {
  font-family: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus clavier visible partout (a11y non négociable) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-terracotta-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-brown-dark);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; }

p {
  margin: 0 0 var(--space-4);
}

p.lead {
  font-size: var(--fs-lead);
  color: var(--color-brown);
}

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

main {
  display: block;
}

section {
  padding-block: var(--space-7);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-brown-dark);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.section-heading .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta-deep);
  margin-bottom: var(--space-2);
}

.section-heading p {
  color: var(--color-brown);
}

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

.bg-cream-dark {
  background: var(--color-cream-dark);
}
