/* ==========================================================================
   Venaqi — Base : variables, reset, typographie, utilitaires
   ========================================================================== */

:root {
  /* Couleurs */
  --color-primary:    #169385; /* Vert Venaqi — éléments de marque */
  --color-primary-dark:#117a6e;
  --color-cta:        #F97316; /* Orange — boutons CTA principaux */
  --color-cta-dark:   #ea670c;
  --color-hero-bg:    #0A0A0F; /* Fond hero sombre */
  --color-hero-text:  #FFFFFF;
  --color-bg:         #FAFAFA; /* Fond sections claires */
  --color-surface:    #FFFFFF; /* Cartes, panneaux */
  --color-text:       #1A1A2E; /* Texte principal */
  --color-text-muted: #6B7280; /* Texte secondaire */
  --color-border:     #E5E7EB; /* Bordures légères */
  --color-accent-bg:  #F0FDFA; /* Fond accent vert très clair */

  /* Typographie */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Rayons & ombres */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.10);

  /* Espacements */
  --space-section: 100px;   /* padding vertical sections desktop */
  --space-section-sm: 64px; /* mobile */
  --container: 1200px;
  --container-narrow: 820px;

  /* En-tête */
  --header-height: 72px;
}

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

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

/* compense la nav sticky lors des ancres */
html { scroll-padding-top: calc(var(--header-height) + 16px); }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-primary-dark); }

ul, ol { margin: 0; padding: 0; }

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

h1, h2, h3, h4 { margin: 0; color: var(--color-text); font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- Typographie ----- */
h1, .h1 { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3, .h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.text-body { font-size: 16px; line-height: 1.6; }
.text-small { font-size: 14px; line-height: 1.5; }
.text-lead { font-size: 20px; line-height: 1.6; color: var(--color-text-muted); }
.text-muted { color: var(--color-text-muted); }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.section--bg     { background: var(--color-bg); }
.section--surface{ background: var(--color-surface); }
.section--accent { background: var(--color-accent-bg); }

.section__header { max-width: 760px; margin: 0 0 56px; }
.section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { margin-bottom: 16px; }
.section__subtitle { font-size: 19px; color: var(--color-text-muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* ----- Grilles ----- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ----- Utilitaires ----- */
.text-center { text-align: center; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-text); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Animations scroll (IntersectionObserver) ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --space-section: var(--space-section-sm); }
  h1, .h1 { font-size: 38px; }
  h2, .h2 { font-size: 30px; }
  h3, .h3 { font-size: 21px; }
  .text-lead { font-size: 18px; }
  .section__subtitle { font-size: 17px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section__header { margin-bottom: 40px; }
}
@media (max-width: 420px) {
  h1, .h1 { font-size: 32px; }
  .container { padding-left: 18px; padding-right: 18px; }
}
