/* ============================================
   HOMEPAGE SPECIFIC STYLES
   Updated: 2024
   ============================================ */

/* Background blanc pour la page d'accueil */
.homepage-content {
    background-color: #ffffff;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .hero-section img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Badge styling */
.product-card .badge {
    font-family: 'MADE TOMMY', sans-serif;
}

/* ============================================
   SECTION VALENTINO - STYLES
   ============================================ */

.valentino-section-wrapper {
    width: 100%;
    padding: 40px 0;
}

/* Titre de la section Valentino */
.valentino-section-wrapper > h2 {
    margin: 0;
    margin-bottom: 3rem;
    padding-left: 168px;
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.07em;
    line-height: 30px;
    text-transform: uppercase;
    color: #1E1E1E;
    position: relative;
    z-index: 10;
    background-color: #ffffff;
}

/* ============================================
   SECTION TITLES - STYLES COMMUNS
   ============================================ */
.section-title {
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.07em;
    line-height: 30px;
    text-transform: uppercase;
    color: #1E1E1E;
    height: 34px;
    display: flex;
    align-items: center;
}

/* Titre Produits Inédits */
.inedit-section-title {
    margin: 0 !important;
    margin-bottom: 3rem !important;
    font-family: 'MADE TOMMY', sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    letter-spacing: 0.07em !important;
    line-height: 30px !important;
    text-transform: uppercase !important;
    color: #1E1E1E !important;
}

/* Grille principale 2 colonnes */
.valentino-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
}

/* Colonne gauche : Image (50% de la largeur) */
.valentino-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 800px;
    display: flex;
    align-items: flex-end;
}

.valentino-image-container a {
    display: block;
    height: 100%;
    width: 100%;
}

.valentino-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Colonne droite : Container flex pour produits et bouton */
.valentino-products-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 800px;
    justify-content: space-between;
    padding: 20px 40px 40px;
}

/* Grille produits - 2x2 carrée */
.valentino-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    row-gap: 80px;
    flex: 0 0 auto;
    min-height: 600px;
}

/* Product cards dans la section Valentino */
.valentino-products-grid .product-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Empêcher l'affichage des prix au survol dans la section Valentino */
.valentino-products-container .product-card .text-center p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Forcer l'affichage des prix pour tous les produits Valentino */
.valentino-products-grid .product-card .text-center p,
.valentino-products-grid .product-card p,
.valentino-products-container .product-card p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: #1E1E1E !important;
    position: relative;
    z-index: 2;
}

/* S'assurer que les prix sont toujours visibles, même sans hover */
.valentino-products-grid article.product-card p[style*="color"],
.valentino-products-grid article.product-card .text-center p,
.valentino-products-grid article.group .text-center p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

/* Override pour les classes Tailwind qui pourraient cacher les prix */
.valentino-products-grid .product-card.group p,
.valentino-products-grid .product-card.group .text-center p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

/* S'assurer que les text-center ne sont pas cachés */
.valentino-products-grid .product-card .text-center {
    position: relative;
    z-index: 2;
    background: transparent;
}
    z-index: 2;
}

/* S'assurer que les text-center ne sont pas cachés */
.valentino-products-grid .product-card .text-center {
    position: relative;
    z-index: 2;
    background: transparent;
}

.product-card .aspect-square {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .aspect-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Bouton voir collection */
.valentino-products-container .text-center.w-full {
    text-align: center;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 0;
    align-self: flex-end;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) {
    .valentino-section-wrapper {
        padding: 32px 0;
    }
    
    .valentino-section-wrapper > h2 {
        padding-left: 32px;
        margin-bottom: 2rem;
    }
    
    .valentino-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .valentino-products-grid .product-card {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .valentino-image-container {
        min-height: auto;
        height: auto;
        aspect-ratio: 16/9;
        max-height: 400px;
    }
    
    .valentino-products-container {
        min-height: auto;
        height: auto;
        padding: 32px;
    }
    
    .valentino-products-grid {
        gap: 16px;
        min-height: auto;
    }
    
    .valentino-products-container .text-center.w-full {
        margin-top: 40px;
    }
    
    .valentino-products-container .text-center h3 {
        font-size: 14px;
    }
    
    .valentino-products-container .text-center p {
        font-size: 12px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 768px)
   ============================================ */
@media (max-width: 767px) {
    .valentino-section-wrapper {
        padding: 24px 0;
    }
    
    .valentino-section-wrapper > h2 {
        padding-left: 16px !important;
        margin-bottom: 1.5rem;
        font-size: 14px;
        text-align: left !important;
    }
    
    .valentino-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .valentino-image-container {
        min-height: auto;
        height: auto;
        width: 100%;
        aspect-ratio: 4/5;
        max-height: 500px;
    }
    
    .valentino-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .valentino-products-container {
        min-height: auto;
        height: auto;
        padding: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .valentino-products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
        min-height: auto;
        order: 1;
    }
    
    .valentino-products-grid .product-card {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .valentino-products-grid .product-card .aspect-square {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    
    .valentino-products-grid .product-card .aspect-square img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .valentino-products-container .product-card .text-center {
        order: 2;
        margin-top: 8px;
    }
    
    .valentino-products-container .text-center h3 {
        font-size: 12px;
        letter-spacing: 0.08em;
        margin-bottom: 4px;
    }
    
    .valentino-products-container .text-center p {
        font-size: 11px;
        letter-spacing: 0.1em;
        margin: 0;
    }
    
    .valentino-products-container .text-center.w-full {
        margin-top: 24px;
        order: 3;
    }
    
    .valentino-products-container .text-center.w-full a {
        font-size: 10px;
        padding: 10px 16px;
        letter-spacing: 0.1em;
    }
    
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonials-carousel {
    max-width: 100%;
    overflow: hidden;
}

.testimonials-track {
    will-change: transform;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ============================================
   BRANDS CAROUSEL
   ============================================ */
.brands-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.brands-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    will-change: transform;
    transition: transform 0.5s ease-in-out;
}

.brands-track img {
    filter: none;
    width: 210px;
    height: 63px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.brands-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.brands-dot.active {
    background-color: #000 !important;
    width: 10px;
    height: 10px;
}

.brands-dot:not(.active) {
    background-color: #d1d5db;
}

.brands-dot:hover {
    transform: scale(1.2);
}

/* ============================================
   TYPOGRAPHY (MADE TOMMY)
   ============================================ */
h2, .section-title {
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 400;
    letter-spacing: 0.12em;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .categories-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.categories-section .container {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .categories-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.categories-section .aspect-4-5 {
    aspect-ratio: 4 / 5;
}

/* ============================================
   PRODUCTS GRID - INEDIT SECTION
   ============================================ */
.inedit-products-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .inedit-products-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.inedit-products-section .container {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .inedit-products-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.inedit-product-card {
    width: 100%;
}

.inedit-image-container {
    aspect-ratio: 354 / 372;
    width: 100%;
    position: relative;
}

.inedit-product-name {
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #1E1E1E;
    margin: 0;
    margin-bottom: 2px;
}

.inedit-product-price {
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.13em;
    color: #1E1E1E;
    margin: 0;
}

.inedit-products-section .grid {
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .inedit-products-section .grid {
        gap: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE - CATEGORIES SECTION
   ============================================ */
@media (max-width: 767px) {
    .categories-section {
        padding: 2rem 1rem;
    }
    
    .categories-section .section-title {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }
    
    .categories-section .grid {
        gap: 1rem;
    }
}

/* ============================================
   RESPONSIVE - INEDIT PRODUCTS SECTION
   ============================================ */
@media (max-width: 767px) {
    .inedit-products-section {
        padding: 2rem 0.5rem;
    }

    .inedit-section-title {
        font-size: 16px !important;
        margin-bottom: 1.5rem !important;
    }

    .inedit-products-section .grid {
        gap: 0.5rem;
    }

    /* Titre produit - specs: 11px, line-height 30px, letter-spacing 13% */
    .inedit-product-name {
        font-size: 11px !important;
        line-height: 30px !important;
        letter-spacing: 0.13em !important;
    }

    /* Prix produit - specs: 11px, line-height 30px, letter-spacing 13% */
    .inedit-product-price {
        font-size: 11px !important;
        line-height: 30px !important;
        letter-spacing: 0.13em !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .inedit-products-section {
        padding: 3rem 1rem;
    }
}

/* ============================================
   RESPONSIVE - HERO SECTION
   ============================================ */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .hero-section span {
        font-size: 0.75rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - PRODUCT CARDS MOBILE
   Specs: 11px, line-height 30px, letter-spacing 13%
   ============================================ */
@media (max-width: 640px) {
    .product-card h3 {
        font-size: 11px !important;
        line-height: 30px !important;
        letter-spacing: 0.13em !important;
    }

    .product-card p {
        font-size: 11px !important;
        line-height: 30px !important;
        letter-spacing: 0.13em !important;
    }
}

