/* ===============================
   Fichier : main-base.css
   Design System Premium - Luxury Violet
   =============================== */

   :root {
    /* ===== Couleurs Premium ===== */
    /* Violet Premium - Couleur principale */
    --primary-color: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;

    /* Bleu Corporate - Couleur secondaire */
    --secondary-color: #1E40AF;
    --secondary-light: #3B82F6;
    --secondary-dark: #1E3A8A;

    /* Accent Or - Pour exclusivité */
    --accent-color: #F59E0B;
    --accent-light: #FCD34D;
    --accent-dark: #D97706;

    /* ===== Palette Étendue Premium ===== */
    /* Cyan - Innovation & Tech */
    --cyan-color: #06B6D4;
    --cyan-light: #22D3EE;
    --cyan-dark: #0891B2;

    /* Rose - Créativité & Engagement */
    --rose-color: #F43F5E;
    --rose-light: #FB7185;
    --rose-dark: #E11D48;

    /* Émeraude - Succès & Croissance */
    --emerald-color: #10B981;
    --emerald-light: #34D399;
    --emerald-dark: #059669;

    /* Indigo - Profondeur & Sophistication */
    --indigo-color: #4F46E5;
    --indigo-light: #6366F1;
    --indigo-dark: #4338CA;

    /* Fuchsia - Audace & Innovation */
    --fuchsia-color: #D946EF;
    --fuchsia-light: #E879F9;
    --fuchsia-dark: #C026D3;

    /* Corail - Chaleur & Accessibilité */
    --coral-color: #FB923C;
    --coral-light: #FDBA74;
    --coral-dark: #F97316;

    /* Couleurs de fond */
    --background-color: #ffffff;
    --background-color-hightlight: #F9FAFB;
    --text-color: #111827;
    --text-color-secondary: #6B7280;

    /* Gradients Premium */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    --gradient-luxury: linear-gradient(135deg, #7C3AED 0%, #1E40AF 50%, #5B21B6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(30,64,175,0.12) 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-hero: linear-gradient(135deg, rgba(124,58,237,0.03) 0%, rgba(30,64,175,0.05) 50%, rgba(124,58,237,0.03) 100%);

    /* Gradients Nouveaux - Palette étendue */
    --gradient-cyan: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --gradient-rose: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
    --gradient-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-indigo: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    --gradient-fuchsia: linear-gradient(135deg, #D946EF 0%, #C026D3 100%);
    --gradient-coral: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    --gradient-rainbow: linear-gradient(135deg, #7C3AED 0%, #06B6D4 20%, #10B981 40%, #F43F5E 60%, #F59E0B 80%, #D946EF 100%);
    --gradient-aurora: linear-gradient(135deg, #7C3AED 0%, #06B6D4 50%, #10B981 100%);
    --gradient-spectrum: linear-gradient(135deg, #4F46E5 0%, #7C3AED 25%, #D946EF 50%, #F43F5E 75%, #FB923C 100%);

    /* ===== Typographie Hiérarchisée ===== */
    --font-family: 'Poppins', sans-serif;

    /* Échelle typographique harmonieuse (ratio 1.25) */
    --font-display: 3.815rem;     /* 61px - Hero titles */
    --font-h1: 3.052rem;          /* 48px - Page titles */
    --font-h2: 2.441rem;          /* 39px - Section titles */
    --font-h3: 1.953rem;          /* 31px - Subsections */
    --font-h4: 1.563rem;          /* 25px - Card titles */
    --font-body-large: 1.25rem;   /* 20px - Lead paragraphs */
    --font-body: 1rem;            /* 16px - Body text */
    --font-small: 0.875rem;       /* 14px - Captions */
    --font-tiny: 0.75rem;         /* 12px - Labels */

    /* Compatibilité anciennes variables */
    --font-size: 1rem;
    --font-size-small: 1.125rem;
    --font-size-medium: 1.5rem;
    --font-size-large: 2rem;

    /* Poids de police */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* ===== Espacement Cohérent (base 8px) ===== */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    --space-4xl: 8rem;     /* 128px */

    /* Compatibilité anciennes variables */
    --padding-small: 0.375rem 0.625rem;   /* 6px 10px */
    --padding-medium: 0.5rem 1rem;        /* 8px 16px */
    --padding-large: 0.75rem 1.5rem;      /* 12px 24px */
    --padding-desktop: 1.25rem 2.5rem;    /* 20px 40px */
    --padding-mobile: 0.625rem 0.938rem;  /* 10px 15px */

    --gap-small: var(--space-xs);
    --gap-medium: var(--space-sm);
    --gap-large: var(--space-md);

    /* ===== Border Radius Harmonieux ===== */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    --border-radius: var(--radius-md);

    /* ===== Élévations & Ombres Premium ===== */
    --elevation-1: 0 2px 4px rgba(124, 58, 237, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --elevation-2: 0 4px 8px rgba(124, 58, 237, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    --elevation-3: 0 8px 16px rgba(124, 58, 237, 0.16), 0 4px 8px rgba(0, 0, 0, 0.12);
    --elevation-4: 0 16px 32px rgba(124, 58, 237, 0.20), 0 8px 16px rgba(0, 0, 0, 0.16);
    --elevation-5: 0 24px 48px rgba(124, 58, 237, 0.24), 0 16px 32px rgba(0, 0, 0, 0.20);

    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.4);
    --shadow-glow-accent: 0 0 20px rgba(245, 158, 11, 0.4);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* ===== Glassmorphism Premium ===== */
    --glass-premium: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* ===== Transitions & Animations ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* ===== Animations Premium ===== */

  /* Animation d'entrée - Fade In Up */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Animation d'entrée - Fade In */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Animation d'entrée - Scale In */
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Animation de flottement */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

  /* Animation shimmer pour les CTAs */
  @keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }

  /* Classes utilitaires d'animation */
  .animate-fade-in {
    animation: fadeIn 0.6s ease-out;
  }

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

  .animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

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

  /* Délais d'animation pour effets séquentiels */
  .delay-100 { animation-delay: 100ms; }
  .delay-200 { animation-delay: 200ms; }
  .delay-300 { animation-delay: 300ms; }
  .delay-400 { animation-delay: 400ms; }
  .delay-500 { animation-delay: 500ms; }

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

  body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    background-color: var(--background-color);
    color: var(--text-color);
  }

  /* Titres */
  h1 {
    font-size: var(--font-size-large);
  }

  h2 {
    font-size: var(--font-size-medium);
  }

  h3 {
    font-size: var(--font-size-small);
  }
/* ========================
   Hightlights
======================== */

  .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
  }

  .highlight-box {
    display: flex;
    align-items: center;
    background-color: var(--background-color-hightlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-2);
    transition: all var(--transition-base);
  }

  .highlight-box:hover {
    box-shadow: var(--elevation-3);
    transform: translateY(-2px);
  }

  .highlight-box-horizontal {
  display: flex;
  align-items: center;
  background-color: var(--background-color-hightlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
  transition: all var(--transition-base);
  }

  .highlight-box-horizontal:hover {
    box-shadow: var(--elevation-3);
    transform: translateY(-2px);
  }

.highlight-box-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color-hightlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
  padding: var(--space-md);
  gap: var(--space-sm);
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: all var(--transition-base);
}

.highlight-box-vertical:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-2px);
}


/* ========================
   Effets communs (ombre, hover, transition)
======================== */

.shadow-hover {
  box-shadow: var(--elevation-3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.shadow-hover:hover {
  transform: scale(1.03);
  box-shadow: var(--elevation-4), var(--shadow-glow);
}

/* ========================
   Images responsives
======================== */

/* Base commune */
  .image {
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
  }

  /* Taille fluide (responsive) */
  .image--fluid {
    width: 100%;
    height: auto;
  }

  /* Taille fixe / carrée */
  .image--square {
    aspect-ratio: 1 / 1;
    width: 35%;
  }

  @media (max-width: 600px) {
    .image--square {
      width: 20vw;
      max-width: none;
    }
  }

  /* Variants de taille */
  .image--large {
    max-width: 600px;
  }

  .image--medium {
    max-width: 300px;
  }

  /* Logo: pas de recadrage, centré */
  .image--logo {
    display: block;
    object-fit: contain;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  @media (max-width: 600px) {
    .image--logo {
      width: 120px;
      max-width: 100%;
    }
  }

  /* Effets visuels */
  .image--shadow {
    box-shadow: var(--elevation-3);
  }

  .image--hover-scale:hover {
    transform: scale(1.03);
    box-shadow: var(--elevation-4);
  }

  /* ========================
     Boutons Premium
  ======================== */
  .btn {
    display: inline-block;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    padding: var(--padding-large);
    position: relative;
    overflow: hidden;
  }

  /* Bouton principal : Gradient Violet Premium */
  .btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--elevation-2);
  }

  .btn--primary:hover {
    box-shadow: var(--elevation-4), var(--shadow-glow);
    transform: translateY(-2px);
  }

  .btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--elevation-2);
  }

  /* Bouton accent : Or Premium pour CTAs importants */
  .btn--accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  }

  .btn--accent:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4), var(--shadow-glow-accent);
    transform: translateY(-2px);
  }

  /* Bouton contour : Élégant avec bordure violet */
  .btn--outline {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: var(--padding-small);
    font-size: var(--font-size-small);
    box-shadow: var(--elevation-1);
  }

  .btn--outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--elevation-2);
    transform: translateY(-1px);
  }

.btn--logout {
  background-color: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: var(--border-radius);
  font-size: var(--font-size);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-base);
  padding: var(--padding-large);
  box-shadow: var(--elevation-1);
}

.btn--logout:hover {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

  /* Responsive padding */
  header,
  main,
  section {
    padding: var(--padding-mobile);
  }

  @media (min-width: 769px) {
    header,
    main,
    section {
      padding: var(--padding-desktop);
    }
  }

  main {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Permettre une largeur plus importante en mode desktop */
  @media (min-width: 1200px) {
    main {
      max-width: 1200px;
    }
  }

  /* ========================
   Utilitaires Responsive
======================== */
@media (max-width: 768px) {
  .is-hidden-mobile {
    display: none !important;
  }
}
