/* Rapport pro "Etude" — mise en page editoriale + impression PDF haute fidelite.
   Chrome de marque shaman.today (07/2026) : corps SERIF sur parchemin CONSERVE
   (longue lecture), Quicksand + rose #FF8CA8 + pilule indigo pour l'habillage.
   07/2026 : corps = Lora, WEBFONT chargee par etude.php (avant : Georgia, police
   systeme jamais chargee -> serif aleatoire selon l'appareil, qui jurait avec le
   Quicksand des titres/cartes). Georgia et consorts = simples replis. */

.page-etude {
  --rose: #FF8CA8;        /* decor : filets, barre, surlignages */
  --rose-ink: #b8496b;    /* texte accent lisible (AA) sur parchemin */
  --indigo: #363657;      /* pilules (cf. landing.css .pill-label) */
  background: #f7f4ee;
  color: #221e1a;
  font-family: "Lora", "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.62;
  scroll-behavior: smooth;
}

.etude-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 5rem;
}

/* --- Couverture --- */
.etude-cover {
  text-align: center;
  padding: 2.2rem 0 1.6rem;
  border-bottom: 3px double #c9b88f;
  margin-bottom: 1.6rem;
}
.etude-cover .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .72rem;
  background: var(--indigo);
  color: var(--rose);
  border-radius: 999px;
  padding: .25rem 1rem;
  margin: 0 0 .8rem;
}
.etude-cover h1 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 400;
  font-size: 2.3rem;
  margin: 0;
  color: #3a2c14;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.etude-cover .sub {
  font-family: system-ui, sans-serif;
  font-size: .95rem;
  color: #6a5d44;
  margin: .6rem 0 0;
}

/* --- Barre de statut / progression (temps reel) --- */
.etude-status {
  font-family: system-ui, sans-serif;
  background: #fffdf8;
  border: 1px solid #e2d6ba;
  border-radius: .7rem;
  padding: .9rem 1.1rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 2px 10px #0000000f;
}
.etude-status .bar {
  height: 8px;
  background: #ece2cc;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .55rem;
}
.etude-status #etude-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), #d4577c);
  width: 0;
  transition: width .5s ease;
}
.etude-status.done .bar { display: none; }
.etude-status p { margin: .2rem 0; font-size: .9rem; color: #6a5d44; }
.etude-status .avis-line { font-size: .82rem; color: #8a7c60; }
.etude-status .btn,
.btn-avis,
.etude-avis-cta .btn {
  display: inline-block;
  background: transparent;
  color: var(--rose-ink);
  border: 1px solid var(--rose-ink);
  text-decoration: none;
  padding: .4rem 1rem;
  border-radius: .375rem;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 400;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: background .2s, color .2s;
}
.etude-status .btn:hover, .btn-avis:hover, .etude-avis-cta .btn:hover {
  background: var(--rose-ink);
  color: #fff;
}

/* --- Sommaire --- */
.etude-toc {
  font-family: system-ui, sans-serif;
  font-size: .85rem;
  background: #fffdf8;
  border-left: 4px solid #c9b88f;
  padding: .8rem 1rem;
  margin: 0 0 2rem;
  border-radius: 0 .5rem .5rem 0;
}
.etude-toc a {
  display: block;
  color: #5a4a2a;
  text-decoration: none;
  padding: .18rem 0;
  border-bottom: 1px dotted #e0d4b6;
}
.etude-toc a:last-child { border-bottom: 0; }
.etude-toc a:hover { color: var(--rose-ink); }
.etude-toc a.active, .etude-toc-float a.active {
  color: var(--rose-ink);
  font-weight: 700;
  border-left: 3px solid var(--rose);
  padding-left: .45rem;
}

/* --- Navigation flottante (sommaire + retour en haut) --- */
.etude-fabs {
  position: fixed;
  right: 14px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.etude-fabs.visible { opacity: 1; pointer-events: auto; }
.fab {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: #fffdf8;
  color: var(--rose-ink);
  border: 1px solid var(--rose-ink);
  border-radius: 999px;
  padding: .5rem .95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 48, 30, .18);
}
.fab:hover { background: var(--rose-ink); color: #fff; }
.fab-top { align-self: flex-end; padding: .5rem .7rem; font-size: .95rem; }
.etude-toc-float {
  position: fixed;
  right: 14px; bottom: 108px;
  width: min(320px, 86vw);
  max-height: 62vh;
  overflow-y: auto;
  background: #fffdf8;
  border: 1px solid #e0d4b6;
  border-radius: .6rem;
  box-shadow: 0 10px 30px rgba(60, 48, 30, .25);
  padding: .7rem .9rem;
  font-family: system-ui, sans-serif;
  font-size: .84rem;
  z-index: 59;
}
.etude-toc-float a {
  display: block;
  color: #5a4a2a;
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 1px dotted #e0d4b6;
}
.etude-toc-float a:last-child { border-bottom: 0; }
.etude-toc-float a:hover { color: var(--rose-ink); }

/* --- Chapeaux de parties (fil narratif, injectés au rendu) --- */
.etude-part {
  text-align: center;
  margin: 3rem 0 1.6rem;
  padding-top: 1.4rem;
  border-top: 3px double #c9b88f;
}
.etude-part-num {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--rose-ink);
  margin: 0 0 .25rem;
}
.etude-part-titre {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #3a2c14;
  border: 0;
  margin: 0 0 .5rem;
}
.etude-part-chapeau {
  max-width: 40rem;
  margin: 0 auto;
  font-style: italic;
  color: #6a5d44;
  font-size: .98rem;
}
.etude-toc .toc-part {
  display: block;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rose-ink);
  margin: .5rem 0 .15rem;
}
.etude-toc .toc-part:first-child { margin-top: 0; }

/* --- Sommaire imprimé (PDF uniquement) --- */
.etude-toc-print { display: none; }
@media print {
  /* Tableaux (radar, synthese, Ordonnance decond) : jamais de ligne coupee entre 2 pages. */
  .etude-table tr { page-break-inside: avoid; break-inside: avoid; }
  .etude-table td { vertical-align: top; }

  .etude-toc-print {
    display: block;
    page-break-after: always;
    font-family: system-ui, sans-serif;
  }
  .etude-toc-print h2 {
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #7a4a12;
    font-size: 1.1rem;
  }
  .etude-toc-print ul { list-style: none; padding: 0; margin: .6rem 0 0; }
  .etude-toc-print .toc-print-part {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    color: #7a4a12;
    margin: .7rem 0 .2rem;
  }
  .etude-toc-print .toc-print-sec {
    font-size: .84rem;
    color: #4a3f2c;
    padding: .12rem 0 .12rem 1rem;
    border-bottom: 1px dotted #e0d4b6;
  }
  .etude-part { page-break-before: always; border-top: 0; padding-top: 2.5rem; }
}

/* --- Sections narratives --- */
.etude-section { margin: 0 0 2.2rem; scroll-margin-top: 1rem; }
/* Clearfix : le mini-BodyGraph flottant ne doit jamais deborder sur le bloc suivant. */
.etude-section::after { content: ''; display: block; clear: both; }
.etude-section h2 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a4a12;
  border-bottom: 2px solid #e7d9bd;
  padding-bottom: .35rem;
  margin: 0 0 .9rem;
  position: relative;
}
.etude-section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 64px; height: 2px;
  background: var(--rose);
}
.etude-section p { margin: 0 0 .9rem; text-align: justify; hyphens: auto; }
.etude-section h4 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6a5d44;
  margin: 1em 0 .3em;
}

/* --- Tableaux markdown (|...|) --- */
.etude-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: .6rem 0 1rem;
  break-inside: avoid;
}
.etude-table th {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a4a12;
  background: #f3ecdd;
  text-align: left;
}
.etude-table th, .etude-table td {
  border: 1px solid #e0d4b6;
  padding: .45rem .6rem;
  vertical-align: top;
}
.etude-table tbody tr:nth-child(even) td { background: #fbf8f1; }

/* --- Callout ("> ! ..." dans le markdown) --- */
.callout {
  background: #fff6f9;
  border: 1px solid #f3cdd9;
  border-left: 4px solid var(--rose);
  border-radius: 0 .5rem .5rem 0;
  padding: .7rem 1rem;
  margin: .8rem 0 1rem;
  break-inside: avoid;
}

/* --- BodyGraph --- */
.etude-bodygraph { text-align: center; margin: 0 0 2.2rem; }
.etude-bodygraph h2 {
  font-size: 1.45rem; color: #7a4a12;
  border-bottom: 2px solid #e7d9bd; padding-bottom: .35rem; text-align: left;
}
.etude-bodygraph .graph-panel { text-align: center; }
.etude-bodygraph .graph-panel svg { display: block; margin: 0 auto; max-width: 460px; height: auto; }

/* --- Appel a l'avis --- */
.btn-avis { margin-left: .4rem; white-space: nowrap; }

/* --- Bandeau « nouvelle version disponible » (bascule a la demande du lecteur) --- */
.etude-newversion {
  background: #e9f6ec;
  border: 1px solid #bfe3c6;
  border-left: 4px solid #3f9d57;
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
.etude-newversion p { margin: 0 0 .55rem; }
.etude-newversion .etude-newversion-acts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.etude-newversion form { margin: 0; }
.btn-ghost {
  display: inline-block;
  padding: .35rem .8rem;
  background: transparent;
  color: #2f6d40;
  border: 1px solid #9ccfa8;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
}
.btn-ghost:hover { background: #d8eedd; }
/* Etat replie : « Garder ma version actuelle » -> lien discret toujours present. */
.etude-newversion.is-collapsed {
  background: transparent;
  border: none;
  padding: .3rem 0;
  margin: 0 0 1rem;
}
.nv-collapsed-link {
  background: transparent;
  border: 0;
  color: #2f6d40;
  font-size: .92rem;
  cursor: pointer;
  padding: .2rem 0;
  text-decoration: underline;
}
.nv-collapsed-link:hover { color: #1f4d2c; }
.etude-avis-cta {
  text-align: center;
  background: #fffdf8;
  border: 1px solid #e7d9bd;
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  margin: 2.4rem 0 0;
}
.etude-avis-cta h2 { color: #7a4a12; margin: 0 0 .5rem; border: 0; font-size: 1.3rem; }
.etude-avis-cta p { margin: 0 0 .8rem; }
.etude-avis-cta .btn { width: auto; margin: 0; padding: .6rem 1.4rem; }

/* --- Mini-BodyGraph par section (zone evoquee surlignee) --- */
.mini-figure {
  float: left;
  width: 190px;
  max-width: 40%;
  margin: .1rem 1.2rem .5rem 0;
  text-align: center;
  break-inside: avoid;
}
.mini-figure .mini-bodygraph {
  width: 100%;
  height: auto;
  display: block;
  /* Conserver les aplats pales + le rouge de la zone a l'impression PDF. */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.mini-figure figcaption {
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  color: #8a7c60;
  margin-top: .3rem;
  line-height: 1.25;
}

.etude-foot {
  font-family: system-ui, sans-serif;
  font-size: .76rem;
  color: #8a7c60;
  text-align: center;
  border-top: 1px solid #e0d4b6;
  padding-top: 1rem;
  margin-top: 2.5rem;
}

/* --- Impression / PDF (Chrome headless ?print=1) --- */
@page { size: A4; margin: 14mm 12mm 16mm; }
.page-etude.print { background: #fff; }
.page-etude.print .etude-wrap { max-width: none; padding: 0; }
@media print {
  body { background: #fff; }
  .etude-status, .etude-toc, .etude-fabs, .etude-toc-float { display: none !important; }
  /* Coupes : on N'INTERDIT PLUS la coupe des sections entieres (les longues sections
     creaient de grands blancs) ; seuls titres et figures restent insecables. */
  .etude-section h2, .etude-bodygraph h2, .etude-section h3 {
    page-break-after: avoid; break-after: avoid;
  }
  .mini-figure, .etude-table, .callout { page-break-inside: avoid; break-inside: avoid; }
  .etude-cover { page-break-after: avoid; }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .mini-figure {
    float: none;
    width: auto;
    max-width: 260px;
    margin: 0 auto .8rem;
  }
  .etude-section p { text-align: left; }
  .etude-cover h1 { font-size: 1.5rem; }
  .etude-table { display: block; overflow-x: auto; }
}

/* --- Rapport pratique : sous-titres + listes d'exemples + Ordonnance --- */
.etude-section h3 {
  font-size: 1.02rem;
  margin: 1.1em 0 .35em;
  color: #2a2a2a;
}
.etude-section ul {
  margin: .4em 0 .9em;
  padding-left: 1.25em;
}
.etude-section li {
  margin: .3em 0;
  line-height: 1.5;
}
#sec-ordonnance h3 { color: #7a5; }
#sec-ordonnance li { list-style: none; margin-left: -1em; }

/* --- Paywall : sections verrouillées, bandeau d'achat, bandeau témoin --- */
.etude-section.locked h2 { opacity: .82; }
.etude-section.locked .lock { font-size: .85em; }
.locked-body {
  position: relative;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: .55;
  max-height: 7.5em;
  overflow: hidden;
}
.locked-note {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rose-ink);
  margin: .3rem 0 0;
}
.etude-toc a.tlock { opacity: .7; }
.etude-buybar {
  position: sticky;
  bottom: 0;
  /* AU-DESSUS des FAB flottants (.etude-fabs, z-index 60) : les deux sont ancres en bas
     d'ecran et se recouvraient sur mobile, le FAB passant par-dessus le bouton d'achat. */
  z-index: 61;
  background: #fffdf8;
  border-top: 2px solid var(--rose);
  box-shadow: 0 -6px 22px rgba(60, 48, 30, .18);
  padding: .7rem 1rem .5rem;
  margin: 2rem -1.4rem 0;
  text-align: center;
}
.etude-buybar .bb-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  justify-content: center;
}
.etude-buybar .bb-txt { font-size: .92rem; color: #4a3f2c; }
.etude-buybar .bb-btn {
  display: inline-block;
  background: var(--rose-ink);
  color: #fff;
  border-radius: .375rem;
  padding: .55rem 1.4rem;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
}
.etude-buybar .bb-btn:hover { background: #9c3c5b; }
.etude-buybar .bb-note {
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  color: #8a7c60;
  margin: .35rem 0 0;
}
/* Quand la barre d'achat est presente, les FAB remontent au-dessus d'elle plutot que
   de disparaitre derriere (sans :has(), le z-index ci-dessus suffit deja). */
body:has(.etude-buybar) .etude-fabs { bottom: 104px; }
body:has(.etude-buybar) .etude-toc-float { bottom: 196px; }

@media (max-width: 640px) {
  .etude-buybar { padding: .6rem .9rem .45rem; margin: 1.6rem -1.4rem 0; }
  .etude-buybar .bb-txt { font-size: .84rem; line-height: 1.4; }
  /* Cible tactile pleine largeur : le bouton ne peut plus etre rogne ni manque. */
  .etude-buybar .bb-btn {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    font-size: .82rem;
    letter-spacing: .1em;
  }
  body:has(.etude-buybar) .etude-fabs { bottom: 128px; }
  body:has(.etude-buybar) .etude-toc-float { bottom: 220px; }
}
.etude-temoin {
  background: #eef4fb;
  border: 1px solid #b9cfe8;
  border-left: 4px solid #3a6ea5;
  border-radius: 8px;
  padding: .7rem 1rem;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
.etude-temoin p { margin: 0; }
/* --- Retour de paiement Stripe (&pay=ok|ko) --- */
.etude-payback {
  border-radius: .5rem;
  padding: .85rem 1.1rem;
  margin: 0 0 1.2rem;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}
.etude-payback.ok { background: #eef7ee; border: 1px solid #b6d7b6; color: #2f5d33; }
.etude-payback.ko { background: #fdf3f0; border: 1px solid #e8c4b8; color: #8a4a33; }
.etude-payback a { color: inherit; font-weight: 600; }

@media print {
  .etude-buybar { display: none !important; }
  .etude-payback { display: none !important; }
}

/* --- Graphiques déterministes (etude_charts.php) : print-safe, zéro JS --- */
.etude-overview .ec-chart { margin: 0 0 1.6rem; break-inside: avoid; }
.ec-chart h3 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6a5d44;
  margin: 0 0 .55rem;
}
.ec-bar-row, .ec-bal-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .3rem 0;
  font-family: system-ui, sans-serif;
  font-size: .84rem;
}
.ec-bar-label { flex: 0 0 40%; max-width: 40%; color: #4a3f2c; }
.ec-bar-track {
  flex: 1;
  height: 14px;
  background: #ece2cc;
  border-radius: 4px;
  overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ec-bar-fill {
  display: block;
  height: 100%;
  background: var(--rose-ink);
  border-radius: 0 4px 4px 0;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ec-bar-val { flex: 0 0 4.5em; color: #6a5d44; font-variant-numeric: tabular-nums; }
.ec-note { font-family: system-ui, sans-serif; font-size: .8rem; color: #8a7c60; margin: .45rem 0 0; }

.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ec-cell {
  border: 1px solid #d8cbaa;
  border-radius: 6px;
  padding: .5rem .55rem;
  min-height: 3.2rem;
  font-family: system-ui, sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ec-cell-name { display: block; font-size: .8rem; font-weight: 600; }
.ec-cell-state { display: block; font-size: .68rem; opacity: .85; margin-top: .15rem; }
.ec-cell.ec-a    { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ec-cell.ec-b    { background: #c43a3a; color: #fff; border-color: #c43a3a; }
.ec-cell.ec-both {
  background: repeating-linear-gradient(45deg, #1a1a1a 0 7px, #c43a3a 7px 14px);
  color: #fff; border-color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
.ec-cell.ec-def  { background: #8a6d3b; color: #fff; border-color: #8a6d3b; }
.ec-cell.ec-none { background: #fffdf8; color: #6a5d44; border-style: dashed; }
.ec-legend { font-family: system-ui, sans-serif; font-size: .78rem; color: #6a5d44; margin: .55rem 0 0; }
.ec-sw {
  display: inline-block; width: .85em; height: .85em; border-radius: 2px;
  vertical-align: -1px; border: 1px solid rgba(0,0,0,.25);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ec-sw-both { background: repeating-linear-gradient(45deg, #1a1a1a 0 3px, #c43a3a 3px 6px); }
/* Tooltip pédagogique (cases centres, chips de portes) : rendu premium par le binder
   JS d'etude.php dans la boîte .hd-tooltip du BodyGraph (style.css). Ici : le curseur. */
.ec-tip { cursor: help; }
.ec-sw-none { background: #fffdf8; border-style: dashed; }
.ec-chips { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ec-chip {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .8rem;
  background: var(--indigo);
  color: #fff;
  border-radius: 999px;
  padding: .12rem .6rem;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
@media (max-width: 640px) {
  .ec-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-bar-label { flex-basis: 46%; max-width: 46%; }
}

/* --- Carte « Constellation mécanique » (etude_mindmap.php + mindmap.js) --- */
.etude-mindmap .em-map {
  background: #fffdf8;
  border: 1px solid #e2d6ba;
  border-radius: 12px;
  padding: .4rem;
  break-inside: avoid;
}
.em-map svg, .em-overlay svg {
  width: 100%;
  height: auto;
  display: block;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* Cartes radiales « X dans la relation avec Y » (em_mindmap_person) */
.em-spoke { stroke: #c9b88f; stroke-width: 2px; fill: none; }
.em-ray-kicker { font-size: 11px; fill: #8a7c60; letter-spacing: .12em; font-weight: 700; }
.em-ray-title { font-size: 14px; fill: #3a2c14; font-weight: 700; }
.em-ray-line { font-size: 12px; fill: #4a3f2c; }
.em-ray-muted { font-size: 11.5px; fill: #8a7c60; font-style: italic; }
.em-hot.em-on .em-ray-box { stroke: var(--rose-ink); stroke-width: 2.5px; }
.em-rec-num { stroke: rgba(0, 0, 0, .18); }
/* Feuilles (niveau 3) : pastilles-pilules sous les rayons */
.em-leaf {
  fill: #fffdf8;
  stroke: #c9b88f;
  stroke-width: 1.2px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.em-leaf-txt { font-size: 11.5px; fill: #6a5d44; }
.em-hot.em-on .em-leaf { stroke: var(--rose-ink); stroke-width: 2px; fill: #fff2f6; }
.em-intro { font-size: .95rem; color: #6a5d44; }
.etude-mindmap text, .em-overlay text { font-family: 'Quicksand', system-ui, sans-serif; }
.em-edge-lbl { font-size: 13px; fill: #4a3f2c; font-weight: 700;
  paint-order: stroke; stroke: #f7f4ee; stroke-width: 4px; }
.em-center-lbl { font-size: 15px; fill: #6a5d44; }
.em-center-lbl.def { fill: #3a2c14; font-weight: 700; }
.em-badge-txt { font-size: 12px; fill: #fff; font-weight: 700; }
.em-sat-txt { font-size: 13px; fill: #7a2018; font-weight: 700; }
/* Meme famille que tous les autres <text> SVG (regle .etude-mindmap text) : l'ancien
   override Georgia etait la seule etiquette serif au milieu du Quicksand des cartes. */
.em-auth-lbl { font-size: 12px; fill: #b8496b; font-style: italic; }
.em-node-kicker { font-size: 10px; fill: #8a7c60; letter-spacing: .14em; }
.em-node-title { font-size: 14px; fill: #3a2c14; font-weight: 700; }
.em-node-small { font-size: 12px; fill: #4a3f2c; }
.em-chip-txt { font-size: 10.5px; fill: #fff; font-weight: 700; }
.em-core-kicker { font-size: 10px; fill: var(--rose); letter-spacing: .18em; }
.em-core-type { font-size: 19px; fill: #fff; font-weight: 700; }
.em-core-line { font-size: 13px; fill: #e8e4f2; }
.em-core-def { font-size: 11px; fill: #b9b3d6; font-style: italic; }
.em-hot { cursor: pointer; }
.em-hit { pointer-events: stroke; }   /* zone de capture large des courbes fines */
#em-expand { cursor: pointer; }
.em-hot.em-on .em-curve { stroke-width: 9px; opacity: 1; }
.em-hot.em-on .em-dot { stroke: var(--rose-ink) !important; stroke-width: 4px !important; }
.em-hot.em-on rect { stroke: var(--rose-ink); stroke-width: 2.5px; }
.em-hot.em-on .em-chip { outline: 2px solid var(--rose-ink); }
.em-chips-row {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: .7rem 0 .2rem;
  font-family: system-ui, sans-serif;
}
.em-chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .8rem;
  background: #fffdf8;
  border: 1px solid #d8cbaa;
  border-radius: 999px;
  padding: .18rem .7rem;
  color: #4a3f2c;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.em-chip i { width: .8em; height: .8em; border-radius: 2px; display: inline-block; }
.em-chip-dom { border-color: var(--rose-ink); font-weight: 700; }
.em-legend { font-family: system-ui, sans-serif; font-size: .78rem; color: #8a7c60; margin: .4rem 0 0; }
.em-actions { margin: .6rem 0 0; }
/* Surlignage croisé du grand BodyGraph : classes réversibles posées par mindmap.js
   (le CSS gagne sur les attributs de présentation posés par app.js, et se retire
   proprement au pointerleave sans toucher à la coloration de base). */
#bodygraph .em-hl-ch { stroke: #c0392b !important; stroke-width: 11px !important; }
#bodygraph .em-hl-g circle { fill: #c0392b !important; stroke: #7a2018 !important; }
#bodygraph .em-hl-g text { fill: #fff !important; font-weight: 700; }
#bodygraph .em-hl-c { fill-opacity: 1 !important; stroke: #c0392b !important; stroke-width: 3px !important; }
/* Panneau « fils rouges » (sections carte_*, hors flux prose) */
.em-links { margin: 1.2rem 0 0; }
.em-links h3 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6a5d44;
  margin: 0 0 .3rem;
}
.em-links-note { font-family: system-ui, sans-serif; font-size: .82rem; color: #8a7c60; margin: 0 0 .7rem; }
.em-link-card {
  background: #fffdf8;
  border: 1px solid #e2d6ba;
  border-left: 4px solid var(--rose);
  border-radius: 0 .6rem .6rem 0;
  padding: .7rem 1rem .5rem;
  margin: 0 0 .8rem;
  break-inside: avoid;
}
.em-link-card h4 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a4a12;
  margin: 0 0 .4rem;
}
.em-link-card p { font-size: .95rem; margin: 0 0 .6rem; }
.em-link-card.em-echo { border-left-color: var(--indigo); background: #fbfaf5; }
.em-link-card.em-echo p { font-style: italic; }
/* Flash de la section cible après navigation depuis la carte */
.em-flash { animation: emFlash 2.4s ease; }
@keyframes emFlash {
  0% { background: #fff2f6; box-shadow: 0 0 0 6px #fff2f6; }
  100% { background: transparent; box-shadow: none; }
}
/* Overlay plein écran */
.em-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: #f7f4ee;
  display: flex; flex-direction: column;
}
.em-overlay-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 1rem;
  border-bottom: 1px solid #e0d4b6;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: #7a4a12;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem;
}
.em-overlay svg { flex: 1; min-height: 0; height: 100%; touch-action: none; }
.em-close {
  background: transparent;
  border: 1px solid var(--rose-ink);
  color: var(--rose-ink);
  border-radius: 999px;
  width: 2rem; height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.em-close:hover { background: var(--rose-ink); color: #fff; }
body.em-noscroll { overflow: hidden; }
@media print {
  .em-actions { display: none !important; }
  .etude-mindmap .em-map, .em-link-card { page-break-inside: avoid; break-inside: avoid; }
}

/* Legende du BodyGraph commun (synastrie) : A / B / commun */
.bg-syn-legend { font-size: .9rem; opacity: .85; margin: .2rem 0 .6rem; }
.bg-syn-legend .bg-sw { display: inline-block; width: .9em; height: .9em; border-radius: 2px;
  vertical-align: -1px; margin-right: .15em; border: 1px solid rgba(0,0,0,.2); }
.bg-syn-legend .bg-sw-both { background: repeating-linear-gradient(45deg,
  #1a1a1a 0 3px, #c43a3a 3px 6px); }

/* --- Galerie des fonds d'ecran (programme de deconditionnement) --- */
.wp-acc summary { cursor: pointer; list-style: none; }
.wp-acc summary::-webkit-details-marker { display: none; }
.wp-acc summary h2 { display: inline-block; margin: 0; }
.wp-acc summary h2::after { content: " ▸"; font-size: .8em; opacity: .6; }
.wp-acc[open] summary h2::after { content: " ▾"; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .9rem; margin-top: .8rem; }
.wp-item { margin: 0; text-align: center; }
.wp-item img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover;
  border-radius: 14px; border: 1px solid rgba(0,0,0,.15);
  background: #17141f url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="20" cy="20" r="12" fill="none" stroke="%23FF8CA8" stroke-width="3" stroke-dasharray="50 26"><animateTransform attributeName="transform" type="rotate" from="0 20 20" to="360 20 20" dur="1.2s" repeatCount="indefinite"/></circle></svg>') center no-repeat; }
.wp-item figcaption { font-size: .85rem; margin: .35rem 0 .3rem; opacity: .9; }
.wp-item .btn { font-size: .85rem; padding: .35rem .8rem; }
@media print { .wp-acc { display: none; } }
