/*
=================================================
RHODE SKIN LANDING PAGE STYLES
Landing page spécialement inspirée de Rhode Skin
=================================================
*/

/* ========================================
   LAYOUT SPECIFIQUE LANDING PAGE
========================================= */

/* Annuler le padding des containers dans hero et catégories */
.hero-rhode-fullscreen .container,
.category-nav-rhode .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Variables CSS additionnelles pour le landing Rhode */
:root {
  /* Couleurs Rhode spécifiques */
  --rhode-yellow: #F4D03F;
  --rhode-yellow-light: #F8C471;
  --rhode-neutral-light: #FAF9F6;
  --rhode-text-overlay: rgba(255, 255, 255, 0.95);
  
  /* Ombres Rhode */
  --rhode-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --rhode-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* Bordures Rhode */
  --rhode-border: #E8E8E8;
}

/* Hero Section Rhode Style - Full Screen */
.hero-rhode-fullscreen {
  height: 70vh;
  background: linear-gradient(135deg, var(--rhode-yellow) 0%, var(--rhode-yellow-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-rhode {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay-rhode {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.hero-content-center-rhode {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 0 2rem;
}

.hero-main-title-rhode {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Category Navigation Rhode Style */
.category-nav-rhode {
  background: var(--rhode-white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--rhode-border);
}

.category-buttons-rhode {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.category-btn-rhode {
  background: transparent;
  border: 1px solid var(--rhode-border);
  color: var(--rhode-black);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
}

.category-btn-rhode:hover,
.category-btn-rhode.active {
  background: var(--rhode-black);
  color: var(--rhode-white);
  border-color: var(--rhode-black);
  text-decoration: none;
}

/* Product Cards Style */
.product-card-rhode-new {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}

.product-card-rhode-new:hover {
    transform: none;
    box-shadow: none;
}

.product-image-wrapper-rhode-new {
    position: relative;
    width: 100%;
    padding-bottom: 116.16%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}

.product-image-wrapper-rhode-new img,
.product-image-wrapper-rhode-new .image-placeholder-rhode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: opacity 0.8s ease-in-out;
}

/* Image hover effect */
.product-image-wrapper-rhode-new .product-image-hover {
    opacity: 0;
    z-index: 2;
}

.product-image-wrapper-rhode-new .product-image-main {
    opacity: 1;
    z-index: 1;
}

/* Bouton d'achat au hover */
.product-buy-button-hover {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rhode-black);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.product-card-rhode-new:hover .product-image-hover {
    opacity: 1;
}

.product-card-rhode-new:hover .product-image-main {
    opacity: 0;
}

.product-card-rhode-new:hover .product-buy-button-hover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-buy-button-hover:hover {
    background: var(--rhode-gray-dark);
    color: white;
    text-decoration: none;
    transform: translateX(-50%) translateY(-2px);
}

.product-badge-rhode-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rhode-black);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    z-index: 2;
}

.product-info-rhode-new {
    padding: 16px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}

.product-rating-rhode-new {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-stars-rhode-new {
    display: flex;
    gap: 2px;
}

.product-stars-rhode-new .star {
    color: #000;
    font-size: 12px;
}

.product-reviews-count-rhode-new {
    font-size: 12px;
    color: var(--rhode-gray-medium);
    margin-left: 4px;
}

.product-title-rhode-new {
    font-family: var(--rhode-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--rhode-black);
    margin-bottom: 4px;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.product-subtitle-rhode-new {
    font-size: 12px;
    color: var(--rhode-gray-medium);
    margin-bottom: 12px;
    line-height: 1.3;
    flex-grow: 1;
}

.product-price-rhode-new {
    font-size: 16px;
    font-weight: 400;
    color: var(--rhode-black);
    margin-bottom: 0;
}

.product-cta-rhode-new {
    display: none;
}

.product-cta-rhode-new:hover {
    background: var(--rhode-gray-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Large product cards (first row) */
@media (min-width: 992px) {
    .col-lg-6 .product-card-rhode-new {
        margin-bottom: 40px;
    }
    
    .col-lg-6 .product-image-wrapper-rhode-new {
        padding-bottom: 120%;
    }
    
    .col-lg-6 .product-title-rhode-new {
        font-size: 16px;
    }
    
    .col-lg-6 .product-subtitle-rhode-new {
        font-size: 14px;
    }
    
    .col-lg-6 .product-price-rhode-new {
        font-size: 18px;
    }
    
    .col-lg-6 .product-info-rhode-new {
        padding: 20px 0;
        min-height: 140px;
    }
}

/* Grid cards - 2 per row like Rhode Skin */
.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-card-rhode-new {
    margin-bottom: 40px;
}

.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-image-wrapper-rhode-new {
    padding-bottom: 116.16%;
}

.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-title-rhode-new {
    font-size: 16px;
}

.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-subtitle-rhode-new {
    font-size: 13px;
}

.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-price-rhode-new {
    font-size: 16px;
}

.col-lg-6:not(.col-lg-6:first-child):not(.col-lg-6:nth-child(2)) .product-info-rhode-new {
    padding: 18px 0;
    min-height: 130px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card-rhode-new {
        margin-bottom: 30px;
    }
    
    .product-image-wrapper-rhode-new {
        padding-bottom: 116.16%;
    }
    
    .product-title-rhode-new {
        font-size: 13px;
    }
    
    .product-subtitle-rhode-new {
        font-size: 11px;
    }
    
    .product-price-rhode-new {
        font-size: 15px;
    }
}

/* Large Logo Typography pour Footer */
.footer-logo-rhode {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: var(--rhode-black);
  margin-bottom: 0;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: lowercase;
}

/* Newsletter Rhode Style */
.newsletter-rhode-landing {
  background: var(--rhode-cream);
  padding: 4rem 0;
}

.newsletter-title-rhode-big {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--rhode-black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-rhode-fullscreen {
    height: 60vh;
  }
  
  .hero-main-title-rhode {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content-center-rhode {
    padding: 0 1rem;
  }
  
  .category-buttons-rhode {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .category-buttons-rhode::-webkit-scrollbar {
    display: none;
  }
  
  .category-btn-rhode {
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .product-info-rhode-new {
    padding: 1rem 0.8rem;
  }
  
  .product-title-rhode-new {
    font-size: 1rem;
  }
  
  .product-subtitle-rhode-new {
    font-size: 0.8rem;
  }
  
  .product-cta-rhode-new {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-rhode-fullscreen {
    height: 50vh;
  }
  
  .hero-main-title-rhode {
    font-size: 2rem;
  }
  
  .category-nav-rhode {
    padding: 1.5rem 0;
  }
  
  .product-card-rhode-new {
    margin-bottom: 1rem;
  }
}

/* Animation pour les éléments */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-rhode-new {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card-rhode-new:nth-child(odd) {
  animation-delay: 0.1s;
}

.product-card-rhode-new:nth-child(even) {
  animation-delay: 0.2s;
}

/* États de chargement */
.product-card-rhode-new.loading {
  opacity: 0.7;
  pointer-events: none;
}

.product-card-rhode-new.loading .product-image-wrapper-rhode-new {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* États hover spéciaux */
.product-card-rhode-new:hover .product-image-rhode {
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

/* Focus states pour l'accessibilité */
.category-btn-rhode:focus,
.product-cta-rhode-new:focus {
  outline: 2px solid var(--rhode-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
  .hero-rhode-fullscreen {
    page-break-after: always;
  }
  
  .category-nav-rhode {
    display: none;
  }
  
  .product-card-rhode-new {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .product-card-rhode-new {
    border: 2px solid var(--rhode-black);
  }
  
  .category-btn-rhode {
    border: 2px solid var(--rhode-black);
  }
  
  .product-cta-rhode-new {
    border: 2px solid var(--rhode-black);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-card-rhode-new,
  .product-card-rhode-new:hover,
  .product-cta-rhode-new:hover {
    animation: none;
    transform: none;
    transition: none;
  }
}

/* Grid Layout amélioré */
.products-grid-rhode-landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .products-grid-rhode-landing {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .products-grid-rhode-landing {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
