/**
 * THEME BASE - Variables communes pour l'ensemble du site
 * La Voie des Ahl al-Bayt
 *
 * Ce fichier contient uniquement les variables partagées entre
 * les deux identités (doctrine et contributeurs)
 */

:root {
  /* === TYPOGRAPHIE COMMUNE === */
  --font-primary: "Georgia", "Palatino", "Times New Roman", serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Traditional Arabic", "Arabic Typesetting", "Geeza Pro", serif;

  /* === ESPACEMENTS MODULAIRES === */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */

  /* === BORDURES === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* === OMBRES === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* === Z-INDEX === */
  --z-base: 1;
  --z-dropdown: 10;
  --z-header: 50;
  --z-modal: 100;

  /* === BREAKPOINTS (à utiliser en media queries) === */
  /* Mobile-first approach */
  /* sm: 640px */
  /* md: 768px */
  /* lg: 1024px */
  /* xl: 1280px */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHIE BASE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.3;
  font-weight: 600;
}

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

a {
  text-decoration: none;
  transition: var(--transition-normal);
}

ul, ol {
  list-style-position: inside;
}

/* === CONTENEUR GLOBAL === */
.lv-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 768px) {
  .lv-container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

/* === BOUTONS BASE === */
.lv-btn-primary,
.lv-btn-secondary,
.lv-btn-text {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  font-family: var(--font-secondary);
}

.lv-btn-text {
  background: transparent;
  padding: var(--spacing-xs) 0;
  font-weight: 500;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lv-animate-ready {
  opacity: 0;
}

.lv-animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* === 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-width: 0;
}

/* === RESPONSIVE IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
