/* =========================================================================
   AgroMina – feuille de style du site et de l'espace admin
   Couleurs de marque : vert #126333, orange #F29A19, vert feuille #8CBD50
   ========================================================================= */

:root {
  --radius: 14px;
  --bg: #fbfcf8;
  --fg: #1d3326;
  --card: #ffffff;
  --primary: #126333;
  --primary-deep: #0b4a25;
  --primary-fg: #ffffff;
  --secondary: #eef5e6;
  --secondary-fg: #0b4a25;
  --muted: #f3f4ee;
  --muted-fg: #62756a;
  --accent: #f29a19;
  --accent-fg: #2b200d;
  --leaf: #8cbd50;
  --cream: #fbf6ea;
  --destructive: #d63a2b;
  --border: #e0e8da;
  --shadow: 0 1px 2px rgba(18, 60, 35, .06), 0 8px 24px -12px rgba(18, 60, 35, .18);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

html.dark {
  --bg: #0f1a13;
  --fg: #eef2ea;
  --card: #16231a;
  --primary: #3d9a5c;
  --primary-deep: #2f8049;
  --secondary: #1f3326;
  --secondary-fg: #cfe5c2;
  --muted: #0c150f;
  --muted-fg: #a2b4a6;
  --cream: #222a1c;
  --border: #2b3d30;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
@media (max-width: 767px) { input, select, textarea { font-size: 16px !important; } }

.ic { width: 20px; height: 20px; flex-shrink: 0; }
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.muted { color: var(--muted-fg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pattern-band {
  background-color: var(--primary-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}

/* ------------------------------------------------------------------ Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 600; transition: filter .15s, background .15s, transform .15s; border: 1px solid transparent; white-space: nowrap; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: .45; }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover:not(:disabled) { filter: brightness(.95); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover:not(:disabled) { background: var(--primary-deep); }
.btn-outline { border-color: var(--border); color: var(--primary); background: var(--card); }
.btn-outline:hover { background: var(--secondary); }
.btn-danger { border-color: var(--border); color: var(--destructive); background: var(--card); }
.btn-danger:hover { background: rgba(214, 58, 43, .08); }
.btn-sm { padding: .5rem .75rem; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; border-radius: 1rem; }

/* ------------------------------------------------------------------ En-tête */
.site-header { position: sticky; top: 0; z-index: 40; }
.topbar { background: var(--primary); color: var(--primary-fg); display: flow-root; padding-top: env(safe-area-inset-top); }
.topbar-row { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; }
@media (min-width: 768px) { .topbar-row { gap: 1.5rem; } }
.menu-btn { display: inline-flex; color: inherit; }
@media (min-width: 768px) { .menu-btn { display: none; } }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; background: var(--card); border-radius: 10px; padding: 4px 8px; }
.logo img { height: 36px; width: auto; aspect-ratio: 3.4 / 1; object-fit: cover; object-position: center; }
@media (min-width: 768px) { .logo img { height: 44px; } }
.logo-lg img { height: 48px; }
.delivery-hint { display: none; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.15; }
.delivery-hint .ic { opacity: .8; }
.delivery-hint small { display: block; font-size: .75rem; opacity: .75; }
@media (min-width: 1024px) { .delivery-hint { display: flex; } }
.search { display: flex; align-items: center; background: var(--card); border-radius: 999px; padding: .375rem .375rem .375rem 1.25rem; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: .875rem; color: var(--fg); }
.search input::placeholder { color: var(--muted-fg); }
.search button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.search button .ic { width: 16px; height: 16px; }
.search-desktop { display: none; flex: 1; }
@media (min-width: 768px) { .search-desktop { display: flex; } }
.search-mobile { margin: 0 1rem .875rem; padding-left: 1rem; width: auto; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.search-mobile input { font-size: 16px; padding-block: .25rem; }
@media (min-width: 768px) { .search-mobile { display: none; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .header-actions { margin-left: 0; } }
.h-action { position: relative; display: flex; flex-direction: column; align-items: center; font-size: .75rem; }
.h-label { display: none; }
@media (min-width: 768px) { .h-label { display: block; } }
.h-account { display: none; }
@media (min-width: 640px) { .h-account { display: flex; } }
.badge { position: absolute; right: -8px; top: -6px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 10px; font-weight: 700; }

.navband { color: var(--primary-fg); display: none; }
.navband.is-open { display: block; }
@media (min-width: 768px) { .navband { display: block; } }
.nav-row { display: flex; flex-direction: column; gap: .25rem; padding-block: .5rem; font-size: .875rem; }
@media (min-width: 768px) { .nav-row { flex-direction: row; align-items: center; gap: 1.75rem; } }
.nav-row a { padding-block: .375rem; font-weight: 500; opacity: .9; }
.nav-row a:hover { opacity: 1; }
.nav-row a.is-active { color: var(--leaf); opacity: 1; }
.promo-hint { display: none; font-size: .75rem; }
.promo-hint b { color: var(--accent); }
@media (min-width: 768px) { .promo-hint { display: block; margin-left: auto; } }
.admin-link { font-weight: 700 !important; text-decoration: underline; }

/* ------------------------------------------------------------------ Messages */
.flash { max-width: 80rem; margin: 1rem auto 0; padding: .875rem 1.25rem; border-radius: 12px; font-size: .9rem; font-weight: 500; width: calc(100% - 2rem); }
.flash-success { background: var(--secondary); color: var(--primary-deep); border: 1px solid rgba(18, 99, 51, .2); }
.flash-error { background: rgba(214, 58, 43, .08); color: var(--destructive); border: 1px solid rgba(214, 58, 43, .25); }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 380px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--fg); color: var(--bg); padding: .75rem 1rem; border-radius: 12px; font-size: .875rem; font-weight: 500; box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem; animation: toast-in .25s ease-out; }
.toast.is-success::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--leaf); flex-shrink: 0; }
.toast.is-error::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--destructive); flex-shrink: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.body-has-buybar .toasts { bottom: 6rem; }

/* ------------------------------------------------------------------ Sections communes */
.section { margin-top: 4rem; }
@media (min-width: 768px) { .section { margin-top: 5rem; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }
html.dark .section-title { color: var(--fg); }
.see-all { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
.see-all .ic { width: 16px; height: 16px; }
.eyebrow { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

.page-hero { background: var(--secondary); }
.page-hero .container { padding-block: 3rem; }
@media (min-width: 768px) { .page-hero .container { padding-block: 4rem; } }
.page-hero h1 { font-size: 1.875rem; font-weight: 700; color: var(--primary-deep); }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { margin-top: .75rem; max-width: 42rem; color: var(--muted-fg); }
.prose { margin-top: 2.5rem; max-width: 48rem; display: grid; gap: 1rem; color: rgba(29, 51, 38, .85); }
.prose h2 { margin-top: 1rem; font-size: 1.25rem; color: var(--primary-deep); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ Grilles produits */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .grid-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid-products.md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 2px rgba(18, 60, 35, .05); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(18, 60, 35, .35); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.pcard-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--muted); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard.is-out .pcard-media img { filter: grayscale(.6); opacity: .7; }
.pcard-out { position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; background: rgba(29, 51, 38, .85); color: #fff; padding: .3rem .75rem; font-size: .7rem; font-weight: 700; }
.pcard-tags { position: absolute; left: .625rem; top: .625rem; z-index: 1; display: flex; flex-wrap: wrap; gap: .25rem; max-width: calc(100% - 3.5rem); }
.tag { border-radius: 999px; padding: .2rem .55rem; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.tag-accent { background: var(--accent); color: var(--accent-fg); }
.tag-primary { background: var(--primary); color: var(--primary-fg); }
.tag-card { background: var(--card); color: var(--primary-deep); }
.fav-btn { position: absolute; right: .625rem; top: .625rem; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn .ic { width: 16px; height: 16px; }
.fav-btn.is-fav, .fav-big.is-fav { color: var(--accent); }
.fav-btn.is-fav .ic, .fav-big.is-fav .ic { fill: currentColor; }
.pcard-body { display: flex; flex: 1; flex-direction: column; gap: .2rem; padding: .75rem .75rem .875rem; }
@media (min-width: 768px) { .pcard-body { padding: 1rem 1rem 1.125rem; } }
.pcard-cat { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .pcard-name { font-size: 1.0625rem; } }
.pcard-name:hover { color: var(--primary); }
.pcard-name::after { content: ""; position: absolute; inset: 0; }
.pcard-low { font-size: .7rem; font-weight: 600; color: #b8700b; }
.pcard-foot { margin-top: auto; padding-top: .625rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.pcard-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pcard-price strong { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
@media (min-width: 768px) { .pcard-price strong { font-size: 1.125rem; } }
.pcard-price s { font-size: .75rem; color: var(--muted-fg); }
.add-btn { position: relative; z-index: 1; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: .375rem; height: 38px; min-width: 38px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); padding: 0 .625rem; font-size: .8125rem; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(242, 154, 25, .8); transition: transform .15s, filter .15s; }
.add-btn:hover:not(:disabled) { filter: brightness(.96); transform: scale(1.05); }
.add-btn:active:not(:disabled) { transform: scale(.95); }
.add-btn:disabled { background: var(--muted); color: var(--muted-fg); box-shadow: none; }
.add-btn .ic { width: 18px; height: 18px; }
.add-btn span { display: none; }
.pcard-body { container-type: inline-size; }
@container (min-width: 210px) { .add-btn { padding: 0 1rem 0 .75rem; } .add-btn span { display: inline; } }
.add-btn.is-added { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------------ Accueil */
.hero { position: relative; display: grid; overflow: hidden; border-radius: 1.25rem; background: var(--cream); margin-top: 1.5rem; }
.hero > * { grid-area: 1 / 1; }
.hero > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 70% center; }
@media (min-width: 768px) { .hero > img { min-height: 480px; object-position: right center; } }
.hero-fade { background: linear-gradient(to bottom, rgba(251, 246, 234, .96) 0%, rgba(251, 246, 234, .9) 55%, rgba(251, 246, 234, .55) 100%); }
@media (min-width: 768px) { .hero-fade { background: linear-gradient(to right, var(--cream), rgba(251, 246, 234, .6) 50%, transparent); } }
.hero-content { position: relative; display: flex; align-items: center; }
.hero-inner { max-width: 36rem; padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .hero-inner { padding-inline: 3rem; } }
.hero h1 { margin-top: .75rem; font-size: 1.875rem; font-weight: 800; line-height: 1.2; color: var(--primary-deep); }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero-text { margin-top: 1rem; font-size: .875rem; color: rgba(29, 51, 38, .8); }
@media (min-width: 768px) { .hero-text { font-size: 1rem; } }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) { .hero-cta .btn { flex: 1 1 100%; } }

.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.cat-tile { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .cat-tile { aspect-ratio: 16 / 11; } }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 74, 37, .9), rgba(11, 74, 37, .2) 50%, transparent); }
.cat-tile span { position: absolute; z-index: 1; left: .75rem; right: .75rem; bottom: .75rem; font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: #fff; }
@media (min-width: 768px) { .cat-tile span { left: 1.25rem; bottom: 1.25rem; font-size: 1.25rem; } }

.promo-band { display: grid; align-items: center; gap: 1.5rem; border-radius: 1.25rem; padding: 2rem; color: var(--primary-fg); }
@media (min-width: 768px) { .promo-band { grid-template-columns: 1fr 1fr; padding: 3rem; } }
.promo-band h2 { margin-top: 1rem; font-size: 1.875rem; font-weight: 800; }
@media (min-width: 768px) { .promo-band h2 { font-size: 2.25rem; } }
.promo-band p { margin-top: .75rem; opacity: .85; }
.promo-band .pill { display: inline-block; border-radius: 999px; background: var(--accent); color: var(--accent-fg); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; }
.promo-band .btn { margin-top: 1.5rem; }
.promo-band .pcard { color: var(--fg); }
.promo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.why { padding: 1.25rem; text-align: center; }
.why-icon { margin: 0 auto .75rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--secondary); color: var(--primary); }
.why-icon .ic { width: 24px; height: 24px; }
.why p { font-family: var(--font-display); font-size: .875rem; font-weight: 600; }

.terroir { display: grid; overflow: hidden; border-radius: 1.25rem; background: var(--secondary); }
@media (min-width: 768px) { .terroir { grid-template-columns: 1fr 1fr; } }
.terroir img { width: 100%; height: 18rem; object-fit: cover; }
@media (min-width: 768px) { .terroir img { height: 100%; } }
.terroir-text { padding: 2rem; }
@media (min-width: 768px) { .terroir-text { padding: 3rem; } }
.terroir-text h2 { margin-top: .5rem; font-size: 1.875rem; font-weight: 700; color: var(--primary-deep); }
.terroir-text p { margin-top: 1rem; color: rgba(29, 51, 38, .8); }
.terroir-text p + p { margin-top: .75rem; }
.terroir-text .see-all { margin-top: 1.5rem; font-size: 1rem; }

.testimonials { display: grid; gap: 1rem; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { padding: 1.5rem; margin: 0; }
.testimonial .stars { color: var(--accent); }
.testimonial blockquote { margin: .75rem 0 0; font-size: .875rem; color: rgba(29, 51, 38, .85); }
.testimonial figcaption { margin-top: 1rem; font-size: .875rem; font-weight: 600; }
.testimonial figcaption span { font-weight: 400; color: var(--muted-fg); }

.posts { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { overflow: hidden; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.post:hover img { transform: scale(1.04); }
.post-body { padding: 1.25rem; }
.post-body time { font-size: .75rem; color: var(--muted-fg); }
.post-body h2, .post-body h3 { margin-top: .25rem; font-size: 1rem; font-weight: 600; }
.post-body p { margin-top: .5rem; font-size: .875rem; color: var(--muted-fg); }

.newsletter { border-radius: 1.25rem; background: var(--primary); color: var(--primary-fg); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .newsletter { padding: 3rem; } }
.newsletter h2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .newsletter h2 { font-size: 1.875rem; } }
.newsletter form { margin: 1.5rem auto 0; display: flex; gap: .5rem; max-width: 28rem; background: var(--card); border-radius: 999px; padding: .375rem; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding-inline: 1rem; font-size: .875rem; color: var(--fg); }
.newsletter .btn { padding: .625rem 1.25rem; }

/* ------------------------------------------------------------------ Boutique */
.shop-layout { margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .shop-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.filters { padding: 1.25rem; display: grid; gap: 1.5rem; align-self: start; }
@media (min-width: 768px) { .filters { position: sticky; top: 9rem; } }
.filters h3 { margin-bottom: .5rem; font-family: var(--font-sans); font-size: .875rem; font-weight: 600; }
.field, .select { width: 100%; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); padding: .5rem .75rem; font-size: .875rem; outline: none; }
.field:focus, .select:focus { border-color: var(--primary); }
.checks { display: grid; gap: .5rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
input[type="checkbox"], input[type="range"], input[type="radio"] { accent-color: var(--primary); }
input[type="range"] { width: 100%; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: .875rem; }
.empty-box { padding: 2.5rem; text-align: center; color: var(--muted-fg); }

/* ------------------------------------------------------------------ Catégories */
.cat-cards { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-cards { grid-template-columns: repeat(3, 1fr); } }
.cat-card { overflow: hidden; }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card div { padding: 1.25rem; }
.cat-card h2 { font-size: 1rem; font-weight: 600; }
.cat-card:hover h2 { color: var(--primary); }
.cat-card p { font-size: .875rem; color: var(--muted-fg); }

/* ------------------------------------------------------------------ Fiche produit */
.breadcrumb { margin: 1.25rem 0; display: flex; align-items: center; gap: .25rem; min-width: 0; font-size: .75rem; color: var(--muted-fg); }
@media (min-width: 640px) { .breadcrumb { font-size: .875rem; } }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .ic { width: 12px; height: 12px; }
.breadcrumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.product { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .product { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.product-media { position: relative; overflow: hidden; border-radius: 1.5rem; background: var(--secondary); align-self: start; }
@media (min-width: 768px) { .product-media { position: sticky; top: 9rem; } }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-media .pcard-tags { left: 1rem; top: 1rem; gap: .5rem; flex-wrap: wrap; }
.product-media .tag { padding: .25rem .75rem; font-size: .75rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; background: var(--secondary); color: var(--primary); padding: .25rem .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cat-pill .ic { width: 12px; height: 12px; }
.product h1 { margin-top: .75rem; font-size: 1.875rem; font-weight: 700; color: var(--primary-deep); }
@media (min-width: 768px) { .product h1 { font-size: 2.25rem; } }
.product-price { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
.product-price strong { font-family: var(--font-display); font-size: 1.875rem; color: var(--primary); }
@media (min-width: 768px) { .product-price strong { font-size: 2.25rem; } }
.product-price s { font-size: 1.125rem; color: var(--muted-fg); }
.stock-line { margin-top: .75rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--leaf); }
.stock-line.is-low { color: var(--accent); }
.stock-line.is-low::before { background: var(--accent); }
.stock-line.is-out { color: var(--destructive); }
.stock-line.is-out::before { background: var(--destructive); }
.product-desc { margin-top: 1.25rem; line-height: 1.7; color: rgba(29, 51, 38, .8); }
.buy-row { margin-top: 1.5rem; display: none; align-items: center; gap: .75rem; }
@media (min-width: 768px) { .buy-row { display: flex; } }
.buy-row .btn-accent { flex: 1; padding-block: .875rem; box-shadow: var(--shadow); }
.qty { display: inline-flex; flex-shrink: 0; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.qty button { padding: .75rem; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty span { width: 1.75rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-sm button { padding: .375rem; }
.qty-sm button .ic { width: 12px; height: 12px; }
.qty-sm span { width: 1.5rem; font-size: .75rem; }
.fav-big { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); }
.fav-big:hover { background: var(--secondary); }
.fav-big.is-fav { border-color: var(--accent); }
.perks { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1rem; text-align: center; }
.perks > div { min-width: 0; padding-inline: .375rem; }
.perks > div + div { border-left: 1px solid var(--border); }
.perks .ic { margin: 0 auto; color: var(--primary); }
.perks b { display: block; margin-top: .5rem; font-size: .75rem; }
.perks small { display: block; font-size: 11px; color: var(--muted-fg); }
@media (min-width: 640px) { .perks b { font-size: .875rem; } .perks small { font-size: .75rem; } }
.made-in { margin-top: 1rem; border-radius: 1rem; background: var(--secondary); padding: 1rem; font-size: .875rem; color: var(--secondary-fg); }
.made-in p + p { margin-top: .25rem; color: rgba(29, 51, 38, .7); }
.buybar { position: fixed; inset: auto 0 0 0; z-index: 40; border-top: 1px solid var(--border); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .5rem; }
.buybar .btn-accent { flex: 1; min-width: 0; padding-block: .875rem; }
.buybar .btn-accent span { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .buybar { display: none; } }
.has-buybar { padding-bottom: 7rem; }
@media (min-width: 768px) { .has-buybar { padding-bottom: 0; } }

/* ------------------------------------------------------------------ Panier & commande */
.checkout-wrap { background: var(--muted); padding-bottom: 3rem; }
.checkout-wrap .container { padding-top: 1.5rem; }
@media (min-width: 768px) { .checkout-wrap .container { padding-top: 2.5rem; } }
.checkout-wrap h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
@media (min-width: 768px) { .checkout-wrap h1 { font-size: 1.875rem; } }
.checkout { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 400px; } }
.checkout-main { min-width: 0; display: grid; gap: 1.25rem; align-content: start; }
.checkout .perks { margin-top: 0; border-radius: 1.5rem; box-shadow: var(--shadow); }
.co-form { border-radius: 1.5rem; padding: 1.25rem; }
@media (min-width: 640px) { .co-form { padding: 1.75rem; } }
.co-form h2 { font-size: 1.25rem; font-weight: 700; }
.co-label { margin-top: 1.5rem; font-size: .875rem; font-weight: 600; }
.pay-tiles { margin-top: .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pay-tile { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--muted); padding: 1rem; text-align: center; transition: .15s; }
.pay-tile:hover { border-color: var(--primary); }
.pay-tile .ic { margin: 0 auto; }
.pay-tile b { display: block; margin-top: .5rem; font-size: .875rem; }
.pay-tile small { display: block; font-size: .75rem; color: var(--muted-fg); }
.pay-tile .tick { position: absolute; right: .75rem; top: .75rem; display: none; }
.pay-tile .tick .ic { width: 16px; height: 16px; }
.pay-tile.is-active { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--primary-fg); box-shadow: var(--shadow); }
.pay-tile.is-active small { color: inherit; opacity: .75; }
.pay-tile.is-active .tick { display: block; }
.wallets { margin-top: .75rem; display: flex; gap: .5rem; }
.wallet { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; }
.wallet.is-active { border-color: var(--primary); background: var(--secondary); color: var(--primary); }
.co-fields { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.co-field { display: block; }
.co-field > span { margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; }
.co-field > span .ic { width: 16px; height: 16px; color: var(--primary); }
.co-field em { font-style: normal; color: var(--accent); }
.co-field small { display: block; margin-top: .375rem; font-size: .75rem; color: var(--muted-fg); }
.co-input { width: 100%; border: 1px solid var(--border); border-radius: 1rem; background: rgba(243, 244, 238, .5); padding: .875rem 1rem; font-size: 1rem; outline: none; transition: .15s; }
.co-input:focus { border-color: var(--primary); background: var(--card); }
.co-input::placeholder { color: rgba(98, 117, 106, .7); }
.phone-group { display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: rgba(243, 244, 238, .5); }
.phone-group:focus-within { border-color: var(--primary); }
.phone-group > span { display: grid; place-items: center; flex-shrink: 0; border-right: 1px solid var(--border); padding-inline: 1rem; font-weight: 600; }
.phone-group input { flex: 1; min-width: 0; background: transparent; border: 0; padding: .875rem 1rem; font-size: 1rem; outline: none; }
.co-two { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .co-two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.co-submit { margin-top: 1.75rem; width: 100%; padding-block: 1rem; font-size: 1rem; border-radius: 1rem; box-shadow: var(--shadow); }
.co-hint { margin-top: .75rem; text-align: center; font-size: .75rem; color: var(--muted-fg); }
.summary { padding: 1.25rem; border-radius: 1.5rem; align-self: start; min-width: 0; }
@media (min-width: 1024px) { .summary { position: sticky; top: 9rem; } }
.summary h2 { font-size: 1rem; font-weight: 700; }
.line { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; border-bottom: 1px solid var(--border); }
.line img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; object-fit: cover; }
.line-info { min-width: 0; flex: 1; }
.line-info a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.line-info p { font-size: .75rem; color: var(--muted-fg); }
.line-ctrl { margin-top: .375rem; display: flex; align-items: center; gap: .5rem; }
.line-ctrl .rm { padding: .25rem; color: var(--muted-fg); }
.line-ctrl .rm:hover { color: var(--destructive); }
.line-ctrl .rm .ic { width: 14px; height: 14px; }
.line-total { flex-shrink: 0; font-size: .875rem; font-weight: 600; }
.totals { margin-top: .5rem; padding-top: 1rem; display: grid; gap: .5rem; font-size: .875rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--border); padding-top: .75rem; align-items: baseline; }
.totals .grand b { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); }
.empty-cart { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.round-icon { margin: 0 auto; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 999px; background: var(--secondary); color: var(--primary); }
.round-icon .ic { width: 32px; height: 32px; }
.empty-cart h1 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
.empty-cart p { margin-top: .25rem; color: var(--muted-fg); }
.empty-cart .btn { margin-top: 1.5rem; }

.ticket-wrap { background: var(--muted); padding: 2.5rem 1rem; }
@media (min-width: 768px) { .ticket-wrap { padding-block: 4rem; } }
.ticket-box { max-width: 28rem; margin: 0 auto; }
.ticket { overflow: hidden; border-radius: 2rem; background: var(--card); box-shadow: var(--shadow); }
.ticket-head { padding: 2.25rem 1.75rem 1.75rem; text-align: center; }
.ticket-check { margin: 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: rgba(140, 189, 80, .2); }
.ticket-check span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; }
.ticket-head h1 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
.ticket-head p { margin-top: .25rem; font-size: .875rem; color: var(--muted-fg); }
.ticket-cut { position: relative; height: 2rem; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: 50%; width: 2rem; height: 2rem; transform: translateY(-50%); border-radius: 999px; background: var(--muted); }
.ticket-cut::before { left: -1rem; }
.ticket-cut::after { right: -1rem; }
.ticket-cut i { position: absolute; left: 2rem; right: 2rem; top: 50%; border-top: 2px dashed var(--border); }
.ticket-body { padding: 1.5rem 1.75rem; display: grid; gap: 1.25rem; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
.ticket-row small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-fg); }
.ticket-row .r { text-align: right; }
.ticket-ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.125rem; font-weight: 700; }
.ticket-amount { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.ticket-pay { display: flex; align-items: center; gap: .75rem; border-radius: 1rem; background: var(--muted); padding: 1rem; }
.ticket-pay > span { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.ticket-pay p { font-size: .875rem; color: var(--muted-fg); }
.ticket-steps { border-top: 2px dashed var(--border); padding: 1.5rem 1.75rem; margin: 0; list-style: none; display: grid; gap: .75rem; font-size: .875rem; }
.ticket-steps li { display: flex; align-items: center; gap: .75rem; color: var(--muted-fg); }
.ticket-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--muted); font-size: .75rem; font-weight: 700; }
.ticket-steps li.done { color: var(--fg); font-weight: 600; }
.ticket-steps li.done > span { background: var(--primary); color: #fff; }
.ticket-steps .ic { width: 14px; height: 14px; }
.ticket-actions { margin-top: 1.5rem; display: grid; gap: .5rem; }
@media (min-width: 640px) { .ticket-actions { grid-template-columns: 1fr 1fr; } }
.ticket-actions .btn { border-radius: 1rem; padding-block: .875rem; }
.ticket-note { margin-top: 1rem; text-align: center; font-size: .75rem; color: var(--muted-fg); }

/* ------------------------------------------------------------------ Formulaires simples */
.narrow { max-width: 42rem; }
.narrow-sm { max-width: 28rem; }
.form-card { padding: 1.5rem; display: grid; gap: .75rem; }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-card h1, .form-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
.form-card .sub { margin-bottom: .75rem; font-size: .875rem; color: var(--muted-fg); }
.label { display: block; }
.label > span { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; }
.contact-form { margin-top: 2rem; display: grid; gap: .75rem; }
.contact-form .field { padding: .75rem 1rem; background: var(--card); font-size: 1rem; }
.contact-form .btn { justify-self: start; }

.track-form { margin-top: 2rem; padding: 1.5rem; display: grid; gap: .75rem; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.track-result { margin-top: 1.5rem; padding: 1.5rem; }
.track-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.track-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary-deep); }
.status-pill { border-radius: 999px; background: var(--secondary); color: var(--primary); padding: .25rem .75rem; font-size: .875rem; font-weight: 600; }
.steps { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.steps li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted-fg); }
.steps li.done { color: var(--primary); font-weight: 600; }
.alert-danger { margin-top: 1rem; border-radius: 8px; background: rgba(214, 58, 43, .1); color: var(--destructive); padding: 1rem; font-size: .875rem; }
.rows { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 8px; }
.rows > div { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem; font-size: .875rem; }
.rows > div + div { border-top: 1px solid var(--border); }
.rows .bold { font-weight: 700; }
.rows .bold span:last-child { color: var(--primary); }

.account-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.account-side { display: grid; gap: 1rem; align-content: start; }
.box { padding: 1.5rem; }
.box h2 { font-size: 1.125rem; font-weight: 700; }
.box p { margin-top: .25rem; font-size: .875rem; color: var(--muted-fg); }
.box .btn { margin-top: 1rem; }
.box-admin { background: var(--secondary); border: 1px solid rgba(18, 99, 51, .3); border-radius: var(--radius); }
.box-admin h2 { color: var(--primary-deep); }
.btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------ Pied de page */
.reassure { margin-top: 5rem; }
.reassure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 1024px) { .reassure-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.reassure-grid > div { display: flex; align-items: center; gap: .75rem; min-width: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: .875rem; box-shadow: var(--shadow); }
@media (min-width: 768px) { .reassure-grid > div { padding: 1.125rem 1.25rem; gap: 1rem; } }
.reassure-grid span { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--secondary); color: var(--primary); }
@media (min-width: 768px) { .reassure-grid span { width: 48px; height: 48px; } }
.reassure-grid p { min-width: 0; line-height: 1.25; }
.reassure-grid b { display: block; font-family: var(--font-display); font-size: .8125rem; font-weight: 600; }
@media (min-width: 768px) { .reassure-grid b { font-size: .9375rem; } }
.reassure-grid small { display: block; margin-top: .125rem; font-size: .6875rem; color: var(--muted-fg); }
@media (min-width: 768px) { .reassure-grid small { font-size: .8125rem; } }

.site-footer { margin-top: 3.5rem; color: var(--primary-fg); }
.footer-wave { display: block; width: 100%; height: 28px; fill: var(--primary-deep); margin-bottom: -1px; }
@media (min-width: 768px) { .footer-wave { height: 48px; } }
.footer-main { background-color: var(--primary-deep); }
.footer-grid { display: grid; gap: 2.25rem; padding-block: 2.5rem 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 3rem; padding-block: 3rem 3.5rem; } }
.footer-about { display: grid; gap: 1.125rem; align-content: start; }
@media (min-width: 640px) and (max-width: 1023px) { .footer-about { grid-column: 1 / -1; } }
.footer-about .logo { justify-self: start; }
.footer-about p { font-size: .9rem; line-height: 1.65; opacity: .85; max-width: 26rem; }
.wa-btn { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg); padding: .7rem 1.25rem; font-size: .875rem; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); transition: filter .15s, transform .15s; }
.wa-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.wa-btn .ic { width: 18px; height: 18px; }
.socials { display: flex; gap: .625rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); transition: background .15s, color .15s; }
.socials a:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.socials .ic { width: 18px; height: 18px; }
.footer-col h4 { position: relative; margin-bottom: 1.25rem; padding-bottom: .625rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 999px; background: var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; font-size: .9rem; }
.footer-col ul a { opacity: .82; transition: opacity .15s, color .15s, padding .15s; }
.footer-col ul a:hover { opacity: 1; color: var(--leaf); padding-left: 4px; }
.contact-list li { display: flex; align-items: center; gap: .75rem; }
.contact-list li > span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--leaf); }
.contact-list .ic { width: 16px; height: 16px; }
.contact-list li a, .contact-list li { opacity: 1; }
.contact-list li { color: rgba(255, 255, 255, .85); }
.pay-title { margin-top: 1.75rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-badges span { border-radius: .5rem; background: #fff; color: var(--primary-deep); padding: .375rem .75rem; font-size: .75rem; font-weight: 700; }
.pay-badges span:nth-child(2) { background: #1dc3ff; color: #fff; }
.pay-badges span:nth-child(3) { background: #ff7900; color: #fff; }
.footer-bottom { background: #083a1d; }
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding-block: 1.25rem; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); font-size: .8125rem; text-align: center; color: rgba(255, 255, 255, .7); }
@media (min-width: 768px) { .footer-bottom-row { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom-row > span:first-child { display: inline-flex; align-items: center; gap: .3rem; }
.footer-bottom .heart { width: 14px; height: 14px; color: var(--accent); fill: var(--accent); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
.legal a:hover { color: #fff; text-decoration: underline; }
.body-has-buybar .footer-bottom-row { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .body-has-buybar .footer-bottom-row { padding-bottom: 1.25rem; } }

/* =========================================================================
   Espace administrateur
   ========================================================================= */
.admin-body { background: var(--muted); min-height: 100vh; }
.a-top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); }
.a-top-row { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
@media (min-width: 640px) { .a-top-row { padding-inline: 1.5rem; } }
.a-brand { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.a-brand img { height: 36px; width: auto; aspect-ratio: 3.4 / 1; object-fit: cover; border-radius: 6px; background: #fff; }
.a-brand span { display: none; border-radius: 999px; background: var(--secondary); color: var(--primary); padding: .125rem .5rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 640px) { .a-brand span { display: inline; } }
.a-nav { margin-left: 1.5rem; display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .a-nav { display: flex; } }
.a-nav a { border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; color: var(--muted-fg); }
.a-nav a:hover { background: var(--muted); }
.a-nav a.is-active { background: var(--primary); color: var(--primary-fg); }
.a-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.a-round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); position: relative; }
.a-round .ic { width: 16px; height: 16px; }
.a-round:hover { background: var(--muted); }
.a-round .badge { right: -4px; top: -4px; }
.a-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow); }
.a-main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 8rem; }
@media (min-width: 640px) { .a-main { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .a-main { padding-bottom: 3rem; } }
.a-bottom { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 40; border: 1px solid var(--border); border-radius: 1.5rem; background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); }
@media (min-width: 1024px) { .a-bottom { display: none; } }
.a-bottom a, .a-bottom button { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding-block: .625rem; font-size: 11px; font-weight: 500; color: var(--muted-fg); min-width: 0; }
.a-bottom .is-active { color: var(--primary); }
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 26, 19, .4); }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } }
.sheet { width: 100%; max-width: 28rem; border-radius: 2rem 2rem 0 0; background: var(--card); padding: 1.25rem 1.25rem 2rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .sheet { border-radius: 2rem; } }
.sheet-head { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.sheet-head b { font-family: var(--font-display); font-size: 1.25rem; }
.sheet-head p { font-size: .75rem; color: var(--muted-fg); }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; border-radius: 1rem; background: var(--muted); padding: 1.25rem .5rem; text-align: center; font-size: .875rem; font-weight: 500; }
.sheet-item:hover { background: var(--secondary); }
.sheet-item .ic { width: 24px; height: 24px; color: var(--primary); }
.sheet .btn { margin-top: 1rem; width: 100%; border-radius: 1rem; padding-block: .875rem; }

.a-title { margin-bottom: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.a-title h1 { font-size: 1.75rem; font-weight: 700; }
@media (min-width: 640px) { .a-title h1 { font-size: 1.875rem; } }
.a-title p { margin-top: .125rem; font-size: .875rem; color: var(--muted-fg); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 1.75rem; box-shadow: var(--shadow); min-width: 0; }
.panel-pad { padding: 1.25rem; }
@media (min-width: 640px) { .panel-pad { padding: 1.5rem; } }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 1rem; }
@media (min-width: 640px) { .kpi { padding: 1.25rem; } }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--muted-fg); }
.kpi-top > span { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--secondary); color: var(--primary); }
.kpi-top .ic { width: 16px; height: 16px; }
.kpi-val { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kpi-val b { font-family: var(--font-display); font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .kpi-val b { font-size: 1.5rem; } }
.kpi small { display: block; margin-top: .375rem; font-size: .75rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delta { border-radius: 999px; padding: .125rem .5rem; font-size: .75rem; font-weight: 700; background: rgba(140, 189, 80, .15); color: var(--primary); }
.delta.is-down { background: rgba(214, 58, 43, .1); color: var(--destructive); }
.period { margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: .625rem .75rem; box-shadow: var(--shadow); font-size: .875rem; }
.period .ic { width: 16px; height: 16px; color: var(--primary); }
.period-range { margin-left: auto; color: var(--muted-fg); }
.period a { border-radius: .75rem; padding: .375rem .75rem; font-weight: 600; }
.period a.is-active { background: var(--primary); color: #fff; }
.low-stock { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; border-radius: 1rem; border: 1px solid rgba(242, 154, 25, .4); background: rgba(242, 154, 25, .1); padding: 1rem; font-size: .875rem; }
.low-stock .ic { color: var(--accent); }
.low-stock span { flex: 1; }
.low-stock em { font-style: normal; font-weight: 600; color: var(--primary); }
.dash-grid { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.chart { position: relative; margin-top: 1.5rem; height: 13rem; }
.chart-line { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: .5rem; }
.chart-line span { width: 2rem; text-align: right; font-size: 10px; color: var(--muted-fg); }
.chart-line i { flex: 1; border-top: 1px dashed var(--border); }
.chart-bars { position: absolute; top: 0; bottom: 0; left: 2.5rem; right: 0; display: flex; align-items: flex-end; gap: .25rem; }
@media (min-width: 640px) { .chart-bars { gap: .375rem; } }
.chart-bars > div { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.chart-bars b { width: 100%; border-radius: 6px 6px 0 0; background: var(--primary); transition: background .15s; }
.chart-bars > div:hover b { background: var(--accent); }
.chart-bars em { display: none; position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 6px; background: var(--fg); color: var(--bg); padding: .125rem .5rem; font-size: 10px; font-style: normal; }
.chart-bars > div:hover em { display: block; }
.chart-empty { position: absolute; left: 2.5rem; right: 0; top: 50%; transform: translateY(-50%); border: 1px solid var(--border); border-radius: 1rem; background: color-mix(in srgb, var(--card) 90%, transparent); padding: .75rem; text-align: center; font-size: .875rem; color: var(--muted-fg); }
.chart-axis { margin: .5rem 0 0 2.5rem; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-fg); }
.big-number { margin-top: .25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.big-number b { font-family: var(--font-display); font-size: 1.875rem; }
@media (min-width: 640px) { .big-number b { font-size: 2.25rem; } }
.statusbar { margin-top: 1rem; display: flex; height: 10px; overflow: hidden; border-radius: 999px; background: var(--muted); }
.status-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; font-size: .875rem; }
.status-list li { display: flex; align-items: center; gap: .5rem; }
.status-list li span:nth-child(2) { flex: 1; }
.status-list b { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.st-nouvelle { background: var(--accent); }
.st-confirmee { background: var(--primary); }
.st-en_preparation { background: var(--leaf); }
.st-livree { background: var(--primary-deep); }
.st-annulee { background: var(--destructive); }
.pill { display: inline-block; border-radius: 999px; border: 1px solid var(--border); padding: .125rem .5rem; font-size: 10px; font-weight: 600; }
.pill-nouvelle { border-color: rgba(242, 154, 25, .4); background: rgba(242, 154, 25, .1); color: var(--primary-deep); }
.pill-confirmee { border-color: rgba(18, 99, 51, .3); background: var(--secondary); color: var(--primary); }
.pill-en_preparation { border-color: rgba(140, 189, 80, .4); background: rgba(140, 189, 80, .1); color: var(--primary-deep); }
.pill-livree { border-color: rgba(11, 74, 37, .3); background: rgba(11, 74, 37, .1); color: var(--primary-deep); }
.pill-annulee { border-color: rgba(214, 58, 43, .3); background: rgba(214, 58, 43, .1); color: var(--destructive); }
html.dark .pill-nouvelle, html.dark .pill-en_preparation, html.dark .pill-livree { color: var(--fg); }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem .75rem; }
.list-head b { font-weight: 600; }
.list-head a { font-size: .875rem; font-weight: 600; color: var(--primary); }
.mini-orders { padding: 0 .5rem .5rem; }
.mini-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .75rem; }
.mini-order + .mini-order { border-top: 1px solid var(--border); }
.mini-order p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-order .nm { font-size: .875rem; font-weight: 600; }
.mini-order .meta { font-size: .75rem; color: var(--muted-fg); }
.mini-order .r { text-align: right; }
.mini-order .r b { display: block; font-size: .875rem; }

.toolbar { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.a-search { flex: 1; min-width: 12rem; display: flex; align-items: center; gap: .5rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: .625rem 1rem; box-shadow: var(--shadow); }
.a-search .ic { width: 16px; height: 16px; color: var(--muted-fg); }
.a-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: .9375rem; }
.chips { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: .375rem .875rem; font-size: .875rem; font-weight: 500; }
.chip.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.day-title { margin: 0 0 .625rem; padding-inline: .25rem; font-size: 15px; font-weight: 700; font-family: var(--font-sans); }
.day-group + .day-group { margin-top: 1.5rem; }
.orders-stack { display: grid; gap: .75rem; }
.order { overflow: hidden; }
.order summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: 1rem; cursor: pointer; }
.order summary::-webkit-details-marker { display: none; }
.order summary .nm { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.order summary .nm .ic { width: 16px; height: 16px; color: var(--muted-fg); transition: transform .2s; }
.order[open] summary .nm .ic { transform: rotate(180deg); }
.order summary .meta { font-size: .75rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order summary .r { text-align: right; }
.order summary .r b { display: block; font-family: var(--font-display); }
.order-body { display: grid; gap: .75rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 40%, var(--card)); padding: 1rem; font-size: .875rem; }
.contact-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-chips a { display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: .375rem .75rem; font-weight: 500; }
.contact-chips .ic { width: 14px; height: 14px; }
.contact-chips .wa { color: var(--primary); }
.note-box { border-radius: .75rem; background: var(--card); padding: .75rem; }
.items-box { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.items-box > div { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem; }
.items-box > div + div { border-top: 1px solid var(--border); }
.items-box .muted-row { color: var(--muted-fg); }
.items-box .tot { font-weight: 700; }
.items-box .tot span:last-child { color: var(--primary); }
.status-form { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: .625rem .75rem; }
.status-form select { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 600; outline: none; }

.prod-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
.aprod { overflow: hidden; }
.aprod-top { display: flex; gap: 1rem; padding: 1rem; }
.aprod-top img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 1rem; object-fit: cover; }
@media (min-width: 640px) { .aprod-top img { width: 96px; height: 96px; } }
.aprod-info { min-width: 0; flex: 1; }
.aprod-name { display: flex; align-items: flex-start; gap: .5rem; }
.aprod-name p { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.state { flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); padding: .125rem .5rem; font-size: 11px; font-weight: 600; background: var(--muted); color: var(--muted-fg); }
.state.on { border-color: rgba(140, 189, 80, .5); background: rgba(140, 189, 80, .1); color: var(--primary); }
.aprod-cat { font-size: .75rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aprod-price { margin-top: .375rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.aprod-price s { margin-left: .5rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 400; color: var(--muted-fg); }
.aprod-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); text-align: center; }
.aprod-stats > div { padding-block: .75rem; }
.aprod-stats > div + div { border-left: 1px solid var(--border); }
.aprod-stats b { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.aprod-stats b.out { color: var(--destructive); }
.aprod-stats b.low { color: var(--accent); }
.aprod-stats small { font-size: .75rem; color: var(--muted-fg); }
.aprod-vis { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--border); padding: .75rem 1rem; }
.aprod-vis p { font-size: .875rem; font-weight: 600; }
.aprod-vis small { font-size: .75rem; color: var(--muted-fg); }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; border-radius: 999px; background: var(--border); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); transition: left .15s; }
.switch.on { background: var(--primary); }
.switch.on::after { left: 22px; }
.aprod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem; }
.aprod-actions form { display: inline; }
.aprod-actions .btn { border-radius: .75rem; padding: .5rem 1rem; }
.aprod-actions .push { margin-left: auto; display: flex; gap: .25rem; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: .75rem; }
.icon-btn:hover { background: var(--muted); }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn.danger { color: var(--destructive); }
.icon-btn.danger:hover { background: rgba(214, 58, 43, .1); }

.pform { margin-bottom: 1.25rem; padding: 1.25rem; border-radius: 1.75rem; }
@media (min-width: 640px) { .pform { padding: 1.5rem; } }
.pform-head { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.pform-head h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.pform-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .pform-grid { grid-template-columns: 1fr 1fr; } }
.pform .label small { display: block; margin-top: .25rem; font-size: .75rem; color: var(--muted-fg); }
.pform-image { margin-top: .75rem; display: flex; gap: 1rem; align-items: center; border: 1px dashed var(--border); border-radius: 1rem; padding: .75rem; }
.pform-image img { width: 72px; height: 72px; border-radius: .75rem; object-fit: cover; flex-shrink: 0; }
.pform-image .label { flex: 1; min-width: 0; }
.pform-checks { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.pform-actions { margin-top: 1.25rem; display: flex; gap: .5rem; }

.cust-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .cust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .cust-grid { grid-template-columns: repeat(3, 1fr); } }
.cust { padding: 1rem; }
.cust-top { display: flex; align-items: center; gap: .75rem; }
.initials { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--secondary); color: var(--primary); font-family: var(--font-display); font-weight: 700; }
.cust-top div { min-width: 0; flex: 1; }
.cust-top p { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-top small { display: flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted-fg); }
.cust-top small .ic { width: 12px; height: 12px; }
.cust-count { flex-shrink: 0; border-radius: 999px; background: rgba(242, 154, 25, .15); color: var(--primary-deep); padding: .25rem .625rem; font-size: .75rem; font-weight: 600; }
html.dark .cust-count { color: var(--fg); }
.cust-addr { margin-top: .75rem; display: flex; align-items: flex-start; gap: .375rem; font-size: .875rem; color: var(--muted-fg); }
.cust-addr .ic { width: 14px; height: 14px; margin-top: 3px; }

.team-row { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; }
.team-row + .team-row { border-top: 1px solid var(--border); }
.team-row div { flex: 1; min-width: 0; }
.team-row p { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row small { font-size: .75rem; color: var(--muted-fg); }
.msg { padding: 1rem 1.25rem; }
.msg + .msg { border-top: 1px solid var(--border); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .875rem; }
.msg-head b a { color: var(--primary); font-weight: 500; }
.msg p { margin-top: .5rem; font-size: .9375rem; white-space: pre-line; }
.msg.unread { background: color-mix(in srgb, var(--secondary) 50%, var(--card)); }
.stack { display: grid; gap: 1.25rem; }
.empty-panel { padding: 2rem; text-align: center; font-size: .875rem; color: var(--muted-fg); }
.admin-body .field, .admin-body .select { background: var(--card); }
html.dark .prose, html.dark .hero-text { color: var(--fg); }

/* ------------------------------------------------------------------ Application admin (PWA) */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .5s; }
.splash.is-hiding { opacity: 0; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.splash img { width: 10rem; border-radius: 1.5rem; box-shadow: var(--shadow); animation: am-pop .9s cubic-bezier(.2, .9, .3, 1.3) both; }
.splash-bar { width: 7rem; height: 4px; overflow: hidden; border-radius: 999px; background: var(--secondary); }
.splash-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transform-origin: left; animation: am-bar 1.3s ease-out both; }
@keyframes am-pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes am-bar { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.offline-bar { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; text-align: center; font-size: .75rem; font-weight: 600; }
.offline-bar .ic { width: 16px; height: 16px; }
.install-help { margin-top: .5rem; border-radius: .75rem; background: var(--muted); padding: .75rem; font-size: .75rem; color: var(--muted-fg); }
.sheet .btn-install { background: var(--primary); color: #fff; }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-about, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col ul { font-size: .8125rem; gap: .5rem; }
  .footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
  .reassure-grid > div { flex-direction: column; text-align: center; gap: .5rem; padding: .875rem .5rem; }
}

/* ------------------------------------------------------------------ Article de blog */
.post { display: flex; flex-direction: column; }
.post .see-all .ic { width: 16px; height: 16px; }
.article { max-width: 48rem; }
.article-head time { font-size: .875rem; font-weight: 600; color: var(--accent); }
.article-head h1 { margin-top: .5rem; font-size: 1.875rem; font-weight: 800; color: var(--primary-deep); line-height: 1.15; }
@media (min-width: 768px) { .article-head h1 { font-size: 2.75rem; } }
.article-lead { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-fg); }
.article-cover { margin-top: 2rem; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.25rem; }
.article-body { margin-top: 2rem; font-size: 1.0625rem; line-height: 1.8; color: rgba(29, 51, 38, .9); }
.article-body p { margin: 0 0 1.25rem; }
.article-body h2 { margin: 2.25rem 0 1rem; font-size: 1.5rem; color: var(--primary-deep); }
.article-body ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body li::marker { color: var(--accent); }
.article-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 1.25rem; background: var(--secondary); padding: 1.5rem; }
.editor { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.6; min-height: 18rem; }
.editor-help { margin-top: .5rem; font-size: .75rem; color: var(--muted-fg); line-height: 1.7; }
.editor-help code { border-radius: 4px; background: var(--muted); padding: .1rem .35rem; color: var(--fg); }
.agency { font-weight: 700; color: #fff; border-bottom: 1px dashed rgba(255, 255, 255, .5); transition: color .15s, border-color .15s; }
a.agency:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ Connexion admin */
.admin-login { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 1.5rem 1rem; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--secondary) 80%, transparent), transparent 55%), var(--muted); }
.login-wrap { width: 100%; max-width: 26rem; display: grid; gap: 1.25rem; padding-top: env(safe-area-inset-top); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.login-brand img { height: 60px; width: auto; aspect-ratio: 3.4 / 1; object-fit: cover; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.login-brand span { border-radius: 999px; background: var(--secondary); color: var(--primary); padding: .25rem .75rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.login-card { display: grid; gap: .875rem; padding: 1.75rem 1.5rem; }
@media (min-width: 640px) { .login-card { padding: 2.25rem 2rem; } }
.login-card h1 { font-size: 1.75rem; font-weight: 700; }
.login-card .muted { margin-top: -.5rem; font-size: .875rem; }
.login-card .field { padding: .75rem .875rem; font-size: 1rem; border-radius: .75rem; }
.login-card .btn { margin-top: .25rem; }
.login-help { text-align: center; font-size: .75rem; color: var(--muted-fg); }
.login-back { justify-self: center; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
.login-back .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ WhatsApp */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-wa .ic { width: 18px; height: 18px; }
.wa-product { margin-top: .75rem; padding-block: .875rem; }
@media (max-width: 767px) { .wa-product { margin-top: 1.25rem; } }
.co-or { margin: 1.25rem 0 1rem; display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .1em; }
.co-or::before, .co-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.co-form .btn-wa { border-radius: 1rem; padding-block: .875rem; }
.wa-float { position: fixed; z-index: 45; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; background: #25d366; color: #fff; padding: .875rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); font-weight: 700; font-size: .875rem; transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .ic { width: 26px; height: 26px; }
.wa-float span { display: none; }
@media (min-width: 768px) { .wa-float { right: 1.5rem; bottom: 1.5rem; padding: .875rem 1.25rem; } .wa-float span { display: inline; } }
.body-has-buybar .wa-float { bottom: calc(6.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .body-has-buybar .wa-float { bottom: 1.5rem; } }
.body-has-buybar .toasts, .toasts { bottom: 6rem; }


/* ------------------------------------------------------------------ Boutique (refonte) */
.shop-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--secondary), var(--cream)); }
.shop-hero::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 999px; background: radial-gradient(circle, rgba(242, 154, 25, .18), transparent 70%); pointer-events: none; }
.shop-hero-inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; padding-block: 2rem 2.25rem; }
@media (min-width: 1024px) { .shop-hero-inner { grid-template-columns: 1fr minmax(0, 30rem); align-items: end; padding-block: 3rem; } }
.shop-hero h1 { margin-top: .5rem; font-size: 1.875rem; font-weight: 800; line-height: 1.1; color: var(--primary-deep); }
@media (min-width: 768px) { .shop-hero h1 { font-size: 2.75rem; } }
.shop-hero-sub { margin-top: .75rem; font-size: .9375rem; color: var(--muted-fg); }
.shop-search { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: .375rem .375rem .375rem 1.125rem; box-shadow: var(--shadow); }
.shop-search > .ic { color: var(--muted-fg); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1rem; padding-block: .5rem; }
.shop-search .btn { padding: .7rem 1.25rem; }
@media (max-width: 479px) { .shop-search .btn { padding: .7rem .9rem; font-size: 0; gap: 0; } .shop-search .btn::after { content: "OK"; font-size: .875rem; } }

.shop-bar { z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); padding-block: .875rem .75rem; }
@media (min-width: 768px) { .shop-bar { position: sticky; top: var(--hdr, 0px); } }
.cat-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .125rem; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
@media (min-width: 768px) { .cat-chips { margin-inline: 0; padding-inline: 0; } }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: .3rem .875rem .3rem .3rem; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cat-chip:hover { border-color: var(--primary); }
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip img, .cat-chip-all { width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; object-fit: cover; }
.cat-chip-all { display: grid; place-items: center; background: var(--secondary); color: var(--primary); }
.cat-chip-all .ic { width: 16px; height: 16px; }
.cat-chip small { font-size: .7rem; font-weight: 700; color: var(--muted-fg); }
.cat-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-chip.is-active small { color: rgba(255, 255, 255, .75); }
.cat-chip.is-active .cat-chip-all { background: rgba(255, 255, 255, .2); color: #fff; }
.cat-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-tools { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .625rem; }
.toggle-chips { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
@media (min-width: 768px) { .toggle-chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.toggle-chips::-webkit-scrollbar { display: none; }
.tchip { flex-shrink: 0; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-flex; align-items: center; border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 999px; padding: .375rem .75rem; font-size: .8125rem; font-weight: 600; color: var(--secondary-fg); transition: .15s; }
.tchip:hover span { background: var(--secondary); }
.tchip input:checked + span { border-style: solid; border-color: var(--accent); background: rgba(242, 154, 25, .15); color: var(--fg); }
.tchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-selects { display: flex; gap: .5rem; }
@media (max-width: 767px) { .shop-selects { width: 100%; } .shop-selects .sel { flex: 1; } }
.sel { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: .3rem .375rem .3rem .875rem; font-size: .8125rem; min-width: 0; }
.sel span { color: var(--muted-fg); font-weight: 500; }
.sel select { min-width: 0; flex: 1; border: 0; background: transparent; font-weight: 700; font-size: .8125rem; padding: .25rem; outline: none; cursor: pointer; }

.shop-results { padding-top: 1.5rem; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .9375rem; color: var(--muted-fg); }
.results-bar b { color: var(--fg); }
.reset-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 700; color: var(--destructive); }
.reset-link .ic { width: 14px; height: 14px; }
.shop-section { margin-top: 1.75rem; scroll-margin-top: calc(var(--hdr, 0px) + 9rem); }
.shop-section + .shop-section { margin-top: 2.75rem; }
.shop-section-head { display: flex; align-items: center; gap: .875rem; margin-bottom: 1rem; }
.shop-section-head img { width: 52px; height: 52px; border-radius: 1rem; object-fit: cover; box-shadow: var(--shadow); }
.shop-section-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary-deep); }
@media (min-width: 768px) { .shop-section-head h2 { font-size: 1.5rem; } }
.shop-section-head p { font-size: .8125rem; color: var(--muted-fg); }
.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-empty { margin-top: 2rem; display: grid; justify-items: center; gap: .5rem; padding: 3rem 1.5rem; text-align: center; }
.shop-empty h2 { margin-top: .75rem; font-size: 1.25rem; }
.shop-empty p { color: var(--muted-fg); }
.shop-empty .btn { margin-top: .75rem; }
html.dark .shop-section-head h2, html.dark .shop-hero h1 { color: var(--fg); }
@media (max-width: 767px) {
  .page-shop .search-mobile { display: none; }
  .page-shop .topbar-row { padding-bottom: .75rem; }
  .shop-hero-inner { gap: 1.125rem; padding-block: 1.5rem 1.75rem; }
  .shop-hero h1 { font-size: 1.625rem; }
  .shop-hero-sub { margin-top: .5rem; font-size: .875rem; }
}
.promo-ends { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 600; opacity: 1 !important; color: var(--accent); }
.promo-ends .ic { width: 16px; height: 16px; }
@media (min-width: 768px) { .promo-band.is-wide { grid-template-columns: 1fr; } .promo-band.is-wide .promo-cards { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .promo-band.is-wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); } }
@media (max-width: 767px) { .promo-band.is-wide .promo-cards { grid-template-columns: 1fr 1fr; } }
.promo-hint:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Admin : promotions */
.pform-fieldset { margin: 1.25rem 0 0; border: 1px solid var(--border); border-radius: 1.25rem; padding: 1rem; min-width: 0; }
.pform-fieldset legend { padding: 0 .5rem; font-weight: 700; font-size: .9375rem; }
.input-suffix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.input-suffix .field { border: 0; }
.input-suffix span { padding: 0 .875rem; font-weight: 700; color: var(--muted-fg); }
.pick-grid { display: grid; gap: .5rem; max-height: 26rem; overflow-y: auto; padding: .125rem; }
@media (min-width: 640px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
.pick { position: relative; display: flex; align-items: center; gap: .625rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: .5rem; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.pick:hover { border-color: var(--primary); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 44px; height: 44px; border-radius: .75rem; object-fit: cover; flex-shrink: 0; }
.pick-info { min-width: 0; flex: 1; display: grid; }
.pick-info b { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-info small { font-size: .75rem; color: var(--muted-fg); }
.pick-info small b { color: var(--primary); font-size: .75rem; }
.pick-tick { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; border: 2px solid var(--border); color: transparent; }
.pick-tick .ic { width: 14px; height: 14px; }
.pick:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--secondary) 70%, var(--card)); }
.pick:has(input:checked) .pick-tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.promo-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .promo-list { grid-template-columns: 1fr 1fr; } }
.promo-item { overflow: hidden; }
.promo-item-top { display: flex; gap: 1rem; padding: 1rem; }
.promo-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 84px; height: 84px; flex-shrink: 0; overflow: hidden; border-radius: 1rem; background: var(--muted); }
.promo-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.promo-thumbs img:only-child { grid-column: 1 / -1; grid-row: 1 / 3; }
.promo-item-info { min-width: 0; flex: 1; }
.promo-item-info .aprod-cat { white-space: normal; }
.promo-pct { color: var(--accent); }
.state.sched { border-color: rgba(242, 154, 25, .5); background: rgba(242, 154, 25, .1); color: #a8650a; }
.home-flag { margin-top: .5rem; display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; background: var(--secondary); color: var(--primary); padding: .2rem .625rem; font-size: .75rem; font-weight: 600; }
.home-flag .ic { width: 14px; height: 14px; }
@container (max-width: 175px) {
  .pcard-foot { gap: .25rem; }
  .pcard-price strong { font-size: .875rem; }
  .pcard-price s { font-size: .6875rem; }
  .add-btn { height: 32px; min-width: 32px; padding: 0; }
  .add-btn .ic { width: 16px; height: 16px; }
}

/* ------------------------------------------------------------------ Admin : notifications */
.push-box { margin-top: 1rem; display: grid; gap: .75rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--muted); padding: .875rem 1rem; }
.push-box b { display: flex; align-items: center; gap: .4rem; font-size: .9375rem; }
.push-box b .ic { width: 16px; height: 16px; color: var(--primary); }
.push-box small { display: block; margin-top: .125rem; font-size: .75rem; color: var(--muted-fg); }
.push-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet .push-actions .btn { width: auto; margin-top: 0; padding: .5rem 1rem; border-radius: 999px; }
.push-cta { margin-bottom: 1rem; display: flex; align-items: center; gap: .875rem; border: 1px solid rgba(242, 154, 25, .45); border-radius: 1.25rem; background: color-mix(in srgb, var(--accent) 10%, var(--card)); padding: .875rem 1rem; }
.push-cta > span { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.push-cta p { flex: 1; min-width: 0; }
.push-cta b { display: block; font-size: .9375rem; }
.push-cta small { display: block; font-size: .8125rem; color: var(--muted-fg); }
@media (max-width: 479px) { .push-cta { flex-wrap: wrap; } .push-cta p { flex-basis: calc(100% - 60px); } .push-cta .btn { flex: 1; } }
@media (max-width: 767px) {
  .footer-bottom-row { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); gap: .875rem; }
  .body-has-buybar .footer-bottom-row { padding-bottom: calc(10rem + env(safe-area-inset-bottom)); }
  .footer-bottom-row > span:first-child { flex-wrap: wrap; justify-content: center; }
}

/* ------------------------------------------------------------------ Ajustements responsive (tablette) */
.nav-row a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1099px) {
  .nav-row { gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
  .nav-row::-webkit-scrollbar { display: none; }
  .promo-hint { display: none; }
  .header-actions { gap: .75rem; }
}
@media (min-width: 768px) and (max-width: 1023px) { .h-label { display: none; } }
/* Admin : menu du haut seulement sur grand écran, barre du bas sur tablette et téléphone */
@media (min-width: 1024px) and (max-width: 1199px) {
  .a-nav { display: none; }
  .a-bottom { display: grid; left: 50%; right: auto; width: min(36rem, calc(100% - 1.5rem)); transform: translateX(-50%); }
  .a-main { padding-bottom: 8rem; }
}

/* ------------------------------------------------------------------ Pages de contenu */
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.cta-band { display: grid; gap: 1.25rem; align-items: center; border-radius: 1.5rem; padding: 2rem 1.5rem; color: #fff; }
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; padding: 2.5rem 3rem; } }
.cta-band h2 { font-size: 1.5rem; font-weight: 800; }
@media (min-width: 768px) { .cta-band h2 { font-size: 1.875rem; } }
.cta-band p { margin-top: .375rem; opacity: .85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.about-intro { margin-top: 3rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.about-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--shadow); }
.about-text h2 { margin-top: .5rem; font-size: 1.75rem; font-weight: 800; color: var(--primary-deep); line-height: 1.15; }
@media (min-width: 768px) { .about-text h2 { font-size: 2.25rem; } }
.about-text p:not(.eyebrow) { margin-top: 1rem; line-height: 1.75; color: rgba(29, 51, 38, .85); }
.mission { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; border-left: 5px solid var(--accent); }
@media (min-width: 640px) { .mission { flex-direction: row; align-items: center; padding: 2rem 2.5rem; } }
.mission-icon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 1rem; background: var(--secondary); color: var(--primary); }
.mission-icon .ic { width: 28px; height: 28px; }
.mission-text { margin-top: .375rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--primary-deep); }
@media (min-width: 768px) { .mission-text { font-size: 1.5rem; } }
.values { display: grid; gap: 1rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 1.5rem; }
.value span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--secondary); color: var(--primary); }
.value h3 { margin-top: 1rem; font-size: 1.125rem; }
.value p { margin-top: .5rem; font-size: .9rem; color: var(--muted-fg); line-height: 1.6; }
.about-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .about-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .about-cats { grid-template-columns: repeat(6, 1fr); } }
.about-cat { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 1; }
.about-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.about-cat:hover img { transform: scale(1.06); }
.about-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 74, 37, .85), transparent 60%); }
.about-cat span { position: absolute; z-index: 1; left: .75rem; right: .75rem; bottom: .75rem; font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: #fff; line-height: 1.25; }

.commitments { display: grid; gap: 1rem; }
@media (min-width: 640px) { .commitments { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .commitments { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.commitment { padding: 1.5rem; transition: transform .2s; }
.commitment:hover { transform: translateY(-3px); }
.commitment-head { display: flex; align-items: center; justify-content: space-between; }
.commitment-head span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 1rem; background: var(--secondary); color: var(--primary); }
.commitment-head .ic { width: 26px; height: 26px; }
.commitment-head em { font-family: var(--font-display); font-style: normal; font-size: 2rem; font-weight: 800; color: color-mix(in srgb, var(--primary) 15%, transparent); }
.commitment h2 { margin-top: 1rem; font-size: 1.1875rem; color: var(--primary-deep); }
.commitment p { margin-top: .5rem; font-size: .9375rem; line-height: 1.65; color: var(--muted-fg); }
.quote { padding: 2rem 1.5rem; text-align: center; background: var(--cream); }
@media (min-width: 768px) { .quote { padding: 2.75rem 4rem; } }
.quote p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--primary-deep); }
@media (min-width: 768px) { .quote p { font-size: 1.5rem; } }
.quote span { display: block; margin-top: 1rem; font-size: .875rem; font-weight: 600; color: var(--accent); }

.contact-layout { margin-top: 2.5rem; display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 2rem; } }
.contact-cards { display: grid; gap: .75rem; }
.contact-card { display: flex; align-items: center; gap: .875rem; padding: 1rem 1.125rem; border-radius: 1.25rem; transition: border-color .15s, transform .15s; min-width: 0; }
a.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-card > span { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 999px; background: var(--secondary); color: var(--primary); }
.contact-card.is-wa > span { background: #25d366; color: #fff; }
.contact-card div { flex: 1; min-width: 0; }
.contact-card b { display: block; }
.contact-card small { display: block; font-size: .875rem; color: var(--muted-fg); overflow-wrap: anywhere; }
.contact-card .go { width: 18px; height: 18px; color: var(--muted-fg); }
.contact-pro { padding: 1.25rem; border-radius: 1.25rem; background: var(--cream); }
.contact-pro p { margin-top: .375rem; font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }
.contact-box { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 1.5rem; }
@media (min-width: 640px) { .contact-box { padding: 2rem; } }
.contact-box h2 { font-size: 1.375rem; color: var(--primary-deep); }
.contact-box .muted { margin-top: -.5rem; font-size: .875rem; }
.contact-box .field { padding: .75rem .875rem; font-size: 1rem; border-radius: .75rem; background: var(--bg); }
.contact-box .btn { justify-self: start; }
.contact-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.faq { display: grid; gap: .625rem; max-width: 52rem; }
.faq-item { border-radius: 1rem; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 1.25rem 1.125rem; color: var(--muted-fg); line-height: 1.65; }

.legal-layout { margin-top: 2.5rem; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; } }
.legal-toc { padding: 1.25rem; border-radius: 1.25rem; }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: calc(var(--hdr, 130px) + 1rem); } }
.legal-toc b { font-family: var(--font-display); }
.legal-toc ol { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .375rem; font-size: .875rem; }
.legal-toc a { color: var(--muted-fg); }
.legal-toc a:hover { color: var(--primary); }
.legal-toc li::marker { color: var(--accent); font-weight: 700; }
.legal-body { max-width: 48rem; }
.legal-updated { font-size: .8125rem; color: var(--muted-fg); }
.legal-body section { padding-top: 1.75rem; scroll-margin-top: calc(var(--hdr, 130px) + 1rem); }
.legal-body h2 { font-size: 1.25rem; color: var(--primary-deep); }
.legal-body h2 span { color: var(--accent); }
.legal-body p, .legal-body li { line-height: 1.75; color: rgba(29, 51, 38, .88); }
.legal-body p { margin-top: .75rem; }
.legal-body ul { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .375rem; }
.legal-body li::marker { color: var(--accent); }
.legal-body a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-id { list-style: none; margin: .75rem 0 0 !important; padding: 1rem 1.25rem !important; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); gap: .5rem !important; }
.legal-id li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; line-height: 1.4 !important; }
.legal-id span { color: var(--muted-fg); font-size: .875rem; }
html.dark .about-text p:not(.eyebrow), html.dark .legal-body p, html.dark .legal-body li { color: var(--fg); }
