/* Zachpro - styles de l'onglet Connexion (memes couleurs que le site) */
#zp-compte { position: relative; margin-left: 10px; display: flex; align-items: center; }
.zp-btn {
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.zp-connexion { background: var(--blue, #0071e3); color: #fff !important; }
.zp-connexion:hover { filter: brightness(1.08); }
.zp-moi { background: var(--alt, #f5f5f7); color: var(--ink, #1d1d1f); padding: 4px 12px 4px 4px; }
.zp-moi svg { width: 10px; height: 6px; }
.zp-avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--bronze, #9a6a3a); color: #fff; font-size: 12px; font-weight: 600;
}
.zp-dd {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 1000;
  background: var(--card, #fff); border: 1px solid var(--line, #d2d2d7); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 6px; display: flex; flex-direction: column;
}
.zp-dd[hidden] { display: none; }
.zp-dd-tete { font-size: 12px; color: var(--muted, #6e6e73); padding: 8px 10px 6px; }
.zp-dd a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--ink, #1d1d1f); font-size: 14px; text-decoration: none; }
.zp-dd a small { display: block; font-size: 12px; color: var(--muted, #6e6e73); margin-top: 2px; }
.zp-dd a:hover { background: var(--alt, #f5f5f7); }
.zp-dd .zp-deco { color: var(--neg, #c3352b); border-top: 1px solid var(--line, #d2d2d7); border-radius: 0 0 9px 9px; margin-top: 4px; }

/* Petit cadenas sur les liens vers une section a laquelle on n'a pas acces */
a.zp-cadenas::after { content: " 🔒"; font-size: 11px; }
/* Pendant la verification (une fraction de seconde) : fond flou, sans carte */
#zp-verrou.zp-attente .zp-carte { visibility: hidden; }

/* Menu mobile */
#zp-compte-mobile { border-bottom: 1px solid var(--line, #d2d2d7); margin-bottom: 6px; padding-bottom: 6px; }
#zp-compte-mobile .zp-m-tete { font-weight: 600; padding: 8px 0; }
#zp-compte-mobile .zp-m-connexion { color: var(--blue, #0071e3); font-weight: 600; }
@media (max-width: 900px) { #zp-compte { display: none; } }

/* Ecran "Reserve aux membres" */
#zp-verrou {
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px;
  background: rgba(245,245,247,.72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
#zp-verrou[hidden] { display: none; }
html.zp-bloque, html.zp-bloque body { overflow: hidden; }
.zp-carte {
  max-width: 420px; width: 100%; text-align: center; background: var(--card, #fff);
  border: 1px solid var(--line, #d2d2d7); border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18); color: var(--ink, #1d1d1f);
}
.zp-carte img { border-radius: 50%; }
.zp-carte h2 { font-size: 22px; margin: 12px 0 8px; letter-spacing: -.01em; }
.zp-carte p { color: var(--muted, #6e6e73); font-size: 15px; margin: 0 0 18px; }
.zp-carte .zp-petit { font-size: 12px; margin: 16px 0 0; }
.zp-actions { display: flex; flex-direction: column; gap: 10px; }
.zp-principal { font: inherit; font-size: 15px; font-weight: 500; border: 0; border-radius: 999px; padding: 11px; background: var(--blue, #0071e3); color: #fff; cursor: pointer; }
.zp-secondaire { font-size: 14px; color: var(--blue, #0071e3); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  #zp-verrou { background: rgba(0,0,0,.6); }
}

/* ---- Correctif barre du haut (iPad a l'horizontale, petits ordis) ----
   Quand le menu ne rentre pas, connexion.js ajoute la classe zp-serre sur <html> :
   on passe alors au menu ☰ du site (comme sur telephone) au lieu d'empiler les boutons.
   Avant ca, il essaie zp-compact (menu un peu plus serre) : suffit sur un ordi. */
html.zp-compact #cmenu .mi > a, html.zp-compact #cmenu .mi > button { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
html.zp-compact .bar .cta-s { padding-left: 11px; padding-right: 11px; }
html.zp-compact #zp-compte { margin-left: 4px; }
html.zp-serre .bar .menu, html.zp-serre .bar .cta-s { display: none; }
html.zp-serre .burger { display: block; }
html.zp-serre .bar .seg { margin-left: auto; }
html.zp-serre .mpanel.open { display: block; position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 53px) 0 0 0; z-index: 39; background: var(--bg); overflow: auto; padding: 12px max(22px, env(safe-area-inset-left, 0px)) 40px; }
html.zp-serre .mpanel.open .zp-mlink { display: block; }
html.zp-serre .mpanel details { border-bottom: 1px solid var(--line); }
html.zp-serre .mpanel summary, html.zp-serre .mpanel > a { display: block; padding: 14px 2px; font-size: 20px; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; }
html.zp-serre .mpanel > a { border-bottom: 1px solid var(--line); }
html.zp-serre .mpanel summary::-webkit-details-marker { display: none; }
html.zp-serre .mpanel details a { display: block; padding: 10px 14px; color: var(--ink); font-size: 17px; }
