/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--slate-600);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus visible — accessibilité */
:focus-visible {
  outline: 2.5px solid var(--rust-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

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

@media (min-width: 1024px) {
  .section { padding-block: var(--space-7); }
}

.section--tight { padding-block: var(--space-5); }

.section--dark {
  background: var(--ink-900);
  color: rgba(247, 244, 237, 0.86);
}
.section--dark h2, .section--dark h3 { color: var(--paper-100); }

.section--paper-alt { background: var(--paper-200); }

/* Eyebrow / label mono — encode la nature "officielle / document" du contenu */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-500);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--rust-500);
}

.section--dark .eyebrow { color: #E8A56B; }
.section--dark .eyebrow::before { background: #E8A56B; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section-head h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-1);
}

@media (min-width: 768px) {
  .section-head h2 { font-size: var(--fs-2xl); }
}

.section-head p {
  margin-top: var(--space-2);
  font-size: var(--fs-md);
  color: var(--slate-400);
}

.section--dark .section-head p { color: rgba(247, 244, 237, 0.7); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--rust-500);
  color: var(--paper-100);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--rust-600); transform: translateY(-1px); box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--paper-100);
  border: 1.5px solid rgba(247, 244, 237, 0.35);
}
.btn--ghost:hover { border-color: rgba(247, 244, 237, 0.7); background: rgba(247, 244, 237, 0.06); }

.btn--dark {
  background: var(--ink-900);
  color: var(--paper-100);
}
.btn--dark:hover { background: var(--ink-800); transform: translateY(-1px); }

.btn--block { width: 100%; }

.btn--sm { padding: 0.7em 1.3em; font-size: var(--fs-xs); }

/* ==========================================================================
   STAMP — élément signature (tampon de validation façon douane)
   ========================================================================== */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--success-600);
  border: 1.5px solid var(--success-600);
  border-radius: var(--radius-sm);
  padding: 0.4em 0.7em;
  transform: rotate(-2deg);
}

.stamp svg { width: 13px; height: 13px; }
