@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fadeIn {
    animation: fadeIn 1s ease-out;
  }

  .animate-slideUp {
    animation: slideUp 0.8s ease-out forwards;
  }

  .animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
  }

  .animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
  }
}

:root {
  --gold: #D4AF37;
  --gold-light: #E8D5A3;
  --gold-dark: #B8962A;
  --white: #FFFFFF;
  --off-white: #FDFBF7;
  --dark: #2C2C2C;
  --gray: #6B6B6B;
}

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

body {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  background-color: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-italiana), 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== BLOG STYLES ===== */

/* Hero blog - plein écran */
.blog-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Motif décoratif en arrière-plan */
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .blog-hero-title {
    font-size: 3.5rem;
  }
}

.blog-hero-divider {
  width: 60px;
  height: 2px;
  background: #D4AF37;
  margin: 1rem auto;
}

.blog-hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .blog-hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Flèche de scroll (optionnelle) */
.blog-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
}

.blog-hero-scroll svg {
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

.blog-hero-scroll:hover svg,
.blog-hero-scroll:focus-visible svg {
  color: #D4AF37;
}

.blog-hero-scroll:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 6px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Carte article */
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: rgba(212, 175, 55, 0.05);
}

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

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 0.875rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #aaa;
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}

.blog-card-date svg {
  width: 10px;
  height: 10px;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  color: #888;
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f5f5f5;
}

.blog-card-link span {
  color: #D4AF37;
  font-size: 0.65rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-link span svg {
  width: 10px;
  height: 10px;
}

/* Grille blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}


/* Section blog */
.blog-section {
  padding: 3rem 0;
  background-color: #FDFBF7;
}

.nav-link {
  color: rgba(13, 13, 13, 0.5);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-link:hover {
  color: #D4AF37;
}

.nav-link-mobile {
  color: rgba(13, 13, 13, 0.5);
  font-weight: 500;
  font-size: 0.8rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-link-mobile:hover {
  color: #D4AF37;
}

.desktop-nav {
          display: flex;
          gap: 1.5rem;
        }
        .mobile-toggle {
          display: none;
        }
        @media (max-width: 767px) {
          .desktop-nav {
            display: none !important;
          }
          .mobile-toggle {
            display: block !important;
          }
        }

        
