/* ============================================
   HPI TEST - STYLES GLOBAUX
   ============================================ */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-primary-50: #EFF6FF;
  
  --color-secondary: #059669;
  --color-secondary-dark: #047857;
  --color-secondary-50: #ECFDF5;
  
  --color-accent: #D97706;
  --color-accent-dark: #B45309;
  --color-accent-50: #FFFBEB;
  
  --color-vc: #8B5CF6;
  --color-rp: #2563EB;
  --color-mt: #059669;
  --color-vt: #D97706;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Reset minimal */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #FAFAF9;
  color: #1C1917;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #1C1917;
}

/* ============================================
   UTILITAIRES
   ============================================ */

.section-hidden { display: none !important; }

.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* ============================================
   COMPOSANTS - TEST
   ============================================ */

.option-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.option-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.progress-fill {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.paypal-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(100%);
}

/* ============================================
   COMPOSANTS - ARTICLES
   ============================================ */

.article-content h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1C1917;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #292524;
}

.article-content h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #44403C;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #57534E;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #57534E;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #57534E;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  padding: 0.75rem;
  border: 1px solid #E7E5E4;
  text-align: left;
}

.article-content th {
  background-color: #F5F5F4;
  font-weight: 600;
  color: #1C1917;
}

/* ============================================
   COMPOSANTS - ALERTES
   ============================================ */

.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-info {
  background-color: var(--color-primary-50);
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.alert-warning {
  background-color: var(--color-accent-50);
  border: 1px solid #FCD34D;
  color: #92400E;
}

.alert-success {
  background-color: var(--color-secondary-50);
  border: 1px solid #6EE7B7;
  color: #065F46;
}

/* ============================================
   COMPOSANTS - CARTES
   ============================================ */

.info-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F5F5F4;
  transition: all 0.3s ease;
}

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

/* ============================================
   FIL D'ARIANE
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #78716C;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   DONNÉES STRUCTURÉES - FAQ
   ============================================ */

.faq-item {
  border-bottom: 1px solid #E7E5E4;
}

.faq-question {
  font-weight: 600;
  color: #1C1917;
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding-bottom: 1rem;
  color: #57534E;
}

/* ============================================
   EXPERT CARD
   ============================================ */

.expert-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #F5F5F4;
}

.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
  
  .expert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

.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;
}

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   IMPRESSION
   ============================================ */

@media print {
  nav, footer, .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
}
