/* ============================================
   SAVEURS DE MAURICE - STYLES GLOBAUX
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Couleurs Primaires */
  --primary: #d97706;
  --primary-light: #f59e0b;
  --primary-dark: #b45309;
  
  /* Couleurs Secondaires */
  --secondary: #10b981;
  --secondary-light: #34d399;
  --secondary-dark: #059669;
  
  /* Couleurs Accent */
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  
  /* Couleurs Neutres */
  --background: #fafaf9;
  --foreground: #1c1917;
  --border: #e7e5e4;
  --muted: #a8a29e;
  --muted-light: #d6d3d1;
  
  /* Espacements */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ============================================
   LAYOUT
   ============================================ */

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gap-6 {
  gap: 1.5rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 var(--spacing-lg);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--foreground);
}

.logo img {
  height: 2rem;
  width: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
  border-radius: 9999px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-content {
  padding: var(--spacing-xl);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 40rem;
  padding: var(--spacing-2xl);
}

.hero-slide-content {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide-content.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.9);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
}

.hero-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.hero-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-author-info {
  color: white;
}

.hero-author-name {
  font-weight: 600;
}

.hero-author-role {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  z-index: 20;
  pointer-events: none;
}

.hero-btn {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(4px);
}

.hero-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.hero-indicators {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-md);
  z-index: 20;
}

.indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: white;
  width: 2rem;
}

/* ============================================
   SECTIONS
   ============================================ */

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

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

.bg-gradient-light {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(14, 165, 233, 0.1) 100%);
}

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

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

/* ============================================
   RECIPE CARDS
   ============================================ */

.recipe-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.recipe-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.recipe-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.1);
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.recipe-category {
  color: var(--primary);
  font-weight: 600;
}

.recipe-time {
  color: var(--muted);
}

.recipe-difficulty {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-facile {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.difficulty-moyen {
  background-color: #fed7aa;
  color: #92400e;
  border: 1px solid #fdba74;
}

.difficulty-difficile {
  background-color: #fecaca;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.recipe-info {
  padding: var(--spacing-lg);
}

.recipe-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--foreground);
}

.recipe-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   TIP & TRAVEL CARDS
   ============================================ */

.tip-card,
.travel-card {
  background: white;
  border-radius: 0.75rem;
  padding: var(--spacing-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tip-card:hover,
.travel-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.tip-icon {
  font-size: 2.5rem;
}

.tip-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tip-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.tip-description {
  font-size: 0.875rem;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

.tip-details {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-lg);
  margin-top: auto;
}

.tip-details ul {
  list-style: none;
}

.tip-details li {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-md);
}

.tip-details li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--foreground);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

.footer-section p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-md);
}

.footer-section ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: var(--spacing-lg);
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero {
    height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: var(--spacing-lg);
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.font-bold {
  font-weight: 700;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.py-lg {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.hidden {
  display: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
