/* ============================================================
   PIF GADGET - page boutique
   Tout ce qui est commun (couleurs, header, boutons, cartes
   produit, pied de page, menu mobile) vient d'assets/site.css.
   ============================================================ */


/* ---------- Dernier numéro ---------- */

.numero {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--ombre);
}

.numero__visuel {
  position: relative;
  justify-self: center;
}

.numero__visuel img {
  width: min(100%, 340px);
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(0,19,38,.10), 0 26px 44px -18px rgba(0,19,38,.55);
  rotate: -2deg;
}

/* pastille « feuilleter » posée sur la couverture */
.numero__feuilleter {
  position: absolute;
  left: 50%;
  bottom: -18px;
  translate: -50% 0;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0,19,38,.6);
}


.numero h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
}

.numero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  font-family: var(--titre);
  font-size: .86rem;
  color: var(--encre-60);
}

.numero__texte {
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--encre-60);
}

/* choix papier / numérique */
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.format {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--bord);
  border-radius: 14px;
  cursor: pointer;
  background: var(--blanc);
}

.format input { accent-color: var(--rouge); width: 18px; height: 18px; margin: 0; }
.format:has(input:checked) { border-color: var(--rouge); background: rgba(206,16,10,.05); }

.format b { font-family: var(--titre); font-weight: 600; display: block; line-height: 1.2; }
.format small { color: var(--encre-60); font-size: .82rem; }

.format .price { margin-left: auto; padding-left: 16px; font-size: 1.05rem; }

.numero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.numero__actions .btn { padding: 11px 20px; font-size: .74rem; }

/* ---------- Abonnements : rappel vers la page dédiée ---------- */

.section--abonnements { padding-top: clamp(30px, 4vw, 56px); }

/* ---------- Catalogue ---------- */


.catalogue__compte {
  margin: 0;
  font-family: var(--titre);
  font-size: .86rem;
  color: var(--encre-60);
}

/* ---------- Réassurance ---------- */

.reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 60px);
}

.reassurance div {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
}

.reassurance p { margin: 0; line-height: 1.3; }
.reassurance svg { width: 38px; height: 38px; color: var(--rouge); }
.reassurance b { font-family: var(--titre); font-weight: 600; display: block; }
.reassurance small { color: var(--encre-60); }

/* ---------- Feuilleteur (aperçu des 3 premières pages) ---------- */

.feuilleteur {
  border: 0;
  padding: 0;
  width: min(92vw, 860px);
  border-radius: 22px;
  background: var(--blanc);
  box-shadow: 0 40px 80px -30px rgba(0,19,38,.6);
}

.feuilleteur::backdrop { background: rgba(0,19,38,.62); }

.feuilleteur__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bord);
}

.feuilleteur__tete h2 { font-size: 1.1rem; font-weight: 600; }
.feuilleteur__tete p { margin: 2px 0 0; font-size: .84rem; color: var(--encre-60); }

.feuilleteur__pages {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #F0F2F5;
}

.feuilleteur__pages::-webkit-scrollbar { display: none; }

.feuilleteur__pages figure {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.feuilleteur__pages img {
  max-height: min(62vh, 640px);
  width: auto;
  box-shadow: 0 16px 40px -18px rgba(0,19,38,.6);
}

.feuilleteur__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--bord);
}

.feuilleteur__compteur { font-family: var(--titre); font-weight: 600; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .numero { grid-template-columns: 1fr; padding-bottom: 28px; }
  .numero__visuel { margin-bottom: 26px; }
  .numero__visuel img { width: min(70%, 280px); margin-inline: auto; }
  .format { width: 100%; }
  .numero__actions .btn { flex: 1; }
  .section__tete { align-items: start; }

  /* réassurance : version compacte, seulement en mobile */
  .reassurance { gap: 10px; }
  .reassurance div { border-radius: 14px; padding: 10px 14px; grid-template-columns: 26px 1fr; gap: 10px; }
  .reassurance svg { width: 26px; height: 26px; }
  .reassurance b { font-size: .9rem; }
  .reassurance small { font-size: .78rem; }
}

@media (max-width: 560px) {
  .offre__prix b { font-size: 2rem; }
}
