@charset "UTF-8";
/* ==========================================================================
   TOPREST'O — thème du site
   Charte DJOBI : bleu nuit (#071B35), accent cyan, mêmes jetons que ui/design.py.
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
	--navy: #071b35;
	--navy-2: #0c2747;
	--navy-3: #12385b;

	--bg: #f4f8fc;
	--bg-alt: #edf4fb;
	--surface: #ffffff;
	--surface-2: #f5f9fd;
	--surface-hover: #f0f6fc;
	--border: #dde8f3;
	--border-strong: #c9d8e8;
	--text: #10294a;
	--muted: #5b7493;
	--dim: #8399b3;

	--accent: #0891b2;
	--accent-strong: #0e7490;
	--accent-bright: #08b5ce;
	--accent-soft: rgba(8, 181, 206, 0.1);
	--accent-ring: rgba(8, 181, 206, 0.35);
	--link: #0e7490;

	--success: #0e9f6e;
	--success-soft: rgba(19, 185, 129, 0.12);
	--warning: #d9822b;
	--warning-soft: rgba(244, 163, 64, 0.14);
	--danger: #d64550;
	--danger-soft: rgba(228, 92, 102, 0.1);

	--shadow-sm: 0 1px 2px rgba(16, 41, 74, 0.06), 0 1px 3px rgba(16, 41, 74, 0.06);
	--shadow: 0 10px 30px -12px rgba(16, 41, 74, 0.18), 0 2px 6px rgba(16, 41, 74, 0.05);
	--shadow-lg: 0 30px 60px -24px rgba(7, 27, 53, 0.45);

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 84px;

	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a1424;
		--bg-alt: #0e1a2e;
		--surface: #122036;
		--surface-2: #16263f;
		--surface-hover: #1a2c48;
		--border: rgba(148, 178, 214, 0.16);
		--border-strong: rgba(148, 178, 214, 0.28);
		--text: #e8f0fa;
		--muted: #9fb3cb;
		--dim: #7890ac;
		--accent: #22c7dd;
		--accent-strong: #22c7dd;
		--accent-bright: #22c7dd;
		--accent-soft: rgba(34, 199, 221, 0.14);
		--accent-ring: rgba(34, 199, 221, 0.4);
		--link: #5fd6e8;
		--success: #34d399;
		--success-soft: rgba(52, 211, 153, 0.14);
		--warning: #fbbf5a;
		--warning-soft: rgba(251, 191, 90, 0.14);
		--danger: #f27c85;
		--danger-soft: rgba(242, 124, 133, 0.14);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
		--shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
		--shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0a1424;
	--bg-alt: #0e1a2e;
	--surface: #122036;
	--surface-2: #16263f;
	--surface-hover: #1a2c48;
	--border: rgba(148, 178, 214, 0.16);
	--border-strong: rgba(148, 178, 214, 0.28);
	--text: #e8f0fa;
	--muted: #9fb3cb;
	--dim: #7890ac;
	--accent: #22c7dd;
	--accent-strong: #22c7dd;
	--accent-bright: #22c7dd;
	--accent-soft: rgba(34, 199, 221, 0.14);
	--accent-ring: rgba(34, 199, 221, 0.4);
	--link: #5fd6e8;
	--success: #34d399;
	--success-soft: rgba(52, 211, 153, 0.14);
	--warning: #fbbf5a;
	--warning-soft: rgba(251, 191, 90, 0.14);
	--danger: #f27c85;
	--danger-soft: rgba(242, 124, 133, 0.14);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
	color-scheme: dark;
}

/* Affichage selon le thème */
.tr-only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tr-only-dark { display: revert !important; }
	:root:not([data-theme="light"]) .tr-only-light { display: none !important; }
}
:root[data-theme="dark"] .tr-only-dark { display: revert !important; }
:root[data-theme="dark"] .tr-only-light { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.tr-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.tr-skip:focus { top: 12px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ---------- Mise en page ---------- */
.tr-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.tr-narrow { max-width: 820px; }
.tr-center { text-align: center; }
.tr-main { display: block; min-height: 50vh; }

.tr-section { padding-block: clamp(64px, 9vw, 112px); }
.tr-section-sm { padding-block: clamp(32px, 5vw, 56px); }
.tr-section-alt { background: var(--bg-alt); }
.tr-stack-xl > * + * { margin-top: clamp(64px, 9vw, 112px); }

.tr-grid { display: grid; gap: 20px; }
.tr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
	.tr-grid-3, .tr-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.tr-grid-2, .tr-grid-3, .tr-grid-4 { grid-template-columns: 1fr; }
}

.tr-muted { color: var(--muted); }
.tr-justify-center { justify-content: center; }

/* ---------- Typographie ---------- */
.tr-h1 { font-size: clamp(2.25rem, 4.8vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.tr-h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.tr-h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
.tr-h4 { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.35em; letter-spacing: -0.005em; }
.tr-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; }

.tr-eyebrow {
	display: inline-block; margin: 0 0 12px;
	font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--accent-strong);
}

.tr-section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.tr-section-head.tr-align-center { text-align: center; }
.tr-section-head.tr-align-left { margin-left: 0; }
.tr-section-head .tr-lead { margin: 0; }

/* ---------- Icônes ---------- */
.tr-ic { width: 22px; height: 22px; flex: none; }
.tr-ic-sm { width: 18px; height: 18px; }
.tr-ic-xs { width: 14px; height: 14px; }

/* ---------- Boutons ---------- */
.tr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 12px;
	font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1; text-decoration: none; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tr-btn:active { transform: translateY(1px); }
.tr-btn .tr-ic { transition: transform 0.15s ease; }
.tr-btn:hover .tr-ic { transform: translateX(2px); }

.tr-btn-primary {
	background: linear-gradient(180deg, #12b5cf 0%, #0891b2 100%); color: #fff;
	box-shadow: 0 8px 20px -8px rgba(8, 145, 178, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.tr-btn-primary:hover { color: #fff; background: linear-gradient(180deg, #1cc2db 0%, #0a9bbd 100%); box-shadow: 0 12px 26px -10px rgba(8, 145, 178, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.tr-btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.tr-btn-ghost:hover { color: var(--text); background: var(--surface-hover); border-color: var(--accent); }

.tr-btn-light { background: #fff; color: var(--navy); }
.tr-btn-light:hover { color: var(--navy); background: #e8f9fc; }

.tr-btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.tr-btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }

.tr-icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0; border-radius: 12px;
	background: transparent; color: inherit; border: 1px solid transparent; cursor: pointer;
	text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tr-icon-btn:hover { background: var(--surface-hover); border-color: var(--border); color: inherit; }
.tr-icon-btn .tr-ic { width: 20px; height: 20px; }

/* ---------- Bandeau d'annonce ---------- */
.tr-announce { position: relative; z-index: 101; background: linear-gradient(90deg, #071b35, #0e3a5c 50%, #071b35); color: rgba(226, 238, 252, 0.92); font-size: 0.88rem; }
.tr-announce[hidden] { display: none; }
.tr-announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-right: calc(var(--gutter) + 40px); position: relative; }
.tr-announce a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 550; }
.tr-announce a:hover { color: #a5f3fc; }
.tr-announce a .tr-ic { transition: transform 0.15s ease; }
.tr-announce a:hover .tr-ic { transform: translateX(3px); }
.tr-announce-badge { padding: 2px 9px; border-radius: 999px; background: rgba(34, 199, 221, 0.2); border: 1px solid rgba(34, 199, 221, 0.45); color: #a5f3fc; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tr-announce-close { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: rgba(226, 238, 252, 0.7); cursor: pointer; }
.tr-announce-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 640px) { .tr-announce-badge { display: none; } .tr-announce-inner { justify-content: flex-start; font-size: 0.82rem; } }

/* ---------- En-tête flottant ---------- */
.tr-header { position: sticky; top: 0; z-index: 100; padding: 12px 0; transition: padding 0.25s ease, margin 0.25s ease; }
.admin-bar .tr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tr-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tr-header { top: 0; } }
/* La place occupée dans la page ne change pas (8+58+8 + 14 = 12+64+12) : sinon la page « saute » et l'en-tête clignote. */
.tr-header.is-scrolled { padding: 8px 0; margin-bottom: 14px; }

.tr-header-bar {
	position: relative; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 10px 0 16px;
	border-radius: 20px; border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 30px -18px rgba(7, 27, 53, 0.35);
	transition: height 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.tr-header.is-scrolled .tr-header-bar { height: 58px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 16px 40px -20px rgba(7, 27, 53, 0.45); }

.tr-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.tr-logo:hover { color: var(--text); }
.tr-logo-img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(7, 27, 53, 0.5); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tr-logo:hover .tr-logo-img { transform: rotate(-8deg) scale(1.06); }
.tr-logo-text { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; letter-spacing: 0.01em; }

/* Navigation */
.tr-nav { position: static; flex: 1; display: flex; justify-content: center; }
.tr-nav-list { position: static; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tr-nav-list > li { position: static; }
.tr-nav-list > li.tr-has-small { position: relative; }
.tr-nav-link {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 12px;
	background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: color 0.15s ease;
}
.tr-nav-link:hover, .tr-nav-link[aria-expanded="true"], .tr-nav-list > li.is-current > .tr-nav-link { color: var(--text); }
.tr-nav-list > li.is-current > .tr-nav-link::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.tr-caret { transition: transform 0.2s ease; opacity: 0.7; }
[aria-expanded="true"] > .tr-caret, [aria-expanded="true"] .tr-caret { transform: rotate(180deg); }
.tr-nav-indicator {
	position: absolute; top: 50%; left: 0; height: 40px; width: 0; margin-top: -20px; border-radius: 12px; z-index: 0;
	background: var(--accent-soft); opacity: 0; pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}

/* Méga-menu */
.tr-mega {
	position: absolute; top: calc(100% + 10px); left: 50%; z-index: 120; width: min(1120px, calc(100vw - 32px));
	padding: 22px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface);
	box-shadow: 0 30px 70px -28px rgba(7, 27, 53, 0.45), 0 2px 6px rgba(7, 27, 53, 0.06);
	transform: translateX(-50%) translateY(8px) scale(0.98); transform-origin: top center; opacity: 0;
	transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tr-mega[hidden] { display: none; }
.tr-mega.is-open { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.tr-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.tr-mega-small { width: 320px; padding: 10px; }
.tr-mega-right { left: auto; right: 0; transform: translateY(8px) scale(0.98); transform-origin: top right; }
.tr-mega-right.is-open { transform: none; }
.tr-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 230px; gap: 8px 14px; }
.tr-mega-col .tr-mega-title:not(:first-child) { margin-top: 14px; }
.tr-mega-title { margin: 4px 10px 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tr-mega ul { list-style: none; margin: 0; padding: 0; }
.tr-mega-col li a, .tr-mega-list a {
	display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none;
	transition: background-color 0.15s ease;
}
.tr-mega-col li a:hover, .tr-mega-list a:hover, .tr-mega a:focus-visible { background: var(--surface-hover); color: var(--text); }
.tr-mega-col li a > span:last-child, .tr-mega-list a > span:last-child { display: grid; gap: 1px; min-width: 0; }
.tr-mega strong { font-size: 0.93rem; font-weight: 650; }
.tr-mega small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.tr-mega-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.tr-mega a:hover .tr-mega-ic { transform: scale(1.06); background: var(--accent); color: #fff; }
.tr-mega-feature {
	grid-row: 1; grid-column: 5; display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 16px; text-decoration: none; color: #fff;
	background: radial-gradient(300px 160px at 100% 0%, rgba(34, 199, 221, 0.3), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-3));
}
.tr-mega-feature:hover { color: #fff; }
.tr-mega-feature small { color: rgba(226, 238, 252, 0.75); }
.tr-mega-shot { display: block; margin-bottom: 6px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(148, 178, 214, 0.25); transition: transform 0.3s ease; }
.tr-mega-feature:hover .tr-mega-shot { transform: translateY(-3px); }
.tr-mega-shot img { width: 100%; height: auto; }
.tr-mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 10px 2px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.tr-mega-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.tr-mega-list-compact a { align-items: center; padding: 8px 10px; }
.tr-mega-list-compact .tr-mega-ic { width: 30px; height: 30px; }
.tr-pop-user { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.tr-pop-user > span:last-child { display: grid; min-width: 0; }
.tr-pop-user small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pop-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.tr-pop-sep a:hover .tr-mega-ic { background: var(--danger); }

/* Actions à droite */
.tr-header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.tr-header-login { padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.tr-header-login:hover { color: var(--text); background: var(--surface-hover); }
.tr-header-actions .tr-header-cta { min-height: 42px; padding: 0 16px; border-radius: 13px; font-size: 0.93rem; }
.tr-account-menu { position: relative; }
.tr-account-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 5px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.93rem; cursor: pointer; }
.tr-account-btn:hover, .tr-account-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-hover); }
.tr-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #22d3ee, #0e7490); color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.tr-avatar-photo { background: var(--surface-2); }
.tr-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tr-avatar-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 0.8rem; }
.tr-avatar-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.05rem; }
.tr-avatar-xl { width: 84px; height: 84px; border-radius: 24px; font-size: 1.6rem; }
.tr-account-avatar { position: relative; display: inline-flex; }
.tr-account-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.tr-account-btn-label { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-account-pop { width: 340px; }
.tr-pop-user { gap: 14px; padding: 10px 10px 14px; }
.tr-pop-avatar { position: relative; display: inline-flex; border-radius: 16px; }
.tr-pop-avatar-edit {
	position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); border: 1px solid var(--border);
	opacity: 0; transform: scale(0.8); transition: opacity 0.18s, transform 0.18s;
}
.tr-pop-avatar:hover .tr-pop-avatar-edit, .tr-pop-avatar:focus-visible .tr-pop-avatar-edit { opacity: 1; transform: none; }
.tr-pop-id { display: grid; gap: 2px; min-width: 0; }
.tr-pop-id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-pop-id small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pop-chip {
	display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 4px; padding: 2px 9px 2px 7px; border-radius: 999px;
	background: var(--success-soft); color: var(--success); font-style: normal; font-size: 0.75rem; font-weight: 600;
}
.tr-mega-list-compact a small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-mega-list a { position: relative; }
.tr-pop-count {
	margin-left: auto; align-self: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; box-sizing: border-box;
	background: var(--danger); color: #fff; font-style: normal; font-size: 0.72rem; font-weight: 700; line-height: 20px; text-align: center;
}
.tr-pop-foot { display: flex; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.tr-pop-theme, .tr-pop-logout {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--text);
	font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tr-pop-theme span { display: inline-flex; align-items: center; gap: 8px; }
.tr-pop-theme:hover { border-color: var(--accent); color: var(--accent-strong); }
.tr-pop-logout:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.tr-cart-link.is-hidden, .tr-cart-menu.is-hidden { display: none; }
.tr-cart-menu { position: relative; }
.tr-cart-count {
	position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--surface);
	font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.tr-cart-count.is-empty { display: none; }

/* Burger animé */
.tr-burger { display: none; }
.tr-burger-lines { position: relative; width: 20px; height: 14px; }
.tr-burger-lines i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease; }
.tr-burger-lines i:nth-child(1) { top: 0; }
.tr-burger-lines i:nth-child(2) { top: 6px; }
.tr-burger-lines i:nth-child(3) { top: 12px; }
.tr-burger[aria-expanded="true"] .tr-burger-lines i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.tr-burger[aria-expanded="true"] .tr-burger-lines i:nth-child(2) { opacity: 0; }
.tr-burger[aria-expanded="true"] .tr-burger-lines i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Sans JavaScript : paliers fixes. Avec JavaScript : l'en-tête mesure la place réelle (classes tr-fit-*). */
@media (max-width: 1180px) {
	html:not(.tr-fit-on) .tr-account-btn-label { display: none; }
	html:not(.tr-fit-on) .tr-nav-link { padding: 0 11px; }
}
@media (max-width: 1020px) {
	html:not(.tr-fit-on) .tr-nav, html:not(.tr-fit-on) .tr-header-login, html:not(.tr-fit-on) .tr-account-menu { display: none; }
	html:not(.tr-fit-on) .tr-burger { display: inline-grid; }
	html:not(.tr-fit-on) .tr-header-bar { justify-content: space-between; }
}
@media (max-width: 520px) {
	.tr-header-actions .tr-header-cta { display: none; }
	.tr-header-bar { height: 58px; border-radius: 16px; }
	.tr-header.is-scrolled { margin-bottom: 8px; } /* seul le padding change ici (12 → 8 de chaque côté) */
}

/* Panneau mobile */
.tr-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: flex-end; background: rgba(4, 12, 24, 0); transition: background-color 0.25s ease; }
.tr-sheet[hidden] { display: none; }
.tr-sheet.is-open { background: rgba(4, 12, 24, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.tr-sheet-panel {
	display: flex; flex-direction: column; width: min(420px, 100%); height: 100%; background: var(--surface); color: var(--text);
	box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.4); transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tr-sheet.is-open .tr-sheet-panel { transform: none; }
.tr-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.tr-sheet-body { flex: 1; overflow-y: auto; padding: 10px 12px; }
.tr-sheet-group { border-bottom: 1px solid var(--border); }
.tr-sheet-group summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.tr-sheet-group summary::-webkit-details-marker { display: none; }
.tr-sheet-group summary .tr-ic { transition: transform 0.2s ease; color: var(--muted); }
.tr-sheet-group[open] summary .tr-ic { transform: rotate(180deg); }
.tr-sheet-group ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.tr-sheet-group li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 550; }
.tr-sheet-group li a:hover { background: var(--surface-hover); }
.tr-sheet-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.tr-sheet-foot { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--border); }
.tr-sheet-foot .tr-btn { width: 100%; }
body.tr-no-scroll { overflow: hidden; }

/* Accueil : barre posée sur le bleu nuit tant qu'on n'a pas défilé */
.tr-home .tr-header { position: fixed; left: 0; right: 0; }
.tr-home .tr-announce + .tr-header { top: 42px; }
.tr-home.admin-bar .tr-announce + .tr-header { top: 74px; }
.tr-home .tr-header.is-scrolled { top: 0 !important; }
.tr-home.admin-bar .tr-header.is-scrolled { top: 32px !important; }
.tr-home .tr-hero { padding-top: calc(var(--header-h) + 24px + clamp(40px, 7vw, 88px)); }
.tr-home .tr-header:not(.is-scrolled) .tr-header-bar { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.tr-home .tr-header:not(.is-scrolled) .tr-logo,
.tr-home .tr-header:not(.is-scrolled) .tr-header-login,
.tr-home .tr-header:not(.is-scrolled) .tr-icon-btn { color: #fff; }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link { color: rgba(226, 238, 252, 0.8); }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover, .tr-home .tr-header:not(.is-scrolled) .tr-nav-link[aria-expanded="true"] { color: #fff; }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-indicator { background: rgba(255, 255, 255, 0.1); }
.tr-home .tr-header:not(.is-scrolled) .tr-icon-btn:hover, .tr-home .tr-header:not(.is-scrolled) .tr-header-login:hover { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.tr-home .tr-header:not(.is-scrolled) .tr-account-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.tr-home .tr-header:not(.is-scrolled) .tr-cart-count { box-shadow: 0 0 0 2px var(--navy); }

/* ---------- Héros ---------- */
.tr-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding-bottom: clamp(56px, 8vw, 104px);
	background:
		radial-gradient(1200px 520px at 85% -10%, rgba(34, 199, 221, 0.22), transparent 60%),
		radial-gradient(900px 520px at -10% 110%, rgba(96, 165, 250, 0.18), transparent 60%),
		linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
	color: #fff;
}
.tr-hero-glow {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.tr-hero-inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tr-hero-copy .tr-h1 { color: #fff; }
.tr-hero-text { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(226, 238, 252, 0.82); max-width: 560px; margin-bottom: 28px; }
.tr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: rgba(226, 238, 252, 0.78); font-size: 0.95rem; }
.tr-hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.tr-hero-facts .tr-ic { color: #5eead4; }

.tr-pill {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
	padding: 6px 14px 6px 10px; border-radius: 999px;
	background: rgba(34, 199, 221, 0.12); border: 1px solid rgba(34, 199, 221, 0.35);
	color: #a5f3fc; font-size: 0.88rem; font-weight: 600;
}

.tr-hero-visual { position: relative; }
@media (min-width: 1200px) { .tr-hero-visual { margin-right: -72px; } }
.tr-hero-visual .tr-window { transform: perspective(1800px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
@media (max-width: 960px) {
	.tr-hero-inner { grid-template-columns: 1fr; }
	.tr-hero-visual .tr-window { transform: none; }
}

.tr-float-card {
	position: absolute; display: flex; align-items: center; gap: 12px;
	padding: 12px 16px 12px 12px; border-radius: 16px;
	background: rgba(255, 255, 255, 0.96); color: var(--navy);
	box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
	font-size: 0.85rem; line-height: 1.3;
	animation: tr-float 6s ease-in-out infinite;
}
.tr-float-card strong { display: block; font-size: 0.95rem; }
.tr-float-card small { color: #5b7493; }
.tr-float-a { left: -24px; bottom: 14%; }
.tr-float-b { right: -8px; top: -18px; animation-delay: -3s; }
.tr-float-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; }
.tr-tone-green { background: linear-gradient(135deg, #34d399, #059669); }
.tr-tone-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
@keyframes tr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 640px) { .tr-float-card { display: none; } }

/* ---------- Fenêtre d'application (captures) ---------- */
.tr-window {
	margin: 0; border-radius: 14px; overflow: hidden;
	background: #0b1729; border: 1px solid rgba(148, 178, 214, 0.22);
	box-shadow: var(--shadow-lg);
}
.tr-window-bar {
	display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
	background: linear-gradient(180deg, #13243d, #0f1e33); border-bottom: 1px solid rgba(148, 178, 214, 0.16);
}
.tr-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4f6b; }
.tr-window-bar i:nth-child(1) { background: #f27c85; }
.tr-window-bar i:nth-child(2) { background: #fbbf5a; }
.tr-window-bar i:nth-child(3) { background: #34d399; }
.tr-window-bar span { margin-left: 8px; color: rgba(226, 238, 252, 0.6); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.tr-window-body img { width: 100%; height: auto; }
.tr-window-body { background: #edf4fb; }

/* ---------- Bandeau des modules ---------- */
.tr-module-strip { padding: 22px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.tr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tr-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
	font-size: 0.9rem; font-weight: 550; text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.tr-chip .tr-ic { color: var(--accent); }
.tr-chip:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

/* ---------- Cartes ---------- */
.tr-card {
	position: relative; display: block; padding: 26px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); color: var(--text);
}
.tr-card p { color: var(--muted); margin: 0; }
.tr-card-link { text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.tr-card-link:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tr-card-kicker { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.tr-module-card .tr-h3 { margin-bottom: 8px; }
.tr-card-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-weight: 600; font-size: 0.92rem; color: var(--accent-strong); }
.tr-card-link:hover .tr-card-more .tr-ic { transform: translateX(3px); }
.tr-card-more .tr-ic { transition: transform 0.15s ease; }

.tr-tile {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	background: linear-gradient(135deg, #22d3ee 0%, #0891b2 60%, #0e7490 100%); color: #fff;
	box-shadow: 0 10px 20px -10px rgba(8, 145, 178, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tr-tile { flex: none; } /* jamais écrasée dans une ligne flex */
.tr-tile .tr-ic { width: 24px; height: 24px; }
.tr-tile-soft { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.tr-tile-soft .tr-ic { width: 22px; height: 22px; }

.tr-badge {
	display: inline-block; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
	background: var(--warning-soft); color: var(--warning); font-style: normal;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.tr-h2 .tr-badge { font-size: 0.8rem; vertical-align: 0.35em; }

/* ---------- Blocs texte + capture ---------- */
.tr-split { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tr-split-reverse { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.78fr); }
.tr-split-reverse .tr-split-copy { order: 2; }
.tr-split-copy .tr-lead { margin-bottom: 20px; }
@media (max-width: 900px) {
	.tr-split, .tr-split-reverse { grid-template-columns: 1fr; }
	.tr-split-reverse .tr-split-copy { order: 0; }
}

.tr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tr-checks li { display: flex; gap: 10px; align-items: flex-start; }
.tr-checks .tr-ic {
	margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--success-soft); color: var(--success); stroke-width: 3;
}

/* ---------- Atouts ---------- */
.tr-feature { display: flex; gap: 16px; padding: 8px 4px; }
.tr-feature p { color: var(--muted); margin: 0; }

/* ---------- Tarifs (aperçu) ---------- */
.tr-pricing-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .tr-pricing-teaser { grid-template-columns: minmax(0, 1fr); } }
.tr-price-card {
	padding: 32px; border-radius: var(--radius-xl); text-align: center;
	background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
	border: 1px solid var(--border); box-shadow: var(--shadow);
}
.tr-price-card .tr-btn { width: 100%; margin-top: 8px; }
.tr-price-card-label { margin: 0 0 6px; font-weight: 650; color: var(--muted); }
.tr-price-big { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.tr-price-big span { font-size: 3.6rem; letter-spacing: -0.04em; line-height: 1; }
.tr-price-big small { display: block; font-size: 0.9rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }

/* ---------- Questions fréquentes ---------- */
.tr-faq { display: grid; gap: 10px; }
.tr-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tr-faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.tr-faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
}
.tr-faq-item summary::-webkit-details-marker { display: none; }
.tr-faq-ic { color: var(--accent); transition: transform 0.2s ease; }
.tr-faq-item[open] .tr-faq-ic { transform: rotate(45deg); }
.tr-faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Bandeau final ---------- */
.tr-cta-band {
	padding-block: clamp(56px, 7vw, 88px); color: #fff;
	background:
		radial-gradient(700px 300px at 90% 0%, rgba(34, 199, 221, 0.3), transparent 70%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
.tr-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tr-cta-inner .tr-h2 { color: #fff; margin-bottom: 8px; }
.tr-cta-inner .tr-lead { color: rgba(226, 238, 252, 0.8); margin: 0; }
.tr-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.tr-footer { border-top: 1px solid rgba(148, 178, 214, 0.14); background: var(--navy); color: rgba(226, 238, 252, 0.72); padding: 64px 0 28px; font-size: 0.95rem; }
.tr-footer a { color: rgba(226, 238, 252, 0.82); text-decoration: none; }
.tr-footer a:hover { color: #fff; text-decoration: underline; }
.tr-footer .tr-logo, .tr-footer .tr-logo:hover { color: #fff; text-decoration: none; }
.tr-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 960px) { .tr-footer-grid { grid-template-columns: 1fr 1fr; } .tr-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .tr-footer-grid { grid-template-columns: 1fr; } }
.tr-footer-brand p { margin: 16px 0; max-width: 320px; }
.tr-footer-title { font-family: var(--font); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.tr-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tr-footer-contact { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.tr-footer-contact li { display: flex; gap: 10px; align-items: center; }
.tr-footer-app {
	display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
	margin: -8px 0 48px; padding: 22px 26px; border-radius: var(--radius-lg);
	background: radial-gradient(500px 200px at 0% 0%, rgba(34, 199, 221, 0.22), transparent 70%), rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 178, 214, 0.18);
}
.tr-footer-app-text { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tr-footer-app-text strong { display: block; color: #fff; font-size: 1.08rem; }
.tr-footer-app-text span { color: rgba(226, 238, 252, 0.7); }
.tr-footer-app-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(34, 199, 221, 0.16); color: #67e8f9; }
.tr-footer-app-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tr-footer .tr-btn:hover { text-decoration: none; }
.tr-footer-social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-footer-social a {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(148, 178, 214, 0.16); color: rgba(226, 238, 252, 0.85);
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.tr-footer-social a:hover { background: rgba(34, 199, 221, 0.18); color: #fff; transform: translateY(-2px); text-decoration: none; }
.tr-footer-links a { display: inline-block; padding: 2px 0; transition: color 0.15s, transform 0.15s; }
.tr-footer-links a:hover { transform: translateX(3px); text-decoration: none; }
.tr-footer-trust {
	display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 22px;
	border-top: 1px solid rgba(148, 178, 214, 0.12); color: rgba(226, 238, 252, 0.62); font-size: 0.88rem;
}
.tr-footer-trust > span, .tr-footer-trust > a { display: inline-flex; align-items: center; gap: 8px; }
.tr-footer-trust .tr-ic { color: #22c7dd; }
.tr-to-top {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(148, 178, 214, 0.18); color: #fff;
	transition: background 0.15s, transform 0.15s;
}
.tr-to-top:hover { background: rgba(34, 199, 221, 0.2); transform: translateY(-2px); }
.tr-footer-contact .tr-ic { color: #22c7dd; }
.tr-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(148, 178, 214, 0.12); font-size: 0.88rem;
}
.tr-footer-bottom p { margin: 0; }
.tr-footer-bottom { padding-right: 76px; } /* place pour la flèche « haut de page » */
@media (max-width: 640px) { .tr-footer-bottom { padding-right: 0; padding-bottom: 64px; } }
.tr-legal-links .trc-manage { text-decoration: none; }
.tr-legal-links .trc-manage:hover { text-decoration: underline; }
.tr-legal-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.tr-status-link { display: inline-flex; align-items: center; gap: 8px; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

/* ---------- Pages ---------- */
.tr-page-head {
	padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
	background:
		radial-gradient(800px 300px at 80% 0%, var(--accent-soft), transparent 70%),
		var(--bg-alt);
	border-bottom: 1px solid var(--border);
}
.tr-page-head-sm { padding: 36px 0 28px; }
.tr-page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.tr-page-head .tr-lead { margin: 14px 0 0; max-width: 720px; }
.tr-page-head.tr-center .tr-lead { margin-inline: auto; }

.tr-prose { max-width: 760px; font-size: 1.04rem; }
.tr-prose-wide { max-width: none; }
.tr-prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.tr-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.tr-prose ul, .tr-prose ol { padding-left: 1.3em; }
.tr-prose li + li { margin-top: 0.35em; }
.tr-prose img { border-radius: var(--radius); }
.tr-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }

.tr-post-card { padding: 0; overflow: hidden; }
.tr-post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.tr-post-card-link:hover { color: inherit; }
.tr-post-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tr-post-card-body { padding: 4px 22px 24px; }
.tr-post-hero { margin: 0 0 28px; }
.tr-post-hero img { border-radius: var(--radius-lg); }
.tr-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.tr-pagination { margin-top: 40px; }
.tr-pagination .nav-links { display: flex; gap: 6px; justify-content: center; }
.tr-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
.tr-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Page Fonctionnalités ---------- */
.tr-subnav {
	position: sticky; top: var(--header-h); z-index: 50;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.admin-bar .tr-subnav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .tr-subnav { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .tr-subnav { top: var(--header-h); } }
.tr-subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.tr-subnav ul::-webkit-scrollbar { display: none; }
.tr-subnav a { display: block; padding: 8px 14px; border-radius: 999px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 0.93rem; text-decoration: none; }
.tr-subnav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.tr-feature-group:nth-of-type(even) { background: var(--bg-alt); }
.tr-feature-group { scroll-margin-top: calc(var(--header-h) + 56px); }
.tr-feature-group .tr-split { scroll-margin-top: calc(var(--header-h) + 72px); }
.tr-group-title { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); }
.tr-group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tr-stack-l > * + * { margin-top: clamp(56px, 7vw, 88px); }
.tr-mt { margin-top: 18px; }
.tr-mt-l { margin-top: 40px; }
.tr-split-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- Galerie ---------- */
.tr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.tr-gallery-item { margin: 0; }
.tr-gallery-note { margin-top: 28px; font-size: .82rem; color: var(--muted); }
.tr-gallery-note summary { cursor: pointer; }
.tr-gallery-note ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.tr-gallery-note a { color: inherit; text-decoration: underline; }
.tr-gallery-item a {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tr-gallery-item a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tr-gallery-item img { width: 100%; height: auto; }
.tr-gallery-zoom {
	position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px; background: rgba(7, 27, 53, 0.78); color: #fff;
	opacity: 0; transform: scale(0.9); transition: opacity 0.15s ease, transform 0.15s ease;
}
.tr-gallery-item a:hover .tr-gallery-zoom, .tr-gallery-item a:focus-visible .tr-gallery-zoom { opacity: 1; transform: none; }
.tr-gallery-item figcaption { margin-top: 10px; color: var(--muted); font-size: 0.93rem; }

.tr-lightbox {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; gap: 12px;
	padding: 56px 16px 24px; background: rgba(4, 12, 24, 0.92);
}
.tr-lightbox[hidden] { display: none; }
.tr-lightbox figure { margin: 0; max-width: min(1600px, 100%); }
.tr-lightbox img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.tr-lightbox figcaption { margin-top: 12px; color: rgba(226, 238, 252, 0.85); text-align: center; font-size: 0.95rem; }
.tr-lb-btn {
	display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
	background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer;
}
.tr-lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.tr-lb-prev .tr-ic { transform: rotate(180deg); }
.tr-lb-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 640px) {
	.tr-lb-prev, .tr-lb-next { position: absolute; bottom: 16px; }
	.tr-lb-prev { left: 16px; }
	.tr-lb-next { right: 16px; }
}

/* ---------- Configurateur (page Tarifs) ---------- */
.tro-config { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .tro-config { grid-template-columns: minmax(0, 1fr); } }
.tro-config-main { display: grid; gap: 20px; }
.tro-block { margin: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.tro-block-title { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; float: left; width: 100%; }
.tro-block-title + * { clear: both; }
.tro-step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.9rem; font-weight: 700; }

.tro-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tro-pack {
	display: grid; gap: 4px; padding: 16px; text-align: left; cursor: pointer;
	border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.tro-pack:hover { border-color: var(--border-strong); }
.tro-pack.is-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.tro-pack-name { font-weight: 700; font-size: 1.05rem; }
.tro-pack-price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--accent-strong); }
.tro-pack-price small { font-size: 0.78rem; font-weight: 550; color: var(--muted); }
.tro-pack-text { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.tro-pack-meta { margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--dim); }

.tro-steppers { display: grid; gap: 14px; }
.tro-stepper { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.tro-stepper label { display: grid; gap: 2px; }
.tro-stepper label small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.tro-stepper-ctrl { display: flex; align-items: center; flex: none; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tro-stepper-ctrl button { width: 42px; height: 44px; border: 0; background: transparent; color: var(--accent-strong); font-size: 1.35rem; font-weight: 600; cursor: pointer; }
.tro-stepper-ctrl button:hover { background: var(--accent-soft); }
.tro-stepper-ctrl input { width: 54px; height: 44px; border: 0; border-inline: 1px solid var(--border); background: transparent; color: var(--text); text-align: center; font: inherit; font-size: 1.1rem; font-weight: 700; -moz-appearance: textfield; }
.tro-stepper-ctrl input::-webkit-outer-spin-button, .tro-stepper-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) { .tro-stepper { flex-direction: column; align-items: stretch; } .tro-stepper-ctrl { align-self: flex-start; } }

.tro-periods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tro-periods { grid-template-columns: 1fr; } }
.tro-period { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.tro-period:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tro-period input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.tro-period span { display: grid; gap: 2px; }
.tro-period small { color: var(--muted); }
.tro-save { position: absolute; top: -10px; right: 12px; padding: 2px 10px; border-radius: 999px; background: var(--success); color: #fff; font-style: normal; font-size: 0.78rem; font-weight: 700; }

.tro-summary {
	position: sticky; top: calc(var(--header-h) + 20px);
	padding: 26px; border-radius: var(--radius-xl); color: #fff;
	background: radial-gradient(500px 240px at 100% 0%, rgba(34, 199, 221, 0.25), transparent 70%), linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
	box-shadow: var(--shadow-lg);
}
.tro-summary-title { margin: 0 0 14px; font-weight: 650; color: rgba(226, 238, 252, 0.8); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.tro-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.tro-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.93rem; color: rgba(226, 238, 252, 0.88); }
.tro-lines strong { color: #fff; white-space: nowrap; }
.tro-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding-top: 16px; border-top: 1px solid rgba(148, 178, 214, 0.25); }
.tro-total span { font-weight: 600; }
.tro-total strong { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1; }
.tro-total small { grid-column: 1 / -1; text-align: right; color: rgba(226, 238, 252, 0.7); }
.tro-saving { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(52, 211, 153, 0.16); color: #a7f3d0; font-size: 0.88rem; }
.tro-included { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; color: rgba(226, 238, 252, 0.8); }
.tro-included li { padding-left: 22px; position: relative; }
.tro-included li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid #5eead4; border-bottom: 2px solid #5eead4; transform: rotate(-45deg); }
.tro-submit { width: 100%; min-height: 52px; font-size: 1.02rem; }
.tro-secure { margin: 12px 0 0; text-align: center; font-size: 0.85rem; color: rgba(226, 238, 252, 0.7); }
.tro-secure a { color: #a5f3fc; }

.tr-included-grid { gap: 12px; }
.tr-included-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.95rem; }
.tr-included-item .tr-ic { color: var(--success); }

/* ---------- Formulaires (Contact, Essai) ---------- */
.tr-form-page { background: radial-gradient(900px 400px at 100% 0%, var(--accent-soft), transparent 70%), var(--bg-alt); }
.tr-form-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .tr-form-layout { grid-template-columns: 1fr; } }
.tr-form-intro .tr-lead { margin-top: 16px; }
.tr-form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }

.tr-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.tr-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.tr-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.tr-steps strong { align-self: end; }
.tr-steps span { color: var(--muted); font-size: 0.95rem; }

.tr-contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.tr-contact-list li { display: flex; gap: 14px; align-items: center; }
.tr-contact-list li > span:last-child { display: grid; }
.tr-contact-list small { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.tr-contact-list a { font-weight: 600; }

.tro-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tro-form-grid { grid-template-columns: 1fr; } }
.tro-field { margin: 0; display: grid; gap: 6px; }
.tro-field-wide { grid-column: 1 / -1; }
.tro-field label { font-weight: 600; font-size: 0.93rem; }
.tro-field label span { color: var(--danger); }
.tro-field input, .tro-field select, .tro-field textarea,
.tr-input {
	width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
	border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
	font: inherit; font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.tro-field textarea { resize: vertical; min-height: 120px; }
.tro-field input:focus, .tro-field select:focus, .tro-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
.tro-consent { margin: 18px 0; font-size: 0.9rem; color: var(--muted); }
.tro-consent label { display: flex; gap: 10px; align-items: flex-start; }
.tro-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tro-form .tr-btn { width: 100%; min-height: 50px; }
.tro-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tro-form-error { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); font-weight: 550; }
.tro-form-done { padding: 28px; border-radius: var(--radius-lg); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.tro-form-done strong { display: block; font-size: 1.2rem; margin-bottom: 6px; color: var(--success); }
.tro-form-done p { margin: 0; }

/* ==========================================================================
   Animations et sections enrichies (accueil)
   ========================================================================== */

/* ---------- Apparition au défilement ----------
   Activée seulement quand le script tourne (classe tr-anim sur <html>) : sans JS, tout est visible. */
.tr-anim [data-reveal] {
	opacity: 0; transform: translateY(22px) scale(0.985);
	transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--d, 0) * 80ms);
}
.tr-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Entrée du héros */
.tr-enter { animation: tr-enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes tr-enter { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Héros : aurore animée ---------- */
.tr-aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -2; pointer-events: none; filter: blur(60px); opacity: 0.85; }
.tr-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.tr-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -8%; background: radial-gradient(circle, rgba(34, 199, 221, 0.55), transparent 65%); animation: tr-drift-a 18s ease-in-out infinite alternate; }
.tr-aurora i:nth-child(2) { width: 38vw; height: 38vw; left: -6%; top: 30%; background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 65%); animation: tr-drift-b 22s ease-in-out infinite alternate; }
.tr-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 30%; top: 45%; background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%); animation: tr-drift-c 26s ease-in-out infinite alternate; }
@keyframes tr-drift-a { to { transform: translate(-12vw, 8vh) scale(1.15); } }
@keyframes tr-drift-b { to { transform: translate(14vw, -6vh) scale(0.9); } }
@keyframes tr-drift-c { to { transform: translate(-6vw, -12vh) scale(1.2); } }

.tr-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); animation: tr-ping 2s ease-out infinite; }
@keyframes tr-ping { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } }

.tr-gradient-text {
	background: linear-gradient(100deg, #67e8f9 0%, #22c7dd 30%, #a5b4fc 60%, #67e8f9 100%);
	background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
	padding-bottom: 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
	animation: tr-shimmer 7s linear infinite;
}
@keyframes tr-shimmer { to { background-position: 200% center; } }

.tr-btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; border-radius: 14px; }
.tr-shine { position: relative; overflow: hidden; isolation: isolate; }
.tr-shine::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
	transform: translateX(-120%); animation: tr-sweep 4.5s ease-in-out infinite 1.5s;
}
@keyframes tr-sweep { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Relief de la capture (piloté par la souris) */
.tr-hero-visual[data-tr-tilt] .tr-window { transition: transform 0.25s ease-out; will-change: transform; }
.tr-float-c { left: 18%; bottom: -26px; animation-delay: -1.5s; }
@media (max-width: 960px) { .tr-float-c { display: none; } }
.tr-tone-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* ---------- Défilement continu des modules ---------- */
.tr-marquee {
	position: relative; overflow: hidden; padding: 18px 0; background: var(--surface); border-bottom: 1px solid var(--border);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tr-marquee-track { display: flex; width: max-content; animation: tr-marquee 48s linear infinite; }
.tr-marquee:hover .tr-marquee-track, .tr-marquee:focus-within .tr-marquee-track { animation-play-state: paused; }
.tr-marquee-list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0 5px; }
.tr-marquee-list .tr-chip { white-space: nowrap; }
@keyframes tr-marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.tr-stats { padding: clamp(36px, 5vw, 56px) 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.tr-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .tr-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-stat { display: grid; gap: 4px; text-align: center; padding: 8px; }
.tr-stat strong {
	font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
	padding: 0 0.06em 0.12em; /* le dégradé ne rogne plus les jambages (j, g, p) */
	background: linear-gradient(135deg, var(--accent-strong), #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tr-stat > span { color: var(--muted); font-size: 0.95rem; }
:root[data-theme="dark"] .tr-stat strong { background-image: linear-gradient(135deg, #67e8f9, #a5b4fc); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-stat strong { background-image: linear-gradient(135deg, #67e8f9, #a5b4fc); } }

/* ---------- En chiffres, en direct ---------- */
.tr-live { padding-top: clamp(24px, 4vw, 40px); }
.tr-live-panel {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-xl); color: #fff;
	background:
		radial-gradient(700px 320px at 92% -10%, rgba(34, 199, 221, 0.32), transparent 60%),
		radial-gradient(600px 300px at -8% 110%, rgba(99, 102, 241, 0.28), transparent 60%),
		linear-gradient(140deg, var(--navy), var(--navy-3));
	box-shadow: var(--shadow-lg);
}
.tr-live-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
	background-image: linear-gradient(rgba(148, 178, 214, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 178, 214, 0.08) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.tr-live-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 32px); }
.tr-live-head .tr-h2 { color: #fff; margin: 8px 0 6px; }
.tr-live-lead { margin: 0; color: rgba(226, 238, 252, 0.75); max-width: 56ch; }
.tr-live-badge {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px 5px 10px; border-radius: 999px;
	background: rgba(34, 199, 221, 0.14); border: 1px solid rgba(34, 199, 221, 0.35);
	color: #a5f3fc; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.tr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: tr-live-pulse 2s infinite; }
@keyframes tr-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.tr-live-version {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none;
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(226, 238, 252, 0.9);
	transition: background 0.2s, border-color 0.2s;
}
.tr-live-version:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(34, 199, 221, 0.5); color: #fff; }
.tr-live-version strong { color: #fff; }

.tr-live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .tr-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tr-live-grid { grid-template-columns: minmax(0, 1fr); } }
.tr-live-card {
	position: relative; display: grid; gap: 4px; align-content: start; min-width: 0;
	padding: 20px 20px 18px; border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(148, 178, 214, 0.18);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tr-live-card:hover { transform: translateY(-3px); border-color: rgba(34, 199, 221, 0.45); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); }
.tr-live-icon {
	display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px;
	background: rgba(34, 199, 221, 0.14); color: #67e8f9;
}
.tr-live-icon .tr-ic { width: 20px; height: 20px; }
.tr-live-value {
	font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 0.1em; line-height: 1.15;
	background: linear-gradient(135deg, #ffffff 10%, #67e8f9 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tr-live-label { color: #fff; font-weight: 600; font-size: 1rem; }
.tr-live-sub { min-height: 1.35em; color: rgba(226, 238, 252, 0.62); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.35s; }
.tr-live-sub.is-fading { opacity: 0; }
.tr-live-card.is-bumped { border-color: rgba(34, 211, 238, 0.8); }
.tr-live-bump {
	position: absolute; top: 14px; right: 14px; padding: 2px 9px; border-radius: 999px;
	background: #22d3ee; color: var(--navy); font-size: 0.78rem; font-weight: 700;
	animation: tr-live-bump 2.4s ease forwards;
}
@keyframes tr-live-bump { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.tr-live-foot { margin: 18px 0 0; color: rgba(226, 238, 252, 0.5); font-size: 0.82rem; text-align: right; }
@media (prefers-reduced-motion: reduce) {
	.tr-live-dot, .tr-live-bump { animation: none; }
	.tr-live-card, .tr-live-sub { transition: none; }
}

/* ---------- Téléchargement de l'appli ---------- */
.tr-dl-card {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center;
	padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl);
	background:
		radial-gradient(520px 260px at 0% 0%, var(--accent-soft), transparent 70%),
		linear-gradient(180deg, var(--surface), var(--surface-2));
	border: 1px solid var(--border); box-shadow: var(--shadow);
}
@media (max-width: 720px) { .tr-dl-card { grid-template-columns: minmax(0, 1fr); text-align: center; } .tr-dl-visual { margin: 0 auto; } .tr-dl-points, .tr-dl-actions { justify-content: center; } .tr-dl-points li { justify-content: center; } }
.tr-dl-visual { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 36px; background: linear-gradient(140deg, var(--navy), var(--navy-3)); box-shadow: var(--shadow-lg); }
.tr-dl-logo img { display: block; width: 72px; height: 72px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.tr-dl-ver {
	position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
	background: linear-gradient(135deg, var(--accent-bright), var(--accent)); color: #fff; font-size: 0.82rem; font-weight: 700;
	box-shadow: 0 8px 18px -8px rgba(8, 145, 178, 0.8);
}
.tr-dl-text .tr-h2 { margin: 6px 0 8px; }
.tr-dl-text .tr-lead { margin: 0 0 14px; }
.tr-dl-points { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); }
.tr-dl-points li { display: flex; gap: 8px; align-items: center; }
.tr-dl-points .tr-ic { color: var(--success); }
.tr-dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Explorateur de modules ---------- */
.tr-explorer { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .tr-explorer { grid-template-columns: 1fr; } }
.tr-explorer-tabs { display: grid; gap: 8px; }
@media (max-width: 960px) {
	.tr-explorer-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.tr-explorer-tabs::-webkit-scrollbar { display: none; }
	.tr-explorer-tab { flex: 0 0 78%; scroll-snap-align: start; }
}
.tr-explorer-tab {
	position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 16px; text-align: left;
	border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tr-explorer-tab:hover { background: var(--surface); border-color: var(--border); }
.tr-explorer-tab[aria-selected="true"] { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tr-explorer-tab .tr-tile { filter: grayscale(0.6) opacity(0.75); transition: filter 0.2s ease; }
.tr-explorer-tab[aria-selected="true"] .tr-tile, .tr-explorer-tab:hover .tr-tile { filter: none; }
.tr-explorer-tab-text { display: grid; gap: 2px; min-width: 0; }
.tr-explorer-tab-text strong { font-weight: 650; }
.tr-explorer-tab-text small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.tr-explorer-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #22d3ee, #8b5cf6); transform: scaleX(0); transform-origin: left; }
.tr-explorer-tab[aria-selected="true"] .tr-explorer-progress { animation: tr-progress var(--tr-explorer-delay, 7s) linear forwards; }
.tr-explorer.is-paused .tr-explorer-tab[aria-selected="true"] .tr-explorer-progress { animation-play-state: paused; }
@keyframes tr-progress { to { transform: scaleX(1); } }
.tr-explorer-stage { position: relative; min-width: 0; }
.tr-explorer-panel.is-active { animation: tr-panel-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes tr-panel-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.tr-checks-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }

/* ---------- Comment ça marche ---------- */
.tr-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.tr-how::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); }
@media (max-width: 860px) { .tr-how { grid-template-columns: 1fr; } .tr-how::before { display: none; } }
.tr-how li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tr-how li p { color: var(--muted); margin: 0; }
.tr-how-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent-ring); }
.tr-how .tr-tile { width: 60px; height: 60px; border-radius: 18px; }
.tr-how .tr-tile .tr-ic { width: 28px; height: 28px; }

/* ---------- Comparatif ---------- */
.tr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .tr-compare { grid-template-columns: 1fr; } }
.tr-compare-col { padding: 26px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.tr-compare-col h3 { display: flex; align-items: center; gap: 10px; }
.tr-compare-col h3 .tr-ic { padding: 4px; width: 26px; height: 26px; border-radius: 50%; stroke-width: 3; }
.tr-compare-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.tr-compare-col li { position: relative; padding-left: 26px; }
.tr-compare-col li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; }
.tr-compare-before { color: var(--muted); }
.tr-compare-before h3 { color: var(--text); }
.tr-compare-before h3 .tr-ic { background: var(--danger-soft); color: var(--danger); }
.tr-compare-before li::before { background: var(--danger-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 45%, transparent); }
.tr-compare-after {
	color: rgba(226, 238, 252, 0.9); border-color: transparent;
	background: radial-gradient(500px 240px at 100% 0%, rgba(34, 199, 221, 0.28), transparent 70%), linear-gradient(150deg, var(--navy), var(--navy-3));
	box-shadow: var(--shadow-lg);
}
.tr-compare-after h3 { color: #fff; }
.tr-compare-after h3 .tr-ic { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.tr-compare-after li::before { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }

/* ---------- Cartes : halo qui suit la souris ---------- */
.tr-spot { position: relative; overflow: hidden; isolation: isolate; }
.tr-spot::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
}
.tr-spot:hover::before { opacity: 1; }
.tr-spot:hover { border-color: var(--border-strong); }
.tr-for-card p, .tr-feature p { color: var(--muted); margin: 0; }
.tr-feature.tr-card { display: flex; gap: 16px; padding: 22px; }

/* Bordure lumineuse animée */
.tr-glow-border { position: relative; isolation: isolate; }
.tr-glow-border::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
	background: conic-gradient(from var(--tr-angle, 0deg), transparent 0 70%, #22d3ee 80%, #8b5cf6 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: tr-spin 6s linear infinite;
}
@property --tr-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tr-spin { to { --tr-angle: 360deg; } }

/* ---------- Barre de progression de lecture ---------- */
.tr-progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; pointer-events: none; transform-origin: left; transform: scaleX(var(--tr-scroll, 0)); background: linear-gradient(90deg, #22d3ee, #8b5cf6); }
.admin-bar .tr-progress-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .tr-progress-bar { top: 46px; } }

/* ---------- Pages : entrée douce ---------- */
.tr-page-head .tr-page-title, .tr-page-head .tr-lead, .tr-page-head .tr-eyebrow { animation: tr-enter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tr-page-head .tr-page-title { animation-delay: 0.08s; }
.tr-page-head .tr-lead { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
	.tr-anim [data-reveal] { opacity: 1; transform: none; }
	.tr-aurora i, .tr-marquee-track, .tr-gradient-text, .tr-shine::after, .tr-glow-border::before, .tr-pill-dot { animation: none !important; }
	.tr-enter { animation: none; }
}

/* ---------- Notifications (popups) ---------- */
.tr-toasts {
	position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 3000;
	display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.admin-bar .tr-toasts { top: calc(var(--header-h) + 44px); }
@media (max-width: 600px) { .tr-toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } }
.tr-toast {
	position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
	padding: 14px 12px 14px 14px; border-radius: 16px; pointer-events: auto;
	background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
	border: 1px solid var(--border); box-shadow: 0 24px 48px -20px rgba(7, 27, 53, 0.45), 0 2px 6px rgba(7, 27, 53, 0.06);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	animation: tr-toast-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tr-toast.is-leaving { animation: tr-toast-out 0.26s ease forwards; }
@keyframes tr-toast-in { from { opacity: 0; transform: translateX(28px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes tr-toast-out { to { opacity: 0; transform: translateX(28px) scale(0.96); } }
@media (max-width: 600px) {
	@keyframes tr-toast-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
}
.tr-toast-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; }
.tr-toast-ic .tr-ic { width: 18px; height: 18px; stroke-width: 2.5; }
.tr-toast-success .tr-toast-ic { background: linear-gradient(135deg, #34d399, #059669); }
.tr-toast-info .tr-toast-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.tr-toast-warning .tr-toast-ic { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tr-toast-error .tr-toast-ic { background: linear-gradient(135deg, #fb7185, #e11d48); }
.tr-toast-body { min-width: 0; padding-top: 1px; }
.tr-toast-title { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.tr-toast-msg { color: var(--muted); font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.tr-toast-msg ul { margin: 4px 0 0; padding-left: 18px; }
.tr-toast-msg a:not(.button) { font-weight: 600; }
.tr-toast-msg .button, .tr-toast-msg .tr-btn {
	display: inline-flex; align-items: center; margin-top: 8px; min-height: 32px; padding: 0 12px; border-radius: 9px;
	border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; float: none;
}
.tr-toast-msg .button:hover { border-color: var(--accent); }
.tr-toast-msg form { margin-top: 8px; }
.tr-toast-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.tr-toast-close:hover { background: var(--surface-hover); color: var(--text); }
.tr-toast-close .tr-ic { width: 16px; height: 16px; }
.tr-toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: tr-toast-timer linear forwards; opacity: 0.8; }
.tr-toast-success .tr-toast-timer { background: #10b981; }
.tr-toast-info .tr-toast-timer { background: #22c7dd; }
.tr-toast.is-paused .tr-toast-timer { animation-play-state: paused; }
@keyframes tr-toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.tr-toasted { display: none !important; }

/* ---------- Boîte de confirmation ---------- */
.tr-modal { position: fixed; inset: 0; z-index: 3100; display: grid; place-items: center; padding: 16px; background: rgba(4, 12, 24, 0); transition: background-color 0.2s ease; }
.tr-modal.is-open { background: rgba(4, 12, 24, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tr-modal-card {
	width: min(440px, 100%); padding: 26px; border-radius: 22px; text-align: center;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
	transform: translateY(14px) scale(0.96); opacity: 0; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
.tr-modal.is-open .tr-modal-card { transform: none; opacity: 1; }
.tr-modal-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-strong); }
.tr-modal-ic.is-danger { background: var(--danger-soft); color: var(--danger); }
.tr-modal-ic .tr-ic { width: 26px; height: 26px; }
.tr-modal-title { font-size: 1.25rem; margin: 0 0 8px; }
.tr-modal-text { color: var(--muted); margin: 0 0 22px; }
.tr-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-btn-danger { background: linear-gradient(180deg, #f43f5e, #e11d48); color: #fff; box-shadow: 0 8px 20px -8px rgba(225, 29, 72, 0.6); }
.tr-btn-danger:hover { color: #fff; filter: brightness(1.06); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.tr-hero-visual .tr-window { transform: none; }
}

/* Boutons clairs dans le pied de page : la couleur des liens ne doit pas s'appliquer. */
.tr-footer .tr-btn-light, .tr-footer .tr-btn-light:hover { color: var(--navy); }
.tr-footer .tr-btn-ghost-light, .tr-footer .tr-btn-ghost-light:hover { color: #fff; }
.tr-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.tr-copy-sep { opacity: 0.4; }
.tr-made-by strong { color: #fff; letter-spacing: 0.04em; }
.tr-made-by a { color: inherit; }

/* ---------- Flèche « remonter » ---------- */
.tr-back-top {
	position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
	display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: linear-gradient(140deg, var(--navy), var(--navy-3)); color: #fff;
	box-shadow: 0 14px 30px -12px rgba(7, 27, 53, 0.7), 0 0 0 1px rgba(148, 178, 214, 0.18);
	opacity: 0; transform: translateY(14px) scale(0.9); transition: opacity 0.25s, transform 0.25s, box-shadow 0.2s;
}
.tr-back-top[hidden] { display: grid; visibility: hidden; }
.tr-back-top.is-visible { opacity: 1; transform: none; visibility: visible; }
.tr-back-top:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(8, 145, 178, 0.75), 0 0 0 1px rgba(34, 199, 221, 0.5); }
.tr-back-top:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.tr-back-top .tr-ic { position: relative; transition: transform 0.2s; }
.tr-back-top:hover .tr-ic { transform: translateY(-2px); }
.tr-back-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-back-ring circle { fill: none; stroke: rgba(148, 178, 214, 0.22); stroke-width: 3; }
.tr-back-ring .tr-back-progress { stroke: #22d3ee; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset 0.1s linear; }
body.admin-bar .tr-back-top { bottom: max(18px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .tr-back-top { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .tr-back-top, .tr-back-top .tr-ic { transition: none; } }

/* ---------- Bandeau d'annonce : messages qui défilent ---------- */
.tr-announce-track { position: relative; display: grid; flex: 1; min-width: 0; height: 40px; overflow: hidden; }
.tr-announce-item {
	grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0;
	opacity: 0; transform: translateY(100%); transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
	pointer-events: none;
}
.tr-announce-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tr-announce-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.tr-announce-item a, .tr-announce-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-announce-text { color: #fff; font-weight: 550; }
.tr-announce-item a { max-width: 100%; }
.tr-announce-item a .tr-ic { flex: none; }
.tr-announce-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
	/* Téléphone : le message passe sur deux lignes au lieu d'être coupé. */
	.tr-announce-item { justify-content: flex-start; }
	.tr-announce-label, .tr-announce-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.2; font-size: 0.78rem; }
}
.tr-announce-dots { display: flex; gap: 5px; margin-right: 6px; }
.tr-announce-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(226, 238, 252, 0.3); transition: width 0.3s, background 0.3s; }
.tr-announce-dots i.is-active { width: 16px; background: #67e8f9; }
@media (max-width: 640px) { .tr-announce-dots { display: none; } .tr-announce-badge { display: none; } }
@media (prefers-reduced-motion: reduce) { .tr-announce-item { transition: none; } }

/* ---------- Logo de l'en-tête avec la version du logiciel ---------- */
.tr-logo-stack { display: grid; line-height: 1.1; }
.tr-logo-has-ver .tr-logo-text { font-size: 1.05rem; }
.tr-logo-ver {
	display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 2px;
	font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-strong);
}
.tr-logo-ver i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: tr-ping 2.4s ease-out infinite; }
.tr-home .tr-header:not(.is-scrolled) .tr-logo-ver { color: #67e8f9; }
.tr-header-bar { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); }
:root[data-theme="dark"] .tr-header-bar { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-header-bar { background-image: none; } }
@media (max-width: 420px) { .tr-logo-ver { display: none; } }

/* ==========================================================================
   Actualités et mises à jour
   ========================================================================== */
.tr-news-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 980px) { .tr-news-cols { grid-template-columns: minmax(0, 1fr); } }
.tr-news-col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tr-news-col-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.tr-news-col-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-strong); }
.is-update .tr-news-col-ic { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.tr-news-col-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.tr-news-list { display: grid; gap: 16px; }

.tr-news-card { min-width: 0; }
.tr-news-link {
	display: grid; height: 100%; overflow: hidden; color: var(--text); text-decoration: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}
.tr-news-link:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tr-news-link:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.tr-news-media { position: relative; display: block; overflow: hidden; background: linear-gradient(140deg, var(--navy), var(--navy-3)); aspect-ratio: 16 / 9; }
.tr-news-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tr-news-link:hover .tr-news-media img { transform: scale(1.04); }
.tr-news-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #67e8f9; }
.tr-news-placeholder .tr-ic { width: 42px; height: 42px; opacity: 0.8; }
.tr-news-version {
	position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px;
	background: rgba(7, 27, 53, 0.78); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.18);
}
.tr-news-body { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 18px 20px 20px; }
.tr-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 0.82rem; }
.tr-news-kind { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.is-update .tr-news-kind { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.tr-news-new { padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 0.72rem; }
.tr-news-ver-inline { padding: 2px 9px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.78rem; }
.tr-news-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-news-excerpt { color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-news-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--accent-strong); font-weight: 650; font-size: 0.92rem; }
.tr-news-more .tr-ic { transition: transform 0.2s; }
.tr-news-link:hover .tr-news-more .tr-ic { transform: translateX(4px); }

/* Carte « ligne » (accueil) : image à côté du texte */
.tr-news-row .tr-news-link { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); }
.tr-news-row .tr-news-media { aspect-ratio: auto; min-height: 180px; }
.is-update.tr-news-row .tr-news-link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); }
.is-update.tr-news-row .tr-news-media { order: 2; }
@media (max-width: 560px) {
	.tr-news-row .tr-news-link, .is-update.tr-news-row .tr-news-link { grid-template-columns: minmax(0, 1fr); }
	.is-update.tr-news-row .tr-news-media { order: 0; }
	.tr-news-row .tr-news-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Page Actualités */
.tr-news-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 22px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.tr-news-tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; text-decoration: none; }
.tr-news-tabs a:hover { color: var(--text); background: var(--surface-hover); }
.tr-news-tabs a[aria-current="page"] { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.tr-news-feature-wrap { margin-bottom: 26px; }
.tr-news-feature .tr-news-link { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.tr-news-feature .tr-news-media { aspect-ratio: auto; min-height: 320px; }
.tr-news-feature .tr-news-body { align-content: center; padding: clamp(22px, 3vw, 40px); }
.tr-news-feature .tr-news-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); -webkit-line-clamp: 3; }
@media (max-width: 860px) { .tr-news-feature .tr-news-link { grid-template-columns: minmax(0, 1fr); } .tr-news-feature .tr-news-media { min-height: 0; aspect-ratio: 16 / 9; } }
.tr-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.tr-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 0 3px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
.tr-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.tr-pagination { margin-top: 30px; text-align: center; }

/* Article */
.tr-article-head .tr-page-title { margin-top: 12px; }
.tr-back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.tr-back-link:hover { color: var(--accent-strong); }
.tr-post-hero { margin: 0 0 28px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tr-post-hero img { display: block; width: 100%; height: auto; }
.tr-article-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 32px 0; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--navy), var(--navy-3)); color: rgba(226, 238, 252, 0.8); }
.tr-article-cta strong { display: block; color: #fff; font-size: 1.08rem; }
.tr-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.tr-post-nav a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.tr-post-nav a:hover { border-color: var(--accent); }
.tr-post-nav small { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tr-post-nav-next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .tr-post-nav { grid-template-columns: minmax(0, 1fr); } .tr-post-nav-next { grid-column: auto; } }

/* ---------- Contact ---------- */
.tr-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tr-contact-card {
	display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: var(--radius-xl);
	background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
	transition: transform 0.25s, box-shadow 0.25s;
}
.tr-contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tr-contact-card h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.35rem; }
.tr-contact-card p { margin: 0; color: var(--muted); }
.tr-contact-card small { color: var(--dim); font-size: 0.85rem; }
.tr-contact-card .tr-btn { justify-self: start; margin-top: 6px; }
.tr-contact-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-strong); }
.tr-contact-ic .tr-ic { width: 26px; height: 26px; }
.is-whatsapp .tr-contact-ic { background: rgba(37, 211, 102, 0.14); color: #128c4a; }
.is-whatsapp { background: linear-gradient(180deg, rgba(37, 211, 102, 0.06), var(--surface) 55%); }
.tr-btn-whatsapp { background: #25d366; color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, 0.8); }
.tr-btn-whatsapp:hover { background: #1fb957; color: #fff; }
.tr-contact-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-contact-lines li { display: flex; gap: 10px; align-items: center; }
.tr-contact-lines .tr-ic { color: var(--accent); flex: none; }

/* ---------- Pages légales ---------- */
.tr-legal-tabs { margin-top: 18px; }
.tr-legal h2 { margin-top: 1.8em; font-size: 1.25rem; }
.tr-legal-intro { font-size: 1.05rem; color: var(--text); }
.tr-legal-todo { padding: 1px 6px; border-radius: 6px; background: var(--warning-soft); color: #9a3412; font-weight: 600; }
.tr-legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.tr-legal-table th, .tr-legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tr-legal-table thead th { background: var(--surface-2); color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 700px) { .tr-legal-table { display: block; overflow-x: auto; } }
.tr-legal-updated { margin-top: 2.5em; color: var(--dim); font-size: 0.88rem; }


/* ---------- « Pourquoi TOPREST'O » : cartes cliquables + fenêtre de détail ---------- */
.tr-strength {
	width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; align-items: flex-start;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.tr-strength-body { display: grid; gap: 6px; min-width: 0; }
.tr-strength .tr-h4 { margin: 0; }
.tr-strength-text { color: var(--muted); line-height: 1.55; }
.tr-strength-more {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--accent-strong);
	opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.tr-strength .tr-tile { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tr-strength:hover, .tr-strength:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-ring); }
.tr-strength:hover .tr-tile, .tr-strength:focus-visible .tr-tile { transform: rotate(-6deg) scale(1.08); }
.tr-strength:hover .tr-strength-more, .tr-strength:focus-visible .tr-strength-more { opacity: 1; transform: none; }
.tr-strength:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
@media (hover: none) { .tr-strength-more { opacity: 1; transform: none; } }

.tr-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); background: transparent; color: var(--text); overflow: visible; }
.tr-dialog::backdrop { background: rgba(7, 27, 53, 0.55); backdrop-filter: blur(6px); }
.tr-dialog[open] { animation: tr-dialog-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tr-dialog[open]::backdrop { animation: tr-fade-in 0.25s ease; }
@keyframes tr-dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tr-fade-in { from { opacity: 0; } to { opacity: 1; } }
.tr-dialog-card {
	position: relative; max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(22px, 4vw, 32px);
	border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.tr-dialog-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 120px; border-radius: inherit; pointer-events: none;
	background: radial-gradient(420px 120px at 20% 0, var(--accent-soft), transparent 70%);
}
.tr-dialog-close {
	position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer;
}
.tr-dialog-close:hover { color: var(--text); border-color: var(--border-strong); }
.tr-dialog-head { position: relative; display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.tr-dialog-head .tr-tile { width: 56px; height: 56px; border-radius: 16px; }
.tr-dialog-head .tr-eyebrow { margin: 0 0 2px; }
.tr-dialog-title { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; }
.tr-dialog-intro { position: relative; margin: 18px 0 14px; color: var(--muted); line-height: 1.6; }
.tr-dialog-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-dialog-points li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.45; }
.tr-dialog-points .tr-ic { flex: none; margin-top: 2px; color: var(--success); }
.tr-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
html.tr-dialog-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.tr-dialog[open], .tr-dialog[open]::backdrop { animation: none; }
	.tr-strength, .tr-strength .tr-tile, .tr-strength-more { transition: none; }
}

/* ---------- Mini-panier (survol / clic sur l'icône du panier) ---------- */
.tr-cart-link[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent-strong); }
.tr-cart-link .tr-ic { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tr-cart-link:hover .tr-ic, .tr-cart-link[aria-expanded="true"] .tr-ic { transform: translateY(-1px) rotate(-8deg); }
.tr-cart-pop { width: min(360px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.tr-mini-cart { display: grid; }
.tr-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.tr-mini-head strong { font-size: 1rem; }
.tr-mini-head span { font-size: 0.82rem; color: var(--muted); }
.tr-mini-items { display: grid; gap: 0; max-height: min(320px, 50vh); margin: 0; padding: 6px 10px; overflow: auto; list-style: none; }
.tr-mini-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 8px; border-radius: 12px; }
.tr-mini-item + .tr-mini-item { border-top: 1px solid var(--border); }
.tr-mini-thumb .tr-cart-thumb, .tr-mini-thumb img { width: 48px; height: 48px; border-radius: 12px; }
.tr-mini-thumb .tr-cart-thumb img { width: 30px; height: 30px; border-radius: 0; }
.tr-mini-info { display: grid; gap: 6px; min-width: 0; }
.tr-mini-info > strong { font-size: 0.92rem; line-height: 1.3; }
.tr-mini-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tr-mini-meta li { display: inline-flex; gap: 4px; padding: 1px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.74rem; color: var(--muted); }
.tr-mini-meta strong { color: var(--text); }
.tr-mini-price { font-size: 0.88rem; font-weight: 650; color: var(--text); }
.tr-mini-price .subscription-details { font-weight: 500; color: var(--muted); }
.tr-mini-remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--dim); text-decoration: none; transition: background 0.15s, color 0.15s; }
.tr-mini-remove:hover { background: var(--danger-soft); color: var(--danger); }
.tr-mini-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px 4px; border-top: 1px solid var(--border); background: var(--surface-2); }
.tr-mini-total span { color: var(--muted); font-size: 0.88rem; }
.tr-mini-total strong { font-size: 1.15rem; }
.tr-mini-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 18px 12px; background: var(--surface-2); font-size: 0.76rem; color: var(--muted); }
.tr-mini-note .tr-ic { flex: none; color: var(--success); }
.tr-mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 14px; background: var(--surface-2); border-top: 1px solid var(--border); }
.tr-mini-actions .tr-btn { justify-content: center; min-height: 42px; padding: 0 12px; }
.tr-mini-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 20px; text-align: center; }
.tr-mini-empty small { color: var(--muted); margin-bottom: 8px; }
@media (max-width: 640px) {
	/* Téléphone : le mini-panier s'aligne sur la barre d'en-tête, jamais hors de l'écran. */
	.tr-cart-menu { position: static; }
	.tr-header-bar { position: relative; }
	.tr-cart-pop.tr-mega-right { left: 0; right: 0; width: auto; }
}

/* ==========================================================================
   Pied de page : discret et bas (une rangée principale + une barre fine)
   ========================================================================== */
.tr-footer { position: relative; padding: 28px 0 0; font-size: 0.86rem; border-top: 0; }
.tr-footer::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(34, 199, 221, 0.5), transparent);
}
.tr-footer > .tr-wrap { position: relative; }

/* Bandeau du logiciel : une seule ligne fine */
.tr-footer .tr-footer-app {
	gap: 12px 20px; margin: 0 0 24px; padding: 10px 10px 10px 14px; border-radius: 14px;
	background: linear-gradient(90deg, rgba(34, 199, 221, 0.12), rgba(255, 255, 255, 0.03) 60%); border: 1px solid rgba(148, 178, 214, 0.14);
}
.tr-footer .tr-footer-app-text { gap: 12px; }
.tr-footer .tr-footer-app-ic { width: 32px; height: 32px; border-radius: 9px; }
.tr-footer .tr-footer-app-ic .tr-ic { width: 16px; height: 16px; }
.tr-footer .tr-footer-app-text > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tr-footer .tr-footer-app-text strong { font-size: 0.92rem; }
.tr-footer .tr-footer-app-text span { font-size: 0.82rem; }
.tr-footer .tr-footer-app-actions { gap: 6px; }
.tr-footer .tr-footer-app-actions .tr-btn { min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 0.82rem; }

/* Rangée principale */
.tr-footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: start; }
.tr-footer-brand { display: grid; gap: 8px; justify-items: start; }
.tr-footer-brand .tr-logo { font-size: 0.98rem; }
.tr-footer-brand .tr-logo-img { width: 30px; height: 30px; }
.tr-footer-brand > p { margin: 0; max-width: 380px; color: rgba(226, 238, 252, 0.55); font-size: 0.82rem; line-height: 1.55; }
.tr-footer .tr-footer-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 0; padding: 0; list-style: none; }
.tr-footer-contact li { display: block; }
.tr-footer-contact a, .tr-footer-chip { display: inline-flex; align-items: center; gap: 6px; color: rgba(226, 238, 252, 0.72); font-size: 0.8rem; }
.tr-footer .tr-footer-contact a:hover { color: #fff; text-decoration: none; }
.tr-footer-contact .tr-ic { width: 14px; height: 14px; color: #22c7dd; }
.tr-footer-contact a.is-whatsapp .tr-ic { color: #4ade80; }
.tr-footer .tr-footer-trust { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; padding: 0; list-style: none; border: 0; }
.tr-footer-trust li { display: inline-flex; align-items: center; gap: 5px; color: rgba(226, 238, 252, 0.45); font-size: 0.74rem; }
.tr-footer-trust li .tr-ic { width: 12px; height: 12px; color: #34d399; }

.tr-footer-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 0 48px; margin: 0; }
.tr-footer-title-ic { display: none; }
.tr-footer-title { margin: 0 0 8px; font-family: var(--font); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226, 238, 252, 0.95); }
.tr-footer-links { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tr-footer .tr-footer-links a { position: relative; display: inline-block; padding: 0; color: rgba(226, 238, 252, 0.6); font-size: 0.82rem; transition: color 0.15s; }
.tr-footer .tr-footer-links a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #22c7dd;
	transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.tr-footer .tr-footer-links a:hover { color: #fff; text-decoration: none; transform: none; }
.tr-footer .tr-footer-links a:hover::after { transform: scaleX(1); }

/* Barre du bas */
.tr-footer .tr-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px;
	margin: 22px 0 0; padding: 12px 64px 14px 0; border-top: 1px solid rgba(148, 178, 214, 0.1); font-size: 0.76rem;
}
.tr-footer .tr-copy { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: rgba(226, 238, 252, 0.45); }
.tr-copy-version {
	display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; line-height: 1.7;
	background: rgba(34, 199, 221, 0.08); border: 1px solid rgba(34, 199, 221, 0.2); color: #a5f3fc; font-weight: 600; font-size: 0.7rem;
}
.tr-copy-version .tr-dot { width: 5px; height: 5px; box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2); }
.tr-footer .tr-made-by strong { color: rgba(255, 255, 255, 0.9); letter-spacing: 0.04em; }
.tr-footer .tr-legal-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; padding: 0; list-style: none; }
.tr-footer .tr-legal-links li::before { content: none; }
.tr-footer .tr-legal-links a, .tr-footer .tr-legal-links .trc-manage { padding: 0; color: rgba(226, 238, 252, 0.55); text-decoration: none; }
.tr-footer .tr-legal-links a:hover, .tr-footer .tr-legal-links .trc-manage:hover { color: #fff; background: none; text-decoration: none; }

@media (max-width: 900px) {
	.tr-footer-main { grid-template-columns: minmax(0, 1fr); }
	.tr-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 640px) {
	.tr-footer .tr-footer-app-actions { width: 100%; }
	.tr-footer .tr-footer-app-actions .tr-btn { flex: 1; justify-content: center; }
	.tr-footer .tr-footer-bottom { flex-direction: column; align-items: flex-start; padding: 12px 0 60px; }
}
@media (max-width: 640px) {
	/* Téléphone : l'essentiel seulement, sur peu de hauteur. */
	.tr-footer .tr-footer-trust, .tr-footer .tr-footer-app-text span, .tr-footer-brand > p { display: none; }
	.tr-footer-grid { gap: 0 10px; }
	.tr-footer .tr-footer-links a { font-size: 0.78rem; }
	.tr-footer-title { font-size: 0.62rem; }
	.tr-footer-main { gap: 16px; }
}

/* ---------- Menu du haut : icônes des liens ---------- */
.tr-nav-link { gap: 7px; padding: 0 10px 0 6px; }
.tr-header-bar { gap: 14px; }
.tr-header-actions { gap: 6px; }
.tr-nav-ic {
	display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px;
	background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border);
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tr-nav-ic .tr-ic { width: 15px; height: 15px; }
.tr-nav-link:hover .tr-nav-ic, .tr-nav-link[aria-expanded="true"] .tr-nav-ic, .tr-nav-list > li.is-current > .tr-nav-link .tr-nav-ic {
	background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; box-shadow: 0 6px 14px -6px rgba(8, 145, 178, 0.7);
}
.tr-nav-link:hover .tr-nav-ic { transform: rotate(-8deg) scale(1.06); }
.tr-nav-list > li.is-current > .tr-nav-link::after { content: none; }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-ic { background: rgba(255, 255, 255, 0.08); color: rgba(226, 238, 252, 0.85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover .tr-nav-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; }

/* ---------- Actions de droite : outils groupés, compte, bouton ---------- */
.tr-header-actions { gap: 6px; }
.tr-header-tools {
	display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 14px;
	background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.tr-header-tools .tr-icon-btn { width: 36px; height: 36px; border-radius: 11px; }
.tr-header-tools .tr-icon-btn:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.tr-header-tools .tr-cart-menu:not(.is-hidden) { padding-left: 2px; margin-left: 2px; border-left: 1px solid var(--border); }
.tr-home .tr-header:not(.is-scrolled) .tr-header-tools { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tr-home .tr-header:not(.is-scrolled) .tr-header-tools .tr-cart-menu { border-left-color: rgba(255, 255, 255, 0.12); }

.tr-account-btn-label { display: grid; line-height: 1.15; text-align: left; }
.tr-account-btn-label strong { font-size: 0.9rem; font-weight: 650; }
.tr-account-btn-label small { font-size: 0.7rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tr-home .tr-header:not(.is-scrolled) .tr-account-btn-label small { color: rgba(226, 238, 252, 0.65); }

/* Infobulles des boutons-icônes (souris seulement) */
@media (hover: hover) {
	[data-tr-tip] { position: relative; }
	[data-tr-tip]::before {
		content: attr(data-tr-tip); position: absolute; top: calc(100% + 10px); left: 50%; z-index: 130;
		padding: 5px 9px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.74rem; font-weight: 600; white-space: nowrap;
		box-shadow: 0 8px 20px -8px rgba(7, 27, 53, 0.5); opacity: 0; transform: translate(-50%, -4px); pointer-events: none;
		transition: opacity 0.15s ease 0.25s, transform 0.15s ease 0.25s;
	}
	[data-tr-tip]:hover::before, [data-tr-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
	[data-tr-tip][aria-expanded="true"]::before { opacity: 0; }
}

@media (max-width: 1180px) {
	html:not(.tr-fit-on) .tr-nav-link { padding: 0 9px 0 6px; gap: 6px; }
	html:not(.tr-fit-on) .tr-account-btn-label small { display: none; }
}
@media (max-width: 1080px) { html:not(.tr-fit-on) .tr-nav-ic { display: none; } html:not(.tr-fit-on) .tr-nav-link { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .tr-nav-ic { transition: none; } }

/* ==========================================================================
   En-tête adaptatif : paliers appliqués par main.js selon la place réelle
   (fenêtre réduite, tablette, zoom du navigateur, texte agrandi…)
   1 : ligne d'état du compte masquée       2 : liens resserrés
   3 : icônes du menu masquées              4 : compte réduit à l'avatar, version du logo masquée
   5 : menu replié dans le bouton ☰         6 : bouton principal masqué (téléphone)
   ========================================================================== */
.tr-header[data-fit] .tr-header-bar { transition: none; }
.tr-header.tr-fit-1 .tr-account-btn-label small { display: none; }
.tr-header.tr-fit-2 .tr-nav-link { padding: 0 9px 0 6px; gap: 6px; }
.tr-header.tr-fit-2 .tr-header-bar { gap: 12px; }
.tr-header.tr-fit-3 .tr-nav-ic { display: none; }
.tr-header.tr-fit-3 .tr-nav-link { padding: 0 10px; }
.tr-header.tr-fit-4 .tr-account-btn-label { display: none; }
.tr-header.tr-fit-4 .tr-logo-ver { display: none; }
.tr-header.tr-fit-5 .tr-nav, .tr-header.tr-fit-5 .tr-header-login, .tr-header.tr-fit-5 .tr-account-menu { display: none; }
.tr-header.tr-fit-5 .tr-burger { display: inline-grid; }
.tr-header.tr-fit-5 .tr-header-bar { justify-content: space-between; }
.tr-header.tr-fit-6 .tr-header-actions .tr-header-cta { display: none; }
/* 7 : écran minuscule (320 px) : thème réglable depuis le menu ☰, barre resserrée */
.tr-header.tr-fit-7 .tr-header-tools [data-tr-theme-toggle] { display: none; }
.tr-header.tr-fit-7 .tr-header-tools .tr-cart-menu { border-left: 0; margin-left: 0; padding-left: 0; }
.tr-header.tr-fit-7 .tr-header-bar { gap: 8px; padding: 0 6px 0 10px; }
.tr-header.tr-fit-7 .tr-logo-text { font-size: 0.95rem; }
/* Le bouton ☰ reste un repli : jamais visible avant le palier 5 quand l'en-tête est mesuré */
html.tr-fit-on .tr-header:not(.tr-fit-5) .tr-burger { display: none; }
html.tr-fit-on .tr-header:not(.tr-fit-5) .tr-nav { display: flex; }
html.tr-fit-on .tr-header:not(.tr-fit-6) .tr-header-actions .tr-header-cta { display: inline-flex; }
html.tr-fit-on .tr-header:not(.tr-fit-5) .tr-account-menu, html.tr-fit-on .tr-header:not(.tr-fit-5) .tr-header-login { display: block; }
html.tr-fit-on .tr-header:not(.tr-fit-5) .tr-header-login { display: inline-flex; }

/* Version sous le logo : petite pastille nette (sans halo sombre) */
.tr-logo-ver {
	gap: 5px; margin-top: 3px; padding: 1px 7px 1px 6px; border-radius: 999px; line-height: 1.5;
	background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); font-size: 0.64rem;
}
.tr-logo-ver i { width: 5px; height: 5px; animation: none; box-shadow: 0 0 6px rgba(16, 185, 129, 0.9); }
.tr-home .tr-header:not(.is-scrolled) .tr-logo-ver { background: rgba(34, 199, 221, 0.14); box-shadow: inset 0 0 0 1px rgba(34, 199, 221, 0.35); color: #a5f3fc; }

/* Tactile : cibles d'au moins 44 px, pas d'effets de survol collants */
@media (pointer: coarse) {
	.tr-icon-btn, .tr-header-tools .tr-icon-btn { min-width: 44px; min-height: 44px; }
	.tr-nav-link { min-height: 44px; }
	.tr-footer .tr-footer-links a, .tr-footer .tr-legal-links a, .tr-footer .tr-legal-links .trc-manage { display: inline-block; padding: 6px 0; }
	.tr-footer-links { gap: 0; }
}
@media (hover: none) {
	.tr-strength:hover, .tr-card:hover { transform: none; }
	.tr-nav-link:hover .tr-nav-ic { transform: none; }
}

.tr-sheet-theme { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.tr-sheet-theme .tr-ic { margin-right: 8px; vertical-align: -3px; }
.tr-sheet-theme:hover { color: var(--text); background: var(--surface-hover); }

/* Titres : un mot très long ne fait jamais déborder l'écran */
.tr-h1, .tr-h2, .tr-h3, h1, h2 { overflow-wrap: break-word; }

/* Menu ☰ : mêmes icônes que le menu du haut */
.tr-sheet-label { display: inline-flex; align-items: center; gap: 12px; }
.tr-sheet .tr-nav-ic { width: 32px; height: 32px; border-radius: 10px; }
.tr-sheet .tr-nav-ic .tr-ic { width: 17px; height: 17px; }
.tr-sheet details[open] > summary .tr-nav-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; box-shadow: 0 6px 14px -6px rgba(8, 145, 178, 0.7); }

/* ==========================================================================
   Configurateur (page Tarifs) v2 : icônes, cartes, compteurs, récapitulatif
   ========================================================================== */
.tro-ic { flex: none; display: block; }
.tro-block { padding: 22px; }
.tro-block-title { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tro-block-title > span:last-child { display: grid; gap: 2px; }
.tro-block-title strong { font-size: 1.12rem; font-weight: 650; }
.tro-block-title small { font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.tro-step {
	width: 30px; height: 30px; margin-top: 1px; border-radius: 10px; color: #fff; font-size: 0.85rem;
	background: linear-gradient(135deg, #22d3ee, #0891b2); box-shadow: 0 6px 14px -6px rgba(8, 145, 178, 0.7);
}

/* Formules */
.tro-packs { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tro-pack { position: relative; gap: 6px; padding: 16px; border-radius: 16px; transition: border-color 0.15s, box-shadow 0.2s, background-color 0.15s, transform 0.2s; }
.tro-pack:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tro-pack-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tro-pack-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--border); transition: background 0.2s, color 0.2s; }
.tro-pack-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); color: transparent; transition: all 0.2s; }
.tro-pack.is-active .tro-pack-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; box-shadow: 0 8px 16px -8px rgba(8, 145, 178, 0.8); }
.tro-pack.is-active .tro-pack-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.tro-pack.is-active { box-shadow: 0 0 0 3px var(--accent-ring); transform: none; }
.tro-pack-price { display: flex; align-items: baseline; gap: 5px; font-size: 1.5rem; line-height: 1.2; }
.tro-pack-price small { font-family: var(--font); }
.tro-pack-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--muted); }
.tro-pack-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.76rem; font-weight: 600; }

/* Postes / établissements */
.tro-stepper { gap: 16px; padding: 16px; border-radius: 16px; justify-content: flex-start; }
.tro-stepper-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--border); }
.tro-stepper label { flex: 1; min-width: 0; gap: 3px; }
.tro-stepper label strong { font-size: 1rem; }
.tro-stepper-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tro-tag { padding: 2px 8px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font-style: normal; font-size: 0.74rem; font-weight: 600; }
.tro-tag.is-extra { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); color: var(--accent-strong); }
.tro-tag[hidden] { display: none; }
.tro-stepper-ctrl { gap: 4px; padding: 4px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); overflow: visible; }
.tro-stepper-ctrl button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); transition: background 0.15s, color 0.15s, transform 0.1s; }
.tro-stepper-ctrl button:hover { background: var(--accent); color: #fff; }
.tro-stepper-ctrl button:active { transform: scale(0.92); }
.tro-stepper-ctrl input { width: 48px; height: 38px; border: 0; font-size: 1.15rem; }
@media (max-width: 560px) {
	.tro-stepper { flex-wrap: wrap; flex-direction: row; }
	.tro-stepper label { flex-basis: calc(100% - 60px); }
	.tro-stepper-ctrl { margin-left: 60px; align-self: auto; }
}

/* Facturation : cartes-boutons avec pastille de choix */
.tro-period { align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; transition: border-color 0.15s, background 0.15s, box-shadow 0.2s; }
.tro-period input { position: absolute; opacity: 0; pointer-events: none; }
.tro-period:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.tro-period-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--border); }
.tro-period:has(input:checked) .tro-period-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; box-shadow: none; }
.tro-period-text { flex: 1; min-width: 0; }
.tro-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); transition: all 0.15s; }
.tro-period:has(input:checked) .tro-radio { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent); }
.tro-save { display: inline-flex; align-items: center; gap: 4px; }

/* Récapitulatif */
.tro-summary { padding: 24px; }
.tro-summary-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tro-summary-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: rgba(34, 199, 221, 0.16); color: #67e8f9; box-shadow: inset 0 0 0 1px rgba(34, 199, 221, 0.3); }
.tro-summary-head .tro-summary-title { margin: 0; font-size: 0.72rem; }
.tro-summary-config { display: block; font-size: 1.02rem; color: #fff; }
.tro-lines { gap: 8px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(148, 178, 214, 0.14); }
.tro-lines li { align-items: baseline; font-size: 0.86rem; line-height: 1.4; }
.tro-total { padding-top: 6px; border-top: 0; }
.tro-total strong { display: inline-block; transform-origin: right center; }
.tro-total strong.is-bump { animation: tro-bump 0.35s ease; }
@keyframes tro-bump { 40% { transform: scale(1.08); color: #a5f3fc; } }
.tro-included { gap: 10px; margin: 18px 0; padding-top: 16px; border-top: 1px solid rgba(148, 178, 214, 0.18); }
.tro-included li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0; }
.tro-included li::before { content: none; }
.tro-included .tro-ic { margin-top: 2px; color: #5eead4; }
.tro-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tro-secure { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tro-secure .tro-ic { color: #34d399; }
.tro-pay { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.tro-pay span { padding: 2px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(148, 178, 214, 0.2); color: rgba(226, 238, 252, 0.75); font-size: 0.72rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .tro-total strong.is-bump { animation: none; } .tro-pack:hover { transform: none; } }

/* ==========================================================================
   Menu du haut v3 : liens dans une barre segmentée, trois blocs alignés à droite
   (outils · compte · bouton), tous de 42 px de haut et de même forme.
   ========================================================================== */
.tr-nav-indicator { display: none; }

/* Liens : une seule barre, l'élément actif devient une pastille blanche en relief */
.tr-nav-list {
	gap: 2px; padding: 3px; border-radius: 14px;
	background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.tr-nav-link {
	height: 36px; gap: 7px; padding: 0 12px 0 10px; border-radius: 11px; color: var(--muted); font-size: 0.92rem;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tr-nav-ic, .tr-nav-link:hover .tr-nav-ic, .tr-nav-link[aria-expanded="true"] .tr-nav-ic, .tr-nav-list > li.is-current > .tr-nav-link .tr-nav-ic {
	width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--dim); transform: none;
}
.tr-nav-ic .tr-ic { width: 16px; height: 16px; }
.tr-nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tr-nav-link:hover .tr-nav-ic { color: var(--accent); }
.tr-nav-link[aria-expanded="true"], .tr-nav-list > li.is-current > .tr-nav-link {
	color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 41, 74, 0.08), 0 0 0 1px var(--border);
}
.tr-nav-link[aria-expanded="true"] .tr-nav-ic, .tr-nav-list > li.is-current > .tr-nav-link .tr-nav-ic { color: var(--accent); }
.tr-nav-list > li.is-current > .tr-nav-link::after { content: none; }
.tr-nav-link .tr-caret { margin-left: -1px; opacity: 0.55; }

/* Droite : outils, compte et bouton à la même hauteur */
.tr-header-actions { gap: 8px; }
.tr-header-tools { height: 42px; padding: 3px; gap: 2px; border-radius: 13px; }
.tr-header-tools .tr-icon-btn { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.tr-header-tools .tr-icon-btn:hover, .tr-header-tools .tr-icon-btn[aria-expanded="true"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 41, 74, 0.08), 0 0 0 1px var(--border); }
.tr-header-tools .tr-cart-menu:not(.is-hidden) { padding-left: 0; margin-left: 0; border-left: 0; }
.tr-header-tools .tr-cart-count { top: -3px; right: -3px; }

.tr-account-btn {
	height: 42px; gap: 9px; padding: 0 10px 0 3px; border: 0; border-radius: 13px;
	background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.tr-account-btn:hover, .tr-account-btn[aria-expanded="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), 0 1px 2px rgba(16, 41, 74, 0.08); }
.tr-account-btn .tr-avatar-sm { width: 36px; height: 36px; border-radius: 10px; }
.tr-account-btn-label { max-width: 14ch; }
.tr-account-btn .tr-caret { opacity: 0.5; }

.tr-header-actions .tr-header-cta { min-height: 42px; height: 42px; padding: 0 16px; border-radius: 13px; gap: 8px; }

/* Accueil : en-tête transparent sur fond sombre, mêmes formes en verre */
.tr-home .tr-header:not(.is-scrolled) .tr-nav-list,
.tr-home .tr-header:not(.is-scrolled) .tr-header-tools,
.tr-home .tr-header:not(.is-scrolled) .tr-account-btn { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); border: 0; }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link, .tr-home .tr-header:not(.is-scrolled) .tr-nav-ic { color: rgba(226, 238, 252, 0.78); }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link[aria-expanded="true"],
.tr-home .tr-header:not(.is-scrolled) .tr-nav-list > li.is-current > .tr-nav-link,
.tr-home .tr-header:not(.is-scrolled) .tr-header-tools .tr-icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover .tr-nav-ic,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link[aria-expanded="true"] .tr-nav-ic { color: #67e8f9; }
.tr-home .tr-header:not(.is-scrolled) .tr-header-tools .tr-icon-btn { color: rgba(226, 238, 252, 0.85); }

/* Paliers de l'en-tête adaptatif, recalés sur ces nouvelles tailles */
.tr-header.tr-fit-2 .tr-nav-link { padding: 0 9px 0 8px; gap: 6px; }
.tr-header.tr-fit-3 .tr-nav-link { padding: 0 11px; }
.tr-header.tr-fit-4 .tr-account-btn { padding-right: 8px; gap: 6px; }

@media (pointer: coarse) { .tr-nav-link { min-height: 36px; } .tr-header-tools .tr-icon-btn { min-width: 36px; min-height: 36px; } }

.tro-config-main, .tro-config-main > *, .tro-summary { min-width: 0; }
.tro-packs { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
@media (max-width: 560px) { .tro-periods { grid-template-columns: minmax(0, 1fr); } .tro-block { padding: 16px; } .tro-summary { padding: 18px; } }

/* Récapitulatif : une ligne par élément (icône, titre, détail, montant) */
.tro-lines { gap: 0; padding: 4px 12px; }
.tro-lines .tro-line { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; }
.tro-line + .tro-line { border-top: 1px dashed rgba(148, 178, 214, 0.2); }
.tro-line-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(34, 199, 221, 0.14); color: #67e8f9; }
.tro-line-text { display: grid; gap: 1px; min-width: 0; }
.tro-line-text strong { font-size: 0.9rem; font-weight: 650; color: #fff; }
.tro-line-text small { font-size: 0.76rem; line-height: 1.35; color: rgba(226, 238, 252, 0.62); }
.tro-line-amount { font-size: 0.95rem; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tro-line:not(:first-child) .tro-line-amount::before { content: "+ "; color: rgba(226, 238, 252, 0.5); font-weight: 500; }

/* ==========================================================================
   Bandeau d'annonce v2 : transition fluide, flèches + compteur, progression
   ========================================================================== */
.tr-announce { overflow: hidden; }
.tr-announce-inner { gap: 14px; padding-right: 0; min-height: 42px; }
.tr-announce-track { height: 42px; }
.tr-announce-item {
	gap: 10px; opacity: 0; transform: translateY(70%); filter: blur(3px);
	transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.22, 1), opacity 0.4s ease, filter 0.45s ease;
}
.tr-announce-item.is-active { opacity: 1; transform: none; filter: none; }
.tr-announce-item.is-leaving { opacity: 0; transform: translateY(-70%); filter: blur(3px); }
.tr-announce[data-dir="prev"] .tr-announce-item.is-entering { transform: translateY(-70%); transition: none; }
.tr-announce[data-dir="next"] .tr-announce-item.is-entering { transform: translateY(70%); transition: none; }
.tr-announce[data-dir="prev"] .tr-announce-item.is-leaving { transform: translateY(70%); }
.tr-announce-dots { display: none; }

.tr-announce-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; flex: none;
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(8, 145, 178, 0.25)); border-color: rgba(103, 232, 249, 0.45);
}
.tr-announce-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 8px #22d3ee; }
.tr-announce-item a { padding: 4px 8px; margin: -4px -8px; border-radius: 8px; transition: background 0.15s; }
.tr-announce-item a:hover { background: rgba(255, 255, 255, 0.08); }

.tr-announce-ctrl { display: flex; align-items: center; gap: 2px; flex: none; }
.tr-announce-btn {
	display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: rgba(226, 238, 252, 0.7); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.tr-announce-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tr-announce-btn:focus-visible { outline: 2px solid #67e8f9; outline-offset: 1px; }
.tr-announce-btn .tr-flip { transform: rotate(180deg); }
.tr-announce .tr-announce-close { position: static; transform: none; }
.tr-announce-count { display: inline-flex; gap: 2px; min-width: 30px; justify-content: center; font-size: 0.76rem; font-variant-numeric: tabular-nums; color: rgba(226, 238, 252, 0.55); }
.tr-announce-count b { color: #fff; font-weight: 700; }
.tr-announce-sep { width: 1px; height: 16px; margin: 0 6px; background: rgba(148, 178, 214, 0.25); }

.tr-announce-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.tr-announce-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #22d3ee, #67e8f9); box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }
.tr-announce.is-paused .tr-announce-progress i { opacity: 0.45; }
.tr-announce.is-static .tr-announce-progress { display: none; }

@media (max-width: 640px) {
	.tr-announce-inner { gap: 8px; }
	/* Téléphone : le message prend toute la place ; on change d'annonce en glissant du doigt. */
	.tr-announce-count, .tr-announce-sep, .tr-announce-badge, [data-tr-announce-prev], [data-tr-announce-next] { display: none; }
	.tr-announce-btn { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.tr-announce-item, .tr-announce-item.is-leaving { transition: opacity 0.2s; transform: none; filter: none; }
}

/* Logos des moyens de paiement (récapitulatif Tarifs) */
.tro-trust { display: grid; gap: 10px; margin-top: 14px; }
.tro-trust .tro-secure { margin: 0; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; }
.tro-stripe { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; }
.tro-stripe img { width: 18px; height: 18px; border-radius: 5px; }
.tro-trust .tro-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tro-trust .tro-pay li {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 52px; height: 30px; padding: 0 10px;
	border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(16, 41, 74, 0.08);
}
.tro-trust .tro-pay img { display: block; height: 14px; width: auto; }
.tro-trust .tro-pay li.is-mastercard img { height: 18px; }
.tro-trust .tro-pay li span { font-size: 0.72rem; font-weight: 700; color: #0e7490; }

.tro-trust .tro-pay li.is-amex img { height: 22px; }
.tro-trust .tro-pay li.is-bancontact img { height: 20px; }
.tro-trust .tro-pay li.is-applepay img { height: 18px; }
.tro-trust .tro-pay li.is-paypal img { height: 15px; }
.tro-trust .tro-pay li.is-cb img { height: 20px; border-radius: 3px; }
.tro-trust .tro-pay li.is-googlepay img { height: 18px; }

/* ==========================================================================
   Barre du haut : à droite, seulement le panier (s'il est rempli), le compte et le bouton
   ========================================================================== */
.tr-header-actions > .tr-cart-menu .tr-cart-link {
	width: 42px; height: 42px; border: 0; border-radius: 13px; color: var(--muted);
	background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
}
.tr-header-actions > .tr-cart-menu .tr-cart-link:hover,
.tr-header-actions > .tr-cart-menu .tr-cart-link[aria-expanded="true"] { color: var(--accent-strong); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), 0 1px 2px rgba(16, 41, 74, 0.08); }
.tr-header-actions > .tr-cart-menu .tr-cart-count { top: -4px; right: -4px; }
.tr-home .tr-header:not(.is-scrolled) .tr-header-actions > .tr-cart-menu .tr-cart-link { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: rgba(226, 238, 252, 0.85); }

/* Bouton thème du pied de page */
.tr-footer-theme {
	display: inline-flex; align-items: center; padding: 4px 11px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(148, 178, 214, 0.2);
	color: rgba(226, 238, 252, 0.75); font: inherit; font-size: 0.76rem; font-weight: 600;
}
.tr-footer-theme .tr-ic { margin-right: 6px; vertical-align: -2px; }
.tr-footer-theme:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.tr-footer .tr-footer-bottom .tr-footer-theme { order: 2; }
@media (pointer: coarse) { .tr-footer-theme { min-height: 36px; } }

/* Plafond de la commande en ligne */
.tro-stepper-ctrl button.is-off { opacity: 0.35; cursor: not-allowed; background: var(--surface-2); color: var(--muted); }
.tro-stepper-ctrl button.is-off:hover { background: var(--surface-2); color: var(--muted); }
.tro-tag.is-max { background: var(--warning-soft); box-shadow: inset 0 0 0 1px rgba(217, 130, 43, 0.35); color: var(--warning); }
.tro-tag.is-max[hidden] { display: none; }
.tro-limit {
	display: flex; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 16px;
	background: linear-gradient(135deg, var(--accent-soft), rgba(52, 211, 153, 0.08)); box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.tro-limit[hidden] { display: none; }
.tro-limit.is-flash { animation: tro-flash 0.6s ease; }
@keyframes tro-flash { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tro-limit-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #22d3ee, #0891b2); box-shadow: 0 8px 16px -8px rgba(8, 145, 178, 0.8); }
.tro-limit-text { display: grid; gap: 4px; min-width: 0; }
.tro-limit-text strong { font-size: 1rem; color: var(--text); }
.tro-limit-text p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.tro-limit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tro-limit-actions .tr-btn { min-height: 38px; padding: 0 14px; font-size: 0.88rem; gap: 6px; }
@media (max-width: 560px) { .tro-limit { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .tro-limit.is-flash { animation: none; } }

/* ==========================================================================
   Menu « Mon espace » v2 : en-tête coloré, chiffres, grille de raccourcis
   ========================================================================== */
.tr-account-pop.tr-acc { width: min(380px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.tr-acc-head {
	position: relative; display: flex; align-items: center; gap: 12px; padding: 16px;
	background: radial-gradient(260px 120px at 100% 0, rgba(34, 199, 221, 0.35), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-3));
	color: #fff;
}
.tr-acc-head .tr-avatar-lg { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.tr-acc-id { display: grid; gap: 1px; min-width: 0; flex: 1; }
.tr-acc-id strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-acc-id small { font-size: 0.78rem; color: rgba(226, 238, 252, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-acc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tr-acc-chips em { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); font-style: normal; font-size: 0.7rem; font-weight: 600; color: #e0f2fe; }
.tr-acc-chips em.is-credit { background: rgba(52, 211, 153, 0.18); color: #a7f3d0; }
.tr-acc-edit { display: grid; place-items: center; flex: none; align-self: flex-start; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.tr-acc-edit:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.tr-acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 10px 4px; }
.tr-acc-stats a { position: relative; display: grid; gap: 1px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); text-decoration: none; transition: box-shadow 0.15s, background 0.15s; }
.tr-acc-stats a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.tr-acc-stats strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.tr-acc-stats strong span { font-size: 0.8rem; font-weight: 600; color: var(--dim); }
.tr-acc-stats small { font-size: 0.68rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.tr-acc-stats a.is-alert { background: var(--danger-soft); box-shadow: inset 0 0 0 1px rgba(214, 69, 80, 0.3); }
.tr-acc-stats a.is-alert strong { color: var(--danger); }
.tr-acc-bar { display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--border); overflow: hidden; }
.tr-acc-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #0891b2); }

.tr-acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px 10px; }
.tr-acc-grid a, .tr-acc-admin { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background 0.15s; }
.tr-acc-grid a:hover, .tr-acc-admin:hover { background: var(--surface-hover); color: var(--text); }
.tr-acc-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); transition: background 0.15s, color 0.15s; }
.tr-acc-grid a:hover .tr-acc-ic { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #fff; }
.tr-acc-label { display: grid; min-width: 0; }
.tr-acc-label strong { font-size: 0.86rem; font-weight: 650; }
.tr-acc-label small { font-size: 0.7rem; line-height: 1.3; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tr-acc-grid .tr-pop-count { position: absolute; top: 6px; left: 32px; }

.tr-acc-admin { margin: 0 10px 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.tr-acc-admin .tr-acc-ic { background: var(--navy); color: #67e8f9; }
.tr-acc-admin > .tr-ic:last-child { margin-left: auto; color: var(--dim); }

.tr-acc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface-2); }
.tr-acc-theme { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.tr-acc-theme button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.tr-acc-theme button.is-active { background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.tr-acc-logout { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.tr-acc-logout:hover { color: var(--danger); background: var(--danger-soft); }
@media (max-width: 420px) { .tr-acc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Menu ☰ : carte « Mon espace » en haut, mêmes éléments que le menu du compte */
.tr-sheet-account { margin: 2px 0 10px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.tr-sheet-account .tr-acc-grid a { padding: 10px; }
.tr-sheet-account .tr-acc-foot { border-radius: 0; }
.tr-sheet-account .tr-acc-theme button { height: 34px; }
@media (max-width: 420px) { .tr-sheet-account .tr-acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-sheet-account .tr-acc-label small { display: none; } }

/* ==========================================================================
   État des services (Monitoring)
   ========================================================================== */
.tr-status { --st: #94a3b8; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.tr-status.is-up { --st: #10b981; }
.tr-status.is-degraded, .tr-status.is-maintenance { --st: #f59e0b; }
.tr-status.is-maintenance { --st: #60a5fa; }
.tr-status.is-partial { --st: #f97316; }
.tr-status.is-major { --st: #ef4444; }
.tr-status-light { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.tr-status-dark { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(148, 178, 214, 0.22); color: rgba(226, 238, 252, 0.88); }
a.tr-status-dark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.tr-status-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st, #94a3b8); }
.tr-status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--st, #94a3b8); opacity: 0; animation: tr-status-ping 2.4s ease-out infinite; }
@keyframes tr-status-ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.tr-hero-status { margin-top: 18px; }
.tr-footer .tr-footer-trust li.tr-footer-status { padding: 0; background: none; }
.tr-footer .tr-footer-status .tr-status { padding: 2px 9px 2px 8px; font-size: 0.72rem; }

/* Bande de l'accueil */
.tr-status-strip-wrap { padding: 0 0 clamp(28px, 4vw, 48px); }
.tr-status-strip {
	--st: #94a3b8; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border-radius: 18px;
	background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
.tr-status-strip.is-up { --st: #10b981; }
.tr-status-strip.is-degraded { --st: #f59e0b; }
.tr-status-strip.is-maintenance { --st: #60a5fa; }
.tr-status-strip.is-partial { --st: #f97316; }
.tr-status-strip.is-major { --st: #ef4444; }
.tr-status-strip-head { display: flex; align-items: center; gap: 12px; }
.tr-status-strip-head > .tr-status-dot { width: 12px; height: 12px; }
.tr-status-strip-head strong { display: block; font-size: 0.98rem; }
.tr-status-strip-head small { display: block; font-size: 0.78rem; color: var(--muted); }
.tr-status-probes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: flex-end; }
.tr-status-probes li { --st: #94a3b8; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.78rem; font-weight: 600; color: var(--text); }
.tr-status-probes li.is-up { --st: #10b981; }
.tr-status-probes li.is-degraded { --st: #f59e0b; }
.tr-status-probes li.is-maintenance { --st: #60a5fa; }
.tr-status-probes li.is-partial { --st: #f97316; }
.tr-status-probes li.is-major { --st: #ef4444; }
.tr-status-probes .tr-status-dot::after { content: none; }
.tr-status-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .tr-status-probes { justify-content: flex-start; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .tr-status-dot::after { animation: none; } }

/* ==========================================================================
   Mini-panier v2
   ========================================================================== */
.tr-cart-pop { width: min(370px, calc(100vw - 24px)); }
.tr-mini-head {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; color: #fff;
	background: radial-gradient(240px 110px at 100% 0, rgba(34, 199, 221, 0.35), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-3));
}
.tr-mini-head-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); color: #67e8f9; }
.tr-mini-head-text { display: grid; }
.tr-mini-head-text strong { font-size: 1rem; color: #fff; }
.tr-mini-head-text small { font-size: 0.76rem; color: rgba(226, 238, 252, 0.7); }

.tr-mini-items { padding: 8px; }
.tr-mini-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 14px; }
.tr-mini-item + .tr-mini-item { border-top: 0; margin-top: 6px; }
.tr-mini-item:hover { background: var(--surface-2); }
.tr-mini-thumb .tr-cart-thumb, .tr-mini-thumb img { width: 52px; height: 52px; border-radius: 14px; }
.tr-mini-info { gap: 7px; }
.tr-mini-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tr-mini-title strong { font-size: 0.92rem; line-height: 1.3; }
.tr-mini-period { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); color: var(--accent-strong); font-style: normal; font-size: 0.7rem; font-weight: 700; }
.tr-mini-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.tr-mini-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 0.74rem; color: var(--muted); }
.tr-mini-meta .tr-ic { color: var(--accent); }
.tr-mini-meta strong { color: var(--text); }
.tr-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr-mini-price { font-size: 1rem; font-weight: 700; }
.tr-mini-actions-item { display: inline-flex; gap: 4px; }
.tr-mini-actions-item a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: all 0.15s; }
.tr-mini-actions-item a:hover { color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-ring); background: var(--accent-soft); }
.tr-mini-actions-item a.is-remove:hover { color: var(--danger); box-shadow: inset 0 0 0 1px rgba(214, 69, 80, 0.35); background: var(--danger-soft); }
.tr-mini-remove { display: none; }

.tr-mini-summary { display: grid; gap: 8px; padding: 14px 16px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.tr-mini-summary .tr-mini-total { padding: 0; border: 0; background: none; }
.tr-mini-total span small { font-size: 0.72rem; color: var(--dim); }
.tr-mini-total strong { font-size: 1.25rem; font-family: var(--font-display); }
.tr-mini-summary .tr-mini-note { padding: 0; margin: -4px 0 2px; background: none; font-size: 0.74rem; }
.tr-mini-checkout { width: 100%; justify-content: center; min-height: 46px; }
.tr-mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78rem; }
.tr-mini-viewcart { font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.tr-mini-viewcart:hover { text-decoration: underline; }
.tr-mini-secure { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.tr-mini-secure .tr-ic { color: var(--success); }
.tr-mini-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.tr-mini-pay li { display: grid; place-items: center; height: 22px; min-width: 36px; padding: 0 6px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.tr-mini-pay img { display: block; height: 11px; width: auto; }
.tr-mini-pay li.is-mastercard img, .tr-mini-pay li.is-cb img, .tr-mini-pay li.is-amex img { height: 14px; }
.tr-mini-actions { display: none; }
.tr-mini-cart .tr-mini-head { justify-content: flex-start; align-items: center; }
.tr-mini-cart .tr-mini-items { max-height: min(340px, 52vh); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.tr-mini-cart .tr-mini-item { min-width: 0; }
.tr-mini-cart .tr-mini-info { min-width: 0; }
.tr-mini-cart ul.tr-mini-items { padding: 8px; }

/* ==========================================================================
   Accueil : boutons et arguments du haut de page
   ========================================================================== */
.tr-hero-actions { gap: 10px; }
.tr-hero-actions .tr-btn-lg { min-height: 52px; padding: 0 20px; gap: 10px; border-radius: 15px; }
.tr-hero-cta { padding-left: 8px !important; }
.tr-hero-cta-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.tr-hero-cta > .tr-ic:last-child { transition: transform 0.2s ease; }
.tr-hero-cta:hover > .tr-ic:last-child { transform: translateX(3px); }
.tr-hero-cta2 .tr-ic { color: #67e8f9; }

.tr-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 8px; margin-top: 26px; font-size: inherit; }
.tr-hero-facts li {
	display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
	background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(148, 178, 214, 0.18);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tr-hero-fact-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(8, 145, 178, 0.25)); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.3); }
.tr-hero-facts .tr-hero-fact-ic .tr-ic { color: #67e8f9; }
.tr-hero-facts li > span:last-child { display: grid; line-height: 1.2; }
.tr-hero-facts strong { font-size: 0.86rem; font-weight: 650; color: #fff; white-space: nowrap; }
.tr-hero-facts small { font-size: 0.74rem; color: rgba(226, 238, 252, 0.62); white-space: nowrap; }
@media (max-width: 1180px) { .tr-hero-facts { grid-template-columns: repeat(2, minmax(0, max-content)); } }
@media (max-width: 520px) {
	.tr-hero-actions .tr-btn-lg { width: 100%; justify-content: center; }
	.tr-hero-cta { padding-left: 20px !important; }
	.tr-hero-cta-ic { display: none; }
	.tr-hero-facts { grid-template-columns: minmax(0, 1fr); }
}
.tr-hero-actions { flex-wrap: wrap; }
.tr-hero-actions .tr-btn-lg { flex: 0 1 auto; padding: 0 16px; gap: 8px; font-size: 0.97rem; white-space: nowrap; }
.tr-hero-actions .tr-hero-cta { padding: 0 16px 0 7px !important; }
@media (max-width: 520px) { .tr-hero-actions .tr-btn-lg { flex: 1 1 100%; } .tr-hero-actions .tr-hero-cta { padding: 0 16px !important; } }
.tr-hero-actions .tr-btn-lg { padding: 0 14px; font-size: 0.94rem; }
.tr-hero-actions .tr-hero-cta { padding: 0 14px 0 6px !important; }
.tr-hero-cta-ic { width: 32px; height: 32px; border-radius: 10px; }
/* Arguments du haut : chaque pastille garde sa taille et passe à la ligne si la place manque (jamais coupée) */
.tr-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.tr-hero-facts li { flex: 0 0 auto; max-width: 100%; padding: 7px 14px 7px 7px; }
@media (max-width: 1180px) { .tr-hero-facts { display: flex; } }
@media (max-width: 520px) { .tr-hero-facts li { flex: 1 1 100%; } }
/* Version finale : trois colonnes égales, le texte revient à la ligne au lieu d'être coupé */
.tr-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-hero-facts li { flex: none; min-width: 0; padding: 8px 10px 8px 8px; align-items: center; }
.tr-hero-facts strong, .tr-hero-facts small { white-space: normal; overflow-wrap: anywhere; }
.tr-hero-facts strong { font-size: 0.84rem; line-height: 1.2; }
.tr-hero-facts small { font-size: 0.72rem; line-height: 1.25; }
@media (max-width: 1180px) { .tr-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tr-hero-facts { grid-template-columns: minmax(0, 1fr); } }
/* Mini-panier : postes / établissements dans un seul groupe partagé en deux */
.tr-mini-cart .tr-mini-meta { display: inline-flex; flex-wrap: nowrap; gap: 0; width: fit-content; max-width: 100%; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.tr-mini-cart .tr-mini-meta > .tr-mini-spec { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 0; background: none; box-shadow: none; }
.tr-mini-cart .tr-mini-meta > .tr-mini-spec + .tr-mini-spec { box-shadow: inset 1px 0 0 var(--border); padding-left: 8px; }
.tr-mini-spec-ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); }
.tr-mini-cart .tr-mini-meta .tr-mini-spec-ic .tr-ic { color: var(--accent-strong); }
.tr-mini-spec-txt { display: grid; line-height: 1.1; }
.tr-mini-spec-txt strong { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.tr-mini-spec-txt small { font-size: 0.68rem; font-weight: 600; color: var(--muted); }
/* Arguments du haut — version fine : chaque pastille sur une ligne, les pastilles passent à la ligne */
.tr-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-hero-facts li { flex: 0 0 auto; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; }
.tr-hero-fact-ic { width: 26px; height: 26px; border-radius: 50%; }
.tr-hero-fact-ic .tr-ic { width: 14px; height: 14px; }
.tr-hero-facts li > span:last-child { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.tr-hero-facts strong, .tr-hero-facts small { white-space: nowrap; overflow-wrap: normal; line-height: 1.2; }
.tr-hero-facts strong { font-size: 0.84rem; }
.tr-hero-facts small { font-size: 0.8rem; }
@media (max-width: 1180px) { .tr-hero-facts { display: flex; } }
@media (max-width: 520px) { .tr-hero-facts { display: flex; } .tr-hero-facts li { flex: 0 0 auto; } }
/* Icônes du menu : aucun fond, nulle part (en-tête clair, accueil sombre, menu ☰) */
.tr-nav-ic,
.tr-nav-link:hover .tr-nav-ic,
.tr-nav-link[aria-expanded="true"] .tr-nav-ic,
.tr-nav-list > li.is-current > .tr-nav-link .tr-nav-ic,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-ic,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover .tr-nav-ic,
.tr-sheet .tr-nav-ic,
.tr-sheet details[open] > summary .tr-nav-ic {
	width: auto; height: auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; transform: none;
}
.tr-sheet .tr-nav-ic .tr-ic { width: 20px; height: 20px; }
.tr-sheet .tr-nav-ic { color: var(--muted); }
.tr-sheet details[open] > summary .tr-nav-ic, .tr-sheet .tr-sheet-link:hover .tr-nav-ic { color: var(--accent); }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-ic { color: rgba(226, 238, 252, 0.7); }
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link:hover .tr-nav-ic,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-link[aria-expanded="true"] .tr-nav-ic,
.tr-home .tr-header:not(.is-scrolled) .tr-nav-list > li.is-current > .tr-nav-link .tr-nav-ic { color: #67e8f9; }
/* Pastille d'état des services : prioritaire sur la classe .tr-status des statuts de commande
   (woocommerce.css, chargée après sur les pages boutique). */
.tr-status.tr-status-dark, .tr-status.tr-status-light { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.tr-status.tr-status-dark { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(148, 178, 214, 0.22); color: rgba(226, 238, 252, 0.88); }
a.tr-status.tr-status-dark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.tr-status.tr-status-light { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.tr-footer .tr-footer-status .tr-status.tr-status-dark { padding: 2px 9px 2px 8px; font-size: 0.72rem; }

/* ==========================================================================
   Pages d'erreur (404…) — inc/erreurs.php
   ========================================================================== */
.tr-err { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 120px); text-align: center; }
.tr-err-glow { position: absolute; inset: -30% -10% auto; height: 80%; pointer-events: none; background: radial-gradient(closest-side, rgba(8, 181, 206, 0.2), transparent 70%), radial-gradient(closest-side at 78% 40%, rgba(7, 27, 53, 0.12), transparent 70%); filter: blur(8px); }
.tr-err-inner { position: relative; max-width: 760px; }
.tr-err-art { position: relative; display: block; width: fit-content; margin: 0 auto 6px; }
.tr-err-digits { display: flex; justify-content: center; gap: 0.04em; font: 600 clamp(96px, 20vw, 176px)/1 var(--font-display); letter-spacing: -0.045em; }
.tr-err-digits span {
	display: inline-block;
	background: linear-gradient(160deg, var(--accent-bright), var(--navy) 85%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: trErrUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both, trErrFloat 6s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.08s), calc(0.8s + var(--i) * 0.4s);
}
:root[data-theme="dark"] .tr-err-digits span { background-image: linear-gradient(160deg, #5eead4, var(--accent-bright) 60%, #1e5f8a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-err-digits span { background-image: linear-gradient(160deg, #5eead4, var(--accent-bright) 60%, #1e5f8a); } }
.tr-err-chip {
	display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 12px; padding: 5px 12px 5px 10px; border-radius: 999px;
	background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--accent-strong);
	font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	animation: trErrPop 0.5s 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
:root[data-theme="dark"] .tr-err-chip { color: var(--accent-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-err-chip { color: var(--accent-bright); } }
.tr-err-chip .tr-ic { width: 14px; height: 14px; }
.tr-err-title { margin: 0 0 10px; font: 600 clamp(28px, 4.6vw, 44px)/1.12 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.tr-err-text { max-width: 520px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; }
.tr-err-search {
	display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 0 auto 18px; padding: 6px 6px 6px 14px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.tr-err-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.tr-err-search > .tr-ic { color: var(--dim); flex: none; }
.tr-err-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 8px 0; box-shadow: none; }
.tr-err-search .tr-btn { min-height: 40px; padding: 0 16px; flex: none; }
.tr-err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tr-err-links { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; text-align: left; }
.tr-err-links a {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tr-err-links a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tr-err-link-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tr-err-link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tr-err-link-txt strong { font-weight: 600; font-size: 15px; }
.tr-err-link-txt small { color: var(--muted); font-size: 13px; }
.tr-err-link-go { flex: none; color: var(--dim); transition: transform 0.15s, color 0.15s; }
.tr-err-links a:hover .tr-err-link-go { color: var(--accent); transform: translateX(3px); }
@media (max-width: 560px) {
	.tr-err-links { grid-template-columns: minmax(0, 1fr); }
	.tr-err-actions .tr-btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding-left: 10px; padding-right: 10px; }
	.tr-err-actions .tr-btn-primary { flex-basis: 100%; }
}
@keyframes trErrUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes trErrFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes trErrPop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Écran de chargement (première page de la visite) + barre de progression
   ========================================================================== */
.tr-loader { display: none; }
html.tr-loading .tr-loader {
	position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: radial-gradient(circle at 50% 42%, rgba(8, 181, 206, 0.14), transparent 55%), var(--bg);
	animation: trLoaderAuto 0.4s 3.5s forwards; /* sécurité : disparaît même sans JavaScript */
}
html.tr-loading.tr-loaded .tr-loader { animation: trLoaderOut 0.45s ease forwards; }
.tr-loader-box { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.tr-loader-ring {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 25%, var(--accent-bright) 70%, var(--accent) 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
	animation: trSpin 0.9s linear infinite;
}
.tr-loader-logo { width: 44px; height: 44px; border-radius: 12px; animation: trLoaderPulse 1.4s ease-in-out infinite; }
.tr-loader-name { font: 600 15px/1 var(--font-display); letter-spacing: 0.08em; color: var(--text); }
.tr-loader-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.tr-loader-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); animation: trLoaderBar 1.1s ease-in-out infinite; }

.tr-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 100001; height: 3px; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.admin-bar .tr-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .tr-progress { top: 46px; } }
.tr-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); box-shadow: 0 0 10px var(--accent-ring); border-radius: 0 3px 3px 0; }
.tr-progress.is-on { opacity: 1; }
.tr-progress.is-on i { animation: trProgress 8s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
.tr-progress.is-done i { width: 100% !important; animation: none; transition: width 0.2s; }

@keyframes trSpin { to { transform: rotate(360deg); } }
@keyframes trLoaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.92); } }
@keyframes trLoaderBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes trLoaderOut { to { opacity: 0; visibility: hidden; } }
@keyframes trLoaderAuto { to { opacity: 0; visibility: hidden; } }
@keyframes trProgress { 0% { width: 0; } 30% { width: 45%; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) {
	html.tr-loading .tr-loader { display: none; }
	.tr-err-digits span, .tr-err-chip { animation: none; }
}
@media print { .tr-loader, .tr-progress { display: none !important; } }
