/* ==========================================================================
   Mané Pizza — habillage du site client (version épurée)
   Chargé après style.css, uniquement sur les pages du site client.
   ========================================================================== */

body.site {
  --bg: #ffffff;
  --tint: #f2f5f0;        /* fond des photos et des encarts */
  --tint-2: #e8eee5;
  --line: #e4e9e2;
  --text: #13261c;
  --muted: #5d6c63;
  --accent: #2f7a3f;      /* vert Mané Pizza */
  --accent-dark: #225c2f;
  --gold: #2f7a3f; --gold-dark: #225c2f; --surface: #ffffff; --surface-2: #f2f5f0;
  --radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.site h1, body.site h2, body.site h3, body.site .btn-gold, body.site .cart-btn,
body.site .card h3, body.site .sheet h3 { font-style: normal; letter-spacing: -0.015em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
body.site a { color: inherit; }

/* ---------- barre du haut */
.nav { position: sticky; top: 0; z-index: 30; background: #fff; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav .brand-logo { height: 26px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
body.site .cart-btn { background: var(--text); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
body.site .badge { background: #fff; color: var(--text); margin-left: 6px; min-width: 22px; }
body.site .test-banner { background: var(--tint); color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- accueil */
.hero2 { padding: 56px 0 72px; }
.hero2-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.hero2 h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; font-weight: 800; margin: 0 0 20px; color: var(--text); }
.lead { font-size: 18px; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.hero2-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 55%; border-radius: 28px; display: block; }

body.site .order-box { background: var(--tint); border: 0; box-shadow: none; border-radius: 20px; padding: 20px; gap: 12px; }
.order-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.order-row .seg { flex: 1 1 220px; }
body.site .seg { background: #fff; padding: 4px; border-radius: 12px; }
body.site .seg button { border-radius: 9px; font-weight: 500; color: var(--muted); padding: 9px 6px; font-size: 15px; }
body.site .seg button.on { background: var(--text); color: #fff; }
.slot-field { flex: 1 1 160px; }
body.site .field span { font-size: 13px; color: var(--muted); }
body.site .field input, body.site .field select, body.site .field textarea { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.order-row .btn-gold { flex: 0 0 auto; width: auto; padding: 12px 22px; }
body.site .btn-gold { background: var(--accent); color: #fff; border-radius: 999px; font-weight: 700; }
body.site .btn-gold:hover { background: var(--accent-dark); }
body.site .status-line { font-weight: 600; font-size: 14px; }
body.site .status-line.open { color: var(--accent); }
body.site .status-line.closed { color: #a3402f; }
.promo-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.promo-note strong { color: var(--text); white-space: nowrap; }
.promo-note .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 10px 1px 0; vertical-align: middle; }

/* ---------- onglets de la carte (collants) */
.cat-bar { position: sticky; top: 68px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
body.site .cat-bar .tabs { display: flex; gap: 28px; overflow-x: auto; margin: 0; padding: 0; scrollbar-width: none; flex-wrap: nowrap; }
.cat-bar .tabs::-webkit-scrollbar { display: none; }
.cat-bar .tabs a { flex: none; padding: 16px 0 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.cat-bar .tabs a:hover { color: var(--text); }
.cat-bar .tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- la carte */
.menu2 { padding-top: 24px; padding-bottom: 40px; }
.cat-section { padding-top: 48px; scroll-margin-top: 130px; }
.cat-section h2 { font-size: 28px; font-weight: 800; margin: 0 0 24px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 28px; }
.item { position: relative; display: flex; flex-direction: column; gap: 14px; }
.item-hit { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; border-radius: 18px; }
.item-hit:disabled { cursor: default; }
.item-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.item-photo { background: var(--tint); border-radius: 18px; aspect-ratio: 5 / 3.4; display: flex; align-items: center; justify-content: center; padding: 14px 18px; overflow: hidden; }
.item-photo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s ease; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.item:hover .item-photo img { transform: scale(1.05); }
.no-photo { font-size: 44px; font-weight: 800; color: var(--tint-2); }
.item-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-tag { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.item h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.item-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.item-price { font-weight: 700; font-size: 16px; }
.item-add { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; transition: background .2s; }
.item:hover .item-add { background: var(--accent); }
body.site .photo-note { text-align: left; margin-top: 40px; font-size: 13px; color: var(--muted); }

/* ---------- infos pratiques */
.infos { background: var(--tint); padding: 64px 0; margin-top: 40px; }
.infos-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.infos h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.infos p { margin: 0; color: var(--muted); }
.infos a { color: var(--text); font-weight: 600; text-decoration: none; }
.h-row { display: flex; justify-content: space-between; gap: 16px; max-width: 320px; }
.h-row span:first-child { color: var(--text); }

/* ---------- pied de page */
.foot { padding: 36px 0 48px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .footer-logo { height: 20px; }
.foot-addr { margin: 0; color: var(--muted); font-size: 14px; }
body.site .foot .legal-links { border: 0; padding: 0; width: auto; margin-left: auto; gap: 6px 20px; font-size: 14px; }
body.site .foot .legal-links a { text-decoration: none; color: var(--muted); }
body.site .foot .legal-links a:hover { color: var(--text); }

/* ---------- fiche produit */
body.site dialog.sheet { border: 0; border-radius: 24px; width: min(520px, 94vw); box-shadow: 0 30px 80px rgba(19,38,28,.25); }
body.site .sheet form { padding: 0 24px 24px; gap: 18px; }
body.site .sheet-photo { background: var(--tint); margin: 0 -24px; height: 210px; padding: 22px; border-radius: 0; align-items: center; }
body.site .sheet-photo img { filter: drop-shadow(0 10px 12px rgba(0,0,0,.15)); }
body.site .sheet h3 { font-size: 24px; font-weight: 800; }
body.site .sheet form > .card-top:first-child { padding-top: 24px; }
body.site .sheet legend { font-size: 14px; font-weight: 700; }
body.site .opt { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
body.site .opt:has(input:checked) { border-color: var(--text); }
body.site .extras { border: 1px solid var(--line); border-radius: 12px; }
body.site .extras .grp { color: var(--muted); font-style: normal; letter-spacing: .06em; font-size: 12px; }
body.site .qty button { border-radius: 50%; background: #fff; }
body.site .sheet .btn-ghost { border-radius: 999px; }
body.site .pill { background: var(--tint); color: var(--accent); font-style: normal; text-transform: none; font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* ---------- panier */
body.site .drawer { border-left: 0; }
body.site .drawer-head { border-bottom: 1px solid var(--line); }
body.site .drawer-head h2 { font-size: 20px; font-weight: 800; }
body.site .totals .grand { color: var(--text); }
body.site .recap { background: var(--tint); }

/* ---------- pages simples (confirmation, légales) */
body.site .panel { border: 0; background: var(--tint); border-radius: 20px; }
body.site .legal h1 { font-style: normal; text-transform: none; font-size: 40px; color: var(--text); }
body.site .legal h2 { font-style: normal; }

/* ---------- téléphone */
@media (max-width: 900px) {
  .hero2 { padding: 28px 0 48px; }
  .hero2-in { grid-template-columns: 1fr; gap: 32px; }
  .hero2-photo { order: -1; }
  .hero2-photo img { aspect-ratio: 16 / 10; border-radius: 22px; }
  .infos-in { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav-in { height: 60px; }
  .cat-bar { top: 60px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .items { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .item h3 { font-size: 15px; }
  .item-desc { font-size: 13px; }
  .item-photo { border-radius: 14px; padding: 10px; }
  .item-add { width: 32px; height: 32px; font-size: 20px; }
  .cat-section { padding-top: 36px; }
  .cat-section h2 { font-size: 23px; margin-bottom: 18px; }
  .order-row .btn-gold { flex: 1 1 100%; }
  body.site .seg button { font-size: 14px; white-space: nowrap; padding: 9px 4px; }
  body.site .test-banner { font-size: 12px; padding: 6px 12px; }
  .foot .legal-links { margin-left: 0; }
}
body.site .sheet .actions { position: sticky; bottom: 0; background: #fff; padding: 14px 0 4px; margin-top: -4px; box-shadow: 0 -12px 16px -12px rgba(19,38,28,.12); }
body.site .sheet .qty { justify-content: flex-start; }

/* ---------- espace client */
.account { padding-top: 40px; padding-bottom: 72px; min-height: 60vh; }
.auth { max-width: 440px; margin: 0 auto; }
.auth h1, .account h1 { font-size: 34px; font-weight: 800; margin: 0 0 10px; }
.muted { color: var(--muted); }
.form { display: grid; gap: 14px; margin: 22px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.auth-links { margin: 0; font-size: 14px; }
.auth-switch { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.auth a, .account a { color: var(--accent); }
.ok-box { background: #e6f2e8; color: #1d5a2c; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
body.site .account .error { margin-bottom: 18px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-gold.inline { display: inline-block; width: auto; padding: 12px 24px; color: #fff !important; text-decoration: none; }
.account-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; margin-top: 36px; }
.account-grid h2 { font-size: 20px; font-weight: 800; margin: 0 0 16px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-right { text-align: right; white-space: nowrap; }
.account-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.account-more summary { cursor: pointer; font-weight: 600; }
body.site .btn-ghost { border-radius: 999px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
body.site .btn-ghost.danger { color: #a3402f; border-color: #e8c5be; }
.login-needed { background: var(--tint); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.login-needed .row { display: flex; gap: 10px; flex-wrap: wrap; }
.login-needed .btn-gold, .login-needed .btn-ghost { flex: 1; text-align: center; text-decoration: none; }
.who-line { font-size: 14px; color: var(--muted); }
.nav-account { font-size: 15px; text-decoration: none; color: var(--muted); }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; gap: 40px; } }
