/* Enaffaire Phase 1 — clean, mobile-first. Business-neutral.
   Parisienne (brand wordmark) is loaded via a non-blocking <link> in each
   page head — NOT @import here, which would render-block the whole sheet. */
:root{
  --ink:#1c2430; --muted:#6b7684; --line:#e3e8ee; --bg:#f5f7fa;
  --brand:#2f6df6; --brand-d:#1f57d0; --ok:#0a7d3c; --err:#c0392b; --radius:14px;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}
h1{margin:0 0 .2em;font-size:1.7rem}
/* Brand wordmark only — elegant French script. NEVER on body/UI copy.
   Large + antique-gold so it reads as the page's confident main heading and
   stands out on the white card. Extra line-height keeps Parisienne's tall
   ascenders / long descenders from clipping. */
.wordmark{font-family:'Parisienne',cursive;font-weight:400;font-size:3rem;
  letter-spacing:.01em;line-height:1.2;color:#B8860B;display:block;text-align:center;margin:0 0 .12em}
.wm-inline{font-family:'Parisienne',cursive;color:#B8860B;font-size:1.6em;
  line-height:1;vertical-align:-.05em}
@media(max-width:520px){.wordmark{font-size:2.35rem}}
.sub{color:var(--muted);margin:.2em 0 1.2em}
.muted{color:var(--muted);font-size:.9rem}.dim{color:var(--muted);font-weight:400;font-size:.8em}
.hint{display:block;color:var(--muted);font-size:.8rem;margin-top:.25rem}

/* Cards / auth */
.auth-bg{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;max-width:420px;width:100%;box-shadow:0 6px 24px rgba(20,30,50,.06)}
.card.splash{text-align:center}
label{display:block;margin:.7rem 0;font-weight:600;font-size:.92rem}
input{width:100%;margin-top:.35rem;padding:.7rem .8rem;border:1px solid var(--line);
  border-radius:10px;font-size:1rem;font-weight:400;background:#fff}
input:focus{outline:2px solid var(--brand);border-color:var(--brand)}
button{cursor:pointer;border:0;border-radius:10px;padding:.75rem 1.1rem;font-size:1rem;font-weight:600}
button[type=submit],.btn-cta{background:var(--brand);color:#fff;width:100%;margin-top:.6rem}
button[type=submit]:hover,.btn-cta:hover{background:var(--brand-d);text-decoration:none}
.btn-cta{display:inline-block;width:auto;padding:.8rem 1.6rem;margin:1rem 0}
.ok,.err,.flash{padding:.7rem .9rem;border-radius:10px;margin:.6rem 0;font-size:.92rem}
.ok,.flash.ok{background:#e7f6ec;color:var(--ok)}
.err,.flash.err{background:#fdecea;color:var(--err)}

/* Portal */
/* Centered business-name header. Button floats to the right edge on desktop
   (absolute, so the name centers across the full bar) and drops below on mobile. */
.topbar{display:flex;justify-content:center;align-items:center;gap:12px;position:relative;
  text-align:center;background:#fff;border-bottom:1px solid var(--line);padding:14px 18px;flex-wrap:wrap}
.btn-ghost{border:1px solid var(--line);border-radius:8px;padding:.45rem .7rem;font-size:.85rem;color:var(--ink)}
.topbar > div{max-width:100%}   /* let a long name wrap within the bar, not overflow */
.topbar .btn-ghost{position:absolute;right:18px;top:50%;transform:translateY(-50%)}
@media(max-width:640px){.topbar{flex-direction:column;gap:8px}
  .topbar > div{width:100%}          /* full width so a long name wraps + centers */
  .topbar .btn-ghost{position:static;transform:none}}

/* Business logo — portal manager card + public hero display */
.logo-card{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:14px;margin-bottom:16px}
.logo-preview{flex:0 0 120px;height:80px;display:flex;align-items:center;justify-content:center;
  background:#fafbfc;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
.logo-empty{color:var(--muted);font-size:.8rem}
.logo-actions{flex:1;min-width:200px}
.logo-title{font-weight:700}
.logo-hint{color:var(--muted);font-size:.82rem;margin:.15rem 0 .55rem}
.logo-btn{display:inline-block;background:#eef2f8;color:var(--brand-d);font-weight:600;border-radius:8px;
  padding:.45rem .8rem;cursor:pointer;font-size:.9rem;position:relative;overflow:hidden}
.logo-btn input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.logo-remove{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:8px;
  padding:.4rem .7rem;font-size:.82rem;margin-left:.4rem}
.hero-logo{max-height:96px;max-width:70%;margin:0 auto .6rem;display:block;object-fit:contain;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.28))}
/* GD auto-generated default banner (public hero fallback) */
.hero-auto{background:#fff;text-align:center}
.hero-banner-img{display:block;width:100%;max-height:460px;object-fit:cover;object-position:center}
.auto-tag{margin:0;padding:12px 16px;color:var(--muted);font-size:1.05rem}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;padding:0;margin:-1px}
.wrap{max-width:1080px;margin:0 auto;padding:18px}
.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:12px}
.slot{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.slot-hero{grid-column:1/-1}
.slot-head{font-weight:700;margin-bottom:.5rem}
.dropzone{position:relative;display:flex;align-items:center;justify-content:center;
  min-height:150px;border:2px dashed var(--line);border-radius:10px;overflow:hidden;
  cursor:pointer;background:#fafbfc;text-align:center;font-weight:600;color:var(--muted)}
.slot-hero .dropzone{min-height:200px}
.dropzone img{width:100%;height:100%;object-fit:cover;display:block}
.dropzone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.dropzone .replace{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.6);
  color:#fff;font-size:.75rem;padding:.25rem .5rem;border-radius:6px}
.cap,.price{margin-top:.5rem;font-weight:400}
.btn-save{background:#eef2f8;color:var(--brand-d);width:100%;margin-top:.5rem}
.btn-undo{background:transparent;color:var(--muted);width:100%;margin-top:.4rem;
  border:1px solid var(--line);font-size:.85rem}
.flash{max-width:1080px}

/* Public page */
.public{background:#fff}
.hero{background:#20304a;color:#fff;padding:64px 20px;text-align:center;background-size:cover;background-position:center;position:relative}
.hero.has-img::after{content:"";position:absolute;inset:0;background:rgba(12,18,30,.45)}
.hero-inner{position:relative;z-index:1;max-width:800px;margin:0 auto}
.hero h1{font-size:2.2rem}
.tagline{font-size:1.1rem;opacity:.95;margin:.3rem 0 0}
.board{max-width:1080px;margin:0 auto;padding:24px 18px}
.board-empty{text-align:center;color:var(--muted);padding:40px 0}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.tile{margin:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tile img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.tile figcaption{padding:.7rem .8rem;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.t-cap{font-weight:600}.t-price{color:var(--brand-d);font-weight:700;white-space:nowrap}
.pub-foot{text-align:center;padding:24px;border-top:1px solid var(--line)}
@media(max-width:520px){.hero{padding:44px 16px}.hero h1{font-size:1.7rem}}

/* Clapping-hands accent flanking the signup CTA. Decorative only (aria-hidden).
   White PNGs get a soft drop-shadow so they read on the white card; slightly
   different rotations avoid robotic symmetry. Offsets stay within the card
   padding on mobile so they never cause horizontal overflow. */
.cta-wrap{position:relative}
.clap{position:absolute;top:50%;width:64px;height:auto;pointer-events:none;
  filter:drop-shadow(0 2px 5px rgba(50,35,10,.32));z-index:2}
.clap-l{left:-34px;transform:translateY(-52%) rotate(-15deg)}
.clap-r{right:-34px;transform:translateY(-52%) rotate(11deg)}
@media(max-width:520px){.clap{width:44px}.clap-l{left:-12px}.clap-r{right:-12px}}
