/* Mise en page grands ecrans. Les regles mobiles existantes restent la reference. */
@media (min-width: 960px) {
  html {
    min-width: 320px;
    background: #080807;
  }

  body {
    min-height: 100vh;
    padding: 28px;
    background:
      radial-gradient(circle at 12% 4%, rgba(220, 169, 37, 0.18), transparent 28rem),
      radial-gradient(circle at 92% 18%, rgba(91, 75, 40, 0.2), transparent 31rem),
      linear-gradient(135deg, #080807 0%, #15120e 48%, #090807 100%);
    background-attachment: fixed;
  }

  .app-shell {
    width: min(100%, 1440px);
    max-width: 1440px;
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    padding-bottom: 64px;
    overflow: clip;
    border: 1px solid rgba(245, 205, 86, 0.14);
    border-radius: 28px;
    background:
      radial-gradient(circle at 100% 0%, rgba(220, 169, 37, 0.09), transparent 28rem),
      linear-gradient(180deg, #151310 0%, #0d0c0b 55%, #11100e 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  }

  .topbar {
    height: 88px;
    padding: 0 clamp(28px, 4vw, 64px);
  }

  .brand {
    font-size: clamp(25px, 2vw, 32px);
  }

  .icon-button,
  .bag-button {
    width: 48px;
    height: 48px;
  }

  .compact-order-bar {
    width: auto;
    min-height: 72px;
    margin: 0 clamp(28px, 4vw, 64px);
    padding: 14px 20px;
    border-radius: 0 0 18px 18px;
  }

  .order-prompt {
    font-size: 15px;
  }

  .compact-order-bar .order-type {
    max-width: 310px;
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Quand une publicite est active, elle dispose de sa propre colonne. */
  .compact-order-bar:has(.ad-slider) {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    grid-template-rows: auto auto auto;
    gap: 12px clamp(24px, 3vw, 46px);
    min-height: 320px;
    padding: 20px;
    align-items: center;
  }

  .compact-order-bar:has(.ad-slider) .ad-slider {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    height: 280px;
    margin: 0;
    border-radius: 16px;
    background: #080807;
  }

  .compact-order-bar:has(.ad-slider) .ad-slides,
  .compact-order-bar:has(.ad-slider) .ad-link {
    height: 100%;
  }

  .compact-order-bar:has(.ad-slider) .ad-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .compact-order-bar:has(.ad-slider) .order-prompt,
  .compact-order-bar:has(.ad-slider) .order-type,
  .compact-order-bar:has(.ad-slider) .open-notice {
    grid-column: 2;
    width: 100%;
    max-width: none;
  }

  .compact-order-bar:has(.ad-slider) .order-prompt {
    grid-row: 1;
    align-self: end;
  }

  .compact-order-bar:has(.ad-slider) .order-type {
    grid-row: 2;
  }

  .compact-order-bar:has(.ad-slider) .open-notice {
    grid-row: 3;
    align-self: start;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .categories {
    gap: 10px;
    padding: 24px clamp(28px, 4vw, 64px) 15px;
    scrollbar-width: thin;
  }

  .categories button {
    padding: 11px 17px;
    font-size: 13px;
  }

  .menu-section {
    padding: 15px clamp(28px, 4vw, 64px) 30px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 2.4vw, 38px);
  }

  .section-heading span {
    font-size: 13px;
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.7vw, 24px);
  }

  .card {
    min-width: 0;
    border-radius: 20px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 205, 86, 0.52);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  }

  .food-art {
    width: 100%;
    height: auto;
    min-height: 190px;
    aspect-ratio: 4 / 3;
    font-size: clamp(76px, 7vw, 112px);
  }

  .food-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .card-body {
    display: flex;
    min-height: 154px;
    padding: 18px;
    flex-direction: column;
  }

  .card h3 {
    font-size: 19px;
  }

  .card p {
    height: auto;
    min-height: 39px;
    margin: 3px 0 18px;
    font-size: 13px;
  }

  .price-row {
    margin-top: auto;
  }

  .price {
    font-size: 16px;
  }

  .add {
    width: 36px;
    height: 36px;
  }

  .sheet {
    right: auto;
    bottom: 28px;
    width: min(calc(100vw - 56px), 720px);
    max-width: 720px;
    max-height: calc(100vh - 56px);
    border: 1px solid #51483c;
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  }

  .sheet.product-sheet {
    max-width: 820px;
  }

  .sheet.cart-sheet,
  .sheet.order-sheet {
    max-width: 640px;
  }

  .product-hero {
    width: 100%;
    height: auto;
    min-height: 270px;
    max-height: 430px;
    aspect-ratio: 16 / 9;
  }

  .product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-info,
  .sheet-inner {
    padding-right: clamp(30px, 4vw, 48px);
    padding-left: clamp(30px, 4vw, 48px);
  }
}

@media (min-width: 1320px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1700px) {
  body {
    padding-right: 42px;
    padding-left: 42px;
  }

  .app-shell {
    min-height: calc(100vh - 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
