/* =====================================================================
   Rejoindre l'agence : questionnaire de candidature (stage / alternance / emploi)
   Reprend les variables et le langage visuel du questionnaire projet (.qz-*).
   ===================================================================== */
.rc-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.rc-intro__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rc-intro__card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); }
.rc-intro__card h2 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.rc-intro__card p { color: var(--secondary); font-size: 15px; line-height: 1.55; }
.rc-intro__card .eyebrow { margin-bottom: 2px; }

.rc-page { padding-bottom: var(--section); scroll-margin-top: calc(var(--header-h) + 16px); }
.rc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.rc { min-width: 0; }
.rc-loading { color: var(--muted); }
.rc-view { display: grid; gap: 24px; min-width: 0; }
.rc-view[hidden], .rc [hidden] { display: none !important; }
.rc-view > div { display: grid; gap: 24px; min-width: 0; }
.rc-kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rc-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.025em; margin-top: -14px; }
.rc-title:focus, .rc-subtitle:focus { outline: none; }
.rc-subtitle { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.rc-hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.rc-lead { font-size: 15px; color: var(--secondary); }
.rc-req { color: var(--orange-hover); margin-left: 2px; }
.rc-opt { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.rc-notice { padding: 16px 18px; background: var(--surface); border-left: 3px solid var(--orange); color: var(--secondary); font-size: 15px; line-height: 1.55; }
.rc-notice strong { color: var(--ink); }
.rc-ok { justify-self: start; padding: 8px 12px; background: #e3f1e8; color: #1f6b3a; font-size: 14px; font-weight: 600; }
.rc-section { font-size: 18px; letter-spacing: -0.01em; padding-top: 8px; border-top: 1px solid var(--line); }

/* choix du parcours */
.rc-routes { display: grid; gap: 10px; }
.rc-route { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 18px; width: 100%; padding: 18px 20px; border: 1px solid var(--line); background: var(--canvas); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.rc-route:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rc-route__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--surface); color: var(--ink); }
.rc-route__icon svg { width: 26px; height: 26px; }
.rc-route__txt { display: grid; gap: 4px; min-width: 0; }
.rc-route__txt strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.rc-route__txt em { font-style: normal; font-weight: 400; color: var(--secondary); }
.rc-route__txt span { font-size: 14px; color: var(--secondary); line-height: 1.45; }
.rc-route__go { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); font-size: 18px; transition: background-color .2s, color .2s; }
.rc-route:hover .rc-route__go { background: var(--orange); border-color: var(--orange); }

/* champs */
.rc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; min-width: 0; }
.rc-field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.rc-field--full, .rc-fields > .rc-cv, .rc-fields > .rc-rgpd, .rc-fields > .rc-process { grid-column: 1 / -1; }
.rc-field--pair { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.rc-label { font-size: 15px; font-weight: 600; line-height: 1.35; padding: 0; }
legend.rc-label { margin-bottom: 8px; }
.rc-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); background: var(--canvas); font: 400 16px/1.4 var(--font); color: var(--ink); border-radius: 0; }
select.rc-input { appearance: auto; }
.rc-input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rc-input[readonly] { background: var(--surface); color: var(--secondary); }
.rc-input:disabled { background: var(--surface); color: var(--muted); }
.rc-textarea { min-height: 140px; resize: vertical; }
.is-invalid > .rc-input, .rc-input[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.rc-group.is-invalid .rc-choice, .rc-level.is-invalid .rc-lv { border-color: #b3261e; }
.rc-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.rc-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.rc-check.is-invalid, .is-invalid > .rc-check { color: #b3261e; }
.rc-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rc-choice { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); background: var(--canvas); cursor: pointer; font-size: 15px; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.rc-choice:hover { border-color: var(--secondary); }
.rc-choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.rc-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfbf9; }
.rc-choice:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }

/* grille des niveaux : 4 colonnes fixes, seule la réponse cochée se colore (cahier des charges, feuille « Niveaux et couleurs ») */
.rc-levels { display: grid; border-top: 1px solid var(--line); min-width: 0; }
.rc-levels__hint { margin-bottom: -12px; }
.rc-level { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr); align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rc-level__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-width: 0; }
.rc-level__label small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.rc-mono { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -0.02em; }
.rc-level__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rc-lv { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line); background: var(--canvas); text-align: center; font-size: 13px; line-height: 1.2; cursor: pointer; transition: border-color .15s, background-color .15s; }
.rc-lv:hover { border-color: var(--secondary); }
.rc-lv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rc-lv:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.rc-lv:has(input:checked) { font-weight: 700; }
.rc-lv[data-lv="0"]:has(input:checked) { background: #e3e7eb; border-color: #8f9aa3; color: #39444d; }
.rc-lv[data-lv="1"]:has(input:checked) { background: #d6ebfb; border-color: #5d9ccc; color: #164e72; }
.rc-lv[data-lv="2"]:has(input:checked) { background: #ffe9bb; border-color: #d2a23d; color: #6d4b08; }
.rc-lv[data-lv="3"]:has(input:checked) { background: #d0ecdb; border-color: #5fa983; color: #19573a; }
.rc-badge { display: inline-block; min-width: 116px; padding: 3px 10px; border: 1px solid; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.rc-badge--0 { background: #e3e7eb; color: #39444d; border-color: #b7c0c7; }
.rc-badge--1 { background: #d6ebfb; color: #164e72; border-color: #9cc7e7; }
.rc-badge--2 { background: #ffe9bb; color: #6d4b08; border-color: #e3bd5f; }
.rc-badge--3 { background: #d0ecdb; color: #19573a; border-color: #87bfa3; }

.rc-revit { display: grid; gap: 12px; padding: 18px; background: var(--surface); border-left: 3px solid var(--orange); }
.rc-revit h4 { font-size: 16px; }
.rc-revit .rc-lv { background: var(--canvas); }

/* blocs CV et fiches répétables */
.rc-dossier { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.rc-cv { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.rc-cv__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.rc-cv__head h3 { font-size: 20px; letter-spacing: -0.01em; }
.rc-cv__n { display: grid; place-items: center; width: 36px; height: 36px; background: var(--orange); font-weight: 700; font-size: 14px; }
.rc-repeat { display: grid; gap: 12px; }
.rc-record { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); background: #fbfbf9; min-width: 0; }
.rc-record__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rc-record__title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.rc-remove { border: 1px solid var(--line); background: var(--canvas); font: 500 13px var(--font); padding: 6px 10px; cursor: pointer; color: var(--ink); }
.rc-remove:hover { border-color: #b3261e; color: #b3261e; }
.rc-remove:disabled { opacity: .4; cursor: not-allowed; border-color: var(--line); color: var(--muted); }
.rc-add { justify-self: start; }

.rc-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 16px; border: 1px dashed var(--secondary); background: var(--surface); cursor: pointer; font-weight: 500; text-align: center; }
.rc-drop:hover { background: #efefec; }
.rc-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rc-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.is-invalid .rc-drop { border-color: #b3261e; }
.rc-file { font-size: 14px; min-height: 20px; word-break: break-word; }
.rc-file.is-ok { color: #1f6b3a; font-weight: 500; }
.rc-file.is-error { color: #b3261e; font-weight: 500; }

.rc-rgpd { display: grid; gap: 12px; padding: 20px; background: var(--surface); font-size: 14px; line-height: 22px; color: var(--secondary); }
.rc-rgpd h3 { font-size: 15px; color: var(--ink); }
.rc-rgpd__todo { font-size: 13px; color: #7a3d00; background: #fdf0dc; padding: 6px 10px; justify-self: start; }
.rc-rgpd .rc-check { color: var(--ink); }
.rc-process { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); }
.rc-process h3 { font-size: 16px; }
.rc-process p { color: var(--secondary); font-size: 15px; line-height: 1.55; }

.rc-error { padding: 12px 14px; background: #fbe9e7; color: #8a1c15; font-size: 15px; font-weight: 500; }
.rc-reply { display: grid; gap: 12px; padding: 24px; background: var(--surface); border-left: 3px solid var(--ink); line-height: 1.6; color: var(--secondary); }
.rc-reply strong { color: var(--ink); }
.rc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rc-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.rc-nav > :only-child { margin-right: auto; }
.rc-link { border: 0; background: none; padding: 0; font: 500 14px var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* étapes (emploi) */
.rc-steps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.rc-steps button { width: 100%; display: grid; gap: 6px; justify-items: start; padding: 8px 0 10px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--muted); }
.rc-steps button:disabled { cursor: default; opacity: .55; }
.rc-steps__n { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: var(--canvas); }
.rc-steps__t { font-size: 12px; line-height: 1.25; }
.rc-steps .is-done .rc-steps__n { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.rc-steps .is-current button { color: var(--ink); }
.rc-steps .is-current .rc-steps__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-bar { height: 3px; background: var(--line); margin-top: -16px; }
.rc-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease-out, ease); }
.rc-pane { display: grid; gap: 24px; min-width: 0; }

/* relecture */
.rc-syn__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rc-syn__head .rc-title { margin-top: 0; }
.rc-syn__block { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.rc-syn__bhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rc-syn__bhead h3 { font-size: 17px; }
.rc-syn__block dl { margin: 0; display: grid; }
.rc-syn__block dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rc-syn__block dt { font-size: 14px; color: var(--muted); }
.rc-syn__block dd { margin: 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.rc-syn__levels div { align-items: center; }
.rc-entry { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.rc-muted { color: var(--muted); font-size: 14px; }
.rc-para { white-space: pre-line; color: var(--secondary); overflow-wrap: anywhere; }
.rc-note { font-size: 14px; color: var(--secondary); padding: 14px 16px; background: var(--surface); }

/* envoi et confirmation */
.rc-send { display: grid; gap: 12px; padding: 24px; background: var(--surface); border-left: 3px solid var(--orange); }
.rc-send h3 { font-size: 18px; }
.rc-send p { color: var(--secondary); }
.rc-send__demo { font-size: 14px; padding: 10px 12px; border: 1px dashed var(--line); background: var(--canvas); color: var(--secondary); }
.rc-send__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rc-send__actions .btn[disabled] { opacity: .45; cursor: wait; }
.rc-feedback { padding: 12px 14px; font-size: 15px; font-weight: 500; }
.rc-feedback--warning { background: #fdf0dc; color: #7a3d00; }
.rc-feedback--error { background: #fbe9e7; color: #8a1c15; }
.rc-merci { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); background: var(--surface); min-width: 0; }
.rc-merci .rc-title { margin-top: -10px; }
.rc-merci p { color: var(--secondary); line-height: 1.6; }
.rc-merci__demo { justify-self: start; padding: 8px 12px; background: #fdf0dc; color: #7a3d00 !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.rc-ref { display: grid; gap: 10px; padding: 20px; background: var(--canvas); border: 1px solid var(--line); min-width: 0; }
.rc-ref__label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rc-ref__num { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rc-ref__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rc-ref__fb { font-size: 14px; color: #1f6b3a; }
.rc-mail { margin: 0; padding: 18px 20px; background: var(--canvas); border: 1px solid var(--line); font: 400 14px/1.6 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--secondary); }

/* colonne latérale */
.rc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.rc-aside__card { padding: 24px; background: var(--surface); display: grid; gap: 14px; }
.rc-aside__card--plain { background: var(--canvas); border: 1px solid var(--line); }
.rc-aside__card p { color: var(--secondary); font-size: 15px; line-height: 1.5; }
.rc-aside__card a { overflow-wrap: anywhere; }
.rc-next { display: grid; gap: 12px; counter-reset: n; }
.rc-next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--secondary); }
.rc-next li::before { content: counter(n); display: grid; place-items: center; width: 24px; height: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.rc-next strong { color: var(--ink); display: block; }

@media (max-width: 1099px) {
  .rc-layout { grid-template-columns: 1fr; }
  .rc-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .rc-intro__grid { grid-template-columns: 1fr; }
  .rc-steps { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .rc-steps__t { display: none; }
  .rc-steps__n { width: 100%; max-width: 28px; }
}
@media (max-width: 699px) {
  .rc-fields, .rc-field--pair { grid-template-columns: 1fr; }
  .rc-aside { grid-template-columns: 1fr; }
  .rc-route { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .rc-route__icon { width: 44px; height: 44px; }
  .rc-route__go { display: none; }
  .rc-level { grid-template-columns: 1fr; }
  .rc-lv { font-size: 12px; padding: 6px 4px; min-height: 44px; }
  .rc-badge { min-width: 0; }
  .rc-syn__block dl div { grid-template-columns: 1fr; gap: 2px; }
  .rc-record, .rc-send, .rc-revit, .rc-rgpd { padding: 16px; }
  .rc-nav .btn, .rc-send__actions .btn, .rc-actions .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; }
  .rc-steps { gap: 2px; }
}
@media print {
  .site-header, .site-footer, .call-float, .rc-aside, .rc-intro, .rc-steps, .rc-bar, .rc-nav, .rc-send, .rc-syn__tools, .rc-link, .rc-ref__actions, .page-hero, .mobile-menu, .skip-link { display: none !important; }
  .rc-layout { display: block; }
  .rc-merci { background: none; padding: 0; }
  body { font-size: 12pt; }
}
