/* ==========================================================================
   EXCELDOOR — BASE
   Reset minimal + réglages typographiques globaux. Mobile-first.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--text-primary); }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2); }
h4 { font-size: var(--fs-h3); font-weight: var(--fw-medium); }

p { margin: 0 0 var(--space-3); color: var(--text-secondary); line-height: var(--lh-loose); }
p:last-child { margin-bottom: 0; }

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

button { font-family: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; font-size: var(--fs-body); }

/* Focus clavier visible partout — accessibilité non négociable */
:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* --- Rythme des sections --------------------------------------------------- */
.section {
  padding: var(--space-6) 0;
}
.section--alt {
  background: var(--bg-section-alt);
}
@media (min-width: 960px) {
  .section { padding: var(--space-8) 0; }
}

.section__head {
  max-width: 640px;
  margin: 0 0 var(--space-5);
}
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-action-600);
  margin-bottom: var(--space-2);
}
.section__lead {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

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