/* ============================================
   WGAuction — style.css
   Variables CSS + Reset + Utilitaires layout
   ============================================ */

/* === RESET MINIMAL === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* === VARIABLES CSS === */
:root {
  /* Couleurs */
  --color-navy: #1B2A5E;
  --color-navy-dark: #16234F;
  --color-navy-light: #253870;
  --color-orange: #F5820A;
  --color-orange-dark: #D96E00;
  --color-orange-light: #FF9A2E;
  --color-white: #FFFFFF;
  --color-gray-light: #F4F6FB;
  --color-gray-mid: #D0D5E8;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-success: #16A34A;
  --color-error: #DC2626;
  --color-footer-bottom: #111827;

  /* Typographie */
  --font-main: 'Inter', system-ui, -apple-system, 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: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Espacements */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-section: 80px;

  /* Composants */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 50px;
  --shadow-sm: 0 2px 8px rgba(27,42,94,0.08);
  --shadow-md: 0 4px 20px rgba(27,42,94,0.12);
  --shadow-lg: 0 8px 40px rgba(27,42,94,0.18);
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 98px;
  --header-height-mobile: 60px;
}

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

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

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

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

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

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-orange { color: var(--color-orange); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-muted); }

/* === GRILLES === */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* === ANIMATIONS SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === PLACEHOLDER IMAGES === */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
}

/* === UTILITAIRES === */
.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;
}

.icon-orange { color: var(--color-orange); }
.icon-navy { color: var(--color-navy); }
.icon-white { color: var(--color-white); }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--color-orange);
  color: white;
  z-index: 10000;
  border-radius: var(--border-radius);
  font-weight: 600;
}

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

@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
  }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* === PREFERS REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
