* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== COULEURS ===== */
  --bg-dark: #deb887;
  /* burlywood */
  --bg-light: #E2E2B6;
  /* rgba(255, 255, 255, 0.8); */
  /* Fond des cartes (plus clair pour le contraste) */
  --bg-glass: rgba(222, 184, 135, 0.9);
  /* Fond semi-transparent (header, etc.) */
  --bg-noise: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');

  /* Couleurs d'accentuation (audace, énergie) */
  --accent-primary: #00aa66;
  /* Vert plus foncé pour contraste sur burlywood */
  --accent-secondary: #cc0066;
  /* Rose ajusté pour harmonie */
  --accent-tertiary: #0088cc;
  /* Bleu cyan plus foncé */

  /* Couleurs de texte (adaptées pour un fond clair) */
  --text-primary: #2a2a2a;
  /* Noir foncé pour lisibilité */
  --text-muted: #5a5a5a;
  /* Gris foncé pour texte secondaire */
  --text-accent: var(--accent-primary);

  /* Couleurs de feedback */
  --color-error: #d32f2f;
  --color-success: #388e3c;
  --color-warning: #f57c00;

  /* ===== ESPACEMENTS ===== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* ===== BORDURES ===== */
  --border-radius-sm: 12px;
  --border-radius-md: 24px;
  --border-radius-lg: 50px;
  --border-default: 1px solid rgba(42, 42, 42, 0.1);
  /* Bordure plus visible sur fond clair */

  /* ===== OMBRES ===== */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 0 3px rgba(0, 170, 102, 0.3);
  /* Ajusté pour --accent-primary */

  /* ===== TRANSITIONS ===== */
  --transition-default: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* ===== FONTS ===== */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: burlywood;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== EFFETS VISUELS GLOBAUX ===== */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
  background-image: var(--bg-noise);
}

.gradient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  right: -200px;
  animation: float 20s infinite ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -150px;
  left: -150px;
  animation: float 15s infinite ease-in-out reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-tertiary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 10s infinite ease-in-out;
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

/* ===== HEADER ===== */
header {
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: var(--border-default);
  z-index: 100;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: var(--font-weight-black);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

nav ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s;
}

a:hover {
  color: var(--text-primary);
}

a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.04em;
  animation: fadeInUp 1s ease-out;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite linear;
  background-size: 200% 200%;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* ===== BOUTONS ===== */
.cta-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-secondary));
  transition: left var(--transition-default);
}

.cta-button span {
  position: relative;
  z-index: 1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ===== SERVICES ===== */
.services {
  padding: var(--space-xl) 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  text-align: center;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-dark);
  border: var(--border-default);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
  opacity: 0;
  transition: opacity var(--transition-default);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.cta-section p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact {
  padding: var(--space-xl) 0;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-dark);
  border: var(--border-default);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-default);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-default);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== FOOTER ===== */
footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: var(--border-default);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.2rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: var(--space-xs);
}

.footer-copy {
  text-align: center;
  padding-top: var(--space-md);
  border-top: var(--border-default);
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul {
    gap: var(--space-sm);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--space-md);
  }
}
