/*
 * citron.css — Assimey, 24/11/2026.
 * Couleurs : blanc, noir, vert citron. Allure : celle de l'appli Planning
 *   surfaces claires et filets de 1 px, icônes au trait (Lucide), police du téléphone,
 *   graisses moyennes (600 au plus), angles 6 px, aucun aplat lourd, ni ombre, ni dégradé.
 * Chargée EN DERNIER sur toutes les pages (via appli_tete()).
 * Le citron sert à l'action principale et aux repères ; jamais de texte citron sur fond clair.
 */
:root {
  --fond: #F5F5F5; --carte: #FFFFFF; --encre: #0A0A0A; --doux: #6B6B6B; --ligne: #E3E3E3;
  --citron: #C6F432; --citron-fonce: #B2DE1F; --citron-doux: #F3FCD6;
  --accent-texte: #0A0A0A;
  --tete-h: 52px;
  /* variables des anciennes feuilles */
  --primary: #C6F432; --primary-dark: #B2DE1F; --dark: #0A0A0A; --text: #0A0A0A; --muted: #6B6B6B;
  --background: #FFFFFF; --light: #F5F5F5; --border: #E3E3E3; --teinte: #F2F2F2; --accent-doux: #F3FCD6;
  --vert: #C6F432; --vert-fonce: #B2DE1F; --vert-f: #B2DE1F; --vert-doux: #F3FCD6; --sur-vert: #0A0A0A; --nuit: #0A0A0A;
}
html[data-theme="dark"] {
  --fond: #000000; --carte: #141414; --encre: #EDEDED; --doux: #9A9A9A; --ligne: #262626; --citron-doux: #1F260A;
  --accent-texte: #C6F432;
  --primary: #C6F432; --primary-dark: #D4FA5A; --dark: #EDEDED; --text: #EDEDED; --muted: #9A9A9A;
  --background: #141414; --light: #000000; --border: #262626; --teinte: #1C1C1C; --accent-doux: #1F260A; --nuit: #EDEDED;
}
@media (prefers-color-scheme: dark) {
  /* seules les pages en assimey.css suivent le thème du téléphone ; boutique et marché restent clairs */
  :root:not([data-theme="light"]):has(link[href*="assimey.css"]) {
    --fond: #000000; --carte: #141414; --encre: #EDEDED; --doux: #9A9A9A; --ligne: #262626; --citron-doux: #1F260A; --accent-texte: #C6F432; }
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important; }
html:not(:has(link[href*="assimey.css"])) body { background: var(--fond); }
html[data-theme="dark"] body { background: #000; }
h1, h2, h3, h4, strong, b { font-weight: 600 !important; letter-spacing: normal !important; }
*, *::before, *::after { box-shadow: none !important; }
#loader { display: none !important; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--citron); outline-offset: 2px; }

/* ================================================================ ICÔNES AU TRAIT (Lucide, hébergée ici) */
@font-face { font-family: "lucide"; src: url("/assets/lucide.woff2") format("woff2"); font-display: block; }
.fas, .far, .fa-solid, .fa-regular {
  font-family: "lucide" !important; font-weight: 400 !important; font-style: normal; -webkit-font-smoothing: antialiased; }
.fa-xmark::before{content:"\e1b2"}
.fa-store::before{content:"\e3e8"}
.fa-circle-check::before{content:"\e226"}
.fa-chevron-right::before{content:"\e073"}
.fa-star::before{content:"\e17a"}
.fa-plus::before{content:"\e141"}
.fa-magnifying-glass::before{content:"\e155"}
.fa-boxes-stacked::before{content:"\e2d0"}
.fa-user::before{content:"\e19f"}
.fa-map-location-dot::before{content:"\e542"}
.fa-check::before{content:"\e070"}
.fa-cart-shopping::before{content:"\e160"}
.fa-location-dot::before{content:"\e115"}
.fa-house::before{content:"\e0f8"}
.fa-border-all::before{content:"\e105"}
.fa-bag-shopping::before{content:"\e15f"}
.fa-thumbtack::before{content:"\e259"}
.fa-share-nodes::before{content:"\e15a"}
.fa-right-from-bracket::before{content:"\e112"}
.fa-moon::before{content:"\e122"}
.fa-circle::before{content:"\e07a"}
.fa-tag::before{content:"\e183"}
.fa-play::before{content:"\e140"}
.fa-phone-volume::before{content:"\e138"}
.fa-eye::before{content:"\e0be"}
.fa-route::before{content:"\e543"}
.fa-receipt::before{content:"\e3d7"}
.fa-phone::before{content:"\e137"}
.fa-paper-plane::before{content:"\e156"}
.fa-minus::before{content:"\e120"}
.fa-location-crosshairs::before{content:"\e1db"}
.fa-layer-group::before{content:"\e104"}
.fa-chevron-left::before{content:"\e072"}
.fa-video::before{content:"\e1a5"}
.fa-trash-can::before{content:"\e18e"}
.fa-sun::before{content:"\e17c"}
.fa-spinner::before{content:"\e10e"}
.fa-sliders::before{content:"\e29a"}
.fa-lock::before{content:"\e10f"}
.fa-copy::before{content:"\e0a2"}
.fa-comments::before{content:"\e412"}
.fa-clock::before{content:"\e08b"}
.fa-circle-exclamation::before{content:"\e07b"}
.fa-camera::before{content:"\e068"}
.fa-box::before{content:"\e12d"}
.fa-bolt::before{content:"\e1b4"}
.fa-arrow-up-right-from-square::before{content:"\e0bd"}
.fa-arrow-right::before{content:"\e04d"}
.fa-volume-xmark::before{content:"\e1ac"}
.fa-volume-high::before{content:"\e1ab"}
.fa-user-plus::before{content:"\e1a2"}
.fa-tags::before{content:"\e360"}
.fa-store-slash::before{content:"\e055"}
.fa-spa::before{content:"\e2d4"}
.fa-shirt::before{content:"\e1ca"}
.fa-shapes::before{content:"\e4b8"}
.fa-seedling::before{content:"\e1eb"}
.fa-screwdriver-wrench::before{content:"\e1b1"}
.fa-ruler::before{content:"\e14f"}
.fa-reply::before{content:"\e22a"}
.fa-pen::before{content:"\e133"}
.fa-palette::before{content:"\e1dd"}
.fa-mobile-screen::before{content:"\e167"}
.fa-link::before{content:"\e108"}
.fa-kit-medical::before{content:"\e5db"}
.fa-images::before{content:"\e5c9"}
.fa-image::before{content:"\e0f9"}
.fa-headset::before{content:"\e0f4"}
.fa-handshake-angle::before{content:"\e5c5"}
.fa-graduation-cap::before{content:"\e234"}
.fa-gauge::before{content:"\e1bf"}
.fa-fire::before{content:"\e0d7"}
.fa-filter::before{content:"\e0d5"}
.fa-film::before{content:"\e0d4"}
.fa-eye-slash::before{content:"\e0bf"}
.fa-envelope::before{content:"\e113"}
.fa-compass::before{content:"\e09f"}
.fa-circle-half-stroke::before{content:"\e2b2"}
.fa-chevron-down::before{content:"\e071"}
.fa-champagne-glasses::before{content:"\e2f8"}
.fa-certificate::before{content:"\e241"}
.fa-car::before{content:"\e1d5"}
.fa-basket-shopping::before{content:"\e4ef"}
.fa-bars::before{content:"\e119"}
.fa-map::before{content:"\e114"}
.fa-arrow-left::before{content:"\e04c"}
.fa-heart::before{content:"\e0f5"}
.fa-bell::before{content:"\e05d"}
.fa-gear::before{content:"\e158"}

/* ================================================================ EN-TÊTES : clairs, filet fin */
.header, .entete, .barre-assimey { background: var(--carte) !important; border-bottom: 1px solid var(--ligne) !important; backdrop-filter: none !important; color: var(--encre); }
.barre-assimey a, .barre-assimey .liens a { color: var(--doux) !important; }
html[data-theme="dark"] .header .logo img { content: url("/assets/logo-citron-clair.png"); }
.nav-desktop a, .entete .nav a, .entete .lien-compte, .entete .panier-lien, .lien-entete, .bouton-theme,
.header .theme-toggle, .header .theme-btn, .header .back { color: var(--encre) !important; font-weight: 500 !important; }
.nav-desktop a.active, .entete .nav a.actif { font-weight: 600 !important; box-shadow: inset 0 -2px 0 var(--citron) !important; }
.nav-desktop a:hover, .entete .nav a:hover { color: var(--doux) !important; }
.lien-entete:hover, .bouton-theme:hover, .entete .lien-compte:hover { background: var(--fond) !important; }
.nav-desktop .dropdown { background: var(--carte); border: 1px solid var(--ligne); }
/* boutons d'icône façon Planning : sans cadre, icône fine */
.header .theme-toggle, .header .theme-btn, .btn-ico {
  border: 0 !important; background: none !important; width: 36px; height: 36px; padding: 0; border-radius: 6px !important;
  display: inline-flex; align-items: center; justify-content: center; color: var(--encre) !important; font-size: 18px; text-decoration: none; }
.btn-ico:active, .header .theme-toggle:active { background: var(--citron-doux) !important; }
.header .btn-ghost { background: none !important; color: var(--encre) !important; border: 1px solid var(--ligne) !important; }
.hamburger, #mobile-menu { display: none !important; }
/* recherche : champ bordé, icône discrète */
.recherche-entete input, .entete .recherche input { background: var(--fond) !important; border: 1px solid var(--ligne) !important; color: var(--encre) !important; border-radius: 6px !important; }
.recherche-entete input:focus, .entete .recherche input:focus { border-color: var(--encre) !important; background: var(--carte) !important; }
.recherche-entete i { color: var(--doux) !important; }
.entete .recherche { position: relative; }
.entete .recherche button { background: none !important; color: var(--encre) !important; border: 0 !important; }
.bandeau-categories { background: var(--carte); border-top: 1px solid var(--ligne) !important; }
.bandeau-int a { color: var(--doux) !important; font-weight: 500 !important; }
.bandeau-int a i { color: var(--doux) !important; }
.bandeau-int a:hover, .bandeau-int a[aria-current] { background: var(--citron-doux) !important; color: var(--encre) !important; }
.bandeau-int a[aria-current] i { color: var(--encre) !important; }

/* ================================================================ BOUTONS (façon .bt de Planning) */
.btn { border-radius: 6px !important; font-weight: 600 !important; }
.btn-primary, .btn-principal, .btn-vert, .btn-vendeur-mobile, .fil-act.principal, .lien-entete.vendeur-mobile {
  background: var(--citron) !important; border: 1px solid var(--citron) !important; color: #0A0A0A !important; }
.btn-primary:hover, .btn-principal:hover, .btn-vert:hover, .btn-vendeur-mobile:hover, .fil-act.principal:hover {
  background: var(--citron-fonce) !important; color: #0A0A0A !important; }
.btn-primary i, .btn-principal i, .btn-vert i, .btn-vendeur-mobile i, .fil-act.principal i, .lien-entete.vendeur-mobile i { color: #0A0A0A !important; }
.btn-contour, .btn-ghost, .fil-act:not(.principal) { background: var(--carte) !important; border: 1px solid var(--ligne) !important; color: var(--encre) !important; font-weight: 500 !important; }
input.champ, select.champ, textarea.champ, .input-wrap input, .field input, .field select { border-radius: 6px !important; border-color: var(--ligne) !important; }
input.champ:focus, select.champ:focus, textarea.champ:focus, .input-wrap input:focus { border-color: var(--encre) !important; outline: none; }

/* puces / filtres / onglets : comme les .puce de Planning */
.fil-filtres button, .rangee-cats a, .compte-menu a, .cats-mobile button {
  border: 1px solid var(--ligne) !important; background: var(--carte) !important; color: var(--encre) !important; border-radius: 6px !important; font-weight: 500 !important; }
.fil-filtres button i, .rangee-cats a i, .compte-menu a i { color: var(--doux) !important; }
.fil-filtres button.actif, .rangee-cats a.actif, .compte-menu a[aria-current], .cats-mobile button.actif {
  background: var(--citron-doux) !important; border-color: var(--citron-fonce) !important; color: var(--encre) !important; font-weight: 600 !important; }
.fil-filtres button.actif i, .rangee-cats a.actif i, .rangee-cats a.actif span, .compte-menu a[aria-current] i, .cats-mobile button.actif span { color: var(--encre) !important; }
.onglets { border-color: var(--ligne) !important; background: var(--fond) !important; border-radius: 6px !important; }
.onglets input:checked + span, .onglets button.actif { background: var(--carte) !important; color: var(--encre) !important; font-weight: 600 !important; }

/* ================================================================ ACCUEIL */
.fil-hero { background: var(--carte) !important; color: var(--encre); border-bottom: 1px solid var(--ligne) !important; }
.fil-hero::before, .fil-hero::after { display: none !important; }
.fil-hero h1 { color: var(--encre) !important; font-weight: 600 !important; }
.fil-hero h1 span { color: var(--encre) !important; box-shadow: inset 0 -.32em 0 var(--citron-doux) !important; }
.fil-hero p { color: var(--doux) !important; }
.fil-recherche { background: var(--fond) !important; border: 1px solid var(--ligne) !important; border-radius: 6px !important; }
.fil-recherche input { color: var(--encre) !important; background: transparent !important; }
.fil-recherche button { background: none !important; color: var(--encre) !important; border: 0 !important; font-weight: 500 !important; }
.fil-hero-cats a { background: var(--carte) !important; border: 1px solid var(--ligne) !important; color: var(--encre) !important; border-radius: 6px !important; font-weight: 500 !important; }
.fil-hero-cats a i { color: var(--doux) !important; }
.fil-hero-cats a:hover { border-color: var(--encre) !important; }
.fil-page { background: var(--fond) !important; }
.fil-bloc, .fil-pub, .fil-squelette, .fil-vide { border-radius: 6px !important; background: var(--carte) !important; border: 1px solid var(--ligne) !important; }
.fil-bloc h3 { font-size: 13px !important; color: var(--doux) !important; font-weight: 600 !important; }
.fil-cats a { font-weight: 500 !important; border-radius: 6px !important; }
.fil-cats a i { color: var(--doux) !important; }
.fil-cats a.actif { background: var(--citron-doux) !important; color: var(--encre) !important; }
.fil-pub:hover { transform: none !important; border-color: #C9C9C9 !important; }
.fil-pub.cache, .fil-encart.cache { opacity: 1 !important; transform: none !important; }
.fil-pub.vu .fil-media img { transform: none !important; }
.fil-boutique { font-weight: 600 !important; }
.fil-nom { font-weight: 500 !important; }
.fil-prix { color: var(--encre) !important; font-weight: 600 !important; }
.fil-avatar, .fil-boutiques .av, .story-cercle span, .logo-b, .carte-ligne .vignette, .shop-logo {
  background: var(--citron-doux) !important; color: var(--encre) !important; border-color: var(--carte) !important; font-weight: 600 !important; }
.fil-avatar { box-shadow: none !important; }
.fil-visiter { background: none !important; color: var(--encre) !important; border: 1px solid var(--ligne); border-radius: 6px !important; font-weight: 500 !important; }
/* étiquettes posées sur les photos : comme les .tag de Planning */
.fil-badge, .badge-nouveau, .carte .etiquette, .carte-media .badge, [class*="badge"] {
  background: var(--carte) !important; color: var(--encre) !important; border: 1px solid var(--ligne) !important; border-radius: 4px !important; font-weight: 600 !important; }
.fil-son { background: rgba(10, 10, 10, .6) !important; }
.fil-encart, .fil-vendre { background: var(--carte) !important; color: var(--encre) !important; border: 1px solid var(--ligne) !important; border-radius: 6px !important; }
.fil-encart > i { background: var(--citron-doux) !important; color: var(--encre) !important; animation: none !important; border-radius: 6px !important; }
.fil-encart span, .fil-vendre p { color: var(--doux) !important; }
.fil-vendre h3 { color: var(--encre) !important; }
.fil-avis .etoiles, .etoiles { color: var(--encre); }
html[data-theme="dark"] .fil-avis .etoiles, html[data-theme="dark"] .etoiles { color: var(--citron); }

/* ================================================================ TEXTES : jamais de citron sur fond clair */
.carte-bout .bas b, .carte-prix, .carte-ligne .dist, .ailleurs-tete a, .carte-page .note a, .carte-page .note i,
.fil-boutiques > a:last-child, .terms a, .form-side .login a, .offre li b, .barre-assimey .vendre { color: var(--accent-texte) !important; }
.carte-prix { font-weight: 600 !important; }
.terms a, .form-side .login a, .carte-page .note a { text-decoration: underline; text-decoration-color: var(--citron-fonce); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ================================================================ PIEDS DE PAGE : clairs */
.footer, .pied, .pied-marche { background: var(--carte) !important; color: var(--doux) !important; border-top: 1px solid var(--ligne); }
.footer-col h4, .pied h4, .pied-marche h4 { color: var(--encre) !important; }
.footer a, .pied a, .pied-marche a, .copyright { color: var(--doux) !important; }
.footer a:hover, .pied a:hover, .pied-marche a:hover { color: var(--encre) !important; }
.footer .logo img, .pied img, .pied-marche img { content: url("/assets/logo-citron.png"); }
html[data-theme="dark"] .footer .logo img, html[data-theme="dark"] .pied img { content: url("/assets/logo-citron-clair.png"); }

/* ================================================================ BARRES DU BAS (téléphone) : comme nav.bas de Planning
   fond clair, filet en haut, icône et libellé sur la même ligne, onglet actif en encre + trait citron */
@media (max-width: 900px) {
  .appli-barre, .nav-mobile {
    background: var(--carte) !important; border-top: 1px solid var(--ligne) !important;
    height: calc(52px + env(safe-area-inset-bottom)) !important; padding: 0 0 env(safe-area-inset-bottom) !important;
    display: flex !important; align-items: stretch !important; justify-content: stretch !important; gap: 0 !important; }
  .appli-barre a, .nav-mobile button, .nav-mobile a {
    flex: 1 1 0 !important; min-width: 0 !important; height: auto !important; padding: 0 2px !important; border-radius: 0 !important; background: none !important;
    display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 3px !important;
    color: var(--doux) !important; font: 500 11px system-ui, -apple-system, Roboto, sans-serif !important; position: relative; white-space: nowrap; }
  .appli-barre a span { display: inline !important; overflow: hidden; text-overflow: ellipsis; }
  .appli-barre a i, .nav-mobile i { font-size: 14px !important; color: inherit !important; }
  .appli-barre a.actif, .nav-mobile .actif { color: var(--encre) !important; font-weight: 600 !important; background: none !important; }
  .appli-barre a.actif::before, .nav-mobile .actif::before { content: ""; position: absolute; left: 22%; right: 22%; top: -1px; height: 2px; background: var(--citron); }
  .nav-mobile .vers-assimey img { width: 16px !important; height: 16px !important; }
  .nav-mobile .nb { font-size: 9.5px !important; top: 6px !important; left: auto !important; right: 8% !important; }
  body:has(.appli-barre) { padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
}
html[data-theme="dark"] .appli-barre { background: #141414 !important; border-top-color: #262626 !important; }


/* ================================================================ TÉLÉPHONE : densité */
@media (max-width: 900px) {
  /* le pied de page est remplacé par la barre d'onglets */
  .footer, .pied, .pied-marche { display: none !important; }
}
@media (max-width: 600px) {
  .container, .conteneur { padding-left: 12px !important; padding-right: 12px !important; }
  /* en-têtes sur une ligne, 54 px */
  .header-container, .entete-int { height: var(--tete-h) !important; gap: 8px !important; }
  .header .logo img, .entete .logo img { height: 22px !important; width: auto !important; }
  .header-actions { gap: 2px !important; }
  .header-actions .btn-ghost { display: none !important; }
  .header-actions .btn-ico, .header-actions .theme-toggle { display: inline-flex !important; }
  .entete .logo-assimey img { height: 22px !important; }
  .btn-vendeur-mobile { height: 32px !important; border-radius: 6px !important; padding: 0 10px !important; font-size: 12.5px !important; font-weight: 600 !important; gap: 5px !important; }
  /* accueil : bandeau resserré, titre sur 2 lignes max, recherche collée */
  .fil-hero .container { padding-top: 10px !important; padding-bottom: 12px !important; }
  .fil-hero h1 { display: none !important; }
  .fil-hero p { display: none !important; }
  .fil-recherche input { height: 42px !important; font-size: 14px !important; padding: 0 12px !important; }
  .fil-recherche button { padding: 0 12px !important; font-size: 0 !important; width: 46px; justify-content: center; }
  .fil-recherche button i { font-size: 16px; }
  .fil-page { padding: 8px 0 16px !important; }
  .fil-filtres { margin-bottom: 8px !important; gap: 6px !important; }
  .fil-filtres button { height: 32px !important; padding: 0 10px !important; font-size: 12.5px !important; }

  /* fil en GRILLE de 2 colonnes : on voit 4 à 6 articles par écran au lieu d'un */
  .fil-flux { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 !important; }
  .fil-encart, .fil-fin, .fil-vide, .fil-squelette { grid-column: 1 / -1; }
  .fil-squelette:nth-child(n+2) { display: none; }
  .fil-pub { display: flex !important; flex-direction: column; border: 1px solid var(--border) !important; border-radius: 6px !important; }
  .fil-tete { padding: 6px 8px !important; gap: 6px !important; }
  .fil-avatar { width: 22px !important; height: 22px !important; font-size: 11px !important; }
  .fil-boutique { font-size: 12px !important; font-weight: 600 !important; }
  .fil-meta, .fil-visiter { display: none !important; }
  .fil-media { aspect-ratio: 1 / 1 !important; }
  .fil-fleche { display: none !important; }
  .fil-badge { left: 6px !important; top: 6px !important; padding: 2px 6px !important; font-size: 10.5px !important; }
  .fil-son { width: 28px !important; height: 28px !important; right: 6px !important; bottom: 6px !important; }
  .fil-corps { padding: 6px 8px 0 !important; flex: 1; }
  .fil-nom { font-size: 13px !important; font-weight: 500 !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fil-prix { font-size: 14.5px !important; margin-top: 2px !important; }
  .fil-prix small { font-size: 11px !important; }
  .fil-desc { display: none !important; }
  .fil-avis { font-size: 11px !important; }
  .fil-actions { padding: 6px 8px 8px !important; gap: 6px !important; flex-wrap: nowrap !important; }
  .fil-act { height: 32px !important; border-radius: 6px !important; font-size: 12.5px !important; padding: 0 8px !important; }
  .fil-act.principal { gap: 5px !important; min-width: 0; }
  .fil-act:not(.principal) { font-size: 0 !important; width: 32px !important; flex: 0 0 32px !important; padding: 0 !important; justify-content: center; }
  .fil-act:not(.principal) i { font-size: 14px !important; }
  .fil-act:not(.principal) ~ .fil-act:not(.principal) { display: none !important; }
  .fil-encart { padding: 10px 12px !important; gap: 10px !important; margin: 0 !important; flex-wrap: nowrap !important; }
  .fil-encart > i { width: 36px !important; height: 36px !important; font-size: 15px !important; }
  .fil-encart b { font-size: 14px !important; }
  .fil-encart span { font-size: 12px !important; }
  .fil-encart .fil-act { width: auto !important; flex: 0 0 auto !important; }
}

/* ================================================================ MARCHÉ ET BOUTIQUES : téléphone */
@media (max-width: 600px) {
  /* titres de page : une ligne, sans icône ni phrase d'intro */
  .bandeau-cat .conteneur, .bandeau .conteneur { padding-top: 10px !important; padding-bottom: 10px !important; gap: 10px !important; }
  .bandeau-cat .icone-cat, .bandeau-cat p, .bandeau-cat .chiffres, .bandeau p, .bandeau .atouts { display: none !important; }
  .bandeau-cat h1, .bandeau h1 { font-size: 18px !important; margin: 0 !important; line-height: 1.25 !important; }
  .bandeau-cat, .bandeau { background: var(--carte) !important; border-bottom: 1px solid var(--bord, #E6E6E6); }
  /* fil d'Ariane et compteur : inutiles sur téléphone (la barre d'onglets dit où l'on est) */
  .conteneur > .fil, .outils .resultats, #resultats { display: none !important; }
  .outils { margin: 0 0 8px !important; gap: 8px !important; }
  .rangee-cats { padding: 8px 0 !important; gap: 6px !important; margin: 0 !important; }
  .rangee-cats a { height: 32px !important; padding: 0 10px !important; font-size: 12.5px !important; border-radius: 6px !important; }
  /* cartes produits : 2 colonnes serrées */
  .grille { gap: 8px !important; }
  .carte { border-radius: 6px !important; }
  .carte-corps { padding: 6px 8px 8px !important; }
  .carte-corps h3, .carte-nom { font-size: 13px !important; line-height: 1.3 !important; }
  .carte-prix { font-size: 14px !important; margin-top: 2px !important; }
  .carte .btn, .carte button.btn-vert { height: 32px !important; font-size: 12.5px !important; padding: 0 8px !important; border-radius: 6px !important; }
  .grille-boutiques { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  /* cartes boutiques : couverture, puis logo + nom sur une ligne, puis infos */
  .carte-bout { border-radius: 6px !important; }
  .carte-bout .couv { height: 84px !important; overflow: hidden !important; }
  .carte-bout .couv img { height: 100% !important; object-fit: cover; }
  .carte-bout .ident { margin-top: 0 !important; padding: 8px 8px 0 !important; gap: 8px !important; align-items: center !important; }
  .carte-bout .logo-b { width: 32px !important; height: 32px !important; margin: 0 !important; transform: none !important; font-size: 15px !important; border-radius: 6px !important; border-width: 2px !important; flex: 0 0 32px; }
  .carte-bout .ident > div { min-width: 0; padding-bottom: 0 !important; }
  .carte-bout .ident strong { font-size: 13px !important; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .carte-bout .ident small { font-size: 11.5px !important; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .carte-bout .bas { padding: 6px 8px 8px !important; font-size: 11.5px !important; border: 0 !important; margin: 0 !important; }
  .carte-bout .bas b { display: none !important; }
  /* encarts d'aide : une seule ligne utile */
  .aides { gap: 6px !important; margin-top: 12px !important; }
  .aides .aide { padding: 8px 10px !important; gap: 10px !important; align-items: center !important; }
  .aides .aide:not(:last-child) { display: none !important; }
  .aides .aide .ic { width: 32px !important; height: 32px !important; flex: 0 0 32px !important; }
  .aides .aide .btn { margin-left: auto; flex-shrink: 0; }
}

/* ================================================================ PAGES DE COMPTE (vue.php) et INSCRIPTION */
@media (max-width: 720px) {
  /* l'en-tête de vue.php passe la recherche sur une 2e ligne : hauteur libre */
  .entete-int { height: auto !important; min-height: var(--tete-h); padding-top: 6px !important; padding-bottom: 6px !important; row-gap: 6px !important; }
  .recherche-entete input { height: 38px !important; }
}
@media (max-width: 600px) {
  /* formulaires : pleine largeur, sans cadre autour (le cadre mangeait 30 px de largeur) */
  .signup-card, .carte-formulaire, .boite-connexion, .panneau, .bloc-form { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
  .main:has(.signup-card) { padding: 0 !important; }
  .section { padding-block: 12px !important; }
  .hero { padding-block: 16px !important; }
  .formulaire.carte-bloc, .carte-bloc.formulaire { border: 0 !important; padding: 4px 0 !important; background: transparent !important; }
  .connexion-cote { display: none !important; }
  .champ { height: 44px; }
  textarea.champ { height: auto; }
  .btn-grand { height: 46px !important; }
  /* espace vendeur : onglets en ligne serrés, sans doublons avec l'en-tête et la barre du bas */
  .entete-actions a[href="/compte"], .compte-menu a[href="/deconnexion"] { display: none !important; }
  .compte { gap: 10px !important; }
  .compte-menu { gap: 6px !important; margin: 0 -12px !important; padding: 0 12px 2px !important; }
  .compte-menu a { padding: 0 10px !important; height: 34px; font-size: 13px !important; border: 1px solid var(--bord) !important; border-radius: 6px !important; gap: 6px !important; }
  .compte-tete h1 { font-size: 20px !important; margin-bottom: 2px !important; }
  .compte-tete p { font-size: 13px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 !important; }
  .compte-tete { margin-bottom: 10px !important; gap: 8px !important; }
  .compte-tete .btn { height: 38px !important; padding: 0 12px !important; font-size: 13px !important; }
  .compte-tete a.btn-contour[href="/compte/articles"] { display: none !important; }
  /* chiffres du tableau de bord : 4 sur une ligne */
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; margin-bottom: 10px !important; }
  .stats > div { padding: 8px 6px !important; border-radius: 6px !important; text-align: center; }
  .stats strong { font-size: 20px !important; line-height: 1.1 !important; display: block; }
  .stats span { font-size: 10.5px !important; line-height: 1.25 !important; display: block; margin-top: 2px; }
  .carte-bloc { padding: 12px !important; border-radius: 6px !important; }
  .carte-bloc h2 { font-size: 16px !important; margin-bottom: 4px !important; }
  .carte-bloc > p { font-size: 13px !important; margin: 0 0 8px !important; }
  .partage-ligne { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; gap: 6px !important; }
  .partage-ligne .btn { font-size: 0 !important; width: 44px; height: 44px !important; padding: 0 !important; justify-content: center; }
  .partage-ligne .btn i { font-size: 16px; }
  /* formulaire d'article : champs courts deux par deux */
  .grille-champs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .grille-champs .large { grid-column: 1 / -1 !important; }
  .grille-champs label { font-size: 13px !important; min-width: 0; }
  .grille-champs label small { font-size: 11px !important; }
  .onglets.choix-genre { display: flex !important; width: 100%; }
  .onglets.choix-genre label { flex: 1; text-align: center; }
  .onglets.choix-genre label span { display: block; padding: 8px 6px !important; font-size: 13px !important; }
  .sous-titre { font-size: 15px !important; margin: 14px 0 6px !important; }
  .depot { padding: 12px !important; flex-direction: row !important; gap: 10px !important; text-align: left !important; justify-content: flex-start !important; }
  .depot small { display: none !important; }
  .vide-page { padding: 20px 12px !important; margin-top: 10px !important; }
  .vide-page i { font-size: 26px !important; }
  .vide-page h2 { font-size: 17px !important; }
  .formulaire.carte-bloc > .onglets { margin-top: 0 !important; }
  .form-side { padding: 14px 12px !important; }
  .signup-card h1, .form-side h1 { font-size: 20px !important; margin-bottom: 2px !important; }
  .input-wrap input, .field input, .field select, .champ input, .champ select, .champ textarea { height: 44px !important; }
  .field { margin-bottom: 10px !important; }
  .header .back { font-size: 0 !important; }
  .header .back::before { content: "Se connecter"; font-size: 13px; font-weight: 600; }
}

/* ================================================================ APPLICATION ANDROID */
html.dans-appli .footer, html.dans-appli .pied, html.dans-appli .pied-marche,
html.dans-appli .aller-contenu, html.dans-appli .invitation-installer { display: none !important; }

/* ================================================================ BOUTIQUE : en-tête et épingle (allure Planning) */
.epingle-btn { border: 1px solid var(--ligne) !important; background: var(--carte) !important; color: var(--encre) !important; font-weight: 500 !important; border-radius: 6px !important; }
.epingle-btn i { color: var(--encre) !important; }
.epingle-btn.epingle-on { background: var(--citron-doux) !important; border-color: var(--citron-fonce) !important; }
.epingle-invite { background: var(--carte) !important; color: var(--encre) !important; border: 1px solid var(--ligne) !important; border-radius: 6px !important; }
@media (max-width: 600px) {
  /* le nom de la boutique est déjà dans l'en-tête */
  section.bandeau { display: none !important; }
  .entete .epingle-btn, .entete .btn-vert { height: 36px !important; width: 36px !important; padding: 0 !important; justify-content: center; }
}
