/* Tappo — styles réservés à : profil.html, boutiques.html, pro.html, site-vitrine.html, espace-recruteur.html, classement.html */
/* ---- Boutiques locales ---- */
.shop-types { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shopx-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 18px; }
.shopx-bar select { padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-pill,999px); font: inherit; font-weight: 600; background: #fff; }
/* ---- Classement vendeurs ---- */
.rank-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 10px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.rank-row:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.rank-pos { flex: none; width: 36px; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--slate); }
.rank-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.rank-name { flex: 1; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rank-count { color: var(--slate); font-size: .88rem; white-space: nowrap; }
.rank-count b { color: var(--green); }
/* ---- Étoiles de notation ---- */
.star-pick { display: inline-flex; gap: 4px; }
.star-pick .star { background: none; border: none; font-size: 1.8rem; line-height: 1; color: #D8DEE6; cursor: pointer; padding: 0; transition: color .12s, transform .12s; }
.star-pick .star:hover { transform: scale(1.15); }
/* ---- Vitrine vendeur (profil) ---- */
.profile-cover { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 20px); overflow: hidden; box-shadow: var(--sh); margin: 10px 0 26px; }
.pc-banner { height: 120px; background: linear-gradient(120deg, var(--green), var(--green-deep)); position: relative; }
.pc-protag { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.pc-protag svg { width: 14px; height: 14px; }
.pc-body { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 0 24px; margin-top: -44px; }
.pc-av { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border: 4px solid #fff; flex: none; box-shadow: var(--sh); }
.pc-main { flex: 1; min-width: 220px; padding-bottom: 4px; }
.pc-main h1 { margin: 0 0 4px; font-size: 1.5rem; }
.pc-sub { color: var(--slate); font-size: .92rem; }
.pc-bio { color: var(--ink-soft); margin: 8px 0 0; max-width: 600px; font-size: .92rem; }
.pc-actions { padding-bottom: 6px; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 20px; }
.pc-stat { background: #fff; padding: 16px; text-align: center; }
.pc-stat b { display: block; font-size: 1.4rem; color: var(--green); font-family: var(--font-head, inherit); }
.pc-stat span { color: var(--slate); font-size: .82rem; }
@media (max-width: 560px) {
  .pc-stats { grid-template-columns: repeat(2, 1fr); }
  .pc-av { width: 76px; height: 76px; font-size: 1.6rem; }
}
.pc-banner { background-size: cover; background-position: center; }
.pc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.35)); }
.pc-banner > * { position: relative; z-index: 1; }
.pc-prem-ribbon { position: absolute; top: 14px; left: 16px; z-index: 2; background: linear-gradient(90deg,#F4C430,#C9961A); color: #1a1300;
  font-weight: 800; font-size: .72rem; letter-spacing: .05em; padding: 6px 13px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.pc-tag { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pc-link { color: var(--green); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.pc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 2px; }
.pc-chips a { font-size: .85rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; transition: .2s; }
.pc-chips a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* ============================================================
   PROFIL / BOUTIQUE — filtres de vitrine + barre de contact (13/09/2026)
   ============================================================ */
.pc-chips button { font: 600 .85rem/1.1 var(--font-body, inherit); color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pc-chips button:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 768px) {
  .pc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pc-chips::-webkit-scrollbar { display: none; }
}
/* ============================================================
   Corrections UX (13/09/2026, lot d)
   ============================================================ */
/* Bannière boutique : image réelle en object-fit:cover dans un cadre à ratio fixe
   (portrait, paysage ou carré ne déforment plus rien ; dégradé si l'image échoue) */
.pc-banner { height: auto; aspect-ratio: 16 / 9; max-height: 260px; overflow: hidden; background-color: var(--green-deep, #0E6B43); }
@media (min-width: 641px) {
  .pc-banner { aspect-ratio: 4 / 1; }
}
.pc-banner > img.pc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; display: block; }
.pc-banner::after { z-index: 1; pointer-events: none; }
.pc-banner > .pc-protag, .pc-banner > .pc-prem-ribbon { position: absolute; z-index: 2; }
/* Profil vendeur : bannière à hauteur fixe, photo recadrée, badge vérifié à la bonne taille */
.pc-banner { width: 100%; aspect-ratio: auto !important; height: clamp(150px, 17vw, 230px); max-height: none; overflow: hidden; }
.pc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-banner::after { z-index: 1; }
.pc-protag, .pc-prem-ribbon { z-index: 2; }
.pc-prem-ribbon { position: absolute; top: 14px; left: 16px; background: var(--gold, #C9961A); color: #2b1f00; font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
.pc-av { position: relative; z-index: 2; overflow: hidden; }
.pc-main h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.2; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-link { display: inline-block; margin-top: 8px; color: var(--green); font-weight: 600; text-decoration: none; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 560px) {
  .pc-banner { height: 140px; }
}
/* Profil : le nom et les badges passent sous la bannière (seul l'avatar la chevauche) */
.pc-body { align-items: flex-start; }
.pc-main, .pc-actions { padding-top: 52px; }
@media (max-width: 640px) {
  .pc-actions { padding-top: 0; width: 100%; }
}
.shopx-hero-search { position: relative; z-index: 1; margin-top: 18px; display: flex; gap: 8px; max-width: 600px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.shopx-hero-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink); }
.shop-types { margin-top: 4px; }
.shop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 760px) {
  .shop-steps { grid-template-columns: 1fr; }
  .shopx-hero-search { border-radius: 16px; }
}
.shop-tabs { position: sticky; top: var(--header-h, 64px); z-index: 20; display: flex; gap: 6px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin: 4px 0 18px; padding: 8px 2px; overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--slate); text-decoration: none; transition: .2s; }
.shop-tabs a small { font-weight: 600; opacity: .8; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h, 64px) + 66px); display: flex; flex-direction: column; gap: 14px; }
.shop-side h3 { margin: 0 0 10px; font-size: 1rem; }
.shop-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 9px; font-size: .9rem; color: var(--ink-soft); }
.shop-facts li { display: flex; gap: 8px; align-items: flex-start; list-style: none; }
.shop-qr-note { font-size: .78rem; color: var(--slate); margin: 10px 0 0; }
.shop-safety { padding: 14px 16px; gap: 12px; }
.shop-safety h3 { font-size: .95rem; margin: 0 0 2px; }
.shop-safety p { font-size: .84rem; margin: 0; }
.shop-section { scroll-margin-top: calc(var(--header-h, 64px) + 70px); }
.shop-rating { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.shop-rating b { font-family: var(--font-head, inherit); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.shop-others { margin-top: 44px; }
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
}
/* Page boutique : en-tête plus spectaculaire */
.profile-cover { border-radius: 26px; }
.pc-banner { height: clamp(170px, 20vw, 270px); }
.pc-banner::after { background: linear-gradient(180deg, rgba(0,0,0,.04) 35%, rgba(0,0,0,.42)); }
.pc-body { margin-top: -58px; }
.pc-av { width: 118px; height: 118px; border-radius: 30px; border: 5px solid #fff; font-size: 2.4rem; box-shadow: 0 20px 44px -20px rgba(0,0,0,.55); }
.pc-main, .pc-actions { padding-top: 66px; }
.pc-main h1 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: -.02em; }
.pc-stats { gap: 12px; background: transparent; padding: 0 24px 24px; margin-top: 18px; }
.pc-stat { background: var(--cloud, #F4F6F9); border-radius: 16px; padding: 14px 10px; }
@media (max-width: 640px) {
  .pc-body { margin-top: -46px; padding: 0 16px; }
  .pc-av { width: 90px; height: 90px; border-radius: 24px; font-size: 1.9rem; }
  .pc-main { padding-top: 6px; min-width: 100%; }
  .pc-stats { padding: 0 14px 16px; gap: 8px; }
}
[data-shop-theme="terracotta"] .pc-banner::before, [data-shop-theme="bissap"] .pc-banner::before {
  opacity: .24; background-image: radial-gradient(circle at 50% 50%, transparent 0 8px, var(--sha) 9px 11px, transparent 12px), radial-gradient(circle at 0 0, var(--sha) 0 4px, transparent 5px), radial-gradient(circle at 100% 100%, var(--sha) 0 4px, transparent 5px);
  background-size: 38px 38px, 38px 38px, 38px 38px; }
[data-shop-theme="ocean"] .pc-banner::before, [data-shop-theme="lagune"] .pc-banner::before {
  opacity: .22; background-image: radial-gradient(circle at 50% 100%, transparent 0 13px, var(--sha) 14px 16px, transparent 17px); background-size: 44px 22px; }
[data-shop-theme="soleil"] .pc-banner::before { opacity: .22; background-image: repeating-conic-gradient(from 0deg at 88% 16%, var(--sha) 0 5deg, transparent 5deg 16deg); background-size: auto; }
[data-shop-theme="nuit"] .pc-banner::before { opacity: .5; background-image: radial-gradient(var(--sha) 1px, transparent 1.6px), radial-gradient(#fff 0.8px, transparent 1.4px); background-size: 46px 46px, 27px 27px; background-position: 0 0, 13px 17px; }
[data-shop-theme="sable"] .pc-banner::before { opacity: .2; background-image: repeating-linear-gradient(45deg, var(--sha) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, var(--sha) 0 2px, transparent 2px 14px); }
#profil-root[data-shop-theme] .shop-section h2, #profil-root[data-shop-theme] .shop-side h3 { text-decoration: underline; text-decoration-color: var(--sha); text-decoration-thickness: 4px; text-underline-offset: 6px; }
/* Horaires, position (page boutique) */
.shop-hours { margin: 4px 0 14px; }
.open-badge { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 10px 12px; border-radius: 12px; background: #F1F5F3; }
.hours-det { margin-top: 8px; }
.hours-det summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--green-deep, #0E6B43); list-style: none; }
.hours-det summary::-webkit-details-marker { display: none; }
.hours-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.open-pill { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; vertical-align: 1px; }
.shop-where h3 { margin-top: 0; }
.shop-addr { margin: 0 0 10px; color: var(--ink-soft, #334155); line-height: 1.5; }
/* ==========================================================================
   Correctifs mobile (lot y)
   ========================================================================== */
/* Boutique : la colonne ne doit jamais s'élargir au contenu (puces, recherche, grille) */
.shop-layout > * { min-width: 0; }
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
}
.shop-main, .shop-section { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .pc-main, .pc-actions { padding-top: 0; }
  .pc-main { padding-top: 6px; }
}
.rv-verif{display:inline-block;font-size:.72rem;font-weight:700;color:#0E6B43;background:#EAF6F0;border-radius:999px;padding:2px 8px;margin-left:4px;vertical-align:middle}
.rv-locked b{display:block;margin-bottom:4px}
.rv-locked p{margin:0;color:var(--slate);font-size:.9rem}
/* Page boutique : couverture vivante, logo à anneau tournant, stats qui rebondissent */
.pc-banner > img.pc-cover-img { animation: pcKen 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.pc-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 80% at 15% 0%, rgba(253,186,45,.35), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(22,145,92,.45), transparent 60%); mix-blend-mode: soft-light; }
.pc-av { isolation: isolate; animation: pcPop .7s cubic-bezier(.2,.9,.3,1.4) both; }
.pc-av::after { content: ""; position: absolute; inset: -5px; border-radius: 34px; z-index: -1; background: conic-gradient(from var(--pc-a), #FDBA2D, #16915C, #F97316, #FDBA2D); animation: pcSpin 4s linear infinite; }
.pc-main h1 { font-family: 'Sora', var(--font-head), sans-serif; letter-spacing: -.03em; animation: bpIn .6s .15s ease both; }
.pc-sub, .pc-badges { animation: bpIn .6s .25s ease both; }
.pc-badges .pc-tag { animation: pcPop .5s cubic-bezier(.2,.9,.3,1.4) both; }
.pc-badges .pc-tag:nth-child(2) { animation-delay: .1s; }
.pc-badges .pc-tag:nth-child(3) { animation-delay: .2s; }
.pc-badges .pc-tag:nth-child(4) { animation-delay: .3s; }
.pc-stat { position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; animation: pcPop .6s cubic-bezier(.2,.9,.3,1.3) both; }
.pc-stat:nth-child(2) { animation-delay: .08s; }
.pc-stat:nth-child(3) { animation-delay: .16s; }
.pc-stat:nth-child(4) { animation-delay: .24s; }
.pc-stat:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -16px rgba(14,107,67,.6); }
.pc-stat b { font-family: 'Sora', var(--font-head), sans-serif; background: linear-gradient(120deg, #0E6B43, #16915C, #F59E0B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-stat::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: subShine 5s ease-in-out infinite; }
.pc-prem-ribbon { animation: pcPop .6s .3s both; box-shadow: 0 8px 20px -8px rgba(201,150,26,.9); }
.pc-av { overflow: visible !important; }
.pc-av > img { border-radius: 24px !important; }

/* ===========================================================
   Bandeau de boutique : ne jamais étirer une image carrée
   -----------------------------------------------------------
   208 boutiques, 11 couvertures. Celles qui en ont une y mettent
   souvent leur logo carré (1024×1024) : recadré en bandeau 963×205,
   on n'en voyait qu'une tranche illisible.
   Quand l'image est à peu près carrée, elle passe en vitrine :
   posée entière au centre, sur un fond flouté tiré d'elle-même.
   =========================================================== */
.pc-banner > .pc-cover-bg {
  position: absolute; inset: -8%; z-index: 0; display: block;
  background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.35) brightness(.78);
  transform: scale(1.12); opacity: 0; transition: opacity .5s ease;
}
.pc-banner.cover-carre > .pc-cover-bg { opacity: 1; }
.pc-banner.cover-carre > img.pc-cover-img {
  top: 10%; bottom: 10%; left: 0; right: 0; margin: 0 auto;
  width: auto; height: 80%; max-width: 58%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.65);
}

/* Aucune couverture : on montre ce que la boutique vend, pas un aplat vide */
.pc-mosaic {
  position: absolute; inset: 0; z-index: 0; display: grid; gap: 2px;
  grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; background: var(--line, #E6EAF0);
}
.pc-mosaic > i:nth-child(4) { display: none; }   /* 1 grande + 2 petites : une grille nette */
/* Sur PC la bannière fait plus de 1 100 px de large : trois photos y laissent
   un grand vide, et la quatrième était téléchargée puis cachée. On l'affiche
   (11/10) — grande à gauche, deux empilées au centre, une haute à droite.
   Les placements sont explicites : sans ça la 4ᵉ se glissait dans une case
   déjà prise et retombait à zéro pixel de haut. */
@media (min-width: 900px) {
  .pc-mosaic { grid-template-columns: 2fr 1fr 1fr; }
  .pc-mosaic > i:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .pc-mosaic > i:nth-child(2) { grid-column: 2; grid-row: 1; }
  .pc-mosaic > i:nth-child(3) { grid-column: 2; grid-row: 2; }
  .pc-mosaic > i:nth-child(4) { grid-column: 3; grid-row: 1 / 3; display: block; }
}
.pc-mosaic > i {
  display: block; background-size: cover; background-position: center;
  background-color: var(--cloud, #F4F6F9);
  transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
}
.pc-mosaic > i:first-child { grid-row: 1 / 3; }
.profile-cover:hover .pc-mosaic > i { transform: scale(1.05); }
@media (max-width: 600px) {
  .pc-mosaic { grid-template-columns: 1.6fr 1fr; }
  .pc-banner.cover-carre > img.pc-cover-img { max-width: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-cover:hover .pc-mosaic > i { transform: none; }
  .pc-banner > .pc-cover-bg { transition: none; }
}

/* ===========================================================
   « Votre boutique est complète à X % »
   Visible par le commerçant seul, sur sa propre boutique.
   =========================================================== */
.shop-compl {
  margin: 18px 24px 4px; padding: 16px 18px;
  border: 1px solid var(--line, #E6EAF0); border-left: 4px solid var(--cc, #16915C);
  border-radius: 14px; background: #fff;
}
.sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-top b { font-size: 1.02rem; color: var(--ink, #14181F); }
.sc-niv { font-weight: 700; font-size: .82rem; color: var(--cc, #16915C); }
.sc-track { height: 8px; border-radius: 999px; background: var(--cloud, #F4F6F9); overflow: hidden; margin: 10px 0 14px; }
.sc-track > i { display: block; height: 100%; border-radius: 999px; background: var(--cc, #16915C);
  transition: width .9s cubic-bezier(.2,.8,.2,1); }
.sc-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.sc-list li { display: grid; gap: 1px; padding-left: 22px; position: relative; }
.sc-list li::before { content: "⬜"; position: absolute; left: 0; top: 0; font-size: .82rem; }
.sc-list b { font-size: .93rem; color: var(--ink, #14181F); }
.sc-list span { font-size: .85rem; color: var(--slate, #6B7583); line-height: 1.45; }
.sc-ok { margin: 0; color: var(--green, #16915C); font-weight: 600; }
@media (max-width: 600px) { .shop-compl { margin: 14px 14px 4px; padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .sc-track > i { transition: none; } }
