/* ============================================================
   PROCHES V2 · Lot C. Vue principale poudre, fiches Amalfi,
   synastrie lilas #C7CCD2, cartes rayon 22.
   ============================================================ */
#e-proches.pv2-actif > :not(#proches-v2) { display: none !important; }
#e-proches.pv2-actif { padding: 0 !important; background: #D8DADC; }
body:has(#e-proches.actif.pv2-actif) header { display: none !important; }
/* le bandeau v1 « Tu consultes le… » recouvrirait l'en-tête : le
   rappel du jour consulté vit sur Aujourd'hui et Moi, pas ici */
body:has(#e-proches.actif.pv2-actif) #bandeau-date { display: none !important; }
body:has(#e-proches.actif.pv2-actif),
html:has(#e-proches.actif.pv2-actif) { background: #D8DADC; }
#e-proches.pv2-actif { min-height: var(--pv2-vh, 100dvh); }

#proches-v2 {
  display: flex;
  flex-direction: column;
  height: calc(var(--pv2-vh, 100dvh) - var(--pv2-barre, 135px));
  background: #D8DADC;
  color: #191135;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  padding: calc(env(safe-area-inset-top, 14px) + 50px) 20px 14px; /* Marine 10/09 : au niveau des titres d'Aujourd'hui */
  gap: 14px;
  box-sizing: border-box;
}
.pv2-entete { display: flex; align-items: center; justify-content: space-between; flex: none; }
.pv2-mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.pv2-mono-d { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.pv2-h34 {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 34px;
  line-height: 0.95;
}
.pv2-contenu { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.pv2-carte {
  border-radius: 22px;
  background: #C7CCD2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  cursor: pointer;
}
.pv2-carte-haut { display: flex; align-items: center; gap: 12px; }
.pv2-pastille {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #D8DADC;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}
.pv2-nom { font-size: 20px; font-weight: 600; }
/* le triptyque sous le prénom (Marine 16/09) : mêmes proportions que les
   cartes du jour (13px, glyphes texte) */
.pv2-signes-l { display: block; font-size: 13px; margin-top: 2px; white-space: nowrap; }
.pv2-lien-pilule { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #191135; color: #D8DADC; }
.pv2-p15 { margin: 0; font-size: 15px; line-height: 1.45; }
.pv2-chevron { font-size: 22px; flex: none; margin-left: auto; }
.pv2-bouton {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #052B61;
  color: #D8DADC;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.pv2-bouton.creux { background: none; border: 1.5px solid #191135; color: #191135; }

/* les surcouches pleine page (fiche, synastrie, fiche d'un lien) */
.pv2-pleine {
  position: fixed;
  inset: 0;
  z-index: 5; /* SOUS la barre d'onglets : elle reste vivante (retour Marine 10/09) */
  padding-bottom: calc(var(--pv2-barre, 135px) + 14px) !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(env(safe-area-inset-top, 14px) + 6px) 20px 14px;
  overflow-y: auto;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: #191135;
}
.pv2-pleine .pv2-retour { border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #191135; text-align: left; }
.pv2-carte-poudre { border-radius: 22px; background: #D8DADC; padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.pv2-t17 { margin: 0; font-size: 17px; line-height: 1.5; }
.pv2-rang-lien { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(25, 17, 53, 0.16); cursor: pointer; }
.pv2-rang-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv2-rang-titre { font-size: 17px; font-weight: 600; }
.pv2-etiquette { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(25, 17, 53, 0.12); flex: none; }
.pv2-marge { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(25, 17, 53, 0.7); }
.pv2-bloc { display: flex; flex-direction: column; gap: 8px; flex: none; }
.pv2-intertitre { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #052B61; }

/* ============================================================
   LE RÉSEAU (lot C 08-13) : pleine page poudre AVEC la barre
   d'onglets (l'écran fait partie d'e-proches, maquette 08)
   ============================================================ */
.pv2-pleine.pv2-avec-barre { z-index: 5; padding-bottom: calc(var(--pv2-barre, 135px) + 14px); }
.pv2-rang-ami { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(25, 17, 53, 0.16); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-family: inherit; color: inherit; min-height: 44px; }
.pv2-pastille-s { width: 40px; height: 40px; border-radius: 999px; background: #C7CCD2; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.pv2-ami-pseudo { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(25, 17, 53, 0.65); }
.pv2-ami-signes { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; }
.pv2-etat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(25, 17, 53, 0.12); flex: none; }
.pv2-etat.plein { background: #191135; color: #D8DADC; }
.pv2-bouton-mini { border: 1.5px solid #191135; background: none; color: #191135; border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; min-height: 36px; }
.pv2-note { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(25, 17, 53, 0.7); }
/* la capture du panneau v1 (Nous) : invisible le temps de la lecture */
body.pv2-capture #panneau { visibility: hidden !important; transition: none !important; }

/* ============================================================
   NOUS · le thème de la relation (06-07, nuit Bosphorus) :
   slider horizontal, compteur, retour, pied renvoi
   ============================================================ */
.pn2-nuit {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #D8DADC;
  color: #191135;
  display: flex;
  flex-direction: column;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
.pn2-tete { display: flex; align-items: center; justify-content: space-between; flex: none; padding: calc(env(safe-area-inset-top, 14px) + 22px) 24px 8px; }
.pn2-retour { border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; color: #191135; }
.pn2-compteur { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #191135; }
.pn2-defile { display: flex; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pn2-defile::-webkit-scrollbar { display: none; }
.pn2-page { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 18px; padding: 10px 24px 8px; overflow-y: auto; box-sizing: border-box; }
.pn2-h40 { margin: 0; font-family: 'Bricolage Grotesque', system-ui; font-weight: 800; letter-spacing: -0.03em; font-size: 40px; line-height: 0.95; color: #191135; }
.pn2-ligne-pos { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(25, 17, 53, 0.16); }
.pn2-role { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #052B61; width: 110px; flex: none; }
.pn2-signe { font-size: 17px; font-weight: 600; }
.pn2-p16 { margin: 0; font-size: 16px; line-height: 1.5; }
.pn2-p15 { margin: 0; font-size: 15px; line-height: 1.55; color: #191135; }
.pn2-dim { color: rgba(25, 17, 53, 0.72); }
.pn2-mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #191135; }
.pn2-rang-pt { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(25, 17, 53, 0.16); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; font-family: inherit; font-size: 16px; min-height: 44px; }
.pn2-rang-pt .g { width: 26px; flex: none; font-size: 17px; }
.pn2-rang-pt .ch { margin-left: auto; font-size: 20px; color: rgba(25, 17, 53, 0.5); }
.pn2-glyphe34 { font-size: 34px; line-height: 1; }
.pn2-sous { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(25, 17, 53, 0.72); }
.pn2-intertitre { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #052B61; }
.pn2-pied { flex: none; padding: 8px 24px calc(env(safe-area-inset-bottom, 14px) + 10px); }
.pn2-renvoi { border: 0; background: none; padding: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: 'Hanken Grotesk', system-ui; font-size: 17px; font-weight: 700; color: #052B61; }
.pn2-renvoi u { text-underline-offset: 4px; }

/* la synastrie par patterns (Marine 10/09) : huit familles à la place
   des 20 liens, carte poudre, intensité en langage courant */
.pv2-pattern-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv2-pattern-titre { font-family: 'Bricolage Grotesque', system-ui; font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -0.02em; color: #191135; }
.pv2-t15 { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(25, 17, 53, 0.85); }
.pv2-carte-poudre .pv2-rang-lien:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.pv2-cta-orbe { background: none; border: 0; padding: 2px 0 0; font-family: inherit; font-size: 15px; font-weight: 600; color: #052B61; text-align: left; cursor: pointer; width: max-content; }

/* Nous en CLAIR (Marine 12/09) : titres marine comme le reste */
.pn2-h40 { color: #052B61; }

/* audit 15/09 : zero air fantome sous l'ecran plein cadre (meme regle
   que l'ecran du jour) : le body ne defile pas sous Mes Proches */
body:has(#e-proches.actif.pv2-actif) main { padding-bottom: 0; }
