:root {
  --pink: #f7048d;
  --pink-dark: #d70077;
  --black: #171313;
  --black-soft: #2b2427;
  --white: #ffffff;
  --off-white: #fff9fc;
  --gray: #6f686b;
  --light-gray: #f2edef;
  --line: #eadfe5;
  --shadow: 0 18px 50px rgba(23, 19, 19, .12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--black);
  background: var(--off-white);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.announcement {
  min-height: 34px;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  background: var(--pink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.announcement .dot {
  opacity: .7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  padding: 0 4vw;
  background: rgba(23, 19, 19, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.brand-small {
  font-size: 25px;
  color: var(--white);
}

.brand-main {
  font-size: 36px;
  color: var(--pink);
}

.icon-btn,
.cart-btn,
.close-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger-btn {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger-btn span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
}

.cart-btn {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  color: var(--white);
}

.cart-icon {
  font-size: 20px;
  filter: grayscale(1) brightness(5);
}

.cart-count {
  position: absolute;
  right: 0;
  top: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--white);
  background: var(--pink);
  font-size: 11px;
  font-weight: 800;
}

.hero {
  min-height: 615px;
  padding: 72px 7vw 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 60px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(247, 4, 141, .13), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff8fc 100%);
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero h1,
.section-heading h2,
.promo-block h2 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: .98;
  letter-spacing: -.04em;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(54px, 7vw, 96px);
}

.hero h1 span {
  color: var(--black);
}

.hero h1 strong {
  color: var(--pink);
}

.hero-text {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 12px 28px rgba(247, 4, 141, .24);
}

.btn-primary:hover {
  background: var(--pink-dark);
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.plate {
  position: relative;
  z-index: 2;
  width: min(410px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 55%, #efe8ec 56% 63%, #fff 64%);
  box-shadow:
    0 35px 75px rgba(23,19,19,.16),
    inset 0 0 0 1px rgba(23,19,19,.04);
}

.sushi {
  position: absolute;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 30px rgba(23,19,19,.12);
  font-size: 58px;
  transform: rotate(-6deg);
}

.sushi.salmon { left: 45px; top: 58px; }
.sushi.maki { right: 48px; top: 76px; transform: rotate(8deg); }
.sushi.shrimp { left: 75px; bottom: 62px; transform: rotate(9deg); }
.sushi.roll { right: 58px; bottom: 48px; transform: rotate(-10deg); }

.pink-orbit {
  position: absolute;
  width: 450px;
  height: 450px;
  border: 34px solid rgba(247, 4, 141, .12);
  border-radius: 50%;
}

.quick-info {
  width: min(1180px, 90vw);
  margin: -26px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--black);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quick-info article {
  min-height: 110px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
  color: var(--white);
}

.quick-info article + article {
  border-left: 1px solid rgba(255,255,255,.12);
}

.quick-icon {
  font-size: 28px;
}

.quick-info strong,
.quick-info small {
  display: block;
}

.quick-info small {
  margin-top: 6px;
  color: #cfc4c9;
}

.menu-section,
.contact-section {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 100px 0 40px;
}

.section-heading {
  max-width: 690px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(44px, 6vw, 72px);
}

.section-heading h2 span {
  color: var(--black);
}

.section-heading h2 strong {
  color: var(--pink);
}

.section-heading p:last-child {
  color: var(--gray);
  line-height: 1.7;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.category-chip.active {
  border-color: var(--pink);
  color: var(--white);
  background: var(--pink);
}

.category-title-row {
  margin: 24px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.category-title-row h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 38px;
  line-height: 1;
}

.result-count {
  color: var(--gray);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(23, 19, 19, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(23, 19, 19, .10);
}

.product-image {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #fff6fb 0%, #fff 65%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.food-emoji {
  font-size: 92px;
  filter: drop-shadow(0 16px 18px rgba(23, 19, 19, .13));
}

.product-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.product-body {
  padding: 20px;
}

.product-body h4 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 24px;
  line-height: 1.15;
}

.product-description {
  min-height: 44px;
  margin: 8px 0 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.price {
  color: var(--pink);
  font-family: "Baloo 2", cursive;
  font-size: 27px;
  font-weight: 800;
}

.add-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--black);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.add-btn:hover {
  background: var(--pink);
  transform: scale(1.05);
}

.promo-block {
  width: min(1180px, 90vw);
  margin: 80px auto 0;
  min-height: 330px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 25%, rgba(247,4,141,.45), transparent 32%),
    var(--black);
}

.promo-block .light {
  color: #fff;
  opacity: .7;
}

.promo-block h2 {
  max-width: 700px;
  font-size: clamp(40px, 5vw, 65px);
}

.promo-block h2 strong {
  color: var(--pink);
}

.promo-block p:last-child {
  max-width: 620px;
  color: #d2c9cd;
  line-height: 1.7;
}

.promo-badge {
  justify-self: center;
  width: 220px;
  height: 220px;
  display: grid;
  place-content: center;
  border: 14px solid var(--pink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-7deg);
}

.promo-badge span {
  font-size: 19px;
  font-weight: 800;
}

.promo-badge strong {
  color: var(--pink);
  font-family: "Baloo 2", cursive;
  font-size: 52px;
  line-height: .9;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.contact-card small,
.contact-card strong {
  display: block;
}

.contact-card small {
  margin-bottom: 7px;
  color: var(--gray);
}

footer {
  margin-top: 80px;
  padding: 50px 7vw;
  text-align: center;
  color: var(--white);
  background: var(--black);
}

.brand-footer .brand-small {
  font-size: 22px;
}

.brand-footer .brand-main {
  font-size: 33px;
}

footer p {
  color: #d0c6ca;
}

.footer-note {
  font-size: 12px;
  opacity: .65;
}

/* Drawers */
.nav-drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: min(420px, 92vw);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .28s ease;
}

.nav-drawer {
  left: 0;
  transform: translateX(-105%);
}

.cart-drawer {
  right: 0;
  transform: translateX(105%);
  display: flex;
  flex-direction: column;
}

.nav-drawer.open,
.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  min-height: 86px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-family: "Baloo 2", cursive;
  font-size: 28px;
  font-weight: 800;
}

.close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--black);
  background: var(--light-gray);
  font-size: 27px;
}

#drawerNav {
  padding: 15px 16px;
  overflow-y: auto;
}

.drawer-category {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
}

.drawer-category:hover,
.drawer-category.active {
  color: var(--pink);
  background: #fff1f8;
}

.drawer-footer {
  margin-top: auto;
  padding: 18px 22px 28px;
  border-top: 1px solid var(--line);
}

.drawer-link {
  display: block;
  padding: 9px 0;
  color: var(--gray);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  opacity: 0;
  background: rgba(23, 19, 19, .52);
  backdrop-filter: blur(2px);
  transition: opacity .25s ease, visibility .25s ease;
}

.overlay.show {
  visibility: visible;
  opacity: 1;
}

.cart-head {
  flex: 0 0 auto;
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 20px;
}

.cart-empty {
  flex: 1 1 auto;
  padding: 50px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--gray);
}

.cart-empty .empty-icon {
  margin-bottom: 12px;
  font-size: 55px;
}

.cart-empty strong {
  color: var(--black);
  font-size: 18px;
}

.cart-empty p {
  max-width: 280px;
  line-height: 1.6;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h5 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item-price {
  color: var(--pink);
  font-weight: 800;
}

.qty-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
}

.cart-summary {
  flex: 0 0 auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.summary-line.muted {
  color: var(--gray);
  font-size: 13px;
}

.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 20px;
}

.summary-total strong {
  color: var(--pink);
}

.checkout-btn {
  width: 100%;
  margin-top: 12px;
}

.checkout-note {
  display: block;
  margin-top: 10px;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 26px;
  padding: 12px 18px;
  transform: translate(-50%, 120px);
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  transition: transform .25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 52px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-visual {
    min-height: 350px;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .quick-info article + article {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-block h2,
  .promo-block p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .announcement {
    font-size: 10px;
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand-small {
    font-size: 20px;
  }

  .brand-main {
    font-size: 31px;
  }

  .hero {
    min-height: auto;
    padding: 48px 20px 44px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    padding-inline: 14px;
  }

  .hero-visual {
    min-height: 290px;
  }

  .plate {
    width: 270px;
  }

  .pink-orbit {
    width: 300px;
    height: 300px;
    border-width: 24px;
  }

  .sushi {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    font-size: 43px;
  }

  .sushi.salmon { left: 30px; top: 42px; }
  .sushi.maki { right: 32px; top: 52px; }
  .sushi.shrimp { left: 46px; bottom: 42px; }
  .sushi.roll { right: 38px; bottom: 35px; }

  .quick-info {
    width: calc(100% - 28px);
    margin-top: -8px;
  }

  .quick-info article {
    min-height: 86px;
    padding: 18px 20px;
  }

  .menu-section,
  .contact-section {
    width: calc(100% - 30px);
    padding-top: 72px;
  }

  .section-heading h2 {
    font-size: 45px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 175px;
  }

  .food-emoji {
    font-size: 78px;
  }

  .promo-block {
    width: calc(100% - 30px);
    padding: 38px 24px;
    border-radius: 24px;
  }

  .promo-badge {
    width: 175px;
    height: 175px;
    border-width: 10px;
  }

  .promo-badge strong {
    font-size: 42px;
  }
}

/* Barre de catégories déplacée juste sous la navigation principale */
.top-category-bar-wrap {
  position: sticky;
  top: 76px;
  z-index: 35;
  padding: 10px 5vw 0;
  background: rgba(255, 249, 252, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-category-bar {
  max-width: 1780px;
  margin: 0 auto;
  padding-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
}

/* Sur PC : les 23 catégories passent sur plusieurs lignes,
   donc elles restent toutes visibles sans couper la dernière. */
@media (min-width: 901px) {
  .top-category-bar .category-chip {
    min-height: 42px;
    padding: 0 16px;
  }
}

/* Sur tablette / mobile : une seule ligne que l'on fait défiler,
   pour éviter de prendre trop de hauteur sur l'écran. */
@media (max-width: 900px) {
  .top-category-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .top-category-bar .category-chip {
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  .top-category-bar-wrap {
    top: 68px;
    padding: 8px 15px 0;
  }
}



/* Lien "zones & tarifs" dans la barre rose */
.delivery-info-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.65);
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.delivery-info-link:hover {
  border-bottom-color: var(--white);
}

/* Fenêtre zones de livraison */
.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.delivery-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.delivery-modal-card {
  position: relative;
  z-index: 1;
  width: min(700px, 96vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(23, 19, 19, .24);
}

.delivery-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.delivery-modal-head h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 36px;
  line-height: 1;
}

.delivery-modal-intro,
.delivery-modal-note {
  color: var(--gray);
  line-height: 1.6;
}

.delivery-zones {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.delivery-zone-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.delivery-zone-row:first-child {
  border-top: 0;
}

.delivery-zone-head {
  color: var(--white);
  background: var(--black);
  font-weight: 800;
}

.delivery-zone-row strong {
  color: var(--black);
}

@media (max-width: 620px) {
  .announcement {
    flex-wrap: wrap;
    row-gap: 3px;
  }

  .delivery-modal-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .delivery-zone-row {
    grid-template-columns: 1.25fr .9fr .9fr;
    gap: 8px;
    padding: 11px 10px;
    font-size: 12px;
  }

  .delivery-modal-head h3 {
    font-size: 31px;
  }
}


/* =========================================================
   VALIDATION DE COMMANDE / SUPABASE
   ========================================================= */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.checkout-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.checkout-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(23, 19, 19, .25);
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.checkout-head h3,
.order-success h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 36px;
  line-height: 1;
}

#checkoutForm {
  padding-top: 22px;
}

.order-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.order-type-option {
  min-height: 84px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.order-type-option:hover {
  transform: translateY(-1px);
}

.order-type-option.active {
  border-color: var(--pink);
  background: #fff2f9;
}

.order-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-type-option span {
  font-size: 25px;
}

.order-type-option strong {
  font-size: 15px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.checkout-grid > *,
.order-type-selector > *,
.field,
.field input,
.field select,
.field textarea {
  min-width: 0;
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--black);
  background: var(--white);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(247, 4, 141, .10);
}

.checkout-recap {
  margin: 7px 0 18px;
  padding: 17px;
  border-radius: 16px;
  color: var(--white);
  background: var(--black);
}

.checkout-recap > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.checkout-recap strong {
  color: var(--pink);
  font-size: 24px;
}

.checkout-recap small {
  display: block;
  margin-top: 7px;
  color: #d2c8cd;
}

.submit-order-btn {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.submit-order-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.checkout-error {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #ad1731;
  background: #ffe8ee;
  font-size: 13px;
  font-weight: 700;
}

.order-success {
  padding: 44px 10px 15px;
  text-align: center;
}

.success-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(247,4,141,.24);
}

.order-success p {
  margin: 12px auto 24px;
  max-width: 420px;
  color: var(--gray);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 620px) {
  .checkout-modal {
    padding: 10px;
    place-items: center;
  }

  .checkout-card {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    margin: 0;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .checkout-head {
    gap: 12px;
  }

  .checkout-head h3,
  .order-success h3 {
    font-size: clamp(27px, 8vw, 31px);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-type-selector {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .order-type-option {
    min-width: 0;
    min-height: 72px;
    padding: 9px 8px;
    gap: 7px;
    text-align: center;
  }

  .order-type-option span {
    font-size: 22px;
  }

  .order-type-option strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .checkout-modal {
    padding: 6px;
  }

  .checkout-card {
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 18px 13px;
    border-radius: 18px;
  }

  .order-type-selector {
    grid-template-columns: 1fr;
  }

  .order-type-option {
    min-height: 58px;
  }
}


.estimated-time {
  display: inline-block;
  margin-top: 10px;
  color: var(--pink);
  font-size: 18px;
}

/* =========================================================
   V11 — RESPONSIVE GLOBAL MOBILE
   Tous les panneaux/modal restent dans le viewport sur
   petits et grands téléphones, sans décalage horizontal.
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Header / barre haute */
  .announcement {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
  }

  /* Les deux tiroirs deviennent plein écran sur mobile.
     Plus de bande vide à gauche/droite comme sur la capture. */
  .nav-drawer,
  .cart-drawer {
    top: 0;
    bottom: auto;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    box-shadow: none;
  }

  .nav-drawer {
    left: 0;
    right: auto;
  }

  .cart-drawer {
    left: auto;
    right: 0;
  }

  .drawer-head {
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
    padding-top: max(18px, env(safe-area-inset-top));
    gap: 12px;
  }

  .drawer-title {
    min-width: 0;
    font-size: clamp(25px, 8vw, 31px);
  }

  #drawerNav {
    width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .drawer-category,
  .drawer-link {
    max-width: 100%;
  }

  .cart-items {
    width: 100%;
    min-width: 0;
    padding: 8px 16px 16px;
  }

  .cart-item {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .cart-item > div:first-child,
  .cart-item h5 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .qty-controls {
    flex: 0 0 auto;
  }

  .cart-summary {
    width: 100%;
    min-width: 0;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .summary-line,
  .summary-total {
    min-width: 0;
  }

  .checkout-btn {
    width: 100%;
    max-width: 100%;
  }

  /* Toutes les fenêtres centrales ont exactement la même règle. */
  .checkout-modal,
  .delivery-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    place-items: center;
  }

  .checkout-card,
  .delivery-modal-card {
    width: 100%;
    max-width: 680px;
    min-width: 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-head,
  .delivery-modal-head {
    min-width: 0;
  }

  .checkout-head > div,
  .delivery-modal-head > div {
    min-width: 0;
  }

  .order-type-selector,
  .checkout-grid,
  .delivery-zone-row {
    max-width: 100%;
  }

  .field,
  .field input,
  .field select,
  .field textarea,
  .submit-order-btn {
    max-width: 100%;
  }

  /* Contenu principal */
  .hero,
  .quick-info,
  .menu-section,
  .promo-block,
  .contact-section,
  footer {
    max-width: 100%;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    overflow-wrap: anywhere;
  }

  .hero-actions {
    max-width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
  }

  .quick-info,
  .menu-section,
  .promo-block,
  .contact-section {
    width: calc(100% - 24px);
  }

  .product-card,
  .contact-card,
  .promo-block {
    min-width: 0;
  }

  .top-category-bar-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .top-category-bar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .cart-items,
  .cart-summary {
    padding-left: 14px;
    padding-right: 14px;
  }

  .qty-btn {
    width: 34px;
    height: 34px;
  }

  .checkout-modal,
  .delivery-modal {
    padding: 8px;
  }

  .checkout-card,
  .delivery-modal-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
}

@media (max-width: 360px) {
  .drawer-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-items,
  .cart-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .qty-controls {
    gap: 4px;
  }

  .qty-btn {
    width: 31px;
    height: 31px;
  }

  .checkout-modal,
  .delivery-modal {
    padding: 5px;
  }

  .checkout-card,
  .delivery-modal-card {
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 17px;
  }

  .order-type-selector {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CARTE RÉELLE — 2 images de catégorie + emojis légers
   ========================================================= */
.category-intro {
  margin: -8px 0 22px;
  color: var(--gray);
  line-height: 1.65;
}

.category-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.category-visual-card {
  position: relative;
  min-width: 0;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff0f8, #fff);
  box-shadow: 0 12px 34px rgba(23,19,19,.06);
}

.category-visual-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-visual-card > img.missing { display: none; }

.category-visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
  color: var(--gray);
}

.category-visual-placeholder span { font-size: 52px; }
.category-visual-placeholder strong { color: var(--black); font-size: 16px; }
.category-visual-placeholder small { overflow-wrap: anywhere; }

.subcategory-bar {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 18px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.subcategory-bar::-webkit-scrollbar { display:none; }
.subcategory-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.subcategory-chip.active {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.product-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.compact-product-card {
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: visible;
  border-radius: 18px;
}

.compact-product-card:hover { transform: translateY(-2px); }

.product-icon-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff0f8;
  border: 1px solid #f5d9e9;
}

.product-icon-emoji {
  display: block;
  font-size: 34px;
  line-height: 1;
  transform: translateY(1px);
}

.compact-product-body { padding: 0; min-width: 0; }
.compact-product-body h4 {
  margin: 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.compact-product-body .product-description {
  min-height: 0;
  margin: 4px 0 0;
  font-size: 12.5px;
}

.product-contents {
  margin: 7px 0 0;
  padding-left: 18px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.45;
}
.product-contents li + li { margin-top: 2px; }
.product-note {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #8a315d;
  background: #fff0f8;
  font-size: 11.5px;
  font-weight: 700;
}
.product-buy {
  min-width: 92px;
  display: grid;
  justify-items: end;
  gap: 9px;
}
.product-buy .price { font-size: 22px; white-space: nowrap; }
.product-buy .price-unknown { font-size: 12px; max-width: 90px; white-space: normal; text-align: right; }
.add-btn.disabled { opacity:.35; cursor:not-allowed; background:var(--gray); }

@media (max-width: 820px) {
  .product-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .category-visuals { gap: 10px; margin-bottom: 20px; }
  .category-visual-card { height: 145px; border-radius: 18px; }
  .category-visual-placeholder span { font-size: 40px; }
  .category-visual-placeholder strong { font-size: 13px; }
  .category-visual-placeholder small { font-size: 9px; }

  .compact-product-card {
    grid-template-columns: 54px minmax(0,1fr) auto;
    gap: 10px;
    min-height: 92px;
    padding: 11px;
  }
  .product-icon-wrap { width:54px; height:54px; border-radius:15px; }
  .product-icon-emoji { font-size: 28px; }
  .compact-product-body h4 { font-size: 16px; }
  .compact-product-body .product-description { font-size: 11.5px; }
  .product-contents { font-size: 11px; padding-left: 15px; }
  .product-buy { min-width: 72px; gap:7px; }
  .product-buy .price { font-size: 18px; }
  .add-btn { width: 40px; height:40px; border-radius:12px; }
}

@media (max-width: 360px) {
  .compact-product-card { grid-template-columns: 48px minmax(0,1fr) 62px; gap:8px; }
  .product-icon-wrap { width:48px; height:48px; }
  .compact-product-body h4 { font-size: 15px; }
  .product-buy { min-width: 62px; }
  .product-buy .price { font-size: 16px; }
}
/* Garde toujours la navigation visible */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-category-bar-wrap {
  position: sticky;
  top: 76px;
  z-index: 99;
}

/* Quand JS descend vers les produits,
   ne pas cacher le début derrière les barres */
#menu {
  scroll-margin-top: 190px;
}

@media (max-width: 620px) {
  .top-category-bar-wrap {
    top: 68px;
  }

  #menu {
    scroll-margin-top: 135px;
  }
}

/* Emojis légers dans le panier */
.cart-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-emoji {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #f5d9e9;
  border-radius: 11px;
  background: #fff0f8;
  font-size: 22px;
  line-height: 1;
}
.menu-section {
  padding-top: 35px;
}
.product-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: max-content;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -4px;
}

@media (max-width: 620px) {
  .product-icon-emoji {
    font-size: 23px;
    letter-spacing: -3px;
  }
}