/* Ma p'tite culotte : retouches mobile (16/10/2026, demande Cedia). Chargé après rf.min.css (poignée cmpc-rf-mobile).
   En-tête sur une ligne, barre du bas sans bouton flottant, Découvrir plein écran façon Tinder, Mon compte. */

/* ---------- Découvrir : scène (pile + boutons superposés), toutes tailles ---------- */
body.rf .cmpc-decouvrir__scene{position:relative}
body.rf .cmpc-decouvrir__scene .cmpc-decouvrir__actions{position:absolute;left:0;right:0;bottom:16px;z-index:5;margin:0;gap:16px;pointer-events:none}
body.rf .cmpc-decouvrir__scene .cmpc-decouvrir__actions>*{pointer-events:auto}
body.rf .cmpc-decouvrir__passer,body.rf .cmpc-decouvrir__aimer{width:58px;height:58px;padding:0;border-radius:50%;line-height:1;font-size:22px;background:#fff;color:var(--encre);box-shadow:0 10px 24px -10px rgba(0,0,0,.6)}
body.rf .cmpc-decouvrir__aimer{width:58px;height:58px;font-size:26px;background:var(--grenadine);color:#fff;box-shadow:0 10px 24px -8px rgba(179,34,58,.85)}
body.rf .cmpc-decouvrir__passer:active,body.rf .cmpc-decouvrir__aimer:active{transform:scale(.92)}
body.rf .cmpc-decouvrir__voir{min-height:46px;padding:0 18px;background:rgba(255,255,255,.94);box-shadow:0 10px 24px -10px rgba(0,0,0,.6);font-size:.9rem;white-space:nowrap}
body.rf .cmpc-carte-vendeuse{touch-action:pan-y;cursor:grab}
body.rf .cmpc-carte-vendeuse__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
[data-discret="1"] body.rf .cmpc-carte-vendeuse__photo{filter:blur(18px) saturate(.7)}
body.rf .cmpc-carte-vendeuse__visuel::after{background:linear-gradient(180deg,rgba(28,18,22,.35) 0,rgba(28,18,22,0) 16%,rgba(28,18,22,0) 48%,rgba(28,18,22,.7) 72%,rgba(28,18,22,.96) 100%);pointer-events:none}
body.rf .cmpc-carte-vendeuse__barres{position:absolute;top:10px;left:10px;right:10px;z-index:3;display:flex;gap:4px;pointer-events:none}
body.rf .cmpc-carte-vendeuse__barres span{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.38)}
body.rf .cmpc-carte-vendeuse__barres span.vu{background:#fff}
body.rf .cmpc-carte-vendeuse__corps{padding:18px 18px 94px}
body.rf .cmpc-carte-vendeuse__tete{display:flex;align-items:center;gap:12px;margin:0 0 8px}
body.rf .cmpc-carte-vendeuse__tete .cmpc-carte-vendeuse__avatar{position:static;flex:none;width:48px;height:48px;border:2px solid #fff;font-size:20px}
body.rf .cmpc-carte-vendeuse__tete div{min-width:0}
body.rf .cmpc-carte-vendeuse__nom{margin:0;font-size:1.7rem;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 8px rgba(0,0,0,.35)}
body.rf .cmpc-carte-vendeuse__nb{margin:3px 0 0;font-size:.8rem;color:#E4D6DB}
body.rf .cmpc-carte-vendeuse__badges{margin:0 0 6px}
body.rf .cmpc-carte-vendeuse__ligne{margin:0;font-size:.88rem;line-height:1.35;color:#EADDE2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.rf .cmpc-carte-vendeuse__annonce{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:8px 0 0;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff!important;text-decoration:none!important;font-size:.84rem}
body.rf .cmpc-carte-vendeuse__annonce span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.rf .cmpc-carte-vendeuse__annonce b{flex:none;background:#fff;color:var(--encre);border-radius:999px;padding:2px 8px;font-size:.78rem}
body.rf .cmpc-carte-vendeuse__annonce[hidden]{display:none}
body.rf .cmpc-carte-vendeuse.secoue{animation:cmpc-secoue .25s}
@keyframes cmpc-secoue{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

@media (max-width:760px){
  /* ---------- En-tête sur une ligne : logo | recherche + discret | en ligne + panier ---------- */
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-wrap{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:56px auto;align-items:center;column-gap:8px}
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-hd-l{display:contents}
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-logo{grid-column:1;grid-row:1}
  body.rf .rf-hd .rf-logo-picto{height:36px}
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-m-ligne{grid-column:2;grid-row:1;margin:0;min-width:0;gap:4px}
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-hd-nav{grid-column:3;grid-row:1;margin:0;gap:2px}
  body.rf .rf-hd:not(.rf-hd-tunnel) .rf-cats{grid-column:1/-1;grid-row:2}
  body.rf .rf-m-ligne .rf-recherche{flex:1 1 auto;min-width:0;padding:2px 2px 2px 8px;height:40px}
  body.rf .rf-m-ligne .rf-recherche input[type=search]{min-width:0;font-size:16px}
  body.rf .rf-m-ligne .rf-recherche select,body.rf .rf-m-ligne .cmpc-el{display:none!important}
  body.rf .rf-m-ligne .rf-discret-t{flex:none;width:40px;height:40px;min-height:40px;padding:0;justify-content:center;border-radius:50%}
  body.rf .rf-m-ligne .rf-discret-t .rf-masque-t,body.rf .rf-m-ligne .rf-discret-t .rf-bascule{display:none}
  [data-discret="1"] body.rf .rf-m-ligne .rf-discret-t{background:var(--sauge-c);color:var(--sauge)}
  body.rf .rf-hd-nav .cmpc-el{padding:5px 9px;gap:5px;font-size:.78rem;white-space:nowrap}
  body.rf .rf-hd-nav .rf-ic{width:40px;height:40px}

  /* ---------- Barre du bas : 5 entrées alignées, « Vendre » intégré (plus de rond qui dépasse) ---------- */
  body.rf .rf-bas{padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px -16px rgba(28,18,22,.35)}
  body.rf .rf-bas a{justify-content:center;gap:3px;min-height:52px;padding:2px 0;font:600 .66rem/1.1 var(--f-texte);color:var(--encre-3)}
  body.rf .rf-bas .rf-bas-i,body.rf .rf-bas .rf-rond{position:relative;display:grid;place-items:center;width:52px;height:30px;margin:0;border:0;border-radius:999px;box-shadow:none;transition:background .2s}
  body.rf .rf-bas .rf-ico{width:22px;height:22px}
  body.rf .rf-bas a.on{color:var(--grenadine)}
  body.rf .rf-bas a.on .rf-bas-i{background:var(--poudre)}
  body.rf .rf-bas a.rf-vendre{color:var(--grenadine)}
  body.rf .rf-bas .rf-rond{background:var(--grenadine);color:#fff}
  body.rf .rf-bas .rf-rond .rf-ico{width:20px;height:20px}
  body.rf .rf-bas .rf-pastille{top:-4px;right:6px}

  /* ---------- Découvrir : la carte tient dans l'écran ---------- */
  body.rf.rf-decouvrir .entry-header,body.rf.rf-decouvrir .woocommerce-breadcrumb,body.rf.rf-decouvrir .rf-cats,body.rf .cmpc-decouvrir__aide{display:none}
  body.rf.rf-decouvrir .rf-dec{margin:8px 0 0}
  body.rf .cmpc-decouvrir{max-width:none}
  body.rf .cmpc-decouvrir__scene .cmpc-decouvrir__pile{min-height:0;height:100%}
  body.rf .cmpc-decouvrir__scene{min-height:380px}
  body.rf .cmpc-carte-vendeuse{border-radius:18px;touch-action:none}
  body.rf .cmpc-carte-vendeuse:not(.est-dessus){transform:scale(.96) translateY(8px)}
  body.rf .cmpc-carte-vendeuse__nom{font-size:1.55rem}

  /* ---------- Mon compte ---------- */
  body.rf.rf-compte #customer_login .u-column2{margin-top:28px}
}

/* ---------- Mon compte : œil du mot de passe dans le champ, tuiles acheter / vendre ---------- */
body.rf .woocommerce form .password-input,body.rf .password-input{position:relative;display:block;width:100%}
body.rf .password-input input[type=password],body.rf .password-input input[type=text]{width:100%;padding-right:48px!important}
body.rf .woocommerce form .show-password-input,body.rf .show-password-input{position:absolute!important;top:50%!important;right:4px!important;left:auto!important;transform:translateY(-50%);width:40px!important;height:40px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;box-shadow:none!important;color:var(--encre-3)!important;display:grid;place-items:center;cursor:pointer}
body.rf .show-password-input:hover{background:var(--poudre)!important}
body.rf .show-password-input::before,body.rf .show-password-input::after{color:var(--encre-3)!important}
body.rf .cedia-mpc-turnstile{min-height:65px}
.rf-choix-profil{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
.rf-choix{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;border:1.5px solid var(--lin);border-radius:14px;background:var(--papier,#fff);color:var(--encre)!important;text-decoration:none!important;transition:border-color .2s,box-shadow .2s}
.rf-choix .rf-ico{width:24px;height:24px;color:var(--grenadine)}
.rf-choix b{font:600 1.02rem/1.2 var(--f-titre)}
.rf-choix small{font-size:.78rem;line-height:1.3;color:var(--encre-3)}
.rf-choix.on{border-color:var(--grenadine);background:var(--poudre);box-shadow:0 0 0 3px rgba(179,34,58,.12)}
a.rf-choix:hover{border-color:var(--grenadine)}
body.rf-compte .woocommerce-form-register .wcfmmp_become_vendor_link{display:none}
