/* ============================================
   PCS XPRESS -- Design System Global
   Source de verite : CHARTE_PCS_2021.pdf
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat Alternates', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

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

ul, ol {
  list-style: none;
}

/* --- DESIGN TOKENS (CSS Custom Properties) --- */
:root {
  /* Couleurs principales (charte officielle) */
  --color-logo: #e43625;
  --color-text: #322b3a;
  --color-text-deep: #2a1839;
  --color-accent: #e93f69;
  --color-mint: #89c8aa;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Degrade hero (3 tons officiels) */
  --grad-top: #e93f69;
  --grad-mid: #ea534d;
  --grad-bot: #ee7528;
  --gradient-hero: linear-gradient(180deg, #e93f69 0%, #ea534d 50%, #ee7528 100%);
  --gradient-hero-diagonal: linear-gradient(135deg, #e93f69 0%, #ea534d 50%, #ee7528 100%);
  --gradient-accent: linear-gradient(90deg, #e93f69 0%, #ee7528 100%);

  /* Couleurs utilitaires */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f8;
  --color-bg-card: #e9f0fa;
  --color-footer: #2a1839;
  --color-border: #e5e5ea;
  --color-gold: #c9a14b;

  /* Typographie */
  --font-primary: 'Montserrat Alternates', sans-serif;
  --font-ocrb: 'OCRB', monospace;

  /* Espacements */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 32px;
  --grid-gap: 24px;
  --section-padding: 80px;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 32px;
  --radius-round: 50%;

  /* Ombres */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-navbar: 0 2px 12px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease-out;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.15;
}

h1 {
  font-weight: 800;
  font-size: 54px;
  letter-spacing: -0.015em;
}

h2 {
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 700;
  font-size: 28px;
}

h4 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

.text-large {
  font-size: 18px;
  font-weight: 500;
}

.text-small {
  font-size: 14px;
}

.text-caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

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

.text-center {
  text-align: center;
}

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

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

.section--mint {
  background-color: var(--color-mint);
}

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

.section--dark {
  background-color: var(--color-footer);
  color: var(--color-white);
}

.section--gradient {
  background: var(--gradient-hero);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  gap: var(--grid-gap);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  justify-content: space-between;
  align-items: center;
}

/* --- FONT FACE (auto-hebergees) --- */
@font-face {
  font-family: 'Montserrat Alternates';
  src: url('../assets/fonts/MontserratAlternates-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat Alternates';
  src: url('../assets/fonts/MontserratAlternates-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat Alternates';
  src: url('../assets/fonts/MontserratAlternates-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat Alternates';
  src: url('../assets/fonts/MontserratAlternates-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat Alternates';
  src: url('../assets/fonts/MontserratAlternates-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  :root {
    --container-padding: 24px;
    --section-padding: 48px;
    --grid-gap: 20px;
  }

  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 20px;
    --section-padding: 40px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}
