@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap");

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

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #1f2937;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
}

.gradient-bg-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-indigo {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons - Teal primary */
.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Button - Blue primary */
.btn-primary-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Outline buttons */
.btn-outline {
  border: 2px solid #14b8a6;
  color: #14b8a6;
  background: transparent;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline:hover {
  background: #14b8a6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

.btn-outline-blue {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  background: transparent;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline-blue:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline-orange {
  border: 2px solid #f97316;
  color: #f97316;
  background: transparent;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-outline-orange:hover {
  background: #f97316;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

/* Cards */
.card-light {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Image overlays */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay img {
  transition: transform 0.6s ease;
}

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

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stats counter */
.counter {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress bars */
.progress-bar {
  background: rgba(20, 184, 166, 0.1);
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #10b981);
  animation: progressFill 2s ease-out;
  border-radius: 10px;
}

@keyframes progressFill {
  from { width: 0; }
}

/* Mobile menu */
.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #14b8a6, #10b981);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* Recipe tags */
.tag-vegetarian {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.tag-vegan {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tag-protein {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tag-light {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.tag-breakfast {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.tag-dessert {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #14b8a6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-bottom: 0;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1rem;
}

/* Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video preview container */
.video-preview-container {
  position: relative;
  background: #000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 1rem;
}

#video-overlay {
  transition: opacity 0.3s ease;
}

#video-overlay.hidden {
  display: none;
}

/* Protection contre l'inspection */
.video-preview-container {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.video-preview-container video {
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* Désactiver la sélection de texte sur les vidéos */
video::selection {
  background: transparent;
}

video::-moz-selection {
  background: transparent;
}

/* Nutrition facts table */
.nutrition-table {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border-radius: 1rem;
}

.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.nutrition-row:last-child {
  border-bottom: none;
}

/* Ingredients checklist */
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.ingredient-item.checked span {
  text-decoration: line-through;
  color: #9ca3af;
}

.ingredient-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #14b8a6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ingredient-checkbox.checked {
  background: #14b8a6;
  color: white;
}

/* Step numbers */
.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Print styles */
@media print {
  nav, footer, .btn-primary, .btn-outline {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card-light {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Filter pills */
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: #14b8a6;
  color: #14b8a6;
}

.filter-pill.active {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  color: white;
  border-color: transparent;
}

/* Filter pills - Blue variant */
.filter-pill-blue {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-blue:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.filter-pill-blue.active {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  border-color: transparent;
}

/* Filter pills - Orange variant */
.filter-pill-orange {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-orange:hover {
  border-color: #f97316;
  color: #f97316;
}

.filter-pill-orange.active {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  color: white;
  border-color: transparent;
}

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

/* Animated class for intersection observer */
.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Search input */
.search-input {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  width: 100%;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Duration badge */
.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

/* Difficulty indicators */
.difficulty-beginner {
  color: #22c55e;
}

.difficulty-intermediate {
  color: #f59e0b;
}

.difficulty-advanced {
  color: #ef4444;
}

/* Dot pattern background */
.dot-pattern {
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Video thumbnails in cards */
.card-light video,
article.card-light video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
}

.image-overlay video,
.card-light video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  min-height: 224px;
  background: #000;
}

.card-light .relative video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 224px;
  background: #000;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1;
}

.card-light .relative {
  position: relative;
  height: 224px;
  width: 100%;
  background: #000;
}

.card-light video::-webkit-media-controls {
  display: none !important;
}

.card-light video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Bouton play cliquable sur les cartes */
.card-light .group:hover a[href*="detail.html"] {
  pointer-events: auto !important;
  z-index: 20 !important;
}

.card-light .group:hover .absolute.inset-0.flex.items-center.justify-center {
  pointer-events: auto !important;
  z-index: 20 !important;
}
