/* ==========================================================================
   Invassist — page Rejoindre Reducbox
   Réutilise base.css (variables, grille, .section, .seg, .eyebrow, .h2, boutons,
   flèches, révélations [data-rv]). Seuls les styles propres à la page sont ici.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Hero : Reducbox → Invassist → vous
   --------------------------------------------------------------------------- */
.join-hero { position: relative; background: var(--bg-dark); color: var(--text-light); overflow: hidden; }
.join-hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.join-hero__line { position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 2px; background: var(--accent-red); transform-origin: 50% 0; }
.join-hero__grid {
	display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(40px, 6vw, 104px);
	padding-top: calc(clamp(120px, 17vh, 170px) + var(--admin-offset)); padding-bottom: clamp(72px, 11vh, 120px);
}
.join-hero__copy { flex: 1.5 1 520px; min-width: 0; }
.join-back {
	--bk: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: clamp(18px, 3vh, 28px);
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted); transition: color .3s;
}
.join-back span { display: inline-block; color: var(--accent-red-on-dark); transform: translateX(calc(var(--bk) * -4px)); transition: transform .4s var(--ease-out); }
.join-back:hover { --bk: 1; color: var(--text-light); }
.join-back:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 3px; }
.join-hero__eyebrow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 clamp(22px, 3.6vh, 36px);
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light);
}
.join-hero__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red-on-dark); box-shadow: 0 0 0 4px rgba(239, 74, 78, .18); }
.join-hero__x { color: var(--accent-red-on-dark); }
.join-hero__title { margin: 0; font-weight: 600; font-size: clamp(42px, 5.6vw, 88px); line-height: .98; letter-spacing: -.045em; color: var(--white); }
.join-hero__row { display: block; overflow: hidden; padding-bottom: .04em; }
.join-hero__row--last { padding-bottom: .1em; }
.join-hero__row > span { display: block; }
.join-hero__u { position: relative; white-space: nowrap; }
.join-hero__rule { position: absolute; left: .02em; right: .5em; bottom: .02em; height: .06em; background: var(--accent-red); transform-origin: 0 50%; }
.join-hero__lead { max-width: 32em; margin: clamp(22px, 3.4vh, 32px) 0 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.58; color: var(--dark-body); text-wrap: pretty; }
.join-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: clamp(28px, 4.5vh, 44px); }

/* Téléphone mis en avant */
.join-phone {
	display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 26px 8px 10px; border-radius: 999px;
	border: 1px solid #3A3734; color: var(--text-light); transition: border-color .3s, background-color .3s;
}
.join-phone:hover { border-color: var(--accent-red-on-dark); background-color: #1A1817; color: var(--text-light); }
.join-phone:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 3px; }
.join-phone__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-red); color: var(--white); }
.join-phone__text { display: flex; flex-direction: column; line-height: 1.1; }
.join-phone__label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.join-phone__num { margin-top: 3px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Composition « passage » : Reducbox → Invassist → vous */
.join-pass { flex: 1 1 320px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; }
.join-pass__item { position: relative; padding: 16px 18px 18px; border: 1px solid #2A2826; background: #171716; }
.join-pass__item--rb { background: var(--plate); border-color: var(--plate); color: var(--text-muted); border-top: 2px solid var(--accent-red); }
.join-pass__item--you { border-top: 2px solid var(--accent-red); background: rgba(24, 23, 22, .96); }
.join-pass__meta { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.join-pass__item--rb .join-pass__meta { color: var(--text-muted); }
.join-pass__logo { position: relative; width: min(100%, 250px); aspect-ratio: 600 / 88; margin: 16px 0 10px; }
.join-pass__logo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 0 50%; }
/* Véritable logo Invassist, entier ; la marge négative compense la zone transparente du PNG. */
.join-pass__inv { --pl-h: 76px; display: block; max-width: none; width: auto; height: var(--pl-h); margin: 4px 0 0 calc(var(--pl-h) * -30 / 179); }
.join-pass__say { margin: 8px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--text-light); }
.join-pass__item--rb .join-pass__say { color: var(--text-dark); }
.join-pass__you { margin: 12px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; color: var(--white); }
.join-pass__link { position: relative; display: flex; align-items: center; height: 52px; padding-left: 36px; }
.join-pass__link span { position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--accent-red); transform-origin: 50% 0; }
.join-pass__link span::after { content: ''; position: absolute; left: -4px; bottom: 2px; width: 8px; height: 8px; border-right: 2px solid var(--accent-red); border-bottom: 2px solid var(--accent-red); transform: rotate(45deg); }
.join-pass__link em { font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted); }

@media (max-width: 1099px) {
	.join-pass { max-width: 520px; }
}
@media (max-width: 480px) {
	.join-hero__title { font-size: clamp(34px, 10.2vw, 42px); }
	.join-hero__actions { flex-direction: column; align-items: stretch; }
	.join-hero__actions .btn-light, .join-phone { width: 100%; }
	.join-phone { justify-content: flex-start; min-height: 64px; }
}

/* ---------------------------------------------------------------------------
   01 Le parcours
   --------------------------------------------------------------------------- */
.join-steps__inner { padding-top: clamp(88px, 14vh, 150px); padding-bottom: clamp(80px, 12vh, 130px); }
.join-steps__title { max-width: 13em; margin-bottom: clamp(44px, 7vh, 80px); }
.jsteps { position: relative; }
.jsteps__track { position: absolute; background: rgba(23, 23, 22, .12); overflow: hidden; }
.jsteps__track span { position: absolute; inset: 0; background: var(--accent-red); }
.jsteps__track--h { left: 0; right: 0; top: 5px; height: 2px; }
.jsteps__track--h span { transform-origin: 0 50%; }
.jsteps__track--v { display: none; left: 5px; top: 6px; bottom: 0; width: 2px; }
.jsteps__track--v span { transform-origin: 50% 0; }
.jsteps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.jsteps__step { position: relative; min-width: 0; padding: 40px 0 0; }
.jsteps__node { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border: 2px solid var(--accent-red); background: var(--accent-red); }
.jsteps__num { margin: 0; font-family: var(--font-mono); font-size: clamp(40px, 4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.05em; color: var(--accent-red); }
.jsteps__t { margin: 16px 0 0; font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.jsteps__d { margin: 10px 0 0; max-width: 26em; font-size: 16px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.js .jsteps:not(.is-on) .jsteps__track--h span { transform: scaleX(0); }
.js .jsteps:not(.is-on) .jsteps__track--v span { transform: scaleY(0); }
.js .jsteps.is-on .jsteps__track span { transition: transform 1.5s var(--ease-io) .1s; }
.js .jsteps:not(.is-on) .jsteps__node { background: var(--bg-light); }
.js .jsteps.is-on .jsteps__node { transition: background-color .4s ease var(--d); }
.js .jsteps:not(.is-on) .jsteps__body { opacity: 0; transform: translateY(14px); }
.js .jsteps.is-on .jsteps__body { transition: opacity .6s ease var(--d), transform .7s var(--ease-out) var(--d); }
.join-steps__note { display: flex; align-items: baseline; gap: 10px; margin: clamp(40px, 6vh, 64px) 0 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.join-steps__note > span { flex: none; width: 16px; height: 2px; background: var(--accent-red); transform: translateY(-4px); }

@media (max-width: 1099px) {
	.jsteps__track--h { display: none; }
	.jsteps__track--v { display: block; }
	.jsteps ol { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.jsteps__step { padding: 0 0 0 36px; }
}

/* ---------------------------------------------------------------------------
   02 Parlons-en : téléphone + formulaire
   --------------------------------------------------------------------------- */
.join-contact__inner { padding-top: clamp(88px, 14vh, 150px); padding-bottom: clamp(96px, 15vh, 160px); }
.join-contact__grid { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 104px); align-items: flex-start; }
.join-contact__side { flex: 1 1 320px; max-width: 460px; min-width: 0; position: sticky; top: calc(var(--admin-offset) + var(--header-h) + 32px); }
.join-contact__lead { margin: 24px 0 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.join-call { margin-top: clamp(32px, 5vh, 48px); padding: 22px 22px 24px; background: var(--bg-dark); color: var(--text-light); border-top: 2px solid var(--accent-red); }
.join-call__k { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.join-call__num {
	--bh: 0; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; margin-top: 8px;
	font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.02em; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.join-call__num:hover { --bh: 1; color: var(--white); }
.join-call__num:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 4px; }
.join-call__hours { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--dark-soft); }

/* Formulaire */
.jform {
	flex: 1.4 1 480px; min-width: 0; margin: 0; padding: clamp(22px, 3vw, 40px);
	background: var(--surface); border: 1px solid var(--card-border); box-shadow: 0 40px 80px -60px rgba(23, 23, 22, .4);
}
.jform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jform__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0 0 clamp(20px, 3vh, 28px); padding-bottom: 14px; border-bottom: 1px solid var(--line);
	font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.jform__head span:last-child { color: var(--accent-red); }
.jform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(18px, 2.4vw, 32px); }
.jfield { position: relative; min-width: 0; }
.jfield--full { grid-column: 1 / -1; }
.jfield__label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); transition: color .3s; }
.jfield__label span { color: var(--accent-red); }
.jfield:focus-within .jfield__label { color: var(--text-dark); }
.jfield__input {
	display: block; width: 100%; height: 52px; margin-top: 4px; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
	background: transparent; color: var(--text-dark); font-size: 18px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.jfield__input:hover { border-bottom-color: var(--text-muted); }
.jfield__input:focus { border-bottom-color: var(--accent-red); box-shadow: 0 1px 0 0 var(--accent-red); }
.jfield__input--area { height: auto; min-height: 112px; padding: 12px 0; line-height: 1.5; resize: vertical; }
.jfield__input::placeholder { color: var(--text-soft); opacity: .8; font-family: var(--font-serif); font-style: italic; font-size: 19px; }
.jfield__err { min-height: 20px; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--accent-red); }
.jfield.has-error .jfield__input { border-bottom-color: var(--accent-red); box-shadow: 0 1px 0 0 var(--accent-red); }
.jfield.has-error .jfield__label { color: var(--accent-red); }

/* Case de consentement (jamais pré-cochée) */
.jconsent { margin-top: 18px; }
.jconsent__label { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.jconsent__input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.jconsent__box {
	position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--text-dark); background: transparent;
	transition: background-color .25s, border-color .25s;
}
.jconsent__box::after {
	content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white);
	transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-out);
}
.jconsent__input:checked + .jconsent__box { background: var(--accent-red); border-color: var(--accent-red); }
.jconsent__input:checked + .jconsent__box::after { transform: rotate(45deg) scale(1); }
.jconsent__input:focus-visible + .jconsent__box { outline: 2px solid var(--accent-red); outline-offset: 3px; }
.jconsent.has-error .jconsent__box { border-color: var(--accent-red); }
.jconsent__text { font-size: 15px; line-height: 1.5; color: var(--text-body); }
.jconsent__text > span { color: var(--accent-red); }
.jconsent__text a { color: var(--text-dark); text-decoration: underline; text-decoration-color: var(--accent-red); text-underline-offset: 3px; }
.jconsent .jfield__err { padding-left: 36px; }

.jform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.jform__submit[disabled] { opacity: .6; cursor: wait; }
.jform__req { margin: 0; font-size: 13px; color: var(--text-muted); }
.jform__req span { color: var(--accent-red); }
.jform__status { margin: 20px 0 0; padding: 14px 16px; border-left: 2px solid var(--accent-red); background: var(--plate); font-size: 15px; line-height: 1.5; color: var(--text-dark); }
.jform__status.is-sent { border-left-color: var(--text-dark); }

@media (max-width: 1099px) {
	.join-contact__side { position: relative; top: auto; max-width: none; }
}
@media (max-width: 640px) {
	.jform__grid { grid-template-columns: minmax(0, 1fr); }
	.jform__foot .btn-dark { width: 100%; flex: 1 1 auto; }
	.join-call__num { font-size: clamp(26px, 8vw, 32px); }
}
