/* ============================================================
   MAIN.CSS — Variables, reset, typographie, utilitaires
   ============================================================ */

:root {
  /* Couleurs */
  --primary:       #1B2B6B;
  --accent:        #2563EB;
  --accent-hover:  #1d4ed8;
  --dark:          #0D1117;
  --dark-blue:     #0F1B3C;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --bg:            #ffffff;
  --bg-light:      #F5F7FF;
  --border:        #e2e8f0;
  --white:         #ffffff;

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

  /* Layout */
  --max-width:       1200px;
  --nav-height:      72px;
  --section-padding: 96px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.14);

  /* Arrondis */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Transitions */
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typographie ---- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2;  }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; line-height: 1.3;  }
h4 { font-size: 1.125rem;                     font-weight: 600; line-height: 1.4;  }
p  { line-height: 1.75; }

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

section { padding: var(--section-padding) 0; }

/* ---- Éléments de section réutilisables ---- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ---- Utilitaires ---- */
.text-center  { text-align: center; }
.text-white   { color: white !important; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.mx-auto      { margin-left: auto; margin-right: auto; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.mb-8         { margin-bottom: 8px;  }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mb-32        { margin-bottom: 32px; }
.mb-48        { margin-bottom: 48px; }
.mt-48        { margin-top: 48px;    }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px; }
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }

  /* Empêche tout élément de déborder horizontalement */
  img, video, iframe { max-width: 100%; }
  section { overflow-x: hidden; }
}
