/* Test psychotechnique — styles propres à la page, construits sur les variables de styles.css */
/* Menu à 8 liens : garder chaque lien sur une ligne */
.desktop-nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .desktop-nav { gap: 0; } .desktop-nav a { padding: 10px 8px; font-size: .88rem; } .desktop-nav a::after { right: 8px; left: 8px; } .site-header { gap: 18px; } }

.psy-hero { min-height: 470px; }
.psy-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.psy-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 650; }
.psy-hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.psy-hero-facts svg { width: 17px; height: 17px; color: #83d0f8; }

.psy-section { padding-top: 72px; }
#psy-app { scroll-margin-top: 110px; }
.psy-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.psy-head h2 { margin: 0; color: var(--navy); font-size: 2.35rem; }
.psy-head p { max-width: 560px; margin: 10px 0 0; color: var(--muted); }

/* Pendant le test : le bandeau disparaît pour garder l'attention sur les questions */
.psy-running .psy-hero, .psy-running .psy-guide { display: none; }
.psy-running .psy-section { padding-top: 118px; }

/* Accueil */
/* Choix du niveau */
.psy-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.psy-level { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 20px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: left; transition: border-color 160ms, background 160ms; }
.psy-level:hover { border-color: #98aabc; }
.psy-level strong { color: var(--navy); font-size: 1.2rem; font-weight: 850; }
.psy-level > span:not(.psy-dots) { color: var(--muted); font-size: .9rem; }
.psy-level small { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--blue-dark); font-size: .84rem; font-weight: 700; }
.psy-level small svg { width: 15px; height: 15px; }
.psy-dots { display: flex; gap: 4px; margin-bottom: 6px; }
.psy-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.psy-dots i.on { background: var(--blue); }
.psy-level { cursor: pointer; }
.psy-level:hover, .psy-level:focus-visible { border-color: var(--blue); background: var(--soft-blue); }
.psy-level[aria-pressed="true"] { border-color: #8fb9d8; }
.psy-level em { color: var(--green); font-size: .84rem; font-style: normal; font-weight: 700; }
.psy-level-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 14px; border-radius: var(--radius); background: var(--blue); color: #fff; font-size: .9rem; font-weight: 800; }
.psy-level-go svg { width: 16px; height: 16px; }

.psy-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.psy-part { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.psy-part > svg { width: 28px; height: 28px; margin-bottom: 14px; color: var(--blue); }
.psy-part > span { color: var(--muted); font-size: .84rem; font-weight: 650; }
.psy-part h3 { margin: 0; color: var(--navy); font-size: 1.2rem; font-weight: 850; }
.psy-part p { margin: 0; color: var(--muted); font-size: .9rem; }

.psy-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; margin-top: 22px; }
.psy-rules { padding: 26px; border-radius: 8px; background: var(--wash); }
.psy-rules h3 { margin: 0 0 14px; color: var(--navy); font-size: 1.15rem; font-weight: 850; }
.psy-rules ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.psy-rules li { display: flex; gap: 10px; color: var(--ink); font-size: .95rem; }
.psy-rules li svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.psy-sample { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px dashed #b9c4d0; border-radius: 8px; background: var(--paper); }
.psy-sample > span { color: var(--blue-dark); font-size: .84rem; font-weight: 650; }
.psy-sample p { margin: 0; color: var(--navy); font-weight: 700; }
.psy-sample-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.psy-sample-opts span { min-width: 54px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.psy-sample-opts span.is-good { border-color: var(--green); background: var(--soft-green); color: var(--green); }
.psy-sample small { color: var(--muted); }
.psy-start { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.psy-start .btn { min-height: 52px; padding: 13px 24px; font-size: 1rem; }
.psy-note { color: var(--muted); font-size: .88rem; }

/* Écran de partie */
.psy-part-intro { position: relative; display: grid; gap: 14px; overflow: hidden; padding: 44px; border-radius: 8px; background: var(--navy); color: #fff; }
.psy-part-intro::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tricolor); }
.psy-part-intro h2 { margin: 0; color: #fff; font-size: 2.6rem; }
.psy-part-intro > p:not(.eyebrow) { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); }
.psy-part-intro .eyebrow { margin-bottom: 0; }
.psy-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.psy-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); font-size: .9rem; font-weight: 650; }
.psy-chips svg { width: 16px; height: 16px; color: #83d0f8; }
.psy-part-intro .btn { justify-self: start; margin-top: 8px; }

/* Barre d'état pendant le test */
.psy-status { position: sticky; z-index: 20; top: 100px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; margin-bottom: 18px; padding: 14px 18px 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(16,28,44,.08); backdrop-filter: blur(10px); }
.psy-status strong { color: var(--navy); font-size: .98rem; }
.psy-status small { display: block; color: var(--muted); font-size: .84rem; font-weight: 600; }
.psy-timer { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius); background: var(--soft-blue); color: var(--blue-dark); font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.psy-timer svg { width: 18px; height: 18px; }
.psy-timer.is-low { background: #fff1e0; color: #a35d00; }
.psy-progress { grid-column: 1 / -1; height: 4px; margin: 12px -18px 0; overflow: hidden; border-radius: 0 0 8px 8px; background: var(--wash); }
.psy-progress i { display: block; width: 0; height: 100%; background: var(--tricolor); background-size: 1200px 100%; transition: width .3s; }

/* Question */
.psy-card { display: grid; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.psy-card > span { color: var(--blue-dark); font-size: .86rem; font-weight: 650; }
.psy-card h2 { margin: -12px 0 0; color: var(--navy); font-size: 1.45rem; font-weight: 750; line-height: 1.35; }
.psy-seq { display: flex; flex-wrap: wrap; gap: 8px; }
.psy-seq span, .psy-grid span { display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 12px; border-radius: var(--radius); background: var(--soft-blue); color: var(--navy); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.psy-seq span.is-ask, .psy-grid span.is-ask { background: var(--amber); color: var(--navy); }
.psy-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.psy-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.psy-opt { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-align: left; font-size: 1rem; font-weight: 600; transition: border-color 160ms, background 160ms; }
.psy-opt:hover { border-color: #98aabc; }
.psy-opt b { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: var(--radius); background: var(--wash); color: var(--navy); font-size: .88rem; }
.psy-opt span { min-width: 0; overflow-wrap: anywhere; }
.psy-opt[aria-pressed="true"] { border-color: var(--blue); background: var(--soft-blue); }
.psy-opt[aria-pressed="true"] b { background: var(--blue); color: #fff; }
.psy-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }

/* Résultats */
.psy-score { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 30px; overflow: hidden; padding: 36px; border-radius: 8px; background: var(--navy); color: #fff; }
.psy-score::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tricolor); }
.psy-ring { width: 150px; height: 150px; }
.psy-ring text { fill: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; font-weight: 800; }
.psy-score h2 { margin: 0 0 10px; color: #fff; font-size: 2.3rem; }
.psy-score p:not(.eyebrow) { margin: 0 0 6px; color: rgba(255,255,255,.78); }
.psy-score .eyebrow { margin-bottom: 10px; }
.psy-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.psy-bd { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.psy-bd > span { color: var(--muted); font-size: .84rem; font-weight: 650; }
.psy-bd strong { color: var(--navy); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.psy-bd strong small { color: var(--muted); font-size: .95rem; font-weight: 700; }
.psy-bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--wash); }
.psy-bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--blue); }
.psy-bd.is-weak { border-color: #f0c68a; background: #fffaf2; }
.psy-bd.is-weak .psy-bar i { background: var(--amber); }
.psy-bd em { color: #a35d00; font-size: .8rem; font-style: normal; font-weight: 700; }
.psy-imgbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 26px; margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.psy-imgform { display: grid; gap: 10px; min-width: 0; }
.psy-imgform h3 { margin: 0; color: var(--navy); font-size: 1.3rem; font-weight: 850; }
.psy-imgform > p:not(.psy-note) { margin: 0; color: var(--muted); }
.psy-imgform label { margin-top: 6px; color: var(--navy); font-size: .9rem; font-weight: 750; }
.psy-imgform input { width: 100%; max-width: 420px; min-height: 48px; padding: 10px 14px; border: 1px solid #b9c4d0; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 1rem; }
.psy-imgform input:focus { border-color: var(--blue); outline: 3px solid var(--soft-blue); }
.psy-imgform .psy-note { margin: 0; }
.psy-imgprev { display: grid; justify-items: center; }
.psy-imgprev img { width: 100%; max-width: 270px; height: auto; border-radius: 8px; box-shadow: 0 14px 40px rgba(16,28,44,.22); background: var(--navy); }
.psy-next { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; margin-top: 18px; }
.psy-box { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.psy-box.is-soft { border-color: transparent; background: var(--wash); }
.psy-box h3 { margin: 0; color: var(--navy); font-size: 1.3rem; font-weight: 850; }
.psy-box p { margin: 0; color: var(--muted); }
.psy-box .btn { justify-self: start; }
.psy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.psy-phone { color: var(--navy); font-size: 1.1rem; font-weight: 800; user-select: all; }
.psy-corr { margin-top: 26px; border-top: 1px solid var(--line); }
.psy-corr summary { padding: 20px 0; color: var(--navy); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.psy-ci { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.psy-ci p { margin: 0; }
.psy-ci .psy-exp { color: var(--muted); font-size: .94rem; }
.psy-tag { justify-self: start; padding: 3px 9px; border-radius: 4px; font-size: .78rem; font-weight: 800; }
.psy-tag.ok { background: var(--soft-green); color: var(--green); }
.psy-tag.ko { background: #fdecea; color: #b2412f; }
.psy-tag.na { background: var(--wash); color: var(--muted); }
.psy-disclaimer { margin: 30px 0 0; color: var(--muted); font-size: .84rem; }
.psy-fade { animation: psyFade .25s ease; }
@keyframes psyFade { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .psy-parts, .psy-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .psy-hero { min-height: 470px; }
  .psy-section { padding-top: 48px; }
  .psy-running .psy-section { padding-top: 96px; }
  .psy-head h2 { font-size: 1.85rem; }
  .psy-intro, .psy-next, .psy-opts, .psy-levels, .psy-imgbox { grid-template-columns: minmax(0, 1fr); }
  .psy-imgbox { padding: 20px; }
  .psy-imgprev img { max-width: 220px; }
  .psy-imgprev img.is-square { max-width: 100%; }
  .psy-parts { grid-template-columns: minmax(0, 1fr); }
  .psy-part-intro, .psy-score { padding: 28px 22px; }
  .psy-part-intro h2 { font-size: 2rem; }
  .psy-score { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 18px; }
  .psy-score h2 { font-size: 1.85rem; }
  .psy-status { top: 82px; padding: 12px 14px 0; }
  .psy-progress { margin: 10px -14px 0; }
  .psy-card { padding: 22px 18px; }
  .psy-card h2 { font-size: 1.22rem; }
  .psy-nav .btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { .psy-fade { animation: none; } .psy-progress i { transition: none; } }

/* Conseils et FAQ */
.psy-guide { padding-top: 24px; }
.psy-guide-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; padding-top: 56px; border-top: 1px solid var(--line); }
.psy-guide-intro h2 { margin: 0 0 18px; color: var(--navy); font-size: 2.35rem; }
.psy-guide-intro > p:not(.eyebrow) { max-width: 640px; color: var(--muted); }
.psy-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.psy-types span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--soft-blue); color: var(--navy); font-size: .9rem; font-weight: 700; }
.psy-types svg { width: 17px; height: 17px; color: var(--blue); }
.psy-tips { padding: 28px; border-radius: 8px; background: var(--navy); color: rgba(255,255,255,.8); }
.psy-tips h3 { margin: 0 0 16px; color: #fff; font-size: 1.3rem; font-weight: 850; }
.psy-tips ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.psy-tips li { position: relative; padding-left: 42px; font-size: .95rem; counter-increment: tip; }
.psy-tips li::before { content: counter(tip); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); background: var(--amber); color: var(--navy); font-weight: 900; font-size: .9rem; }
.psy-tips strong { color: #fff; }
.psy-faq { margin-top: 56px; }
.psy-faq h2 { margin: 0 0 18px; color: var(--navy); font-size: 2rem; }
.psy-faq details { border-top: 1px solid var(--line); }
.psy-faq details:last-child { border-bottom: 1px solid var(--line); }
.psy-faq summary { padding: 18px 34px 18px 0; position: relative; color: var(--navy); font-weight: 750; cursor: pointer; list-style: none; }
.psy-faq summary::-webkit-details-marker { display: none; }
.psy-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--blue); font-size: 1.5rem; font-weight: 500; }
.psy-faq details[open] summary::after { content: "−"; }
.psy-faq details p { max-width: 760px; margin: 0 0 18px; color: var(--muted); }
.psy-faq a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .psy-guide-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .psy-guide-intro h2 { font-size: 1.85rem; }
  .psy-faq h2 { font-size: 1.6rem; }
  .psy-tips { padding: 22px; }
}

/* Format de l'image */
.psy-label { margin-top: 6px; color: var(--navy); font-size: .9rem; font-weight: 750; }
.psy-seg { display: inline-flex; justify-self: start; padding: 4px; border-radius: 8px; background: var(--wash); gap: 4px; flex-wrap: wrap; }
.psy-seg button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: .9rem; font-weight: 750; }
.psy-seg button[aria-pressed="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 2px 8px rgba(16,28,44,.12); }
.psy-imgprev img.is-square { max-width: 300px; }

/* Questions sans réponse */
.psy-pips { display: flex; gap: 4px; margin-top: 8px; }
.psy-pips i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.psy-pips i.on { background: var(--blue); }
.psy-pips i.cur { outline: 2px solid var(--amber); outline-offset: 1px; }
.psy-warn { display: grid; gap: 12px; margin-top: 14px; padding: 18px 20px; border: 1px solid #f0c68a; border-radius: 8px; background: #fffaf2; }
.psy-warn p { margin: 0; color: #7a4a00; font-weight: 650; }
.psy-warn[hidden] { display: none; }

/* ===== Finitions et animations ===== */
.psy-hero { position: relative; overflow: hidden; }
.psy-hero .contact-hero-copy { position: relative; z-index: 1; }
.psy-hero-visual { position: absolute; z-index: 0; right: max(24px, calc((100vw - var(--container)) / 2)); bottom: 70px; width: 360px; display: none; }
.psy-mock { position: relative; z-index: 1; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: psyFloat 6s ease-in-out infinite; }
.psy-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.psy-mock-top span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.psy-mock-top b { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: var(--soft-blue); color: var(--blue-dark); font-size: .85rem; font-variant-numeric: tabular-nums; }
.psy-mock-top b svg { width: 14px; height: 14px; }
.psy-hero .psy-mock p { max-width: none; margin: 0 0 12px; color: var(--navy); font-size: 1.02rem; font-weight: 750; line-height: 1.35; }
.psy-mock ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.psy-mock li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; font-weight: 650; }
.psy-mock li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--wash); font-size: .72rem; }
.psy-mock li.is-on { border-color: var(--blue); background: var(--soft-blue); }
.psy-mock li.is-on b { background: var(--blue); color: #fff; }
.psy-mock-pips { display: flex; gap: 4px; margin-top: 14px; }
.psy-mock-pips i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.psy-mock-pips i.on { background: var(--blue); }
.psy-mock-badge { position: absolute; z-index: 2; left: -46px; top: -34px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 10px; background: var(--amber); color: var(--navy); box-shadow: 0 18px 40px rgba(0,0,0,.3); animation: psyFloat 6s ease-in-out -3s infinite; }
.psy-mock-badge small { font-size: .72rem; font-weight: 800; }
.psy-mock-badge strong { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 1180px) { .psy-hero-visual { display: block; } .psy-hero .contact-hero-copy { max-width: 700px; } }
@keyframes psyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.psy-hero .contact-hero-copy > * { animation: psyRise .6s cubic-bezier(.2,.7,.2,1) both; }
.psy-hero .contact-hero-copy > *:nth-child(2) { animation-delay: .06s; }
.psy-hero .contact-hero-copy > *:nth-child(3) { animation-delay: .12s; }
.psy-hero .contact-hero-copy > *:nth-child(4) { animation-delay: .18s; }
.psy-hero .contact-hero-copy > *:nth-child(5) { animation-delay: .24s; }
@keyframes psyRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn svg { transition: transform 180ms; }
.btn:hover svg.lucide-arrow-right { transform: translateX(3px); }
.btn:hover svg.lucide-arrow-left { transform: translateX(-3px); }
.btn:hover svg.lucide-refresh-cw { transform: rotate(90deg); }

.psy-part, .psy-level, .psy-bd { transition: transform 200ms, box-shadow 200ms, border-color 200ms, background 200ms; }
.psy-part:hover, .psy-level:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,28,44,.09); }
.psy-part > svg { width: 48px; height: 48px; padding: 11px; border-radius: 10px; background: var(--soft-blue); }
.psy-parts > *, .psy-levels > *, .psy-breakdown > * { animation: psyRise .5s cubic-bezier(.2,.7,.2,1) both; }
.psy-parts > *:nth-child(2), .psy-levels > *:nth-child(2), .psy-breakdown > *:nth-child(2) { animation-delay: .07s; }
.psy-parts > *:nth-child(3), .psy-levels > *:nth-child(3), .psy-breakdown > *:nth-child(3) { animation-delay: .14s; }
.psy-parts > *:nth-child(4), .psy-breakdown > *:nth-child(4) { animation-delay: .21s; }
.psy-level strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.psy-level mark { padding: 2px 8px; border-radius: 99px; background: var(--soft-green); color: var(--green); font-size: .72rem; font-weight: 800; }
.psy-level:hover .psy-level-go svg { transform: translateX(3px); }
.psy-level-go svg { transition: transform 180ms; }

.psy-part-intro { isolation: isolate; }
.psy-part-intro::after { content: attr(data-n); position: absolute; z-index: -1; right: 28px; bottom: -40px; color: rgba(255,255,255,.06); font-size: 13rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.psy-part-intro > * { animation: psyRise .5s cubic-bezier(.2,.7,.2,1) both; }
.psy-part-intro > *:nth-child(2) { animation-delay: .06s; }
.psy-part-intro > *:nth-child(3) { animation-delay: .12s; }
.psy-part-intro > *:nth-child(4) { animation-delay: .18s; }
.psy-part-intro > *:nth-child(5) { animation-delay: .24s; }

.psy-card { position: relative; overflow: hidden; }
.psy-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tricolor); }
.psy-card.from-right { animation: psyInRight .32s cubic-bezier(.2,.7,.2,1); }
.psy-card.from-left { animation: psyInLeft .32s cubic-bezier(.2,.7,.2,1); }
@keyframes psyInRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes psyInLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.psy-opt { transition: border-color 160ms, background 160ms, transform 160ms, box-shadow 160ms; }
.psy-opt:hover { transform: translateX(3px); box-shadow: 0 6px 16px rgba(16,28,44,.06); }
.psy-opt b { transition: background 160ms, color 160ms; }
.psy-opt[aria-pressed="true"] b { animation: psyPop .28s cubic-bezier(.2,.9,.3,1.4); }
@keyframes psyPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.psy-seq span, .psy-grid span { animation: psyRise .4s cubic-bezier(.2,.7,.2,1) both; }
.psy-seq span:nth-child(2) { animation-delay: .04s; } .psy-seq span:nth-child(3) { animation-delay: .08s; } .psy-seq span:nth-child(4) { animation-delay: .12s; } .psy-seq span:nth-child(5) { animation-delay: .16s; } .psy-seq span:nth-child(6) { animation-delay: .2s; } .psy-seq span:nth-child(7) { animation-delay: .24s; }
.psy-seq span.is-ask, .psy-grid span.is-ask { animation: psyRise .4s cubic-bezier(.2,.7,.2,1) .28s both, psyGlow 2.4s ease-in-out .8s infinite; }
@keyframes psyGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(231,165,44,.0); } 50% { box-shadow: 0 0 0 6px rgba(231,165,44,.22); } }

.psy-timer { transition: background 200ms, color 200ms; }
.psy-timer.is-low { animation: psyPulse 1s ease-in-out infinite; }
.psy-timer.is-crit { background: #fdecea; color: #b2412f; }
@keyframes psyPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.psy-pips i { transition: background 200ms; }
.psy-warn { animation: psyRise .3s ease both; }

.psy-ring-arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1) .15s; }
.psy-bar i { transition: width .9s cubic-bezier(.2,.7,.2,1) .25s; }
.psy-score > * { animation: psyRise .55s cubic-bezier(.2,.7,.2,1) both; }
.psy-score > *:nth-child(2) { animation-delay: .1s; }
.psy-imgprev img { transition: transform 240ms, box-shadow 240ms; }
.psy-imgprev img:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 22px 50px rgba(16,28,44,.28); }

@media (prefers-reduced-motion: reduce) {
  .psy-mock, .psy-mock-badge, .psy-timer.is-low, .psy-seq span.is-ask, .psy-grid span.is-ask { animation: none; }
  .psy-hero .contact-hero-copy > *, .psy-parts > *, .psy-levels > *, .psy-breakdown > *, .psy-part-intro > *, .psy-card.from-right, .psy-card.from-left, .psy-seq span, .psy-grid span, .psy-score > *, .psy-warn { animation: none; }
  .psy-part:hover, .psy-level:hover, .psy-opt:hover, .psy-imgprev img:hover { transform: none; }
}

/* Cartes de niveau : éléments du bas alignés d'une carte à l'autre */
.psy-level > span:not(.psy-dots) { flex: 1 1 auto; }
.psy-level em.is-empty { visibility: hidden; }

/* Pendant le test, le bouton WhatsApp flottant ne doit pas recouvrir « Suivante » */
.psy-running .mobile-whatsapp { display: none; }
