/* ARES – Test d'orientation RIASEC */
.ares-test {
	--navy: #1d1a6e; --blue: #0b45d6; --ink: #17173a; --muted: #5d5d7a; --tint: #f4f5fc; --line: #e3e5f2;
	max-width: 760px; margin: 0 auto; background: #fff; border-radius: 26px;
	box-shadow: 0 24px 60px rgba(29, 26, 110, .14); padding: clamp(22px, 4vw, 44px);
	font-family: "Nunito", system-ui, sans-serif; color: var(--ink); position: relative; overflow: hidden;
}
.ares-test::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #2A9D8F 0 16.6%, #3D5A80 16.6% 33.3%, #E76F51 33.3% 50%, #F4A261 50% 66.6%, #E63946 66.6% 83.3%, #6C5B7B 83.3%); }
.ares-test * { box-sizing: border-box; }
.at-screen { display: none; }
.at-screen.is-active { display: block; animation: at-in .45s cubic-bezier(.2, .8, .2, 1); }
.at-screen.at-anim .at-question, .at-screen.at-anim .at-options { animation: at-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes at-in { from { opacity: 0; transform: translateY(14px); } }

.at-eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 99px; background: #ffc400; color: var(--navy); font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ares-test .at-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.15; margin: 0 0 12px; }
.at-lede { color: var(--muted); font-size: 17px; margin: 0 0 22px; }

.at-bubbles { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.at-bubbles span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50% 50% 50% 14%; color: #fff; font-weight: 900; font-size: 20px; animation: at-bounce 2.4s ease-in-out infinite; }
.at-bubbles span:nth-child(1) { background: #2A9D8F; } .at-bubbles span:nth-child(2) { background: #3D5A80; animation-delay: .1s; }
.at-bubbles span:nth-child(3) { background: #E76F51; animation-delay: .2s; } .at-bubbles span:nth-child(4) { background: #F4A261; animation-delay: .3s; }
.at-bubbles span:nth-child(5) { background: #E63946; animation-delay: .4s; } .at-bubbles span:nth-child(6) { background: #6C5B7B; animation-delay: .5s; }
@keyframes at-bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-8px); } }

.at-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.at-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.at-steps strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--navy); font-weight: 900; flex: none; }

/* boutons */
.ares-test .at-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; border: 2px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff;
	font-family: inherit; font-weight: 900; font-size: 16px; cursor: pointer; text-decoration: none;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background .3s;
}
.ares-test .at-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29, 26, 110, .25); background: #2c27a3; color: #fff; }
.ares-test .at-btn--ghost { background: #fff; color: var(--navy); }
.ares-test .at-btn--ghost:hover { background: var(--tint); color: var(--navy); }
.ares-test .at-back { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border: 0; border-radius: 50%; background: var(--tint); color: var(--navy); font-size: 20px; font-weight: 900; cursor: pointer; padding: 0; line-height: 1; }
.ares-test .at-back:hover { background: var(--line); color: var(--navy); }

/* formulaire */
.at-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.at-field--full { grid-column: 1 / -1; }
.at-field label { display: block; font-weight: 800; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.at-opt { font-weight: 600; color: var(--muted); }
.ares-test input, .ares-test select {
	width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 12px; background: var(--tint);
	font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.ares-test select, .ares-test input { height: auto !important; min-height: 52px; line-height: 1.4 !important; }
.ares-test select { padding-right: 36px; }
.ares-test input:focus, .ares-test select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(11, 69, 214, .12); }
.ares-test .is-error { border-color: #e8230e; animation: at-shake .35s; }
@keyframes at-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.at-tel { display: flex; }
.at-tel span { display: grid; place-items: center; padding: 0 14px; border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: #fff; font-weight: 800; color: var(--navy); }
.at-tel input { border-radius: 0 12px 12px 0; }
.at-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.at-consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.5; cursor: pointer; }
.ares-test .at-consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--blue); }
.at-consent a { color: var(--blue); font-weight: 800; }
.at-consent.is-error { border-color: #e8230e; animation: at-shake .35s; }
.at-error { grid-column: 1 / -1; margin: 0; color: #e8230e; font-weight: 800; min-height: 1em; }
.at-form .at-btn { grid-column: 1 / -1; justify-self: start; }

/* questions */
.at-progress { height: 8px; border-radius: 8px; background: var(--tint); overflow: hidden; margin-bottom: 18px; }
.at-progress span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #0b45d6, #5fb80b); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.at-qhead { display: flex; align-items: center; gap: 14px; }
.at-qhead .at-back { margin: 0; }
.at-count { margin: 0; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.ares-test .at-question { font-size: clamp(22px, 3vw, 28px); font-weight: 900; color: var(--navy); margin: 18px 0; line-height: 1.25; }
.at-options { display: grid; gap: 10px; }
.ares-test .at-option, .ares-test .at-review-row {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px;
	border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
	font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4;
	transition: border-color .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background .2s;
}
.ares-test .at-option:hover, .ares-test .at-review-row:hover { border-color: var(--c); transform: translateX(4px); box-shadow: 0 8px 20px rgba(29, 26, 110, .1); background: #fff; color: var(--ink); }
.ares-test .at-option.is-selected { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.at-chip { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 14%; background: var(--c); color: #fff; font-weight: 900; font-size: 16px; }

/* vérification */
.at-review { display: grid; gap: 10px; margin-bottom: 22px; }
.at-review-text { flex: 1; display: grid; }
.at-review-q { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.at-review-a { font-size: 15px; }
.at-review-edit { font-size: 13px; font-weight: 800; color: var(--blue); }

/* résultat */
.at-result-head { text-align: center; }
.at-code { display: flex; justify-content: center; gap: 6px; font-size: clamp(54px, 9vw, 80px); font-weight: 900; line-height: 1; margin: 6px 0 8px; }
.at-code span { display: inline-block; animation: at-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes at-pop { from { opacity: 0; transform: scale(.3) rotate(-15deg); } }
.at-code-sub { color: var(--muted); font-weight: 800; font-size: 17px; margin: 0; }
.at-radar { max-width: 320px; margin: 14px auto 6px; }
.at-radar svg { width: 100%; height: auto; display: block; font-family: "Nunito", sans-serif; }
.at-radar-shape { transform-origin: 150px 150px; animation: at-grow .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes at-grow { from { transform: scale(0); opacity: 0; } }
.at-profiles { display: grid; gap: 16px; margin-top: 10px; }
.at-profile { border: 2px solid var(--line); border-left: 6px solid var(--c); border-radius: 16px; padding: 18px 20px; }
.at-profile-head { display: flex; gap: 14px; align-items: flex-start; }
.ares-test .at-profile h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 900; color: var(--navy); }
.at-profile p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.at-profile-dom { font-size: 14.5px !important; }
.at-profile-dom strong { color: var(--ink); }
.at-sect-title { font-weight: 900 !important; color: var(--navy) !important; margin-top: 6px !important; }
.at-sect { border-radius: 12px; background: var(--tint); margin-top: 8px; overflow: hidden; }
.at-sect summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 44px 12px 14px; position: relative; }
.at-sect summary::-webkit-details-marker { display: none; }
.at-sect summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-weight: 900; font-size: 20px; color: var(--c); transition: transform .25s; }
.at-sect[open] summary::after { transform: rotate(45deg); }
.at-sect-name { font-weight: 900; color: var(--navy); }
.at-sect-tag { font-size: 13.5px; color: var(--muted); }
.at-sect-body { padding: 0 14px 14px; }
.at-sect-sub { font-size: 12px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: .05em; color: var(--ink) !important; margin: 0 0 4px !important; }
.at-sect-body ul { margin: 0 0 10px; padding-left: 20px; }
.at-sect-body li { font-weight: 700; font-size: 14.5px; margin: 2px 0; }
.ares-test .at-sect-link { font-weight: 900; color: var(--blue); text-decoration: none; }
.ares-test .at-sect-link:hover { text-decoration: underline; }
/* invitation pour les visiteurs sans compte */
.at-gate { text-align: center; }
.at-gate .at-bubbles { justify-content: center; }
.at-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 6px 0 18px; }
.at-gate__mini { margin: 0; color: var(--muted); font-weight: 700; }
.at-gate__mini a { color: var(--blue); font-weight: 900; }

/* vidéos proposées */
.at-videos:empty { display: none; }
.at-videos { margin-top: 26px; padding: 22px; border-radius: 18px; background: var(--navy); color: #fff; }
.ares-test .at-videos-title { margin: 0 0 4px; font-size: 21px; font-weight: 900; color: #fff; }
.at-videos-lede { margin: 0 0 16px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.at-videos .at-sect-link { display: inline-block; margin-top: 14px; color: #ffc400; }
.at-sect-sub--videos { margin-top: 12px !important; }
.at-vrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ares-test .at-vcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.at-vcard-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #2c27a3; }
.at-vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.at-vcard:hover .at-vcard-media img { transform: scale(1.08); }
.at-vcard-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%; background: #e8230e; }
.at-vcard-play::before { content: ""; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }
.at-vcard-time { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 800; }
.at-vcard-title { font-weight: 900; font-size: 14px; line-height: 1.3; color: var(--navy); }
.at-vcard-meta { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.at-videos .at-vcard-title { color: #fff; }
.at-videos .at-vcard-meta { color: rgba(255, 255, 255, .7); }
.at-status { margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-align: center; }
.at-status:empty { display: none; }
.at-status.is-wait { background: var(--tint); color: var(--muted); }
.at-status.is-ok { background: #e9f6dc; color: #2e6b00; }
.at-status.is-error { background: #fdecea; color: #a3190a; }
.at-end { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

@media (max-width: 600px) {
	.at-form { grid-template-columns: 1fr; }
	.at-form .at-btn, .at-end .at-btn { width: 100%; }
	.ares-test .at-option { font-size: 15px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ares-test *, .ares-test *::before { animation: none !important; transition: none !important; }
}
