/* ============================================================
   PROJET-IT — base.css
   Variables de thème, reset, typographie, utilitaires
   ============================================================ */

:root {
  /* --- Couleurs de marque --- */
  --navy-900: #07182e;
  --navy-800: #0a2540;
  --navy-700: #10365e;
  --navy-600: #1a4a7a;

  --blue: #00a6fb;
  --blue-soft: #e6f6ff;
  --cyan: #22d3ee;
  --violet: #7c5cff;
  --amber: #f59e0b;

  --green: #10b981;

  /* --- Neutres --- */
  --white: #ffffff;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #12263a;
  --text-muted: #5b6b7c;
  --border: #e2e8f0;

  /* --- Dégradés --- */
  --grad-brand: linear-gradient(120deg, #00a6fb 0%, #22d3ee 100%);
  --grad-ai: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --grad-dark: linear-gradient(160deg, #0a2540 0%, #07182e 100%);

  /* --- Ombres --- */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.16);
  --shadow-brand: 0 12px 30px rgba(0, 166, 251, 0.32);

  /* --- Rayons --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Typographie --- */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;

  /* --- Mise en page --- */
  --container: 1180px;
  --nav-height: 72px;

  /* --- Transitions --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 0.25s;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover {
  color: var(--navy-700);
}

ul[class],
ol[class] {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 3px solid rgba(0, 166, 251, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(0, 166, 251, 0.25);
  color: var(--navy-900);
}

/* ------------------------------------------------------------
   Typographie
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Utilitaires
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

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

.section--dark {
  background: var(--grad-dark);
  color: #dbe7f3;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}
.section--dark .lead {
  color: #a9c0d6;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

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

/* Animations d'apparition au scroll (pilotées par main.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
