/* ================================================
   ZALYTECHNO - Style principal (inspiré d'Alibaba)
   ================================================ */

:root {
    --primary-color: #ff6a00;
    --primary-dark: #e85d00;
    --secondary-color: #ff9500;
    --accent-color: #2196f3;
    --dark: #2c3e50;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: #fafafa;
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.top-bar a {
    color: var(--gray-600);
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-info span {
    margin-right: 5px;
}

/* ================================================
   HEADER
   ================================================ */
.main-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.logo-accent {
    color: var(--dark);
}

.search-form .input-group {
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    border: none !important;
    box-shadow: none !important;
    height: 44px;
    padding: 0 15px;
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-weight: 500;
}

.btn-search:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-icon {
    position: relative;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ================================================
   NAVIGATION
   ================================================ */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.btn-categories {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 0;
    margin-right: 20px;
}

.btn-categories:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1;
}

.nav-menu li a {
    display: block;
    padding: 14px 18px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.btn-mobile-menu {
    background: transparent;
    border: 1px solid var(--gray-300);
    padding: 8px 12px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d0 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    padding: 14px 35px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ================================================
   FEATURES BAR
   ================================================ */
.features-bar {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-200);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-item h6 {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

.feature-item small {
    color: var(--gray-600);
}

/* ================================================
   SECTION TITLE
   ================================================ */
.section-title {
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-title a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ================================================
   CATEGORY GRID
   ================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-card h6 {
    color: var(--dark);
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

/* ================================================
   PRODUCT CARD
   ================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.new {
    background: var(--success);
}

.product-info {
    padding: 15px;
}

.product-category {
    color: var(--gray-600);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--dark);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 12px;
}

.price-current {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray-600);
    font-size: 13px;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-view {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 4px;
}

.btn-view:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ================================================
   BANNER PROMO
   ================================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.promo-banner h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.promo-banner .btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

/* ================================================
   PAGE PRODUIT
   ================================================ */
.product-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-detail-image {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-info h1 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-detail-info .price-current {
    font-size: 32px;
}

.product-detail-info .price-old {
    font-size: 18px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.product-meta div strong {
    color: var(--dark);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 20px;
}

.qty-control button {
    background: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
}

.qty-control input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    padding: 10px 5px;
}

/* ================================================
   PANIER
   ================================================ */
.cart-table {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-table table {
    margin: 0;
}

.cart-table th {
    background: var(--gray-100);
    padding: 15px;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-200);
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: var(--gray-100);
}

.cart-summary {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-summary h4 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.cart-summary .summary-total {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--gray-200);
    padding-top: 15px;
    margin-top: 15px;
}

/* ================================================
   FORMS
   ================================================ */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.15);
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 40px auto;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

/* ================================================
   FOOTER
   ================================================ */
.main-footer {
    background: #1a2332;
    color: #b8c2cc;
    margin-top: 60px;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b8c2cc;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.payment-badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.payment-badge.orange {
    background: #ff6a00;
    color: white;
}

.payment-badge.yellow {
    background: #ffcc00;
    color: #333;
}

.payment-badge.gray {
    background: #6c757d;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 14px;
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
    }
    
    .top-bar .top-info span {
        display: block;
        margin-bottom: 3px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .header-actions {
        margin-top: 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        font-size: 13px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .price-current {
        font-size: 15px;
    }
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ================================================
   BREADCRUMB
   ================================================ */
.breadcrumb-nav {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin: 0;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* ================================================
   FILTERS SIDEBAR
   ================================================ */
.filters-sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filters-sidebar h5 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--dark);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h6 {
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-group ul {
    list-style: none;
    padding: 0;
}

.filter-group ul li {
    padding: 5px 0;
}

.filter-group ul li a {
    color: var(--gray-600);
    font-size: 14px;
}

.filter-group ul li a:hover,
.filter-group ul li a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* ================================================
   DROPDOWN TOUTES LES CATÉGORIES
   ================================================ */
.categories-dropdown {
    position: relative;
}

.categories-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 8px 0;
}

.categories-panel.open {
    display: block;
    animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.categories-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--dark);
    font-size: 14px;
    transition: all 0.2s;
}

.categories-panel a:hover {
    background: #fff5ef;
    color: var(--primary-color);
    padding-left: 24px;
}

.categories-panel a i {
    width: 20px;
    color: var(--primary-color);
    text-align: center;
}

/* ================================================
   MENU MOBILE DÉROULANT
   ================================================ */
.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    padding: 10px 0;
}

.mobile-menu.open {
    display: block;
}

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

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.mobile-menu ul li a:hover {
    background: #fff5ef;
    color: var(--primary-color);
}

.mobile-menu ul li a i {
    width: 20px;
    color: var(--primary-color);
}

/* ================================================
   BOUTONS FLOTTANTS (Chat + WhatsApp côte à côte)
   ================================================ */
.floating-btns {
    position: fixed;
    bottom: 22px;
    right: 18px;
    display: flex;
    flex-direction: row;        /* ← côte à côte */
    align-items: flex-end;
    gap: 10px;
    z-index: 998;
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.float-label {
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.float-item:hover .float-label {
    opacity: 1;
    transform: translateY(0);
}

/* Bouton Chat (orange) */
.chat-float {
    position: relative;
    width: 54px;
    height: 54px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(255,106,0,0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    animation: pulse-orange 2.5s infinite;
}

.chat-float:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse-orange {
    0%   { box-shadow: 0 0 0 0   rgba(255,106,0,0.40); }
    70%  { box-shadow: 0 0 0 13px rgba(255,106,0,0); }
    100% { box-shadow: 0 0 0 0   rgba(255,106,0,0); }
}

/* Badge notification rouge */
.chat-notif {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Bouton WhatsApp (vert) */
.whatsapp-float {
    width: 54px;
    height: 54px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.45);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: var(--white);
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.40); }
    70%  { box-shadow: 0 0 0 13px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

/* ================================================
   FENÊTRE DE CHAT CLIENT
   ================================================ */
.chat-window {
    position: fixed;
    bottom: 100px;             /* au-dessus des boutons */
    right: 18px;
    width: 340px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 500px;
}

.chat-window.open {
    display: flex;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 420px) {
    .chat-window { width: calc(100vw - 20px); right: 10px; }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: var(--white);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-close-chat {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-chat:hover {
    background: rgba(255,255,255,0.35);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
}

.chat-message.bot .chat-bubble {
    background: var(--white);
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    color: var(--dark);
}

.chat-message.user .chat-bubble {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 16px 4px 16px 16px;
}

.chat-time {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Boutons rapides */
.chat-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.chat-quick-btns button {
    background: var(--white);
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btns button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Typing indicator */
.typing-indicator .chat-bubble {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); background: var(--gray-300); }
    30%            { transform: translateY(-6px); background: var(--primary-color); }
}

.chat-footer {
    padding: 12px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-wrap {
    display: flex;
    gap: 8px;
}

.chat-input-wrap input {
    flex: 1;
    border: 1.5px solid var(--gray-300);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-wrap input:focus {
    border-color: var(--primary-color);
}

.btn-send {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-send:hover {
    background: var(--primary-dark);
}

.btn-whatsapp-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: var(--white);
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-whatsapp-chat:hover {
    background: #128c7e;
    color: var(--white);
}



/* ================================================
   CHAT CLIENT - Formulaire identification + Outils
   ================================================ */

/* Formulaire de présentation */
.chat-ident-form {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 10px;
    background: #f7f8fa;
    flex: 1;
}

.chat-ident-intro {
    text-align: center;
    margin-bottom: 6px;
}

.chat-ident-intro p {
    font-size: 13.5px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.chat-ident-form input {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.chat-ident-form input:focus {
    border-color: var(--primary-color);
}

.btn-start-chat {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.btn-start-chat:hover {
    background: var(--primary-dark);
}

/* Barre d'outils chat */
.chat-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 4px 2px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.chat-tool-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.chat-tool-btn:hover {
    background: #f0f0f0;
}

/* Emoji picker client */
.chat-emoji-wrap {
    position: relative;
}

.emoji-picker {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    width: 250px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1100;
    flex-wrap: wrap;
    gap: 3px;
}

.emoji-picker.open {
    display: flex;
}

.emoji-picker button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 5px;
    transition: background 0.15s;
}

.emoji-picker button:hover {
    background: #f0f0f0;
}

/* Zone messages avec identification */
#chatZoneMessages {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ================================================
   BOUTONS DISCUTER SUR LA PAGE PRODUIT
   ================================================ */
.btn-discuter-produit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-discuter-produit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-whatsapp-produit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp-produit:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-1px);
}

/* ================================================
   CARTE PRODUIT DANS LE CHAT CLIENT
   ================================================ */
.chat-bubble-produit {
    padding: 8px !important;
    max-width: 280px;
}

.chat-product-card {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #ff6a00;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

.chat-product-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.chat-product-info {
    flex: 1;
    min-width: 0;
}

.chat-product-nom {
    font-size: 12.5px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chat-product-ref {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.chat-product-prix {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.chat-product-lien {
    display: inline-block;
    font-size: 11.5px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.chat-product-lien:hover {
    text-decoration: underline;
}

/* Bulle produit côté user (orange) - override */
.chat-message.user .chat-bubble.chat-bubble-produit {
    background: #fff5ef;
    color: #333;
}

/* ================================================
   LIEN FORMATIONS dans la navigation
   ================================================ */
.nav-menu li a.nav-formations {
    color: #ff6a00 !important;
    font-weight: 700 !important;
    border: 2px solid #ff6a00;
    border-radius: 20px;
    padding: 6px 14px !important;
    margin-left: 5px;
    transition: all 0.2s;
}

.nav-menu li a.nav-formations:hover {
    background: #ff6a00;
    color: #fff !important;
}

.nav-menu li a.nav-formations i {
    color: inherit;
}

/* Petit badge "Nouveau" */
.nav-menu li a.nav-formations::after {
    content: 'Nouveau';
    background: #dc3545;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 600;
}

/* ── Newsletter dans le footer ── */
.footer-newsletter {
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    margin-bottom: 10px;
}

/* ── Lien Facebook topbar ─────────────────────────── */
.top-fb-link {
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.9;
    transition: opacity .2s;
}
.top-fb-link:hover {
    opacity: 1;
    color: #4267B2 !important;
}
.top-fb-link i {
    font-size: 14px;
}

/* Masquer sur très petit écran */
@media (max-width: 480px) {
    .top-fb-link { display: none; }
}
