:root {
  /* Couleurs */
  --primary: #673c9d;           /* Violet principal */
  --primary-dark: #4a2a71;      /* Violet foncé */
  --primary-light: #9d7bc7;     /* Violet clair */
  --primary-soft: #f4f0fa;      /* Violet très clair pour fonds */
  --accent: #ffd700;            /* Or pour accents subtils */
  --secondary: #f8f9fa;         /* Gris très clair */
  --text-dark: #1a1a1a;         /* Texte principal plus profond */
  --text-light: #555555;        /* Texte secondaire */
  --white: #ffffff;             /* Blanc */
  --success: #28a745;           /* Vert (validation) */
  --error: #dc3545;             /* Rouge (erreur) */
  --border-color: #e9ecef;

  /* Typographie */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

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

  /* Autres */
  --container-width: 1200px;
  --header-height: 90px;
  --transition-speed: 0.4s;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 30px rgba(103, 60, 157, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; position: relative; padding-bottom: 1rem; }
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}
.text-center h2::after { left: 50%; transform: translateX(-50%); }

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(103, 60, 157, 0.3);
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(103, 60, 157, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(103, 60, 157, 0.2);
}

/* Placeholder for images */
.img-placeholder {
  background-color: var(--primary-soft);
  border: 2px dashed var(--primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-style: italic;
  aspect-ratio: 16 / 9;
  width: 100%;
  transition: all var(--transition-speed);
}

.img-placeholder:hover {
  background-color: var(--white);
  border-style: solid;
  transform: scale(1.02);
}

/* Utility classes */
.text-center { text-align: center; }
.text-light { color: var(--text-light); font-size: 0.9rem; }
.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); }

main {
  flex: 1;
}

/* Responsive grid utility classes */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.bg-secondary {
  background-color: var(--secondary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
