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

.res-eyebrow { margin-bottom: 24px; }

/* Boutons de la page (pilule claire, comme dans le prototype) */
.res-btn {
	--bh: 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 0 24px 0 28px;
	border-radius: 999px; background: var(--text-light); color: var(--bg-dark); font-size: 16px; font-weight: 600;
	transition: transform .3s var(--ease-out), box-shadow .4s;
}
.res-btn--lg { min-height: 60px; }
.res-btn:hover { --bh: 1; color: var(--bg-dark); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
.res-btn:active { transform: scale(.97); }
.res-btn:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 3px; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.res-hero { position: relative; background: var(--bg-dark); color: var(--text-light); overflow: hidden; }
.res-hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.res-hero__line { position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 2px; background: var(--accent-red); transform-origin: 50% 0; }
.res-hero__copy { padding: calc(clamp(116px, 16vh, 158px) + var(--admin-offset)) 0 clamp(56px, 8vh, 92px) var(--indent); }
.res-hero__eyebrow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 clamp(20px, 3vh, 30px);
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light);
}
.res-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); }
.res-hero__title { margin: 0; font-weight: 600; font-size: clamp(44px, 6.4vw, 104px); line-height: .96; letter-spacing: -.052em; color: var(--white); }
.res-hero__row { display: block; overflow: hidden; padding-bottom: .1em; }
.res-hero__row > span { display: block; }
.res-hero__u { position: relative; white-space: nowrap; }
.res-hero__rule { position: absolute; left: .02em; right: .5em; bottom: .02em; height: .06em; background: var(--accent-red); transform-origin: 0 50%; }
.res-hero__lead { margin: clamp(24px, 3.6vh, 36px) 0 0; max-width: 34em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: #CFC9C3; text-wrap: pretty; }

.res-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 6vh, 64px) 0 0; max-width: 1080px; border-top: 1px solid #2A2826; }
.res-faq__item { min-width: 0; padding: clamp(20px, 3vh, 28px) clamp(0px, 2vw, 32px) clamp(20px, 3vh, 28px) 0; }
.res-faq dt { font-size: 15px; line-height: 1.45; color: var(--dark-soft); }
.res-faq dd { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 0; }
.res-faq__mark { flex: none; width: 10px; height: 10px; background: transparent; border: 2px solid var(--accent-red); transform: translateY(-3px); }
.res-faq__mark.is-on { background: var(--accent-red); }
.res-faq__a { display: block; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; color: var(--white); }
.res-faq__d { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: #CFC9C3; }

.res-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(36px, 5vh, 52px); }
.res-tel { --sh: 0; display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; color: var(--text-light); }
.res-tel:hover { --sh: 1; color: var(--text-light); }
.res-tel:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 4px; }
.res-tel__k { font-size: 15px; color: var(--dark-soft); }
.res-tel__n { position: relative; font-size: 18px; font-weight: 600; white-space: nowrap; }
.res-tel__n span { position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent-red-on-dark); transform-origin: 0 50%; transform: scaleX(calc(.25 + var(--sh) * .75)); transition: transform .45s var(--ease-out); }

@media (max-width: 759px) {
	.res-faq { grid-template-columns: minmax(0, 1fr); }
	.res-faq__item { border-bottom: 1px solid #2A2826; }
}
@media (max-width: 480px) {
	.res-hero__title { font-size: clamp(36px, 11vw, 44px); }
}

/* ---------------------------------------------------------------------------
   01 La démarche
   --------------------------------------------------------------------------- */
.res-steps__inner { padding-top: clamp(80px, 12vh, 136px); padding-bottom: clamp(80px, 12vh, 136px); }
.res-steps__title { max-width: 14em; margin-bottom: clamp(44px, 7vh, 72px); }
.rsteps-r { position: relative; }
.rsteps-r ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.rsteps-r__line { position: absolute; background: rgba(23, 23, 22, .1); }
.rsteps-r__line span { position: absolute; inset: 0; background: var(--accent-red); transition: transform 1.6s var(--ease-io); }
.rsteps-r__line--h { left: 0; right: 0; top: 5px; height: 2px; }
.rsteps-r__line--h span { transform-origin: 0 50%; }
.rsteps-r__line--v { display: none; left: 5px; top: 6px; bottom: 6px; width: 2px; }
.rsteps-r__line--v span { transform-origin: 50% 0; }
.js .rsteps-r:not(.is-drawn) .rsteps-r__line--h span { transform: scaleX(0); }
.js .rsteps-r:not(.is-drawn) .rsteps-r__line--v span { transform: scaleY(0); }
.rsteps-r__step { position: relative; min-width: 0; padding: 36px 0 0; }
.rsteps-r__node { position: absolute; left: 0; top: 0; width: 12px; height: 12px; background: var(--accent-red); border: 2px solid var(--accent-red); }
.js .rsteps-r:not(.is-on) .rsteps-r__step:not(.is-first) .rsteps-r__node { background: var(--bg-light); }
.rsteps-r__n { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--accent-red); }
.rsteps-r__t { margin: 12px 0 0; max-width: 14em; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.rsteps-r__b { margin: 14px 0 0; max-width: 26em; font-size: 17px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }

@media (max-width: 759px) {
	.rsteps-r ol { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rsteps-r__line--h { display: none; }
	.rsteps-r__line--v { display: block; }
	.rsteps-r__step { padding: 0 0 0 36px; }
}

/* ---------------------------------------------------------------------------
   02 Comment nous contacter
   --------------------------------------------------------------------------- */
.res-contact__inner { padding-top: clamp(80px, 12vh, 136px); padding-bottom: clamp(80px, 12vh, 136px); }
.res-contact__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: clamp(40px, 6vh, 64px); }
.res-contact__title { flex: 1 1 480px; min-width: 0; max-width: 12em; color: var(--white); }
.res-contact__lead { flex: 0 1 380px; min-width: 0; margin: 0; font-size: 17px; line-height: 1.6; color: #CFC9C3; }

.res-ways { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .85fr); border-top: 2px solid var(--text-light); }
.res-way { min-width: 0; padding: clamp(24px, 3.6vh, 36px) clamp(0px, 2.4vw, 40px) clamp(24px, 3.6vh, 36px) 0; border-bottom: 1px solid #2A2826; }
.res-way + .res-way { padding-left: clamp(24px, 2.4vw, 40px); border-left: 1px solid #2A2826; }
.res-way:last-child { padding-right: 0; }
.res-way__k { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.res-way__tel {
	--sh: 0; position: relative; display: inline-block; margin-top: 14px; font-size: clamp(38px, 4.2vw, 64px); font-weight: 600; line-height: 1;
	letter-spacing: -.05em; color: var(--white); white-space: nowrap;
}
.res-way__tel:hover { --sh: 1; color: var(--white); }
.res-way__tel:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 4px; }
.res-way__tel span { position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; background: var(--accent-red); transform-origin: 0 50%; transform: scaleX(calc(.18 + var(--sh) * .82)); transition: transform .5s var(--ease-out); }
.res-way__mail {
	--mh: 0; display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; margin-top: 14px;
	font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; color: var(--white); overflow-wrap: anywhere;
}
.res-way__mail > span:first-child { min-width: 0; }
.res-way__mail:hover { --mh: 1; color: var(--white); }
.res-way__mail:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 3px; }
.res-way__mail > span:last-child {
	font-family: var(--font-sans); font-style: normal; font-size: 18px; color: var(--accent-red-on-dark);
	transform: translate(calc(var(--mh) * 3px), calc(var(--mh) * -3px)); transition: transform .4s var(--ease-out);
}
.res-way__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.res-way__btns--tel { margin-top: 28px; }
.res-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid #3A3734; border-radius: 999px;
	background: transparent; font-size: 14px; font-weight: 500; color: var(--text-light); cursor: pointer; transition: border-color .3s, transform .3s var(--ease-out);
}
a.res-pill { padding: 0 18px; }
.res-pill:hover { border-color: var(--text-light); color: var(--text-light); }
.res-pill:focus-visible { outline: 2px solid var(--accent-red-on-dark); outline-offset: 2px; }
.res-pill--light { --bh: 0; padding: 0 18px 0 20px; border: 0; background: var(--text-light); color: var(--bg-dark); font-size: 15px; font-weight: 600; }
a.res-pill--light { padding: 0 18px 0 20px; }
.res-pill--light:hover { --bh: 1; color: var(--bg-dark); }
.res-pill--light:active { transform: scale(.97); }
.res-pill.is-copied { border-color: var(--accent-red-on-dark); }
.res-way__hours { margin: 14px 0 0; font-size: clamp(34px, 3vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--white); }
.res-way__days { margin: 12px 0 0; font-size: 17px; line-height: 1.45; color: #CFC9C3; }
.res-way__days span { color: var(--dark-soft); }
.res-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 20px; max-width: 260px; }
.res-week__d { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-week__d span:first-child { display: block; height: 8px; background: repeating-linear-gradient(135deg, #2A2826 0 3px, #1D1C1B 3px 6px); }
.res-week__d.is-open span:first-child { background: var(--accent-red); }
.res-week__d span:last-child { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-align: center; color: #6E6964; }
.res-week__d.is-open span:last-child { color: var(--text-light); }

.res-form-cta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(40px, 6vh, 60px); padding: clamp(24px, 3vw, 36px);
	background: var(--text-dark); border-left: 2px solid var(--accent-red);
}
.res-form-cta__text { flex: 1 1 380px; min-width: 0; }
.res-form-cta__t { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--white); }
.res-form-cta__d { margin: 10px 0 0; max-width: 36em; font-size: 16px; line-height: 1.55; color: #CFC9C3; text-wrap: pretty; }

@media (max-width: 1099px) {
	.res-ways { grid-template-columns: minmax(0, 1fr); }
	.res-way + .res-way { padding-left: 0; border-left: 0; }
}
@media (max-width: 759px) {
	.res-way__btns .res-pill--light, .res-way__btns a.res-pill, .res-form-cta .res-btn, .res-hero__actions .res-btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   03 À savoir
   --------------------------------------------------------------------------- */
.res-note { background: var(--plate); color: var(--text-dark); }
.res-note__inner { padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); }
.res-note__grid { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 80px); }
.res-note__k {
	display: flex; align-items: center; align-self: start; gap: 12px; margin: 0; padding-top: 8px;
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.res-note__k span { width: 8px; height: 8px; background: var(--accent-red); }
.res-note__body { min-width: 0; max-width: 760px; }
.res-note__t { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; text-wrap: pretty; }
.res-note__d { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }

@media (max-width: 759px) {
	.res-note__grid { grid-template-columns: minmax(0, 1fr); }
}
