/* ═══════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════
   FRIGOTOP — SYSTÈME RESPONSIVE INTELLIGENT
   Inspiré des maquettes smartphone et tablette
   ═══════════════════════════════════════════════════════════════════
   
   BREAKPOINTS :
   • > 1024px : Desktop (layout 3 colonnes)
   • 769px - 1024px : Tablette paysage
   • 481px - 768px : Tablette portrait
   • ≤ 480px : Smartphone
   
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   ÉLÉMENTS MOBILES — masqués par défaut sur desktop
   ───────────────────────────────────────────────────────────────── */
.mobile-menu-btn,
.mobile-search,
.mobile-nav-bottom {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   SMARTPHONE ≤ 480px (Maquette Mobile)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    
    body {
        font-size: 14px;
        padding-bottom: 60px; /* Espace pour la nav bottom */
        background: #f5f5f5;
    }
    
    /* ── TOP BAR → Logo FrigoTop + Icônes ── */
    .jm-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 8px 12px;
    }
    
    .jm-topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 50px;
    }
    
    /* Logo mobile FrigoTop */
    .jm-topbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    
    .jm-topbar-brand img {
        width: 36px;
        height: 36px;
    }
    
    .jm-topbar-brand span {
        font-size: 20px;
        font-weight: 900;
    }
    
    .jm-topbar-brand span:first-of-type {
        color: #004080;
    }
    
    .jm-topbar-brand span:last-of-type {
        color: #ff9933;
    }
    
    /* Icônes profil et panier */
    .jm-topbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .jm-topbar-actions a {
        position: relative;
        color: #004080;
        font-size: 22px;
    }
    
    .jm-topbar-slogan,
    .jm-topbar-animated-slogan,
    .jm-topbar-pub-images,
    .jm-topbar-links {
        display: none;
    }
    
    /* ── HEADER → Slogan centré ── */
    .jm-header {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        z-index: 999;
        background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
        padding: 10px 12px;
        text-align: center;
    }
    
    .jm-header-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    /* Menu hamburger */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        left: 12px;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.2);
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        cursor: pointer;
    }
    
    .jm-header-inner h1,
    .jm-header-inner .slogan {
        color: white;
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* Logo FrigoTop */
    .jm-logo-img-link {
        flex-shrink: 0;
    }
    
    .jm-logo-img {
        width: 40px;
        height: 40px;
    }
    
    /* Recherche centrée */
    .jm-search-form {
        flex: 1;
        display: flex;
        align-items: center;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        padding: 0;
    }
    
    .jm-search-cat,
    .jm-search-divider {
        display: none;
    }
    
    .jm-search-input {
        flex: 1;
        border: none;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .jm-search-btn {
        background: #ff9933;
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
    }
    
    /* Actions header */
    .jm-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .jm-action-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .jm-action-label {
        display: none;
    }
    
    /* Panier badge */
    .jm-cart-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #ff9933;
        color: white;
        font-size: 10px;
        font-weight: bold;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Social bubble */
    .jm-social-bubble {
        display: none;
    }
    
    /* ── MENU HAMBURGER ── */
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 110px;
        left: 10px;
        z-index: 998;
        width: 40px;
        height: 40px;
        background: #004080;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    /* ── BARRE DE RECHERCHE ── */
    .jm-search-bar-mobile {
        position: fixed;
        top: 95px;
        left: 0;
        right: 0;
        z-index: 998;
        background: white;
        padding: 10px 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .jm-search-form {
        display: flex;
        align-items: center;
        background: #f5f5f5;
        border-radius: 25px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
    }
    
    .jm-search-icon {
        padding: 0 12px;
        color: #999;
        font-size: 16px;
    }
    
    .jm-search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 12px 0;
        font-size: 14px;
        outline: none;
    }
    
    .jm-search-input::placeholder {
        color: #999;
    }
    
    .jm-search-btn {
        background: #ff9933;
        color: white;
        border: none;
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        border-radius: 0 25px 25px 0;
    }
    
    .jm-search-cat,
    .jm-search-divider,
    .jm-header-actions {
        display: none;
    }
    
    /* ── HERO BANNER MOBILE → Image + Texte ── */
    .hm-hero {
        margin-top: 145px;
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .hm-hero-zone {
        height: 280px;
        position: relative;
        background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
        overflow: hidden;
    }
    
    .hm-hero-zone img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }
    
    .hm-sponsor-content {
        position: relative;
        z-index: 2;
        text-align: left;
        padding: 30px 20px;
    }
    
    .hm-sponsor-icon {
        font-size: 40px !important;
        margin-bottom: 15px;
        color: white;
    }
    
    .hm-slogan-main {
        font-size: 22px !important;
        color: white;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .hm-slogan-sub {
        font-size: 14px !important;
        color: rgba(255,255,255,0.9);
        margin-bottom: 20px;
    }
    
    .hm-sponsor-cta {
        background: #ff9933 !important;
        color: white !important;
        padding: 12px 24px !important;
        font-size: 13px !important;
        font-weight: 700;
        border-radius: 25px;
        display: inline-block;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(255,153,51,0.4);
    }
    
    .hm-sponsor-badge {
        top: 15px;
        left: 15px;
        font-size: 10px;
        padding: 4px 10px;
    }
    
    /* ── CATÉGORIES → Grille 4 colonnes ── */
    .hm-categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
        padding: 15px 10px;
        background: white;
    }
    
    .hm-cat-column {
        text-align: center;
        border: none !important;
    }
    
    .hm-cat-header {
        display: none;
    }
    
    .hm-cat-list {
        background: transparent;
        padding: 0;
    }
    
    .hm-cat-list li {
        margin-bottom: 10px;
    }
    
    .hm-cat-list a {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 10px 5px;
    }
    
    .hm-cat-list a::before {
        display: none;
    }
    
    .hm-cat-list a i {
        font-size: 28px;
        color: #004080;
    }
    
    /* ── SIDEBAR GAUCHE → Cachée par défaut ── */
    .hm-sidebar {
        position: fixed;
        top: 145px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 205px);
        z-index: 997;
        transition: left 0.3s ease;
        overflow-y: auto;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    .hm-sidebar.open {
        left: 0;
    }
    
    /* Flyout Catégories pour vous - Mobile désactivé */
    .hm-categories-flyout {
        display: none !important;
    }
    
    .hm-body {
        grid-template-columns: 1fr !important;
        padding: 0;
    }
    
    /* ── SIDEBAR DROITE → Cachée ── */
    .hm-widgets {
        display: none;
    }
    
    /* ── VENTES FLASH → Compact ── */
    .hm-flash-sales {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hm-flash-title {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }
    
    .hm-flash-timer {
        order: 2;
    }
    
    .hm-flash-see-more {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    /* ── PRODUITS → Grille 2 colonnes ── */
    .hm-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 10px;
        background: #f5f5f5;
    }
    
    .hm-prod-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .hm-prod-img {
        height: 120px;
        background: #f8f8f8;
    }
    
    .hm-prod-info {
        padding: 8px 10px;
    }
    
    .hm-prod-name {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .hm-prod-price {
        font-size: 13px;
        font-weight: 700;
        color: #ff9933;
    }
    
    /* ── NAVIGATION BOTTOM BAR (Style Maquette) ── */
    .mobile-nav-bottom {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1001;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #e0e0e0;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #666;
        font-size: 10px;
        font-weight: 500;
        padding: 5px;
        flex: 1;
        transition: all 0.2s;
        position: relative;
    }
    
    .mobile-nav-item i {
        font-size: 22px;
        margin-bottom: 3px;
        color: #004080;
    }
    
    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: #004080;
    }
    
    .mobile-nav-item.active i {
        transform: scale(1.1);
    }
    
    /* Badge panier sur nav */
    .mobile-nav-cart-badge {
        position: absolute;
        top: 0px;
        right: 50%;
        transform: translateX(12px);
        background: #ff9933;
        color: white;
        font-size: 9px;
        font-weight: bold;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ── FOOTER MOBILE → Compact horizontal ── */
    .ft-footer {
        margin-top: 20px;
        padding-bottom: 60px; /* Espace pour nav bottom */
        background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
    }
    
    .ft-footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }
    
    /* Brand compact */
    .ft-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .ft-logo {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: white;
    }
    
    .ft-logo img {
        height: 32px;
        width: auto;
    }
    
    .ft-logo span {
        font-size: 18px;
        font-weight: 900;
    }
    
    .ft-description {
        display: none;
    }
    
    .ft-social {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .ft-social-link {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.2s;
    }
    
    .ft-social-link:hover {
        background: rgba(255,255,255,0.25);
        transform: scale(1.1);
    }
    
    /* Liens et contact en 2 colonnes */
    .ft-links,
    .ft-contact {
        display: block;
    }
    
    .ft-info {
        display: none;
    }
    
    .ft-links h3,
    .ft-contact h3 {
        font-size: 12px;
        font-weight: 700;
        margin: 0 0 10px 0;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .ft-links ul,
    .ft-contact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .ft-links li,
    .ft-contact li {
        margin-bottom: 6px;
    }
    
    .ft-links a {
        color: white;
        text-decoration: none;
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 6px;
        opacity: 0.9;
    }
    
    .ft-contact li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }
    
    .ft-contact li i,
    .ft-links li i {
        width: 14px;
        font-size: 12px;
        color: #ff9933;
    }
    
    /* Copyright */
    .ft-copyright {
        padding: 10px 15px;
        text-align: center;
        font-size: 10px;
        background: rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLETTE 481px - 1024px (Maquette Tablette)
   Layout : Topbar + Header + Sidebar gauche + Contenu + Sidebar droite
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 1024px) {
    
    body {
        font-size: 14px;
        padding-bottom: 0;
    }
    
    /* ── TOP BAR → Logo + Slogan + Liens ── */
    .jm-topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .jm-topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 20px;
        height: 56px;
    }
    
    .jm-topbar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .jm-topbar-brand img {
        width: 40px;
        height: 40px;
    }
    
    .jm-topbar-brand span {
        font-size: 22px;
        font-weight: 900;
    }
    
    .jm-topbar-actions {
        display: none;
    }
    
    .jm-topbar-slogan {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slogan-main {
        font-size: 16px;
        font-weight: 700;
        color: #004080;
    }
    
    .slogan-sub {
        font-size: 11px;
        color: #666;
    }
    
    .jm-topbar-animated-slogan {
        display: none;
    }
    
    .jm-topbar-pub-images {
        width: 300px;
        height: 40px;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .jm-topbar-links {
        display: flex;
        gap: 15px;
    }
    
    .jm-topbar-links a {
        font-size: 12px;
        color: #004080;
        text-decoration: none;
    }
    
    /* ── HEADER → Logo + Recherche + Actions ── */
    .jm-header {
        position: sticky;
        top: 56px;
        z-index: 999;
        background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
        padding: 12px 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .jm-header-inner {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .jm-logo-img-link {
        display: block !important;
    }
    
    .jm-logo-img {
        width: 45px;
        height: 45px;
    }
    
    /* Recherche tablette */
    .jm-search-form {
        flex: 1;
        display: flex;
        align-items: center;
        background: white;
        border-radius: 25px;
        overflow: hidden;
        max-width: 600px;
    }
    
    .jm-search-cat {
        display: block;
        border: none;
        padding: 12px 15px;
        font-size: 13px;
        background: #f5f5f5;
        border-right: 1px solid #e0e0e0;
    }
    
    .jm-search-divider {
        display: block;
    }
    
    .jm-search-input {
        flex: 1;
        border: none;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .jm-search-btn {
        background: #ff9933;
        color: white;
        border: none;
        padding: 12px 20px;
        cursor: pointer;
    }
    
    .jm-search-bar-mobile {
        display: none !important;
    }
    
    .jm-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .jm-action-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .jm-action-label {
        display: none;
    }
    
    .jm-social-bubble,
    .jm-hamburger {
        display: none;
    }
    
    /* ── NAVIGATION BAR ── */
    .jm-nav {
        display: block;
        background: white;
        border-bottom: 2px solid #f0f0f0;
        padding: 10px 20px;
    }
    
    .jm-nav-inner {
        display: flex;
        align-items: center;
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .jm-nav-link {
        font-size: 13px;
        color: #333;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 20px;
        transition: all 0.2s;
    }
    
    .jm-nav-link:hover {
        background: #f0f4f8;
        color: #004080;
    }
    
    /* ── LAYOUT 3 COLONNES ── */
    .hm-body {
        display: grid !important;
        grid-template-columns: 220px 1fr 240px;
        gap: 0;
        background: #f5f7fa;
    }
    
    /* ── SIDEBAR GAUCHE → Visible ── */
    .hm-sidebar {
        position: static;
        width: 220px;
        height: auto;
        background: white;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
    }
    
    .hm-sb-header {
        border-bottom: 2px solid #ff9933;
    }
    
    .hm-sb-title {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .hm-sb-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .hm-sb-menu {
        max-height: calc(100vh - 260px);
    }
    
    .hm-sb-link {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .hm-sb-link i:first-child {
        font-size: 14px;
    }
    
    /* Flyout tablette */
    .hm-sb-flyout {
        width: 300px;
    }
    
    /* Flyout Catégories pour vous - Tablette */
    .hm-categories-flyout {
        min-width: 500px !important;
        padding: 15px !important;
    }
    
    .hm-categories-flyout-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .hm-flyout-cat-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
    
    .hm-flyout-cat-name {
        font-size: 11px !important;
    }
    
    .flyout-header h3 {
        font-size: 15px;
    }
    
    .flyout-list a {
        font-size: 12px;
    }
    
    /* ── HERO → 2 zones ── */
    .hm-hero {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0;
        margin-top: 0;
    }
    
    .hm-hero-zone {
        height: 300px;
    }
    
    .hm-sponsor-icon {
        font-size: 50px !important;
    }
    
    .hm-slogan-main {
        font-size: 26px !important;
    }
    
    .hm-slogan-sub {
        font-size: 16px !important;
    }
    
    .hm-sponsor-cta {
        padding: 12px 30px !important;
        font-size: 13px !important;
    }
    
    /* ── SIDEBAR DROITE → Visible ── */
    .hm-widgets {
        display: flex !important;
        flex-direction: column;
        width: 240px;
        gap: 0;
    }
    
    .hm-pub-zone {
        min-height: 140px;
    }
    
    /* ── VENTES FLASH ── */
    .hm-flash-sales {
        padding: 10px 20px;
        gap: 15px;
    }
    
    .hm-flash-title {
        font-size: 14px;
    }
    
    .hm-flash-time-unit {
        padding: 5px 10px;
        font-size: 15px;
    }
    
    .hm-flash-see-more {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* ── PRODUITS → 3 colonnes ── */
    .hm-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
        padding: 15px;
    }
    
    .hm-prod-img {
        height: 140px;
    }
    
    .hm-prod-name {
        font-size: 13px;
    }
    
    .hm-prod-price {
        font-size: 14px;
    }
    
    /* ── CATÉGORIES → Grille 4 colonnes ── */
    .hm-categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px;
        padding: 15px;
    }
    
    .hm-cat-list a i {
        font-size: 32px;
    }
    
    /* ── NAVIGATION BOTTOM → Cachée sur tablette ── */
    .mobile-nav-bottom {
        display: none !important;
    }
    
    /* ── FOOTER TABLETTE → Layout 2 colonnes compact ── */
    .ft-footer {
        margin-top: 30px;
        background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
    }
    
    .ft-footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 25px 20px;
    }
    
    /* Brand sur toute la largeur */
    .ft-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .ft-logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: white;
    }
    
    .ft-logo img {
        height: 38px;
    }
    
    .ft-logo span {
        font-size: 20px;
        font-weight: 900;
    }
    
    .ft-description {
        font-size: 12px;
        margin: 8px 0 12px 0;
        opacity: 0.85;
    }
    
    .ft-social {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    
    .ft-social-link {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.12);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-size: 17px;
        transition: all 0.2s;
    }
    
    .ft-social-link:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-2px);
    }
    
    /* Liens et contact en grille */
    .ft-links,
    .ft-contact {
        display: block;
    }
    
    .ft-info {
        display: none;
    }
    
    .ft-links h3,
    .ft-contact h3 {
        font-size: 13px;
        font-weight: 700;
        margin: 0 0 12px 0;
        padding-bottom: 6px;
        border-bottom: 2px solid rgba(255,255,255,0.2);
    }
    
    .ft-links ul,
    .ft-contact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .ft-links li,
    .ft-contact li {
        margin-bottom: 8px;
    }
    
    .ft-links a {
        color: white;
        text-decoration: none;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 7px;
        opacity: 0.9;
        transition: all 0.2s;
    }
    
    .ft-links a:hover {
        opacity: 1;
        transform: translateX(4px);
    }
    
    .ft-links li i {
        width: 15px;
        font-size: 13px;
        color: #ff9933;
    }
    
    .ft-contact li {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 12px;
    }
    
    .ft-contact li i {
        width: 18px;
        color: #ff9933;
    }
    
    /* Copyright */
    .ft-copyright {
        padding: 12px 20px;
        text-align: center;
        font-size: 11px;
        background: rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLETTE PAYSAGE 769px - 1024px (Optimisations spécifiques)
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* ── LAYOUT → 3 colonnes plus larges ── */
    .hm-body {
        grid-template-columns: 240px 1fr 260px !important;
    }
    
    .hm-sidebar {
        width: 240px;
    }
    
    .hm-widgets {
        width: 260px;
    }
    
    /* ── HERO → Zones plus hautes ── */
    .hm-hero-zone {
        height: 350px;
    }
    
    .hm-slogan-main {
        font-size: 28px !important;
    }
    
    .hm-slogan-sub {
        font-size: 17px !important;
    }
    
    /* ── PRODUITS → 4 colonnes ── */
    .hm-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px;
    }
    
    .hm-prod-img {
        height: 160px;
    }
    
    /* ── CATÉGORIES → 4 colonnes plus grandes ── */
    .hm-cat-list a i {
        font-size: 36px;
    }
    
    /* ── TOPBAR PUB → Plus large ── */
    .jm-topbar-pub-images {
        width: 400px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS & EFFETS SPÉCIAUX MOBILE
   ═══════════════════════════════════════════════════════════════════ */

/* Overlay pour menu mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 996;
}

.mobile-overlay.active {
    display: block;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Touch optimisations */
@media (hover: none) and (pointer: coarse) {
    .jm-action-btn,
    .mobile-nav-item,
    .hm-sb-link,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   TABLETTE PAYSAGE  ≤ 1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Layout 3 colonnes → 2 colonnes (sidebar gauche + contenu) */
  .main-layout {
    grid-template-columns: 240px 1fr !important;
    gap: 16px;
    padding: 0 16px;
  }
  .sidebar-right { display: none; }
  .sidebar-left  { position: static; }

  /* Boutique : masquer sidebar droite */
  .boutique-container {
    grid-template-columns: 220px 1fr !important;
    gap: 16px;
    padding: 16px;
  }
  .boutique-sidebar-right { display: none; }

  /* Bannière home : 4 colonnes → 3 (masquer promo) */
  .home-banner-row {
    grid-template-columns: 180px 1fr 1fr !important;
    height: 380px;
  }
  .banner-promo { display: none; }

  /* Grille produits : 3 → 2 colonnes */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  .products-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }

  /* Header : réduire les zones */
  .mh-actions { width: 300px; gap: 10px; padding: 0 12px; }
  .main-btn-buy { padding: 10px 16px; font-size: 13px; }

  /* Topbar : masquer pub */
  .topbar-pub { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   TABLETTE PORTRAIT  ≤ 768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  body { font-size: 14px; }

  /* ── TOPBAR → compact ── */
  .topbar {
    height: 56px;
    padding: 0 12px;
    background: #004080;
  }
  .topbar-ticker,
  .topbar-pub { display: none; }
  .topbar-logo {
    flex: 1;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .topbar-logo img  { width: 34px; height: 34px; }
  .topbar-logo span { font-size: 15px; font-weight: 800; }
  .topbar-contact {
    border-left: none;
    padding-left: 0;
    gap: 8px;
  }
  .topbar-contact a { font-size: 12px; color: white; }
  /* Icône casque circulaire */
  .topbar-contact a[href*="support"] {
    position: relative;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .topbar-contact a[href*="support"] i { font-size: 15px; }

  /* Hamburger */
  .mobile-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
  }

  /* ── BARRE PARTENAIRES → 3 boutons compacts ── */
  .partner-bar {
    gap: 8px;
    padding: 8px 10px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .partner-bar::-webkit-scrollbar { display: none; }
  .partner-btn {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .partner-vendeur { background: #ff9933; color: white; border-color: #ff9933; }
  .partner-livreur { background: rgba(255,255,255,.15); color: white; }
  .partner-expert  { background: rgba(40,167,69,.25); color: #7dffaa; }
  .partner-bar .dropdown-menu-container { display: none; }

  /* ── MENU PRINCIPAL → masqué ── */
  .main-header { display: none !important; }

  /* ── HERO MOBILE ── */
  .mobile-hero {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, #e8f4ff 0%, #f5f9ff 100%);
    text-align: center;
  }
  .mobile-hero h1 {
    font-size: 22px;
    font-weight: 800;
    color: #004080;
    margin: 0 0 2px;
  }
  .mobile-hero p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
  }
  .mobile-hero-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 360px;
  }
  .mobile-hero-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #28a745;
    color: #28a745;
    background: white;
    transition: all .2s;
  }
  .mobile-hero-actions a:last-child {
    border-color: #004080;
    color: #004080;
  }

  /* ── BANNIÈRE HOME → masquée ── */
  .home-banner-row { display: none !important; }

  /* ── LAYOUT 2 COLONNES MOBILE ── */
  .mobile-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: #f5f7fa;
  }
  .mobile-categories-col,
  .mobile-promo-col {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
  }
  .mobile-categories-col h3 {
    font-size: 13px;
    font-weight: 700;
    color: #004080;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #004080;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .mobile-cat-list li a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    padding: 3px 0;
  }
  .mobile-cat-list li a i { width: 14px; font-size: 12px; }
  .mobile-cat-list li a:hover { color: #ff9933; }

  .mobile-promo-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ff9933;
    color: white;
    border-radius: 20px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-promo-empty {
    font-size: 11px;
    color: #999;
    text-align: center;
    line-height: 1.4;
  }
  .mobile-promo-img-row {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    color: #ff9933;
    font-size: 18px;
  }
  .mobile-boutique-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ff9933;
    color: white;
    border-radius: 20px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
  }

  /* ── LAYOUT PRINCIPAL → 1 colonne ── */
  .main-layout {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0 10px;
    margin: 10px auto;
  }
  .sidebar-left  { order: 2; position: static; }
  .sidebar-right { order: 3; position: static; display: block; }
  .main-content  { order: 1; padding: 14px; }

  /* ── BOUTIQUE → 1 colonne ── */
  .boutique-container {
    grid-template-columns: 1fr !important;
    padding: 10px;
    gap: 12px;
  }
  .boutique-sidebar-left,
  .boutique-sidebar-right { display: none; }
  .boutique-main { gap: 12px; }

  /* ── GRILLE PRODUITS → 2 colonnes ── */
  .products-grid-modern {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  /* Carte produit boutique */
  .product-card-modern { border-radius: 10px; }
  .product-overlay     { display: none; }
  .discount-badge      { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
  .product-image-modern { height: 130px; }
  .product-image-modern img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 8px;
  }
  .product-info-modern { padding: 8px 10px 10px; }
  .product-name-modern {
    font-size: 12px; font-weight: 600; color: #004080;
    margin: 0 0 3px; line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
  }
  .product-category-modern { font-size: 10px; color: #999; }
  .product-rating          { display: none; }
  .product-price-modern    { font-size: 13px; font-weight: 700; color: #004080; margin: 5px 0; }
  .product-actions-modern  { display: flex; gap: 5px; }
  .btn-add-cart {
    flex: 1;
    background: #ff9933; color: white;
    border: none; border-radius: 20px;
    padding: 7px 8px; font-size: 11px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 4px; transition: background .2s;
  }
  .btn-add-cart::after { content: ' Panier'; }
  .btn-add-cart:hover  { background: #e68a00; }
  .btn-quick-view,
  .btn-favorite { display: none; }

  /* Carte produit home */
  .product-card  { border-radius: 10px; }
  .product-image { height: 120px; font-size: 2rem; }
  .product-info  { padding: 10px; }
  .product-info h3   { font-size: 12px; margin: 0 0 5px; }
  .current-price     { font-size: 14px; }
  .product-price     { margin-bottom: 8px; }
  .add-to-cart       { padding: 8px 10px; font-size: 11px; border-radius: 20px; }

  /* Barre recherche boutique */
  .search-bar-container { padding: 10px; border-radius: 10px; }
  .search-filters-row   { flex-wrap: wrap; border-radius: 10px; padding: 8px; gap: 6px; }
  .filter-dropdown,
  .sort-dropdown        { display: none; }
  .search-input-wrapper { width: 100%; order: -1; }
  .search-input-modern  { font-size: 14px; padding: 10px 12px 10px 36px; }
  .advanced-filters-toggle { font-size: 12px; }

  /* Titres sections */
  .boutique-title-section h2 { font-size: 16px; }
  .recent-products h2,
  .top-sales h2 { font-size: 16px; margin-bottom: 12px; }
  .sidebar-section { margin-bottom: 16px; }
  .sidebar-section h3 { font-size: 14px; }

  /* Pagination */
  .pagination-modern { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .page-link         { width: 34px; height: 34px; font-size: 13px; }

  /* Footer */
  footer, .footer { padding: 20px 12px; }
  .footer-grid    { grid-template-columns: 1fr 1fr !important; gap: 16px; }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE STANDARD  ≤ 480px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Topbar encore plus compact */
  .topbar { height: 52px; padding: 0 10px; }
  .topbar-logo span { font-size: 14px; }
  /* Masquer le numéro de téléphone, garder juste l'icône */
  .topbar-contact a[href*="tel"] { display: none; }

  /* Partenaires : icônes seulement */
  .partner-btn span,
  .partner-btn { font-size: 11px; padding: 6px 10px; }

  /* Hero mobile */
  .mobile-hero { padding: 14px 12px 10px; }
  .mobile-hero h1 { font-size: 20px; }
  .mobile-hero p  { font-size: 12px; margin-bottom: 10px; }
  .mobile-hero-actions a { font-size: 12px; padding: 9px 10px; }

  /* Layout 2 colonnes mobile */
  .mobile-two-col { gap: 8px; padding: 8px; }
  .mobile-categories-col,
  .mobile-promo-col { padding: 10px; }
  .mobile-categories-col h3 { font-size: 12px; }
  .mobile-cat-list li a { font-size: 11px; }

  /* Grille produits → 2 colonnes serrées */
  .products-grid-modern { gap: 8px; }
  .products-grid        { gap: 8px; }
  .product-image-modern { height: 110px; }
  .product-name-modern  { font-size: 11px; }
  .product-price-modern { font-size: 12px; }
  .btn-add-cart         { font-size: 10px; padding: 6px 6px; }
  .btn-add-cart::after  { content: ''; } /* icône seule sur très petit */

  /* Sidebar home → masquée */
  .sidebar-left,
  .sidebar-right { display: none; }
  .main-layout   { padding: 0 8px; }
  .main-content  { padding: 12px; border-radius: 10px; }

  /* Boutique */
  .boutique-container { padding: 8px; gap: 8px; }
  .search-bar-container { padding: 8px; }

  /* Footer → 1 colonne */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Titres */
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   PETIT MOBILE  ≤ 360px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {

  .topbar-logo span { display: none; } /* logo seul */
  .mobile-hero h1   { font-size: 18px; }

  /* 1 colonne pour les produits sur très petit écran */
  .products-grid-modern { grid-template-columns: 1fr !important; }
  .products-grid        { grid-template-columns: 1fr !important; }
  .product-image-modern { height: 160px; }
  .product-name-modern  { font-size: 13px; }
  .btn-add-cart::after  { content: ' Panier'; }

  /* Layout 2 col mobile → 1 col */
  .mobile-two-col { grid-template-columns: 1fr !important; }

  .partner-btn { padding: 5px 8px; font-size: 10px; }
}


/* ═══════════════════════════════════════════════════════════════════
   UTILITAIRES TOUCH
   ═══════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Agrandir les zones cliquables sur tactile */
  .cat-link,
  .mobile-cat-list li a,
  .partner-btn,
  .btn-add-cart,
  .mobile-cart-btn,
  .mobile-boutique-btn { min-height: 44px; }

  /* Désactiver les effets hover coûteux */
  .product-card-modern:hover { transform: none; }
  .product-card:hover        { transform: none; }
  .top-product:hover         { transform: none; }
}
