/* Page publique des tarifs des tableaux photo (gabarit « tarifs-tableaux ») */
#tarifs {
  --accent: var(--violet, #633689);
  --fond: #fff;
  --bord: var(--bord-clair, #e4dfe9);
}
#tarifs h2 { font-size: 1.3rem; margin: 0 0 1rem; }
#tarifs .num {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 1rem;
  margin-right: .4rem; vertical-align: .1rem;
}
#tarifs .etape { margin-bottom: 2rem; scroll-margin-top: 1rem; }
#tarifs .groupe h3 { font-size: .9rem; font-weight: 600; color: #666; margin: 1rem 0 .4rem; }
#tarifs .boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
#tarifs .boutons button {
  font: inherit; padding: .5rem .8rem; border: 1px solid var(--bord); border-radius: 6px;
  background: #fff; cursor: pointer; min-width: 7.5rem;
}
#tarifs .boutons button:hover { border-color: var(--accent); }
#tarifs .boutons button.actif { background: var(--accent); border-color: var(--accent); color: #fff; }

#tarifs .supports {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
#tarifs .support {
  background: var(--fond); border: 1px solid var(--bord); border-radius: 10px;
  padding: 1rem; display: flex; flex-direction: column;
}
#tarifs .support h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
#tarifs .support .variante { font-weight: 400; color: #555; }
#tarifs .support .desc { font-size: .85rem; color: #555; margin: 0 0 .5rem; }
#tarifs .support .prix { font-size: 1.4rem; margin: .3rem 0 .6rem; color: var(--accent); }
#tarifs .support .prix small { font-size: .8rem; color: #666; }
#tarifs .mention { font-size: .85rem; color: #666; margin-top: 1rem; }
#tarifs .erreur { color: #a00; }
@media (max-width: 520px) {
  #tarifs .boutons button { min-width: calc(50% - .25rem); flex: 1 1 calc(50% - .25rem); }
}

/* Icône « œil » */
#tarifs .support h3 { display: flex; align-items: flex-start; gap: .35rem; }
#tarifs .oeil {
  flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
  padding: 0; border: 1px solid var(--bord); border-radius: 50%; background: #fff;
  color: var(--accent); cursor: pointer; margin-top: -.15rem;
}
#tarifs .oeil:hover, #tarifs .oeil:focus-visible { background: var(--accent); color: #fff; border-color: var(--accent); }
#tarifs .oeil-vide { display: inline-block; width: 1.9rem; }

/* Liste des accroches (sans bouton de sélection) */
#tarifs ul.accroches { list-style: none; padding: 0; margin: auto 0 0; }
#tarifs ul.accroches li {
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center;
  padding: .3rem 0; border-top: 1px solid var(--bord); font-size: .9rem;
}
#tarifs ul.accroches .p { white-space: nowrap; }

/* Visionneuse */
.tarifs-lb {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center;
}
.tarifs-lb[hidden] { display: none; }
.tarifs-lb figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.tarifs-lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; box-shadow: 0 4px 30px rgba(0,0,0,.5); background: #fff; }
.tarifs-lb figcaption { color: #eee; font: .95rem var(--police-texte, system-ui), sans-serif; margin-top: .6rem; text-align: center; }
.tarifs-lb button {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  font-size: 2.2rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%;
}
.tarifs-lb button:hover, .tarifs-lb button:focus-visible { background: rgba(255,255,255,.3); }
.tarifs-lb .lb-fermer { top: 1rem; right: 1rem; }
.tarifs-lb .lb-prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.tarifs-lb .lb-suiv { right: 1rem; top: 50%; transform: translateY(-50%); }
.tarifs-lb .lb-compteur { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #bbb; font: .85rem var(--police-texte, system-ui), sans-serif; }
html.tarifs-lb-ouvert { overflow: hidden; }
@media (max-width: 600px) {
  .tarifs-lb .lb-prec, .tarifs-lb .lb-suiv { top: auto; bottom: .6rem; transform: none; }
}

/* Promotion */
#tarifs .promo {
  background: #b3261e; color: #fff; border-radius: 8px; padding: .7rem 1rem;
  font-size: 1.05rem; margin: 0 0 1.5rem;
}
#tarifs .promo[hidden] { display: none; }
#tarifs .support .prix s, #tarifs ul.accroches s { color: #888; font-weight: 400; font-size: .85em; margin-right: .15rem; }
#tarifs .support .economie { margin: -.4rem 0 .6rem; color: #b3261e; font-size: .9rem; font-weight: 600; }
#tarifs ul.accroches strong { color: #b3261e; }
#tarifs .support .prix s + strong { color: #b3261e; }
#tarifs .support .prix s, #tarifs .support .prix strong { white-space: nowrap; }
#tarifs ul.accroches .p { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
#tarifs ul.accroches .p s { margin: 0; font-size: .8em; }
