/* Présentation réservée aux pages guide-*.php. */
.rsst-guide-redesign > .inner-hero { padding: 2.8rem 0 3rem; }
.rsst-guide-redesign > .inner-hero .breadcrumbs { margin-bottom: 1rem; font-size: .8rem; }
.rsst-guide-redesign > .inner-hero .section-kicker { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: .76rem; letter-spacing: .12em; }
.rsst-guide-redesign > .inner-hero h1 { max-width: 940px; margin: .7rem 0 1rem; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.rsst-guide-redesign > .inner-hero p { max-width: 75ch; font-size: 1.02rem; line-height: 1.65; margin: 0; }
.rsst-guide-redesign .course-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; padding-block: 2.5rem; }
.rsst-guide-redesign .course-main { min-width: 0; }
.rsst-guide-redesign .rsst-reading-panel { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 12px; margin-bottom: 1.4rem; box-shadow: none; }
.rsst-guide-redesign .rsst-reading-panel h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin: .5rem 0 1rem; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.rsst-guide-redesign .rsst-reading-panel h2:first-child { margin-top: 0; }
.rsst-guide-redesign .rsst-reading-panel p { line-height: 1.75; }
.rsst-guide-redesign .rsst-reading-panel p:last-child { margin-bottom: 0; }
.rsst-guide-redesign .rsst-panel-label { color: #a33e30; letter-spacing: .1em; font-size: .7rem; }
.rsst-guide-redesign .rsst-answer-panel { background: #f2f7f9; border: 1px solid var(--border); border-left: 4px solid var(--cyan); }
.rsst-guide-redesign .rsst-answer-panel h2 { color: var(--navy); }
.rsst-guide-redesign .rsst-answer-panel p { color: #4b6272; }
.rsst-guide-redesign .rsst-answer-panel .rsst-panel-label { color: #087083; }
.rsst-guide-redesign .rsst-guide-nav { padding: 1.3rem; border-radius: 12px; top: 1.5rem; }
.rsst-guide-redesign .rsst-guide-nav h2 { font-size: 1.1rem; margin: .4rem 0 1rem; }
.rsst-guide-redesign .rsst-guide-nav nav { gap: .4rem; }
.rsst-guide-redesign .rsst-guide-nav nav a { background: #f3f7f9; border-radius: 7px; padding: .75rem; font-size: .84rem; line-height: 1.5; }
.rsst-guide-redesign .rsst-guide-nav nav a:hover { background: #e2f2f5; }
.rsst-guide-redesign .rsst-guide-nav .rsst-sidebar-cta { display: none; }
.rsst-guide-redesign .rsst-prap-choice { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: 1.3rem 0; }
.rsst-guide-redesign .rsst-prap-choice table { border-collapse: collapse; width: 100%; min-width: 620px; table-layout: fixed; font-size: .9rem; }
.rsst-guide-redesign .rsst-prap-choice caption { text-align: left; padding: .8rem 1rem; color: var(--muted); background: #f3f7f9; font-size: .8rem; }
.rsst-guide-redesign .rsst-prap-choice th, .rsst-guide-redesign .rsst-prap-choice td { padding: .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.5; }
.rsst-guide-redesign .rsst-prap-choice th { background: var(--navy); color: white; }
.rsst-guide-redesign .rsst-prap-choice th:first-child { width: 17%; }
.rsst-guide-redesign .rsst-prap-choice th:nth-child(2) { width: 45%; }
.rsst-guide-redesign .rsst-prap-choice th:nth-child(3), .rsst-guide-redesign .rsst-prap-choice th:nth-child(4) { width: 19%; }
.rsst-guide-redesign .rsst-prap-choice td:first-child { font-weight: 700; }
.rsst-guide-redesign .rsst-prap-choice tbody tr:nth-child(even) { background: #f6f9fa; }
.rsst-guide-redesign .rsst-prap-choice tbody tr:last-child td { border-bottom: 0; }
.rsst-guide-redesign .rsst-prap-choice a { color: #087083; text-decoration: underline; text-underline-offset: .2em; }
.rsst-guide-redesign .course-main.rsst-guide .rsst-related.rsst-next { border: 1px solid var(--border); border-radius: 12px; padding: clamp(1.25rem, 2.5vw, 2rem); margin: 1.5rem 0; }
.rsst-guide-redesign .rsst-next h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin: .6rem 0 1rem; }
.rsst-guide-redesign .rsst-next-card { border-radius: 9px; padding: 1rem; font-size: .9rem; gap: .7rem; }
.rsst-guide-redesign .rsst-next-card:hover { background: #f0f8fa; }
.rsst-guide-redesign .course-highlight.rsst-commercial, .rsst-guide-redesign .rsst-guide-contact { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--navy); color: white; border: 0; border-radius: 12px; box-shadow: none; margin: 1.5rem 0; }
.rsst-guide-redesign .rsst-guide-contact h2 { color: white; }
.rsst-guide-redesign .rsst-guide-contact p { color: #d7e7ee; }
.rsst-guide-redesign .rsst-commercial > .button, .rsst-guide-redesign .rsst-guide-contact > .button { color: var(--navy); font-size: .9rem; padding: .85rem 1.1rem; text-decoration: none; }
.rsst-guide-redesign .source-note { font-size: .8rem; line-height: 1.65; }
@media (max-width: 900px) {
  .rsst-guide-redesign .course-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .rsst-guide-redesign .rsst-guide-nav { position: static; grid-row: 1; }
  .rsst-guide-redesign .rsst-guide-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rsst-guide-redesign > .inner-hero { padding: 2rem 0; }
  .rsst-guide-redesign > .inner-hero h1 { font-size: 2rem; }
  .rsst-guide-redesign .course-layout { padding-block: 1.5rem; }
  .rsst-guide-redesign .rsst-guide-nav nav { grid-template-columns: minmax(0, 1fr); }
  .rsst-guide-redesign .rsst-next-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Bandeaux : photo visible, dégradé concentré derrière le texte. */
.rsst-guide-redesign > .inner-hero.rsst-html-hero > .rsst-hero-picture { opacity: 1; }
.rsst-guide-redesign > .inner-hero.rsst-html-hero:before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(7,30,50,.92) 0%, rgba(7,30,50,.78) 42%, rgba(7,30,50,.36) 70%, rgba(7,30,50,.16) 100%);
}
.rsst-guide-redesign .course-main.rsst-guide > .source-note,
.rsst-guide-redesign .course-main.rsst-guide > .rsst-guide-project-links {
  margin: 1.4rem 0; padding: 1.25rem 1.5rem; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
}
.rsst-guide-redesign .course-main.rsst-guide > .rsst-guide-project-links { font-size: .95rem; line-height: 1.75; }
/* Un seul bloc devis dans le contenu du guide. */
main.rsst-guide-redesign ~ footer.rsst-footer .rsst-footer-invite { display: none; }
@media (max-width:700px) {
  .rsst-guide-redesign > .inner-hero.rsst-html-hero:before { background: rgba(7,30,50,.8); }
}
/* Liens de parcours : commandes identifiables dans les tableaux des guides. */
.rsst-guide-redesign .rsst-prap-choice a {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 44px; padding: .5rem .65rem; border: 1px solid #b8d5dd;
  border-radius: 7px; background: #eaf4f6; color: #0b5262;
  font-weight: 700; text-decoration: none; line-height: 1.3;
}
.rsst-guide-redesign .rsst-prap-choice a::after { content: '↗'; font-size: .85em; }
.rsst-guide-redesign .rsst-prap-choice a:hover { background: #d8edf1; border-color: #087083; }
.rsst-guide-redesign .rsst-prap-choice a:focus-visible,
.rsst-guide-redesign .rsst-guide-action:focus-visible,
.rsst-guide-compact summary:focus-visible { outline: 3px solid #087083; outline-offset: 3px; }
/* Page pilote : lecture compacte et liens séparés du texte. */
.rsst-guide-compact .rsst-reading-panel { padding: 1.25rem 0; margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.rsst-guide-compact .rsst-reading-panel h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 .75rem; }
.rsst-guide-compact .rsst-reading-panel p { line-height: 1.65; }
.rsst-guide-compact .rsst-answer-panel { padding: 1.25rem; border: 1px solid var(--border); border-left: 4px solid var(--cyan); border-radius: 10px; background: #f2f7f9; margin-bottom: .5rem; }
.rsst-guide-compact .rsst-answer-panel h2 { margin-top: .5rem; }
.rsst-guide-compact #repere-3 ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.rsst-guide-compact #repere-3 ul li { padding: .8rem 1rem; background: #f2f7f9; border-left: 3px solid #b8d5dd; border-radius: 0 7px 7px 0; }
.rsst-guide-compact #repere-3 ul li strong { display: block; color: var(--navy); margin-bottom: .25rem; }
.rsst-guide-redesign .rsst-guide-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.rsst-guide-redesign .rsst-guide-action { display: inline-flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding: .7rem .9rem; border: 1px solid #b8d5dd; border-radius: 8px; background: #eaf4f6; color: #0b5262; font-size: .9rem; font-weight: 650; text-decoration: none; }
.rsst-guide-redesign .rsst-guide-action:hover { background: #d8edf1; border-color: #087083; }
.rsst-guide-compact .rsst-guide-project-links h2 { margin: 0; font-size: 1.15rem; }
.rsst-guide-compact .rsst-guide-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; min-height: 44px; }
.rsst-guide-compact .rsst-guide-detail > summary::-webkit-details-marker { display: none; }
.rsst-guide-compact .rsst-guide-detail > summary::after { content: '+'; font-size: 1.6rem; color: #087083; }
.rsst-guide-compact .rsst-guide-detail[open] > summary::after { content: '−'; }
.rsst-guide-compact .rsst-guide-detail > summary h2 { margin: 0; }
.rsst-guide-compact .rsst-guide-detail-body { padding-top: .75rem; }
.rsst-guide-compact .rsst-guide-toc > summary { font-size: 1.1rem; font-weight: 700; color: var(--navy); cursor: pointer; padding-block: .35rem; }
.rsst-guide-compact .rsst-guide-toc nav { margin-top: .8rem; }
.rsst-guide-compact .rsst-guide-contact { padding: 1.25rem; margin-top: 1.25rem; border-radius: 10px; background: var(--navy); }
@media (max-width: 600px) {
  .rsst-guide-compact .rsst-guide-actions { flex-direction: column; }
  .rsst-guide-compact .rsst-guide-action { width: 100%; box-sizing: border-box; }
}
@media print {
  .rsst-guide-compact .rsst-guide-detail::details-content { display: block; }
}
.rsst-guide-redesign .rsst-prap-choice a { gap: .3rem; padding: .45rem .4rem; font-size: .8rem; white-space: nowrap; }

/* Adaptations aux autres guides, limitées au contenu principal. */
main.rsst-guide-compact .rsst-next-card { text-decoration: none; }
main.rsst-guide-compact .source-note a { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0; padding: .3rem .5rem; border: 1px solid var(--border); border-radius: 5px; color: #0b5262; text-decoration: none; }
main.rsst-guide-compact .source-note a::after { content: '↗'; }
main.rsst-guide-compact .source-note a:hover { background: #eaf4f6; }
main.rsst-guide-compact .source-note a:focus-visible { outline: 3px solid #087083; outline-offset: 3px; }
main.rsst-guide-compact .rsst-commercial .rsst-guide-action { background: #eaf4f6; color: #0b5262; }
main.rsst-guide-compact .rsst-panel-label { display: inline-block; }
main.rsst-guide-compact .rsst-guide-detail-body > :first-child { margin-top: 0; }