/* RH Formations — page d'une formation (contenu du catalogue + formulaire). */

.page-hero .rs-title { max-width: 30ch; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; }
.page-hero .lead a { color: #E8CB86; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.page-hero .chip b { font-weight: 700; }
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.rs-price { margin: 0 10px 0 0; color: var(--t-inv-2); font-size: 1rem; }
.rs-price strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; }

.rs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.rs-aside { scroll-margin-top: 24px; }
@media (min-width: 961px) and (min-height: 1000px) { .rs-aside { position: sticky; top: 24px; } }
.rs-aside .form-card { box-shadow: 0 18px 50px -24px rgba(42, 78, 138, .35); }

.rs-content { color: var(--t-2); }
.rs-content > h2 { margin: 44px 0 14px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--t-1); }
.rs-content > h2:first-child { margin-top: 0; }
.rs-content h3 { margin: 22px 0 8px; font-size: 1.08rem; color: var(--ink); }
.rs-content h4 { margin: 18px 0 6px; font-size: .98rem; color: var(--ink); }
.rs-content p { margin: 0 0 12px; }
.rs-content ul { margin: 0 0 12px; padding-left: 1.2em; list-style: disc; }
.rs-content li { margin: 0 0 8px; line-height: 1.55; }
.rs-content li::marker { color: var(--gold); }

.rs-content ul.rs-check { list-style: none; padding-left: 0; }
.rs-content ul.rs-check li { position: relative; padding-left: 30px; }
.rs-content ul.rs-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: #E8EEF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4E8A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.rs-module { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin: 0 0 10px; }
.rs-module > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--t-1);
}
.rs-module > summary::-webkit-details-marker { display: none; }
.rs-module > summary::after { content: "+"; flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--blue-600); transition: transform .2s ease; }
.rs-module[open] > summary::after { transform: rotate(45deg); }
.rs-module > summary:hover { color: var(--blue-600); }
.rs-module > :not(summary) { margin-left: 18px; margin-right: 18px; }
.rs-module > :last-child { margin-bottom: 18px; }
.rs-module[open] { background: var(--paper-2); }

@media (max-width: 960px) {
  .rs-grid { grid-template-columns: 1fr; }
}
