/**
 * Pépitestyle - CSS principal
 * Design professionnel, féminin et luxueux
 */

/* Variables CSS */
:root {
    --primary-color: #f8b5c8;
    --secondary-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Main Navbar */
.main-navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    cursor: pointer;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.brand-slogan {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    color: var(--text-dark);
    margin-left: 20px;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cart-badge.animate-bounce {
    animation: bounceCart 0.6s ease;
}

@keyframes bounceCart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #f8b5c8 0%, #ff9eb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #ff9eb8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-apple {
    background-color: #000;
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-apple:hover {
    background-color: #333;
    color: white;
}

/* Features Section */
.features-section {
    background-color: white;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: var(--transition);
    opacity: 1 !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    opacity: 1 !important;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 1 !important;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* Category Cards */
.category-card {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 1 !important;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    opacity: 1 !important;
}

.category-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    opacity: 1 !important;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 1 !important;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.category-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-overlay p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    opacity: 1 !important;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.badge-sale {
    background-color: #ff4444;
    color: white;
}

.badge-new {
    background-color: #4CAF50;
    color: white;
    top: 50px;
}

.product-image {
    height: 300px;
    overflow: hidden;
    background-color: var(--bg-light);
    opacity: 1 !important;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 1 !important;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-title a {
    color: var(--text-dark);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 15px;
    margin-top: auto;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8b5c8 0%, #ffffff 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8b5c8, #ff9eb8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8b5c8 0%, #ff9eb8 100%);
    color: white;
}

.cta-box {
    padding: 50px;
    border-radius: 20px;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 20px;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.footer-slogan {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.newsletter-form .input-group {
    margin-top: 15px;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 20px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
}

.payment-methods i {
    font-size: 28px;
    margin-right: 10px;
    color: #666;
}

.footer-divider {
    border-color: #333;
    margin: 30px 0;
}

.copyright {
    color: #999;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.footer-legal li {
    display: inline-block;
    margin-left: 20px;
}

.footer-legal a {
    color: #999;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff9eb8;
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

/* Swiper customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Featured Products Swiper - Mobile */
.featured-products-swiper {
    padding-bottom: 50px;
}

.featured-products-swiper .swiper-pagination {
    bottom: 10px;
}

.featured-products-swiper .swiper-slide {
    height: auto;
}

.featured-products-swiper .product-card {
    height: 100%;
    margin: 0 5px;
}

/* Fix AOS animation opacity issue */
[data-aos].aos-animate,
[data-aos][data-aos].aos-animate {
    opacity: 1 !important;
    transform: translateZ(0) !important;
}

[data-aos] {
    pointer-events: auto !important;
}

.product-card,
.product-card .product-image,
.product-card .product-image img,
.product-card .product-info {
    opacity: 1 !important;
}

/* Ensure product cards are always fully visible */
.product-card[data-aos] {
    opacity: 1 !important;
}

.product-card[data-aos].aos-animate {
    opacity: 1 !important;
}

/* Toast Notifications Styling */
.toast {
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.toast-header {
    background-color: white;
    border-bottom: none;
    padding: 12px 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.toast-body {
    padding: 12px 15px;
    color: #333;
    background-color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.toast-icon {
    font-size: 18px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
}
