/**
 * Page "FAQ" — intégration fidèle de la référence Claude Design
 * (claude-design-reference/FAQ/TNT Plus France - FAQ.dc.html).
 * Réutilise variables.css/base.css/components.css (tp-container, tp-h2,
 * tp-btn, tp-eyebrow-pill, tp-pulse-dot, tp-mono-label, tp-reveal…) —
 * uniquement les styles propres à cette page ci-dessous.
 */

/* ================= HERO ================= */
.tp-faq-hero { position: relative; z-index: 1; padding: clamp(48px, 6vw, 76px) 0 clamp(32px, 4vw, 48px); overflow: hidden; }
.tp-faq-hero__glow {
	position: absolute; left: 62%; top: -14%; width: min(900px, 90vw); height: 60%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(11, 92, 46, .3), transparent 68%); filter: blur(50px);
}
.tp-faq-hero__inner {
	position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
	gap: clamp(40px, 5vw, 72px); align-items: center;
}
.tp-faq-hero__title { font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; max-width: 620px; text-wrap: pretty; }
.tp-faq-hero__lead { font-size: 16.5px; line-height: 1.65; color: var(--tp-text-muted); margin: 0 0 28px; max-width: 520px; text-wrap: pretty; }

.tp-faq-search {
	display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 20px; border-radius: var(--tp-radius-pill);
	border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .03); max-width: 600px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.tp-faq-search__icon {
	flex: none; position: relative; width: 15px; height: 15px; border-radius: 50%; border: 1.7px solid var(--tp-green-300);
}
.tp-faq-search__icon::after {
	content: ""; position: absolute; right: -6px; bottom: -4px; width: 8px; height: 1.7px; background: var(--tp-green-300);
	transform: rotate(45deg); border-radius: 2px;
}
.tp-faq-search__input {
	flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--tp-white);
	font-size: 16px; font-weight: 500; padding: 14px 0; font-family: var(--font-body);
}
.tp-faq-search__input::placeholder { color: var(--tp-text-mute4); }
.tp-faq-search__input:focus-visible { outline: none; }
.tp-faq-search__input::-webkit-search-cancel-button,
.tp-faq-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.tp-faq-search__clear {
	flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
	background: transparent; color: var(--tp-text-muted); font-size: 15px; line-height: 1; cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.tp-faq-search__clear:hover { border-color: rgba(31, 140, 74, .5); color: var(--tp-white); }
.tp-faq-search__clear:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: 2px; }
.tp-faq-search__count { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--tp-text-mute3); padding: 0 10px 0 4px; white-space: nowrap; }

.tp-faq-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.tp-faq-shortcut {
	font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--tp-text-muted);
	padding: 8px 15px; border-radius: var(--tp-radius-pill); border: 1px solid rgba(255, 255, 255, .1);
	background: transparent; cursor: pointer; transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.tp-faq-shortcut:hover, .tp-faq-shortcut.is-active { border-color: rgba(31, 140, 74, .6); color: var(--tp-white); background: rgba(15, 122, 61, .1); }
.tp-faq-shortcut:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: 2px; }

.tp-faq-network { position: relative; }
.tp-faq-network svg { position: relative; width: 100%; height: auto; display: block; }

/* ================= CATÉGORIES ================= */
.tp-faq-catbar {
	position: sticky; top: 0; z-index: 5;
	border-top: 1px solid var(--tp-border-soft); border-bottom: 1px solid var(--tp-border-soft);
	background: rgba(5, 7, 5, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tp-faq-catbar__inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.tp-faq-catbar__inner::-webkit-scrollbar { display: none; }
.tp-faq-cat {
	flex: none; white-space: nowrap; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
	padding: 10px 18px; border-radius: var(--tp-radius-pill); border: 1px solid rgba(255, 255, 255, .1);
	background: transparent; color: var(--tp-text-muted); cursor: pointer;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.tp-faq-cat:hover { border-color: rgba(31, 140, 74, .4); }
.tp-faq-cat.is-active { border-color: rgba(31, 140, 74, .75); background: rgba(15, 122, 61, .2); color: #fff; }
.tp-faq-cat:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: 2px; }

/* ================= GROUPES DE QUESTIONS ================= */
.tp-faq-group { position: relative; z-index: 1; padding: clamp(30px, 3vw, 44px) 0; }
.tp-faq-group[hidden] { display: none; }
.tp-faq-group__inner { max-width: 1060px; }
.tp-faq-group__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(34px, 4vw, 60px); align-items: start; }
.tp-faq-group__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 10px; }
.tp-faq-group__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; color: var(--tp-green-300); }
.tp-faq-group__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 33px); letter-spacing: -.02em; margin: 0; }

.tp-faq-line-svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 6px 0 18px; }
.tp-faq-svg-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; fill: var(--tp-text-mute2); }
.tp-faq-svg-label--accent { fill: var(--tp-green-200); }
.tp-faq-svg-node { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; fill: #7e857f; }
.tp-faq-svg-count { font-family: var(--font-display); font-weight: 800; font-size: 22px; fill: var(--tp-white); }
.tp-faq-anim-flow { animation: tpFaqFlow 9s linear infinite; }
.tp-faq-anim-halo { transform-box: fill-box; transform-origin: center; animation: tpFaqHalo 10s ease-in-out infinite; }
.tp-faq-anim-breath { transform-box: fill-box; transform-origin: center; animation: tpFaqBreath 7s ease-in-out infinite; }
.tp-faq-anim-pulse { animation: tpFaqPulse 3.4s ease-in-out infinite; }
@keyframes tpFaqFlow { to { stroke-dashoffset: -160; } }
@keyframes tpFaqHalo { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .92; transform: scale(1.05); } }
@keyframes tpFaqBreath { 0%, 100% { opacity: .3; transform: scale(1); } 50% { opacity: .78; transform: scale(1.07); } }
@keyframes tpFaqPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ================= LISTE / ACCORDÉONS ================= */
.tp-faq-list { display: flex; flex-direction: column; }
.tp-faq-item { border-top: 1px solid var(--tp-border-2); }
.tp-faq-list > .tp-faq-item:last-child { border-bottom: 1px solid var(--tp-border-2); }
.tp-faq-item[hidden] { display: none; }
.tp-faq-item__heading { margin: 0; }
.tp-faq-item__trigger {
	display: flex; align-items: flex-start; gap: 24px; width: 100%; padding: 22px 6px; border: none; background: transparent;
	color: var(--tp-white); text-align: left; font: inherit; cursor: pointer; transition: background .25s ease;
}
.tp-faq-item__trigger:hover { background: rgba(255, 255, 255, .02); }
.tp-faq-item__trigger:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: -2px; border-radius: 6px; }
.tp-faq-item__q { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.38; text-wrap: pretty; }
.tp-faq-item__sign { flex: none; width: 24px; text-align: center; font-size: 20px; line-height: 1.2; color: var(--tp-green-400); }

.tp-faq-item__line { height: 1px; background: linear-gradient(90deg, var(--tp-green-700), rgba(47, 158, 93, .25)); width: 0; opacity: 0; transition: width .5s var(--tp-ease), opacity .3s ease; }
.tp-faq-item.is-open .tp-faq-item__line { width: 100%; opacity: 1; }

.tp-faq-item__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .36s var(--tp-ease), opacity .3s ease; }
.tp-faq-item.is-open .tp-faq-item__panel { grid-template-rows: 1fr; opacity: 1; }
.tp-faq-item__panel-inner { overflow: hidden; }
.tp-faq-item__answer { padding: 0 clamp(0px, 5vw, 64px) 6px 6px; display: flex; flex-direction: column; gap: 13px; }
.tp-faq-item__answer p { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--tp-text-muted); max-width: 740px; text-wrap: pretty; }
.tp-faq-item__cta {
	display: inline-block; margin: 8px 0 22px 6px; font-family: var(--font-display); font-size: 14px; font-weight: 700;
	color: var(--tp-green-300); border-bottom: 1px solid rgba(74, 168, 119, .35); padding-bottom: 3px;
}
.tp-faq-item__cta:hover { color: var(--tp-green-200); }
.tp-faq-item__cta:focus-visible { outline: 2px solid rgba(31, 140, 74, .7); outline-offset: 3px; }

/* ================= COMPARATIF APPLICATION / TV STICK ================= */
.tp-faq-compare {
	position: relative; z-index: 1; margin: clamp(30px, 4vw, 54px) 0; border-top: 1px solid var(--tp-border-soft);
	border-bottom: 1px solid var(--tp-border-soft); background: linear-gradient(180deg, rgba(6, 9, 6, .9), rgba(3, 4, 3, .4));
	padding: clamp(40px, 5vw, 64px) 0;
}
.tp-faq-compare__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 5vw, 72px); }
.tp-faq-compare__price { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 8px; }
.tp-faq-compare__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; }
.tp-faq-compare__period { font-size: 13px; color: var(--tp-text-mute2); }
.tp-faq-compare__text { font-size: 15px; line-height: 1.68; color: var(--tp-text-muted); margin: 0 0 22px; max-width: 380px; }
.tp-faq-compare__svg { width: 100%; height: auto; display: block; }

/* ================= CONSTELLATION CHAÎNES ================= */
.tp-faq-constellation { position: relative; }
.tp-faq-constellation svg { position: relative; width: 100%; height: auto; display: block; }
.tp-faq-constellation .tp-faq-item__cta { margin-left: 0; }

/* ================= AUCUN RÉSULTAT ================= */
.tp-faq-noresults { position: relative; z-index: 1; padding: clamp(50px, 6vw, 90px) 0; }
.tp-faq-noresults[hidden] { display: none; }
.tp-faq-noresults__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.tp-faq-noresults__text { font-size: 16px; line-height: 1.65; color: var(--tp-text-muted); margin: 0 0 26px; }
.tp-faq-noresults__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tp-faq-noresults__actions .tp-btn--outline { background: transparent; border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; }

/* ================= CONTACT FINAL ================= */
.tp-faq-final { position: relative; z-index: 1; padding: clamp(24px, 4vw, 48px) 0 clamp(60px, 7vw, 100px); }
.tp-faq-final__card {
	position: relative; border-radius: 22px; border: 1px solid var(--tp-border); overflow: hidden;
	background: linear-gradient(150deg, rgba(9, 14, 10, .96), rgba(3, 5, 3, .92)); box-shadow: 0 50px 120px rgba(0, 0, 0, .55);
}
.tp-faq-final__glow {
	position: absolute; left: -8%; top: -30%; width: 60%; height: 150%; pointer-events: none;
	background: radial-gradient(circle, rgba(15, 122, 61, .26), transparent 66%); filter: blur(60px);
	animation: tpFaqHalo 11s ease-in-out infinite;
}
.tp-faq-final__grid {
	position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: clamp(36px, 4vw, 64px); align-items: center; padding: clamp(34px, 4.5vw, 60px);
}
.tp-faq-final__title { margin: 14px 0 18px; text-wrap: pretty; }
.tp-faq-final__text { font-size: 16px; line-height: 1.68; color: var(--tp-text-muted); margin: 0 0 28px; max-width: 460px; }
.tp-faq-final__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tp-faq-final__visual { display: flex; justify-content: center; }
.tp-faq-final__visual svg { width: 100%; max-width: 380px; height: auto; display: block; }

@media (max-width: 640px) {
	.tp-faq-search { padding-left: 16px; }
	.tp-faq-final__actions,
	.tp-faq-noresults__actions { flex-direction: column; align-items: stretch; }
	.tp-faq-final__actions .tp-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.tp-faq-anim-flow, .tp-faq-anim-halo, .tp-faq-anim-breath, .tp-faq-anim-pulse, .tp-faq-final__glow {
		animation: none !important;
	}
}
