/* =========================================================
   PilotFood — page « Commander » (même style que le site)
   ========================================================= */
:root {
  /* mêmes couleurs et polices que la page d'accueil (--y = couleur d'accent, orange) */
  --bg: #f4f3ee; --ink: #121311; --text: #3f423d; --muted: #6d716a; --line: rgba(18, 19, 17, .09); --line-2: rgba(18, 19, 17, .16);
  --y: #e2571b; --y-soft: #fde9dc; --orange: #e2571b; --good: #15803d;
  --font-d: 'Inter Tight', 'Inter', system-ui, sans-serif; --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-s: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font-b); color: var(--text); background: radial-gradient(70% 45% at 100% 0%, rgba(226, 87, 27, .12), transparent 60%), radial-gradient(50% 40% at 0% 60%, rgba(226, 87, 27, .05), transparent 65%), var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* barre du haut */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244, 243, 239, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.logo img { width: 34px; height: 34px; }
.logo b { font: 600 19px var(--font-d); letter-spacing: -0.02em; color: var(--ink); } .logo i { font: 600 19px var(--font-d); font-style: normal; letter-spacing: -0.02em; color: var(--orange); }
.top__links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); }
.top__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.top__links a:hover { color: var(--ink); }
.top__links a[aria-current="page"] { background: var(--ink); color: #fff; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.cart-btn em { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--y); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.cart-btn em[data-zero] { background: rgba(255, 255, 255, .2); color: #fff; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.bump { animation: bump .45s var(--ease); }
@media (max-width: 760px) { .top__links { display: none; } .cart-btn span { display: none; } }

/* hero */
.hero { padding: 56px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--y); }
.hero h1 { margin: 0; font: 500 clamp(38px, 6vw, 76px)/1.02 var(--font-d); letter-spacing: -0.045em; color: var(--ink); }
.hl { font-family: var(--font-s); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--y); }
.hero__lead { max-width: 60ch; margin: 18px 0 0; font-size: 17px; color: var(--muted); }
.hero__facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li { padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); }
.hero__facts b { display: block; font: 500 16px var(--font-d); color: var(--ink); }
.hero__facts span { font-size: 12.5px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero > * { animation: rise .7s var(--ease) both; }
.hero > *:nth-child(2) { animation-delay: .06s; } .hero > *:nth-child(3) { animation-delay: .12s; } .hero > *:nth-child(4) { animation-delay: .18s; }

/* onglets */
.tabs { position: sticky; top: 68px; z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.tabs__in { position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -18px rgba(29, 30, 34, .3); }
.tabs__in::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.tab em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(29, 30, 34, .07); }
.tab.is-on { color: #fff; }
.tab.is-on em { background: var(--y); color: #fff; }
.tabs__ind { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }

/* panneau */
.panel { padding: 18px 0 10px; animation: rise .5s var(--ease) both; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.panel__head h2 { margin: 0; font: 400 clamp(28px, 3.4vw, 42px)/1.1 var(--font-d); letter-spacing: -0.03em; color: var(--ink); }
.panel__head p { margin: 0; max-width: 52ch; color: var(--muted); }

/* photo vs vidéo */
.compare { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; margin-bottom: 18px; }
.compare__card { padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 36px -26px rgba(29, 30, 34, .3); }
.compare__card.is-dark { background: #1d1e22; color: rgba(255, 255, 255, .8); }
.compare__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--y-soft); color: #a23b0e; font-size: 12px; font-weight: 700; }
.is-dark .compare__tag { background: var(--y); color: #fff; }
.compare__card h3 { margin: 12px 0 6px; font: 400 24px var(--font-d); letter-spacing: -0.02em; color: var(--ink); }
.is-dark h3 { color: #fff; }
.compare__card p { margin: 0 0 12px; font-size: 14px; }
.compare__card ul { margin: 0 0 16px; padding-left: 18px; font-size: 13.5px; }
.compare__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.compare__split div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 13px; }
.compare__split b { display: block; color: #fff; font: 500 16px var(--font-d); margin-bottom: 2px; }
.compare__go { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .compare__split { grid-template-columns: 1fr; } }

/* filtres et chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; scroll-margin-top: 140px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.is-dark .chip { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.chip.is-y, .is-dark .chip.is-y { background: var(--y); color: #fff; box-shadow: none; }

/* grille de produits */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: rgba(255, 255, 255, .88); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(29, 30, 34, .04), 0 18px 36px -26px rgba(29, 30, 34, .32); animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 60ms); transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 4px rgba(29, 30, 34, .05), 0 28px 50px -26px rgba(29, 30, 34, .38); }
.pcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6df; }
.pcard__img img, .pcard__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__img video { opacity: 0; }
.pcard:hover .pcard__img video { opacity: 1; }
.pcard__play { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12px; transition: opacity .3s; }
.pcard:hover .pcard__play { opacity: 0; }
.pcard__badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: var(--y); color: #fff; font-size: 12px; font-weight: 700; }
.pcard__kind { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(29, 30, 34, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; }
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pcard h3 { margin: 0; font: 500 19px/1.2 var(--font-d); letter-spacing: -0.015em; color: var(--ink); }
.pcard__desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.pcard__delay { margin: 0; font-size: 12.5px; color: var(--good); font-weight: 600; }
.pcard__opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pcard__opts label span, .seg > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pcard__opts select, .pcard__opts input { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink); }
.seg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 7px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.seg button small { font-weight: 500; opacity: .7; }
.seg button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.pcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 12px; }
.pcard__price small { display: block; font-size: 11.5px; color: var(--muted); }
.pcard__price b { display: inline-block; font: 400 28px/1 var(--font-d); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .2s, transform .2s; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }
.btn--add.is-done { background: var(--good); }
.btn--add svg { transition: transform .35s var(--ease); }
.btn--add.is-done svg { transform: rotate(45deg); }
.note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); }

.help { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 26px; border-radius: 28px; background: #1d1e22; color: rgba(255, 255, 255, .8); }
.help h2 { margin: 0 0 4px; font: 500 26px var(--font-d); letter-spacing: -0.03em; color: #fff; }
.help p { margin: 0; }
.help .btn { background: var(--y); color: #fff; }
.foot { margin-top: 30px; padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.foot__brand .logo { margin: 0; }
.foot__brand p { max-width: 34ch; margin: 14px 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.foot__cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .25s, transform .25s; }
.foot__cta:hover { background: #000; }
.foot__cta:active { transform: scale(.97); }
.foot__cta svg { transition: transform .3s; }
.foot__cta:hover svg { transform: translateX(3px); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__col b { margin-bottom: 4px; font: 500 15px var(--font-d); letter-spacing: -0.01em; color: var(--ink); }
.foot__col a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.foot__col a:hover { color: var(--ink); }
.foot__legal { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__top { grid-template-columns: minmax(0, 1fr); } }

/* panier */
.cart-back { position: fixed; inset: 0; z-index: 40; background: rgba(29, 30, 34, .35); opacity: 0; transition: opacity .3s; }
.cart-back.is-on { opacity: 1; }
.cart { position: fixed; z-index: 50; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 26px; background: #faf9f6; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); transform: translateX(calc(100% + 20px)); transition: transform .5s var(--ease); }
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 10px; }
.cart__head h2 { margin: 0; font: 400 24px var(--font-d); color: var(--ink); }
.icon { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.cart__body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.cart__foot { padding: 14px 22px 22px; border-top: 1px solid var(--line); }
.cart__empty, .cart__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 10px; color: var(--muted); }
.cart__empty b, .cart__done b { font: 500 20px var(--font-d); color: var(--ink); }
.cart__ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--y); color: #fff; font-size: 28px; font-weight: 700; animation: bump .6s var(--ease); }
.cart__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.cart__list img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cart__txt b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.cart__txt small { display: block; font-size: 12px; color: var(--muted); }
.cart__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.cart__qty button { width: 24px; height: 24px; border-radius: 50%; font-weight: 700; }
.cart__qty button:hover { background: var(--y-soft); }
.cart__qty span { min-width: 14px; text-align: center; font-size: 13px; font-weight: 600; }
.cart__right { text-align: right; }
.cart__right b { display: block; font: 500 16px var(--font-d); color: var(--ink); white-space: nowrap; }
.link { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.back { display: block; margin: 10px auto 0; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 14px; }
.cart__total span { font-size: 13px; color: var(--muted); }
.cart__total b { font: 400 30px var(--font-d); letter-spacing: -0.03em; color: var(--ink); }
.cart__gift, .cart__hint { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.cart__gift { background: #dcfce7; color: var(--good); }
.cart__hint { background: var(--y-soft); color: #a23b0e; }
.cart__form { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.cart__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cart__form input:not([type="checkbox"]), .cart__form textarea { padding: 11px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 400; color: var(--ink); resize: vertical; }
.cart__form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart__form .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.cart__lead { margin: 0 0 4px; font-size: 13.5px; }
.cart__lead b { color: var(--ink); }
.fly { position: fixed; z-index: 60; object-fit: cover; border-radius: 16px; pointer-events: none; transition: all .6s cubic-bezier(.5, 0, .2, 1); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- ouverte dans l'espace client (cadre intégré) ---------- */
.embedded .top { position: fixed; top: 12px; right: 14px; left: auto; z-index: 40; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.embedded .top__in { width: auto; height: auto; margin: 0; padding: 0; }
.embedded .top .logo, .embedded .top__links, .embedded .foot { display: none; }
.embedded .cart-btn { box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .45); }
.embedded .hero { padding: 26px 0 8px; }
.embedded .hero h1 { font-size: clamp(28px, 3.4vw, 42px); padding-right: 140px; }
.embedded .hero h1 br { display: block; }
.embedded .hero__lead { margin-top: 8px; }
.embedded .hero__facts { margin-top: 14px; }
.embedded .help { margin-bottom: 30px; }

.embedded .tabs { top: 0; }
.inline .hero { display: none; }
.inline main { padding-top: 8px; }
@media (max-width: 700px) { .embedded .top { top: auto; bottom: 14px; right: 14px; } }

/* menu complet (8 liens) : plus serré sur les écrans moyens */
@media (max-width: 1240px) { .top__links a { padding: 8px 9px; font-size: 13px; } }
@media (max-width: 1080px) { .top__links { display: none; } }

.cart__privacy { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.cart__privacy a, .foot__legal a { color: inherit; }

/* slogan sous le logo (bas de page) */
.foot__slogan { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; }
.foot__slogan em { font: italic 400 20px/1.2 Georgia, 'Times New Roman', serif; color: var(--ink, #121311); }
.foot__slogan small { font: 600 10.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--orange, #ff6b1a); }
.foot__slogan small span { white-space: nowrap; }
