/* Variables - Thème MADEA HOUSE */
:root {
    --primary: #F4E4C1;
    --primary-dark: #D4C4A1;
    --secondary: #B8956A;
    --accent: #8B7355;
    --dark: #2c2416;
    --gray: #6b7280;
    --light-gray: #FAF8F3;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info span {
    margin-right: 20px;
}

.header-links a {
    margin-left: 20px;
    opacity: 0.9;
}

.header-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Lien de bascule vers l'admin (staff uniquement) */
.header-links .admin-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: inherit;
    opacity: 1;
    transition: background 0.2s, border-color 0.2s;
}

.header-links .admin-switch-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.7);
    color: inherit;
}

/* Logout button styled as link */
.header-links .logout-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    margin-left: 20px;
    opacity: 0.9;
    padding: 0;
}

.header-links .logout-link:hover {
    opacity: 1;
    color: var(--primary);
}

.header-main {
    padding: 15px 0;
    background: var(--white);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 2px;
}

.logo-slogan {
    font-size: 12px;
    color: var(--secondary);
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* Navigation */
.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    color: var(--dark);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.nav-link-promo {
    color: var(--accent);
    font-weight: 600;
}

.dropdown-icon {
    font-size: 10px;
    transition: var(--transition);
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    color: var(--dark);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.dropdown-header h3 {
    font-size: 18px;
    color: var(--accent);
}

.view-all {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--dark);
    transition: var(--transition);
}

.subcategory-item:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(5px);
}

.subcategory-name {
    font-weight: 500;
}

.subcategory-count {
    font-size: 12px;
    opacity: 0.7;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.cart-btn {
    position: relative;
    padding: 10px;
    border-radius: 50%;
    color: var(--dark);
}

.search-btn:hover,
.cart-btn:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 18px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    outline: none;
    background: var(--white);
}

.search-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--gray);
    padding: 5px;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

/* Carrousel Hero */
.carousel-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 36, 22, 0.4), rgba(44, 36, 22, 0.7));
    z-index: 1;
    pointer-events: none;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.carousel-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-style: italic;
}

.carousel-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.categories-showcase,
.featured-products,
.values-section {
    padding: 80px 20px;
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 50px;
    font-style: italic;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--primary);
}

.category-image {
    margin-bottom: 20px;
}

.category-icon {
    font-size: 60px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent);
}

.category-card p {
    color: var(--gray);
}

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

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--light-gray);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

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

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 14px;
}

.price-current {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent);
}

.product-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--primary);
    color: var(--dark);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Values Section */
.values-section {
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
}

.value-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent);
}

.value-item p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    color: var(--primary);
}

.footer-logo .logo-slogan {
    color: var(--secondary);
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 228, 193, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary);
}

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

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

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

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

.newsletter-text {
    margin-bottom: 15px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--secondary);
    color: var(--white);
}

.payment-methods {
    margin-top: 20px;
}

.payment-text {
    opacity: 0.8;
    font-size: 14px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Équivalent Bootstrap d-none (Bootstrap CSS non chargé) */
.d-none { display: none !important; }

/* Prévenir le scroll horizontal sur toute la page */
html, body { overflow-x: hidden; }

/* ============================================================
   SAFE AREAS — iOS notch / barre du bas
   ============================================================ */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
}

/* ============================================================
   DRAWER MOBILE — navigation latérale
   ============================================================ */

/* Overlay assombrissant */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 22, 0.55);
    z-index: 1500;
    animation: overlayIn 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

body.menu-open {
    overflow: hidden;
    /* Empêche le bounce iOS de scroller le body */
    touch-action: none;
}

/* Panneau latéral */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 92vw);
    background: var(--white);
    z-index: 1600;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -6px 0 40px rgba(44, 36, 22, 0.18);
    padding-bottom: calc(16px + var(--safe-bottom));
}

body.menu-open .mobile-drawer {
    transform: translateX(0);
}

/* En-tête du drawer */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
    flex-shrink: 0;
}

.drawer-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
}

.drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    flex-shrink: 0;
    transition: var(--transition);
}

.drawer-close:hover,
.drawer-close:focus {
    background: var(--primary);
    outline: none;
}

/* Section compte */
.drawer-account {
    padding: 14px 18px;
    background: var(--light-gray);
    border-bottom: 2px solid var(--primary-dark);
    flex-shrink: 0;
}

.drawer-account-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    min-height: 44px;
    transition: var(--transition);
}

.drawer-account-link:hover,
.drawer-account-link:focus {
    background: var(--primary);
    color: var(--dark);
    outline: none;
}

.drawer-account-link.accent {
    background: var(--accent);
    color: var(--white);
}

.drawer-account-link.accent:hover {
    background: var(--secondary);
    color: var(--white);
}

.drawer-account-link svg,
.drawer-logout-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.drawer-logout-form {
    margin: 0;
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: none;
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
    min-height: 44px;
    text-align: left;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Navigation du drawer */
.drawer-nav {
    flex: 1;
    padding: 8px 0;
}

.drawer-nav-list {
    list-style: none;
}

.drawer-nav-item {
    border-bottom: 1px solid var(--light-gray);
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    min-height: 52px;
    transition: var(--transition);
    text-decoration: none;
}

.drawer-nav-link:hover,
.drawer-nav-link:focus {
    background: var(--light-gray);
    color: var(--accent);
    outline: none;
}

.drawer-nav-link.promo {
    color: var(--accent);
    font-weight: 700;
}

.drawer-nav-link svg {
    opacity: 0.4;
    flex-shrink: 0;
}

/* Catégories avec accordéon (<details>/<summary>) */
.drawer-category {
    border-bottom: 1px solid var(--light-gray);
}

.drawer-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    width: 100%;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    min-height: 52px;
    cursor: pointer;
    transition: var(--transition);
    list-style: none;
    font-family: inherit;
    background: none;
    border: none;
}

/* Supprimer la flèche native des navigateurs */
.drawer-category-toggle::-webkit-details-marker,
.drawer-category-toggle::marker {
    display: none;
}

.drawer-category-toggle:hover,
.drawer-category-toggle:focus {
    background: var(--light-gray);
    outline: none;
}

.drawer-category-arrow {
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.25s ease;
}

.drawer-category[open] .drawer-category-arrow {
    transform: rotate(90deg);
}

.drawer-category[open] > .drawer-category-toggle {
    color: var(--accent);
    background: var(--light-gray);
}

.drawer-subcategories {
    list-style: none;
    background: #F9F6F0;
    padding: 6px 0;
    animation: subIn 0.2s ease;
}

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

.drawer-subcategories li a {
    display: flex;
    align-items: center;
    padding: 10px 18px 10px 34px;
    color: var(--gray);
    font-size: 14px;
    min-height: 44px;
    transition: var(--transition);
    text-decoration: none;
}

.drawer-subcategories li a:hover {
    color: var(--accent);
    background: var(--primary);
}

.drawer-subcategories li a.view-all-sub {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Coordonnées rapides */
.drawer-contact {
    padding: 14px 18px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.drawer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--light-gray);
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    transition: var(--transition);
    text-decoration: none;
}

.drawer-contact-link:hover {
    background: var(--primary);
}

.drawer-contact-link.whatsapp {
    background: #dcfce7;
    color: #166534;
}

.drawer-contact-link.whatsapp:hover {
    background: #bbf7d0;
}

/* ============================================================
   RESPONSIVE — Breakpoints
   ============================================================ */

/* ── Tablette large ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-list {
        gap: 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .carousel-title {
        font-size: 40px;
    }
}

/* ── Tablette / mobile ──────────────────────────────────── */
@media (max-width: 768px) {

    /* -- Header -- */
    .header-top {
        display: none;
    }

    .main-nav {
        display: none; /* remplacé par le drawer */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-image {
        height: 42px;
    }

    .logo-text {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .logo-slogan {
        font-size: 10px;
    }

    .header-main {
        padding: 10px 0;
    }

    .header-actions {
        gap: 8px;
    }

    .search-btn,
    .cart-btn {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* -- Hero Carousel -- */
    .carousel-hero {
        height: clamp(260px, 55vw, 380px);
    }

    .carousel-title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 10px;
    }

    .carousel-subtitle {
        font-size: clamp(13px, 3.5vw, 18px);
        margin-bottom: 18px;
    }

    .carousel-btn {
        padding: 10px 26px;
        font-size: 13px;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    /* -- Sections -- */
    .categories-showcase,
    .featured-products,
    .values-section {
        padding: 50px 16px;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* -- Grilles produits / catégories -- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 24px 14px;
    }

    .category-icon {
        font-size: 40px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .product-image {
        height: 220px;
    }

    .product-name {
        font-size: 15px;
    }

    .price-current {
        font-size: 18px;
    }

    /* -- Values -- */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* -- Footer -- */
    .footer-main {
        padding: 40px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input {
        border-radius: 8px;
    }

    .newsletter-form button {
        border-radius: 8px;
        width: 100%;
        padding: 12px;
    }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {

    .container {
        padding: 0 14px;
    }

    /* -- Header -- */
    .logo-text-container {
        display: none; /* logo seul sur très petit écran */
    }

    .logo-image {
        height: 38px;
    }

    /* -- Carousel -- */
    .carousel-hero {
        height: clamp(220px, 60vw, 280px);
    }

    .carousel-subtitle {
        display: none; /* trop chargé sur 375px */
    }

    .carousel-content {
        width: 92%;
    }

    /* -- Grilles -- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-btn {
        padding: 10px;
        font-size: 13px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* -- Footer -- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-main {
        padding: 30px 14px;
    }

    .social-links {
        gap: 10px;
    }
}

/* ── Très petit mobile (320px) ──────────────────────────── */
@media (max-width: 360px) {

    .logo-image {
        height: 34px;
    }

    .header-actions {
        gap: 4px;
    }

    .products-grid,
    .categories-grid {
        gap: 8px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 10px 8px;
    }

    .carousel-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* ── Réduction des animations (accessibilité) ───────────── */
@media (prefers-reduced-motion: reduce) {
    .mobile-drawer,
    .mobile-overlay,
    .carousel-slide,
    .product-card,
    .category-card {
        transition: none !important;
        animation: none !important;
    }
}