/* ============================================================
   BASE.CSS — Reset, typographie et utilitaires fondamentaux
   ============================================================ */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-5xl);  font-weight: 700; }
h3 { font-size: var(--text-3xl);  font-weight: 600; }
h4 { font-size: var(--text-2xl);  font-weight: 600; }
h5 { font-size: var(--text-xl);   font-weight: 600; }

p {
  line-height: 1.8;
  color: var(--color-text-muted);
}

p + p {
  margin-top: var(--s4);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* === FOCUS ACCESSIBLE === */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s4);
  z-index: 9999;
  padding: var(--s3) var(--s6);
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* === UTILITAIRES === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.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;
}

/* Label catégorie uppercase fin */
.label-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Ligne décorative sous les titres de section */
.titre-avec-trait {
  position: relative;
  padding-bottom: var(--s5);
}

.titre-avec-trait::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.titre-avec-trait.center {
  text-align: center;
}

.titre-avec-trait.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Prix mis en avant */
.prix-mention {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--s3);
}
