/*
Theme Name: Smarters8K
Description: Thème sur mesure bleu / blanc / orange pour iptv-smarters8k.eu (rapide, sans builder, animations GSAP).
Version: 2.0.0
Text Domain: smarters8k
*/

/* ---------- Tokens : bleu + blanc + orange ---------- */
:root {
	--white: #FFFFFF;
	--tint: #F3F7FF;          /* fond bleu très clair (sections alternées) */
	--tint-2: #E8F0FF;
	--line: #DCE5F5;
	--navy: #0A1A44;          /* texte + sections sombres */
	--navy-2: #0F2A6B;
	--text: #0A1A44;
	--muted: #55627D;
	--blue: #1D4ED8;          /* couleur principale */
	--blue-2: #2F6BFF;
	--blue-soft: rgba(29, 78, 216, .08);
	--orange: #FF7A1A;        /* 3e couleur : CTA + accents */
	--orange-hover: #F26A06;
	--orange-light: #FFB36B;
	--on-orange: #1F0D00;
	--radius: 18px;
	--radius-btn: 12px;
	--shadow: 0 18px 40px -24px rgba(16, 40, 120, .28);
	--shadow-lg: 0 30px 60px -30px rgba(16, 40, 120, .40);
	--ease: cubic-bezier(.23, 1, .32, 1);
	--font-display: "Sora", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
	--container: 1200px;
	--gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
h2 em, h1 em { font-style: normal; color: var(--blue); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; color: inherit; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface, .section--light { background: var(--tint); }
.section--light .muted, .section--light .lead { color: var(--muted); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--orange); }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--orange); }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border-radius: var(--radius-btn);
	font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
	border: 1px solid transparent;
	transition: transform 160ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 10px 24px -12px rgba(255, 122, 26, .8); }
.btn--primary:hover { background: var(--orange-hover); color: var(--on-orange); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--blue); font-weight: 700; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.nav a:hover, .nav .current-menu-item > a { color: var(--blue); background: var(--tint); }
.header-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.nav-toggle svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-cta .btn--ghost { display: none; }
	.nav { position: fixed; inset: 68px 0 0; background: var(--white); padding: 16px var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms; margin: 0; }
	.nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
	.nav ul { flex-direction: column; }
	.nav a { font-size: 20px; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--navy); }
	.header-cta { order: 2; }
	.nav-toggle { order: 3; margin-left: 8px; }
	.brand { margin-right: auto; }
}

/* ---------- Hero (bleu nuit) ---------- */
.hero { position: relative; padding: 80px 0 104px; overflow: hidden; color: #fff; background: radial-gradient(70% 90% at 85% 10%, rgba(47, 107, 255, .55), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(255, 122, 26, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0B2463 55%, #12348C 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; color: #fff; }
.hero h1 em { color: var(--orange-light); }
.hero .eyebrow { color: #9EC0FF; }
.hero .lead { max-width: 560px; margin-bottom: 28px; color: rgba(255, 255, 255, .8); }
.hero .lead strong { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; font-weight: 500; color: #fff; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.proof { font-size: 14px; color: rgba(255, 255, 255, .72); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.proof span { display: inline-flex; align-items: center; gap: 6px; }
.proof svg { width: 16px; height: 16px; color: var(--orange-light); }

/* CSS 8K TV mockup (replace with ChatGPT image later) */
.tv { position: relative; aspect-ratio: 16 / 10; }
.tv-screen { position: absolute; inset: 0 0 8% 0; border-radius: 14px; background: #000; border: 10px solid #0A1430; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(47, 107, 255, .55); overflow: hidden; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-ui { position: absolute; inset: 0; padding: 6%; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(120% 90% at 80% 10%, rgba(47, 107, 255, .55), transparent 60%), radial-gradient(90% 80% at 10% 90%, rgba(255, 122, 26, .30), transparent 60%), linear-gradient(160deg, #0B1636, #050A1C); }
.tv-top { display: flex; justify-content: space-between; align-items: center; font: 500 clamp(9px, 1.1vw, 12px)/1 var(--font-mono); color: #9EB1D6; }
.tv-badge { padding: 4px 8px; border-radius: 6px; background: rgba(255, 122, 26, .16); color: var(--orange-light); }
.tv-mid { align-self: center; }
.tv-res { font: 700 clamp(40px, 7vw, 84px)/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #8FB0FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-sub { font: 500 clamp(10px, 1.2vw, 13px)/1.4 var(--font-mono); color: #9EB1D6; margin-top: 8px; }
.tv-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tv-rail span { aspect-ratio: 16 / 10; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .08); }
.tv-rail span:first-child { outline: 2px solid var(--orange); outline-offset: 2px; }
.tv-stand { position: absolute; left: 50%; bottom: 0; width: 34%; height: 8%; transform: translateX(-50%); background: linear-gradient(180deg, #1B2B5C, #0A1430); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }

@media (max-width: 960px) {
	.hero { padding: 40px 0 72px; }
	.hero .container { grid-template-columns: 1fr; gap: 40px; }
	.hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Stats strip (overlaps the hero) ---------- */
.stats-wrap { margin-top: -48px; position: relative; z-index: 2; padding-bottom: 0 !important; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.stat { padding: 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .mono { display: block; font-size: 28px; color: var(--blue); }
.stat span:last-child { font-size: 14px; color: var(--muted); }
.stat .mono { white-space: nowrap; }
@media (max-width: 640px) {
	.stat { padding: 18px; }
	.stat .mono { font-size: 22px; }
	.res-compare { gap: 8px; }
	.res-compare div { padding: 12px 10px; }
	.res-compare .mono { font-size: 18px; }
	.res-compare small { font-size: 11px; line-height: 1.35; display: block; }
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
@media (hover: hover) { .card--hover:hover { transform: translateY(-3px); border-color: #B9CCF2; box-shadow: var(--shadow-lg); } }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; }
.icon svg { width: 22px; height: 22px; }
.icon--orange { background: rgba(255, 122, 26, .12); color: var(--orange-hover); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { grid-column: span 2; }
.bento .card--wide { grid-column: span 4; background: linear-gradient(160deg, var(--white), var(--tint)); }
.bento .card--half { grid-column: span 3; }
@media (max-width: 960px) { .bento .card, .bento .card--wide, .bento .card--half { grid-column: span 6; } }
.res-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.res-compare div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--white); }
.res-compare .mono { display: block; font-size: 22px; color: var(--navy); }
.res-compare small { color: var(--muted); font-size: 13px; }
.res-compare .is-8k { border-color: var(--blue); background: var(--blue); }
.res-compare .is-8k .mono { color: #fff; }
.res-compare .is-8k small { color: rgba(255, 255, 255, .8); }
.device-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.device-list li { padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 14px; color: var(--navy); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font: 600 15px/1 var(--font-mono); margin-bottom: 18px; }
.steps li:last-child::before { background: var(--orange); color: var(--on-orange); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { position: relative; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin: 0 auto 40px; box-shadow: var(--shadow); }
.toggle button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 15px/1 var(--font-body); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.toggle-wrap { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan--top { background: linear-gradient(170deg, var(--navy) 0%, #12348C 100%); border: 0; color: #fff; box-shadow: var(--shadow-lg); }
.plan--top h3, .plan--top .plan-price { color: #fff; }
.plan--top .plan-note, .plan--top li { color: rgba(255, 255, 255, .82); }
.plan--top li svg { color: var(--orange-light); }
.plan--top .plan-month { color: var(--orange-light); }
.plan-flag { position: absolute; top: -13px; left: 24px; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 700 12px/1 var(--font-body); letter-spacing: .02em; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan-note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.plan-price { font: 700 44px/1 var(--font-display); letter-spacing: -.03em; color: var(--navy); }
.plan-price sup { font-size: 22px; top: -.9em; margin-left: 2px; }
.plan-month { font: 500 14px/1.4 var(--font-mono); color: var(--blue); margin: 8px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan .btn--ghost { border-color: var(--blue); color: var(--blue); }
.plan .btn--ghost:hover { background: var(--blue); color: #fff; }
.plan-set[hidden] { display: none; }
.pay-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.prose .pricing, .prose .cta-band { width: min(var(--container), 100vw - 2 * var(--gutter)); position: relative; left: 50%; transform: translateX(-50%); margin: 40px 0; }
.prose .cta-band { margin-top: 64px; }

/* ---------- Media + text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--rev > :first-child { order: 0; } }
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--placeholder { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font: 500 13px/1.5 var(--font-mono); background: repeating-linear-gradient(135deg, var(--tint), var(--tint) 12px, var(--tint-2) 12px, var(--tint-2) 24px); }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 13px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--navy); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--tint); }
td .mono, td.mono { color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.faq details[open] { border-color: #B9CCF2; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 18px/1.4 var(--font-display); letter-spacing: -.01em; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); border-color: var(--orange); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- CTA band (bleu) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 64px 48px; background: radial-gradient(80% 120% at 100% 0%, rgba(255, 122, 26, .30), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(47, 107, 255, .6), transparent 60%), linear-gradient(160deg, var(--navy), #12348C); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { max-width: 720px; margin-inline: auto; color: #fff; }
.cta-band p { max-width: 600px; margin: 0 auto 28px; color: rgba(255, 255, 255, .8); }
.cta-band .hero-actions { justify-content: center; margin: 0; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
@media (max-width: 640px) { .cta-band { padding: 48px 20px; } }

/* ---------- Content pages (prose) ---------- */
.page-hero { padding: 64px 0 48px; background: radial-gradient(60% 120% at 100% 0%, rgba(47, 107, 255, .14), transparent 60%), var(--tint); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 16px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: #34405A; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }
.prose .table-wrap, .prose .callout, .prose .grid, .prose .faq { margin: 24px 0; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 18px 20px; background: var(--tint); }
.callout p:last-child { margin: 0; }
.callout--warn { border-left-color: var(--orange); background: #FFF6EE; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--tint); margin: 0 0 40px; }
.toc strong { display: block; margin-bottom: 8px; font-family: var(--font-display); color: var(--navy); }
.toc ol { margin: 0; color: var(--muted); }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* ---------- Footer (bleu nuit) ---------- */
.site-footer { padding: 72px 0 32px; margin-top: 96px; background: linear-gradient(170deg, var(--navy), #0B2463); color: rgba(255, 255, 255, .72); }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--orange-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 15px; font-family: var(--font-body); letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-grid a:hover { color: var(--orange-light); }
.footer-grid p { color: rgba(255, 255, 255, .72); font-size: 15px; max-width: 340px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
	.sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
	.sticky-cta .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 15px; }
	.sticky-cta .btn--ghost { flex: 0 0 auto; }
	.header-cta { display: none; }
	#sassai-chat-root { bottom: 96px !important; right: 16px !important; }
	body { padding-bottom: 84px; }
}

/* Blog */
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .post-list { grid-template-columns: 1fr; } }
.post-card a { color: var(--navy); text-decoration: none; }
.post-card a:hover { color: var(--blue); }
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ---------- Hero entrance (CSS, runs from first paint) ---------- */
@keyframes s8k-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes s8k-tv { from { opacity: 0; transform: perspective(1200px) translateY(40px) rotateX(8deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes s8k-glow { from { opacity: 0; filter: blur(14px); transform: scale(.85); } to { opacity: 1; filter: none; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero .chips, .hero .hero-actions, .hero .proof { animation: s8k-rise 800ms var(--ease) both; }
.hero h1 { animation-delay: 80ms; }
.hero .lead { animation-delay: 180ms; }
.hero .chips { animation-delay: 260ms; }
.hero .hero-actions { animation-delay: 340ms; }
.hero .proof { animation-delay: 420ms; }
.hero .tv { animation: s8k-tv 1100ms var(--ease) 120ms both; }
.hero .tv-res { animation: s8k-glow 1000ms var(--ease) 600ms both; }
.hero .tv-rail span { animation: s8k-rise 600ms var(--ease) both; }
.hero .tv-rail span:nth-child(1) { animation-delay: 800ms; }
.hero .tv-rail span:nth-child(2) { animation-delay: 870ms; }
.hero .tv-rail span:nth-child(3) { animation-delay: 940ms; }
.hero .tv-rail span:nth-child(4) { animation-delay: 1010ms; }

/* ---------- Motion (GSAP, see js/motion.js) ---------- */
/* Split headings: masked words while animating */
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
/* Elements are only hidden once JS confirms GSAP is running (html.js-motion), so no-JS and crawlers see everything. */
.js-motion [data-anim] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js-motion [data-anim] { opacity: 1 !important; }
}
