/* ============================================================
   LA VRAC ATTITUDE — Reset & base
   ============================================================ */

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

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

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

/* Décalage pour header fixe — calculé en JS via data-offset */
body { padding-top: var(--header-offset, 64px); }

img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* ── Typographie de base ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }
h5 { font-size: var(--text-md); font-weight: 600; }

p { margin-bottom: var(--sp-md); color: var(--text); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

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

/* ── Section ─── */
.section {
  padding: var(--sp-3xl) 0;
}
.section--sm {
  padding: var(--sp-xl) 0;
}
.section--bg {
  background: var(--bg);
}
.section--white {
  background: var(--white);
}
.section--green {
  background: var(--green-light);
}

/* ── Section header ─── */
.section__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.section__eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.section__eyebrow-text {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section__title {
  margin-bottom: var(--sp-md);
}
.section__subtitle {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: var(--sp-xl);
  line-height: 1.6;
  font-weight: 400;
  font-family: var(--font-body);
}

/* ── Boutons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: all var(--tr);
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--text);
}
.btn--lg {
  font-size: var(--text-base);
  padding: 14px 30px;
}
.btn--sm {
  font-size: var(--text-xs);
  padding: 7px 14px;
}
.btn__arrow {
  color: var(--accent);
  font-size: 1.2em;
  line-height: 1;
}
.btn--primary .btn__arrow,
.btn--accent .btn__arrow {
  color: rgba(255,255,255,.8);
}

/* ── Pilules tags ─── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: border-color var(--tr), color var(--tr);
}
.tag:hover {
  border-color: var(--green);
  color: var(--green);
}
.tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Cards ─── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__body { padding: var(--sp-lg); }
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--sp-sm);
}

/* ── Grilles ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
}

/* ── Utilitaires ─── */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
