/* assets/css/style.css */
:root {
    --mauve: #B79AC5;
    --noir: #1A1A1A;
    --or: #D4AF8C;
    --blanc-casse: #F9F7F5;
    --gris: #3E3E3E;
    --rose-pale: #FCE4EC;
    --charcoal: #2C2C2C;
    --font-titre: 'Playfair Display', serif;
    --font-texte: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texte);
    color: var(--noir);
    background-color: var(--blanc-casse);
    line-height: 1.6;
    overflow-x: hidden;
    top: 0 !important;
}

body > *:first-child {
    margin-top: 0 !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOP BAR – version desktop */
.top-bar {
    background: var(--noir);
    color: white;
    font-size: 0.8rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 50px;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left span {
    margin-right: 25px;
    color: white;
}

.top-bar-left i {
    margin-right: 6px;
    color: var(--or);
}

.top-bar-right {
    display: flex;
    align-items: center;
}

/* ---------- BOUTON DE TRADUCTION ET MENU CUSTOM ---------- */
.translate-container {
    position: relative;
    display: inline-block;
}

.translate-circle {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--noir);
    font-size: 1rem;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.translate-circle:hover {
    background: var(--or);
    color: white;
    transform: scale(1.05);
}

.translate-circle i {
    font-size: 1.1rem;
}

.translate-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 160px;
    z-index: 10000;
    list-style: none;
    margin: 0;
    border: none;
}

.translate-menu li {
    padding: 10px 20px;
    font-family: var(--font-texte);
    font-size: 0.85rem;
    color: var(--noir);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.translate-menu li:hover {
    background: var(--rose-pale);
    color: var(--mauve);
}

#google_translate_element {
    display: none;
}

/* ----- HEADER ----- */
.site-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--or);
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.main-nav .nav-list a {
    padding: 10px 0;
    position: relative;
}

.main-nav .nav-list a:hover {
    color: var(--mauve);
}

.has-megamenu {
    position: static;
}

.megamenu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
}

.megamenu-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.megamenu-header {
    margin-bottom: 30px;
}

.megamenu-title {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--mauve);
    font-weight: 600;
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.megamenu-col h4 {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rose-pale);
    padding-bottom: 10px;
}

.megamenu-col ul {
    list-style: none;
}

.megamenu-col li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.product-thumb {
    width: 40px;
    height: 56px;
    overflow: hidden;
    border-radius: 5px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-right a {
    font-size: 1.2rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--mauve);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--noir);
    transition: 0.2s;
}

/* ----- HERO ----- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blanc-casse), #EAD5E6);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: var(--font-titre);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--noir);
    line-height: 1.2;
}

.hero-brand {
    color: var(--or);
    font-weight: 700;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-png {
    max-width: 110%;
    transform: scale(1.1);
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05));
}

/* ----- SECTION HEADER ----- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--mauve);
}

.section-subtitle {
    font-family: var(--font-texte);
    font-size: 1rem;
    color: var(--gris);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
}

/* ----- CARROUSEL COLLECTIONS ----- */
.collections-carousel {
    padding: 80px 0;
}

.carousel-wrapper {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.carousel-slide {
    flex: 0 0 240px;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}

/* ----- SAVOIR-FAIRE ----- */
.savoir-faire {
    background: white;
    padding: 60px 0;
}

.texture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
}

.texture-item img {
    max-width: 120px;
    margin: 0 auto 20px;
}

.texture-item h3 {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ----- BANNER PROMO ----- */
.banner-promo {
    width: 100%;
    padding: 60px 0;
    background: var(--blanc-casse);
}

.banner-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-title {
    font-family: var(--font-titre);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.banner-btn {
    display: inline-block;
    background: white;
    color: var(--noir);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}

/* ----- SHOP BY COLOR – portraits 280px ----- */
.color-filter-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    margin-top: 15px;
}

.color-filter-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.color-featured {
    flex: 0 0 55%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.color-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-portraits-carousel {
    flex: 0 0 40%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.color-portraits-carousel::-webkit-scrollbar {
    display: none;
}

.portraits-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.portrait-item {
    flex: 0 0 280px;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.portrait-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.color-swatch {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--noir);
}

.color-swatch:hover {
    border-color: var(--mauve);
    background: var(--rose-pale);
}

.color-swatch.active {
    background: var(--mauve);
    color: white;
    border-color: var(--mauve);
}

.color-gender-toggle {
    display: flex;
    gap: 20px;
}

.color-gender-toggle button {
    padding: 8px 25px;
    border: 1px solid var(--mauve);
    background: transparent;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.color-gender-toggle button.active {
    background: var(--mauve);
    color: white;
}

.color-shop-link a {
    color: var(--mauve);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.color-shop-link a:hover {
    border-bottom-color: var(--mauve);
}

/* ----- FOOTER (version identique à women.css) ----- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.9);
    padding: 60px 0 30px;
    position: relative;
}

.footer-gold-separator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--or), var(--mauve), var(--or));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-text {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--or);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 25px;
    font-style: italic;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 5px;
    margin-bottom: 8px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 0;
    flex: 1;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--or);
    cursor: pointer;
    font-size: 1.2rem;
}

.newsletter-note {
    font-size: 0.7rem;
    opacity: 0.6;
}

.footer-col h4 {
    font-family: var(--font-titre);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--or);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--or);
    padding-left: 5px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.social-icons a {
    color: rgba(255,255,255,0.8);
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--or);
    transform: translateY(-3px);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--or);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ---------- NOUVELLES RÈGLES : MASQUAGE COMPLET DU MESSAGE GOOGLE TRANSLATE ---------- */
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-gadget-simple,
.goog-te-gadget-icon,
.goog-te-gadget,
.skiptranslate,
iframe[src*="translate.google.com"],
#goog-gt-tt,
.goog-te-balloon-frame,
div[class*="goog-te"],
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ----- RESPONSIVE MOBILE FIRST (identique à women.css) ----- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-png {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .color-filter-layout {
        flex-direction: column;
    }
    
    .color-featured {
        flex: auto;
        width: 100%;
    }
    
    .color-portraits-carousel {
        flex: auto;
        width: 100%;
    }
    
    .portrait-item {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-png {
        max-width: 70%;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-image {
        aspect-ratio: 16/10;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .color-filter-section {
        padding: 60px 0;
    }
    
    .portrait-item {
        flex: 0 0 220px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .payment-icons {
        font-size: 1.8rem;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .footer-col ul {
        margin-bottom: 10px;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-png {
        max-width: 90%;
    }
    
    .banner-title {
        font-size: 1.3rem;
        bottom: 20px;
    }
    
    .banner-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .portrait-item {
        flex: 0 0 200px;
    }
    
    .color-swatch {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .color-gender-toggle button {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .payment-icons {
        font-size: 1.6rem;
        gap: 10px;
    }
    
    .footer-contact p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .hero-png {
        max-width: 100%;
    }
    
    .banner-title {
        font-size: 1.1rem;
    }
    
    .portrait-item {
        flex: 0 0 180px;
    }
    
    .payment-icons {
        font-size: 1.4rem;
    }
}

/* Correction spécifique pour le PNG dans le banner */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-png {
        max-width: 85%;
        transform: scale(1);
    }
}

/* Ajustement pour très petits écrans */
@media (max-width: 360px) {
    .hero-png {
        max-width: 95%;
    }
    
    .banner-title {
        font-size: 1rem;
        bottom: 15px;
    }
}