/* ── Sélecteur de ligne « Et toi, ta ligne ? » ──────────────
   Composant partagé entre la home (/) et les pages par ligne (/:slug).
   Dépend des tokens :root de la page hôte (--bg, --ink, --border, etc.)  */

.pick-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.pick-title {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
}
.pick-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ── Groupes réseau (label + pastilles) ── */
.pick-group {
  margin-top: 18px;
}
.pick-group-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}

/* ── Grille de pastilles ── */
.pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.pick-dot {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 37px;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, border-color .15s;
  user-select: none;
}
.pick-dot:hover { transform: scale(1.06); }
.pick-dot[data-tc="dark"] { color: #1A1916; }
.pick-dot.sel {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
}

/* ── Panneau inline (design carte) ── */
.pick-panel {
  margin-top: 20px;
  background: var(--bg, #F7F4EF);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .32s ease, opacity .24s ease;
}
.pick-panel.open {
  max-height: 900px;
  opacity: 1;
}
.pp-band {
  height: 10px;
  width: 100%;
}
.pick-panel-inner { padding: 24px 28px 28px; }

.pp-close {
  float: right;
  width: 26px;
  height: 26px;
  background: var(--bg2, #EDEAE4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  margin: -4px -4px 0 8px;
}
.pp-close:hover { background: var(--bg3, #E2DED7); }
.pp-close svg {
  width: 12px;
  height: 12px;
  stroke: var(--sub);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Contenu carte centré ── */
.pp-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.pp-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -.03em;
  line-height: 1;
  margin-top: 8px;
}
.pp-round[data-tc="dark"] { color: #1A1916; }
.pp-date {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted, #555);
  letter-spacing: .06em;
  margin-top: 4px;
}
.pp-accroche {
  font-weight: 400;
  font-size: 18px;
  color: var(--sub, #333);
  margin-top: 8px;
}
.pp-montant {
  font-weight: 900;
  font-size: clamp(44px, 12vw, 72px);
  letter-spacing: -.03em;
  color: var(--ink, #000);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 8px 0;
}
.pp-montant-zero {
  font-weight: 400;
  font-size: 20px;
  color: var(--muted, #555);
}
.pp-filet {
  width: 60%;
  max-width: 320px;
  height: 2px;
  background: var(--muted, #555);
  opacity: .3;
  margin: 4px auto;
}
.pp-smic {
  font-weight: 700;
  font-size: 17px;
  color: #C0392B;
  margin-top: 4px;
}
.pp-rank {
  font-size: 15px;
  color: var(--muted, #555);
  margin-top: 4px;
}
.pp-signature {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted, #555);
  margin-top: 16px;
  letter-spacing: .04em;
}

/* Toggle période */
.pp-toggle {
  display: flex;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.pp-toggle button {
  flex: 1;
  border: none;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 4px;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.pp-toggle button:last-child { border-right: none; }
.pp-toggle button.on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

/* Boutons bas */
.pp-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.pp-actions button,
.pp-actions a {
  flex: 1;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.pp-actions button:hover,
.pp-actions a:hover { background: var(--bg2, #EDEAE4); }
.pp-btn-share {
  border: none !important;
  color: #fff;
}

/* ── Menu de partage ── */
.pp-share-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 10;
  min-width: 220px;
  animation: ppMenuIn .15s ease;
}
@keyframes ppMenuIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pp-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .12s;
}
.pp-share-item:hover {
  background: var(--bg2, #EDEAE4);
}
.pp-share-item svg {
  flex: none;
  fill: currentColor;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pick-section { padding: 20px 16px; }
  .pick-title { font-size: 19px; }
  .pp-amount { font-size: clamp(40px, 12vw, 60px); }
}
/* Écrans étroits : colonnes à la largeur de leur chiffre, l'espace restant réparti entre elles —
   un grand chiffre prend la place qu'un petit laisse, au lieu de déborder d'un tiers fixe. */
@media (max-width: 600px) {
  .pp-stat-val { font-size: clamp(15px, 4.2vw, 20px); }
}
