/**
 * DressingFlow - Branding & Custom Styles
 * Version: 1.0.1
 * Compatible avec Hostinger, WordPress, Astra et Elementor
 */

/* === HERO SECTIONS === */
.df-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--df-gradient);
    overflow: hidden;
}

.df-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.3;
}

.df-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--df-white);
    padding: 40px 20px;
}

.df-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.df-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
}

.df-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .df-hero {
        min-height: 400px;
    }
    
    .df-hero-title {
        font-size: 2rem;
    }
    
    .df-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* === CATEGORY CARDS === */
.df-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.df-category-card {
    position: relative;
    border-radius: var(--df-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--df-transition);
    box-shadow: var(--df-shadow);
    height: 300px;
}

.df-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--df-shadow-hover);
}

.df-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--df-transition);
}

.df-category-card:hover img {
    transform: scale(1.1);
}

.df-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.df-category-title {
    color: var(--df-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* === PRODUCT GRID === */
.df-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.df-product-card {
    background: var(--df-white);
    border-radius: var(--df-border-radius);
    overflow: hidden;
    transition: var(--df-transition);
    box-shadow: var(--df-shadow);
    position: relative;
}

.df-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--df-shadow-hover);
}

.df-product-image {
    position: relative;
    overflow: hidden;
    padding-top: 125%;
}

.df-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--df-transition);
}

.df-product-card:hover .df-product-image img {
    transform: scale(1.05);
}

.df-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--df-gradient);
    color: var(--df-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.df-product-info {
    padding: 20px;
}

.df-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--df-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.df-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.df-product-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--df-primary);
}

.df-product-price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.df-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--df-warning);
}

/* === PROMOTIONAL BANNERS === */
.df-promo-banner {
    background: var(--df-gradient);
    border-radius: var(--df-border-radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--df-white);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.df-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.df-promo-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.df-promo-content {
    position: relative;
    z-index: 2;
}

.df-promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.df-promo-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* === VENDOR REGISTRATION === */
.df-vendor-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--df-white);
    padding: 40px;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow);
}

.df-form-group {
    margin-bottom: 25px;
}

.df-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--df-dark);
}

.df-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: var(--df-border-radius);
    font-size: 16px;
    transition: var(--df-transition);
    font-family: var(--df-font-primary);
}

.df-form-input:focus {
    border-color: var(--df-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.df-form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.df-form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.df-form-submit {
    width: 100%;
    background: var(--df-gradient);
    color: var(--df-white);
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--df-border-radius);
    cursor: pointer;
    transition: var(--df-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.df-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--df-shadow-hover);
}

/* === TESTIMONIALS === */
.df-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.df-testimonial-card {
    background: var(--df-white);
    padding: 30px;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow);
    position: relative;
}

.df-testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--df-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.df-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.df-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--df-gradient);
}

.df-testimonial-name {
    font-weight: 700;
    color: var(--df-dark);
}

.df-testimonial-role {
    font-size: 0.9rem;
    color: #999;
}

/* === FEATURES SECTION === */
.df-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.df-feature-item {
    text-align: center;
}

.df-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--df-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--df-white);
    transition: var(--df-transition);
}

.df-feature-item:hover .df-feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.df-feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--df-dark);
}

.df-feature-description {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   WOOCOMMERCE COMPATIBILITY
   ============================================ */

/* Page boutique */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Détails produit */
.woocommerce div.product {
    background: var(--df-white);
    padding: 30px;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow);
}

.woocommerce div.product .woocommerce-product-gallery {
    border-radius: var(--df-border-radius);
    overflow: hidden;
}

/* Panier */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
    padding: 15px;
}

.woocommerce-cart .cart-collaterals {
    background: var(--df-light);
    padding: 30px;
    border-radius: var(--df-border-radius);
}

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: var(--df-white);
    padding: 30px;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow);
    margin-bottom: 30px;
}

/* Messages WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--df-border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.woocommerce-message {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.woocommerce-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

.woocommerce-error {
    background: #FFEBEE;
    border-left: 4px solid #F44336;
    color: #C62828;
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

/* Support des widgets Elementor */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--df-font-primary);
}

.elementor-widget-button .elementor-button {
    background: var(--df-gradient);
    border-radius: var(--df-border-radius);
    transition: var(--df-transition);
}

.elementor-widget-button .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--df-shadow-hover);
}

/* Sections Elementor */
.elementor-section.elementor-section-boxed > .elementor-container {
    border-radius: var(--df-border-radius);
}

/* Colonnes Elementor */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Logo personnalisé */
.site-branding .custom-logo-link img {
    max-height: 60px;
    width: auto;
    transition: var(--df-transition);
}

.site-branding .custom-logo-link:hover img {
    transform: scale(1.05);
}

/* Menu principal */
.main-header-menu .menu-item > a {
    padding: 10px 20px;
    transition: var(--df-transition);
    font-weight: 500;
    position: relative;
}

.main-header-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--df-gradient);
    transition: var(--df-transition);
}

.main-header-menu .menu-item > a:hover::after,
.main-header-menu .menu-item.current-menu-item > a::after {
    width: 80%;
}

/* Sous-menu */
.main-header-menu .sub-menu {
    background: var(--df-white);
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow-hover);
    border: none;
    padding: 10px 0;
}

.main-header-menu .sub-menu .menu-item > a {
    padding: 12px 20px;
}

.main-header-menu .sub-menu .menu-item > a:hover {
    background: var(--df-light);
    color: var(--df-primary);
}

/* Sticky header */
.ast-header-sticked {
    box-shadow: var(--df-shadow);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper {
    background: var(--df-light);
    padding: 15px 20px;
    border-radius: var(--df-border-radius);
    margin-bottom: 30px;
    font-size: 14px;
}

.woocommerce-breadcrumb a,
.ast-breadcrumbs-wrapper a {
    color: var(--df-primary);
    text-decoration: none;
    transition: var(--df-transition);
}

.woocommerce-breadcrumb a:hover,
.ast-breadcrumbs-wrapper a:hover {
    color: var(--df-secondary);
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */

.widget {
    background: var(--df-white);
    padding: 25px;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-shadow);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--df-primary);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--df-gradient);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
    transition: var(--df-transition);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--df-dark);
    text-decoration: none;
    transition: var(--df-transition);
    display: block;
}

.widget ul li:hover {
    padding-left: 10px;
}

.widget ul li a:hover {
    color: var(--df-primary);
}

/* Widget recherche */
.widget_search .search-form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: var(--df-border-radius);
    transition: var(--df-transition);
}

.widget_search input[type="search"]:focus {
    border-color: var(--df-primary);
}

.widget_search button[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    background: var(--df-primary);
    border: none;
    border-radius: 6px;
    color: var(--df-white);
    cursor: pointer;
    transition: var(--df-transition);
}

.widget_search button[type="submit"]:hover {
    background: var(--df-secondary);
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge,
.label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--df-gradient);
    color: var(--df-white);
}

.badge-secondary {
    background: var(--df-gradient-blue);
    color: var(--df-white);
}

.badge-success {
    background: #4CAF50;
    color: var(--df-white);
}

.badge-warning {
    background: var(--df-warning);
    color: var(--df-dark);
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Header mobile */
    .site-header {
        padding: 10px 0;
    }
    
    .site-branding .custom-logo-link img {
        max-height: 45px;
    }
    
    /* Menu mobile */
    .main-header-menu .menu-item > a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--df-light);
    }
    
    /* Footer mobile */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-widget-area {
        margin-bottom: 30px;
    }
    
    /* Formulaires mobile */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Product grid responsive */
    .df-product-grid,
    .woocommerce .products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--df-primary);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--df-primary);
    color: var(--df-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 var(--df-border-radius) 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   UTILITAIRES
   ============================================ */

/* Alignement texte */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Marges */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mt-4 { margin-top: 40px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mb-4 { margin-bottom: 40px !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 10px !important; }
.p-2 { padding: 20px !important; }
.p-3 { padding: 30px !important; }
.p-4 { padding: 40px !important; }

/* Couleurs de texte */
.text-primary { color: var(--df-primary) !important; }
.text-secondary { color: var(--df-secondary) !important; }
.text-accent { color: var(--df-accent) !important; }
.text-muted { color: #666666 !important; }

/* Backgrounds */
.bg-light { background: var(--df-light) !important; }
.bg-white { background: var(--df-white) !important; }
.bg-dark { background: var(--df-dark) !important; }
.bg-gradient { background: var(--df-gradient) !important; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .ast-button,
    .widget,
    .elementor-button {
        display: none !important;
    }
    
    body {
        color: #000000;
        background: #FFFFFF;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* ============================================
   FOOTER BUILDER - DRESSINGFLOW
   ============================================ */

/* Footer Principal */
.site-footer .footer-widget-area {
    margin-bottom: 0;
}

.site-footer .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.site-footer .widget-title {
    color: var(--df-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--df-primary);
    position: relative;
}

.site-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--df-gradient);
}

/* Listes du footer */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
    transition: var(--df-transition);
}

.site-footer ul li::before {
    display: none;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--df-transition);
    display: inline-block;
}

.site-footer ul li a:hover {
    color: var(--df-primary);
    padding-left: 10px;
}

/* Footer social icons */
.footer-social a {
    display: inline-block;
    transition: var(--df-transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

/* Newsletter du footer */
.footer-newsletter input[type="email"] {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--df-white);
}

.footer-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter input[type="email"]:focus {
    border-color: var(--df-primary);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
    transition: var(--df-transition);
}

.footer-newsletter button:hover {
    background: #C2185B;
    transform: translateY(-2px);
}

/* Below Footer (Copyright) */
.site-below-footer-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ast-footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.ast-footer-copyright a {
    color: var(--df-primary);
    text-decoration: none;
}

.ast-footer-copyright a:hover {
    text-decoration: underline;
}

/* Footer menu secondaire */
.footer-widget-area .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-widget-area .menu li {
    margin: 0;
}

.footer-widget-area .menu li::before {
    content: '|';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-widget-area .menu li:first-child::before {
    display: none;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .site-footer .footer-widget-area[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 544px) {
    .site-footer .footer-widget-area[data-columns="4"] {
        grid-template-columns: 1fr !important;
    }
    
    .site-footer .widget {
        margin-bottom: 30px;
    }
    
    .footer-widget-area .menu {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-widget-area .menu li::before {
        display: none;
    }
}

/* Amélioration du contraste (accessibilité) */
.site-footer p,
.site-footer li,
.site-footer span {
    color: rgba(255, 255, 255, 0.9);
}

/* Animation au scroll - Unique animation fadeInUp */
.site-footer .widget {
    opacity: 0;
    animation: footerFadeInUp 0.6s ease-out forwards;
}

.site-footer .widget:nth-child(1) {
    animation-delay: 0.1s;
}

.site-footer .widget:nth-child(2) {
    animation-delay: 0.2s;
}

.site-footer .widget:nth-child(3) {
    animation-delay: 0.3s;
}

.site-footer .widget:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
