/* =====================================================
   IMMIGRATION97 — BASE DESIGN SYSTEM
   Structure • Typographie • Layout (SAFE)
===================================================== */

/* =====================
   RESET MODERNE
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* =====================
   BODY GLOBAL
===================== */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =====================
   TYPOGRAPHIE TITRES
===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "FK Grotesk Neue", "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

/* =====================
   TEXTE
===================== */
p {
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 900px;
}

/* =====================
   LIENS (NEUTRE)
===================== */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* =====================
   MÉDIAS
===================== */
img {
  max-width: 100%;
  display: block;
}

/* =====================
   LAYOUT GLOBAL
===================== */
.app-main {
  min-height: calc(100vh - 80px);
  width: 100%;
  position: relative;
}

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

/* SECTIONS */
.section {
  padding: var(--section-padding) 0;
}

.section--sm {
  padding: var(--space-lg) 0;
}

/* =====================
   UTILITAIRES
===================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* =====================
   ANIMATIONS GLOBALES
===================== */
.fade-in {
  animation: fadeIn var(--transition-base) ease forwards;
  will-change: transform, opacity;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   ACCESSIBILITÉ
===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
