/* acpwa : bandeaux d'installation et de notifications, guide iPhone. */
.acpwa-bar,
.acpwa-sheet-overlay {
  --acpwa-bg: #FFFDF9;
  --acpwa-text: #2E2A24;
  --acpwa-muted: #7A6F62;
  --acpwa-gold: #C8B89A;
  --acpwa-gold-dk: #6A5530;
  --acpwa-card: #F5F0EB;
}

.acpwa-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100000;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 14px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 14px;
  background: var(--acpwa-bg);
  color: var(--acpwa-text);
  border: 1px solid var(--acpwa-gold);
  border-top: 3px solid var(--acpwa-gold);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(46, 42, 36, .18);
  font-size: 17px;
  line-height: 1.45;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.acpwa-bar.acpwa-in {
  transform: translateY(0);
  opacity: 1;
}
.acpwa-bar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.acpwa-bar-text {
  margin: 0;
  font-size: 17px;
  color: var(--acpwa-text);
}
.acpwa-bar-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.acpwa-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  min-height: 44px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.acpwa-btn-main {
  background: var(--acpwa-gold-dk);
  color: #fff;
}
.acpwa-btn-main:hover,
.acpwa-btn-main:focus-visible {
  background: #574524;
}
.acpwa-btn-ghost {
  background: transparent;
  color: var(--acpwa-muted);
}
.acpwa-btn-ghost:hover {
  color: var(--acpwa-text);
}
.acpwa-btn:focus-visible {
  outline: 2px solid var(--acpwa-gold-dk);
  outline-offset: 2px;
}
.acpwa-btn-block {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* Guide iPhone */
.acpwa-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(46, 42, 36, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.acpwa-sheet-overlay.acpwa-in {
  opacity: 1;
}
.acpwa-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--acpwa-bg);
  color: var(--acpwa-text);
  border-radius: 20px 20px 0 0;
  font-size: 18px;
  line-height: 1.5;
}
.acpwa-sheet-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--acpwa-gold-dk);
  text-transform: none;
  letter-spacing: 0;
}
.acpwa-sheet-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--acpwa-card);
  border-radius: 10px;
  font-size: 17px;
}
.acpwa-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  counter-reset: acpwa;
}
.acpwa-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #E8DFD2;
}
.acpwa-steps li:last-child {
  border-bottom: 0;
}
.acpwa-step-ico {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--acpwa-card);
  color: #0a84ff;
}
.acpwa-step-ico img {
  border-radius: 5px;
}

/* Lien Mon compte */
.acpwa-account-link[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .acpwa-bar {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acpwa-bar,
  .acpwa-sheet-overlay {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Barre d'onglets : uniquement dans l'app installee (classe posee par */
/* le JS en mode standalone). Le site dans le navigateur ne change pas. */
/* ------------------------------------------------------------------ */
.acpwa-tabbar {
  --acpwa-tab-h: 64px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--acpwa-tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: rgba(255, 253, 249, .97);
  border-top: 1px solid #E8DFD2;
  box-shadow: 0 -4px 18px rgba(46, 42, 36, .07);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.acpwa-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #7A6F62 !important;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
}
.acpwa-tab svg {
  display: block;
}
.acpwa-tab-label {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 2px;
}
.acpwa-tab.is-active {
  color: #6A5530 !important;
  font-weight: 700;
}
.acpwa-tab.is-active svg {
  stroke-width: 2.1;
}
.acpwa-tab:active {
  opacity: .6;
}
html.acpwa-has-tabbar body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}
html.acpwa-has-tabbar .acpwa-bar {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media print {
  .acpwa-tabbar { display: none; }
}
/* 5 onglets : libelles un peu plus serres pour que "Mon compte" tienne */
.acpwa-tabbar.acpwa-tabs-5 .acpwa-tab {
  flex: 1 1 auto;
  font-size: 12px;
  letter-spacing: -.1px;
}
.acpwa-tabbar.acpwa-tabs-5 .acpwa-tab-label {
  padding: 0;
}
/* Barre de progression au toucher d'un lien (app installee) */
.acpwa-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 100002;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #C8B89A 30%, #6A5530 50%, #C8B89A 70%, transparent 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: acpwa-progress 1s linear infinite;
}
@keyframes acpwa-progress {
  from { background-position: -50% 0; }
  to { background-position: 150% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .acpwa-progress { animation: none; background: #6A5530; opacity: .6; }
}

/* ------------------------------------------------------------------ */
/* Carrousel « Nouveautes » : accueil de l'app uniquement               */
/* ------------------------------------------------------------------ */
.acpwa-news {
  margin: 6px 16px 22px;
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  color: #2E2A24;
}
.acpwa-news a { text-decoration: none !important; color: inherit; }
.acpwa-news-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.acpwa-news-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  color: #6A5530;
}
.acpwa-news-all { font-size: 17px; font-weight: 600; color: #7B2D3E !important; }
.acpwa-news-row {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  margin: 0 -16px;
  padding: 2px 16px 10px;
  scrollbar-width: none;
}
.acpwa-news-row::-webkit-scrollbar { display: none; }
/* pendant le defilement automatique, pas d'aimantation (sinon le mouvement saccade) */
.acpwa-news-row.acpwa-news-auto { scroll-snap-type: none; }
.acpwa-news-card {
  position: relative;
  flex: 0 0 136px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E8DFD2;
  border-radius: 14px;
  overflow: hidden;
}
.acpwa-news-card img {
  width: 136px;
  height: 108px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.acpwa-news-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #7B2D3E;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.acpwa-news-name {
  font-size: 14px;
  line-height: 1.25;
  padding: 6px 9px 0;
  height: 41px;
  overflow: hidden;
}
.acpwa-news-price {
  font-size: 16px;
  font-weight: 700;
  color: #6A5530;
  padding: 2px 9px 8px;
}
.acpwa-news-more {
  flex: 0 0 112px;
  scroll-snap-align: start;
  border-radius: 14px;
  background: #6A5530;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}
.acpwa-news-more span { font-size: 28px; }

/* ------------------------------------------------------------------ */
/* Barre « Fidelite : N points | Voir les nouveautes » (accueil app)   */
/* ------------------------------------------------------------------ */
.acpwa-fbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #FBF6EC;
  border-bottom: 1px solid #E5D8BC;
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.2;
}
.acpwa-fbar a { text-decoration: none !important; white-space: nowrap; }
.acpwa-fbar-fid { color: #2E2A24 !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acpwa-fbar-k { font-weight: 400; color: #7B2D3E; }
.acpwa-fbar-pts b { font-weight: 400; color: #6A5530; }
.acpwa-fbar-news { margin-left: auto; font-weight: 400; color: #7B2D3E !important; font-size: 16px; }
.acpwa-news { margin-top: 14px; }
@media (max-width: 370px) {
  .acpwa-fbar { font-size: 15px; padding: 8px 10px; }
  .acpwa-fbar-news { font-size: 15px; }
}

/* ------------------------------------------------------------------ */
/* Case « Rester connecte sur cet appareil » (app uniquement)          */
/* ------------------------------------------------------------------ */
.acpwa-remember { margin: 6px 0 16px; }
.acpwa-remember label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.3;
  color: #2E2A24;
  cursor: pointer;
  margin: 0;
}
.acpwa-remember input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
  accent-color: #7B2D3E;
}
.acpwa-remember small { font-size: 15px; color: #7A6F62; }
