/* ========================================
   base.css — Variables, reset, typographie,
   animations, focus
   ======================================== */

/* ===== Variables ===== */
/* ========================================
   Variables
   ======================================== */
:root {
  --color-primary: #2C2D3A;
  --color-primary-light: #4A4B57;
  --color-primary-dark: #1E1F2B;
  --color-accent: #9A6F2A;
  --color-accent-hover: #876027;
  --color-bg: #E5DDD0;
  --color-bg-alt: #D9CDB7;
  --color-text: #2C2D3A;
  --color-text-light: #4A4B57;
  --color-white: #ffffff;
  --color-border: #CFC1A8;
  --color-success: #2e7d32;
  --color-error: #c62828;
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-height: 70px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ===== Reset & Base ===== */
/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
ul { list-style: none; }

/* ===== Typographie ===== */
/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 { line-height: 1.2; color: var(--color-primary-dark); }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* ===== Utilitaires ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }

.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;
}
.sr-only--focusable:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 0.75rem 1.5rem; margin: 0; overflow: visible; clip: auto;
  white-space: normal; background: var(--color-accent); color: var(--color-white);
  font-weight: 700; z-index: 10000;
}

/* ===== Animations & Scroll ===== */
/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .service-card-image img, .portfolio-card-image img, .portfolio-item-image img { transition: none; }
}

/* ===== Focus ===== */
/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}
