/* ================================================
   BC-GAMES — Thème inspiré bcxx
   E-commerce clair · Bleu logo · Cartes produits
   ================================================ */

.theme-bcxx {
    --brand-blue: #2B2BFF;
    --brand-blue-dark: #1a1acc;
    --brand-blue-light: #6b6bff;
    --primary-color: var(--brand-blue);
    --primary-dark: var(--brand-blue-dark);
    --primary-darker: #1212a0;
    --primary-light: var(--brand-blue-light);
    --accent-neon: #00f0ff;
    --accent-yellow: #ffee00;
    --accent-on-yellow: #0a0a12;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --text-muted: #888;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #ececee;
    --bg-elevated: #ffffff;
    --border-color: #ddd;
    --border-accent: rgba(43, 43, 255, 0.35);
    --primary-alpha-08: rgba(43, 43, 255, 0.08);
    --primary-alpha-10: rgba(43, 43, 255, 0.12);
    --primary-alpha-12: rgba(43, 43, 255, 0.18);
    --neon-alpha: rgba(0, 240, 255, 0.1);
    --overlay-backdrop: rgba(0, 0, 0, 0.45);
    --gradient-brand: linear-gradient(135deg, #fff 0%, #f0f0ff 100%);
    --gradient-menu: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    --gradient-footer: #2d2d2d;
    --gradient-hero: none;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(43, 43, 255, 0.25);
    --shadow-neon: none;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --header-height: 130px;
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

.theme-bcxx body {
    background: var(--bg-secondary);
    background-image: none;
    color: var(--text-dark);
}

.theme-bcxx a,
.theme-bcxx a:visited,
.theme-bcxx a:link {
    color: var(--brand-blue);
}

.theme-bcxx a:hover {
    color: var(--brand-blue-dark);
}

/* Trust bar (fond noir : marque + menu + engagements) */
.trust-bar {
    --trust-bar-height: 88px;
    background: #2d2d2d;
    color: #fff;
    font-size: var(--text-xs);
    border-bottom: 3px solid var(--brand-blue);
    position: relative;
    z-index: 999;
}

.trust-bar__head {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.trust-bar__head .site-brand--bar {
    flex: 1;
    min-width: 0;
}

.trust-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.trust-bar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}

.trust-bar__action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.trust-bar__action img {
    width: 22px;
    height: 22px;
    display: block;
    filter: brightness(0) invert(1);
}

.trust-bar__action svg {
    display: block;
    color: #fff;
}

.trust-bar__action svg path,
.trust-bar__action svg circle {
    stroke: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.trust-bar .toogle-open {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.trust-bar .toogle-open span {
    position: relative;
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.trust-bar .toogle-open span::before,
.trust-bar .toogle-open span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.trust-bar .toogle-open span::before {
    transform: translateY(-7px);
}

.trust-bar .toogle-open span::after {
    transform: translateY(7px);
}

.trust-bar .toogle-open:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.offcanvas-menu input[type="checkbox"]:checked ~ .trust-bar .toogle-open {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.site-brand--bar .site-brand__name {
    color: #fff;
}

.site-brand--bar .site-brand__tagline {
    color: rgba(255, 255, 255, 0.72);
}

.site-brand--bar:hover .site-brand__name {
    color: #fff;
}

.trust-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
}

@media (min-width: 901px) {
    .trust-bar {
        --trust-bar-height: 56px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        max-width: 100%;
    }

    .trust-bar__head {
        flex: 0 1 auto;
        padding: 8px 16px;
        min-width: 280px;
    }

    .trust-bar__head .site-brand--bar {
        flex: 0 1 auto;
    }

    .trust-bar__inner {
        flex: 1;
        padding: 8px 16px 8px 0;
        justify-content: flex-end;
        border-top: none;
    }
}

.trust-bar__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.trust-bar__title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
}

.trust-bar__text {
    color: #ccc;
    font-weight: 400;
}

/* Header */
.theme-bcxx .site-header .topmenu {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 10px 16px;
    backdrop-filter: none;
}

.theme-bcxx .topmenu-bar {
    display: flex;
    align-items: center;
    align-content: center;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 64px;
    gap: 16px;
    width: 100%;
}

.theme-bcxx .topmenu-logo {
    display: flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    text-decoration: none;
    color: inherit;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-blue);
    text-transform: uppercase;
}

.site-brand__tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}

.offcanvas-menu__panel .site-brand__name {
    font-size: 1.5rem;
}

.site-brand--footer .site-brand__name {
    color: #fff;
}

.site-brand--footer .site-brand__tagline {
    color: #aaa;
}

.theme-bcxx .topmenu-search-form {
    flex: 1;
    max-width: 520px;
    min-width: 0;
    width: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex !important;
    align-items: center;
    align-self: center;
    position: static !important;
    transform: none !important;
    box-shadow: none;
    margin: 0;
}

.theme-bcxx .topmenu-actions {
    display: flex;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    gap: 8px;
}

.theme-bcxx .topmenu-search-form:focus-within {
    border-color: var(--brand-blue);
}

.theme-bcxx .zsearch {
    color: var(--text-dark);
    height: 44px;
    font-size: 15px;
}

.theme-bcxx .zsearchbutton {
    background: var(--brand-blue);
    width: auto;
    padding: 0 16px;
    gap: 6px;
    height: 44px;
}

.theme-bcxx .zsearchbutton:hover {
    background: var(--brand-blue-dark);
    box-shadow: none;
}

.theme-bcxx .zsearchbutton__label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.theme-bcxx .topmenu-action {
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    background: #fff;
    width: auto;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    gap: 6px;
    align-items: center;
    box-sizing: border-box;
}

.theme-bcxx .topmenu-action svg {
    flex-shrink: 0;
    display: block;
}

.theme-bcxx .topmenu-action:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--primary-alpha-08);
    box-shadow: none;
}

.theme-bcxx .topmenu-action img {
    filter: none;
    opacity: 1;
}

.theme-bcxx .topmenu-action-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    font-size: 12px;
    font-weight: 600;
    color: inherit;
}

.theme-bcxx .topmenu-action--cart {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.theme-bcxx .topmenu-action--cart:hover {
    background: var(--brand-blue-dark);
    color: #fff;
}

.theme-bcxx .topmenu-action--cart img {
    filter: brightness(0) invert(1);
}

/* Mega navigation — masqué par défaut sur grand écran */
.mega-nav-wrap {
    display: none;
}

.mega-nav-wrap__bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.mega-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-dark);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mega-nav-toggle:hover {
    background: var(--primary-alpha-08);
    color: var(--brand-blue);
}

.mega-nav-toggle__chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mega-nav-wrap.is-open .mega-nav-toggle__chevron {
    transform: rotate(180deg);
}

.mega-nav {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 0 solid var(--border-color);
    transition: max-height 0.3s ease, border-width 0.2s ease;
}

.mega-nav-wrap.is-open .mega-nav {
    max-height: 40vh;
    border-bottom-width: 1px;
    overflow-y: auto;
}

.mega-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mega-nav__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-dark) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.mega-nav__chip:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
    background: var(--primary-alpha-08);
}

.mega-nav__chip--promo {
    border-color: #ff9800;
    color: var(--brand-blue) !important;
    background: #fff8e6;
}

/* mega-nav : masqué sur tous les écrans (navigation catalogue = barres compactes) */

.theme-bcxx .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-bcxx .offcanvas-menu__panel {
    background: #fff;
    color: var(--text-dark);
    z-index: 1102;
    top: 0;
    padding-top: 20px;
}

.theme-bcxx .offcanvas-menu__backdrop {
    z-index: 1101;
}

.theme-bcxx .offcanvas-menu__head label.toogle-close span,
.theme-bcxx .offcanvas-menu__head label.toogle-close span::before,
.theme-bcxx .offcanvas-menu__head label.toogle-close span::after {
    background: var(--text-dark);
}

.theme-bcxx .offcanvas-menu__head label.toogle-close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.theme-bcxx .offcanvas-menu__head label.toogle-close span {
    position: relative;
    display: block;
    width: 18px;
    height: 3px;
    background: var(--text-dark);
}

.theme-bcxx .offcanvas-menu__head label.toogle-close span::before,
.theme-bcxx .offcanvas-menu__head label.toogle-close span::after {
    background: var(--text-dark);
}

.theme-bcxx .site-menu__heading {
    color: var(--text-muted);
}

.theme-bcxx .site-menu__link,
.theme-bcxx .site-menu__sublink {
    color: var(--text-dark);
}

.theme-bcxx .site-menu__link:hover,
.theme-bcxx .site-menu__sublink:hover {
    color: var(--brand-blue);
    background: var(--primary-alpha-08);
}

.theme-bcxx .site-menu__subs {
    background: var(--bg-secondary);
}

.theme-bcxx .site-menu__toggle {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.theme-bcxx .site-menu__sep {
    background: var(--border-color);
}

/* Main content (header en flux : pas de marge compensatoire) */
.theme-bcxx .maincontent {
    background: var(--bg-primary);
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 20px;
    overflow-x: clip;
    box-sizing: border-box;
}

.theme-bcxx #main-content {
    background: var(--bg-primary);
}

/* Bandeaux du haut (catalogue + cybercafé) */
.home-top-banners {
    border-bottom: 1px solid var(--border-color);
}

.home-top-banners__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: min(420px, 50vh);
}

.home-top-banners__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px 32px;
}

.home-top-banners:has(.home-hero.is-collapsed) .home-top-banners__grid {
    grid-template-columns: 1fr;
}

/* Bandeaux — palette unifiée BC-GAMES (#2B2BFF) */
.home-hero,
.home-cyber-banner,
.home-pc-banner {
    --banner-brand: var(--brand-blue);
    --banner-brand-dark: var(--brand-blue-dark);
    --banner-brand-glow: rgba(43, 43, 255, 0.35);
}

.home-hero {
    --banner-eyebrow: var(--banner-brand);
    --banner-title: #14142b;
    --banner-text: #4a4a5c;
    color: var(--banner-title);
    border-right: 1px solid var(--border-color);
}

.home-banner--dark {
    --banner-eyebrow: #c5c5ff;
    --banner-title: #ffffff;
    --banner-text: rgba(255, 255, 255, 0.9);
    color: var(--banner-title);
}

.home-top-banners:has(.home-hero.is-collapsed) .home-hero {
    display: none;
    border-right: none;
}

.home-hero.is-collapsed {
    display: none;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.home-cyber-banner.home-banner--dark {
    --banner-eyebrow: #e4e4ff;
    --banner-title: #ffffff;
    --banner-text: #f5f5ff;
}

.home-cyber-banner__inner {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
    padding: 22px 20px 24px;
    text-align: center;
    background: rgba(8, 10, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.home-cyber-banner__eyebrow,
.home-pc-banner__eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--banner-eyebrow);
    margin-bottom: 8px;
}

.home-cyber-banner__title,
.home-pc-banner__title {
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--banner-title);
}

.home-cyber-banner__lead {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--banner-text);
    margin-bottom: 16px;
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

.home-cyber-banner__list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.home-cyber-banner__list li {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-cyber-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 900px) {
    .home-top-banners__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-hero {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .home-top-banners:has(.home-hero.is-collapsed) .home-top-banners__grid {
        grid-template-columns: 1fr;
    }
}

.home-hero__eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--banner-eyebrow);
    margin-bottom: 8px;
}

.home-hero__title {
    font-size: clamp(1.25rem, 2.8vw, 1.85rem);
    font-weight: 700;
    color: var(--banner-title);
    line-height: 1.2;
    margin-bottom: 12px;
}

.home-hero__lead,
.home-cyber-banner__lead,
.home-pc-banner__lead {
    line-height: 1.55;
    color: var(--banner-text);
}

.home-hero__lead {
    font-size: var(--text-base);
    margin-bottom: 20px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--brand-blue);
    color: #fff !important;
    border-color: var(--brand-blue);
}

.btn--primary:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #fff !important;
}

.btn--outline {
    background: #fff;
    color: var(--text-dark) !important;
    border-color: var(--border-color);
}

.btn--outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
}

.btn--promo {
    background: #ff9800;
    color: #fff !important;
    border-color: #ff9800;
}

/* Arrière-plans photo des bandeaux */
.home-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.home-banner__photo.is-missing {
    opacity: 0;
}

.home-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-banner__overlay--catalogue {
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.91) 0%,
        rgba(245, 246, 255, 0.86) 55%,
        rgba(255, 255, 255, 0.89) 100%
    );
}

.home-cyber-banner .home-banner__photo {
    filter: brightness(0.5) saturate(0.65);
}

.home-banner__overlay--cybercafe {
    background: linear-gradient(
        165deg,
        rgba(10, 12, 32, 0.95) 0%,
        rgba(20, 22, 56, 0.93) 50%,
        rgba(43, 43, 255, 0.82) 100%
    );
}

.home-banner__overlay--pc {
    background: linear-gradient(
        135deg,
        rgba(14, 16, 42, 0.78) 0%,
        rgba(43, 43, 255, 0.45) 50%,
        rgba(14, 16, 42, 0.82) 100%
    );
}

.home-pc-banner {
    position: relative;
    overflow: hidden;
    padding: 36px 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.home-pc-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-cyber-banner__lead {
    font-size: var(--text-base);
    margin-bottom: 14px;
}

.home-pc-banner__lead {
    font-size: var(--text-lg);
    margin-bottom: 22px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.home-pc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Boutons bandeaux sombres — identiques cyber + PC */
.home-banner--dark .btn--light {
    background: #fff;
    color: var(--banner-brand) !important;
    border-color: #fff;
}

.home-banner--dark .btn--light:hover {
    background: #eef0ff;
    border-color: #eef0ff;
    color: var(--banner-brand-dark) !important;
}

.home-banner--dark .btn--outline-light {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.home-banner--dark .btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

/* Lisibilité texte sur photos */
.home-cyber-banner__inner,
.home-cyber-banner__title,
.home-cyber-banner__lead {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.home-banner--dark .home-pc-banner__inner {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.btn--light {
    background: #fff;
    color: var(--brand-blue) !important;
    border-color: #fff;
}

.btn--light:hover {
    background: #eef0ff;
    border-color: #eef0ff;
    color: var(--brand-blue-dark) !important;
}

.btn--outline-light {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

/* Devis PC */
.devis-pc-page {
    padding: 16px 20px 40px;
    max-width: 720px;
    margin: 0 auto;
}

.devis-pc-page__head {
    margin-bottom: 24px;
    text-align: center;
}

.devis-pc-page__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.devis-pc-page__intro {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.devis-pc-page__success {
    background: #f0fff4;
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.devis-pc-page__success h2 {
    margin: 0 0 12px;
    color: var(--text-dark);
}

.devis-pc-form__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.devis-pc-form__errors {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: var(--text-sm);
}

.devis-pc-form__errors ul {
    margin: 0;
    padding-left: 1.2em;
}

.devis-pc-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.devis-pc-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.devis-pc-form__field--full {
    grid-column: 1 / -1;
}

.devis-pc-form__field label,
.devis-pc-form__legend {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.devis-pc-form__field .req {
    color: var(--brand-blue);
}

.devis-pc-form__field input,
.devis-pc-form__field select,
.devis-pc-form__field textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
}

.devis-pc-form__field input:focus,
.devis-pc-form__field select:focus,
.devis-pc-form__field textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px var(--primary-alpha-08);
}

.devis-pc-form__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    font-weight: 500;
    cursor: pointer;
}

.devis-pc-form__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 16px 0;
}

.devis-pc-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 600px) {
    .devis-pc-form__grid {
        grid-template-columns: 1fr;
    }
}

/* Home intro */
.home-intro {
    padding: 32px 20px 40px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.home-intro__inner {
    max-width: 800px;
    margin: 0 auto;
}

.home-intro__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}

.home-intro__content {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: 1.7;
}

.home-intro__content p {
    margin-bottom: 12px;
}

.home-intro__toggle {
    display: block;
    margin: 16px auto 0;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.home-intro__toggle:hover {
    border-color: var(--brand-blue);
    background: var(--primary-alpha-08);
}

/* Category tabs */
.theme-bcxx .site-tabs,
.theme-bcxx .home-cat-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.theme-bcxx .site-tabs__tab,
.theme-bcxx .home-cat-nav__link {
    color: var(--text-dark);
    border: 1px solid transparent;
    background: transparent;
}

.theme-bcxx .site-tabs__tab.is-active,
.theme-bcxx .home-cat-nav__link.is-active {
    background: var(--brand-blue);
    color: #fff !important;
    border-color: var(--brand-blue);
}

/* Product cards (bcxx) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 16px 20px 24px;
    background: transparent;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: var(--shadow-md);
    transform: none;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--brand-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
    text-align: center;
    min-height: 180px;
    box-sizing: border-box;
}

.product-card__media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: transform 0.25s ease;
}

.product-card__media--no-photo {
    background: #fff;
}

.product-card__media--no-photo .article-img--placeholder {
    width: auto;
    max-width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    opacity: 1;
}

.product-card__caption {
    margin: 0;
    padding: 10px 12px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark) !important;
    text-align: center;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    min-height: 3.8em;
}

.product-card__caption:hover {
    color: var(--brand-blue) !important;
}

.product-card__caption + .product-card__body .product-card__cat {
    margin-top: 4px;
}

/* Rayon — panneau filtrage */
.theme-bcxx .catalog-filters-panel {
    margin: 12px 16px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.theme-bcxx .catalog-filters-panel summary {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    list-style-position: outside;
}

.theme-bcxx .catalog-filters-panel__body {
    padding: 4px 16px 16px;
    border-top: 1px solid #eee;
}

.theme-bcxx .rayon-filters__form {
    margin: 0;
}

.theme-bcxx .rayon-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px 20px;
}

.theme-bcxx .rayon-filter-group {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.theme-bcxx .rayon-filter-group__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-blue);
    margin: 0 0 10px;
    padding: 0;
}

.theme-bcxx .rayon-filter-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-bcxx .rayon-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.theme-bcxx .rayon-filter-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-bcxx .rayon-filter-chip span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
    background: #f5f5f7;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-bcxx .rayon-filter-chip:hover span {
    border-color: var(--brand-blue);
    background: var(--primary-alpha-08);
}

.theme-bcxx .rayon-filter-chip input:checked + span {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.theme-bcxx .rayon-filter-chip input:focus-visible + span {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.theme-bcxx .rayon-filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.theme-bcxx .rayon-filters__submit {
    min-width: 140px;
}

.theme-bcxx .rayon-filters__reset {
    text-decoration: none;
}

@media (max-width: 600px) {
    .theme-bcxx .rayon-filters__grid {
        grid-template-columns: 1fr;
    }
}

.theme-bcxx .breadcrumb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 16px 12px;
    padding: 0;
}

.theme-bcxx .breadcrumb-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-blue) !important;
    background: var(--primary-alpha-08);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    text-decoration: none;
}

.theme-bcxx .breadcrumb-filter:hover {
    background: var(--primary-alpha-12);
    border-color: var(--brand-blue);
}

/* Recherche : colonne « filtrer » (lipa / lipa2) — priorité sur les liens globaux */
.theme-bcxx .column1 h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.theme-bcxx .lipa a,
.theme-bcxx .lipa a:visited,
.theme-bcxx .lipa a:link {
    color: var(--text-dark);
}

.theme-bcxx .lipa:hover {
    background: var(--primary-alpha-08);
}

.theme-bcxx .lipa:hover a {
    color: var(--brand-blue);
}

.theme-bcxx .lipa2 {
    background: var(--brand-blue);
}

.theme-bcxx .lipa2 a,
.theme-bcxx .lipa2 a:visited,
.theme-bcxx .lipa2 a:link,
.theme-bcxx .lipa2 a:hover {
    color: #fff;
}

.theme-bcxx .lipa2 span {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.product-card:hover .product-card__media img:not(.article-img--placeholder) {
    transform: scale(1.03);
}

.article-img--placeholder {
    object-fit: contain;
    background: #fff;
}

.boxarts.product-grid img[src*="nophoto"] {
    background: #fff;
}

/* Rayon (liste) : désignation si pas de photo */
.theme-bcxx .listarts--no-photo-label .listarts__media--no-photo {
    display: block;
    background: #f0f1f8;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.theme-bcxx .listarts--no-photo-label .article-no-photo--list {
    aspect-ratio: 1;
    min-height: 0;
    padding: 14px 10px;
    box-sizing: border-box;
}

.theme-bcxx .listarts--no-photo-label .article-no-photo--list .article-no-photo__icon {
    width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
}

.theme-bcxx .listarts--no-photo-label .article-no-photo--list .article-no-photo__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    word-break: break-word;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
    gap: 6px;
}

.product-card__cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.product-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.8em;
}

.product-card__title:hover {
    color: var(--brand-blue) !important;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-card__price--old {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.product-card__price--promo {
    color: var(--brand-blue);
}

.product-card__cta {
    display: block;
    text-align: center;
    padding: 10px 12px;
    background: var(--brand-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: none;
}

.product-card__cta:hover {
    background: var(--brand-blue-dark);
    color: #fff !important;
}

.product-card__soon {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Legacy boxarts reset */
.theme-bcxx .boxarts div:not(.product-card) {
    display: none;
}

.theme-bcxx .boxarts.product-grid {
    display: grid;
}

/* Catalog sections */
.theme-bcxx .catalog-section__head {
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 10px;
    margin: 0 20px;
}

.theme-bcxx .catalog-section__title,
.theme-bcxx .catalog-section__title a {
    color: var(--text-dark) !important;
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.theme-bcxx .catalog-section__more {
    color: var(--brand-blue);
    font-weight: 600;
    border: 1px solid var(--brand-blue);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.theme-bcxx .catalog-section__more:hover {
    background: var(--brand-blue);
    color: #fff !important;
}

/* List view (rayon) */
.theme-bcxx .listarts__item {
    background: #fff;
    border: 1px solid var(--border-color);
}

.theme-bcxx .listarts__item:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.theme-bcxx .listarts__price {
    color: var(--brand-blue);
    font-family: var(--font-body);
}

.theme-bcxx .listarts__cta {
    display: inline-block;
    padding: 8px 14px;
    background: var(--brand-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.theme-bcxx .listarts__cta:hover {
    background: var(--brand-blue-dark);
    color: #fff !important;
}

.theme-bcxx .listarts__cart--icon {
    display: inline-flex;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.theme-bcxx .listarts__cart--icon img {
    filter: none;
}

.theme-bcxx .listarts__title {
    color: var(--text-dark);
    font-family: var(--font-body);
}

.theme-bcxx .listarts__title:hover {
    color: var(--brand-blue);
}

/* Breadcrumb & catalog nav */
.theme-bcxx .breadcrumb {
    background: #fff;
    border: 1px solid var(--border-color);
    margin: 16px 20px;
}

.theme-bcxx .breadcrumb__link {
    color: var(--brand-blue);
}

.theme-bcxx .famille-quick-nav,
.theme-bcxx .catalog-nav,
.theme-bcxx .home-cat-nav.famille-quick-nav {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.theme-bcxx .home-cat-nav.famille-quick-nav {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.theme-bcxx .catalog-page .famille-quick-nav {
    margin: 16px 20px 0;
}

.theme-bcxx .catalog-page .catalog-pc-banner {
    margin: 12px 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.theme-bcxx .catalog-page .famille-quick-nav + .catalog-pc-banner {
    margin-top: 12px;
}

.theme-bcxx .catalog-page .catalog-pc-banner + .catalog-nav {
    margin: 8px 20px 16px;
}

.theme-bcxx .catalog-page .famille-quick-nav + .catalog-nav {
    margin: 8px 20px 16px;
}

.theme-bcxx .catalog-page .breadcrumb + .catalog-pc-banner {
    margin: 12px 20px 0;
}

.theme-bcxx .catalog-page .breadcrumb + .catalog-pc-banner + .catalog-nav {
    margin: 8px 20px 16px;
}

.theme-bcxx .catalog-page .catalog-nav:only-of-type,
.theme-bcxx .catalog-page .catalog-nav:first-child {
    margin: 16px 20px;
}

.theme-bcxx .catalog-nav__bar {
    background: var(--bg-secondary);
    border-bottom: none;
    align-items: flex-start;
}

.theme-bcxx .catalog-nav__context {
    flex: 1;
    min-width: 0;
}

.theme-bcxx .catalog-nav__current {
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
}

.theme-bcxx .catalog-nav__picker {
    border-color: var(--brand-blue);
    background: var(--primary-alpha-08);
    color: var(--brand-blue);
}

.theme-bcxx .catalog-nav__picker:hover {
    background: var(--brand-blue);
    color: #fff;
}

/* Article page */
.theme-bcxx .article-detail__buybox {
    background: #fff;
    border: 1px solid var(--border-color);
}

.theme-bcxx .article-detail__price {
    color: var(--brand-blue);
}

.theme-bcxx .article-detail__cart {
    background: var(--brand-blue);
}

.theme-bcxx .price-promo {
    background: var(--brand-blue);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--gradient-footer);
    color: #ccc;
    margin-top: 40px;
    padding: 0;
}

.site-footer__grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.site-footer__brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
    color: #aaa;
}

.site-footer__col h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__col li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer__col a {
    color: #ccc !important;
}

.site-footer__col a:hover {
    color: #fff !important;
}

.site-footer__bottom {
    border-top: 1px solid #444;
    padding: 14px 20px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 12px;
    color: #888;
}

.site-footer__bottom a {
    color: #aaa !important;
}

.theme-bcxx footer:not(.site-footer) {
    display: none;
}

/* Popups */
.theme-bcxx dialog.catalog-popup {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.theme-bcxx .catalog-popup__title {
    color: var(--text-dark);
}

.theme-bcxx .catalog-popup__link:hover {
    background: var(--primary-alpha-08);
    color: var(--brand-blue);
}

/* Back to top */
.theme-bcxx .back-to-top {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Mobile */
@media (max-width: 900px) {
    .trust-bar__inner {
        gap: 6px 12px;
        font-size: 11px;
    }

    .trust-bar__item {
        flex-direction: column;
        align-items: center;
        gap: 0;
        text-align: center;
    }

    .theme-bcxx .maincontent {
        margin-top: 0;
        width: 100%;
        border-radius: 0;
    }

    .theme-bcxx .topmenu {
        padding: 8px 12px;
    }

    .theme-bcxx .topmenu-bar {
        flex-wrap: wrap;
        align-items: center;
    }

    .theme-bcxx .topmenu-logo,
    .theme-bcxx .topmenu-actions {
        align-self: center;
    }

    .theme-bcxx .topmenu-search-form {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        align-self: stretch;
    }

    .theme-bcxx .zsearchbutton__label {
        display: none;
    }

    .theme-bcxx .zsearchbutton {
        width: 44px;
        padding: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .product-card__title {
        font-size: 13px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .product-card__price {
        font-size: 1.1rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) {
    .theme-bcxx .zsearchbutton__label {
        display: inline;
    }
}

/* Page magasin */
.shops-page {
    padding: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.shops-page__title {
    margin: 0 0 16px;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-dark);
}

.shops-page .shops {
    max-width: 100%;
}

.shops-page .shops__card,
.shops-page .shops div {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.shops-page .shops__name,
.shops-page .shops h4 {
    margin: 0 0 12px;
    font-size: var(--text-xl);
    color: var(--text-dark);
}

.shops-page .shops p {
    margin: 0 0 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.shops-map {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.shops-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
