/* Cœur de Bobine, piste « herbier »
   Reprend l'identité Instagram : couronne de feuillage, écriture
   manuscrite, lin et sauge, une touche de rose fleur. Le motif fort est la
   liane feuillue : sous le titre, dans la jauge, en pied de page. */

@font-face {
  font-family: "Parisienne";
  src: url("/static/fonts/parisienne.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lin: #f7f3ec;
  --papier: #ffffff;
  --encre: #36443a;
  --encre-douce: #66736a;
  --sauge: #56705c;
  --sauge-fonce: #3f5645;
  --sauge-clair: #e4eadf;
  --feuille: #9bb09a;
  --fleur: #e7b8c0;
  --fleur-fonce: #a2475f;
  --trait: #e4ddd0;
  --champ: #d8d0c1;

  --script: "Parisienne", "Segoe Script", cursive;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.4rem);
  --step-script: clamp(2.9rem, 2rem + 4.2vw, 5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
  --radius-card: 16px;
  --radius-photo: 12px;
  --radius-control: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lin);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sauge);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--fleur-fonce);
}

:focus-visible {
  outline: 3px solid var(--fleur);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Pages de texte et formulaires : colonne étroite, alignée à gauche comme
   l'en-tête et les grilles. */
.narrow > * {
  max-width: var(--measure);
}
.narrow > .cart {
  max-width: 44rem;
}
.narrow > .cart__summary {
  max-width: 26rem;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--papier);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.test-banner {
  margin: 0;
  padding: 0.4rem var(--gutter);
  background: var(--sauge-fonce);
  color: #fff;
  font-size: var(--step--1);
  text-align: center;
}

/* --- Motifs ---------------------------------------------------------- */

.sprig {
  width: 2.5rem;
  height: auto;
}
.garland {
  width: 20rem;
  max-width: 100%;
  height: auto;
}

/* --- En-tête --------------------------------------------------------- */

/* Mobile : logo et panier sur la première ligne, menu dessous.
   Large : logo, menu, panier sur une ligne. */
.site-header {
  padding-block: 0.9rem;
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cart"
    "nav nav";
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--encre);
  text-decoration: none;
}
.brand .sprig {
  width: 1.7rem;
  flex: none;
}
.brand__name {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
  padding-top: 0.15em;
}
.site-cart {
  grid-area: cart;
}
.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a,
.site-cart {
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-cart:hover,
.site-cart[aria-current="page"] {
  border-bottom-color: var(--fleur);
  color: var(--encre);
}
@media (min-width: 46rem) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cart";
  }
  .site-nav {
    justify-content: flex-end;
  }
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding-inline: 0.35em;
  margin-left: 0.15em;
  border-radius: 999px;
  background: var(--fleur-fonce);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
}

/* --- Pied de page ---------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding-block: 0 2.5rem;
  color: var(--encre-douce);
  font-size: var(--step--1);
}
.site-footer__vine {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer__name {
  font-family: var(--script);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--encre);
  margin-bottom: 0.2rem;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-footer a {
  color: var(--encre-douce);
}

/* --- Boutons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--sauge);
  border-radius: var(--radius-control);
  background: var(--sauge);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--sauge-fonce);
  border-color: var(--sauge-fonce);
  color: #fff;
}
.button--ghost {
  background: transparent;
  color: var(--sauge-fonce);
}
.button--ghost:hover {
  background: var(--sauge-clair);
  color: var(--sauge-fonce);
  border-color: var(--sauge);
}
.button--wide {
  width: 100%;
}
.link-button {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: var(--step--1);
  color: var(--encre-douce);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-button:hover {
  color: var(--fleur-fonce);
}
.section__more {
  display: inline-block;
  font-weight: 700;
}

/* --- Messages ---------------------------------------------------------- */

.flash,
.notice {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  background: var(--papier);
  border-radius: var(--radius-control);
  box-shadow: inset 4px 0 0 var(--fleur);
}
.notice--error {
  box-shadow: inset 4px 0 0 var(--fleur-fonce);
}
.empty {
  color: var(--encre-douce);
  max-width: var(--measure);
}

/* --- Boutique Cœur de Bobine : son logo et son slogan --------------------- */

.shop-head {
  margin-bottom: 1.5rem;
}
.shop-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--encre);
  text-decoration: none;
}
.shop-head__logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  flex: none;
}
.shop-head__name {
  display: block;
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1.1;
}
.shop-head__tagline {
  display: block;
  color: var(--encre-douce);
}
.shop-head--full {
  padding: 1.25rem 1.5rem;
  background: var(--papier);
  border-radius: var(--radius-card);
}
.shop-head--full .shop-head__logo {
  width: 5.5rem;
  height: 5.5rem;
}
.shop-head--full .shop-head__name {
  font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem);
}
.shop-head--full .shop-head__tagline {
  font-size: var(--step-1);
}
.shop-head__intro {
  max-width: var(--measure);
  color: var(--encre-douce);
  margin: 1rem 0 0.5rem;
}

/* --- Accueil ----------------------------------------------------------- */

.pair {
  display: grid;
  gap: 1rem;
}
@media (min-width: 46rem) {
  .pair {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
.panel {
  padding: 1.4rem 1.5rem;
  background: var(--papier);
  border-radius: var(--radius-card);
}
.panel__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}
.panel p {
  color: var(--encre-douce);
}
.section__foot {
  margin-top: 1.5rem;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 0.5rem;
}
.hero__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--step-script);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 20ch;
  margin-bottom: 0.1em;
}
.hero__vine .garland {
  width: 22rem;
}
.hero__intro {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--encre-douce);
  max-width: 34rem;
  margin-top: 0.75rem;
}
.hero__asso {
  font-weight: 700;
  color: var(--sauge-fonce);
  margin-top: -0.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

/* --- Jauge : une couronne de feuilles, comme le logo -------------------- */

.gauge {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--papier);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 1.75rem;
}
.gauge__wreath {
  position: relative;
  width: 13rem;
  aspect-ratio: 1;
}
.wreath {
  width: 100%;
  height: 100%;
  display: block;
}
.gauge__center {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  color: var(--encre-douce);
  font-size: var(--step--1);
}
.gauge__center strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--encre);
}
.gauge__label {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}
.gauge__hint {
  color: var(--encre-douce);
  margin-bottom: 0.6rem;
}
@media (max-width: 34rem) {
  .gauge {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
/* Les feuilles déjà « poussées » apparaissent une à une, depuis leur base. */
@media (prefers-reduced-motion: no-preference) {
  .wreath .grow {
    transform-box: fill-box;
    transform-origin: 0% 50%;
    animation: pousse 0.45s cubic-bezier(0.3, 1.4, 0.6, 1) both;
    animation-delay: calc(0.3s + var(--i) * 70ms);
  }
}
@keyframes pousse {
  from {
    transform: scale(0);
    opacity: 0;
  }
}
.gauge--compact {
  margin: 1.5rem 0 2rem;
  max-width: none;
}
.gauge--compact .gauge__wreath {
  width: 10rem;
}
.gauge--compact .gauge__center strong {
  font-size: 1.25rem;
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding-block: clamp(2rem, 5vw, 3.5rem) 0;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}
.section__title {
  font-size: var(--step-2);
  margin: 0;
}
.page-title {
  font-size: var(--step-3);
}
.page-title--script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 2rem + 2.8vw, 3.8rem);
  letter-spacing: 0;
  line-height: 1.15;
}
.lead {
  font-size: var(--step-1);
  color: var(--encre-douce);
  max-width: var(--measure);
}

/* --- Grille de créations ------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 64rem) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  background: var(--papier);
  border-radius: var(--radius-card);
  padding: 0.5rem 0.5rem 0.85rem;
}
.card__link {
  color: var(--encre);
  text-decoration: none;
  display: block;
}
.card__photo {
  aspect-ratio: 4 / 5;
  background: var(--lin);
  border-radius: var(--radius-photo);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__nophoto .sprig {
  width: 3rem;
}
.card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.7rem 0.4rem 0.15rem;
  line-height: 1.25;
}
.card__link:hover .card__name {
  text-decoration: underline;
  text-decoration-color: var(--fleur);
  text-underline-offset: 0.2em;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  margin: 0 0.4rem;
}
.card__price {
  font-weight: 800;
}
.card__stock {
  font-size: var(--step--1);
  color: var(--fleur-fonce);
}
.card--sold .card__photo img {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.card--sold .card__stock {
  color: var(--encre-douce);
}

/* --- Les deux ateliers -------------------------------------------------- */

.makers {
  display: grid;
  gap: 1rem;
}
@media (min-width: 44rem) {
  .makers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
.maker {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: var(--papier);
  border-radius: var(--radius-card);
  color: var(--encre);
  text-decoration: none;
}
.maker .sprig {
  grid-row: 1 / span 3;
  width: 2.6rem;
}
.maker__name {
  font-size: var(--step-2);
  margin-bottom: 0.15rem;
}
.maker__tagline {
  color: var(--encre-douce);
  margin-bottom: 0.4rem;
}
.maker__link {
  font-weight: 700;
  color: var(--sauge);
}
.maker:hover .maker__link {
  color: var(--fleur-fonce);
}

.story-teaser p {
  max-width: var(--measure);
  font-size: var(--step-1);
  color: var(--encre-douce);
}
.story-teaser .section__title {
  margin-bottom: 0.6rem;
}

/* --- Filtres ------------------------------------------------------------ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filters a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  background: var(--papier);
}
.filters a[aria-current="page"] {
  background: var(--sauge);
  color: #fff;
}

/* --- Fiche création ----------------------------------------------------- */

.product {
  display: grid;
  gap: 1.5rem;
  padding-top: 1rem;
}
@media (min-width: 56rem) {
  .product {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
  .product__gallery {
    position: sticky;
    top: 1rem;
  }
}
.product__main {
  margin: 0;
  background: var(--papier);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.product__main img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.product__nophoto {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--papier);
  border-radius: var(--radius-card);
}
.product__nophoto .sprig {
  width: 4.5rem;
}
.product__thumbs {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-photo);
  background: var(--papier);
  cursor: pointer;
  width: 4.5rem;
  aspect-ratio: 1;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb[aria-pressed="true"] {
  border-color: var(--sauge);
}
.product__category {
  margin-bottom: 0.25rem;
}
.product__category a {
  color: var(--encre-douce);
  font-weight: 600;
}
.product__name {
  font-size: var(--step-3);
  margin-bottom: 0.4rem;
}
.product__price {
  font-size: var(--step-2);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.product__stock {
  color: var(--fleur-fonce);
  font-weight: 600;
}
.product__cause {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-control);
  background: var(--sauge-clair);
  color: var(--sauge-fonce);
}
.buy {
  margin-block: 1.5rem;
  display: grid;
  gap: 1rem;
}
.details {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.details div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
}
.details dt {
  color: var(--encre-douce);
}
.details dd {
  margin: 0;
}

.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 1.6em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose li::marker {
  color: var(--feuille);
}
.prose--story {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- Formulaires -------------------------------------------------------- */

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.field__label {
  font-weight: 700;
}
.field__optional {
  font-weight: 400;
  color: var(--encre-douce);
}
.field__hint {
  color: var(--encre-douce);
  font-size: var(--step--1);
  margin: 0 0 0.5rem;
}
.field__error {
  color: var(--fleur-fonce);
  font-size: var(--step--1);
  font-weight: 700;
}
.field--inline {
  grid-template-columns: auto 6rem;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}
.field--short {
  max-width: 11rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  color: var(--encre);
  background: #fff;
  border: 1.5px solid var(--champ);
  border-radius: 10px;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--sauge);
  outline: 3px solid var(--sauge-clair);
  outline-offset: 0;
}
[aria-invalid="true"] {
  border-color: var(--fleur-fonce);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.row {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 34rem) {
  .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .row .field--short {
    max-width: none;
  }
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0 0.5rem;
}
.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--sauge);
  flex: none;
}

.block {
  background: var(--papier);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1.25rem;
}
.block__title {
  font-size: var(--step-1);
  font-weight: 800;
  margin: 0 0 0.85rem;
  padding: 0;
}
/* Une légende de fieldset chevauche par défaut le bord haut du bloc. */
legend.block__title {
  float: left;
  width: 100%;
}
legend.block__title + * {
  clear: both;
}
.block fieldset + fieldset {
  margin-top: 1rem;
}

.choices {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--champ);
  border-radius: var(--radius-control);
  cursor: pointer;
  background: #fff;
}
.choice:has(input:checked) {
  border-color: var(--sauge);
  background: #fbfcfa;
  box-shadow: inset 0 0 0 1px var(--sauge);
}
.choice input {
  accent-color: var(--sauge);
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex: none;
}
.choice__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  flex: 1;
}
.choice__title {
  font-weight: 700;
}
.choice__hint {
  grid-column: 1 / -1;
  color: var(--encre-douce);
  font-size: var(--step--1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--champ);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.chip input:checked + span {
  background: var(--sauge);
  border-color: var(--sauge);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--fleur);
  outline-offset: 2px;
}
.chip--big span {
  font-size: var(--step-1);
  padding: 0.6rem 1.3rem;
  font-weight: 800;
}

/* --- Commande ------------------------------------------------------------ */

.checkout__form {
  display: grid;
  gap: 0 2rem;
}
@media (min-width: 60rem) {
  .checkout__form {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
  }
  .checkout__form > fieldset {
    grid-column: 1;
  }
  .checkout__form > .summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 1rem;
  }
}
.summary {
  padding-bottom: 1.25rem;
}
.summary__lines {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.summary__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
}
.summary__lines small {
  display: block;
  color: var(--encre-douce);
  font-size: var(--step--1);
}
.summary__note {
  font-size: var(--step--1);
  color: var(--encre-douce);
  margin-top: 0.85rem;
}
.sum {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.3rem;
}
.sum--muted {
  color: var(--encre-douce);
}
.sum--total {
  border-top: 1.5px solid var(--trait);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-size: var(--step-1);
}
.sum--total strong {
  font-weight: 800;
}

/* --- Panier ---------------------------------------------------------------- */

.cart {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.cart__line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  grid-template-areas:
    "photo info total"
    "photo qty remove";
  gap: 0.35rem 1rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--papier);
  border-radius: var(--radius-card);
  align-items: start;
}
.cart__photo {
  grid-area: photo;
  aspect-ratio: 1;
  background: var(--lin);
  border-radius: var(--radius-photo);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cart__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart__info {
  grid-area: info;
}
.cart__name {
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--encre);
  text-decoration: none;
}
.cart__perso,
.cart__unit {
  margin: 0.15rem 0 0;
  font-size: var(--step--1);
  color: var(--encre-douce);
}
.cart__qty {
  grid-area: qty;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart__qty select {
  width: 4.5rem;
  min-height: 2.4rem;
  padding-block: 0.3rem;
}
.cart__total {
  grid-area: total;
  font-weight: 800;
  margin: 0;
  text-align: right;
}
.cart__remove {
  grid-area: remove;
  text-align: right;
}
.cart__summary {
  display: grid;
  gap: 0.25rem;
}
.cart__summary .button {
  margin-block: 1rem 0.5rem;
}
.js [data-noscript] {
  display: none;
}

/* --- Confirmation ----------------------------------------------------------- */

.thanks {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.status-line strong {
  color: var(--sauge);
}
.order-status .summary {
  margin-block: 1.5rem;
}

.fake-ha {
  background: #e9e7f5;
}
