/* ============================================================
   « Ma préparation d'entretien » — récap imprimable
   Partagé par les 4 parcours (interview-dev/agile/cyber/transverse).
   À l'écran : la liste des exemples STAR enregistrés + le bouton
   d'impression. À l'impression : seul le récap s'affiche, en noir
   sur blanc, sobre et paginé.
   ============================================================ */

/* ---- Bouton « Ajouter à ma préparation » (sous l'aperçu STAR) ---- */
.star-add-btn { width: 100%; justify-content: center; margin-top: 0.7rem; }

/* ---- Liste des exemples STAR enregistrés (écran) ---- */
.star-saved { margin-top: 1.4rem; }
.star-saved-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; opacity: 0.85; }
.star-saved-empty { opacity: 0.6; font-style: italic; font-size: 0.9rem; line-height: 1.5; }
.star-ex {
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.14)); border-radius: 12px;
  padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: rgba(55, 239, 186, 0.06);
}
.star-ex-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.star-ex-title { font-weight: 700; color: var(--accent-text, #37EFBA); }
.star-ex-del {
  font-family: inherit; font-size: 0.8rem; cursor: pointer; color: #ff8a8a; flex-shrink: 0;
  background: transparent; border: 1px solid rgba(255, 90, 90, 0.4); border-radius: 999px; padding: 0.2rem 0.7rem;
}
.star-ex-del:hover { background: rgba(255, 90, 90, 0.12); }
.star-ex pre { margin: 0.5rem 0 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 0.88rem; line-height: 1.55; }

/* ---- Bloc d'action « Ma préparation » (écran) ---- */
.prep-actions { text-align: center; margin: 2.5rem auto 0; max-width: 680px; }
.prep-actions h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.prep-actions p { opacity: 0.85; line-height: 1.6; margin: 0 0 1.2rem; }
.prep-print-btn {
  font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  color: #25282f; background: linear-gradient(135deg, #37EFBA, #00d4aa); transition: filter 0.2s ease;
}
.prep-print-btn:hover { filter: brightness(1.06); }
.prep-print-btn:focus-visible { outline: 2px solid #37EFBA; outline-offset: 2px; }

/* ---- Le récap : caché à l'écran, visible à l'impression ---- */
.prep-recap { display: none; }

/* ============================================================
   IMPRESSION
   ============================================================ */
@media print {
  /* Tout masquer sauf le récap (le header/footer sont des <header>/<footer>
     injectés par layout.js, l'aurora est .lg-aurora — cf. liquid-glass.js) */
  header, footer, .lg-aurora, .lg-cursor,
  .iv-hero, .iv-intro, .iv-section,
  .iv-back, .prep-actions, #cookieConsent, .cookie-consent { display: none !important; }

  /* L'impression est TOUJOURS en clair, même si la page est en mode sombre */
  html, body, body.dark-mode { background: #fff !important; }
  body.lg-on::before, body.lg-on::after { display: none !important; }
  .body-content, .iv-wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }

  @page { margin: 1.4cm; }

  .prep-recap { display: block !important; font-size: 11pt; line-height: 1.5; }
  .prep-recap, .prep-recap * {
    color: #1a1a1a !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .prep-recap-head { border-bottom: 3px solid #0c8a65; padding-bottom: 0.5rem; margin-bottom: 1.1rem; break-inside: avoid; break-after: avoid; page-break-inside: avoid; }
  .prep-logo { height: 34px; width: auto; display: block; margin-bottom: 0.45rem; }
  .prep-recap-head h1 { font-size: 16pt; margin: 0 0 0.15rem; }
  .prep-recap-head .prep-meta { font-size: 9pt; color: #6a6a6a !important; }

  .prep-block { margin-bottom: 1.2rem; }
  .prep-block > h2 { font-size: 12.5pt; color: #0c8a65 !important; border-left: 4px solid #0c8a65; padding-left: 0.55rem; margin: 0 0 0.55rem; break-after: avoid; page-break-after: avoid; }
  .prep-recap ul { margin: 0.2rem 0 0.5rem 1.1rem; padding: 0; }
  .prep-recap li { margin-bottom: 0.18rem; }
  .prep-recap p { margin: 0.2rem 0; }
  .prep-qcat { break-inside: avoid; page-break-inside: avoid; margin-bottom: 0.35rem; }

  .prep-ex { border: 1px solid #cfcfcf; border-radius: 6px; padding: 0.5rem 0.7rem; margin-bottom: 0.5rem; page-break-inside: avoid; break-inside: avoid; }
  .prep-ex-title { font-weight: 700; margin: 0 0 0.2rem; }
  .prep-ex pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; margin: 0; font-size: 10.5pt; }

  /* Attendus du recruteur — éléments clonés (schéma + panneaux) */
  .prep-expect { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .prep-expect .dgm-fig { border: 0; padding: 0; margin: 0 0 0.6rem; break-inside: avoid; page-break-inside: avoid; }
  .prep-expect .dgm-fig figcaption { color: #0c8a65 !important; }
  .prep-expect svg { max-width: 100%; height: auto; max-height: 7cm; }
  .prep-expect .iv-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .prep-expect .iv-panel { border: 1px solid #cfcfcf !important; background: #fff !important; border-radius: 6px; padding: 0.5rem 0.7rem; break-inside: avoid; page-break-inside: avoid; }
  .prep-expect .iv-panel--good h3, .prep-expect .iv-panel--good li i { color: #0c8a65 !important; }
  .prep-expect .iv-panel--bad h3, .prep-expect .iv-panel--bad li i { color: #b03a2e !important; }
}
