/**
 * global.css
 * Reset, variables CSS, typographie, utilitaires globaux.
 * Sky blue + orange premium design system.
 */

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
  /* Couleurs — sky blue + orange */
  --color-bg: #EEF4FB;
  --color-bg-alt: #E4EDF7;
  --color-bg-white: #FFFFFF;
  --color-text: #1B2A4A;
  --color-text-secondary: #5A6B8A;
  --color-accent: #FF6B2B;
  --color-accent-hover: #E8551A;
  --color-accent-secondary: #FFB347;
  --color-accent-light: rgba(255, 107, 43, 0.1);
  --gradient-signature: linear-gradient(135deg, #FF6B2B, #FF8F40);
  --gradient-hero: linear-gradient(135deg, #FF6B2B 0%, #FFB347 100%);
  --color-overlay: rgba(15, 25, 50, 0.5);

  /* Typographie */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;

  /* Espacements */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(15, 25, 50, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 25, 50, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 25, 50, 0.08);
  --shadow-xl: 0 16px 48px rgba(15, 25, 50, 0.1);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;

  /* Header */
  --header-height: 80px;
  --header-height-compact: 64px;
}

/* ── Typographie ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1200px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
}

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

.section {
  padding-block: var(--space-4xl);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-5xl);
  }
}

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

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

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

/* ── Bouton CTA ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast);
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #FFFFFF;
  background: var(--gradient-signature);
  box-shadow: 0 4px 20px rgba(255, 107, 43, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(255, 107, 43, 0.4);
}

.btn--outline {
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  color: #FFFFFF;
  background: var(--gradient-signature);
  border-color: transparent;
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-sm);
}

/* ── Animations (Intersection Observer) ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Section title ────────────────────────────────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__subtitle {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  padding: 0.3rem 1rem;
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
}
