/*
  ╔══════════════════════════════════════════════════════════════════════════╗
  ║                  base.css — Reset, Variables & Globals                   ║
  ╚══════════════════════════════════════════════════════════════════════════╝
*/

/* ══════════════════════════════════════════════════════════════════════════ */
/* DESIGN SYSTEM: Variables & Design Tokens                                  */
/* ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Color Palette */
  --bg-primary-gradient:
    radial-gradient(circle at 20% 10%, rgba(125,179,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(125,179,255,0.04), transparent 50%),
    linear-gradient(180deg, #212529 0%, #1A1D21 100%);
  --bg-secondary-gradient:
    radial-gradient(circle at 80% 20%, rgba(125,179,255,0.07), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(125,179,255,0.04), transparent 50%),
    linear-gradient(180deg, #2C3139 0%, #242830 100%);

  --color-bg-primary: #212529;
  --color-bg-secondary: #2C3139;
  --color-bg-section-alt: #1A1D21; /* Nouvelle couleur pour fond de section alterné */
  --color-bg-card: #2D3139;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D4D4D4;
  --color-text-muted: #B0B0B0;
  --color-accent: #7DB3FF;
  --color-accent-hover: #5A9FFF;
  --color-accent-soft: rgba(59, 130, 246, 0.1);
  --color-border: #383E47;

  /* Typography Scale */
  --font-primary: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.75rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3.5rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.2;

  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Radius Scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow System (Premium elevation) */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.35);

  /* Transition System */
  --easing-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--easing-premium);
  --transition-normal: 0.3s var(--easing-premium);
  --transition-slow: 0.5s var(--easing-premium);

  /* Layout Scale */
  --container-width: 100%;
  --page-h-margin: 5%;
  --page-v-padding: 16px;
  --page-h-padding: clamp(16px, 15%, 80px); /* Augmenté pour une marge plus visible */
}

/* Responsive: Tablet (640px+) */
@media (min-width: 640px) {
  :root {
    --page-v-padding: 24px;
    --page-h-padding: clamp(12px, 12.5%, 80px);
  }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* BASE RESET & GLOBAL STYLES                                                 */
/* ══════════════════════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
}

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

html {
  width: 100%;
}

html, body {
  width: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-primary), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg-primary-gradient);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover {
  text-decoration: underline;
}

img {
  border-radius: var(--radius-md);
}
