/* ===== AtlasPrint Pro – Boutique ===== */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

/* Header : bouton panier */
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px; border-radius: 999px; border: 0;
  background: var(--black); color: var(--white);
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: transform .2s var(--ease);
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--green); color: var(--black); font-size: .78rem; font-weight: 800;
}
.cart-count.is-empty { background: #2b302d; color: #9aa3a0; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav a[aria-current="page"] { color: var(--green-dark); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero boutique */
.shop-hero {
  padding: 56px 0 44px; text-align: center;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(0, 200, 83, .18), transparent 60%),
    linear-gradient(180deg, var(--green-softer), var(--green-soft));
}
.shop-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; max-width: 900px; margin: 0 auto; }
.hl-inline { color: var(--green); }
.shop-hero p { max-width: 640px; margin: 18px auto 0; color: var(--gray); font-size: 1.08rem; font-weight: 500; }
.shop-steps { list-style: none; padding: 0; margin: 30px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.shop-steps li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: .92rem;
}
.shop-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font-weight: 800; font-size: .85rem; }

/* Filtres + grille */
.shop { padding: 44px 0 100px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--black); }
.filter.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 10, 10, .08); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.card__visual {
  display: grid; place-items: center; aspect-ratio: 1 / .9; border: 0; padding: 18px; cursor: pointer;
  background: linear-gradient(160deg, var(--green-softer), var(--green-soft));
}
.card__visual svg { width: 78%; transition: transform .4s var(--ease); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .12)); }
.card:hover .card__visual svg { transform: scale(1.06) rotate(-2deg); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.chip {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.card__dots { display: flex; align-items: center; gap: 5px; }
.card__dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.card__dots em { font-style: normal; font-size: .78rem; color: var(--gray); font-weight: 700; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.card__foot strong { font-size: 1.1rem; font-weight: 800; }
.card__foot .muted { font-size: .86rem; color: var(--gray); font-weight: 700; }

/* Boutons communs */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-softer); font-size: 1rem; font-weight: 800; color: var(--black);
  display: grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--green-soft); }
.icon-btn--sm { width: 30px; height: 30px; font-size: .8rem; flex-shrink: 0; }
.btn--block { width: 100%; }
.btn--wa { background: #25D366; color: var(--white); box-shadow: 0 12px 26px rgba(37, 211, 102, .35); }
.btn--wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn--wa:hover { background: #1fbe5b; }

/* Modal produit */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); opacity: 0; transition: opacity .25s; }
.modal__panel {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--white); box-shadow: var(--shadow); }
.modal__visual {
  display: grid; place-items: center; padding: 36px;
  background: linear-gradient(160deg, var(--green-softer), #d6f6e3);
}
.modal__visual svg { width: 100%; max-width: 380px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .14)); transition: all .3s; }
.modal__body { padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.modal__body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.modal__price { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); }
.modal__desc { color: var(--gray); }
.opt { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.opt legend, .opt__label { font-weight: 800; font-size: .92rem; padding: 0; margin-bottom: 10px; }
.opt legend strong { font-weight: 600; color: var(--gray); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px transparent; transition: box-shadow .2s, transform .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--green); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt {
  min-width: 52px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--white); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s;
}
.pill-opt:hover { border-color: var(--black); }
.pill-opt.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
textarea, .checkout input {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; resize: vertical; background: var(--green-softer);
  transition: border-color .2s, background .2s;
}
textarea:focus, .checkout input:focus { outline: none; border-color: var(--green); background: var(--white); }
.hint { color: var(--gray); font-size: .8rem; }
.modal__actions { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.form-error { color: #c62828; font-weight: 700; font-size: .9rem; min-height: 1.2em; }

/* Quantité */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.qty__btn { width: 42px; height: 100%; min-height: 48px; border: 0; background: var(--white); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty__btn:hover { background: var(--green-softer); }
.qty input { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm .qty__btn { width: 30px; min-height: 30px; font-size: 1rem; }
.qty--sm span { min-width: 26px; text-align: center; font-weight: 800; font-size: .9rem; }

/* Panier (drawer) */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--white);
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .15);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; font-weight: 800; }
.drawer__items { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 76px; height: 76px; border-radius: 16px; background: var(--green-softer); display: grid; place-items: center; }
.line__img svg { width: 84%; }
.line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line__info strong { font-size: .98rem; }
.line__meta { font-size: .82rem; color: var(--gray); font-weight: 600; }
.line__note { font-size: .8rem; color: var(--gray); font-style: italic; overflow-wrap: anywhere; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.line__price { font-weight: 800; font-size: .9rem; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--green-softer); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; font-weight: 700; }
.total strong { font-size: 1.4rem; font-weight: 800; }
.total__note { font-size: .8rem; color: var(--gray); margin: 4px 0 14px; }
.checkout { display: flex; flex-direction: column; gap: 10px; }
.empty { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray); }
.empty strong { color: var(--black); font-size: 1.1rem; }
.empty__icon { font-size: 3rem; margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 12px 12px; border-radius: 16px;
  background: var(--black); color: var(--white); font-weight: 700; font-size: .92rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  transform: translate(-50%, 140%); transition: transform .35s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.is-show { transform: translate(-50%, 0); }
.toast > span { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--black); display: grid; place-items: center; flex-shrink: 0; }
.toast__link { margin-left: 6px; border: 0; background: none; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
  .shop-page .cart-btn { margin-left: auto; }
  .shop-page .burger { margin-left: 0; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 92vh; }
  .modal__visual { padding: 22px; }
  .modal__visual svg { max-width: 220px; }
  .modal__body { padding: 22px 20px 24px; }
}
@media (max-width: 560px) {
  .cart-btn__label { display: none; }
  .cart-btn { padding: 10px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card h3 { font-size: .95rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { padding: 10px 12px; font-size: .84rem; }
  .card__dots span { width: 11px; height: 11px; }
  .shop-steps li { font-size: .84rem; }
  .wa-float { bottom: 16px; }
}

/* ===== Photos réelles ===== */
.card__visual { overflow: hidden; }
.card__visual:has(.ph) { padding: 0; }
.card__visual .ph { transition: transform .6s var(--ease); }
.card:hover .card__visual .ph { transform: scale(1.06); }
.modal__visual.has-photo { padding: 0; }
.modal__visual.has-photo .ph { min-height: 100%; aspect-ratio: 1; }
.line__img { overflow: hidden; }
.line__img .ph { border-radius: 16px; }
@media (max-width: 900px) {
  .modal__visual.has-photo .ph { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Infos livraison boutique */
.shop-info { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .92rem; color: var(--gray); }
