/* ═══════════ Tarru — « Marché » ═══════════
   Vivant et coloré : blanc lumineux, indigo profond, safran, corail, émeraude. Titres Bricolage Grotesque, texte Figtree.
   Repris de « Atelier » : pseudo du vendeur sur la photo, sélecteur de rayon, encart de confiance.
   Repris de « Édition » : collections thématiques, petites capitales pour les mentions. */
:root {
  --fond: #ffffff; --fond-2: #f1f2f8; --carte: #f7f7fb; --encre: #101226; --encre-2: #45496a; --encre-3: #6b6f8c;
  --indigo: #1f2a7a; --indigo-fonce: #151d5c; --indigo-doux: #e6e8f7;
  --safran: #ffd25e; --safran-doux: #fff3cf; --corail: #d4441f; --corail-vif: #ff6b4a; --corail-doux: #ffe6df;
  --emeraude: #0e7c5a; --emeraude-doux: #dcf3ea; --bord: #e4e6f0;
  --sur-indigo: #ffffff; --nav: #101226; --nav-inactif: #9ca0bf;
  --r: 18px; --nav-bas: 92px;
  --ombre: 0 1px 2px rgba(16, 18, 38, .05), 0 8px 24px -16px rgba(16, 18, 38, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0d0f1f; --fond-2: #1a1d35; --carte: #161931; --encre: #f3f4fb; --encre-2: #c6c8de; --encre-3: #9a9db8;
    --indigo: #8e9bff; --indigo-fonce: #b3bcff; --indigo-doux: #232a5c; --safran-doux: #3a3115;
    --corail: #ff7a5c; --corail-vif: #ff7a5c; --corail-doux: #3d1d17; --emeraude: #3ec79a; --emeraude-doux: #123528;
    --bord: #272b48; --sur-indigo: #0d0f1f; --nav: #1d2142; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0d0f1f; --fond-2: #1a1d35; --carte: #161931; --encre: #f3f4fb; --encre-2: #c6c8de; --encre-3: #9a9db8;
  --indigo: #8e9bff; --indigo-fonce: #b3bcff; --indigo-doux: #232a5c; --safran-doux: #3a3115;
  --corail: #ff7a5c; --corail-vif: #ff7a5c; --corail-doux: #3d1d17; --emeraude: #3ec79a; --emeraude-doux: #123528;
  --bord: #272b48; --sur-indigo: #0d0f1f; --nav: #1d2142; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 15px/1.5 "Figtree", system-ui, sans-serif;
  padding-bottom: calc(var(--nav-bas) + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(1.55rem, 5vw, 2.3rem); }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.muet { color: var(--encre-3); }
.petit { font-size: .86rem; }
.capitales { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); }
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 6px; }

/* Motifs pagne : vignettes de dressing sans photo, encarts */
.wax-1 { background-color: #ff6b4a; background-image: radial-gradient(circle, #ffd25e 0 6px, transparent 6.5px), radial-gradient(circle, #1f2a7a 0 2px, transparent 2.5px); background-size: 30px 30px, 15px 15px; background-position: 0 0, 7px 7px; }
.wax-2 { background-color: #0e7c5a; background-image: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 210, 94, .55) 12px 16px), repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, .18) 12px 16px); }
.wax-3 { background-color: #1f2a7a; background-image: radial-gradient(circle at 50% 50%, transparent 0 9px, #ff6b4a 9px 12px, transparent 12.5px); background-size: 32px 32px; }
.wax-4 { background-color: #ffd25e; background-image: linear-gradient(135deg, #101226 25%, transparent 25%), linear-gradient(225deg, #101226 25%, transparent 25%); background-size: 26px 26px; }

/* ── En-tête ── */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.entete .conteneur { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; color: var(--indigo); text-decoration: none; line-height: 1; }
.logo .point { color: var(--corail-vif); }
.recherche-haut { flex: 1; position: relative; max-width: 560px; }
.recherche-haut input[type=search] { width: 100%; height: 46px; min-height: 46px; border-radius: 16px; border: 0; background: var(--fond-2); padding: 0 16px 0 44px;
  font: inherit; font-size: 15px; color: var(--encre); }
.recherche-haut input[type=search]:focus { outline: none; box-shadow: 0 0 0 2px var(--indigo); background: var(--fond-2); }
.recherche-haut svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; color: var(--encre-3); pointer-events: none; }
@media (max-width: 899px) { .entete .recherche-haut { display: none; } }
.entete .recherche-mobile { display: block; height: auto; padding-bottom: 8px; }
.entete .recherche-mobile .recherche-haut { display: block; max-width: none; }
@media (min-width: 900px) { .entete .recherche-mobile { display: none; } }
.liens-haut { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.bouton-rond { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--fond-2); color: var(--encre);
  display: inline-grid; place-items: center; text-decoration: none; cursor: pointer; flex: none; }
.bouton-rond:hover { background: var(--bord); }
.bouton-rond svg { width: 20px; height: 20px; }
.pastille { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--corail-vif);
  color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--fond); }
.seul-bureau { display: none !important; }
@media (min-width: 900px) { .seul-bureau { display: inline-flex !important; } .bouton-rond.seul-bureau { display: inline-grid !important; }
  .seul-mobile { display: none !important; } }

/* ── Menu du bas flottant (téléphone) ── */
.nav-bas { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 64px; border-radius: 22px;
  background: var(--nav); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; box-shadow: 0 14px 34px -14px rgba(16, 18, 38, .6); }
@media (min-width: 900px) { .nav-bas { display: none; } }
.nav-bas a { position: relative; display: grid; place-items: center; height: 48px; color: var(--nav-inactif); text-decoration: none; }
.nav-bas a.actif { color: #ffd25e; }
.nav-bas svg { width: 23px; height: 23px; }
.nav-bas .vendre-rond { width: 50px; height: 50px; border-radius: 16px; background: #ff6b4a; color: #fff; display: grid; place-items: center; }
.nav-bas .pastille { top: 4px; right: calc(50% - 22px); box-shadow: 0 0 0 2px var(--nav); }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 0;
  background: var(--indigo); color: var(--sur-indigo); font: 700 .95rem "Figtree", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .12s; }
.btn:hover { background: var(--indigo-fonce); }
.btn:active { transform: scale(.98); }
.btn.garance, .btn.corail { background: var(--corail); color: #fff; }
.btn.garance:hover, .btn.corail:hover { background: #b93a18; }
.btn.sec { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--bord); }
.btn.sec:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.btn.doux { background: var(--fond-2); color: var(--encre); }
.btn.doux:hover { background: var(--bord); }
.btn.noir { background: var(--encre); color: var(--fond); }
.btn.large { width: 100%; }
.btn.mini { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg, .puce svg, .mode-remise svg { width: 18px; height: 18px; flex: none; }

/* ── Messages ── */
.messages { margin: 10px 0; display: grid; gap: 8px; }
.message { padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; }
.message.success { background: var(--emeraude-doux); color: var(--emeraude); }
.message.error { background: var(--corail-doux); color: var(--corail); }
.message.info, .message.warning { background: var(--safran-doux); color: var(--encre); }

/* ── Accueil ── */
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 0 12px; }
.section-tete h2 { margin: 0; }
.section-tete a { font-size: .88rem; font-weight: 700; color: var(--indigo); text-decoration: none; white-space: nowrap; }
.defile-x { display: flex; gap: 14px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.defile-x::-webkit-scrollbar { display: none; }
.dressing { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: .74rem; font-weight: 500; }
.dressing .anneau { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(#ffd25e, #ff6b4a, #1f2a7a, #0e7c5a, #ffd25e); }
.dressing .anneau > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--fond); object-fit: cover; display: grid; place-items: center;
  font: 800 1.3rem "Bricolage Grotesque", sans-serif; color: #fff; box-sizing: border-box; }
.dressing .nom { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dressing .plus { width: 70px; height: 70px; border-radius: 50%; background: var(--fond-2); color: var(--indigo); display: grid; place-items: center; }
.dressing .plus svg { width: 26px; height: 26px; }

.promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 16px 0 4px; padding: 20px 22px; border-radius: 24px; background: #1f2a7a; color: #fff; }
.promo .texte { flex: 1; min-width: 0; }
.promo h1 { font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1.04; color: #fff; margin: 0; }
.promo h1 em { font-style: normal; color: #ffd25e; }
.promo p { margin: 8px 0 0; color: #d7dbff; font-size: .95rem; }
.promo .motif { width: 92px; height: 92px; border-radius: 26px; transform: rotate(8deg); flex: none; }
.promo .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.promo .btn { background: #fff; color: #1f2a7a; min-height: 44px; }
.promo .btn.ligne { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
@media (min-width: 900px) { .promo { padding: 36px 44px; } .promo .motif { width: 180px; height: 180px; border-radius: 44px; margin-right: 20px; } }
@media (max-width: 420px) { .promo .motif { position: absolute; right: -26px; top: -26px; opacity: .9; } .promo .texte { padding-right: 34px; } }

.segment { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--fond-2); border-radius: 16px; padding: 4px; gap: 4px; margin: 18px 0 0; }
.segment a { height: 40px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--encre-2); }
.segment a.actif { background: var(--fond); color: var(--encre); box-shadow: 0 1px 3px rgba(16, 18, 38, .12); }
@media (min-width: 900px) { .segment { max-width: 420px; } }

.rayons { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.rayons::-webkit-scrollbar { display: none; }
.puce { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 12px; background: var(--fond-2);
  border: 0; text-decoration: none; font: 700 .86rem "Figtree", sans-serif; white-space: nowrap; color: var(--encre); cursor: pointer; }
.puce:hover { background: var(--bord); }
.puce.actif { background: var(--encre); color: var(--fond); }
.puce.safran { background: var(--safran-doux); }
.puce.emeraude { background: var(--emeraude-doux); color: var(--emeraude); }

/* ── Cartes articles ── */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grille { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.article { position: relative; min-width: 0; background: var(--carte); border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.article:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.article .photo { position: relative; aspect-ratio: 4 / 5; background: var(--fond-2); overflow: hidden; }
.article .photo img { width: 100%; height: 100%; object-fit: cover; }
.article .lien { position: absolute; inset: 0; z-index: 1; }
.article .infos { padding: 9px 11px 12px; }
.article .prix { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.article .titre { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article .marque { font-size: .76rem; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 8px; border-radius: 8px; font-size: .7rem; font-weight: 700; background: #ffd25e; color: #101226; }
.sticker.livraison { background: #fff; color: #0e7c5a; }
.sticker.reserve { background: #101226; color: #fff; }
.sticker.vendu { background: #d4441f; color: #fff; }
.vendeur-puce { position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: calc(100% - 58px); display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #101226; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.vendeur-puce span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mini-av { width: 20px; height: 20px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 800; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; }
.etiquette { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.06rem; }
.etiquette.grande { font-size: 1.9rem; display: block; margin: 4px 0 2px; }

.coeur { position: absolute; z-index: 2; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #101226;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .3); text-decoration: none; transition: transform .15s; }
.coeur:active { transform: scale(.88); }
.coeur svg { width: 18px; height: 18px; }
.coeur.actif { color: #ff6b4a; }
.coeur.actif svg path { fill: currentColor; }
.coeur.grand { position: static; width: 100%; height: 48px; border-radius: 16px; gap: 8px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 .95rem "Figtree"; box-shadow: inset 0 0 0 1.5px var(--bord); background: transparent; color: var(--encre); }
.coeur.grand.actif { color: var(--corail); box-shadow: inset 0 0 0 1.5px var(--corail); }

.confiance { display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 14px 16px; border-radius: 20px; background: #101226; color: #fff; text-decoration: none; }
.confiance .ico { width: 42px; height: 42px; border-radius: 13px; background: #ff6b4a; color: #fff; display: grid; place-items: center; flex: none; }
.confiance .ico svg { width: 21px; height: 21px; }
.confiance .txt { flex: 1; }
.confiance strong { display: block; font-size: .95rem; }
.confiance span { font-size: .82rem; color: #b9bcd6; }
.voir-plus { display: flex; justify-content: center; margin: 22px 0; }
.vide { text-align: center; padding: 44px 16px; color: var(--encre-2); }
.vide svg { width: 60px; height: 60px; color: var(--encre-3); margin: 0 auto 10px; }

/* ── Catalogue & filtres ── */
.barre-filtres { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.barre-filtres::-webkit-scrollbar { display: none; }
.feuille-voile { position: fixed; inset: 0; z-index: 40; background: rgba(10, 12, 28, .55); }
.feuille { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: var(--fond); border-radius: 26px 26px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .feuille { left: auto; top: 0; width: 440px; max-height: none; border-radius: 26px 0 0 26px; } }
.feuille .tete-f { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.feuille fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.feuille legend { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; margin-bottom: 10px; }
.cases { display: flex; flex-wrap: wrap; gap: 6px; }
.cases label { cursor: pointer; }
.cases input { position: absolute; opacity: 0; pointer-events: none; }
.cases span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--fond-2); font-size: .86rem; font-weight: 700; }
.cases input:checked + span { background: var(--encre); color: var(--fond); }
.cases input:focus-visible + span { outline: 3px solid var(--safran); }
.petit-titre { font-family: "Figtree", sans-serif; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--encre-3); margin: 6px 0 10px; }
.membres-trouves { margin-bottom: 18px; }
.liste-membres { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.liste-membres::-webkit-scrollbar { display: none; }
.membre-carte { flex: none; display: flex; align-items: center; gap: 10px; min-width: 210px; max-width: 270px; padding: 10px 14px 10px 10px; background: var(--carte); border-radius: var(--r); text-decoration: none; }
.membre-carte:hover { box-shadow: 0 0 0 2px var(--indigo); }
.membre-carte .nom-m { display: flex; flex-direction: column; min-width: 0; }
.membre-carte .nom-m strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Formulaires ── */
.champ { margin-bottom: 16px; }
.champ label, .etiquette-champ { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.champ .aide { font-size: .8rem; color: var(--encre-3); margin-top: 5px; }
.champ .erreur, .erreurs { color: var(--corail); font-size: .85rem; font-weight: 600; margin-top: 5px; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=email], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--fond-2); color: var(--encre); font: inherit; font-size: 16px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); background: var(--fond); }
input[type=checkbox], input[type=radio] { accent-color: var(--indigo); width: 19px; height: 19px; }
.case-ligne { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 10px; }
.boite-form { background: var(--carte); border-radius: 22px; padding: 20px; margin-bottom: 14px; }
.boite-form h2 { margin-bottom: 12px; }
.boite-form input[type=text], .boite-form input[type=tel], .boite-form input[type=number], .boite-form input[type=password], .boite-form select, .boite-form textarea { background: var(--fond); }
.deux { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .deux { grid-template-columns: 1fr; } }
.etroit { max-width: 640px; margin: 0 auto; }
.tres-etroit { max-width: 420px; margin: 0 auto; }
.dispo { font-size: .85rem; font-weight: 700; margin-top: 6px; }
.dispo.ok { color: var(--emeraude); }
.dispo.non { color: var(--corail); }
.depot-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.depot-photos .case-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--fond-2); }
.depot-photos .case-photo img { width: 100%; height: 100%; object-fit: cover; }
.depot-photos .case-photo .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16, 18, 38, .7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.ajout-photo { aspect-ratio: 4 / 5; border-radius: 14px; border: 2px dashed var(--indigo); background: var(--indigo-doux); color: var(--indigo); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: .8rem; cursor: pointer; text-align: center; padding: 6px; position: relative; }
.ajout-photo svg { width: 28px; height: 28px; }

/* ── Fiche article ── */
.fiche { display: grid; gap: 18px; margin-top: 10px; }
@media (min-width: 900px) { .fiche { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 32px; } }
.galerie { position: relative; }
.galerie .defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 24px; scrollbar-width: none; background: var(--fond-2); }
.galerie .defile::-webkit-scrollbar { display: none; }
.galerie .defile img { flex: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 900px) { .galerie .defile img { aspect-ratio: 1; object-fit: contain; } }
.galerie .points { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.galerie .points span { width: 7px; height: 7px; border-radius: 4px; background: var(--bord); transition: width .2s; }
.galerie .points span.actif { background: var(--encre); width: 20px; }
.galerie .vignettes { display: none; gap: 8px; margin-top: 10px; }
@media (min-width: 900px) { .galerie .vignettes { display: flex; } .galerie .points { display: none; } }
.galerie .vignettes button { width: 66px; height: 82px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.galerie .vignettes button.actif { border-color: var(--encre); }
.galerie .vignettes img { width: 100%; height: 100%; object-fit: cover; }
.panneau { background: var(--carte); border-radius: 24px; padding: 20px; }
@media (min-width: 900px) { .panneau { position: sticky; top: 80px; padding: 26px; } }
.panneau h1 { font-size: 1.45rem; margin-top: 4px; }
.caracteristiques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.caracteristiques div { background: var(--fond); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.caracteristiques dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.caracteristiques dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.actions-fiche { display: grid; gap: 8px; margin-top: 16px; }
.modes-remise { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.mode-remise { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; background: var(--emeraude-doux); color: var(--emeraude); border-radius: 10px; padding: 6px 10px; }
.mode-remise.main { background: var(--indigo-doux); color: var(--indigo); }
.vendeur-mini { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 14px; margin-top: 16px; border-radius: 18px; background: var(--fond); }
.vendeur-mini:hover { box-shadow: 0 0 0 2px var(--indigo); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 1.15rem "Bricolage Grotesque", sans-serif; color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grand { width: 92px; height: 92px; font-size: 2.1rem; box-shadow: 0 0 0 4px var(--fond), 0 0 0 7px #ffd25e; }
.etoiles { color: #e6a700; letter-spacing: 1px; }
.barre-achat { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--fond); border-radius: 20px;
  padding: 10px 10px 10px 16px; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px -10px rgba(16, 18, 38, .45), inset 0 0 0 1px var(--bord); }
.barre-achat .btn { flex: 1; min-height: 46px; padding: 0 10px; }
@media (min-width: 900px) { .barre-achat, .cale-mobile { display: none; } }

/* ── Profil ── */
.profil-tete { display: flex; gap: 18px; align-items: center; margin: 20px 0 12px; }
.stats-profil { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.stats-profil span { background: var(--fond-2); border-radius: 12px; padding: 6px 12px; font-size: .84rem; }
.stats-profil strong { font-family: "Bricolage Grotesque", sans-serif; }
.onglets { display: flex; gap: 4px; background: var(--fond-2); border-radius: 16px; padding: 4px; margin: 18px 0 16px; overflow-x: auto; }
.onglets a { flex: 1; text-align: center; padding: 9px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--encre-2); white-space: nowrap; }
.onglets a.actif { background: var(--fond); color: var(--encre); box-shadow: 0 1px 3px rgba(16, 18, 38, .12); }
.avis { padding: 14px; border-radius: 16px; background: var(--carte); margin-bottom: 8px; }

/* ── Messagerie ── */
.liste-conv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.liste-conv a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; text-decoration: none; }
.liste-conv a:hover { background: var(--carte); }
.liste-conv img { width: 56px; height: 68px; border-radius: 12px; object-fit: cover; flex: none; background: var(--fond-2); }
.liste-conv .milieu { flex: 1; min-width: 0; }
.liste-conv .apercu { color: var(--encre-3); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste-conv .non-lu .apercu { color: var(--encre); font-weight: 700; }
.conv { display: flex; flex-direction: column; height: calc(100dvh - 64px - var(--nav-bas)); max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .conv { height: calc(100dvh - 90px); } }
.conv-tete { display: flex; gap: 10px; align-items: center; padding: 8px 0 10px; border-bottom: 1px solid var(--bord); }
.conv-tete img { width: 44px; height: 54px; border-radius: 10px; object-fit: cover; }
.fil { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 6px; }
.bulle { max-width: 78%; padding: 9px 14px; border-radius: 20px; background: var(--fond-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.moi { align-self: flex-end; background: var(--indigo); color: var(--sur-indigo); border-bottom-right-radius: 6px; }
.bulle.lui { align-self: flex-start; border-bottom-left-radius: 6px; }
.bulle.tarru { align-self: center; max-width: 92%; background: var(--safran-doux); font-size: .87rem; text-align: center; border-radius: 14px; }
.bulle .h { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; text-align: right; }
.saisie { display: flex; gap: 8px; padding: 10px 0; }
.saisie textarea { min-height: 50px; max-height: 120px; border-radius: 18px; padding: 13px 16px; }
.saisie .btn { min-width: 50px; padding: 0 14px; }
.encart-commande { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--indigo-doux); border-radius: 16px; padding: 10px 12px 10px 16px; margin-top: 8px; font-size: .9rem; }

/* ── Commandes ── */
.etapes { list-style: none; padding: 0; margin: 4px 0; display: grid; }
.etapes li { position: relative; padding: 0 0 20px 36px; color: var(--encre-3); }
.etapes li::before { content: ""; position: absolute; left: 4px; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--fond); border: 3px solid var(--bord); box-sizing: border-box; }
.etapes li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--bord); }
.etapes li:last-child::after { display: none; }
.etapes li.fait { color: var(--encre); }
.etapes li.fait::before { background: var(--emeraude); border-color: var(--emeraude); }
.etapes li.fait::after { background: var(--emeraude); }
.etapes li.actuel { color: var(--encre); font-weight: 700; }
.etapes li.actuel::before { border-color: #ff6b4a; box-shadow: 0 0 0 5px var(--corail-doux); }
.recap { display: flex; gap: 14px; align-items: center; }
.recap img { width: 72px; height: 90px; border-radius: 14px; object-fit: cover; }
.ligne-total { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--bord); }
.ligne-total.fort { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; border: 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: .74rem; font-weight: 700; background: var(--fond-2); }
.badge.ok { background: var(--emeraude-doux); color: var(--emeraude); }
.badge.attente { background: var(--safran-doux); color: var(--encre); }
.badge.non { background: var(--corail-doux); color: var(--corail); }
.choix-mode { display: grid; gap: 8px; }
.choix-mode label { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--fond); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--bord); }
.choix-mode label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: var(--indigo-doux); }
.choix-mode small { display: block; color: var(--encre-2); font-weight: 400; margin-top: 2px; }
.note-choix { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.note-choix input { position: absolute; opacity: 0; }
.note-choix label { font-size: 2.2rem; color: var(--bord); cursor: pointer; line-height: 1; }
.note-choix input:checked ~ label, .note-choix label:hover, .note-choix label:hover ~ label { color: #e6a700; }

/* ── Pied ── */
.pied { margin-top: 44px; padding: 26px 0 32px; background: var(--carte); font-size: .88rem; color: var(--encre-2); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.avatar, .dressing .anneau > span, .mini-av { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.promo h1 em { white-space: nowrap; }

/* ── Offres, baisses de prix, confiance, statistiques, notifications ── */
.prix-ligne { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ancien-prix { color: var(--encre-3); text-decoration: line-through; font-weight: 600; }
.badge-baisse { background: var(--corail-vif); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: .8rem; font-weight: 700; }
.article .prix s.ancien { font-family: "Figtree", sans-serif; font-weight: 500; font-size: .78rem; color: var(--encre-3); }
.sticker.baisse { background: #ff6b4a; color: #fff; }
.offre-encart { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--safran-doux); font-size: .9rem; }
.offre-encart.ok { background: var(--emeraude-doux); color: var(--emeraude); }
.offre-form { margin-top: 10px; padding: 14px; border-radius: 16px; background: var(--fond); }
.offre-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.offre-form .suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.offre-form input { flex: 1; min-width: 0; }
.encart-offre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 12px 14px;
  border-radius: 18px; background: var(--safran-doux); }
.encart-offre.ok { background: var(--emeraude-doux); }
.encart-offre .syne-prix { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.3rem; }
.actions-offre { display: flex; gap: 6px; }
.badges-confiance { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge-confiance { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--fond-2); }
.badge-confiance::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-confiance.confirme { background: var(--indigo-doux); color: var(--indigo); }
.badge-confiance.rapide { background: var(--emeraude-doux); color: var(--emeraude); }
.badge-confiance.aime { background: var(--safran-doux); color: var(--encre); }
.badge-confiance.nouveau { background: var(--corail-doux); color: var(--corail); }
.stats-vendeur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.stats-vendeur > * { background: var(--carte); border-radius: 16px; padding: 12px; text-decoration: none; min-width: 0; }
.stats-vendeur strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; margin-top: 2px; }
.stats-vendeur .gains { grid-column: 1 / -1; background: #1f2a7a; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.stats-vendeur .gains .capitales { color: #c9cdf5; }
.stats-vendeur .gains strong { color: #ffd25e; margin: 0; }
@media (max-width: 520px) { .stats-vendeur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.liste-notifs { display: grid; gap: 4px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; text-decoration: none; }
.notif:hover { background: var(--carte); }
.notif.nouvelle { background: var(--indigo-doux); }
.notif-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--fond-2); }
.notif-ico.offre, .notif-ico.vente { background: var(--safran-doux); }
.notif-ico.baisse, .notif-ico.favori { background: var(--corail-doux); color: var(--corail); }
.notif-ico.livraison, .notif-ico.argent { background: var(--emeraude-doux); color: var(--emeraude); }
.notif-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.notif img { width: 46px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.offre-encart { margin-bottom: 12px; }

/* ── Suivre, alertes, à la une ── */
.sticker.une { background: #1f2a7a; color: #ffd25e; }
.cartes-defile { gap: 12px; }
.carte-fixe { flex: none; width: 168px; }
@media (min-width: 900px) { .carte-fixe { width: 210px; } }
.deux-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deux-boutons .btn { padding: 0 10px; white-space: normal; text-align: center; line-height: 1.15; }
.alerte-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--carte); margin-bottom: 8px; }
.alerte-ligne a { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.notif-ico.abonnement, .notif-ico.alerte { background: var(--indigo-doux); color: var(--indigo); }
.notif-ico.avant { background: #1f2a7a; color: #ffd25e; }

/* Paiement en ligne, prix avec commission, code de remise */
.calcul-prix { margin-top: 4px; padding: 6px 14px; border-radius: 16px; background: var(--fond); }
.code-remise { text-align: center; }
.code-remise .code { font: 800 2.6rem/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: .35em; margin: 6px 0 8px; padding-left: .35em; color: var(--indigo); }
.creneaux-form input[type="datetime-local"] { width: 100%; }

/* Outil de position (carte) */
.carte-position { height: 260px; border-radius: 16px; margin-top: 10px; overflow: hidden; position: relative; z-index: 0; isolation: isolate; background: var(--fond); }

/* Passages Tarru : conseil du passage qui regroupe le mieux */
.passage.recommande { border-color: var(--emeraude, #0a7a52); box-shadow: 0 0 0 2px color-mix(in srgb, var(--emeraude, #0a7a52) 25%, transparent); }
.conseil-passage { display: block; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--emeraude, #0a7a52); margin-top: 2px; line-height: 1.25; }
.conseil-passage.leger { font-weight: 500; color: var(--encre-2, #555); }

/* Passages Tarru (créneaux de 3 h) */
.passage-jour { margin-bottom: 12px; }
.passages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 6px; }
.passage { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: var(--fond); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--bord); }
.passage small { display: block; color: var(--encre-3); font-size: .78rem; }
.passage:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: var(--indigo-doux); }
.passage.complet { opacity: .45; cursor: not-allowed; }
.badge-confiance.fiabilite { background: var(--indigo-doux); color: var(--indigo); }

/* Panier, express, QR */
.ligne-panier { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--bord); }
.ligne-panier img { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; }
.panier-lien { position: relative; font-size: 1.05rem; text-decoration: none; }
.express-choix { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fond); }
.qr { display: grid; place-items: center; margin: 8px auto 0; }
.qr img, .qr canvas { background: #fff; padding: 6px; border-radius: 8px; }

/* ═══════════ Thème « Marché lumineux » : fond crème, galon wax, cartes nettes ═══════════ */
:root {
  --fond: #FBF8F3; --fond-2: #F3EEE4; --carte: #FFFFFF; --encre: #14162B; --encre-2: #3B3F5C; --encre-3: #6B6F86;
  --indigo: #2A36B8; --indigo-fonce: #1C2585; --indigo-doux: #ECEEFC;
  --safran: #F2B632; --safran-doux: #FEF4DC; --corail: #D9482B; --corail-vif: #E2553A; --corail-doux: #FDECE8;
  --emeraude: #0E7C5A; --emeraude-doux: #E7F5EE; --bord: #ECE6DA; --nav: #14162B;
  --ombre: 0 1px 2px rgba(20, 22, 43, .04), 0 10px 26px -18px rgba(20, 22, 43, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fond: #0d0f1f; --fond-2: #1a1d35; --carte: #161931; --bord: #272b48; --indigo: #8e9bff; --nav: #1d2142; }
}
:root[data-theme="dark"] { --fond: #0d0f1f; --fond-2: #1a1d35; --carte: #161931; --bord: #272b48; --indigo: #8e9bff; --nav: #1d2142; }

/* Galon wax en haut de chaque page */
.entete::before { content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(90deg, #2A36B8 0 18px, #F2B632 18px 26px, #D9482B 26px 34px, #2A36B8 34px 52px, var(--fond) 52px 56px); }
.entete { background: color-mix(in srgb, var(--fond) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--bord) 70%, transparent); }
.logo { color: var(--indigo); }
.logo .point { color: var(--corail); }
.bouton-rond { border-radius: 50%; background: var(--carte); border: 1px solid var(--bord); padding: 0; }
.bouton-rond:hover { background: var(--fond-2); }
.bouton-rond .pastille, .pastille { background: var(--corail); }
.recherche-haut input[type=search] { background: var(--carte); border: 1px solid var(--bord); box-shadow: 0 6px 18px -14px rgba(20, 22, 43, .45); }
.recherche-haut input[type=search]:focus { background: var(--carte); }

/* Boutons */
.btn { background: var(--indigo); }
.btn.garance, .btn.corail { background: var(--corail); color: #fff; }
.btn.sec { background: var(--carte); box-shadow: inset 0 0 0 1px var(--bord); }
.btn.doux { background: var(--fond-2); }

/* Barre du bas : sombre, flottante, « Vendre » en safran */
.nav-bas { background: var(--nav); box-shadow: 0 14px 30px -12px rgba(20, 22, 43, .6); }
.nav-bas a.actif { color: #F2B632; }
.nav-bas .vendre-rond { background: #F2B632; color: #14162B; width: 54px; height: 54px; border-radius: 18px; margin-top: -26px; box-shadow: 0 0 0 5px var(--fond); }

/* Encart de confiance et rayons */
.promo { background: var(--indigo); border-radius: 20px; }
.promo h1 em { color: #F2B632; }
.puce { background: var(--carte); border: 1px solid var(--bord); border-radius: 999px; }
.puce:hover { background: var(--fond-2); }
.puce.actif { background: var(--encre); color: var(--fond); border-color: var(--encre); }

/* Cartes d'articles : photo arrondie, prix en avant */
.article { background: transparent; border-radius: 0; overflow: visible; }
.article:hover { transform: none; box-shadow: none; }
.article .photo { border-radius: 16px; background: var(--fond-2); }
.article:hover .photo img { transform: scale(1.03); }
.article .photo img { transition: transform .3s; }
.article .infos { padding: 8px 2px 4px; }
.article .prix { font-size: 1.12rem; }
.sticker { border-radius: 8px; font-weight: 800; }
.sticker.baisse { background: var(--corail); color: #fff; }

/* Formulaires et blocs */
.boite-form { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; }
.boite-form input[type=text], .boite-form input[type=tel], .boite-form input[type=number], .boite-form input[type=password], .boite-form select, .boite-form textarea { background: var(--fond); }
.choix-mode label { background: var(--fond); box-shadow: inset 0 0 0 1px var(--bord); }

/* Fiche article : photo plein cadre sur téléphone, feuille d'information, achat bien visible */
.galerie .defile { border-radius: 20px; }
.panneau { background: var(--carte); border: 1px solid var(--bord); border-radius: 22px; }
.etiquette.grande { color: var(--indigo); font-size: 2rem; }
.badge-confiance.fiabilite { background: var(--indigo-doux); color: var(--indigo); }
.barre-achat { background: var(--carte); border-top: 1px solid var(--bord); }
.barre-achat .btn.garance { background: var(--corail); }
@media (max-width: 700px) {
  .fiche .galerie { margin: -10px -16px 0; }
  .fiche .galerie .defile { border-radius: 0; }
  .fiche .panneau { position: relative; margin: -34px -16px 0; border-radius: 24px 24px 0 0; border: 0; border-top: 1px solid var(--bord); }
}

/* Recherche comprise (mots-clés, wolof, corrections) */
.compris { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: .85rem; }
.puce-comprise { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--indigo-doux); color: var(--indigo); font-weight: 700; }
.correction { padding: 3px 10px; border-radius: 999px; background: var(--safran-doux); }
.correction-ligne { margin: -4px 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--safran-doux); font-size: .9rem; }

/* Prix conseillé */

/* Parrainage */
.carte-parrainage { background: var(--indigo); color: #fff; border-radius: 22px; padding: 20px; }
.carte-parrainage strong { color: #F2B632; }
.carte-parrainage .capitales { color: #C9CDF2; }
.code-parrainage { font: 800 2.4rem/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: .12em; margin: 4px 0 12px; }
.lien-parrainage { display: flex; gap: 8px; }
.lien-parrainage input { flex: 1; min-width: 0; border-radius: 12px; border: 0; padding: 0 12px; height: 46px; font: inherit; }
.lien-parrainage .btn { background: #F2B632; color: #14162B; }

/* ───── Boutiques pros ───── */
.badge-pro { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #F2B632; color: #14162B; font-size: .7rem;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.boutique-bandeau { margin: 12px 0 0; min-height: 170px; border-radius: 18px; display: flex; align-items: flex-end; padding: 18px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-fonce)); background-size: cover; background-position: center; color: #fff; }
.boutique-identite { display: flex; align-items: flex-end; gap: 14px; min-width: 0; }
.boutique-identite h1 { margin: 6px 0 2px; color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); }
.boutique-identite p { margin: 0; opacity: .92; }
.boutique-logo { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: #fff; border: 3px solid #fff; flex: none; }
.boutique-infos { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 2px 0; color: var(--encre-2); font-size: .92rem; }
.boutique-infos span { display: inline-flex; align-items: center; gap: 6px; }
.boutique-infos svg { width: 16px; height: 16px; }
.boutique-infos p { flex-basis: 100%; margin: 4px 0 0; color: var(--encre); }
.offre-pro { border-radius: 18px; padding: 20px; background: linear-gradient(135deg, var(--indigo), var(--indigo-fonce)); color: #fff; margin-bottom: 14px; }
.offre-pro h2 { color: #fff; margin: 6px 0 8px; }
.offre-pro ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.tarifs-pro { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tarifs-pro label { display: block; cursor: pointer; }
.tarifs-pro input { position: absolute; opacity: 0; }
.tarifs-pro span { display: block; padding: 12px; border-radius: 14px; border: 2px solid var(--fond-2); background: var(--carte); text-align: center; }
.tarifs-pro input:checked + span { border-color: var(--indigo); background: var(--indigo-doux); }
.tarifs-pro input:focus-visible + span { outline: 3px solid #F2B632; outline-offset: 2px; }
.tarifs-pro strong { display: block; font-size: 1.1rem; }
.tarifs-pro small { color: var(--encre-3); }
.etat-boutique { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.raccourcis-pro { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.raccourcis-pro a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--carte); color: var(--encre);
  text-decoration: none; font-weight: 700; border: 1px solid var(--fond-2); }
.raccourcis-pro a:hover { border-color: var(--indigo); }
.raccourcis-pro svg { width: 22px; height: 22px; color: var(--indigo); }
.liste-boutiques { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.carte-boutique { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--carte);
  color: var(--encre); text-decoration: none; border: 1px solid var(--fond-2); }
.carte-boutique:hover { border-color: var(--indigo); }
.carte-boutique .boutique-logo { width: 58px; height: 58px; border-width: 0; }
.carte-boutique .initiale { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo); color: #fff;
  font: 800 1.4rem "Bricolage Grotesque", sans-serif; flex: none; }
/* Ajout rapide */
.ligne-rapide { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; border-radius: 14px; background: var(--carte);
  border: 1px solid var(--fond-2); margin-bottom: 10px; }
.ligne-rapide img { width: 92px; height: 115px; object-fit: cover; border-radius: 10px; }
.ligne-rapide .champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ligne-rapide .champs .large { grid-column: 1 / -1; }
.ligne-rapide input, .ligne-rapide select { width: 100%; min-width: 0; }
.ligne-rapide .retirer { justify-self: start; }
.resultat-rapide { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--fond-2); }
/* Statistiques */
.stats-pro { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stats-pro div { padding: 14px; border-radius: 14px; background: var(--carte); }
.stats-pro strong { display: block; font: 800 1.5rem "Bricolage Grotesque", sans-serif; }
.histo-pro { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 8px 0 4px; }
.histo-pro span { flex: 1; background: var(--indigo); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.histo-pro span.vente::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--corail, #e8553b); }
.entonnoir-pro { display: grid; gap: 6px; }
.entonnoir-pro div { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: .92rem; }
.entonnoir-pro i { display: block; height: 22px; border-radius: 6px; background: var(--indigo); min-width: 3px; }
.entonnoir-pro b { text-align: right; }
@media (max-width: 560px) { .ligne-rapide { grid-template-columns: 70px 1fr; } .ligne-rapide img { width: 70px; height: 88px; }
  .entonnoir-pro div { grid-template-columns: 1fr 60px; } .entonnoir-pro i { grid-column: 1 / -1; grid-row: 2; } }

/* Conversation acheteur-vendeur : seulement des boutons (pas de discussion libre) */
.reponses-rapides { border-top: 1px solid var(--bord); padding: 12px 2px calc(12px + env(safe-area-inset-bottom)); }
.ligne-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.ligne-boutons .btn { flex: 1 1 auto; }
.bulle.rep-oui { background: var(--emeraude-doux); color: var(--encre); }
.bulle.rep-non { background: var(--corail-doux); color: var(--encre); }
.bulle.moi.rep-oui, .bulle.moi.rep-non { border-bottom-right-radius: 6px; }
/* Tarru en tête de la boîte de réception */
.logo-tarru-conv { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  font: 800 1.4rem "Bricolage Grotesque", sans-serif; background: linear-gradient(135deg, #3b4bd8, #7a3fd1 60%, #d4441f); }

/* Historique de la commande (dates prévues, déplacées, manquées) */
.historique-commande { border: 1px solid var(--bord); border-radius: var(--r); padding: 12px 14px; margin: 14px 0; }
.historique-commande summary { cursor: pointer; font-weight: 700; }
.chrono { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--bord); }
.chrono li { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.chrono-point { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px; background: var(--fond);
  border: 3px solid var(--encre-3); position: relative; z-index: 1; }
.chrono-ok .chrono-point { border-color: var(--emeraude); }
.chrono-info .chrono-point { border-color: var(--indigo); }
.chrono-alerte .chrono-point { border-color: var(--safran); background: var(--safran); }
.chrono-manque .chrono-point { border-color: var(--corail); background: var(--corail); }
.chrono-manque strong { color: var(--corail); }
.chrono-avenir .chrono-point { border-style: dashed; border-color: var(--indigo); }

/* ───────────── Un site plus vivant (site/vivant.js) ───────────── */
/* Messages en bulles animées, en haut de l'écran */
.messages.bulles { position: fixed; z-index: 1200; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(92vw, 460px); margin: 0; pointer-events: none; }
.messages.bulles .message { pointer-events: auto; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(16, 18, 38, .45);
  animation: bulle-arrive .4s cubic-bezier(.2, .9, .3, 1.2) both; display: flex; gap: 10px; align-items: flex-start; }
.messages.bulles .message.success::before { content: "✓"; font-weight: 900; }
.messages.bulles .message.error::before { content: "!"; font-weight: 900; }
.messages.bulles .message.part { animation: bulle-part .3s ease forwards; }
@keyframes bulle-arrive { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bulle-part { to { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* Cartes : apparition au défilement, photo en fondu, réaction au toucher */
.vivant .article { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .15s; }
.vivant:not(.calme) .article.suivi:not(.vu) { opacity: 0; transform: translateY(16px); }
.article:active { transform: scale(.985); }
.vivant .article .photo img { transition: opacity .45s ease, transform .6s ease; }
.vivant .article .photo img:not(.chargee) { opacity: 0; }
.vivant:not(.calme) .article .photo:has(img:not(.chargee)) {
  background: linear-gradient(100deg, var(--fond-2) 30%, var(--carte) 50%, var(--fond-2) 70%) 0 0 / 300% 100%;
  animation: chargement 1.3s linear infinite; }
@keyframes chargement { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (hover: hover) { .vivant .article:hover .photo img.chargee { transform: scale(1.04); } }

/* Badge « Nouveau » */
.sticker.nouveau { background: #0e7c5a; color: #fff; }

/* Cœur des favoris */
.coeur { transition: transform .15s, color .2s; }
.coeur.pulse { animation: coeur-pulse .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes coeur-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 65% { transform: scale(.9); } 100% { transform: scale(1); } }

/* Rayons en tuiles avec icône */
.tuiles-rayons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.tuiles-rayons a { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 16px; background: var(--carte);
  text-decoration: none; color: var(--encre); font-weight: 700; font-size: .8rem; transition: transform .15s, background .15s; }
.tuiles-rayons a:active { transform: scale(.94); }
@media (hover: hover) { .tuiles-rayons a:hover { background: var(--indigo-doux); transform: translateY(-2px); } }
.tuiles-rayons .rond { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem;
  background: var(--fond-2); }
.tuiles-rayons a:nth-child(5n+1) .rond { background: var(--corail-doux); }
.tuiles-rayons a:nth-child(5n+2) .rond { background: var(--indigo-doux); }
.tuiles-rayons a:nth-child(5n+3) .rond { background: var(--safran-doux); }
.tuiles-rayons a:nth-child(5n+4) .rond { background: var(--emeraude-doux); }
@media (min-width: 900px) { .tuiles-rayons { max-width: 640px; } }

/* Photos en plein écran (fiche article) */
.visionneuse { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 9, 20, .96); opacity: 0; transition: opacity .25s; }
.visionneuse.ouvert { opacity: 1; }
.visionneuse .rail { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visionneuse .rail::-webkit-scrollbar { display: none; }
.visionneuse .cliche { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 8px; }
.visionneuse .cliche img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.visionneuse .fermer { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.visionneuse .compteur { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: .85rem; }

/* Moins d'animations si le téléphone le demande */
@media (prefers-reduced-motion: reduce) {
  .messages.bulles .message, .coeur.pulse, .article .photo { animation: none !important; }
  .vivant .article, .vivant .article .photo img, .visionneuse { transition: none !important; }
}

/* ───────────── Stories (site/stories.js) ───────────── */
.stories-rangee .dressing { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.dressing .anneau.story { background: conic-gradient(#ffd25e, #ff6b4a, #d4441f, #1f2a7a, #ffd25e); }
.dressing.vu .anneau.story { background: var(--bord); }
.dressing.vu .nom { color: var(--encre-3); }
.dressing .anneau.ajout { position: relative; background: var(--fond-2); }
.dressing .anneau.ajout b { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid;
  place-items: center; background: var(--indigo); color: #fff; font-size: 1rem; border: 3px solid var(--fond); line-height: 1; }
.stories-rangee .dressing:active .anneau { transform: scale(.94); }
.stories-rangee .dressing .anneau { transition: transform .15s; }

.lecteur-story { position: fixed; inset: 0; z-index: 2100; background: #05060d; display: none; align-items: center; justify-content: center; }
.lecteur-story.ouvert { display: flex; animation: story-entre .22s ease-out; }
@keyframes story-entre { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.ls-cadre { position: relative; width: min(100vw, 480px); height: min(100dvh, 860px); background: #000; overflow: hidden; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; }
@media (min-width: 520px) { .ls-cadre { border-radius: 18px; } }
.ls-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ls-barres { position: absolute; z-index: 3; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; }
.ls-barres span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.ls-barres i { display: block; height: 100%; width: 0; background: #fff; }
.ls-tete { position: absolute; z-index: 3; top: calc(max(10px, env(safe-area-inset-top)) + 12px); left: 12px; right: 8px; display: flex;
  align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.ls-qui { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.ls-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--corail);
  font-weight: 800; border: 2px solid #fff; }
.ls-av img { width: 100%; height: 100%; object-fit: cover; }
.ls-depuis { font-size: .8rem; opacity: .85; }
.ls-fermer { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); color: #fff;
  font-size: 1.1rem; cursor: pointer; }
.ls-zone { position: absolute; z-index: 2; top: 70px; bottom: 110px; width: 40%; border: 0; background: transparent; cursor: pointer; }
.ls-prec { left: 0; } .ls-suiv { right: 0; width: 60%; }
.ls-carte { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex;
  align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .95);
  color: #101226; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ls-carte > span:first-child { display: grid; min-width: 0; }
.ls-titre { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-prix { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.ls-voir { flex: none; padding: 10px 14px; border-radius: 12px; background: #d4441f; color: #fff; font-weight: 800; font-size: .85rem; }

/* Rayons illustrés par de vrais articles */
.tuiles-rayons .rond { overflow: hidden; }
.tuiles-rayons .rond img { width: 100%; height: 100%; object-fit: cover; }
.tuiles-rayons .rond .lettre { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--indigo); }

/* Page « Ma story » */
.choix-story { display: grid; gap: 10px; margin-top: 12px; }
.carte-story { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--carte); }
.carte-story.active { box-shadow: inset 0 0 0 2px var(--corail-vif); }
.carte-story img { width: 64px; height: 80px; border-radius: 12px; object-fit: cover; flex: none; }
.carte-story .infos { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.carte-story .infos strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Bouton « Mettre en story » en couleur, et invitation juste après la publication */
.btn-story { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  color: #fff; padding: 11px 18px; border-radius: 999px; background: linear-gradient(115deg, #ffb703, #ff6b4a 40%, #d4441f 65%, #3a3fb8);
  background-size: 160% 100%; box-shadow: 0 6px 18px -6px rgba(212, 68, 31, .6); transition: transform .15s, background-position .4s; }
.btn-story:hover { background-position: 100% 0; }
.btn-story:active { transform: scale(.96); }
.btn-story.petit { padding: 7px 14px; font-size: .85rem; }
.invite-story { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px;
  padding: 12px 14px; border-radius: 18px; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--safran-doux), var(--corail-doux)) padding-box,
              conic-gradient(#ffd25e, #ff6b4a, #d4441f, #1f2a7a, #ffd25e) border-box; }
.invite-story > span { display: grid; gap: 2px; flex: 1 1 200px; }
.invite-story small { color: var(--encre-2); font-size: .82rem; }
.vivant:not(.calme) .invite-story .btn-story { animation: story-appel 1.8s ease-in-out 3; }
@keyframes story-appel { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); box-shadow: 0 10px 26px -6px rgba(212, 68, 31, .8); } }
@media (prefers-reduced-motion: reduce) { .invite-story .btn-story { animation: none !important; } }

/* Logo « tarru. » de l'en-tête : pastille blanche qui réagit (retour à l'accueil) */
.entete .logo { display: inline-flex; align-items: center; padding: 7px 14px 8px; border-radius: 999px; background: #fff;
  color: #1f2a7a; box-shadow: 0 1px 2px rgba(16, 18, 38, .08), 0 6px 16px -8px rgba(16, 18, 38, .35);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.3), box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.entete .logo .point { display: inline-block; color: #ff6b4a; transition: transform .25s cubic-bezier(.2, .9, .3, 1.6); }
@media (hover: hover) {
  .entete .logo:hover { transform: translateY(-1px) rotate(-2deg); box-shadow: 0 2px 4px rgba(16, 18, 38, .1), 0 10px 22px -8px rgba(31, 42, 122, .45); }
  .entete .logo:hover .point { transform: translateY(-5px) scale(1.25); }
}
.entete .logo:active { transform: scale(.93); }
.entete .logo:active .point { transform: scale(1.4); }
.entete .logo:focus-visible { outline: 3px solid #ffd25e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .entete .logo, .entete .logo .point { transition: none; } }

/* Bouton « Activer les notifications » (site/push.js) */
.carte-push { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 10px 0 14px; border-radius: 16px;
  background: var(--indigo-doux); }
.carte-push .cloche { font-size: 1.5rem; line-height: 1; }
.carte-push .contenu { display: grid; gap: 4px; justify-items: start; }
.carte-push p { margin: 0; color: var(--encre-2); }
.carte-push[data-etat="actif"] { background: var(--emeraude-doux); }
.carte-push[data-etat="actif"] .btn { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--bord); }

/* ───────────── Téléphone : barre du bas, thème, profil, photos, grille 2 / 4 ───────────── */
/* Barre du bas collée au bord de l'écran (et non plus flottante) */
:root { --nav-bas: 74px; }
.nav-bas { left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px -10px rgba(16, 18, 38, .45); }
.nav-bas .vendre-rond { margin-top: -22px; }

/* Bouton du thème : lune en clair, soleil en sombre (visible aussi sur téléphone) */
.bouton-theme .ico-soleil { display: none; font-size: 1.05rem; line-height: 1; }
:root[data-theme="dark"] .bouton-theme .ico-lune { display: none; }
:root[data-theme="dark"] .bouton-theme .ico-soleil { display: inline; }

/* Profil : « Vendre » en grand, puis des tuiles régulières, deux par ligne */
.action-vendre { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 16px;
  background: var(--indigo); color: #fff; font-weight: 800; text-decoration: none; margin: 4px 0 10px; }
.action-vendre .ico svg { width: 22px; height: 22px; }
.actions-profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .actions-profil { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.actions-profil a { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 16px;
  background: var(--carte); border: 1px solid var(--bord); color: var(--encre); text-decoration: none; font-weight: 700;
  font-size: .86rem; line-height: 1.2; transition: transform .12s, border-color .12s; }
.actions-profil a:active { transform: scale(.97); }
@media (hover: hover) { .actions-profil a:hover { border-color: var(--indigo); } }
.actions-profil .ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--indigo-doux); color: var(--indigo); }
.actions-profil .ico svg { width: 18px; height: 18px; }
.apparence { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 6px; border-radius: 14px; background: var(--fond-2); }
.apparence > span { font-weight: 700; font-size: .85rem; padding: 0 6px; margin-right: auto; }
.apparence button { border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; font-size: .85rem;
  background: transparent; color: var(--encre-2); cursor: pointer; }
.apparence button[aria-pressed="true"] { background: var(--carte); color: var(--encre); box-shadow: 0 1px 3px rgba(16, 18, 38, .15); }
@media (max-width: 899px) { .profil-tete .avatar.grand { width: 78px; height: 78px; font-size: 1.8rem; } }

/* Fiche article : la photo ENTIÈRE, dans un cadre à la taille de l'écran (plus besoin de défiler) */
.galerie .defile img { height: auto; max-height: 72vh; aspect-ratio: 4 / 5; object-fit: contain; background: var(--fond-2); }

/* 2 ou 4 articles par ligne */
.bascule-grille { display: none; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fond-2); vertical-align: middle; }
.bascule-grille button { width: 32px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--encre-3);
  display: grid; place-items: center; cursor: pointer; }
.bascule-grille button svg { width: 18px; height: 18px; fill: currentColor; }
.bascule-grille button[aria-pressed="true"] { background: var(--carte); color: var(--encre); box-shadow: 0 1px 3px rgba(16, 18, 38, .15); }
.section-actions { display: inline-flex; align-items: center; gap: 10px; }
.barre-grille { display: flex; justify-content: flex-end; margin: 0 0 8px; }
@media (max-width: 899px) {
  .bascule-grille { display: inline-flex; }
  .grille-4 .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .grille-4 .grille .article { border-radius: 12px; }
  .grille-4 .grille .article .infos { padding: 5px 6px 7px; }
  .grille-4 .grille .article .prix { font-size: .8rem; }
  .grille-4 .grille .article .ancien, .grille-4 .grille .article .titre, .grille-4 .grille .article .marque,
  .grille-4 .grille .article .vendeur-puce { display: none; }
  .grille-4 .grille .article .sticker { font-size: .55rem; padding: 1px 5px; left: 4px; top: 4px; border-radius: 6px; }
  .grille-4 .grille .article .coeur { width: 26px; height: 26px; right: 4px; bottom: 4px; }
  .grille-4 .grille .article .coeur svg { width: 13px; height: 13px; }
}
:root[data-theme="dark"] .action-vendre { background: #3a3fb8; }
@media (max-width: 899px) { .profil-tete .avatar.grand, .profil-tete .avatar { width: 78px; height: 78px; font-size: 1.8rem; } }

/* Onglets du profil : changement sur place (htmx), avec un léger fondu */
.zone-onglets { scroll-margin-top: 140px; }
.zone-onglets.htmx-request .grille, .zone-onglets.htmx-request .avis, .zone-onglets.htmx-request .vide { opacity: .45; transition: opacity .15s; }

/* En-tête du profil : identité à côté de la photo, 3 chiffres alignés, badges sur une rangée */
.identite-profil { min-width: 0; display: grid; gap: 2px; }
.identite-profil h1 { margin: 0; font-size: clamp(1.25rem, 5vw, 1.7rem); overflow-wrap: anywhere; }
.identite-profil .nom { font-weight: 600; }
.identite-profil .meta { color: var(--encre-3); font-size: .82rem; margin-top: 2px; }
.chiffres-profil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 10px; padding: 10px 4px;
  border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); }
.chiffres-profil > div { display: grid; justify-items: center; gap: 1px; text-align: center; padding: 0 6px; }
.chiffres-profil > div + div { border-left: 1px solid var(--bord); }
.chiffres-profil strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; line-height: 1.1; }
.chiffres-profil strong .etoiles { color: #F2B632; font-size: .95rem; }
.chiffres-profil span { font-size: .76rem; color: var(--encre-3); }
.badges-confiance { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.badges-confiance::-webkit-scrollbar { display: none; }
.badges-confiance .badge-confiance { flex: none; }
@media (min-width: 900px) { .chiffres-profil { max-width: 460px; } .badges-confiance { flex-wrap: wrap; margin: 0 0 12px; padding: 0; } }

/* Page Vendre : photos (ordre, principale, appareil photo / galerie) et aperçu de l'annonce */
.champ-cache { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.depot-photos .case-photo { touch-action: auto; transition: transform .12s, box-shadow .12s; }
.depot-photos .case-photo[data-role="principale"] { box-shadow: 0 0 0 3px #F2B632; }
.depot-photos .case-photo[data-glisse="oui"] { transform: scale(1.06); box-shadow: 0 10px 24px -8px rgba(16, 18, 38, .5); z-index: 2; }
.depot-photos .badge-principale { position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 8px; font-size: .62rem;
  font-weight: 800; background: #F2B632; color: #14162B; }
.depot-photos .poignee { position: absolute; left: 5px; top: 5px; width: 30px; height: 30px; border: 0; border-radius: 9px;
  background: rgba(16, 18, 38, .62); color: #fff; font-size: 16px; line-height: 1; cursor: grab; touch-action: none; }
.depot-photos .etoile { position: absolute; right: 5px; bottom: 5px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #14162B; font-size: 15px; cursor: pointer; }
.ajouts-photo { display: contents; }
.ajouts-photo .ajout-photo.galerie .emoji { font-size: 1.6rem; line-height: 1; }
.depot-photos > * { min-width: 0; align-self: start; }
@media (max-width: 899px) { .depot-photos { grid-template-columns: repeat(3, 1fr); } }
.apercu-annonce .apercu-carte { width: min(200px, 55%); border-radius: var(--r); overflow: hidden; background: var(--carte);
  border: 1px solid var(--bord); }
.apercu-carte .photo { aspect-ratio: 4 / 5; background: var(--fond-2); display: grid; place-items: center; }
.apercu-carte .photo img { width: 100%; height: 100%; object-fit: cover; }
.apercu-carte .sans-photo { font-size: .75rem; color: var(--encre-3); }
.apercu-carte .infos { padding: 9px 11px 12px; }
.apercu-carte .prix { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.06rem; }
.apercu-carte .titre { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-carte .marque { font-size: .76rem; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Suivi de la livraison en direct (page de commande de l'acheteur) */
.suivi-direct { border: 2px solid var(--indigo-doux); }
.suivi-direct[data-etat="en_route"] { border-color: var(--indigo); }
.suivi-direct[data-etat="proche"] { border-color: #F2B632; background: linear-gradient(180deg, rgba(242, 182, 50, .12), transparent 70%), var(--carte); }
.suivi-tete { display: flex; gap: 12px; align-items: center; }
.suivi-icone { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--indigo-doux); }
.suivi-direct[data-etat="en_route"] .suivi-icone, .suivi-direct[data-etat="proche"] .suivi-icone { animation: suivi-roule 1.6s ease-in-out infinite; }
@keyframes suivi-roule { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.suivi-tete > div { min-width: 0; flex: 1; }
.suivi-titre { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.08rem; display: block; }
.suivi-texte { color: var(--encre-2); font-size: .9rem; }
.suivi-heure { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--indigo); color: #fff; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.suivi-direct[data-etat="proche"] .suivi-heure { background: #F2B632; color: #14162B; }
.suivi-carte { height: 230px; margin-top: 12px; border-radius: 14px; overflow: hidden; z-index: 0; }
.suivi-pied { margin: 8px 0 0; }
.suivi-pied:empty { display: none; }
.repere-suivi span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 22px;
  box-shadow: 0 4px 12px rgba(16, 18, 38, .35); }
.repere-suivi.livreur span { background: #F2B632; }
@media (prefers-reduced-motion: reduce) { .suivi-direct .suivi-icone { animation: none !important; } }

/* Version bêta : bandeau en haut du site et encart de la page d'inscription */
.bandeau-beta { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--safran-doux); color: var(--encre);
  font-size: .86rem; line-height: 1.35; border-bottom: 1px solid color-mix(in srgb, var(--safran) 60%, transparent); }
.bandeau-beta[hidden] { display: none; }
.bandeau-beta .etiquette { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--indigo); color: #fff; font-weight: 800;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.bandeau-beta .texte { flex: 1; min-width: 0; }
.bandeau-beta a { color: var(--indigo); font-weight: 700; }
.bandeau-beta .fermer { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--encre-2);
  font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bandeau-beta .fermer:hover { background: color-mix(in srgb, var(--safran) 35%, transparent); }
.encart-beta { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--safran-doux); font-size: .9rem; line-height: 1.4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bandeau-beta a { color: var(--safran); } }
:root[data-theme="dark"] .bandeau-beta a { color: var(--safran); }

/* Livreurs et gérants de relais : leur travail est dans l'espace équipe (gestion) */
.bandeau-equipe { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: var(--indigo); color: #fff;
  font-size: .88rem; line-height: 1.35; }
.bandeau-equipe .texte { flex: 1; min-width: 0; }
.bandeau-equipe .btn { flex: none; background: #fff; color: var(--indigo); }
