/* ==========================================================================
   BASE STYLES - Variables globales et styles de base
   ========================================================================== */

:root {
  /* Palette Couleurs Jubilee */
  --primary: #FF6B6B;          /* Coral principal */
  --secondary: #4ECDC4;        /* Turquoise */
  --accent: #FFE66D;           /* Jaune pastel */
  --neutral-dark: #2C3E50;     /* Bleu foncé */
  --neutral-light: #F8F9FA;    /* Gris clair */
  --success: #51CF66;          /* Vert validation */
  --warning: #FFD43B;          /* Orange alerte */
  --danger: #FF8787;           /* Rouge erreur */
  
  /* Système de spacing */
  --spacing-xs: 0.5rem;        /* 8px */
  --spacing-sm: 1rem;          /* 16px */
  --spacing-md: 1.5rem;        /* 24px */
  --spacing-lg: 2rem;          /* 32px */
  --spacing-xl: 3rem;          /* 48px */
  --spacing-xxl: 4rem;         /* 64px */
  
  /* Typographie */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;
  --font-accent: 'Poppins', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

/* Compensation pour header fixe */
#main-content {
  padding-top: 80px; /* Hauteur approximative du header */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: #fff;
  overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

/* Boutons personnalisés */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), #FF8E8E);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-family: var(--font-accent);
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #FF5252, var(--primary));
  color: white;
}

.btn-secondary-custom {
  background: transparent;
  border: 2px solid var(--secondary);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-family: var(--font-accent);
  font-weight: 500;
  color: var(--secondary);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards */
.card-custom {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Utilitaires */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), #FF8E8E);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary), #6BE7DD);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* Focus states pour accessibilité */
.btn-primary-custom:focus,
.btn-secondary-custom:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}