/* ============================================
   HAALS FORMATION - STYLES PRINCIPAUX
   ============================================ */

/* Variables CSS - Charte graphique */
:root {
  /* Couleurs principales */
  --color-orange: #FF6B35;
  --color-orange-dark: #E55A2B;
  --color-orange-light: #FF8C5A;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-dark: #2C2C2C;
  --color-gray: #666666;
  --color-gray-light: #F5F5F5;
  --color-gray-lighter: #FAFAFA;
  
  /* Typographie */
  --font-primary: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-large: 18px;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.2;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Bordures */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Ombres améliorées */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-orange: 0 8px 24px rgba(255, 107, 53, 0.25);
  
  /* Transitions améliorées */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Gradients */
  --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #E55A2B 100%);
  --gradient-orange-light: linear-gradient(135deg, #FF8C5A 0%, #FFB08A 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Optimisation des performances */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Réduction des animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-black) !important;
  margin-bottom: var(--spacing-sm);
}

h1, h2, h3, h4, h5, h6,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
  color: inherit !important;
}

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);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

p:not(a) {
  color: var(--color-black) !important;
}

a {
  color: var(--color-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* S'assurer que les éléments de texte ne sont pas des liens */
h1:not(a), h2:not(a), h3:not(a), h4:not(a), h5:not(a), h6:not(a),
p:not(a), span:not(a), div:not(a), li:not(a) {
  color: var(--color-black);
}

/* S'assurer que le texte dans les sections reste noir */
.section h1:not(a),
.section h2:not(a),
.section h3:not(a),
.section h4:not(a),
.section p:not(a),
.section span:not(a),
.section li:not(a) {
  color: var(--color-black) !important;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-orange);
  border-radius: 2px;
  animation: expandLine 0.6s ease-out;
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}

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

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

