/* La Table de Coco — page « Commander » (v2.0) */

.order-head { padding-bottom: 0; }
/* Bas de page : comment ça se passe */
.ta-more { border-top: 1px solid var(--ligne); }
.ta-more-in { display: grid; gap: 34px; }
@media (min-width: 900px) { .ta-more-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ta-more h3 { margin: 30px 0 12px; }
.ta-more-in > div > h3:first-child { margin-top: 0; }
.ta-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ta; display: grid; gap: 14px; }
.ta-steps li { counter-increment: ta; display: grid; grid-template-columns: 34px 1fr; gap: 12px; line-height: 1.5; }
.ta-steps li::before { content: counter(ta); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--or); color: var(--or-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.order-head-in { display: grid; gap: 24px; align-items: center; }
.oh-img { display: none; }
@media (min-width: 900px) { .order-head-in { grid-template-columns: minmax(0, 1fr) 190px; gap: 64px; } .oh-img { display: block; } .oh-img img { width: 100%; height: auto; } }
.order-head .flux { max-width: 760px; margin-top: 8px; }
.ta-real { padding: 30px 0 0; }
.ta-real-h { font-size: 22px; margin-bottom: 14px; }
.photo-row.is-compact { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 860px; }
@media (min-width: 700px) { .photo-row.is-compact { gap: 16px; } }
.order-sec { padding-top: 40px; }
@media (min-width: 900px) { .order-sec { padding-top: 56px; } }

/* Mise en page : étapes 1-2, ma commande, étape 3 */
.order-in { display: grid; gap: 40px; }
.order-a { order: 1; } .order-b { order: 2; } .order-c { order: 3; } .order-done { order: 4; }
@media (min-width: 980px) {
  .order-in { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); grid-template-areas: "a b" "c b" "d b"; gap: 40px 56px; align-items: start; }
  .order-a { grid-area: a; } .order-c { grid-area: c; } .order-done { grid-area: d; }
  .order-b { grid-area: b; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}
.step { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.step span { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--or); color: var(--or-2); font: 600 18px/36px var(--sans); text-align: center; }
.order-a > .step:not(:first-child) { margin-top: 48px; }

/* Choix du burger */
.pick { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pick { grid-template-columns: 1fr 1fr; } }
.pick li { scroll-margin-top: calc(var(--header-h) + 16px); }
.pick-btn { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 8px; border: 1px solid var(--ligne); background: var(--nuit-2); color: var(--creme); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.pick-btn:hover { border-color: var(--or); background: var(--kaki); }
.pick-btn:active { transform: scale(.99); }
.pick-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pick-name { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.pick-btn .price { font-size: 21px; }
.pick-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--nuit); background: var(--or); border-radius: 4px; padding: 1px 8px; }
.pick-ing { color: var(--creme-2); font-size: 14.5px; line-height: 1.45; }
.pick-go { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--or-2); }

/* Frites, menu enfant, dessert */
.extras { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .extras { grid-template-columns: repeat(3, 1fr); } .extras.is-pairs { grid-template-columns: repeat(2, 1fr); } }
.extra { border: 1px solid var(--ligne); border-radius: 8px; padding: 16px; background: var(--nuit-2); display: flex; flex-direction: column; }
.extra h3 { font-size: 21px; margin-bottom: 6px; }
.extra .muted { font-size: 14.5px; }
.extra .muted.small { font-size: 13.5px; line-height: 1.45; }
.extra p:last-child { margin: auto 0 0; }
.extra .btn { min-height: 44px; padding: 0 14px; font-size: 15px; width: 100%; }

/* Ma commande */
.cart { border: 1px solid var(--ligne-or); border-radius: 10px; background: var(--kaki); padding: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.cart h2 { font-size: 28px; margin-bottom: 12px; }
.cart-list { display: grid; gap: 0; }
.cart-empty { color: var(--creme-2); margin: 4px 0 8px; }
.ci { padding: 14px 0; border-bottom: 1px solid var(--ligne); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.ci:first-child { padding-top: 4px; }
.ci-name { font-weight: 600; font-size: 16.5px; }
.ci-price { font-family: var(--serif); color: var(--or-2); font-size: 19px; white-space: nowrap; }
.ci-sum { grid-column: 1 / -1; color: var(--creme-2); font-size: 14px; line-height: 1.45; margin: 0; }
.ci-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.ci-acts button, .ci-acts select { font: 500 14px var(--sans); }
.lnk { background: none; border: 0; padding: 4px 0; color: var(--creme); text-decoration: underline; text-decoration-color: var(--ligne-or); text-underline-offset: 3px; cursor: pointer; }
.lnk:hover { color: var(--or-2); }
.lnk.is-del { color: var(--creme-2); }
.ci select { background: var(--nuit); color: var(--creme); border: 1px solid rgba(239, 231, 212, .3); border-radius: 6px; min-height: 38px; padding: 0 8px; max-width: 100%; }
.ci label.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.ci input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--or); }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(239, 231, 212, .3); border-radius: 6px; overflow: hidden; }
.qty button { width: 38px; height: 36px; background: transparent; border: 0; color: var(--creme); font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--kaki-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; font-size: 18px; }
.cart-go { margin: 14px 0 6px; }
.cart-go .btn { width: 100%; justify-content: center; }
.send { scroll-margin-top: calc(var(--header-h) + 16px); }
.cart-total strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--or-2); }

/* Étape 3 */
.send fieldset { border: 0; padding: 0; margin: 18px 0 8px; }
.send legend { font-weight: 600; margin-bottom: 10px; font-size: 17px; }
.dates { display: flex; flex-wrap: wrap; gap: 10px; }
.dates legend { width: 100%; }
.dates .small { width: 100%; margin: 4px 0 0; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(239, 231, 212, .3); font-weight: 500; }
.radio input:checked + span { border-color: var(--or); background: var(--or); color: var(--nuit); font-weight: 600; }
.radio input:focus-visible + span { outline: 2px solid var(--or-2); outline-offset: 2px; }
.fields { display: grid; gap: 14px; margin: 18px 0 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.fields label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.fields input { font: 400 17px var(--sans); color: var(--creme); background: var(--nuit-2); border: 1px solid rgba(239, 231, 212, .3); border-radius: 8px; min-height: 50px; padding: 0 14px; width: 100%; }
.fields input:focus { outline: 2px solid var(--or); outline-offset: 1px; border-color: var(--or); }
.fields input[aria-invalid="true"] { border-color: #e08a6a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.send-err { background: rgba(224, 138, 106, .14); border: 1px solid #e08a6a; color: #f4c7b4; border-radius: 8px; padding: 12px 14px; font-weight: 500; }
.send-err a { color: #f4c7b4; }
.btn-send { min-height: 56px; font-size: 17px; width: 100%; }
@media (min-width: 640px) { .btn-send { width: auto; padding: 0 30px; } }
.btn-send[disabled] { opacity: .6; cursor: progress; }

/* Confirmation */
.order-done { border: 1px solid var(--or); border-radius: 10px; background: var(--kaki); padding: 24px 22px; }
.order-done:focus { outline: none; }
.order-done h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--or-2); }
.order-done .done-call { font-size: 18px; font-weight: 600; }
.order-done .hero-actions { margin: 18px 0; }
.done-text { white-space: pre-wrap; font: 15px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--nuit); border: 1px solid var(--ligne); border-radius: 8px; padding: 14px 16px; margin: 16px 0; color: var(--creme); overflow-x: auto; }

/* Pastille « Ma commande » en bas de l'écran (téléphone) */
.cart-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 55; }
.cart-pill a { display: inline-flex; gap: 12px; align-items: center; background: var(--or); color: var(--nuit); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); white-space: nowrap; }
.cart-pill strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.cart-pill { transition: opacity .2s, visibility .2s; }
.cart-pill.is-away { opacity: 0; visibility: hidden; }
@media (min-width: 980px) { .cart-pill { display: none; } }

/* ---------- Le créateur de burger (fenêtre) ---------- */
.bld { padding: 0; border: 0; background: var(--nuit); color: var(--creme); width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; overflow: hidden; }
.bld[open] { display: flex; flex-direction: column; }
.bld::backdrop { background: rgba(8, 9, 6, .82); }
.bld-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--ligne); }
.bld-name { font-family: var(--script); font-size: 34px; color: var(--or); margin: 0; line-height: 1.2; letter-spacing: 0; }
.bld-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne); background: transparent; color: var(--creme); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bld-x:hover { border-color: var(--or); }
.bld-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bld-visual { position: sticky; top: 0; z-index: 2; height: 44vh; min-height: 250px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 50%, #2e3122 0%, #1a1b14 60%, var(--nuit) 85%); border-bottom: 1px solid var(--ligne); overflow: hidden; }
.bld-opts { padding: 18px 18px 28px; }
.bld-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); background: var(--nuit-2); }
.bld-price { margin: 0; display: grid; line-height: 1.15; }
.bld-price strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--or-2); }
.bld-price .fx-soft { color: var(--creme); margin-top: 3px; }
.bld-price .fx-soft[hidden] { display: none; }
.bld-ok { min-height: 52px; flex: 0 1 auto; }
.bld-msg { color: #f4c7b4; font-size: 14px; margin: 0; }
@media (min-width: 900px) {
  .bld { width: min(1080px, 94vw); height: min(880px, 92vh); margin: auto; border-radius: 12px; border: 1px solid var(--ligne-or); }
  .bld-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; }
  .bld-visual { position: relative; height: auto; border-bottom: 0; border-right: 1px solid var(--ligne); }
  .bld-opts { overflow-y: auto; padding: 22px 30px 30px; }
  .bld-foot { padding: 14px 24px; }
}

/* Frites et menus enfant : la petite fenêtre */
.fx { padding: 0; border: 0; background: var(--nuit); color: var(--creme); width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; overflow: hidden; }
.fx[open] { display: flex; flex-direction: column; }
.fx::backdrop { background: rgba(8, 9, 6, .82); }
.fx-t { font-size: 30px; margin: 0; }
.fx-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px 24px; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--ligne); }
.fx-row .qty button { height: 34px; }
.fx-herbs { padding: 10px 0; }
.fx-herbs .fx-lab { display: grid; font-weight: 600; }
.fx-herbs small { font-weight: 400; font-size: 13.5px; color: var(--creme-2); }
.fx-row.fx-big { padding: 12px 0; font-size: 18px; font-weight: 600; }
.fx-row.is-on .fx-lab { color: var(--or-2); font-weight: 600; }
.fx-h { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--creme-2); margin: 20px 0 2px; }
.fx-free { margin: 0 0 4px; font-size: 14.5px; color: var(--creme-2); }
.fx-free.is-on { color: var(--creme); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty button:disabled:hover { background: transparent; }
@media (min-width: 700px) {
  .fx { width: min(520px, 94vw); height: min(820px, 92vh); margin: auto; border-radius: 12px; border: 1px solid var(--ligne-or); }
  .fx-body { padding: 12px 26px 26px; }
}

/* Le burger éclaté */
.stage { position: relative; transition: width .5s cubic-bezier(.2, .8, .2, 1), height .5s cubic-bezier(.2, .8, .2, 1); }
.stage.is-squashed { animation: flotte 4.5s ease-in-out infinite; }
.stage.is-squashed .layer img { animation: none; }
.stage.is-squashed .lab { opacity: 0; }
.bld-squash { position: absolute; right: 12px; top: 12px; z-index: 5; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ligne-or); background: rgba(20, 21, 15, .78); color: var(--or-2); font: 600 14px var(--sans); cursor: pointer; }
.bld-squash:hover { border-color: var(--or); }
.bld-squash[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--nuit); }
.bld-opts.is-busy { pointer-events: none; }
.layer { position: absolute; left: 0; transition: top .5s cubic-bezier(.2, .8, .2, 1), left .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1), opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.layer img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .55)); animation: flotte 4.5s ease-in-out infinite; }
.layer.is-new { opacity: 0; transform: translateY(-26px) scale(.96); }
.layer.is-out { opacity: 0; transform: translateX(40px) scale(.9); }
.layer .pill { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 22px; border: 1px solid var(--ligne-or); border-radius: 999px; background: rgba(38, 40, 28, .94); color: var(--or-2); font-size: 12px; font-weight: 600; text-align: center; padding: 0 10px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab { position: absolute; font-size: 13.5px; line-height: 1.25; color: var(--creme); display: flex; align-items: center; gap: 8px; transform: translateY(-50%); transition: top .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; pointer-events: none; }
.lab::before { content: ""; flex: none; width: 22px; height: 1px; background: var(--or); }
.lab.is-new, .lab.is-out { opacity: 0; }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.stage.no-labels .lab { display: none; }

/* Options */
.opt { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--ligne); }
.opt:last-child { border-bottom: 0; margin-bottom: 0; }
.opt h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--creme-2); margin: 0 0 10px; }
.opt h3 em { font-style: normal; text-transform: none; letter-spacing: 0; color: #f4c7b4; font-weight: 600; margin-left: 6px; }
.opt .hint { font-size: 13.5px; color: var(--creme-2); margin: 8px 0 0; }
.sauce-multi { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; cursor: pointer; }
.sauce-multi input { width: 18px; height: 18px; accent-color: var(--or); margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg + .seg-qty { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239, 231, 212, .3); background: transparent; color: var(--creme); font: 500 15px var(--sans); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ob:hover { border-color: var(--or); }
.ob[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--nuit); font-weight: 600; }
.ob.is-rm[aria-pressed="true"] { background: transparent; border-color: #e08a6a; color: #f4c7b4; text-decoration: line-through; font-weight: 500; }
.ob.is-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.opt.is-missing .seg { outline: 2px dashed #e08a6a; outline-offset: 6px; border-radius: 8px; }
.tog { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; width: 100%; text-align: left; background: transparent; border: 1px solid var(--ligne); border-radius: 10px; padding: 12px 14px; color: var(--creme); font: inherit; cursor: pointer; margin-bottom: 10px; }
.tog:hover { border-color: var(--or); }
.tog .sw { grid-row: span 2; width: 42px; height: 24px; border-radius: 999px; background: var(--kaki-2); position: relative; transition: background-color .15s; }
.tog .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--creme-2); transition: transform .15s, background-color .15s; }
.tog[aria-pressed="true"] { border-color: var(--or); }
.tog[aria-pressed="true"] .sw { background: var(--or); }
.tog[aria-pressed="true"] .sw::after { transform: translateX(18px); background: var(--nuit); }
.tog strong { font-weight: 600; }
.tog small { color: var(--creme-2); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .layer img, .stage.is-squashed { animation: none; }
}

/* Burger de la semaine sans recette en ligne : « appelez-nous avant » */
.bld-note { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--or); border-radius: 4px; background: rgba(201, 161, 93, .12); color: var(--creme); font-size: 15px; line-height: 1.45; }
