/* Guide Claude — page document (lecture web + impression PDF) */

.guide-page {
  padding-bottom: 4rem;
}

.guide-cover {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--c-ivory) 92%, var(--c-terra) 8%) 0%,
    var(--c-ivory) 55%
  );
}

.guide-cover__inner {
  max-width: 52rem;
}

.guide-cover__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.guide-cover__mark {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.95;
}

.guide-cover__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-terra);
  margin: 0 0 0.5rem;
}

.guide-cover__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0 0 0.35rem;
}

.guide-cover__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: var(--c-ink-2);
  margin: 0 0 1rem;
}

.guide-cover__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.guide-cover__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  color: var(--c-ink-2);
}

.guide-cover__lede {
  font-size: var(--step-0);
  color: var(--c-ink-2);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.guide-cover__lede strong {
  color: var(--c-ink);
}

.guide-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.guide-cover__note {
  flex: 1 1 100%;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.guide-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--c-ivory) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.guide-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 0;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.guide-toc a {
  color: var(--c-ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.guide-toc a:hover {
  color: var(--c-terra);
  border-color: var(--c-terra);
}

.guide-doc {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.guide-section {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.guide-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid color-mix(in srgb, var(--c-terra) 55%, transparent);
}

.guide-section h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 2rem 0 0.75rem;
}

.guide-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-terra);
  margin: 1.5rem 0 0.65rem;
}

.guide-section > p {
  color: var(--c-ink-2);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.guide-lede {
  font-size: 1.02rem;
  color: var(--c-ink-2);
  line-height: 1.62;
  margin: 1rem 0 0;
}

.guide-note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-inline-start: 3px solid var(--c-terra);
  background: color-mix(in srgb, var(--c-ivory-2) 88%, var(--c-terra) 12%);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.guide-table th,
.guide-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

.guide-table thead th {
  background: var(--c-ivory-2);
  color: var(--c-ink);
  font-weight: 600;
}

.guide-table tbody th[scope="row"] {
  color: var(--c-ink);
  font-weight: 500;
  white-space: nowrap;
}

.guide-table td {
  color: var(--c-ink-2);
}

.guide-table--ref code {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--c-ink);
  word-break: break-word;
}

.guide-checklist {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--c-ink-2);
  line-height: 1.6;
}

.guide-checklist li {
  margin-bottom: 0.45rem;
}

.guide-questions {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--c-ink-2);
  line-height: 1.6;
}

.guide-questions li {
  margin-bottom: 0.85rem;
}

.guide-questions p {
  margin: 0;
}

/* Encarts : prompts lisibles (fond sombre, texte clair) */
.guide-callout {
  margin: 1.25rem 0;
  padding: 0;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line);
  overflow: hidden;
  background: var(--c-ivory-2);
}

.guide-callout--prompt {
  border-color: color-mix(in srgb, var(--c-terra) 35%, var(--c-line));
}

.guide-callout--pitfall {
  border-color: color-mix(in srgb, var(--c-warn) 40%, var(--c-line));
}

.guide-callout--test {
  border-color: color-mix(in srgb, var(--c-terra) 25%, var(--c-line));
}

.guide-callout__label {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--c-ivory) 70%, var(--c-terra) 30%);
  color: var(--c-on-terra);
}

.guide-callout--template .guide-callout__label {
  background: color-mix(in srgb, var(--c-ivory-2) 80%, var(--c-terra) 20%);
  color: var(--c-ink);
}

.guide-callout--pitfall .guide-callout__label {
  background: color-mix(in srgb, var(--c-warn) 75%, #0E0D0C 25%);
  color: #fff;
}

.guide-callout__title {
  margin: 0;
  padding: 0.75rem 1rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
}

.guide-callout__body {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  background: #12100e;
  color: #e8e2d6;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  border-top: 1px solid var(--c-line);
}

.guide-callout__body code {
  font-family: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.guide-callout__copy {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 1rem 0.85rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--c-on-terra);
  background: var(--c-terra);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 0.2s ease;
}

.guide-callout__copy:hover {
  background: var(--c-terra-2);
}

.guide-callout__copy.is-done {
  background: var(--c-ivory-2);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}

.guide-end {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--c-line);
  text-align: center;
}

.guide-end p {
  color: var(--c-ink-2);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.guide-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Lead magnet : contenu protégé jusqu’à inscription email */
.guide-page.is-locked .guide-page__protected {
  display: none;
}

.guide-page.is-locked .guide-cover__print-cta,
.guide-page.is-locked .guide-cover__note--unlocked {
  display: none;
}

.guide-page.is-locked .guide-cover__unlock-cta {
  display: inline-flex;
}

.guide-page.is-locked .guide-cover__note--locked {
  display: block;
}

.guide-cover__note--locked {
  display: none;
}

html.guide-unlocked .guide-page .guide-cover__unlock-cta,
html.guide-unlocked .guide-page .guide-cover__note--locked {
  display: none;
}

html.guide-unlocked .guide-page .guide-cover__print-cta {
  display: inline-flex;
}

html.guide-unlocked .guide-page .guide-cover__note--unlocked {
  display: block;
}

html.guide-unlocked .guide-page.is-locked .guide-page__protected {
  display: block;
}

html.guide-unlocked .guide-page.is-locked #guide-lead-gate {
  display: none;
}

.guide-lead-gate {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.guide-lead-gate[hidden] {
  display: none !important;
}

.guide-lead-gate__card {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, var(--c-terra) 45%, var(--c-line));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--c-ivory-2) 90%, var(--c-terra) 10%) 0%,
    var(--c-ivory-2) 100%
  );
  box-shadow: var(--shadow-m);
}

.guide-lead-gate__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-terra);
}

.guide-lead-gate__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.65rem;
  color: var(--c-ink);
}

.guide-lead-gate__desc {
  margin: 0 0 1rem;
  color: var(--c-ink-2);
  line-height: 1.6;
  font-size: 0.95rem;
}

.guide-lead-gate__bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--c-ink-2);
  font-size: 0.88rem;
  line-height: 1.55;
}

.guide-lead-gate__bullets li {
  margin-bottom: 0.35rem;
}

.guide-lead-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 0.35rem;
}

.guide-lead-form input[type="text"],
.guide-lead-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--c-line);
  background: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.guide-lead-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--c-terra) 55%, transparent);
  outline-offset: 1px;
}

.guide-lead-form__row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.85rem;
}

@media (max-width: 560px) {
  .guide-lead-form__row {
    grid-template-columns: 1fr;
  }
}

.guide-lead-form > div:not(.guide-lead-form__row) {
  margin-bottom: 0.85rem;
}

.guide-lead-form__opt {
  font-weight: 400;
  color: var(--c-muted);
}

.guide-lead-form__consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-ink-2);
  cursor: pointer;
}

.guide-lead-form__consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.guide-lead-form__consent a {
  color: var(--c-terra);
}

.guide-lead-form__submit {
  width: 100%;
  justify-content: center;
}

.guide-lead-form__status {
  margin-bottom: 0.75rem;
}

.guide-lead-gate__alt {
  margin: 1rem 0 0;
  text-align: center;
}

.guide-cta-band {
  margin: 2rem 0 0;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-m);
  border: 1px solid color-mix(in srgb, var(--c-terra) 35%, var(--c-line));
  background: color-mix(in srgb, var(--c-ivory-2) 90%, var(--c-terra) 10%);
}

.guide-cta-band__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-terra);
}

.guide-cta-band__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.guide-cta-band__text strong {
  color: var(--c-ink);
}

.guide-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media print {
  .guide-cta-band {
    display: none !important;
  }
}

/* Impression / PDF (navigateur : Ctrl+P → Enregistrer en PDF) */
@media print {
  .site-header,
  .site-footer,
  .concierge,
  .guide-toolbar,
  .guide-cover__actions,
  .guide-callout__copy,
  .guide-lead-gate,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #1a1816 !important;
  }

  .guide-cover {
    background: none !important;
    border-bottom: 2px solid #d4a053;
    padding-top: 0;
  }

  .guide-cover__title,
  .guide-cover__subtitle,
  .guide-section h2,
  .guide-section h3,
  .guide-section h4,
  .guide-section > p,
  .guide-lede,
  .guide-note,
  .guide-checklist,
  .guide-questions {
    color: #1a1816 !important;
  }

  .guide-callout {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .guide-callout__body {
    background: #f5f2ec !important;
    color: #1a1816 !important;
    font-size: 9pt;
  }

  .guide-callout__label {
    background: #d4a053 !important;
    color: #0e0d0c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .guide-table thead th {
    background: #f0ebe0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: none;
  }
}
