/**
 * PAGE D'ACCUEIL MODERNE
 * Styles spécifiques pour index-modern.html
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO MINIMALISTE
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-16);
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #000000 100%, #1f1f1f 50%);
}

.gradient-texte {
    background: linear-gradient(135deg, #ffffff 0%, #b27710 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
  }
}

/* Hero content */
.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.hero-title {
  color: #FFFFFF;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: var(--space-6) 0 var(--space-4);
  font-weight: 700;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-8);
  color: var(--gray-700);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.stat {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.stat-info strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.stat-info span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Hero visual */
.hero-visual {
  position: relative;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.floating-card {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.6s ease-out 1s both;
  z-index: 2;
}

.floating-card > i {
  color: var(--accent);
}

.floating-card strong {
  display: block;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.floating-card span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}




/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: var(--space-4) var(--space-6);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.notification.error {
  background: #EF4444;
}

.notification.success {
  background: #10B981;
}

.notification.warning {
  background: #F59E0B;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .section-nav {
    align-self: flex-start;
  }
  
  .newsletter-content {
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOOGLE TRANSLATE OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

.goog-te-banner-frame {
  display: none !important;
}

.goog-te-menu-value {
  color: var(--text-primary) !important;
}

.goog-te-menu-value span:first-child {
  color: var(--text-primary) !important;
}

.skiptranslate {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */

.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 {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VALUES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.values {
  background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.products {
  background: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }
  
  .section-header {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .section-nav {
    align-self: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLES DES CARTES PRODUITS (comme vins.css)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grille de produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

/* Carte produit (style unifié comme vins.css) */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Image container */
.product-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  content-visibility: auto;
}

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

/* Badge type */
.product-type-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Infos du produit */
.product-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.product-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.product-name {
  min-height: 2em;
  max-height: 2em;
}

.product-description {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.product-meta-item i {
  color: var(--accent);
}

.product-footer {
  margin-top: auto;
  min-height: 56px;
}

.product-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
  font-size: 0.875rem;
}

.product-rating i {
  color: #fbbf24;
}

.product-rating span {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Bouton wishlist */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
}

.wishlist-btn:hover {
  background: white;
  transform: scale(1.1);
}

.wishlist-btn i {
  color: var(--text-primary);
}

/* Badges produit */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  color: white;
}

/* Couleurs des badges (correspondant au BADGE_CONFIG) */
.badge-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.badge-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.badge-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.badge-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.badge-info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }

/* Score Parker (pour les vins) */
.parker-score {
  position: absolute;
  top: 12px;
  right: 60px;
  background: rgba(139, 69, 19, 0.95);
  color: #ffd700;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Bouton Ajouter */
.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--text-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-add-to-cart:active {
  transform: scale(0.95);
}

.btn-add-to-cart:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}



/* Animation pour les cartes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
  }
  
  .product-image {
    height: 250px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: var(--space-4) var(--space-6);
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.notification.error {
  background: #EF4444;
}

.notification.success {
  background: #10B981;
}

.notification.warning {
  background: #F59E0B;
}

.notification.info {
  background: var(--primary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}