/* ============================================================
   ECOCLIM — Base Styles & Utilities
   ============================================================ */

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* --- Typography utilities --- */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-accent    { color: var(--accent); }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.03em; }

.weight-300 { font-weight: 300; }
.weight-400 { font-weight: 400; }
.weight-600 { font-weight: 600; }
.weight-700 { font-weight: 700; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

.section-lg {
  padding-block: var(--space-3xl);
}

/* --- Flex / Grid utils --- */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* --- Color blocks --- */
.bg-base    { background-color: var(--bg-base); }
.bg-surface { background-color: var(--bg-surface); }
.bg-accent  { background-color: var(--accent-fill); }

/* --- Borders --- */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* --- Label tag (pill style) --- */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--accent);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
}

/* --- Overflow hidden (for clip-path reveals) --- */
.clip-parent { overflow: hidden; }

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Locomotive Scroll container --- */
[data-scroll-container] {
  will-change: transform;
}

/* --- Selection --- */
::selection {
  background-color: var(--accent-fill);
  color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* ============================================================
   Boutons (communs à toutes les pages)
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast), color var(--duration-fast);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97) translateY(1px);
}

.btn--primary {
  background-color: var(--accent-fill);
  color: #fff;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.btn--primary:hover::before { transform: scaleX(1); }
.btn--primary span { position: relative; z-index: 1; }

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background-color: var(--bg-card);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

