/* ==========================================================================
   BASE.CSS - Reset, Variables, Typographie, Utilitaires
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
  /* Palette - Gris / Bleu-gris */
  --color-bg-light: #F5F8FB;
  --color-primary: #556C86;
  --color-secondary: #285078;
  --color-gray-light: #E2E8F0;
  --color-gray-medium: #CBD5E1;
  --color-text-orange: #FF7A00;
  --color-orange-hover: #E86A00;

  /* Typographie */
  --font-family-base: 'Georgia', 'Times New Roman', serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.125rem;
  --font-size-small: 0.875rem;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Breakpoints (pour référence en JS) */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-desktop-lg: 1280px;

  /* UI */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --box-shadow: 0 2px 8px rgba(85, 108, 134, 0.1);
  --box-shadow-hover: 0 4px 16px rgba(85, 108, 134, 0.15);

  /* Transitions */
  --transition-base: all 0.3s ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  color: #2D3748;
  background-color: #2e4051;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-orange-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typographie
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-orange);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

p {
  margin-bottom: var(--spacing-sm);
  color: #2D3748;
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-small);
}

/* Utilitaires - Layout
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: 960px;
}

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

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(46, 64, 81, 0.5), transparent);
  pointer-events: none;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(46, 64, 81, 0.5), transparent);
  pointer-events: none;
}

.section--alt {
  background-color: #2e4051;
}

/* Utilitaires - Grilles
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Utilitaires - Flexbox
   ========================================================================== */
.flex {
  display: flex;
}

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

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

.flex--wrap {
  flex-wrap: wrap;
}

.flex--column {
  flex-direction: column;
}

/* Utilitaires - Espacements
   ========================================================================== */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }

/* Utilitaires - Texte
   ========================================================================== */
.text-center {
  text-align: center;
}

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

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

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

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

/* Utilitaires - Visibilité
   ========================================================================== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive - Mobile First
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.375rem;
    --spacing-xxl: 3rem;
  }

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

@media (max-width: 480px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

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

/* Focus Accessibilité
   ========================================================================== */
*:focus-visible {
  outline: 3px solid var(--color-orange-hover);
  outline-offset: 2px;
}

/* Minifier ce fichier en production */
