/* Grigne & Levain : boulangerie au levain (fictive), Croix-Rousse, Lyon. La farine du plan de travail, le
   papier kraft des sacs à pain et son tampon d'encre, le brun d'une croûte bien cuite, le bleu ardoise de la
   devanture. Young Serif pour les titres et les prix, DM Sans pour le texte. Le moment fort : la règle du four,
   de l'aube au soir, avec l'heure qu'il est et la prochaine fournée qui chauffe. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #f3f1ec;
  --fond-2: #ebe7df;
  --papier: #fcfbf8;
  --ligne: #dcd6cb;
  --encre: #241d17;
  --gris: #5f574f;
  --kraft: #c79e6c;
  --kraft-clair: #d9b98f;
  --sur-kraft: #1f1812;
  --sur-kraft-2: #3d3025;
  --croute: #8a5428;
  --bleu: #273856;
  --bleu-texte: #2d4672;
  --sur-bleu: #f6f3ee;
  --four: #e9802f;
  --alerte: #a8361c;
  --ok: #2f6a42;
  --ph-fond: #e2dccf;
  --ombre: 0 24px 50px -32px rgba(40, 26, 12, 0.5);

  --kit-bg: var(--fond);
  --kit-surface: var(--papier);
  --kit-fg: var(--encre);
  --kit-line: var(--ligne);
  --kit-accent: var(--bleu-texte);
  --muted: var(--gris);
  --kit-radius: 10px;
  --champ-rayon: 8px;
  --pastille-choisie: var(--bleu);
  --pastille-choisie-texte: var(--sur-bleu);
  --erreur: var(--alerte);

  --titre: "Young Serif", Georgia, serif;
  --texte: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gouttiere: clamp(16px, 4vw, 44px);
}
:root[data-theme="dark"] {
  --fond: #17130f;
  --fond-2: #1d1814;
  --papier: #221c17;
  --ligne: #3a322a;
  --encre: #f1eadf;
  --gris: #b4aa9c;
  --bleu: #a9bce4;
  --bleu-texte: #b6c7ec;
  --sur-bleu: #141b2b;
  --alerte: #f2a088;
  --ok: #8fd4a6;
  --ph-fond: #2a231c;
  --ombre: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --pastille-choisie: #a9bce4;
  --pastille-choisie-texte: #141b2b;
  --erreur-sombre: var(--alerte);
}

/* ---------- Base ---------- */
html {
  font-family: var(--texte);
  font-size: 16.5px;
  line-height: 1.6;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
}
h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.4rem);
}
h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}
h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  line-height: 1.2;
}
[tabindex="-1"]:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--bleu-texte);
  outline-offset: 3px;
}
.conteneur {
  width: min(1240px, 100% - 2 * var(--gouttiere));
  margin-inline: auto;
}
.lien {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: var(--bleu-texte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.lien:hover {
  text-decoration-thickness: 2px;
}
.aide {
  color: var(--gris);
  font-size: 0.9rem;
}
.section__tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 56px;
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.section__tete p {
  color: var(--gris);
  max-width: 50ch;
}
@media (max-width: 820px) {
  .section__tete {
    grid-template-columns: 1fr;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn--plein {
  background: var(--bleu);
  color: var(--sur-bleu);
}
.btn--plein:hover {
  background: var(--encre);
  color: var(--fond);
}
.btn--ligne {
  border-color: color-mix(in srgb, var(--encre) 40%, transparent);
  color: var(--encre);
  background: transparent;
}
.btn--ligne:hover {
  border-color: var(--encre);
}
.btn--large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.02rem;
}
.btn--bloc {
  width: 100%;
}
.btn--petit {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.is-attente {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-attente::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--sur-bleu);
  border-right-color: transparent;
  animation: tourne 0.8s linear infinite;
}
@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--fond) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.entete.is-compact {
  border-bottom-color: var(--ligne);
}
.entete__in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  transition: min-height 0.3s var(--kit-ease);
}
.entete.is-compact .entete__in {
  min-height: 62px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
}
.marque__signe {
  width: 40px;
  height: 40px;
  flex: none;
}
.marque__pain {
  fill: var(--kraft);
}
.marque__grigne {
  fill: none;
  stroke: var(--croute);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.marque__nom {
  display: grid;
  font-family: var(--titre);
  font-size: 1.45rem;
  line-height: 1;
}
.marque__nom small {
  font-family: var(--texte);
  font-size: 0.68rem;
  font-weight: 550;
  color: var(--gris);
  margin-top: 4px;
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.nav a:hover {
  background: color-mix(in srgb, var(--encre) 7%, transparent);
}
.nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--kraft) 40%, transparent);
}
.entete__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.entete__cta {
  min-height: 42px;
}
.kit-theme {
  border-radius: 999px;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--papier);
  color: var(--encre);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--kit-ease);
}
.menu-ouvert .burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-ouvert .burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.menu-mobile {
  border-top: 1px solid var(--ligne);
  padding: 8px var(--gouttiere) 24px;
}
.menu-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.menu-mobile a {
  display: block;
  padding: 12px 0;
  font-family: var(--titre);
  font-size: 1.6rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ligne);
}
@media (max-width: 1060px) {
  .nav {
    display: none;
  }
  .burger {
    display: grid;
  }
  .entete__actions {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .entete__cta,
  .marque__nom small {
    display: none;
  }
}

/* ---------- Ouverture : la photo et le sac kraft ---------- */
.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: min(760px, calc(100vh - 110px));
}
.ouverture__photo .ph {
  height: 100%;
  min-height: 360px;
}
.ouverture__kraft {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: start;
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 64px);
  background: var(--kraft);
  color: var(--sur-kraft);
  isolation: isolate;
  overflow: hidden;
}
.ouverture__kraft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/img/grain.webp") center / 240px;
  mix-blend-mode: multiply;
  opacity: 0.35;
}
/* Les fibres du papier, très légères. */
.ouverture__kraft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(97deg, transparent 0 7px, rgba(90, 55, 20, 0.05) 7px 8px);
}
.tampon {
  width: clamp(120px, 12vw, 160px);
  rotate: -9deg;
  opacity: 0.88;
  margin-bottom: 6px;
}
.tampon__bord {
  fill: none;
  stroke: var(--sur-kraft);
  stroke-width: 3;
}
.tampon__bord--fin {
  stroke-width: 1.4;
}
.tampon__texte {
  font-family: var(--texte);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--sur-kraft);
}
.tampon__point {
  fill: var(--sur-kraft);
}
.tampon__nom {
  font-family: var(--titre);
  font-size: 27px;
  fill: var(--sur-kraft);
  text-anchor: middle;
}
.tampon__nom--petit {
  font-size: 19px;
}
.motion .tampon {
  animation: tamponner 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s backwards;
}
@keyframes tamponner {
  from {
    opacity: 0;
    scale: 1.5;
  }
}
.ouverture h1 {
  max-width: 13ch;
}
.ouverture__prochaine {
  font-weight: 650;
  font-size: 1.05rem;
  min-height: 1.6em;
  max-width: 40ch;
}
.ouverture__intro {
  color: var(--sur-kraft-2);
  max-width: 40ch;
}
.ouverture__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 4px;
}
.ouverture .btn--plein {
  background: var(--sur-kraft);
  color: #f6efe3;
}
.ouverture .btn--plein:hover {
  background: #3b2a1b;
}
.ouverture .lien {
  color: var(--sur-kraft);
}
@media (max-width: 900px) {
  .ouverture {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ouverture__photo .ph {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }
}

/* ---------- Le four ---------- */
.four {
  padding: clamp(60px, 8vw, 110px) 0;
}
.regle {
  position: relative;
  margin: 46px 0 64px;
}
.regle__piste {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--ligne);
}
.regle__ouvert {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kraft) 45%, var(--ligne));
}
.regle__chaleur {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--four) 15%, transparent), color-mix(in srgb, var(--four) 70%, transparent));
}
.motion .regle__chaleur {
  animation: chauffer 1.6s var(--kit-ease) 0.2s backwards;
  transform-origin: left;
}
@keyframes chauffer {
  from {
    transform: scaleX(0);
  }
}
.regle__fournee {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--papier);
  border: 3px solid var(--croute);
}
.regle__fournee span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  font-weight: 650;
  font-size: 0.86rem;
  white-space: nowrap;
}
.regle__fournee.is-passee {
  background: var(--croute);
}
.regle__fournee.is-suivante {
  background: var(--four);
  border-color: var(--four);
}
.motion .regle__fournee.is-suivante {
  animation: rougeoyer 2.4s ease-in-out infinite;
}
@keyframes rougeoyer {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--four) 55%, transparent);
  }
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--four) 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .regle__fournee.is-suivante {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--four) 30%, transparent);
  }
}
.regle__maintenant {
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 2px;
  translate: -50% 0;
  background: var(--encre);
}
.regle__maintenant span {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}
.regle__heures {
  position: relative;
  height: 20px;
  margin-top: 30px;
}
.regle__heure {
  position: absolute;
  translate: -50% 0;
  font-size: 0.76rem;
  color: var(--gris);
}
@media (max-width: 640px) {
  .regle__fournee span {
    font-size: 0.72rem;
  }
  .regle__fournee:nth-child(even of .regle__fournee) span {
    bottom: auto;
    top: calc(100% + 8px);
  }
}
.fournees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.fournee {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}
.fournee__heure {
  font-family: var(--titre);
  font-size: 1.9rem;
  line-height: 1;
}
.fournee__statut {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--gris);
  margin-bottom: 6px;
}
.fournee h3 {
  font-size: 1.05rem;
}
.fournee__produits {
  font-size: 0.9rem;
  color: var(--gris);
}
.fournee.is-suivante {
  background: var(--kraft);
  border-color: var(--kraft);
  color: var(--sur-kraft);
}
.fournee.is-suivante .fournee__statut,
.fournee.is-suivante .fournee__produits {
  color: var(--sur-kraft-2);
}
.fournee.is-passee {
  background: transparent;
}
.fournee.is-passee .fournee__heure {
  color: var(--gris);
}
@media (max-width: 1000px) {
  .fournees {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .fournees {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Vitrine et produits ---------- */
.vitrine {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--fond-2);
}
.produits {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px 18px;
}
.produit__lien {
  display: grid;
  gap: 8px;
  text-decoration: none;
}
.produit .ph {
  aspect-ratio: 1;
  border-radius: 14px;
}
.produit__lien .ph img {
  transition: transform 0.6s var(--kit-ease);
}
.produit__lien:hover .ph img.is-loaded {
  transform: scale(1.04);
}
.produit__nom {
  font-family: var(--titre);
  font-size: 1.12rem;
  line-height: 1.2;
}
.produit__bas {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.produit__prix {
  font-family: var(--titre);
  font-size: 1.15rem;
}
.produit__reste {
  font-size: 0.84rem;
  color: var(--gris);
}
.produit__reste.is-rare {
  color: var(--alerte);
  font-weight: 650;
}
.produit__reste.is-epuise {
  color: var(--gris);
  text-decoration: line-through;
}
.jauge {
  height: 4px;
  border-radius: 4px;
  background: var(--ligne);
  overflow: hidden;
}
.jauge span {
  display: block;
  height: 100%;
  background: var(--croute);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--kit-ease);
}
@media (max-width: 520px) {
  .produits {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
}

/* ---------- Notre façon ---------- */
.facon {
  padding: clamp(60px, 8vw, 110px) 0;
}
.facon__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.facon__photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items: end;
}
.facon__photos .ph {
  border-radius: 14px;
}
.facon__petrir {
  aspect-ratio: 4 / 5;
}
.facon__panieres {
  aspect-ratio: 1;
}
.facon__liste {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: f;
  display: grid;
  gap: 22px;
}
.facon__liste li {
  counter-increment: f;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
}
.facon__liste li::before {
  content: counter(f);
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--kraft);
  color: var(--sur-kraft);
  font-family: var(--titre);
  font-size: 1.2rem;
}
.facon__liste p {
  color: var(--gris);
}
@media (max-width: 860px) {
  .facon__in {
    grid-template-columns: 1fr;
  }
}

/* ---------- La boutique ---------- */
.boutique {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--fond-2);
  scroll-margin-top: 60px;
}
.boutique__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.boutique__texte {
  display: grid;
  gap: 18px;
}
.boutique__texte > p:first-of-type {
  color: var(--gris);
  max-width: 46ch;
}
.horaires {
  border-collapse: collapse;
  width: 100%;
  max-width: 440px;
}
.horaires th,
.horaires td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ligne);
  font-weight: 500;
}
.horaires td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.horaires tr.is-aujourdhui th,
.horaires tr.is-aujourdhui td {
  background: color-mix(in srgb, var(--kraft) 38%, transparent);
  font-weight: 700;
}
.boutique__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.boutique__photos .ph {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}
.boutique__photos .ph:last-child {
  margin-top: 40px;
}
@media (max-width: 860px) {
  .boutique__in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Commander ---------- */
.commande,
.mes-commandes {
  padding: clamp(28px, 4vw, 56px) 0 clamp(70px, 9vw, 120px);
}
.commande__tete {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.commande__tete p {
  color: var(--gris);
  max-width: 60ch;
}
.commande__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.commande__catalogue {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.commande__jour {
  font-size: 0.9rem;
  color: var(--gris);
}
.produits--commande {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin: 0;
}
.produit--commande {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--papier);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ligne);
}
.produit--commande .ph {
  border-radius: 0;
}
.produit__corps {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px 16px;
}
.produit__detail {
  font-size: 0.88rem;
  color: var(--gris);
}
.produit__allergenes {
  font-size: 0.78rem;
  color: var(--gris);
}
.produit__action {
  margin-top: 6px;
  min-height: 42px;
}
.quantite {
  border-color: var(--ligne);
}
@media (max-width: 960px) {
  .commande__in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .produits--commande {
    grid-template-columns: 1fr 1fr;
  }
  .produit__detail,
  .produit__allergenes {
    display: none;
  }
}
/* Le sac kraft */
.sac {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 26px 22px 22px;
  border-radius: 4px 4px 16px 16px;
  background: var(--kraft);
  color: var(--sur-kraft);
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--ombre);
}
.sac::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/img/grain.webp") center / 240px;
  mix-blend-mode: multiply;
  opacity: 0.32;
}
/* Le bord dentelé du haut du sac. */
.sac::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle at 6px -2px, var(--fond) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x;
}
.sac h2 {
  font-size: 1.9rem;
}
.sac .aide,
.sac .champ small {
  color: var(--sur-kraft-2);
}
.sac .champ input,
.sac .champ select {
  background: #fbf7f0;
  color: #1f1812;
  border-color: rgba(31, 24, 18, 0.25);
}
.sac .pastille span {
  background: rgba(251, 247, 240, 0.55);
  border-color: rgba(31, 24, 18, 0.25);
  color: #1f1812;
}
.sac .pastille input:checked + span {
  background: var(--sur-kraft);
  border-color: var(--sur-kraft);
  color: #f6efe3;
}
.sac .pastille input:focus-visible + span,
.sac :focus-visible {
  outline-color: var(--sur-kraft);
}
.sac .pastilles legend {
  font-size: 0.92rem;
}
.sac .champ .erreur {
  color: #7a1d08;
}
.sac .btn--plein {
  background: var(--sur-kraft);
  color: #f6efe3;
}
.sac .btn--plein:hover {
  background: #3b2a1b;
}
.sac .btn--ligne {
  border-color: rgba(31, 24, 18, 0.5);
  color: var(--sur-kraft);
}
.sac .lien {
  color: var(--sur-kraft);
}
.sac__vide {
  color: var(--sur-kraft-2);
}
.sac__lignes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sac__lignes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.sac__lignes li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sac__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1.5px dashed currentColor;
}
.sac__total strong {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 1.9rem;
}
.sac__form {
  display: grid;
  gap: 14px;
}
.case {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.94rem;
}
.case input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--sur-kraft);
  flex: none;
}
.champs-deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 960px) {
  .sac {
    position: static;
  }
}
@media (max-width: 400px) {
  .champs-deux {
    grid-template-columns: 1fr;
  }
}
.ticket {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.ticket__label {
  font-weight: 650;
}
.ticket__numero {
  font-family: var(--titre);
  font-size: 5.4rem;
  line-height: 0.9;
  padding: 10px 26px 16px;
  border: 3px solid var(--sur-kraft);
  border-radius: 50%;
  rotate: -5deg;
}
.motion .ticket__numero {
  animation: tamponner 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.15s backwards;
}
.ticket__quand {
  font-weight: 650;
  font-size: 1.05rem;
}
.ticket .sac__lignes,
.ticket .sac__total {
  width: 100%;
}
.ticket__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* ---------- Mes commandes ---------- */
.commande-carte {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: var(--papier);
  border: 1px solid var(--ligne);
}
.commande-carte + .commande-carte {
  margin-top: 18px;
}
.commande-carte__tete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
}
.commande-carte h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}
.numero {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--kraft);
  color: var(--sur-kraft);
  font-family: var(--titre);
  font-size: 2rem;
  line-height: 0.9;
}
.numero small {
  font-family: var(--texte);
  font-size: 0.7rem;
  font-weight: 700;
}
.statut {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--fond-2);
}
.statut--1 {
  background: color-mix(in srgb, var(--four) 25%, var(--papier));
}
.statut--2 {
  background: color-mix(in srgb, var(--ok) 18%, var(--papier));
  color: var(--ok);
}
.statut--annulee {
  color: var(--alerte);
}
.commande-carte.is-prete {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px var(--ok);
}
.commande-carte.is-annulee .numero,
.commande-carte.is-retiree .numero {
  background: var(--fond-2);
  color: var(--gris);
}
@media (max-width: 620px) {
  .commande-carte__tete {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .statut {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.avancement {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.avancement li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 4px solid var(--ligne);
  font-size: 0.9rem;
  color: var(--gris);
}
.avancement li.is-fait {
  border-top-color: var(--croute);
  color: var(--encre);
}
.avancement li.is-actuel {
  border-top-color: var(--four);
  color: var(--encre);
  font-weight: 700;
}
.avancement small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gris);
}
.commande-carte .sac__total {
  border-top-color: var(--ligne);
}
.hebdo {
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--kraft) 30%, transparent);
  font-size: 0.94rem;
}
.commande-carte__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.vide {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 560px;
}
.vide p {
  color: var(--gris);
}
.vide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Fenêtres ---------- */
dialog.kit-dialog.fenetre {
  background: var(--papier);
  border-radius: 18px;
  max-width: min(520px, calc(100vw - 32px));
}
.fenetre__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 6px;
}
.fenetre__tete h2 {
  font-size: 1.7rem;
}
.fenetre__fermer {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
}
.fenetre__corps {
  padding: 12px 24px 24px;
  display: grid;
  gap: 16px;
}
.fenetre__corps > p {
  color: var(--gris);
}
.fenetre__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 480px) {
  .fenetre__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Page introuvable ---------- */
.egare {
  padding: clamp(40px, 7vw, 100px) 0 clamp(70px, 9vw, 120px);
}
.egare__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.egare__texte {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.egare__texte p {
  color: var(--gris);
  max-width: 42ch;
}
.egare__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.egare__photo .ph {
  aspect-ratio: 3 / 2;
  border-radius: 16px;
}
@media (max-width: 860px) {
  .egare__in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pied ---------- */
.pied {
  padding: clamp(52px, 7vw, 84px) 0 26px;
  border-top: 1px solid var(--ligne);
}
.pied__in {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}
.pied__marque {
  display: grid;
  gap: 14px;
  align-content: start;
}
.pied p {
  color: var(--gris);
  margin-bottom: 8px;
}
.pied__titre {
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.pied__liens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pied__liens a {
  color: var(--gris);
}
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--ligne);
  font-size: 0.9rem;
}
.pied__bas p {
  margin: 0;
}
.pied .signe-binuxlabs {
  opacity: 1;
  color: var(--gris);
}
@media (max-width: 900px) {
  .pied__in {
    grid-template-columns: 1fr 1fr;
  }
  .pied__marque {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .pied__in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .entete .marque__nom {
    font-size: 1.22rem;
    white-space: nowrap;
  }
}
