/* DEBUT : e-marketing/e-marketing.css */
/* ========== E-MARKETING.CSS – STYLE COMPLET ========== */
:root {
    --primary: #4B0082;
    --primary-light: #7B2FBE;
    --primary-dark: #2E004F;
    --gold: #FFCC00;
    --gold-dark: #e6b800;
    --bg-light: #F0F8FF;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    --shadow-hover: 0 1rem 2rem rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== LOADER ========== */
.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== NAVBAR OFFICIELLE ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--light-gray);
}
.logo-link { display: inline-block; }
.logo-nav {
    height: 50px;
    transition: var(--transition);
}
.logo-nav:hover {
    opacity: 0.8;
    transform: scale(1.02);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-picker {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--light-gray);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.lang-picker:hover { border-color: var(--gold); }
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 30px;
}
.nav-links a.active,
.nav-links a:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-auth {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-auth:hover {
    background: var(--primary);
    color: white;
}
.btn-auth.gold {
    background: var(--gold);
    color: black;
    border: none;
}
.btn-auth.gold:hover { background: var(--gold-dark); }

/* ========== HERO ========== */
.emarket-hero {
    text-align: center;
    padding: 100px 20px;
    color: white;
    background-size: cover;
    background-position: center;
}
.emarket-hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 15px;
}
.emarket-hero .highlight { color: var(--gold); }
.emarket-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ========== CONTENEUR PRINCIPAL ========== */
.emarket-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== SECTIONS PRODUITS ========== */
.packs-section,
.all-products-section {
    margin-bottom: 50px;
}

.packs-section h2,
.all-products-section h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ========== CARTE PRODUIT ========== */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: #111;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-info h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.product-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex: 1;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}
.product-stock {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.product-stock.in-stock {
    background: #d4edda;
    color: #155724;
}
.product-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}
.product-actions {
    display: flex;
    gap: 10px;
}
.btn-add-cart,
.btn-details {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}
.btn-add-cart {
    background: var(--gold);
    color: #111;
}
.btn-add-cart:hover:not(:disabled) { background: var(--gold-dark); }
.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-details {
    background: var(--primary);
    color: white;
}
.btn-details:hover { background: var(--primary-light); }

/* ========== PANIER FLOTTANT ========== */
.cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255,204,0,0.4);
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
    font-size: 1.4rem;
    color: #111;
}
.cart-float:hover {
    transform: scale(1.1);
}
.cart-float span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-checkout-float {
    position: fixed;
    bottom: 30px;
    right: 110px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 8px 25px rgba(75,0,130,0.4);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-checkout-float:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ========== MODALES GÉNÉRALES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal.active { display: flex; }
.modal-content {
    background: var(--white);
    border-radius: 30px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
}
.modal-content.large { max-width: 850px; }
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.close-modal:hover { color: var(--danger); }
.modal h2,
.modal h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
}

/* ========== FORMULAIRES MODAUX ========== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75,0,130,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}
.form-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.form-link a:hover { color: var(--gold); }
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(75,0,130,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(75,0,130,0.3);
}
.btn-secondary {
    background: var(--light-gray);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ========== PANIER (MODALE) ========== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 10px;
}
.cart-item-info h4 {
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.cart-item-info p { color: var(--gray); font-size: 0.9rem; }
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-item-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}
.cart-qty-minus,
.cart-qty-plus {
    background: var(--primary);
    color: white;
}
.cart-qty-minus:hover,
.cart-qty-plus:hover { background: var(--primary-light); }
.cart-remove {
    background: var(--danger);
    color: white;
}
.cart-remove:hover { background: #c82333; }
.cart-summary {
    border-top: 2px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
    text-align: right;
}
.cart-summary p {
    margin-bottom: 8px;
    color: var(--dark);
}
.cart-summary strong { font-size: 1.1rem; color: var(--primary-dark); }

/* ========== CHECKOUT ========== */
.checkout-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.checkout-totals {
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--light-gray);
}
.checkout-totals p { margin-bottom: 8px; }
.checkout-totals strong { font-size: 1.2rem; color: var(--primary-dark); }

/* ========== COMPTE CLIENT ========== */
.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}
.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-btn:hover { color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== LISTES (COMMANDES, MESSAGES) ========== */
.order-item,
.message-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}
.order-item p,
.message-item p {
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 0.9rem;
}
.btn-view-order {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 8px;
    font-family: 'Poppins', sans-serif;
}
.btn-message {
    background: var(--gold);
    color: #111;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

/* ========== STOCK BADGE (MODALE DÉTAIL PRODUIT) ========== */
.stock-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 10px 0;
}
.stock-badge.in-stock { background: #d4edda; color: #155724; }
.stock-badge.out-of-stock { background: #f8d7da; color: #721c24; }

/* ========== TOASTS ========== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid;
    animation: slideIn 0.3s forwards;
    min-width: 280px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
.toast-content { flex: 1; font-weight: 500; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1.4rem; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== FOOTER ========== */
footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 40px 5% 20px;
    text-align: center;
    margin-top: 60px;
}
.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.badge-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--gold);
    border: 1px solid rgba(255,204,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-box { margin-bottom: 20px; }
.contact-item {
    color: var(--gold);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}
.contact-item:hover { color: white; }
.legal p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin: 5px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1008px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 5%;
        background: var(--white);
        padding: 25px;
        border-radius: 15px;
        width: 90%;
        max-width: 300px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        border: 1px solid var(--light-gray);
        z-index: 999;
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 0; text-align: center; font-size: 1rem; }
    .btn-auth { text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .btn-checkout-float { right: 100px; }
}

@media (max-width: 768px) {
    .emarket-hero { padding: 60px 20px; }
    .products-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px; }
    .cart-item { flex-direction: column; gap: 10px; }
    .cart-float { width: 50px; height: 50px; font-size: 1.2rem; }
    .btn-checkout-float {
        padding: 10px 18px;
        font-size: 0.8rem;
        right: 80px;
        bottom: 25px;
    }
}

@media (max-width: 400px) {
    nav { padding: 15px 4%; }
    .logo-nav { height: 40px; }
    .emarket-hero h1 { font-size: 1.8rem; }
    .emarket-hero p { font-size: 1rem; }
    .btn-checkout-float { display: none; }
}
/* FIN : e-marketing/e-marketing.css */