/* assets/css/men.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;
}

/* ----- RESET SUPPLEMENTAIRE POUR MOBILE ----- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ----- HERO BANNER (TEXTE NOIR, IMAGE INTÉGRALE) ----- */
.men-hero {
    width: 100%;
    margin: 0;
    padding: 0;
}
.hero-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000000;
    text-shadow: 0 2px 12px rgba(255,255,255,0.5);
    width: 90%;
    max-width: 900px;
}
.hero-text-overlay h1 {
    font-family: var(--font-titre);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero-text-overlay p {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ----- COLLECTIONS ----- */
.men-collections {
    padding: 80px 0;
    background: white;
    width: 100%;
}
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}
.collection-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(183, 154, 197, 0.1);
}
.collection-card .card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}
.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.collection-card:hover img {
    transform: scale(1.05);
}
.collection-names {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-family: var(--font-titre);
    font-size: 1.3rem;
    color: var(--noir);
}
.collection-name {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

/* ----- PRODUCTS CAROUSEL – natural scroll, no bars/arrows ----- */
.men-products-carousel {
    padding: 80px 0;
    background: var(--blanc-casse);
    width: 100%;
}
.products-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 40px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.products-scroll-container::-webkit-scrollbar {
    display: none;
}
.products-scroll-track {
    display: flex;
    gap: 25px;
    width: max-content;
}
.product-card {
    flex: 0 0 260px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s;
}
.product-card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}
.product-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.product-card h4 {
    font-family: var(--font-texte);
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 15px 5px;
    color: var(--noir);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    margin: 0 15px 15px;
    font-weight: 600;
    color: var(--mauve);
    font-size: 1.1rem;
}
.add-to-cart-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 20px;
    padding: 12px 0;
    background: var(--noir);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    min-height: 45px;
}
.add-to-cart-btn:hover {
    background: var(--mauve);
    color: white;
}

/* ----- VIDEO BANNER – standalone section ----- */
.men-video-banner {
    width: 100%;
    padding: 0;
    background: black;
}
.video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}
#men-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    z-index: 20;
    width: 90%;
    max-width: 800px;
}
.video-overlay-content h3 {
    font-family: var(--font-titre);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.video-overlay-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}
.video-cta-btn {
    display: inline-block;
    background: white;
    color: var(--noir);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.video-cta-btn:hover {
    background: var(--mauve);
    color: white;
    transform: scale(1.05);
}
.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 30;
}
.volume-btn {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: 0.2s;
}
.volume-btn:hover {
    background: var(--mauve);
    transform: scale(1.1);
}

/* ----- INTERACTIVE COLORS – portraits size 260px ----- */
.men-colors-interactive {
    padding: 80px 0;
    background: white;
    width: 100%;
}
.color-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.color-filter-circles {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.color-circle.active {
    border-color: var(--noir);
    transform: scale(1.1);
}
.color-circle:hover {
    transform: scale(1.1);
}
.color-showcase-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.color-landscape {
    flex: 0 0 55%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.color-landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.color-portraits-scroll {
    flex: 0 0 40%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}
.color-portraits-scroll::-webkit-scrollbar {
    display: none;
}
.portraits-track {
    display: flex;
    gap: 20px;
    width: max-content;
}
.portrait-item {
    flex: 0 0 260px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}
.portrait-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.portrait-info {
    padding: 15px 12px;
}
.portrait-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--noir);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portrait-price {
    font-weight: 600;
    color: var(--mauve);
    font-size: 1rem;
}
.color-shop-link {
    text-align: center;
    margin-top: 30px;
}
.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);
}

/* ----- RESPONSIVE MOBILE – CORRECTIONS SPÉCIFIQUES ----- */
@media (max-width: 1024px) {
    .hero-text-overlay h1 { font-size: 2.8rem; }
    .hero-text-overlay p { font-size: 1.2rem; }
    .collections-grid { grid-template-columns: repeat(2, 1fr); }
    .collection-names { font-size: 1.1rem; }
    .color-showcase-layout { flex-direction: column; }
    .color-landscape { flex: auto; width: 100%; }
    .color-portraits-scroll { flex: auto; width: 100%; }
    .portrait-item { flex: 0 0 220px; }
}

@media (max-width: 768px) {
    /* Conteneur principal en pleine largeur */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Hero banner : image intégrale, police réduite et centrée */
    .hero-image-container {
        height: auto;
    }
    .hero-text-overlay {
        width: 95%;
    }
    .hero-text-overlay h1 {
        font-size: 1.5rem; /* réduit pour mobile */
        margin-bottom: 8px;
        line-height: 1.2;
    }
    .hero-text-overlay p {
        font-size: 0.75rem; /* réduit pour mobile */
        line-height: 1.3;
    }

    /* Collections */
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .collection-names {
        font-size: 1rem;
        flex-direction: row;
        justify-content: space-around;
    }

    /* Section header : espacement pour éviter que la barre touche le sous-titre */
    .section-header {
        margin-bottom: 30px;
    }
    .section-title {
        margin-bottom: 10px;
    }
    .section-title::after {
        bottom: -8px;
    }
    .section-subtitle {
        display: block;
        margin-top: 8px;
        font-size: 0.9rem;
    }

    /* Produits : largeur augmentée */
    .product-card {
        flex: 0 0 240px;
    }
    .add-to-cart-btn {
        min-height: 42px;
        font-size: 0.75rem;
    }

    /* Vidéo */
    .video-container {
        height: 60vh;
    }
    .video-overlay-content h3 {
        font-size: 2.2rem;
    }
    .video-overlay-content p {
        font-size: 1.1rem;
    }
    .video-cta-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }

    /* Couleurs */
    .color-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .color-filter-circles {
        gap: 12px;
        margin-bottom: 20px;
    }
    .color-circle {
        width: 38px;
        height: 38px;
    }
    .portrait-item {
        flex: 0 0 220px;
    }

    /* Footer */
    .site-footer .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) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Hero banner : police encore plus réduite */
    .hero-text-overlay h1 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    .hero-text-overlay p {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    /* Collections */
    .collection-names {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    /* Produits : largeur encore augmentée */
    .product-card {
        flex: 0 0 220px;
    }
    .product-card h4 {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .add-to-cart-btn {
        min-height: 40px;
        font-size: 0.7rem;
        padding: 8px 0;
        width: calc(100% - 20px);
        margin: 0 10px 15px;
    }

    /* Vidéo */
    .video-container {
        height: 50vh;
    }
    .video-overlay-content h3 {
        font-size: 1.8rem;
    }
    .video-overlay-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .video-cta-btn {
        padding: 10px 24px;
        font-size: 0.75rem;
    }
    .volume-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    /* Couleurs */
    .portrait-item {
        flex: 0 0 200px;
    }
    .color-filter-circles {
        gap: 10px;
    }
    .color-circle {
        width: 35px;
        height: 35px;
    }
    .portrait-info {
        padding: 12px 10px;
    }
    .portrait-title {
        font-size: 0.9rem;
    }
    .portrait-price {
        font-size: 0.9rem;
    }

    /* Footer */
    .payment-icons {
        font-size: 1.6rem;
        gap: 10px;
    }
    .footer-contact p {
        font-size: 0.8rem;
    }
}

/* Pour les très petits écrans (moins de 400px) */
@media (max-width: 400px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-text-overlay h1 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    .hero-text-overlay p {
        font-size: 0.55rem;
        line-height: 1.1;
    }

    .product-card {
        flex: 0 0 200px;
    }

    .video-overlay-content h3 {
        font-size: 1.5rem;
    }
    .video-overlay-content p {
        font-size: 0.8rem;
    }

    .portrait-item {
        flex: 0 0 180px;
    }
    .color-circle {
        width: 32px;
        height: 32px;
    }

    .payment-icons {
        font-size: 1.4rem;
    }
}