:root {
    --navy-950: #050e1f;
    --navy-900: #0a1f3d;
    --navy-800: #123258;
    --navy-700: #1c4271;
    --gold-400: #f5c451;
    --gold-500: #dba632;
    --gold-600: #b9861f;
    --surface: #ffffff;
    --surface-soft: #f4f6fa;
    --text-main: #1c2733;
    --text-muted: #64748b;
    --shadow-color: 210, 30%, 15%;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    background: var(--surface);
}

a {
    color: var(--navy-800);
}

.text-gold { color: var(--gold-500) !important; }

/* ---------- Buttons: raised / pressed 3D ---------- */
.btn-gold {
    background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
    border: 1px solid var(--gold-600);
    color: var(--navy-950);
    font-weight: 600;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 -2px 0 rgba(0, 0, 0, 0.12) inset,
        0 6px 14px rgba(184, 134, 31, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold:hover {
    color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 -2px 0 rgba(0, 0, 0, 0.12) inset,
        0 10px 22px rgba(184, 134, 31, 0.45);
}

.btn-gold:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset,
        0 3px 8px rgba(184, 134, 31, 0.35);
}

.btn-outline-primary {
    color: var(--navy-800);
    border-color: var(--navy-800);
}

.btn-outline-primary:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
}

.text-primary { color: var(--navy-800) !important; }

/* ---------- Top bar + navbar (glass over navy gradient) ---------- */
.top-bar {
    background: var(--navy-950);
    color: #cfd8e3;
}

.main-nav {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
    box-shadow: 0 4px 18px rgba(5, 14, 31, 0.35);
    border-bottom: 1px solid rgba(245, 196, 81, 0.15);
}

.main-nav .navbar-nav {
    gap: 0.15rem;
}

.main-nav .nav-link {
    color: #dbe3ee;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.main-nav .nav-link:hover {
    color: var(--gold-400);
}

.main-nav .nav-link.active {
    color: var(--gold-400);
    font-weight: 700;
}

.main-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: -2px;
    height: 2px;
    background: var(--gold-400);
    border-radius: 2px;
}

.nav-dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 20px 40px -12px rgba(10, 31, 61, 0.35);
    padding: 0.5rem;
}

.nav-dropdown-menu .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.nav-dropdown-menu .dropdown-item:hover {
    background: var(--surface-soft);
    color: var(--navy-900);
}

/* ---------- Mega-menu "Catégories" ---------- */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 24px 48px -16px rgba(10, 31, 61, 0.4);
    padding: 1.5rem;
    margin-top: 0.4rem;
}

@media (min-width: 992px) {
    .mega-menu {
        min-width: 640px;
    }
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

@media (max-width: 640px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.mega-menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--navy-900);
    text-decoration: none;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-400);
    margin-bottom: 0.6rem;
}

.mega-menu-title i {
    color: var(--gold-600);
}

.mega-menu-title:hover {
    color: var(--gold-600);
}

.mega-menu-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-sublist li {
    margin-bottom: 0.35rem;
}

.mega-menu-sublist a {
    color: #5b6472;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .mega-menu-title {
        font-size: 0.95rem;
    }

    .mega-menu-sublist a {
        font-size: 0.78rem;
    }

    .mega-menu-sublist li {
        margin-bottom: 0.25rem;
    }
}

.mega-menu-sublist a:hover {
    color: var(--navy-800);
    text-decoration: underline;
}

@media (min-width: 992px) {
    .main-nav form.d-flex {
        max-width: 260px;
    }
}

.search-nav-wrapper {
    position: relative;
}

.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    max-height: 420px;
    overflow-y: auto;
    color: var(--navy-900, #14213d);
}

.search-suggestions-dropdown.show {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-suggestion-item:last-of-type {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(0, 0, 0, 0.05);
}

.search-suggestion-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
    background: #f1f1f1;
}

.search-suggestion-info {
    min-width: 0;
    flex: 1;
}

.search-suggestion-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-suggestion-meta {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-viewall {
    display: block;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800, #1b2a4a);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.02);
}

.search-suggestion-viewall:hover {
    background: rgba(0, 0, 0, 0.06);
}

.search-suggestion-empty {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.main-nav .navbar-brand {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    padding: 0;
}

.navbar-logo {
    height: 48px;
    width: auto;
}

.footer-logo {
    height: 56px;
    width: auto;
}

.main-nav form .btn-gold {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* ---------- Section titles ---------- */
.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
    color: var(--navy-900);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 2px 6px rgba(219, 166, 50, 0.5);
}

/* ---------- Hero: layered depth ---------- */
.hero-slide {
    min-height: 440px;
    height: auto;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: auto;
        padding: 2.5rem 0;
    }
    .hero-promo-row {
        gap: 1.25rem;
    }
    .hero-promo-image img {
        max-height: 130px;
    }
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 196, 81, 0.18), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.hero-slide-1 { background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); }
.hero-slide-2 { background: linear-gradient(135deg, #0c0c10, var(--navy-900)); }
.hero-slide-3 { background: linear-gradient(135deg, var(--navy-950), #1f5583); }
.hero-slide-promo { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }

.hero-promo-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hero-promo-image {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-promo-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

@media (max-width: 767px) {
    .hero-promo-row {
        flex-direction: column;
        text-align: center;
    }
    .hero-promo-image {
        flex-basis: auto;
    }
    .hero-promo-image img {
        max-height: 160px;
    }
}

.badge-promo {
    display: inline-block;
    background: linear-gradient(135deg, #ff5f45, #e8380d);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(232, 56, 13, 0.4);
}

.badge-discount {
    display: inline-block;
    background: var(--gold-400);
    color: var(--navy-950);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.badge-occasion {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(135deg, #ff9a3d, #d9600a);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(217, 96, 10, 0.4);
}

.hero-promo-prix {
    font-size: 1.1rem;
}

.hero-prix-barre {
    text-decoration: line-through;
    color: #b8c2d0;
    margin-right: 0.6rem;
}

.hero-prix-promo {
    color: var(--gold-400);
    font-weight: 800;
    font-size: 1.6rem;
}

.hero-caption {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 620px;
    padding: 2rem 2.25rem;
    background: rgba(6, 14, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-caption .hero-title {
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.3;
    min-height: 2.6em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hero-caption p {
    color: #eef2f7;
    line-height: 1.5;
    min-height: 3em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-caption {
        padding: 1.5rem 1.25rem;
    }
    .hero-caption .hero-title {
        font-size: 1.35rem;
    }
}

.carousel-indicators [data-bs-target] {
    background-color: var(--gold-400);
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--navy-950);
    background-size: 55%;
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--gold-400);
    transform: scale(1.08);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1) grayscale(1) brightness(0.2);
}

/* ---------- Category cards: photo + sous-catégories ---------- */
.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #8a92a0;
    margin: -0.5rem 0 1.25rem;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cat-card {
    background: var(--navy-900);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: 0 1px 2px rgba(5, 14, 31, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 44px -18px rgba(5, 14, 31, 0.5);
}

.cat-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-photo {
    transform: scale(1.06);
}

.cat-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5, 14, 31, 0.15) 0%,
        rgba(5, 14, 31, 0.35) 42%,
        rgba(5, 14, 31, 0.92) 78%,
        rgba(5, 14, 31, 0.98) 100%);
}

.cat-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
}

.cat-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.cat-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cat-card .sub-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.cat-card .sub-pill {
    font-size: 0.74rem;
    font-weight: 600;
    color: #eef1f5;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 0.3rem 0.72rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.cat-card:hover .sub-pill {
    border-color: var(--gold-400);
    background: rgba(219, 166, 50, 0.18);
}

.cat-card .sub-pill.more {
    background: transparent;
    border-style: dashed;
    color: rgba(255, 255, 255, 0.6);
}

.cat-foot {
    display: flex;
    justify-content: flex-end;
}

.cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-950);
    background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
    border-radius: 100px;
    padding: 0.45rem 0.95rem;
    box-shadow: 0 6px 14px -6px rgba(219, 166, 50, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover .cat-cta {
    transform: translateX(2px);
    box-shadow: 0 10px 18px -6px rgba(219, 166, 50, 0.7);
}

.cat-card:hover .cat-cta i {
    transform: translateX(3px);
}

.cat-cta i {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

@media (max-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .swipe-hint {
        display: flex;
    }

    .cat-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .cat-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}

/* ---------- Product cards: raised, tiltable ---------- */
.product-grid-perspective {
    perspective: 1000px;
}

.product-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 2px 6px rgba(10, 31, 61, 0.07),
        0 14px 26px -12px rgba(10, 31, 61, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    will-change: transform;
}

.product-card:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 4px 10px rgba(10, 31, 61, 0.08),
        0 24px 40px -14px rgba(10, 31, 61, 0.28);
}

.product-card .card-img-top {
    height: 190px;
    object-fit: contain;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.no-image {
    height: 190px;
    background: var(--surface-soft);
}

.product-card .badge.bg-secondary {
    background: var(--navy-800) !important;
}

.product-card .card-title a {
    color: var(--navy-900);
}

/* ---------- Why us ---------- */
.why-us {
    background: linear-gradient(180deg, var(--surface-soft), #eef1f6);
}

.icon-badge {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 -6px 10px rgba(0, 0, 0, 0.35) inset,
        0 10px 20px rgba(10, 31, 61, 0.25);
}

.icon-badge i {
    font-size: 1.9rem;
    color: var(--gold-400);
}

/* ---------- Fil d'Ariane catégorie ---------- */
.breadcrumb-cat {
    font-size: 0.85rem;
    color: #8a92a0;
}

.breadcrumb-cat a {
    color: #5b6472;
    text-decoration: none;
}

.breadcrumb-cat a:hover {
    color: var(--navy-800);
    text-decoration: underline;
}

.breadcrumb-cat i {
    font-size: 0.7rem;
    margin: 0 0.3rem;
}

.breadcrumb-cat span {
    color: var(--navy-900);
    font-weight: 600;
}

/* ---------- Onglets de sous-catégories ---------- */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: var(--surface);
    color: var(--navy-800);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-tab:hover {
    border-color: var(--gold-500);
}

.cat-tab.active {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: #fff;
}

.cat-tab-count {
    font-size: 0.75rem;
    opacity: 0.75;
}

.cat-tab.active .cat-tab-count {
    color: var(--gold-400);
    opacity: 1;
}

/* ---------- Puces de marques (horizontal) ---------- */
.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(10, 31, 61, 0.08);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    border: 1px solid rgba(10, 31, 61, 0.15);
    color: var(--navy-800);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.brand-pill:hover {
    border-color: var(--gold-500);
}

.brand-pill.tier-1 {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 1.05rem;
    border-color: var(--gold-500);
}

.brand-pill.tier-3 {
    display: none;
    font-size: 0.78rem;
    font-weight: 400;
    color: #5b6472;
}

.brand-pills.show-all .brand-pill.tier-3 {
    display: inline-flex;
}

.brand-pill.active {
    background: var(--gold-400);
    border-color: var(--gold-500);
    color: var(--navy-950);
}

.brand-pill-count {
    font-size: 0.72rem;
    opacity: 0.65;
}

.btn-voir-marques {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-800);
    background: var(--surface-soft);
    border: 1px solid rgba(10, 31, 61, 0.15);
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.btn-voir-marques:hover {
    border-color: var(--gold-500);
}

/* ---------- Product detail ---------- */
.product-gallery-main {
    position: relative;
}

.product-detail-img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
    border-radius: 12px;
    box-shadow: 0 14px 30px -12px rgba(10, 31, 61, 0.25);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: var(--gold-400);
    font-size: 1.1rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 8px 16px rgba(10, 31, 61, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.gallery-arrow:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 10px 20px rgba(219, 166, 50, 0.35);
}

.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.thumb-img {
    height: 72px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 31, 61, 0.15);
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.thumb-img:hover {
    transform: translateY(-3px);
}

.thumb-img.active {
    border-color: var(--gold-500);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25) inset;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--gold-400);
}

/* ---------- Account dropdown (header) ---------- */
.account-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 500;
    white-space: nowrap;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold-400);
}

.account-dropdown-menu {
    min-width: 220px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px -12px rgba(10, 31, 61, 0.35);
    margin-top: 0.75rem;
}

.contact-choice-menu {
    min-width: 260px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px -12px rgba(10, 31, 61, 0.35);
    padding: 0.4rem;
    margin-top: 0.5rem;
}

.contact-choice-menu .dropdown-item {
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-weight: 500;
}

.contact-choice-menu .dropdown-item i {
    margin-right: 0.5rem;
    width: 1.1rem;
}

.contact-choice-menu .dropdown-item:hover {
    background: var(--surface-soft);
}

/* ---------- Auth pages (login / signup) ---------- */
.auth-page {
    background: var(--surface-soft);
    padding: 4rem 0;
    min-height: 60vh;
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 20px 45px -15px rgba(10, 31, 61, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e6ec;
}

.auth-divider span {
    padding: 0 0.75rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: var(--surface);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(28, 66, 113, 0.12);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #d7dce3;
    background: var(--surface);
    color: var(--text-main);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 31, 61, 0.12);
}

.btn-social-google i { color: #ea4335; }

/* ---------- Titre H1 accueil ---------- */
.home-intro {
    margin-bottom: 1.5rem;
}

.home-intro-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.35rem;
}

.home-intro-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy-900);
    max-width: 640px;
    margin: 0;
}

@media (max-width: 767.98px) {
    .home-intro-title {
        font-size: 1.15rem;
    }
}

/* ---------- Reassurance bar ---------- */
.reassurance-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8f9fb;
    border: 1px solid #e7e9ee;
    border-radius: 12px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
}

.reassurance-item i {
    font-size: 1.3rem;
    color: var(--gold-500);
    flex-shrink: 0;
}

.reassurance-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.15;
}

@media (max-width: 767.98px) {
    .reassurance-bar {
        justify-content: space-between;
    }
    .reassurance-item {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

/* ---------- Map (footer) ---------- */
.map-section {
    padding: 2.5rem 0;
    background: var(--navy-900);
    border-top: 1px solid var(--navy-700);
}

main:has(> .map-section:last-child) + footer.site-footer {
    margin-top: 0 !important;
}

.map-section .section-title {
    color: #fff;
}

.map-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(10, 31, 61, 0.15);
    line-height: 0;
}

.map-embed {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* ---------- Bouton favori (coeur) et bouton partage (meme gabarit) ---------- */
.btn-favori,
.btn-partage {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--navy-800);
    box-shadow: 0 2px 8px rgba(10, 31, 61, 0.15);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.btn-favori:hover,
.btn-partage:hover {
    transform: scale(1.08);
}

.btn-favori.active i {
    color: #e63757;
}

.btn-favori.favori-pulse {
    animation: favori-pulse 0.3s ease;
}

@keyframes favori-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.btn-favori-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    max-width: calc(100vw - 24px);
    background: var(--surface);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 16px 32px -8px rgba(10, 31, 61, 0.3);
}

.share-menu.show {
    display: block;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    border: none;
    background: none;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--navy-900);
    text-decoration: none;
    text-align: left;
}

.share-menu-item:hover {
    background: var(--surface-soft);
}

/* ---------- Bouton flottant WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

@media (max-width: 600px) {
    .whatsapp-float {
        padding: 0;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        justify-content: center;
        animation: none;
    }
    .whatsapp-float-text {
        display: none;
    }
}

/* ---------- Barre des marques ---------- */
.brands-bar {
    background: var(--surface-soft);
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 55px;
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.brand-placeholder {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #9aa3af;
    transition: color 0.25s ease;
}

.brand-placeholder:hover {
    color: var(--navy-900);
}

.brands-row {
    flex-wrap: nowrap;
}

.brands-row .brand-item {
    flex: 0 0 auto;
}

/* Infinite auto-scrolling carousel (desktop + mobile) */
.brands-carousel {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

.brands-track {
    display: flex;
    width: max-content;
    animation: brands-scroll 45s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.brands-carousel:hover .brands-track,
.brands-carousel:focus-within .brands-track,
.brands-track.is-paused {
    animation-play-state: paused;
}

@keyframes brands-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .brands-carousel {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
    }

    .brand-item {
        width: 120px;
        height: 60px;
    }
}

/* ---------- Chip de filtre actif (ex: marque) ---------- */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-soft);
    border: 1px solid #e0e4ea;
    color: var(--navy-900);
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
}

.filter-chip-remove {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: color 0.15s ease;
}

.filter-chip-remove:hover {
    color: #d9455f;
}

/* ---------- Barre de defilement fine et discrete ---------- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--navy-700) var(--surface-soft);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-800);
}

/* ---------- Pagination (catalogue produits) ---------- */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    display: flex;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(10, 30, 63, 0.15);
    background: #fff;
    color: var(--navy-800);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

a.pagination-btn:hover {
    background: var(--gold-400);
    border-color: var(--gold-500);
    color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(10, 31, 61, 0.2);
}

.pagination-btn.is-active {
    background: #0a1e3f;
    border-color: #0a1e3f;
    color: #fff;
    cursor: default;
}

.pagination-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--navy-700);
    font-weight: 700;
}

@media (max-width: 576px) {
    .pagination-list {
        gap: 0.3rem;
    }

    .pagination-btn,
    .pagination-ellipsis {
        min-width: 40px;
        height: 40px;
    }
}

/* ---------- Devis (demande de devis) ---------- */
.badge-gratuit {
    display: inline-block;
    background: #2e9e4f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.devis-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 8px 20px rgba(219, 166, 50, 0.35);
}

.devis-icon-badge i {
    font-size: 1.8rem;
    color: var(--navy-950);
}

.btn-devis-envoyer {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.15s ease;
}

.btn-devis-envoyer:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-indisponible,
.btn-indisponible:hover {
    background: #8a92a0;
    color: #fff;
    cursor: not-allowed;
}

.btn-devis-multi-ajouter {
    background: transparent;
    color: var(--navy-900);
    border: 1px solid var(--navy-800);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-devis-multi-ajouter:hover {
    background: var(--navy-900);
    color: #fff;
    transform: translateY(-1px);
}

.devis-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--navy-950);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px -10px rgba(10, 31, 61, 0.5);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.devis-toast i {
    color: var(--gold-400);
}

.devis-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.panier-qte-selecteur button:disabled,
.panier-qte-selecteur input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panier-qte-selecteur button:disabled:hover {
    background: var(--surface-soft);
}

.devis-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(10, 31, 61, 0.15);
}

/* ---------- Panier / commande ---------- */
.panier-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.panier-qte-input {
    width: 70px;
}

.panier-table-wrap {
    background: var(--surface);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px -10px rgba(10, 31, 61, 0.15);
    margin-bottom: 1.5rem;
}

.panier-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.panier-total-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(10, 31, 61, 0.15);
}

.paiement-info-badge {
    display: inline-block;
    background: #fdf3d7;
    color: #7a5b00;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.cart-nav-link {
    position: relative;
    color: #fff;
}

.cart-nav-link:hover {
    color: var(--gold-400);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--gold-400);
    color: var(--navy-950);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.panier-qte-selecteur {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--navy-800);
    border-radius: 8px;
    overflow: hidden;
}

.panier-qte-selecteur button {
    background: var(--surface-soft);
    border: none;
    width: 36px;
    height: 36px;
    color: var(--navy-800);
    font-weight: 700;
}

.panier-qte-selecteur button:hover {
    background: var(--gold-400);
}

.panier-qte-selecteur input {
    width: 48px;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
}

.panier-qte-selecteur input::-webkit-outer-spin-button,
.panier-qte-selecteur input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------- Mon compte ---------- */
.compte-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.compte-avatar,
.compte-avatar-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: var(--gold-400);
    font-size: 1.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

.compte-avatar-photo {
    object-fit: cover;
}

.account-btn-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
}

.compte-lien {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem 0;
}

.compte-lien:hover {
    color: var(--navy-800);
}

.statut-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.statut-en_attente { background: #fdf3d7; color: #7a5b00; }
.statut-confirmee { background: #dce7f5; color: var(--navy-800); }
.statut-en_livraison { background: #dce7f5; color: var(--navy-800); }
.statut-livree { background: #d9f2e0; color: #2e9e4f; }
.statut-annulee { background: #fbdada; color: #b3261e; }
