/* ==========================================================================
   Therapeutiks – feuille de style principale
   ========================================================================== */

:root {
	--accent: #4a7c6f;
	--ink: #232d36;
	--ink-2: #3d4852;
	--muted: #5b6670;
	--black: #0b0b0b;
	--line: #e3e3e3;
	--tint: #f6f5f2;
	--tint-line: #dcdad4;
	--white: #ffffff;
	--radius: 6px;
	--wrap: 1200px;
	--gutter: 32px;
	--sec: 120px;
	--font-display: 'Josefin Sans', 'Avenir Next', 'Futura', 'Century Gothic', sans-serif;
	--font-body: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
	--header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
strong, b { font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tk-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.tk-skip:focus { left: 8px; }

.tk-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.tk-measure { max-width: 760px; }

/* Piles et grilles ------------------------------------------------------- */
.tk-stack-s > * + * { margin-top: 12px; }
.tk-stack-m > * + * { margin-top: 22px; }
.tk-stack-l > * + * { margin-top: 48px; }
.tk-stack-xl > * + * { margin-top: 56px; }

.tk-grid { display: grid; gap: 20px; }
.tk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; }
.tk-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tk-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tk-grid--top { align-items: start; }
.tk-grid--about { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; align-items: start; }

/* Typographie ------------------------------------------------------------- */
.tk-eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tk-h1, .tk-h2, .tk-h3 { font-family: var(--font-display); font-weight: 300; margin: 0; line-height: 1.2; }
.tk-h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.15; }
.tk-h2 { font-size: clamp(30px, 3.6vw, 46px); }
.tk-h3 { font-size: clamp(22px, 2.2vw, 28px); }
.tk-italic { font-style: italic; }
.tk-lead { font-size: 18px; line-height: 1.75; }
.tk-muted { color: var(--muted); }
.tk-small { font-size: 14px; }
.tk-head > * + * { margin-top: 14px; }
.tk-head--narrow { max-width: 820px; }
.tk-quote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.5; }

.tk-rich > * + * { margin-top: 14px; }
.tk-rich ul { margin: 0; padding-left: 20px; }
.tk-rich li + li { margin-top: 4px; }

/* Boutons ---------------------------------------------------------------- */
.tk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border-radius: 999px;
	font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .03em;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: filter .2s ease, background-color .2s ease, transform .2s ease;
}
.tk-btn--accent { background: var(--accent); color: var(--white); }
.tk-btn--accent:hover { color: var(--white); filter: brightness(.92); }
.tk-btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); font-weight: 400; }
.tk-btn--ghost:hover { color: var(--white); background: rgba(255,255,255,.08); }
.tk-btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.tk-btn--outline:hover { background: var(--accent); color: var(--white); }
.tk-btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.tk-btn--block { display: flex; width: 100%; min-height: 52px; }
.tk-btn[disabled] { opacity: .5; cursor: not-allowed; }

.tk-round {
	width: 48px; height: 48px; border-radius: 999px; border: 1px solid #c9c9c9; background: var(--white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.tk-round--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tk-icon { flex: none; }

/* En-tête ---------------------------------------------------------------- */
.tk-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid #ececec; backdrop-filter: saturate(1.4) blur(8px); }
.tk-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.tk-logo { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.1; font-family: var(--font-display); font-weight: 300; letter-spacing: .28em; font-size: 18px; color: #111; text-decoration: none; white-space: nowrap; }
.tk-logo:hover { color: #111; }
.tk-logo__by { font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.tk-logo--light { color: var(--white); }
.tk-logo--light .tk-logo__by { color: #a8a8a8; }
.tk-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: .04em; }
.tk-nav a:not(.tk-btn) { text-decoration: none; }
.tk-nav a:not(.tk-btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.tk-nav__book { display: none; }
.tk-header__tools { display: flex; align-items: center; gap: 14px; }
.tk-lang { display: flex; align-items: center; font-size: 13px; letter-spacing: .08em; color: #b0b0b0; }
.tk-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: var(--muted); text-decoration: none; }
.tk-lang a[aria-current] { color: #111; font-weight: 600; }
.tk-header__book { font-size: 14px; }
.tk-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.tk-burger__close { display: none; }
.tk-burger[aria-expanded="true"] .tk-burger__open { display: none; }
.tk-burger[aria-expanded="true"] .tk-burger__close { display: inline-flex; }

@media (max-width: 960px) {
	.tk-burger { display: inline-flex; }
	.tk-header__book { display: none; }
	.tk-nav {
		position: absolute; left: 0; right: 0; top: var(--header);
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--white); border-bottom: 1px solid #ececec;
		padding: 8px var(--gutter) 24px; font-size: 17px;
		display: none;
	}
	.tk-nav.is-open { display: flex; }
	.tk-nav a:not(.tk-btn) { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
	.tk-nav__book { display: inline-flex; margin-top: 18px; }
}

/* Accroche --------------------------------------------------------------- */
.tk-hero { position: relative; overflow: hidden; background: var(--black); color: var(--white); }
.tk-hero__rings { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.tk-spin { transform-origin: 380px 380px; animation: tk-spin 90s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tk-spin { animation: none; } }
.tk-hero__inner { position: relative; z-index: 1; min-height: 660px; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 96px; padding-bottom: 96px; }
.tk-hero__eyebrow { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: #bdbdbd; }
.tk-hero__title { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(30px, 7.4vw, 104px); letter-spacing: .14em; line-height: 1.05; }
.tk-hero__tagline { font-family: var(--font-display); font-style: italic; font-weight: 200; font-size: clamp(24px, 3vw, 38px); line-height: 1.35; }
.tk-hero__lines { display: flex; flex-direction: column; gap: 4px; color: #cfcfcf; font-size: 15px; letter-spacing: .06em; }
.tk-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.tk-hero__note { font-size: 14px; color: #a8a8a8; }

/* Sections --------------------------------------------------------------- */
.tk-sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.tk-sec--tint { background: var(--tint); }
.tk-sec--compact { padding-top: 56px; padding-bottom: 72px; }
.tk-sec--flush-top { padding-top: 0; }

.tk-tags { list-style: none; margin: 0; padding: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.tk-tags li { padding: 10px 18px; border: 1px solid #dcdcdc; border-radius: 999px; font-size: 14px; }

/* Étapes ----------------------------------------------------------------- */
.tk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tk-step {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	min-height: 76px; padding: 14px 18px; border: 1px solid #dcdcdc; border-radius: var(--radius);
	background: var(--white); color: var(--ink); text-align: left; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tk-step__num { font-size: 12px; letter-spacing: .2em; }
.tk-step__label { font-size: 16px; font-weight: 600; }
.tk-step[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tk-steps__panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; background: var(--tint); border-radius: var(--radius); min-height: 180px; }
.tk-steps__text { flex: 999 1 520px; min-width: 0; font-size: 20px; line-height: 1.7; }
.tk-step-panel__note { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.tk-steps__nav { display: flex; gap: 10px; }
.tk-step-panel { animation: tk-fade .35s ease both; }
@keyframes tk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tk-step-panel, .tk-explain { animation: none; } }

/* Cartes ----------------------------------------------------------------- */
.tk-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--white); border: 1px solid #e6e4df; border-radius: var(--radius); }
.tk-card__num { font-family: var(--font-display); font-weight: 200; font-size: 40px; line-height: 1; color: var(--accent); }

/* Liste des tests -------------------------------------------------------- */
.tk-tests { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tk-tests li { border-bottom: 1px solid var(--line); }
.tk-tests__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 28px 4px; text-decoration: none; color: var(--ink); transition: background-color .2s ease; }
.tk-tests__item:hover { background: #fafaf8; color: var(--ink); }
.tk-tests__title { flex: 0 0 300px; font-family: var(--font-display); font-weight: 300; font-size: 25px; line-height: 1.25; }
.tk-tests__desc { flex: 999 1 320px; min-width: 0; }
.tk-tests__meta { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.tk-tests__go { flex: 0 0 44px; height: 44px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease; }
.tk-tests__item:hover .tk-tests__go { background: var(--accent); color: var(--white); }
.tk-tests--compact .tk-tests__item { padding: 18px 4px; }
.tk-tests--compact .tk-tests__title { flex: 1 1 auto; font-size: 21px; }
@media (max-width: 760px) {
	.tk-tests__item { display: grid; grid-template-columns: 1fr 44px; gap: 4px 14px; padding: 20px 0; }
	.tk-tests__title { font-size: 21px; grid-column: 1; }
	.tk-tests__desc { display: none; }
	.tk-tests__meta { grid-column: 1; }
	.tk-tests__go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
}

/* Boussoles -------------------------------------------------------------- */
.tk-panel { padding: 40px; background: var(--white); border-radius: var(--radius); }
.tk-venn { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.tk-venn circle { fill: var(--white); fill-opacity: .22; stroke: #9aa3aa; stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.tk-venn circle.is-on { fill: var(--accent); stroke: var(--accent); }
.tk-venn text { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
.tk-venn .tk-venn__small { font-size: 12px; }
.tk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #cfcfcf; background: var(--white); cursor: pointer; font-size: 14px; }
.tk-pill[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tk-explain { min-height: 72px; font-size: 17px; animation: tk-fade .35s ease both; }
.tk-pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.tk-pyramid__level {
	width: var(--w); min-width: 160px; max-width: 100%; min-height: 44px; padding: 0 12px;
	border: 0; border-radius: 4px; background: #efeeea; color: var(--ink); cursor: pointer;
	font-size: 14px; white-space: nowrap; transition: background-color .2s ease, color .2s ease;
}
.tk-pyramid__level[aria-selected="true"] { background: var(--accent); color: var(--white); font-weight: 600; }

/* Qui suis-je ------------------------------------------------------------ */
.tk-photo { margin: 0; aspect-ratio: 4 / 5; background: #ecebe7; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; }
.tk-photo__empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.tk-grid--about > :only-child { max-width: 820px; }

/* Accordéons ------------------------------------------------------------- */
.tk-accordion { border-top: 1px solid var(--line); }
.tk-accordion--tint { border-top-color: var(--tint-line); }
.tk-accordion__head { margin: 0; font: inherit; }
.tk-accordion__btn {
	width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
	font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; padding: 12px 0;
}
.tk-accordion--tint .tk-accordion__btn { border-bottom-color: var(--tint-line); }
.tk-accordion__btn--serif { font-family: var(--font-display); font-weight: 300; font-size: 21px; min-height: 60px; }
.tk-accordion__sign { position: relative; flex: none; width: 16px; height: 16px; }
.tk-accordion__sign::before, .tk-accordion__sign::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--accent); transition: transform .25s ease; }
.tk-accordion__sign::after { transform: rotate(90deg); }
.tk-accordion__btn[aria-expanded="true"] .tk-accordion__sign::after { transform: rotate(0deg); }
.tk-accordion__body { padding: 16px 0 24px; }

/* Témoignages ------------------------------------------------------------ */
.tk-testi { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 36px 32px; background: var(--tint); border-radius: var(--radius); }
.tk-testi__mark { font-family: var(--font-display); font-weight: 200; font-size: 56px; line-height: .6; color: var(--accent); }
.tk-testi blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 20px; line-height: 1.5; }
.tk-testi figcaption { font-size: 14px; color: var(--muted); }

/* Tarifs et appel -------------------------------------------------------- */
.tk-price { display: flex; flex-direction: column; gap: 10px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
.tk-price__label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tk-price__amount { font-family: var(--font-display); font-weight: 200; font-size: 64px; line-height: 1; }
.tk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 56px; background: var(--black); color: var(--white); border-radius: var(--radius); }
.tk-cta__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-cta__title { font-family: var(--font-display); font-style: italic; font-weight: 200; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; }
.tk-cta__body { color: #cfcfcf; }
.tk-cta__body a { color: var(--white); }

/* Pages intérieures ------------------------------------------------------ */
.tk-pagehead { background: var(--tint); padding: 56px 0; }
.tk-crumbs { font-size: 13px; color: var(--muted); }
.tk-crumbs a { color: var(--muted); }
.tk-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tk-chips li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.tk-legal { max-width: 820px; }
.tk-legal h2 { font-family: var(--font-display); font-weight: 300; font-size: 26px; margin: 40px 0 0; }
.tk-legal h2:first-child { margin-top: 0; }

/* Pied de page ----------------------------------------------------------- */
.tk-footer { background: var(--black); color: #bdbdbd; font-size: 14px; }
.tk-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.tk-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.tk-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.tk-footer a { color: #e6e6e6; }
.tk-footer__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }

/* Barre de rendez-vous mobile ------------------------------------------- */
.tk-mbar { display: none; }

/* Écran de langue -------------------------------------------------------- */
.tk-splash { display: none; }
.tk-ask .tk-splash {
	display: flex; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center;
	background: var(--black); color: var(--white); text-align: center; overflow: hidden;
}
.tk-ask body { overflow: hidden; }
.tk-splash__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.tk-splash__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 24px; }
.tk-splash__logo { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 200; font-size: clamp(36px, 6vw, 72px); letter-spacing: .16em; line-height: 1.05; }
.tk-splash__by { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: .08em; color: #a8a8a8; }
.tk-splash__hello { font-family: var(--font-display); font-style: italic; font-weight: 200; font-size: clamp(22px, 3vw, 30px); }
.tk-splash__ask { margin-top: 6px; font-size: 15px; letter-spacing: .06em; color: #bdbdbd; }
.tk-splash__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tk-splash__choices .tk-btn { min-width: 200px; letter-spacing: .06em; }
.tk-splash__note { font-size: 13px; color: #a8a8a8; max-width: 560px; }
.tk-splash.is-leaving { animation: tk-out .45s ease forwards; }
@keyframes tk-out { to { opacity: 0; visibility: hidden; } }

/* Petits écrans ---------------------------------------------------------- */
@media (max-width: 760px) {
	:root { --gutter: 20px; --sec: 72px; --header: 64px; }
	.tk-logo { font-size: 15px; letter-spacing: .26em; }
	.tk-logo__by { font-size: 10px; }
	.tk-hero__rings { right: -320px; opacity: .7; }
	.tk-hero__inner { min-height: auto; padding-top: 72px; padding-bottom: 88px; gap: 22px; }
	.tk-steps__panel, .tk-panel, .tk-price, .tk-cta { padding: 28px 22px; }
	.tk-steps__text { font-size: 18px; }
	.tk-step { min-height: 64px; padding: 12px 14px; }
	.tk-step__label { font-size: 15px; }
	.tk-hero__title { letter-spacing: .1em; }
	.tk-tags { padding-top: 0; }
	.tk-mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
	.tk-footer { padding-bottom: 80px; }
	.tk-price__amount { font-size: 52px; }
}
