/* UTOPICO — thème boutique « Moto & accessoires » (noir, vert vif, accents rouges) */
.shop-theme-moto {
    --m-noir: var(--shop-principal, #0c0f0d);
    --m-vert: var(--shop-accent, #22b14c);
    --m-vert-f: color-mix(in srgb, var(--m-vert) 80%, #000);
    --m-rouge: #e3262f;
    --m-gris: #f3f4f3;
    --m-bord: #e4e7e4;
    --m-titre: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1b1f1c;
    background: #fff;
}
.shop-theme-moto[dir="rtl"], .shop-theme-moto [dir="rtl"] { font-family: var(--police-ar, "Cairo"), Inter, sans-serif; }
.shop-theme-moto a { color: inherit; }

/* ---------- Boutons ---------- */
.moto-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--m-vert); color: #06140a !important; font-family: var(--m-titre); font-weight: 800; font-size: 1.15rem;
    letter-spacing: .02em; padding: .55rem 1.3rem; border-radius: 10px; text-decoration: none; border: 0; transition: transform .15s, background .15s; }
.moto-btn:hover { background: color-mix(in srgb, var(--m-vert) 88%, #fff); transform: translateY(-1px); }
.moto-btn-sm { font-size: 1rem; padding: .4rem .95rem; border-radius: 8px; }
.moto-btn-lg { font-size: 1.5rem; padding: .85rem 2rem; border-radius: 12px; }
.moto-btn-ligne { display: inline-flex; align-items: center; border: 1.5px solid var(--m-bord); border-radius: 8px; padding: .38rem .8rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: #1b1f1c; }
.moto-btn-ligne:hover { border-color: var(--m-vert); color: var(--m-vert-f); }

/* ---------- Bandeau promo ---------- */
.moto-promo { background: #000; color: #fff; position: relative; padding-bottom: 6px; }
.moto-promo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: repeating-linear-gradient(-45deg, var(--m-vert) 0 14px, #000 14px 22px); }
.moto-pastille { display: inline-flex; align-items: center; gap: .5rem; background: var(--m-rouge); color: #fff; font-family: var(--m-titre); font-weight: 800; font-style: italic;
    letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 4px 14px rgba(227,38,47,.35); }
.moto-point { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: moto-pulse 1.4s infinite; }
@keyframes moto-pulse { 50% { opacity: .25; } }
.moto-promo-texte { font-family: var(--m-titre); font-weight: 700; font-size: 1.2rem; }
.moto-compte { display: inline-flex; gap: .3rem; }
.moto-compte > span { background: #151815; border: 1px solid #2c312d; border-radius: 6px; min-width: 42px; padding: .15rem .3rem; text-align: center; line-height: 1; }
.moto-compte b { display: block; font-family: var(--m-titre); font-size: 1.25rem; }
.moto-compte small { font-size: .6rem; opacity: .65; }

/* ---------- Barre infos ---------- */
.moto-infos { background: var(--m-vert-f); color: #fff; font-size: .9rem; }
.moto-infos a { color: #fff; text-decoration: none; opacity: .92; }
.moto-infos a:hover { opacity: 1; }
.moto-messages { position: relative; height: 1.4rem; overflow: hidden; }
.moto-messages span { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: .45s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moto-messages span.actif { opacity: 1; transform: none; }
.moto-langue { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .15rem .7rem; }

/* ---------- En-tête ---------- */
.moto-header { background: #fff; border-bottom: 1px solid var(--m-bord); position: sticky; top: 0; z-index: 1020; }
.moto-logo { color: var(--m-noir); font-family: var(--m-titre); font-weight: 800; font-size: 2rem; letter-spacing: .02em; text-transform: uppercase; }
.moto-logo img { max-height: 46px; width: auto; }
.moto-magasins { color: #1b1f1c; }
.moto-magasins i { font-size: 1.6rem; }
.moto-magasins small { color: #6b726c; }
.moto-recherche { position: relative; max-width: 560px; }
.moto-recherche .form-control { border-radius: 999px; background: var(--m-gris); border: 1.5px solid transparent; padding: .7rem 3.2rem .7rem 1.3rem; }
.moto-recherche .form-control:focus { background: #fff; border-color: var(--m-vert); box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-vert) 18%, transparent); }
.moto-recherche button { position: absolute; inset-inline-end: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--m-noir); color: #fff; width: 38px; height: 38px; border-radius: 50%; }
.moto-icone { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1b1f1c; padding: .2rem .7rem; font-size: .8rem; }
.moto-icone i { font-size: 1.45rem; line-height: 1.1; }
.moto-compteur { position: absolute; top: -2px; inset-inline-end: 8px; background: var(--m-vert); color: #06140a; border-radius: 999px; font-size: .7rem; min-width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; }
.moto-menu { background: var(--m-gris); border-top: 1px solid var(--m-bord); }
.moto-menu a { font-family: var(--m-titre); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .03em; padding: .8rem 0; text-decoration: none; white-space: nowrap; color: #1b1f1c; border-bottom: 3px solid transparent; }
.moto-menu a:hover, .moto-menu a.actif { border-bottom-color: var(--m-vert); }
.moto-menu .moto-menu-promo { color: var(--m-rouge); }
.moto-menu .moto-aide { color: var(--m-vert-f); text-transform: none; font-family: inherit; font-weight: 600; font-size: .95rem; }

/* ---------- Bannière principale ---------- */
.moto-hero { position: relative; background: #000; }
.moto-hero .carousel-item { min-height: clamp(420px, 46vw, 640px); }
.moto-hero-fond { position: absolute; inset: 0; background: radial-gradient(circle at 75% 40%, #2a302b, #000 70%); }
.moto-hero-fond img { width: 100%; height: 100%; object-fit: cover; }
.moto-hero-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); }
[dir="rtl"] .moto-hero-fond::after { background: linear-gradient(-90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); }
.moto-hero-texte { position: relative; z-index: 2; color: #fff; padding-top: clamp(3rem, 8vw, 7rem); padding-bottom: 5rem; max-width: 1140px; }
.moto-hero-titre { font-family: var(--m-titre); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; margin: 0 0 1rem; letter-spacing: -.01em; }
.moto-hero-titre span { color: var(--m-vert); }
.moto-hero-sous { font-size: clamp(1.05rem, 1.8vw, 1.55rem); font-weight: 600; max-width: 640px; margin-bottom: 1.8rem; opacity: .95; }
.moto-fleche { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.55); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.moto-fleche:hover { background: var(--m-vert); color: #000; }
.moto-fleche-g { left: 18px; } .moto-fleche-d { right: 18px; }
.moto-indicateurs [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; background: #fff; }
.moto-indicateurs .active { background: var(--m-vert); }
@media (max-width: 767px) { .moto-fleche { display: none; } .moto-hero-fond::after { background: linear-gradient(0deg, rgba(0,0,0,.9) 15%, rgba(0,0,0,.35)); } }

/* ---------- Avantages ---------- */
.moto-avantages { background: var(--m-noir); color: #fff; padding: 1.4rem 0; }
.moto-avantages i { font-size: 2rem; color: var(--m-vert); }

/* ---------- Titres de section ---------- */
.moto-titre-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 1rem; margin-bottom: 1.6rem; }
.moto-titre { font-family: var(--m-titre); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; line-height: 1; position: relative; padding-bottom: .55rem; }
.moto-titre::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; background: var(--m-vert); transform: skewX(-20deg); }
[dir="rtl"] .moto-titre::after { left: auto; right: 0; }
.moto-lien { font-weight: 600; color: var(--m-vert-f) !important; text-decoration: none; }
.moto-zone-grise { background: var(--m-gris); }

/* ---------- Tuiles catégories ---------- */
.moto-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.moto-tuile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.3rem .8rem 1.1rem; border-radius: 16px; background: var(--m-gris);
    border: 1.5px solid transparent; text-decoration: none; transition: .2s; }
.moto-tuile:hover { background: #fff; border-color: var(--m-vert); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.moto-tuile-visuel { width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; color: var(--m-noir); }
.moto-tuile-visuel svg { width: 58px; height: 58px; }
.moto-tuile-visuel img { width: 74px; height: 74px; object-fit: contain; }
.moto-tuile:hover .moto-tuile-visuel { color: var(--m-vert-f); }
.moto-tuile-nom { font-family: var(--m-titre); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; line-height: 1.05; }
.moto-tuile-nb { font-size: .78rem; color: #6b726c; }

/* ---------- Cartes produits ---------- */
.shop-theme-moto .shop-carte { background: #fff; border: 1px solid var(--m-bord); border-radius: 14px; overflow: hidden; transition: .2s; }
.shop-theme-moto .shop-carte:hover { border-color: var(--m-vert); box-shadow: 0 14px 30px rgba(0,0,0,.09); transform: translateY(-2px); }
.shop-theme-moto .shop-carte-img { background: linear-gradient(160deg, #f6f7f6, #e9ece9); }
.shop-theme-moto .shop-carte-img img { object-fit: contain; padding: 8%; }
.shop-theme-moto .shop-carte > .pt-3 { padding: .8rem 1rem 1rem !important; display: flex; flex-direction: column-reverse; gap: .35rem; }
.shop-theme-moto .shop-carte-nom { text-transform: none; font-weight: 600; font-size: .95rem; line-height: 1.35; min-height: 2.6em; }
.shop-theme-moto .shop-prix { font-family: var(--m-titre); font-weight: 800; font-size: 1.45rem; color: var(--m-noir); }
.shop-theme-moto .shop-prix .text-danger { color: var(--m-rouge) !important; }
.shop-theme-moto .shop-badge { background: var(--m-rouge) !important; color: #fff; font-family: var(--m-titre); font-size: .95rem; border-radius: 6px; transform: rotate(-3deg); }
.shop-theme-moto .shop-carte-action { background: var(--m-vert); color: #06140a; border-radius: 10px; }
.moto-carte-vide { height: 100%; display: flex; align-items: center; justify-content: center; color: #b8bfb9; }
.moto-carte-vide svg { width: 46%; height: 46%; }
.shop-theme-moto .shop-carte:hover .moto-carte-vide { color: var(--m-vert); }

/* ---------- Bannières ---------- */
.moto-banniere { position: relative; display: block; min-height: 230px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 80% 30%, #273029, #050605 70%); color: #fff; text-decoration: none; }
.moto-banniere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.moto-banniere:hover img { transform: scale(1.05); }
.moto-banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), transparent 70%); }
.moto-banniere-texte { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1.8rem; }
.moto-banniere-texte small { color: var(--m-vert); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.moto-banniere-texte b { font-family: var(--m-titre); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; max-width: 70%; }

/* ---------- Marques ---------- */
.moto-marques { border-top: 1px solid var(--m-bord); border-bottom: 1px solid var(--m-bord); }
.moto-marques-titre { font-family: var(--m-titre); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.4rem; color: var(--m-vert-f); }
.moto-marque { font-family: var(--m-titre); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; color: #8a918b !important; text-decoration: none; padding: .2rem .6rem; transition: .2s; }
.moto-marque:hover { color: var(--m-noir) !important; }
.moto-marque img { max-height: 38px; max-width: 120px; filter: grayscale(1); opacity: .7; transition: .2s; }
.moto-marque:hover img { filter: none; opacity: 1; }

/* ---------- Magasins ---------- */
.moto-carte-zone { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--m-bord); }
#moto-carte { height: clamp(320px, 38vw, 460px); background: #e8ecee; z-index: 1; }
.moto-localiser { position: absolute; z-index: 500; left: 16px; bottom: 16px; background: #fff; border: 0; border-radius: 12px; padding: .65rem 1rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.moto-pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--m-vert-f); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.moto-pin b { transform: rotate(45deg); color: #fff; font-family: var(--m-titre); font-size: 1.2rem; }
.moto-pin.ferme { background: #f0a020; }
.moto-magasin { border: 1px solid var(--m-bord); border-radius: 18px; overflow: hidden; background: #fff; height: 100%; transition: .25s; }
.moto-magasin:hover, .moto-magasin.moto-surligne { border-color: var(--m-vert); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.moto-magasin-photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #1c211d, #050605); }
.moto-magasin-photo img { width: 100%; height: 100%; object-fit: cover; }
.moto-magasin-photo > span:first-child { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m-vert); font-size: 3.4rem; }
.moto-magasin.ferme .moto-magasin-photo img { filter: grayscale(1); }
.moto-magasin.ferme .moto-magasin-photo { border-bottom: 4px solid #f0a020; }
.moto-ville { position: absolute; top: 14px; inset-inline-start: 14px; background: #fff; color: var(--m-vert-f); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 8px; }
.moto-ferme { position: absolute; top: 14px; inset-inline-end: 14px; background: #f0a020; color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; padding: .3rem .7rem; border-radius: 8px; }
.moto-etat { display: flex; align-items: center; gap: .4rem; }
.moto-etat span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.moto-etat-ouvert { color: var(--m-vert-f); } .moto-etat-ferme { color: #8a918b; } .moto-etat-temporaire { color: #d9850c; }

/* ---------- Avis ---------- */
.moto-avis { background: #fff; border-radius: 16px; padding: 1.4rem; border: 1px solid var(--m-bord); }

/* ---------- Fiche produit, listes, pied de page ---------- */
.shop-theme-moto h1.h4, .shop-theme-moto .produit-titre { font-family: var(--m-titre); font-weight: 800; text-transform: uppercase; }
.shop-theme-moto .btn-dark, .shop-theme-moto .btn-primary { background: var(--m-vert); border-color: var(--m-vert); color: #06140a; font-weight: 700; }
.shop-theme-moto .btn-dark:hover, .shop-theme-moto .btn-primary:hover { background: var(--m-vert-f); border-color: var(--m-vert-f); color: #fff; }
.shop-theme-moto .shop-pied { background: var(--m-noir); color: #c9cfca; margin-top: 0 !important; }
.shop-theme-moto .shop-pied .border-top, .shop-theme-moto .shop-pied .border-bottom { border-color: #232824 !important; }
.shop-theme-moto .shop-pied a, .shop-theme-moto .shop-pied .text-body { color: #fff !important; }
.shop-theme-moto .shop-pied .text-secondary { color: #9aa29b !important; }
.shop-theme-moto .shop-pied-titre { color: #fff; font-family: var(--m-titre); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; }
.shop-theme-moto .shop-social { background: #1a1f1b; color: #fff; }
.shop-theme-moto .shop-social:hover { background: var(--m-vert); color: #000; }
.shop-theme-moto .shop-copyright { background: #000; color: #8a918b; }
.shop-theme-moto .shop-whatsapp { background: #25d366; }
.moto-dispo { border: 1px solid var(--m-bord); border-radius: 14px; padding: .9rem 1rem; }
.moto-dispo-ligne { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px dashed var(--m-bord); }
.moto-dispo-ligne:first-of-type { border-top: 0; }

/* ---------- Correctifs ---------- */
.shop-theme-moto .moto-banniere, .shop-theme-moto .moto-banniere b { color: #fff; }
.shop-theme-moto .brand-mark { background: var(--m-vert); color: #06140a; }
.moto-hero .moto-indicateurs [data-bs-target] { width: 28px; height: 4px; border: 0; border-radius: 2px; margin: 0 4px; opacity: .45; }
.moto-hero .moto-indicateurs .active { opacity: 1; background: var(--m-vert); }
.shop-theme-moto .btn-check:checked + .btn-outline-secondary { background: var(--m-noir); border-color: var(--m-noir); color: #fff; }
.shop-theme-moto .btn-outline-secondary { border-radius: 8px; min-width: 44px; }
.shop-theme-moto .card-img-top.moto-carte-vide svg { width: 40%; height: 40%; }

/* ---------- Barre animée (messages qui défilent) ---------- */
.moto-defile { position: relative; overflow: hidden; height: 1.5rem; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.moto-piste { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; will-change: transform; animation: moto-defile var(--duree, 30s) linear infinite; }
.moto-piste > span { padding-inline-end: 1.6rem; }
.moto-piste .moto-sep { opacity: .55; }
.moto-defile:hover .moto-piste { animation-play-state: paused; }
@keyframes moto-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .moto-piste { animation-name: moto-defile-rtl; }
@keyframes moto-defile-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .moto-piste { animation: none; } }
.moto-infos .moto-defile { flex: 1 1 0%; }
.moto-infos .container > div:not(.moto-defile):not(.moto-messages) { flex-shrink: 0; white-space: nowrap; }

/* ---------- Bande partenaires ---------- */
.shop-theme-moto .partenaires-bande { background: #fff; border-top: 1px solid var(--m-bord); margin-top: 0; }
.shop-theme-moto .partenaires-titre { font-family: var(--m-titre); font-style: italic; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: var(--m-vert-f); }

/* ---------- Atelier ---------- */
.moto-menu .moto-menu-atelier { color: var(--m-vert-f) !important; }
.shop-theme-moto .atl-hero { background: linear-gradient(110deg, var(--m-noir) 55%, color-mix(in srgb, var(--m-vert) 35%, var(--m-noir))); }
.shop-theme-moto .atl-hero-titre, .shop-theme-moto .atl-cta h2, .shop-theme-moto .atl-etape legend { font-family: var(--m-titre); font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.shop-theme-moto .atl-num { background: var(--m-vert); color: #06140a; }
.shop-theme-moto .atl-etape { border-color: var(--m-bord); }
