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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibilité : Prise en charge de prefers-reduced-motion */
@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 Professionnelle & Lisible */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4.8vw + 0.5rem, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw + 0.4rem, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw + 0.4rem, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.1vw + 0.2rem, 1.1rem);
}

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

img, svg {
  display: block;
  max-width: 100%;
}

/* Utilitaires Layout */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

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

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

.text-gradient-office {
  background: linear-gradient(135deg, #0A438C 0%, #0E703A 55%, #B83214 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations Légères et Performantes */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.clean-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
}
