/**
 * Jimee Cosmetics — Homepage styles
 * (populated in Phase 3)
 */

/* ========== HERO SLIDER ========== */
.hero-wrapper { padding: 16px 32px 24px; max-width: 1440px; margin: 0 auto; }
.hero {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    height: 75vh; min-height: 500px; max-height: 720px;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity .8s ease;
    display: flex; align-items: center; padding: 60px 64px;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C0 40%, #D4C4AF 100%); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #2C1810 0%, #4A2C20 50%, #6B3A2E 100%); color: var(--white); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #F0E0E8 0%, #E8C8D8 40%, #D4A0B8 100%); }
.hero-content { max-width: 520px; position: relative; z-index: 2; }
.hero-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 16px; opacity: .7;
}
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 300; line-height: 1.1; margin-bottom: 20px; }
.hero-title em { font-style: italic; font-weight: 700; }
.hero-desc { font-size: 15px; font-weight: 300; line-height: 1.6; opacity: .7; margin-bottom: 28px; max-width: 400px; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-pill);
    background: var(--black); color: var(--white);
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.hero-slide:nth-child(2) .hero-cta { background: var(--white); color: var(--black); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-cta svg { width: 18px; height: 18px; transition: var(--transition); }
.hero-cta:hover svg { transform: translateX(4px); }

/* Hero floating image */
.hero-image {
    position: absolute; right: 40px; bottom: 0;
    width: 45%; height: 90%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}
.hero-slide:nth-child(1) .hero-image {
    background: url('../img/serum-goutte-pipette-soin-visage.jpg') center/cover no-repeat;
}
.hero-slide:nth-child(2) .hero-image {
    background: url('../img/caudalie-vinoperfect-serum-eclat.jpg') center/cover no-repeat;
}
.hero-slide:nth-child(3) .hero-image {
    background: url('../img/rare-beauty-collection-maquillage.jpg') center/cover no-repeat;
}

.hero-dots {
    position: absolute; bottom: 24px; left: 64px; z-index: 2;
    display: flex; gap: 10px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(0,0,0,.2); transition: var(--transition); cursor: pointer;
}
.hero-dot.active { background: var(--black); width: 28px; border-radius: 5px; }
.hero-slide:nth-child(2) ~ .hero-dots .hero-dot { background: rgba(255,255,255,.3); }

/* Hero navigation arrows (discreet — révélées au survol, masquées sur mobile) */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.55);
    color: var(--black); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; opacity: 0; transition: opacity .25s ease, background .25s ease, transform .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { background: rgba(255,255,255,.85); transform: translateY(-50%) scale(1.05); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero:hover .hero-arrow { opacity: .55; }
.hero:hover .hero-arrow:hover { opacity: 1; }
/* Masquées sur tactile / mobile — navigation au swipe + dots */
@media (hover: none) {
    .hero-arrow { display: none; }
}

/* ========== SECTIONS ========== */
.section {
    padding: 56px 32px; max-width: 1440px; margin: 0 auto;
}
.section-header {
    text-align: center; margin-bottom: 40px;
}
.section-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 300; line-height: 1.2; }
.section-title em { font-style: italic; font-weight: 600; }
.section-link {
    font-size: 13px; font-weight: 500; color: #999;
    display: inline-flex; align-items: center; gap: 4px; transition: var(--transition);
}
.section-link:hover { color: var(--black); gap: 8px; }
.section-link svg { width: 16px; height: 16px; }

/* ========== CATEGORY SLIDER (scroll horizontal manuel + fade edges) ========== */
.categories-wrapper {
    position: relative;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.categories-wrapper::-webkit-scrollbar { display: none; }
.categories-track {
    display: flex; gap: 32px; width: max-content;
    padding: 4px 24px;
}
.category-circle {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex-shrink: 0; cursor: pointer; transition: var(--transition);
}
.category-circle:hover { transform: translateY(-4px); }
.category-circle-img {
    width: 140px; height: 140px; border-radius: var(--radius-xl);
    background: var(--warm-bg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    margin-bottom: 4px;
}
.category-circle:hover .category-circle-img { box-shadow: var(--shadow-lg); }
.category-circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-circle:hover .category-circle-img img { transform: scale(1.08); }
.category-circle-name { font-size: 13px; font-weight: 500; text-align: center; }

@media (max-width: 768px) {
    .category-circle-img { width: 100px; height: 100px; }
    .categories-track { gap: 20px; padding: 4px 16px; }
    .category-circle-name { font-size: 12px; }
}

/* ========== FILTER TABS ========== */
.filter-tabs {
    display: flex; gap: 8px; margin-bottom: 32px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    padding: 8px 20px; border-radius: var(--radius-pill);
    background: var(--warm-bg); font-size: 13px; font-weight: 500;
    transition: var(--transition); cursor: pointer; border: none;
    white-space: nowrap; flex-shrink: 0;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--black); color: var(--white);
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    border-radius: var(--radius-xl); color: var(--white);
    background: var(--bordeaux);
    padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.promo-banner::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
    background: url('../img/rare-beauty-collection-maquillage.jpg') center / cover no-repeat;
}
.promo-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--bordeaux) 35%, rgba(139,0,0,.4) 100%);
}
.promo-banner * { position: relative; z-index: 2; }
.promo-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.promo-title-hp { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.promo-desc-hp { font-size: 15px; font-weight: 300; opacity: .7; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.promo-cta-hp {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-pill);
    background: var(--white); color: var(--black);
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.promo-cta-hp:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.15); }

/* ========== BRANDS SLIDER ========== */
.brands-slider {
    display: flex; gap: 20px; overflow-x: auto; padding: 0 0 16px;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-card {
    flex-shrink: 0; width: 280px;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: var(--warm-bg);
    border-radius: var(--radius-lg); cursor: pointer;
    transition: var(--transition); scroll-snap-align: start;
    text-decoration: none; color: var(--black);
}
.brand-card:hover {
    background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.brand-card-img {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: var(--radius-md); overflow: hidden;
    background: #eee;
}
.brand-card-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-card-initials {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--black); border: none;
    border-radius: var(--radius-md);
    font-size: 20px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--white); text-align: center;
    line-height: 1;
}
.brand-card-info { flex: 1; min-width: 0; }
.brand-card-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.brand-card-desc {
    font-size: 11px; font-weight: 300; color: #777; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.brand-card-link {
    font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.brand-card:hover .brand-card-link { gap: 8px; }
.brand-card-link svg { width: 12px; height: 12px; }

/* ========== DOUBLE BANNER ========== */
.double-banner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    padding: 24px 32px; max-width: 1440px; margin: 0 auto;
}
.double-card {
    border-radius: var(--radius-xl); padding: 48px 40px; min-height: 360px;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden; transition: var(--transition);
}
.double-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.double-card:first-child { background: linear-gradient(160deg, #F5E6D3 0%, #E8D0B8 60%, #D4B898 100%); }
.double-card:last-child { background: linear-gradient(160deg, #E8D8E8 0%, #D4C0D8 60%, #C0A8C4 100%); }
.double-card-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.double-card-title { font-size: clamp(22px, 3vw, 32px); font-weight: 300; margin-bottom: 16px; line-height: 1.2; }
.double-card-title em { font-style: italic; font-weight: 600; }
.double-card-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-pill);
    background: var(--black); color: var(--white);
    font-size: 13px; font-weight: 500; transition: var(--transition); width: fit-content;
}
.double-card-cta:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-wrapper { padding: 16px; }
    .hero { height: auto; min-height: 0; max-height: none; }
    .hero-slide {
        flex-direction: column; align-items: flex-start; justify-content: flex-end;
        padding: 32px 28px; position: absolute; inset: 0;
    }
    .hero-slides { height: 520px; }
    .hero-content { max-width: 100%; padding-bottom: 40px; }
    .hero-image {
        position: absolute; top: 0; right: 0; bottom: 0;
        width: 55%; height: 100%;
        border-radius: 0;
        mask-image: linear-gradient(to left, rgba(0,0,0,.7) 0%, transparent 100%);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.7) 0%, transparent 100%);
    }
    .hero-dots { left: 28px; bottom: 20px; }
    .hero-desc { font-size: 14px; }
    .section { padding: 40px 16px; }
    .double-banner { grid-template-columns: 1fr; padding: 16px; }
    .promo-banner { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .hero-slides { height: 440px; }
    .hero-slide { padding: 24px 20px; }
    .hero-title { font-size: 28px; }
    .hero-dots { left: 20px; }
}
