/* Charte Str'eat (simulation) pour la feuille réseau sb — BO › Personnalisation CSS.
   Médias à déposer d'abord dans l'onglet Médias : moon_get-Heavy.otf, logo-negatif.png. */

/* 1. Mise en page desktop générique (POC) */
@media (min-width: 1024px) {

  /* --- Accueil (choix du mode de vente) ------------------------------------
     .service-select est un enfant flex de .content-wrapper : sans largeur, il
     se rétracte sur son contenu malgré son max-width de 1024 px. */
  .service-select {
    width: 100%;
    max-width: 1200px;
  }

  .service-select-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
  }

  /* Bandeau sans visuel fourni : aplat de marque (un visuel posé en style
     inline par le front reste prioritaire). */
  .service-select-banner {
    background-image: var(--banner-shop-select-image);
    height: 360px;
  }

  .service-select-title {
    font-size: 32px;
  }

  /* --- Fiche produit : visuel à gauche, options à droite -------------------- */
  .product-detail {
    padding-left: 24px;
    padding-right: 24px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
    padding-bottom: 140px;
  }

  /* Colonne de gauche figée pendant le défilement des options : visuel ET
     titre. Les deux occupent la même zone (lignes 1 à 2) pour que le sticky
     vaille sur toute la hauteur de la fiche ; le titre est décalé sous le
     visuel par sa marge, et figé juste en dessous. */
  .product-detail > .product-detail-hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 24px;
    height: 400px;
    margin-top: 24px;
    border-radius: var(--card-radius-lg);
    background: #fff;
    overflow: hidden;
  }

  .product-detail > .product-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-detail > .product-detail-info {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 424px;              /* 24 + 400 : sous le visuel figé */
    margin-top: 424px;
    text-align: left;
    padding: 24px 0 0;
  }

  .product-detail-info .product-detail-name,
  .product-detail-info .product-detail-price,
  .product-detail-info .product-detail-description {
    text-align: left;
  }

  .product-detail-info .product-detail-name {
    font-size: 32px;
  }

  .product-detail > :not(.product-detail-hero):not(.product-detail-info):not(.product-detail-footer) {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-left: 0;
    padding-right: 0;
  }

  /* Échelle des saveurs : à la souris, l'aimantation des cartes (scroll-snap)
     fait sauter le curseur de cran en cran au lieu de suivre le glissé.
     .flavor-scale en tête : FlavorScale.css est chargée après cette feuille. */
  .flavor-scale .flavor-scale-scroller {
    scroll-snap-type: none;
  }

  /* Barre d'ajout : alignée sur la largeur du contenu, étapes à gauche et
     bouton à droite, au lieu d'une pastille de 448 px au milieu. */
  .product-detail-footer-inner {
    max-width: 1248px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
    background: #fff;
    backdrop-filter: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .product-detail-footer-inner > :first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .product-detail-footer-inner > :last-child {
    flex: 0 0 380px;
  }
}

/* 2. Charte */
/* ==========================================================================
   Simulation « DA Str'eat Burger » — devapp uniquement, hors git, hors base.
   Reprend streat-burger.fr : marine #192E51, jaune #F5B130, police Moon Get,
   boutons pilule bordés marine avec ombre décalée pleine, titres « sticker »
   légèrement inclinés, pied de page marine en biais.
   Tout est sous html : ?da=off pour comparer, ?da=on pour revenir.
   ========================================================================== */

@font-face {
  font-family: "Moon Get";
  src: url("/resources/sb/media/moon_get-Heavy.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

html {
  --sb-marine: #192E51;
  --sb-jaune: #F5B130;
  --sb-jaune-clair: #FFF4DC;
  --sb-gris-photo: #F3F5F9;
  --sb-titre: "Moon Get", "Montserrat", Helvetica, Arial, sans-serif;
  --sb-ombre: 4px 4px 0 0 var(--sb-marine);

  --main-color: var(--sb-jaune);
  --secondary-color: var(--sb-marine);
  --text-primary: var(--sb-marine);
  --text-secondary: #5A6884;
  --text-accent: var(--sb-jaune);
  --bg-page: #fff;
  --main-bg-color: #fff;
  --border-subtle: rgba(25, 46, 81, .12);
  --border-divider: rgba(25, 46, 81, .08);
  --border-ui: rgba(25, 46, 81, .18);
  --card-radius: 16px;
  --btn-dark-bg: var(--sb-marine);
  --btn-dark-text: #fff;
  --header-bg: var(--sb-marine);
}
html body { background: #fff; color: var(--sb-marine); }

/* --- Boutons : pilule jaune, bord marine, ombre décalée -------------------- */
html .cart-bar-btn,
html .product-detail-add-btn,
html .service-select-cta-btn,
html .loyalty-card-cta,
html .apercu-commander {
  background: var(--sb-jaune);
  color: var(--sb-marine);
  border: 2px solid var(--sb-marine);
  border-radius: 999px;
  box-shadow: var(--sb-ombre);
  font-family: var(--sb-titre);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .12s, box-shadow .12s;
}
html .cart-bar-btn *,
html .product-detail-add-btn * { color: var(--sb-marine); }
html .cart-bar-btn:active,
html .product-detail-add-btn:active,
html .service-select-cta-btn:active,
html .loyalty-card-cta:active,
html .apercu-commander:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--sb-marine);
  opacity: 1;
}
@media (hover: hover) {
  html .cart-bar-btn:hover,
  html .service-select-cta-btn:hover:not(:disabled),
  html .apercu-commander:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--sb-marine); }
}
html .service-select-cta-btn:disabled { background: #E6E9EF; color: #9AA4B5; border-color: #C9D0DB; box-shadow: none; }
html .product-detail-add-btn.disabled { opacity: .55; box-shadow: none; }

/* « + » et quantités : rond jaune bordé marine */
html .product-card-add-btn,
html .quantity-selector-btn.plus {
  background: var(--sb-jaune);
  color: var(--sb-marine);
  border: 2px solid var(--sb-marine);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--sb-marine);
  font-weight: 800;
  transition: transform .1s, box-shadow .1s;
}
html .product-card-add-btn:active,
html .quantity-selector-btn.plus:active { transform: translate(2px, 2px); box-shadow: none; opacity: 1; }
html .quantity-selector-btn.minus { border-radius: 999px; background: #fff; color: var(--sb-marine); border: 2px solid rgba(25, 46, 81, .25); }
html .quantity-selector-btn.minus.disabled { border-color: rgba(25, 46, 81, .08); color: #C9D0DB; }
html .quantity-selector-value { font-family: var(--sb-titre); color: var(--sb-marine); }

/* --- En-tête marine, logo négatif ------------------------------------------ */
html .header { background: var(--sb-marine); border-bottom: 0; }
html .header .logo,
html .footer-logo { content: url("/resources/sb/media/logo-negatif.png"); }
html .header-shop-name { color: #fff; font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
html .header-service-mobile,
html .header-service-name { color: var(--sb-jaune); font-family: var(--sb-titre); font-weight: 400; }
html .header-nav-icon,
html .header-nav-link { color: #fff; }
html .header .tz-back-btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
html .header .tz-back-btn svg { color: #fff; }

/* --- Catégories ------------------------------------------------------------ */
html .category-nav { background: #fff; border-bottom: 2px solid var(--sb-marine); }
html .category-nav-item {
  font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
  color: var(--sb-marine); opacity: .55;
  margin: 10px 3px; padding: 8px 14px 6px; border: 2px solid transparent; border-radius: 999px;
  transition: opacity .15s, background .15s, box-shadow .15s;
}
html .category-nav-item:hover { opacity: 1; }
html .category-nav-item.active {
  opacity: 1; color: var(--sb-marine); background: var(--sb-jaune);
  border-color: var(--sb-marine); box-shadow: 2px 2px 0 0 var(--sb-marine);
}

/* Titre de catégorie = étiquette inclinée, comme « NEW » / « QUOI DE NEUF » sur le site */
html .category-title {
  width: fit-content; max-width: calc(100% - 32px);
  margin: 32px auto 18px; padding: 9px 20px 5px;
  font-family: var(--sb-titre); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--sb-marine); background: #fff;
  border: 3px solid var(--sb-marine); border-radius: 41px; box-shadow: 3px 3px 0 0 var(--sb-marine);
  transform: rotate(-2deg);
}
html .category-title:nth-of-type(even) { transform: rotate(1.5deg); background: var(--sb-jaune); }
@media (min-width: 1024px) {
  html .category-title { margin-left: 4px; }
}

/* --- Cartes produit : bord jaune, photo sur fond clair ---------------------- */
html .product-card {
  border: 2px solid var(--sb-jaune);
  border-radius: 16px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
@media (hover: hover) {
  html .product-card:hover { border-color: var(--sb-marine); box-shadow: 5px 5px 0 0 var(--sb-marine) !important; transform: translate(-2px, -2px); }
}
html .product-card.selected { border-color: var(--sb-marine); box-shadow: 3px 3px 0 0 var(--sb-marine) !important; }
html .product-card-image { background-color: var(--sb-gris-photo); }
html .product-card-name { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; color: var(--sb-marine); }
html .product-card-description { color: #5A6884; }
html .product-card-price { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); }

/* --- Fidélité : bloc marine ------------------------------------------------- */
html .loyalty-card { background: var(--sb-marine); border: 0; border-radius: 20px; }
html .loyalty-card-title { color: #fff; font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
html .loyalty-card-desc { color: rgba(255, 255, 255, .78); }
html .loyalty-card-icon { background: var(--sb-jaune); color: var(--sb-marine); }
html .loyalty-card-icon svg { color: var(--sb-marine); }
html .loyalty-card-cta { box-shadow: 4px 4px 0 0 #fff; border-color: #fff; }
html .loyalty-card-login { color: var(--sb-jaune); }

/* --- Barre panier ------------------------------------------------------------ */
html .cart-bar-label,
html .cart-bar-amount { color: var(--sb-marine); font-family: var(--sb-titre); font-weight: 400; }
html .cart-bar-badge { background: var(--sb-marine); color: #fff; border-radius: 999px; }
html .cart-bar-pastille { border-color: var(--sb-marine); }
html .cart-bar-pastille b { background: var(--sb-marine); color: #fff; }

/* --- Fiche produit ----------------------------------------------------------- */
html .product-detail-hero { background-color: var(--sb-gris-photo); }
html .product-detail-name { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); }
html .product-detail-price { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); }
html .section-title { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--sb-marine); }
html .section-badge.required { background: var(--sb-jaune); color: var(--sb-marine); border-radius: 999px; font-weight: 700; }
html .section-item-image { background-color: var(--sb-gris-photo); border-radius: 14px; }
html .section-item-name { color: var(--sb-marine); }
html .section-item-price { color: #5A6884; }
html .section-radio-dot.selected { border-color: var(--sb-marine); background: var(--sb-jaune); }
html .product-detail-footer-inner { background: rgba(255, 255, 255, .92); border-top: 2px solid var(--sb-marine); }
html .atelier .at-titre { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); text-transform: uppercase; }

/* --- Choix du restaurant et du mode de vente --------------------------------- */
html .shop-select-card { border: 2px solid var(--sb-jaune); border-radius: 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
@media (hover: hover) {
  html .shop-select-card:hover { border-color: var(--sb-marine); box-shadow: 5px 5px 0 0 var(--sb-marine); transform: translate(-2px, -2px); }
}
html .shop-select-card-name { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); }
html .shop-select-card-arrow { color: var(--sb-marine); }
html .service-select-btn { border-color: rgba(25, 46, 81, .18); }
html .service-select-btn.selected { border-color: var(--sb-marine); background: var(--sb-jaune-clair); box-shadow: 3px 3px 0 0 var(--sb-marine); }
html .service-select-btn-label { color: var(--sb-marine); }

/* --- Aperçu panier desktop --------------------------------------------------- */
html .apercu-panier { border: 2px solid var(--sb-marine); border-radius: 18px; box-shadow: 5px 5px 0 0 var(--sb-marine); }
html .apercu-tete { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); }
html .apercu-jauge-remplie { background: var(--sb-jaune); }
html .apercu-total { font-family: var(--sb-titre); font-weight: 400; }

/* --- Pied de page marine en biais -------------------------------------------- */
html .footer {
  background: var(--sb-marine); color: #fff; border-top: 0;
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
  padding-top: 36px;
}
html .footer * { color: rgba(255, 255, 255, .85); }
html .footer-brand-name { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-jaune); text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html .category-title { transform: none; }
}

/* --- Compléments : textes internes des boutons, accueil, aperçu ------------- */
html .cart-bar-btn *,
html .product-detail-add-btn *,
html .apercu-commander *,
html .service-select-cta-btn * { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); }
html .apercu-tete h2 { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); }
html .apercu-tete p b { color: var(--sb-jaune); }

html .shop-select-search h2,
html .shop-select-results-title {
  font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--sb-marine);
}
html .shop-select-search-btn {
  background: var(--sb-jaune); color: var(--sb-marine);
  border: 2px solid var(--sb-marine); border-radius: 999px; box-shadow: var(--sb-ombre);
  font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase;
  transition: transform .12s, box-shadow .12s;
}
html .shop-select-search-btn:active { transform: translate(4px, 4px); box-shadow: none; }
html .address-input-row input { border-radius: 999px; border: 2px solid rgba(25, 46, 81, .2); color: var(--sb-marine); }
html .shop-select-service-btn { border-radius: 999px; border: 2px solid rgba(25, 46, 81, .2); color: var(--sb-marine); font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; }
html .shop-select-service-btn.active { background: var(--sb-jaune); border-color: var(--sb-marine); box-shadow: 2px 2px 0 0 var(--sb-marine); }
html .shop-select-card-arrow { background: var(--sb-jaune); border: 2px solid var(--sb-marine); box-shadow: 2px 2px 0 0 var(--sb-marine); }
html .product-detail-add-btn { gap: 12px; font-size: 16px; white-space: nowrap; padding: 0 20px; }
html .product-detail-price { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); font-size: 20px; }
/* Cagnotte : montant lisible sur le fond marine */
html .loyalty-card-amount,
html .loyalty-card-amount-value { color: var(--sb-jaune); font-family: var(--sb-titre); font-weight: 400; }
html .loyalty-card-amount-unit { color: #fff; }

/* --- Mode app : barre retour / titre / fermer sur l'en-tête marine ---------- */
html .header.mobile-app .header-mobile-top-navbar { padding: 2px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
html .header-mobile-top-navbar-button {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  color: var(--sb-marine); background: var(--sb-jaune); border: 2px solid #fff; box-shadow: 2px 2px 0 0 #fff;
}
html .header-mobile-top-navbar-button:active { transform: translate(2px, 2px); box-shadow: none; }
html .header-mobile-top-navbar-title { color: #fff; font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; }

/* --- Parcours app : splash, bienvenue, accueil, barre d'onglets -------------- */
html .app-splash { --app-splash-bg: var(--sb-marine); }
html .app-splash-logo { content: url("/resources/sb/media/logo-negatif.png"); }
html .app-splash-onde { --app-accent: var(--sb-jaune); }
html .app-splash-barre { background: rgba(255, 255, 255, .15); }

html .app-volet-titre { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); font-size: 30px; letter-spacing: .01em; }
html .app-volet-titre span { color: var(--sb-jaune); text-shadow: 2px 2px 0 var(--sb-marine); font-family: var(--sb-titre) !important; font-weight: 400 !important; }
html .app-volet-texte { color: #5A6884; }
html .app-vis-disque { opacity: 1; background: var(--sb-jaune); border: 3px solid var(--sb-marine); box-shadow: 6px 6px 0 0 var(--sb-marine); }
html .app-vis-sticker { border-color: #fff; box-shadow: 3px 3px 0 0 var(--sb-marine), 0 0 0 2px var(--sb-marine); }
html .app-carte { background: var(--sb-marine); border: 3px solid var(--sb-marine); box-shadow: 6px 6px 0 0 var(--sb-jaune); }
html .app-carte-montant { font-family: var(--sb-titre); font-weight: 400; }
html .app-notif { border: 2px solid var(--sb-marine); box-shadow: 5px 5px 0 0 var(--sb-marine); }
html .app-cta {
  background: var(--sb-jaune); color: var(--sb-marine); border: 2px solid var(--sb-marine); box-shadow: var(--sb-ombre);
  font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; transition: transform .12s, box-shadow .12s;
}
html .app-cta:active { transform: translate(4px, 4px); box-shadow: none; }
html .app-lien { color: var(--sb-marine); }
html .app-points button.on { background: var(--sb-marine); }
html .app-bienvenue-passer { color: var(--sb-marine); }

/* Accueil app */
html .home-wrapper { background: #fff; }
html .home-logo-wrapper { background: var(--sb-marine); padding: 14px 0 22px; border-radius: 0 0 28px 28px; }
html .home-logo { content: url("/resources/sb/media/logo-negatif.png"); }
html .home-account .account-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--sb-jaune); border: 2px solid #fff; border-radius: 999px; box-shadow: 2px 2px 0 0 #fff; font-weight: 700; }
html .home-account .account-link, html .home-account .account-link * { color: var(--sb-marine); }
html .home-pdv-default { background: #fff; border: 2px solid var(--sb-marine); border-radius: 999px; box-shadow: 3px 3px 0 0 var(--sb-marine); overflow: hidden; min-height: 52px; }
html .home-pdv-data { color: var(--sb-marine); padding-left: 16px; }
html .home-pdv-actions { align-self: stretch; width: 56px; background: var(--sb-jaune); border-left: 2px solid var(--sb-marine); }
html .home-pdv-actions a { color: var(--sb-marine); }
html .home-pdv-title { color: var(--sb-marine); font-weight: 700; }
html .bloc-commander-salut h2 { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); font-size: 26px; }
html .bloc-commander-carte { background: var(--sb-marine); border: 2px solid var(--sb-marine); box-shadow: 5px 5px 0 0 var(--sb-jaune); border-radius: 20px; }
html .bloc-commander-carte b { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; font-size: 22px; color: #fff; }
html .bloc-commander-carte small { color: var(--sb-jaune); opacity: 1; font-weight: 700; }
html .bloc-commander-carte .fleche { background: var(--sb-jaune); color: var(--sb-marine); border: 2px solid #fff; }
html .home-permissions-wrapper { border: 2px solid var(--sb-marine); box-shadow: 5px 5px 0 0 var(--sb-marine); }

/* Barre d'onglets */
html .bottom-nav-bar { background: var(--sb-marine); border-top: 0; height: 62px; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 18px rgba(25, 46, 81, .18); }
html .nav-item { color: rgba(255, 255, 255, .7); }
html .nav-item:hover, html .nav-item.active { color: var(--sb-jaune); }
html .nav-label { font-weight: 700; }
html .nav-item-main { background: var(--sb-jaune); color: var(--sb-marine); border: 2px solid #fff; border-radius: 22px; box-shadow: 3px 3px 0 0 #fff; }
html .nav-item-main .nav-label { font-family: var(--sb-titre); font-weight: 400; text-transform: uppercase; color: var(--sb-marine); font-size: 10px; letter-spacing: .02em; }
html .nav-item-main .st0, html .nav-item-main .st1 { stroke: var(--sb-marine); }

/* Stories */
html .bloc-stories-titre { font-family: var(--sb-titre); font-weight: 400; color: var(--sb-marine); }
html .bloc-story-anneau { background: var(--sb-jaune); padding: 3px; box-shadow: 2px 2px 0 0 var(--sb-marine); border: 2px solid var(--sb-marine); }
html .bloc-story-anneau.vue { background: #E6E9EF; box-shadow: none; border-color: #C9D0DB; }
html .bloc-story-legende { color: var(--sb-marine); }
