/* Page Candidats (hub) : offres à la une, simulateur Praia, démarches, accompagnement */
.hub-lead { margin-bottom: 1.5rem; }
.hub-offres { margin-top: 1rem; }
.hub-more { margin: 1.5rem 0 0; }
.hub-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .9rem; max-width: 70ch; }
.cards ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.liste-titre { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.sim-fields { display: grid; gap: .9rem; }
.sim-f { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: .2rem .9rem; align-items: center; }
.sim-f label { margin: 0; }
.sim-f input { text-align: right; font-variant-numeric: tabular-nums; min-height: 42px; }
.sim-f small { grid-column: 1 / -1; color: var(--muted); }
.sim-out { background: var(--pale); border: 1px solid var(--rule); padding: 1.4rem; }
.sim-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.sim-row span:last-child { text-align: right; }
.sim-big { display: grid; gap: 1rem; margin-top: 1.2rem; }
.sim-big div { border-left: 4px solid var(--lime); padding-left: .8rem; }
.sim-big strong { display: block; font-size: 1.45rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sim-big span { color: var(--muted); font-size: .9rem; }
.sim-hyp { margin: 1rem 0 0; color: #8c490b; font-size: .88rem; }
@media (max-width: 760px) { .sim { grid-template-columns: minmax(0, 1fr); } }

/* Simulateur compact et animé */
.sim { max-width: 62rem; gap: clamp(1rem, 2.5vw, 2rem); }
.sim-fields { gap: .7rem; }
.sim-f { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .15rem .8rem; }
.sim-f label { font-size: .95rem; }
.sim-f input[data-id] { min-height: 38px; padding: .3rem .5rem; }
.sim-f small { font-size: .8rem; }
.sim-range { grid-column: 1 / -1; width: 100%; height: 22px; padding: 0; border: 0; background: transparent; accent-color: var(--pine); -webkit-appearance: none; appearance: none; cursor: pointer; }
.sim-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pine) var(--p, 0%), var(--rule) var(--p, 0%)); }
.sim-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--rule); }
.sim-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--pine); }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--lime); border: 3px solid var(--pine); transition: transform .15s; }
.sim-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--pine); }
.sim-range:active::-webkit-slider-thumb { transform: scale(1.25); }
.sim-out { position: sticky; top: 1.5rem; padding: 1.2rem; }
.sim-bar { display: flex; height: 14px; margin: .8rem 0 .6rem; border-radius: 99px; overflow: hidden; background: var(--rule); }
.sim-bar span { display: block; height: 100%; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.sim-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0 0 .6rem; padding: 0; list-style: none; font-size: .78rem; color: var(--muted); }
.sim-legend li { display: flex; align-items: center; gap: .35rem; }
.sim-legend i { width: 9px; height: 9px; border-radius: 50%; }
.sim-row { font-size: .92rem; padding: .4rem 0; }
.sim-row small { color: var(--muted); }
.sim-big strong { font-size: 1.3rem; }
.sim-big strong.pop { animation: sim-pop .35s ease-out; }
@keyframes sim-pop { 0% { transform: translateY(3px); opacity: .6; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sim-bar span, .sim-big strong.pop { transition: none; animation: none; } }

/* Espaces resserrés, paragraphes pleine largeur */
.hub-lead, .hub-note { max-width: none; }
.careers .section { padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.careers .mu { padding-block: 1.5rem 2.25rem; }
.careers .mu .mu-feat { margin-top: 0; }
.careers .mu .mu-feat h3 { margin-bottom: 1rem; }
.hub-lead { margin-block: .8rem 1.25rem; }
.sim-fields { align-content: start; }

/* Motion : apparition en cascade, survol, pastilles numérotées */
.js-motion [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
#demarches .cards article, #accompagnement .cards article { transition: transform .25s ease, box-shadow .25s ease; }
.js-motion #demarches .cards article[data-reveal], .js-motion #accompagnement .cards article[data-reveal] { transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), box-shadow .25s ease; }
#demarches .cards article:hover, #accompagnement .cards article:hover { transform: translateY(-5px); box-shadow: 0 12px 24px -14px rgba(19, 60, 49, .45); }
.js-motion #demarches .cards article.in:hover, .js-motion #accompagnement .cards article.in:hover { transform: translateY(-5px); transition-delay: 0ms; }
#demarches .arrow { transition: letter-spacing .25s; }
#demarches .arrow:hover { letter-spacing: .02em; }
#accompagnement .cards { counter-reset: etape; margin-top: 2.2rem; }
#accompagnement .cards article { counter-increment: etape; position: relative; }
#accompagnement .cards article::before { content: counter(etape); position: absolute; top: -1.1rem; left: 1.2rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--dark); border: 3px solid var(--pine); font-weight: 700; }
.js-motion #accompagnement .cards article::before { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0ms) + .25s); }
.js-motion #accompagnement .cards article.in::before { transform: scale(1); }
#accompagnement .cards h3 { margin-top: .6rem; }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Héros façon vitrine : titre à accent italique, photo en arche, orbites, pastille */
.cand-hero h1 span { font: italic 400 1.04em/1 Georgia, serif; color: var(--lime); }
.cand-hero .button { border-radius: 999px; padding-inline: 1.5rem; }
.cand-hero .secondary { text-decoration: none; border-bottom: 1px solid transparent; }
.cand-hero .secondary:hover { border-bottom-color: currentColor; }
.cand-photo { position: relative; justify-content: center; }
.cand-photo img { position: relative; z-index: 1; border-radius: 999px 999px 22px 22px; }
.cand-orbit { position: absolute; inset: -4% -22%; border: 1px solid rgba(234, 213, 161, .3); border-radius: 50%; transform: rotate(-24deg) scaleY(.7); animation: orbite 60s linear infinite; pointer-events: none; }
.cand-orbit.o2 { inset: 6% -12%; transform: rotate(30deg) scaleY(.55); animation-duration: 80s; animation-direction: reverse; border-color: rgba(234, 213, 161, .2); }
@keyframes orbite { to { transform: rotate(336deg) scaleY(.7); } }
.cand-orbit.o2 { animation-name: orbite2; }
@keyframes orbite2 { to { transform: rotate(390deg) scaleY(.55); } }
.cand-badge { position: absolute; z-index: 2; right: 0; bottom: 1.4rem; background: var(--lime); color: var(--dark); padding: .45rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-6px); } }
@media (max-width: 860px) { .cand-orbit { display: none; } }

/* Barre d'ancres collée en haut */
.hub-nav { position: sticky; top: 0; z-index: 20; background: var(--dark); color: var(--paper); border-block: 1px solid rgba(234, 213, 161, .25); }
.hub-nav .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-nav a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: 1rem 1.1rem; text-decoration: none; font-weight: 560; border-left: 1px solid rgba(234, 213, 161, .2); transition: background .2s, color .2s; }
.hub-nav a:last-child { border-right: 1px solid rgba(234, 213, 161, .2); }
.hub-nav a:hover { background: rgba(234, 213, 161, .1); }
.hub-nav a[aria-current] { color: var(--lime); box-shadow: inset 0 -3px 0 var(--lime); }
.hub-nav a span:last-child { transition: transform .2s; }
.hub-nav a:hover span:last-child { transform: translateY(3px); }
@media (max-width: 760px) { .hub-nav .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-nav a { padding: .7rem .8rem; font-size: .88rem; } }
.careers section[id] { scroll-margin-top: 4.5rem; }

/* Simulateur : carte claire à gauche, carte sombre à droite */
.sim { max-width: none; gap: 1.25rem; align-items: stretch; }
.sim-fields { background: #fffdf6; border: 1px solid var(--rule); border-radius: 24px; padding: 1.5rem 1.6rem; gap: 1rem; }
.sim-out { background: var(--dark); color: var(--paper); border: 0; border-radius: 24px; padding: 1.7rem; align-self: start; position: sticky; top: 5rem; }
.sim-out h3 { color: var(--paper); }
.sim-out .sim-row { border-bottom-color: rgba(247, 240, 225, .22); }
.sim-out .sim-row small, .sim-out .sim-legend, .sim-out .sim-big span { color: rgba(247, 240, 225, .72); }
.sim-out .sim-bar { background: rgba(247, 240, 225, .12); height: 16px; }
.sim-out .sim-big div { border-left-color: var(--lime); }
.sim-out .sim-big strong { color: var(--lime); font-size: 1.6rem; }
.sim-out .sim-hyp { color: #f3dfae; }
.sim-range::-webkit-slider-thumb { background: var(--lime); border-color: var(--pine); }
@media (max-width: 760px) { .sim-out { position: static; } }
.sim-f small a { color: inherit; text-decoration-thickness: 1px; }

/* Héros Candidats : colonne de texte de largeur raisonnable, photo en arche à droite */
.cand-hero .careers-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 4rem); }
.cand-hero h1 { font-size: clamp(2.4rem, 4.9vw, 4.4rem); line-height: 1.04; }
.cand-hero .careers-intro > div:first-child > p { max-width: 38rem; }
.cand-photo img { width: min(100%, 21rem); }
@media (max-width: 860px) { .cand-hero .careers-intro { grid-template-columns: 1fr; } }
