/* =====================================================================
   Identité visuelle « Dakar » : émeraude, safran, terracotta.
   Chargé après style.css : complète et remplace certains styles.
   ===================================================================== */
body.shop { background: var(--bg); }
h1, h2, h3 { letter-spacing: -.015em; }
.ico { flex: none; vertical-align: middle; }
.btn { border-radius: 999px; padding: 10px 20px; gap: 8px; }
.btn-small { padding: 6px 14px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-saffron { background: var(--saffron); border-color: var(--saffron); color: #06122e; }
.btn-saffron:hover { background: var(--gold-light); border-color: var(--gold-light); color: #06122e; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-wa { background: #1fae5b; border-color: #1fae5b; color: #fff; }
.btn-wa:hover { background: #17924b; border-color: #17924b; }

/* Bandeau d'informations */
.topbar { background: var(--accent); color: #d9dde6; border-bottom: 1px solid rgba(94, 225, 238, .35); font-size: .84rem; }
.topbar-row { display: flex; align-items: center; gap: 22px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topbar-row::-webkit-scrollbar { display: none; }
.topbar-row span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-row .ico { width: 16px; height: 16px; color: var(--saffron); }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 600; }

/* En-tête */
.site-header { background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { padding-top: 14px; padding-bottom: 14px; }
.brand-mark { background: linear-gradient(135deg, var(--black), var(--night)); color: var(--gold); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(94, 225, 238, .45); }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.header-search { position: relative; align-items: center; max-width: 520px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 4px 4px 42px; transition: border-color .15s, box-shadow .15s, background .15s; }
.header-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 32, 94, .14); }
.header-search > .ico { position: absolute; left: 15px; color: var(--muted); }
.header-search input { border: 0; background: transparent; border-radius: 0; padding: 8px 6px; box-shadow: none !important; }
.header-search button.btn { border-radius: 999px; padding: 8px 18px; }
.header-wa { flex: none; }
.main-nav { border-top: 0; }
.main-nav .container { gap: 2px; padding-bottom: 6px; }
.main-nav a { border-bottom: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; color: #3a3f4a; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { background: var(--primary-soft); color: var(--primary); }

/* Héros */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(600px 300px at 90% 10%, rgba(94, 225, 238, .30), transparent 60%),
  radial-gradient(500px 400px at 0% 100%, rgba(40, 60, 160, .55), transparent 60%),
  linear-gradient(140deg, #070c2a 0%, #0b1340 60%, #13205e 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 62px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.eyebrow .ico { width: 15px; height: 15px; color: var(--saffron); }
.hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 10px; max-width: 20ch; }
.hero-about { font-size: 1rem; opacity: .86; max-width: 540px; margin-bottom: 0; }
.hero-actions { margin-top: 20px; }
.hero-actions .btn-lg { padding: 11px 22px; font-size: .97rem; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 230px; }
.hero-tile { position: relative; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.hero-tile:first-child { grid-row: span 2; }
.hero-tile strong { font-size: 1.02rem; }
.hero-tile small { opacity: .85; }
.hero-tile-icon { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.hero-tile:first-child .hero-tile-icon { width: 64px; height: 64px; border-radius: 18px; }
.hero-tile-icon .ico { width: 24px; height: 24px; }
.hero-tile:first-child .hero-tile-icon .ico { width: 34px; height: 34px; }

/* Atouts */
.trust { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -38px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 6px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item small { color: var(--muted); font-size: .82rem; }
.trust-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.trust-item:nth-child(2) .trust-icon { background: var(--saffron-soft); color: var(--gold-dark); }
.trust-item:nth-child(3) .trust-icon { background: var(--terracotta-soft); color: var(--black); }
.trust-icon .ico { width: 22px; height: 22px; }

/* Titres de section */
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head .section-title { margin: 0; }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.section-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }

/* Catégories */
.cat-card { position: relative; border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 20px; padding: 24px; gap: 8px; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--primary-soft); transition: transform .3s; }
.cat-card:hover::after { transform: scale(1.25); }
.cat-card > * { position: relative; z-index: 1; }
.cat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; margin-bottom: 6px; }
.cat-icon .ico { width: 28px; height: 28px; }
.cat-card strong { font-size: 1.2rem; font-weight: 800; }
.cat-desc { color: var(--muted); font-size: .92rem; }
.cat-card em { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
.cat-card em .ico { width: 16px; height: 16px; transition: transform .2s; }
.cat-card:hover em .ico { transform: translateX(4px); }
/* Couleurs de catégorie (choisies dans l'administration) */
.cat-color-emeraude   { --c: #0d6b4e; --c-light: #17946c; --c-soft: #e4f2ec; --c-ink: #0d6b4e; --c-on: #fff; }
.cat-color-noir       { --c: #070c2a; --c-light: #1c2a6b; --c-soft: #ececef; --c-ink: #111318; --c-on: #a5f0f7; }
.cat-color-or         { --c: #18a9bd; --c-light: #a5f0f7; --c-soft: #e2f8fb; --c-ink: #0b7285; --c-on: #06122e; }
.cat-color-nuit       { --c: #13205e; --c-light: #2a3fa0; --c-soft: #e9ecfb; --c-ink: #13205e; --c-on: #fff; }
.cat-color-terracotta { --c: #b2432a; --c-light: #e0663f; --c-soft: #fbe9e3; --c-ink: #b2432a; --c-on: #fff; }
.cat-color-safran     { --c: #d68a00; --c-light: #f2b636; --c-soft: #fff3d9; --c-ink: #a86b00; --c-on: #2a1d00; }
.cat-color-violet     { --c: #5b3aa8; --c-light: #8461d6; --c-soft: #efe9fb; --c-ink: #5b3aa8; --c-on: #fff; }
.cat-color-rose       { --c: #b8326a; --c-light: #e05a91; --c-soft: #fce8f1; --c-ink: #b8326a; --c-on: #fff; }
.cat-color-turquoise  { --c: #0b7d86; --c-light: #18a9b3; --c-soft: #e2f5f6; --c-ink: #0b7d86; --c-on: #fff; }
.cat-color-ardoise    { --c: #3d4a55; --c-light: #66737f; --c-soft: #edf0f2; --c-ink: #3d4a55; --c-on: #fff; }
.cat-card[class*="cat-color-"] .cat-icon { background: var(--c); color: var(--c-on); }
.cat-card[class*="cat-color-"]::after { background: var(--c-soft); }
.cat-card[class*="cat-color-"] em { color: var(--c-ink); }
.hero-tile[class*="cat-color-"] { background: linear-gradient(160deg, var(--c-light), var(--c)); color: var(--c-on); }
a.hero-tile:hover { text-decoration: none; transform: translateY(-3px); }
.hero-tile { transition: transform .2s; }

/* Administration des catégories */
.cat-admin { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; }
.cat-admin > .pay-admin-actions { width: 200px; }
.cat-admin-preview .cat-icon { background: var(--c); color: var(--c-on); margin: 0; }
.cat-admin-meta { margin: 0; font-size: .88rem; }
.cat-delete { position: relative; }
.cat-delete > summary { list-style: none; cursor: pointer; width: 100%; }
.cat-delete > summary::-webkit-details-marker { display: none; }
.cat-delete[open] > summary { background: var(--danger); color: #fff; border-color: var(--danger); }
.cat-delete-box { margin-top: 8px; padding: 12px; border: 1px solid #f1c2c7; background: var(--danger-soft); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 8px; font-size: .88rem; min-width: 220px; }
.cat-delete-box p { margin: 0; }
.legend-link { font-weight: 500; font-size: .85rem; margin-left: 8px; }
@media (max-width: 680px) {
  .cat-admin { grid-template-columns: 1fr; }
  .cat-admin .pay-admin-fields > .row-2, .zone-admin .pay-admin-fields > .row-2 { grid-template-columns: 1fr; }
  .cat-admin .pay-admin-actions { flex-direction: row; flex-wrap: wrap; }
}

/* En-tête des pages internes */
.page-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--border); padding: 34px 0 26px; }
.page-head h1 { font-weight: 800; }

/* Filtres et résultats */
.filters { border-radius: 20px; top: 150px; }
.filters summary { padding: 16px 20px; }
.filters-form input, .filters-form select { background: var(--bg); }
.filters-actions .btn { padding: 10px 12px; min-width: 0; }
.results-head { margin-bottom: 18px; align-items: flex-end; }
.results-head .section-title { margin: 0; }
.results-head > .muted { font-weight: 600; background: var(--surface-2); padding: 4px 12px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }

/* Cartes articles */
.product-grid { gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { overflow: hidden; background: var(--surface-2); }
.card-media img { transition: transform .45s ease; }
.product-card:hover .card-media img { transform: scale(1.06); }
.product-card.is-out .card-media img { filter: grayscale(.6); opacity: .8; }
.badge { top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.badge-in { background: rgba(227, 245, 238, .96); }
.badge-low { background: rgba(255, 242, 220, .96); }
.badge-out { background: rgba(253, 232, 230, .96); }
.badge-inline { box-shadow: none; }
.photo-count { position: absolute; right: 12px; bottom: 12px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(7, 12, 42, .7); padding: 3px 9px; border-radius: 999px; }
.card-body { padding: 16px 18px 18px; gap: 4px; }
.card-cat { color: var(--terracotta); font-size: .72rem; letter-spacing: .1em; }
.card-title { font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-desc { font-size: .87rem; line-height: 1.45; }
.card-foot { padding-top: 10px; border-top: 1px dashed var(--border); }
.price { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; letter-spacing: -.01em; }
.card-go { position: relative; z-index: 1; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: background .15s, color .15s; }
.product-card:hover .card-go { background: var(--primary); color: #fff; }
.card-go:hover { text-decoration: none; }

/* Fiche article */
.gallery-main { border-radius: 22px; background: #fff; }
.price-lg { font-size: 2rem; color: var(--primary-dark); }
.order-box { background: linear-gradient(135deg, var(--primary-soft), #f1f6fb); border: 1px solid #d3dcec; border-radius: 18px; }
.delivery-mini { border-radius: 16px; }
.thumb { border-radius: 12px; }

/* Paiement, contact */
.pay-card { border-radius: 18px; }
.note { border-left-color: var(--saffron); border-radius: 14px; background: var(--saffron-soft); }
.table-wrap { border-radius: 18px; }
.contact-card { border-radius: 20px; }
.map-wrap { border-radius: 20px; }

/* Bandeau d'appel à l'action */
.cta-band { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px; border-radius: 24px; color: #fff;
  background: radial-gradient(400px 200px at 100% 0%, rgba(94, 225, 238, .32), transparent 70%), linear-gradient(135deg, #070c2a, #13205e); border: 1px solid rgba(94, 225, 238, .3); }
.cta-band h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .85; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pied de page */
.site-footer { background: var(--black); margin-top: 56px; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; padding-top: 52px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo strong { color: #fff; font-size: 1.2rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--saffron); margin-bottom: 14px; }
.site-footer a { color: #e9ebf0; }
.site-footer a:hover { color: var(--saffron); text-decoration: none; }
.site-footer .plain { margin-bottom: 14px; }
.footer-hours { font-size: .9rem; margin: 8px 0; }
.footer-bottom { color: #8c92a0; font-size: .84rem; }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fae5b; color: #fff; box-shadow: 0 10px 26px rgba(31, 174, 91, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ico { width: 28px; height: 28px; }

/* Administration : couleur assortie */
.admin-side { background: var(--black); }
.admin-side nav a.active { background: var(--gold); color: #06122e; }
.admin-brand .brand-mark { color: var(--gold); }
.admin-body .btn { border-radius: var(--radius-sm); }

/* ----- Tablettes ----- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .hero-visual { min-height: 0; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .hero-tile { min-height: 96px; }
  .hero-tile:first-child { grid-row: auto; }
  .hero-tile:first-child .hero-tile-icon { width: 46px; height: 46px; border-radius: 14px; }
  .hero-tile:first-child .hero-tile-icon .ico { width: 24px; height: 24px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .header-wa span { display: none; }
  .header-wa { padding: 0; width: 42px; height: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ----- Téléphones ----- */
@media (max-width: 680px) {
  .topbar-hide-sm { display: none !important; }
  .topbar-row { gap: 16px; }
  .topbar-phone { display: none; }
  .header-row { gap: 10px; flex-wrap: wrap; }
  .brand { flex: 1; min-width: 0; }
  .brand-text small { display: none; }
  .header-wa { order: 2; margin-left: 0; }
  .menu-toggle { order: 3; margin-left: 0; border-radius: 12px; }
  .header-search { order: 4; padding-left: 38px; flex-basis: 100%; max-width: none; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search button.btn { display: none; }
  .main-nav a { border-left: 0; border-radius: 10px; }
  .hero-grid { padding-top: 22px; padding-bottom: 54px; }
  .hero-about { font-size: .94rem; }
  .hero-actions { margin-top: 16px; gap: 10px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { display: none; }
  .trust { grid-template-columns: 1fr; margin-top: -32px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .trust-item { padding: 12px 14px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .card-body { padding: 12px 12px 14px; }
  .card-foot { flex-direction: row; align-items: center; }
  .card-go { width: 32px; height: 32px; }
  .card-go .ico { width: 16px; height: 16px; }
  .price { font-size: .98rem; }
  .photo-count { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* ===== Acces et localisation (bas de l'accueil) ===== */
.access-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch; }
.access-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.access-list { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.access-row { display: flex; gap: 14px; align-items: flex-start; }
.access-row dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.access-row dd { margin: 0; }
.access-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.access-card .btn-block { margin-top: auto; }
.access-map, .access-map iframe { min-height: 400px; }
@media (max-width: 860px) {
  .access-layout { grid-template-columns: 1fr; }
  .access-map, .access-map iframe { min-height: 320px; }
}
@media (max-width: 680px) {
  .access .section-head > .btn { display: none; }
}

/* ===== Logo de la boutique ===== */
/* Le logo est affiché plus grand et recadré sur son motif central (cercle). */
.brand-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-view-box: inset(10% 9% 10% 9%); background: #0b1230; flex: none; }
.footer-logo .brand-logo { width: 64px; height: 64px; }
.admin-brand .brand-logo { width: 46px; height: 46px; border-radius: 12px; }
@media (max-width: 680px) {
  .brand-logo { width: 46px; height: 46px; border-radius: 12px; }
}
