/* ============================================
   HAJ MOTO — Front CSS
   Design moderne racing : noir profond + rouge
   ============================================ */
:root {
    /* Palette inspirée de la devanture Haj Moto : bleu profond + rouge */
    --dark: #1b2f80;
    --dark-2: #16266b;
    --dark-3: #101c52;
    --red: #e01f26;
    --red-dark: #b8161d;
    --white: #ffffff;
    --grey: #8a8a93;
    --grey-light: #f4f5f9;
    --border: #e3e5ee;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(27, 47, 128, .10);
    --shadow-lg: 0 16px 48px rgba(27, 47, 128, .18);
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: #202742;
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }

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

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 14px;
    padding: 12px 26px; border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; transition: all .22s ease; text-transform: uppercase; letter-spacing: .4px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(228, 37, 44, .35); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--grey-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-ghost { background: var(--grey-light); color: var(--dark); }
.btn-ghost:hover { background: var(--border); }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 12px; }
.btn-whatsapp:hover { background: #1eb955; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 200; background: #fff;
    transition: transform .35s ease;
    box-shadow: 0 2px 12px rgba(14, 14, 16, .06);
}
.site-header.header-hidden { transform: translateY(-100%); }

.header-top { background: var(--dark-3); color: #a8b3dd; font-size: 12.5px; }
.header-top-inner { display: flex; justify-content: space-between; padding: 8px 24px; }
.header-top-links a { color: #a8b3dd; margin-left: 16px; }
.header-top-links a:hover { color: #fff; }

.header-main {
    display: flex; align-items: center; gap: 32px; padding: 18px 24px;
}
.brand { display: flex; align-items: baseline; gap: 6px; }
.brand img { height: 110px; width: auto; }
.brand-mark { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--dark); letter-spacing: -1px; }
.brand-sub { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--red); letter-spacing: 3px; }

.header-search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; }
.header-search input {
    flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-right: 0;
    border-radius: 8px 0 0 8px; font-size: 14px; outline: none; font-family: var(--font-body);
}
.header-search input:focus { border-color: var(--dark); }
.header-search button {
    padding: 0 22px; background: var(--dark); color: #fff; border: 0;
    border-radius: 0 8px 8px 0; cursor: pointer; transition: background .2s;
}
.header-search button:hover { background: var(--red); }

.header-cart { position: relative; color: var(--dark); padding: 8px; }
.header-cart:hover { color: var(--red); }

.header-account { position: relative; color: var(--dark); padding: 8px; }
.header-account:hover { color: var(--red); }
.status-dot {
    position: absolute; bottom: 6px; right: 4px; width: 11px; height: 11px;
    background: #22c55e; border: 2px solid #fff; border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, .7);
}
.social-icon { display: inline-flex; align-items: center; padding: 2px; }
.social-icon:hover { color: #fff; }
.social-icon svg { display: block; }
.cart-badge {
    position: absolute; top: 0; right: 0; background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.main-nav { background: var(--dark); }
.main-nav-inner { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a {
    position: relative;
    color: #d8def5; font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .5px; padding: 15px 18px; white-space: nowrap;
    transition: color .25s ease;
}
.main-nav a::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 10px;
    height: 2px; background: #fff; border-radius: 1px;
    transform: scaleX(0); transform-origin: left center;
    transition: transform .3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Flash ---------- */
.flash { padding: 14px 20px; border-radius: 8px; margin: 18px 0; font-size: 14px; font-weight: 500; }
.flash-success { background: #e7f7ec; color: #1c7c3c; border: 1px solid #bfe8cc; }
.flash-error { background: #fdeaea; color: #b71c22; border: 1px solid #f6c6c8; }

/* ---------- Blocs CMS ---------- */
.block-hero {
    position: relative; min-height: 540px; display: flex; align-items: center;
    background: var(--dark) center/cover no-repeat; color: #fff;
}
.block-hero.has-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(13, 22, 62, .90) 20%, rgba(13, 22, 62, .40) 70%, rgba(13, 22, 62, .15));
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; margin-left: 0; padding: 80px 24px; }
.block-hero h1 {
    font-size: clamp(36px, 5.5vw, 62px); font-weight: 900; text-transform: uppercase;
    letter-spacing: -1px; margin-bottom: 18px;
}
.block-hero p { font-size: 18px; color: #cfcfd6; margin-bottom: 30px; max-width: 480px; }
.hero-default { background-image: linear-gradient(135deg, #101c52, #1b2f80 55%, #2a44a8); }

/* ---------- Hero Carousel ---------- */
.hero-slider { position: relative; min-height: 540px; overflow: hidden; background: var(--dark-3); }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background: center/cover no-repeat; color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slider.has-overlay .hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(13, 22, 62, .90) 20%, rgba(13, 22, 62, .40) 70%, rgba(13, 22, 62, .15));
}
.hero-slide .hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 80px 24px; }
.hero-slide h1 {
    font-size: clamp(36px, 5.5vw, 62px); font-weight: 900; text-transform: uppercase;
    letter-spacing: -1px; margin-bottom: 18px;
}
.hero-slide p { font-size: 18px; color: #d6dbf2; margin-bottom: 30px; max-width: 480px; }
.hs-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: background .2s;
}
.hs-btn:hover { background: var(--red); }
.hs-btn.prev { left: 20px; }
.hs-btn.next { right: 20px; }
.hs-dots {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.hs-dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
    background: transparent; cursor: pointer; padding: 0; transition: all .2s;
}
.hs-dot.active, .hs-dot:hover { background: var(--red); border-color: var(--red); }

.section-title { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: -.5px; }
.section-title::after {
    content: ''; display: block; width: 56px; height: 4px; background: var(--red);
    margin-top: 10px; border-radius: 2px;
}
.section-sub { color: var(--grey); margin: 14px 0 8px; max-width: 640px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.link-more { font-weight: 600; font-size: 14px; color: var(--red); }
.link-more:hover { text-decoration: underline; }

.block-tti { padding: 72px 0; }
.tti-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.tti-content h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 18px; }
.tti-content .rich-text { color: #4a4a52; font-size: 15.5px; }
.tti-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.block-cta { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.block-cta h2 { font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; }
.block-cta p { opacity: .92; margin-top: 8px; max-width: 560px; }

.block-contact { padding: 72px 0; background: var(--grey-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; margin-top: 28px; align-items: start; }
.contact-grid.no-side { grid-template-columns: 1fr; max-width: 720px; }
.contact-side {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; font-size: 15px; color: #33394f;
}
.contact-side h3 {
    font-size: 17px; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px;
}
.contact-side h3:first-child { margin-top: 0; }
.contact-side ul { padding-left: 20px; margin: 8px 0; }
.contact-side a { color: #33394f; text-decoration: none; }
.contact-side a:hover { color: var(--dark); text-decoration: underline; }
.contact-map { margin-top: 36px; }
.contact-map iframe {
    width: 100%; height: 420px; border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow); display: block;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea,
.checkout-form input, .checkout-form textarea {
    width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: var(--font-body); outline: none; background: #fff;
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus,
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--dark); }
.contact-form button { align-self: flex-start; }

.block-title-image { padding: 64px 0; }
.ti-image { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 28px; width: 100%; object-fit: cover; }

.block-carousel { padding: 64px 0; }
.carousel { position: relative; margin-top: 28px; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 420px; object-fit: cover; }
.carousel-caption {
    position: absolute; left: 24px; bottom: 24px; background: rgba(16, 28, 82, .85); color: #fff;
    padding: 10px 20px; border-radius: 8px; font-family: var(--font-head); font-weight: 700;
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
    color: var(--dark); font-size: 18px; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--red); color: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.block-featured { padding: 72px 0; }

/* ---------- Grille produits ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.product-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-media { position: relative; aspect-ratio: 1; background: var(--grey-light); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.badge {
    position: absolute; top: 12px; left: 12px; font-family: var(--font-head); font-weight: 700;
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    padding: 5px 12px; border-radius: 6px;
}
.badge-sale { background: var(--red); color: #fff; }
.badge-out { background: var(--dark); color: #fff; top: 12px; right: 12px; left: auto; }
.product-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-brand { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.product-card-body h3 { font-size: 15px; font-weight: 700; }
.product-card-body h3 a:hover { color: var(--red); }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price-current { font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.price-old { color: var(--grey); text-decoration: line-through; font-size: 13.5px; }
.product-price-lg .price-current { font-size: 30px; color: var(--red); }
.product-price-lg .price-old { font-size: 17px; }
.save-badge { background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.card-add { margin-top: 10px; }
.card-add .btn { width: 100%; }

/* ---------- Boutique ---------- */
.shop-hero { background: var(--dark); color: #fff; padding: 44px 0; }
.shop-hero h1 { font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; }
.shop-hero p { color: var(--grey); margin-top: 6px; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 40px 24px 72px; }

.shop-filters { position: sticky; top: 20px; align-self: start; }
.filter-group {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; margin-bottom: 16px;
}
.filter-group h4 {
    font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 2px solid var(--grey-light);
}
.filter-option {
    display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 5px 0;
    cursor: pointer; color: #3c3c44;
}
.filter-option:hover { color: var(--red); }
.filter-option input { accent-color: var(--red); }
.filter-child { padding-left: 22px; }
.filter-option .count { color: var(--grey); font-size: 12px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-inputs input {
    width: 100%; padding: 9px 10px; border: 2px solid var(--border); border-radius: 6px;
    font-size: 13px; outline: none;
}
.price-inputs input:focus { border-color: var(--dark); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-note { font-size: 14px; color: var(--grey); }
.sort-form { margin-left: auto; }
.sort-form select {
    padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 13.5px;
    font-family: var(--font-body); outline: none; background: #fff; cursor: pointer;
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .page-current {
    min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: 600; font-size: 14px; border: 2px solid var(--border);
    transition: all .2s; padding: 0 8px;
}
.pagination a:hover { border-color: var(--dark); }
.page-current { background: var(--dark); color: #fff; border-color: var(--dark); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--grey); }
.empty-state p { margin-bottom: 20px; font-size: 16px; }

/* ---------- Fiche produit ---------- */
.breadcrumbs { padding: 20px 24px 0; font-size: 13px; color: var(--grey); }
.breadcrumbs a:hover { color: var(--red); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 32px 24px 64px; }

.gallery-main {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--grey-light); aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
    width: 76px; height: 76px; border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--border); background: none; padding: 0; transition: border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--red); }

.product-info h1 { font-size: clamp(24px, 3vw, 36px); margin: 6px 0 8px; }
.sku { color: var(--grey); font-size: 13px; margin-bottom: 12px; }
.stock-line { margin: 14px 0; }
.stock { font-weight: 600; font-size: 14px; }
.in-stock { color: #1c7c3c; }
.out-stock { color: var(--red-dark); }
.backorder { color: #c77b00; }
.short-desc { color: #4a4a52; margin: 12px 0 22px; }

.add-to-cart { display: flex; gap: 14px; align-items: stretch; margin-top: 10px; }
.qty-control { display: flex; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-control button {
    width: 42px; border: 0; background: var(--grey-light); font-size: 18px; cursor: pointer;
    transition: background .2s;
}
.qty-control button:hover { background: var(--border); }
.qty-control input {
    width: 56px; text-align: center; border: 0; font-size: 15px; font-weight: 600; outline: none;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-description, .related-products { padding: 0 24px 64px; }
.product-description .rich-text { margin-top: 22px; color: #4a4a52; max-width: 880px; }
.related-products .product-grid { margin-top: 28px; }

/* ---------- Panier / Checkout ---------- */
.page-head { padding: 40px 24px 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; }

.cart-layout, .checkout-layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding-bottom: 72px; margin-top: 24px;
}
.cart-table { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
    display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 18px; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.cart-media img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--grey-light); }
.cart-info { display: flex; flex-direction: column; gap: 4px; }
.cart-info a { font-weight: 600; }
.cart-info a:hover { color: var(--red); }
.cart-unit { color: var(--grey); font-size: 13px; }
.cart-line-total { font-family: var(--font-head); font-weight: 800; }
.cart-remove {
    width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--grey-light);
    cursor: pointer; color: var(--grey); transition: all .2s;
}
.cart-remove:hover { background: var(--red); color: #fff; }

.cart-summary {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; align-self: start; position: sticky; top: 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.cart-summary h3 { font-size: 18px; margin-bottom: 6px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; color: #3c3c44; gap: 12px; }
.summary-total {
    border-top: 2px solid var(--grey-light); padding-top: 12px; margin-top: 6px;
    font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--dark);
}

.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form h3 { margin-bottom: 6px; }
.payment-note {
    background: var(--grey-light); border-radius: 8px; padding: 16px 18px; font-size: 14px;
}
.payment-note p { color: var(--grey); margin-top: 4px; }

.confirmation { padding: 64px 24px; display: flex; justify-content: center; }
.confirmation-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 48px; max-width: 560px; text-align: center;
}
.check-icon {
    width: 72px; height: 72px; border-radius: 50%; background: #e7f7ec; color: #1c7c3c;
    font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.confirmation-card h1 { font-size: 26px; margin-bottom: 12px; }
.confirmation-card p { color: #4a4a52; }
.confirmation-details {
    margin: 26px 0; text-align: left; display: flex; flex-direction: column; gap: 10px;
    border-top: 1px solid var(--border); padding-top: 20px;
}

/* ---------- Espace client ---------- */
.account-auth { display: flex; justify-content: center; padding: 56px 24px; }
.auth-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 40px; width: 100%; max-width: 520px;
}
.auth-card h1 { font-size: 26px; text-transform: uppercase; }
.auth-sub { color: var(--grey); margin: 6px 0 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card label, .account-form label {
    display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #3c3c44;
}
.auth-card input, .account-form input, .account-form textarea {
    width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: var(--font-body); outline: none; background: #fff;
    transition: border-color .2s;
}
.auth-card input:focus, .account-form input:focus, .account-form textarea:focus { border-color: var(--dark); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--grey); }
.auth-alt a { color: var(--red); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 24px 72px; }
.account-nav {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; align-self: start; position: sticky; top: 90px;
    display: flex; flex-direction: column; gap: 2px;
}
.account-hello { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 2px solid var(--grey-light); }
.account-avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-hello strong { display: block; font-size: 14.5px; }
.account-status { color: #22c55e; font-size: 12px; font-weight: 600; }
.account-nav a {
    padding: 11px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.account-nav a:hover { background: var(--grey-light); }
.account-nav a.active { background: var(--dark); color: #fff; }
.logout-link { color: var(--red-dark); }

.account-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.account-panel {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.account-panel h2 { font-size: 19px; margin-bottom: 14px; }
.muted-text { color: var(--grey); font-size: 14px; margin-bottom: 12px; }
.account-form .field { margin-bottom: 14px; }
.account-form .account-panel { margin-bottom: 20px; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr auto auto; gap: 16px; align-items: center;
    border: 2px solid var(--border); border-radius: 10px; padding: 15px 18px;
    transition: border-color .18s, transform .18s;
}
.order-row:hover { border-color: var(--dark); transform: translateX(3px); }
.order-cell { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.order-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--grey); font-weight: 600; }
.order-arrow { color: var(--grey); font-size: 17px; }
.order-status {
    display: inline-block; padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
}
.order-status.status-pending { background: #fff3e0; color: #c77b00; }
.order-status.status-confirmed { background: #e3f2fd; color: #1565c0; }
.order-status.status-processing { background: #ede7f6; color: #6a3fb5; }
.order-status.status-shipped { background: #e0f2f1; color: #00796b; }
.order-status.status-delivered { background: #e7f7ec; color: #1c7c3c; }
.order-status.status-cancelled { background: #fdeaea; color: #b71c22; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }

.page-404 { text-align: center; padding: 100px 24px; }
.page-404 h1 { font-size: 100px; color: var(--red); }
.page-404 p { color: var(--grey); margin: 12px 0 26px; }
.page-plain { padding: 48px 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9c2e6; margin-top: 40px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; padding: 56px 24px 40px;
}
.footer-logo { max-height: 64px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.site-footer a { display: block; padding: 4px 0; font-size: 14px; transition: color .2s; }
.site-footer a:hover { color: var(--red); }
.site-footer p { font-size: 14px; padding: 3px 0; }
.footer-bottom { border-top: 1px solid #2c3f8f; padding: 18px 0; font-size: 13px; color: #9aa5cf; }

/* ---------- Burger (caché sur desktop) ---------- */
.burger { display: none; }
.filters-toggle { display: none; }
.mobile-nav-head { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    /* Header + burger */
    .header-main { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .brand img { height: 64px; }
    .header-search { order: 3; min-width: 100%; }
    .header-cart { margin-left: auto; }

    .burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        background: none; border: 0; padding: 10px 6px; cursor: pointer;
    }
    .burger span {
        width: 26px; height: 3px; background: var(--dark); border-radius: 2px;
        transition: transform .3s ease, opacity .3s ease;
    }
    body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.nav-open .burger span:nth-child(2) { opacity: 0; }
    body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Menu mobile : panneau plein écran glissant de gauche à droite */
    .main-nav {
        position: fixed; top: 0; left: -102%; width: 100%; height: 100%; z-index: 500;
        background: linear-gradient(160deg, var(--dark-3), var(--dark));
        visibility: hidden;
        transition: left .38s cubic-bezier(.22, .8, .3, 1), visibility .38s;
        overflow-y: auto; display: flex; flex-direction: column;
    }
    body.nav-open .main-nav { left: 0; visibility: visible; }
    body.nav-open { overflow: hidden; }

    .mobile-nav-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .mobile-nav-title {
        font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff;
        text-transform: uppercase; letter-spacing: 1px;
    }
    .nav-close {
        width: 42px; height: 42px; border-radius: 50%; border: 0;
        background: rgba(255,255,255,.12); color: #fff; font-size: 17px; cursor: pointer;
        transition: background .2s;
    }
    .nav-close:hover { background: var(--red); }

    .main-nav-inner { flex-direction: column; gap: 0; padding: 12px 0; }
    .main-nav a {
        padding: 17px 26px; border-bottom: 1px solid rgba(255,255,255,.07);
        font-size: 16px;
        opacity: 0; transform: translateX(-24px);
    }
    body.nav-open .main-nav a {
        opacity: 1; transform: translateX(0);
        transition: opacity .35s ease, transform .35s ease;
    }
    body.nav-open .main-nav a:nth-child(1) { transition-delay: .10s; }
    body.nav-open .main-nav a:nth-child(2) { transition-delay: .15s; }
    body.nav-open .main-nav a:nth-child(3) { transition-delay: .20s; }
    body.nav-open .main-nav a:nth-child(4) { transition-delay: .25s; }
    body.nav-open .main-nav a:nth-child(5) { transition-delay: .30s; }
    body.nav-open .main-nav a:nth-child(6) { transition-delay: .35s; }
    body.nav-open .main-nav a:nth-child(7) { transition-delay: .40s; }
    body.nav-open .main-nav a:nth-child(8) { transition-delay: .45s; }
    body.nav-open .main-nav a:nth-child(n+9) { transition-delay: .5s; }
    .main-nav a::after { display: none; }
    .main-nav a:hover { background: rgba(255,255,255,.06); }

    /* Boutique : filtres repliables */
    .shop-layout { grid-template-columns: 1fr; padding: 24px 16px 56px; gap: 18px; }
    .filters-toggle { display: inline-flex; justify-self: start; }
    .shop-filters { display: none; position: static; }
    .shop-filters.open { display: block; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-map iframe { height: 280px; }

    /* Espace client */
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .order-row { grid-template-columns: 1fr 1fr; }
    .order-arrow { display: none; }

    /* Grilles & sections */
    .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 24px 16px 48px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .tti-grid { grid-template-columns: 1fr; gap: 28px; }
    .tti-image { order: -1; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-top-inner { flex-direction: column; gap: 2px; text-align: center; padding: 6px 12px; }
    .brand img { height: 52px; }

    /* Hero */
    .block-hero, .hero-slider { min-height: 380px; }
    .hero-inner, .hero-slide .hero-inner { padding: 48px 16px 64px; }
    .block-hero h1, .hero-slide h1 { font-size: clamp(28px, 8vw, 38px); }
    .block-hero p, .hero-slide p { font-size: 15.5px; }
    .hs-btn { width: 38px; height: 38px; }
    .hs-btn.prev { left: 10px; }
    .hs-btn.next { right: 10px; }

    /* Sections */
    .block-tti, .block-featured, .block-contact, .block-carousel, .block-title-image { padding: 44px 0; }
    .block-cta { padding: 40px 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }

    /* Produits : 2 colonnes */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 12px; gap: 6px; }
    .product-card-body h3 { font-size: 13.5px; }
    .price-current { font-size: 15px; }
    .price-old { font-size: 12px; }
    .card-add .btn { padding: 8px 10px; font-size: 11px; }
    .badge { font-size: 10px; padding: 4px 9px; }

    /* Fiche produit */
    .product-price-lg .price-current { font-size: 24px; }
    .add-to-cart { flex-wrap: wrap; }
    .add-to-cart .btn { flex: 1; min-width: 200px; }
    .product-description, .related-products { padding: 0 16px 44px; }

    /* Boutique */
    .shop-hero { padding: 28px 0; }
    .shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .sort-form { margin-left: 0; }
    .sort-form select { width: 100%; }
    .pagination a, .page-current { min-width: 38px; height: 38px; font-size: 13px; }

    /* Panier */
    .form-row { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 70px 1fr auto; grid-template-rows: auto auto; gap: 10px 14px; }
    .cart-media { grid-row: span 2; }
    .cart-media img { width: 70px; height: 70px; }
    .cart-line-total, .qty-control { grid-column: 2; justify-self: start; }
    .cart-remove { grid-column: 3; grid-row: 1; }

    /* Carousel */
    .carousel-slide img { height: 210px; }
    .carousel-caption { left: 12px; bottom: 12px; padding: 7px 14px; font-size: 13px; }
    .carousel-btn { width: 38px; height: 38px; }

    /* Divers */
    .page-head { padding: 28px 16px 6px; }
    .confirmation-card { padding: 28px 20px; }
    .footer-grid { padding: 40px 16px 28px; gap: 28px; }
    .breadcrumbs { padding: 14px 16px 0; }
    .flash { margin: 12px 0; padding: 12px 14px; font-size: 13px; }
}
