/* Reusable UI components */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary-blue); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-blue-dark); color: #fff; }

.btn-secondary { background: var(--card-bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.24); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* Hero — restyled after owner feedback ("too centered/busy, make it pro",
   pointing to 4kskyntv.com's hero as a reference): that reference lets its
   photo read clearly (near-zero tint near the top, subjects' faces fully
   visible) and only darkens toward the bottom where the copy sits, with a
   single lean stack of copy instead of many stacked centered blocks. The
   previous version used a heavy uniform brand-colour wash plus a decorative
   grid-line + diagonal light-beam overlay on top of every photo — both
   removed. The hero is now a tall flex container bottom-aligning its copy,
   so more of the photo shows above the text (also closer to the
   reference's composition) instead of the copy sitting dead-center. */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--dark-blue); /* fallback shown briefly before the slideshow photos decode */
	color: #fff;
	display: flex;
	align-items: flex-end;
	min-height: 660px;
	padding-block: 48px 72px;
}
/* The header overlays the hero only on the homepage (see layout.css) and
   is removed from the normal flow (position: absolute) to do so — this
   adds back that missing space at the top so the logo/nav row never
   covers the rating badge or eyebrow text. */
body.home .hero { padding-top: calc(var(--header-height) + 40px); }
/* Crossfading photo backdrop (see section-hero.php / initHeroBackgroundSlideshow
   in main.js) sits at the back; a bottom-anchored scrim keeps the photo
   clear near the top (where faces are) and darkens only behind the copy. */
.hero-bg-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 15%;
	opacity: 0;
	transition: opacity 1.5s ease;
}
.hero-bg-slide.is-active { opacity: 1; }
.hero-bg-tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,20,50,0.1) 0%, rgba(10,20,50,0.38) 35%, rgba(8,18,46,0.58) 65%, rgba(6,14,40,0.72) 100%);
}
.hero .container {
	position: relative;
	z-index: 2;
}
.hero-copy { max-width: 680px; margin-inline: auto; text-align: center; }
.rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.18);
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	margin-bottom: 18px;
}
.rating-badge .stars { gap: 1px; }
.rating-badge-text { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); }

/* 3 honest stat cards at the end of the hero copy (quality / delivery
   speed / money-back guarantee — deliberately not a catalogue-size claim,
   see section-hero.php's $hero_stats comment). Bigger, glassmorphic and
   animated (a staggered scale/fade entrance on load, driven by an inline
   animation-delay per card — no scroll-reveal needed since the hero is
   always in view on load) per owner feedback that the previous small
   inline chips didn't stand out. */
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: var(--radius-lg);
	padding: 28px 32px;
	min-width: 160px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(24px) scale(0.94);
	animation: hero-stat-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transition: transform var(--transition-base), background var(--transition-base);
}
.hero-stat:hover { transform: translateY(-6px) scale(1.02); background: rgba(255,255,255,0.14); }
.hero-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(96,165,250,0.35) 0%, rgba(96,165,250,0.08) 70%);
	color: var(--primary-blue-light);
	margin-bottom: 6px;
	box-shadow: 0 0 24px rgba(96,165,250,0.35);
}
.hero-stat-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.68); font-weight: 600; text-align: center; }
@keyframes hero-stat-in {
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.hero-stat { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 640px) {
	.hero-stat { padding: 20px 22px; min-width: 130px; }
	.hero-stat-value { font-size: 1.2rem; }
}
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 1.125rem; font-weight: 500; max-width: 560px; margin: 14px auto 0; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
/* Secondary action reads as a plain link, not a second boxed button —
   keeps the CTA row from feeling like two competing buttons side by side. */
.hero-cta-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; font-size: 0.95rem; }
.hero-cta-link .icon { transform: rotate(-90deg); transition: transform var(--transition-fast); }
.hero-cta-link:hover .icon { transform: rotate(-90deg) translateX(2px); }
.hero-trust { margin-top: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.55); display: flex; justify-content: center; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--primary-blue-light); }

.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: var(--radius-md);
	background: var(--light-blue);
	color: var(--primary-blue);
	margin-bottom: 16px;
}
.benefit-card h3, .feature-card h3 { margin-bottom: 8px; }
.benefit-card p, .feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Photo card component (owner-supplied reference design: photo top, a
   small icon badge overlapping its bottom-left corner, body with title /
   muted description / outline button) — white body to match the site's
   light theme instead of the reference's dark card. Shared by the
   Categories section and the homepage Features+Benefits grid. */
.photo-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
/* The photo itself (and its hover zoom / slideshow crossfade) is clipped by
   this inner frame, not by .photo-card-media directly — the icon badge
   below intentionally overlaps -18px past the photo's bottom edge, and
   overflow:hidden on their shared parent was clipping that overlap off. */
.photo-card-media-frame { position: absolute; inset: 0; overflow: hidden; }
.photo-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-base); }
.photo-card:hover .photo-card-media img { transform: scale(1.05); }
/* Per-card mini-slideshow, hover-stepped (see initCategoryMediaSlideshow in
   main.js) — up to 3 stacked photos crossfading in place. Categories-only. */
.photo-card-media .category-card-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.photo-card-media .category-card-slide.is-active { opacity: 1; }
.photo-card:hover .photo-card-media .category-card-slide.is-active { transform: scale(1.05); }

.photo-card-grid { align-items: stretch; }

/* Catégories de contenu only (scoped to #categories — NOT .photo-card-grid
   itself, which the homepage Features section also reuses with its own,
   higher-resolution photos and must stay exactly as it was): the 6 cards'
   photos come from the MaTV_categories_images_pro package, exported at a
   fixed 355x222px with no higher-resolution originals available. At the
   default .grid-3 breakpoints (2 columns from 782-1080px, 1 column below
   782px) those cards render up to ~700px wide — a 2x upscale that visibly
   softens the photo. Desktop (>=1080px, ~379px cards) and real phones
   (<480px, ~342px cards) already render AT OR BELOW the source resolution,
   so neither is touched here, per instruction. In between, auto-fit with a
   420px cap keeps column count scaling (1 -> 2 -> 3 as width grows) so the
   rendered card width tracks the source resolution instead of stretching
   past it — verified at 480/600/768/900/1024px to stay close to or under
   355px, with 1080px+ falling straight through to the untouched default. */
@media (min-width: 480px) and (max-width: 1079px) {
	#categories .photo-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 420px));
		justify-content: center;
	}
}

.photo-card {
	position: relative;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-card-icon {
	position: absolute;
	left: 16px;
	bottom: -18px;
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-blue);
	color: #fff;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	z-index: 2;
}
.photo-card-body { padding: 32px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.photo-card-body h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.photo-card-body p { color: var(--muted-text); font-size: 0.9rem; margin: 0 0 20px; flex: 1; }

/* Catégories de contenu only: align-items:stretch already equalises the
   3 cards WITHIN a grid row, but the two rows of 3 still differed from
   each other (496px vs 473px measured live) because each description's
   natural line count differs (1-3 lines depending on category). Clamping
   every description to the same 3-line box — reserved up front via
   min-height, not just capped on overflow — makes every card the same
   height everywhere, not just within its own row. Scoped to #categories
   (not .photo-card-grid) so the Features section's own cards, which
   weren't part of this request, are untouched. */
#categories .photo-card-body p {
	line-height: 1.6;
	min-height: calc(1.6em * 3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}
.btn-outline-pill {
	align-self: flex-start;
	border: 1.5px solid var(--primary-blue);
	color: var(--primary-blue);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: var(--radius-pill);
	transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-outline-pill:hover { background: var(--primary-blue); color: #fff; }

/* Animated gradient "shine" sweep across every section title (not just
   categories) — a moving highlight rather than a flat colour. Slowed down
   from an earlier 5s pass (felt too fast/distracting) to a lazier 11s. */
.section-header h2,
.title-shine {
	background: linear-gradient(100deg, var(--text) 40%, var(--primary-blue) 50%, var(--text) 60%);
	background-size: 250% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	animation: title-shine-sweep 11s ease-in-out infinite;
}
.section--dark .section-header h2 {
	background-image: linear-gradient(100deg, #fff 40%, var(--primary-blue-light) 50%, #fff 60%);
}
@keyframes title-shine-sweep {
	0% { background-position: 200% 0; }
	40%, 100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.section-header h2,
	.title-shine { animation: none; background-position: 0 0; -webkit-text-fill-color: initial; color: var(--text); background: none; }
}
/* Features */
.feature-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px;
	transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
/* Blue-gradient variant used on the homepage's merged Features+Benefits
   grid — the icon floats gently, staggered 3 ways (repeats every 3rd card)
   so a 9-item grid doesn't all bob in unison. */
.feature-card--blue {
	background: linear-gradient(160deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
	border-color: transparent;
	color: #fff;
}
.feature-card--blue h3 { color: #fff; }
.feature-card--blue p { color: rgba(255,255,255,0.78); }
.feature-card--blue .icon-badge {
	background: rgba(255,255,255,0.18);
	color: #fff;
	animation: feature-icon-float 3.5s ease-in-out infinite;
}
.feature-card--blue:nth-child(3n+2) .icon-badge { animation-delay: 0.4s; }
.feature-card--blue:nth-child(3n+3) .icon-badge { animation-delay: 0.8s; }
@keyframes feature-icon-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
	.feature-card--blue .icon-badge { animation: none; }
}

/* Pricing */
.billing-toggle {
	display: inline-flex;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 4px;
	margin: 0 auto 48px;
}
.billing-toggle button {
	border: none;
	background: transparent;
	padding: 10px 22px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--muted-text);
	transition: all var(--transition-fast);
}
.billing-toggle button.is-active { background: var(--primary-blue); color: #fff; box-shadow: var(--shadow-sm); }

/* Optional screens calculator — recalculates card prices client-side, see assets/js/main.js */
.screens-selector {
	max-width: 620px;
	margin: 0 auto 48px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px 28px;
}
.screens-selector-label { font-weight: 700; color: var(--text); margin-bottom: 14px; }
.screens-toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.screens-toggle button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--border);
	background: var(--card-bg);
	padding: 9px 16px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--text);
	transition: all var(--transition-fast);
}
.screens-toggle button.is-active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.screens-toggle button .screens-save { font-size: 0.72rem; font-weight: 800; color: var(--success); }
.screens-toggle button.is-active .screens-save { color: #bbf7d0; }
.screens-selector-hint { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted-text); }
.plan-screens-note { font-size: 0.78rem; color: var(--primary-blue); font-weight: 600; margin: 6px 0 0; }

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
	align-items: stretch;
}
.pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 36px 28px;
	overflow: hidden;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.is-recommended {
	border-color: var(--primary-blue);
	box-shadow: var(--shadow-lg);
	transform: scale(1.03);
	background: linear-gradient(180deg, var(--card-bg) 0%, var(--light-blue) 140%);
}
.pricing-card.is-recommended:hover { transform: scale(1.03) translateY(-6px); }

/* Plan pill (Populaire / Meilleure offre / VIP): centred on the card's top
   edge, so the card must not clip it. */
.pricing-grid { padding-top: 18px; }
.pricing-card { overflow: visible; }
.plan-ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px 8px 13px;
	border-radius: var(--radius-pill);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue-dark));
	box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	z-index: 3;
}
.plan-ribbon .icon { flex-shrink: 0; display: block; }
.plan-ribbon--best {
	background: linear-gradient(135deg, #f43f5e, #c8102e);
	box-shadow: 0 10px 24px -8px rgba(224, 36, 60, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.plan-ribbon--best .icon { color: #fde68a; }
.plan-ribbon--vip {
	background: linear-gradient(135deg, #1e293b, var(--dark-blue));
	color: #fde68a;
	border: 1px solid rgba(253, 230, 138, 0.55);
	box-shadow: 0 10px 24px -8px rgba(11, 21, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.plan-ribbon--vip .icon { color: #fbbf24; }

.plan-card-header { text-align: center; }
.plan-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--light-blue);
	color: var(--primary-blue);
	margin: 0 auto 14px;
}
/* One of 4 supplied per-tier illustrations (assets/images/plan-badge-*.webp) — see pricing-cards.php */
.plan-badge-img { width: 88px; height: 88px; border-radius: var(--radius-md); margin: 0 auto 14px; object-fit: cover; }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
/* min-height keeps card tops aligned across a row even if one plan's
   description runs a little longer than the others. */
.plan-description { font-size: 0.9rem; margin-bottom: 20px; min-height: 4.8em; text-align: center; }

/* Plain, centered price display (matches the plans.png reference) — no
   shaded box, price is the focal point on its own via size/weight alone. */
.plan-price-block { margin-bottom: 24px; text-align: center; }
.plan-price-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.plan-price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--text); }
.plan-currency { font-size: 1.25rem; font-weight: 700; vertical-align: top; }
.plan-duration { color: var(--muted-text); font-size: 0.95rem; }
.plan-price-permonth { font-size: 0.82rem; color: var(--muted-text); margin: 0; }
.plan-savings-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }
.plan-savings-row:first-child { margin-top: 0; }
.plan-original-price { text-decoration: line-through; color: var(--muted-text); font-size: 1rem; }
.plan-discount {
	display: inline-flex;
	align-items: center;
	background: var(--success);
	color: #fff;
	font-weight: 800;
	font-size: 0.8rem;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	box-shadow: 0 4px 10px -2px rgba(22,163,74,0.45);
}
.plan-features {
	list-style: none;
	padding-top: 22px;
	margin: 0 0 24px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.925rem; text-align: left; }
.plan-features .icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }
/* The "+N more" tail continues the same list, so it skips the divider/
   top-padding the first .plan-features uses to separate from the price. */
.plan-features-extra { border-top: none; padding-top: 0; margin-top: -12px; }
.plan-features-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: none;
	border: none;
	padding: 4px 0 20px;
	margin-top: -12px;
	color: var(--primary-blue);
	font-weight: 700;
	font-size: 0.875rem;
	cursor: pointer;
}
.plan-features-toggle .icon { transition: transform var(--transition-fast); }
.plan-features-toggle.is-open .icon { transform: rotate(180deg); }
.pricing-card .btn { margin-top: auto; }

.pricing-note { text-align: center; color: var(--muted-text); font-size: 0.9rem; margin-top: 32px; }
.pricing-trial-cta { display: inline-flex; margin-top: 20px; }

.promo-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-dark));
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 12px 20px;
	border-radius: var(--radius-pill);
	max-width: fit-content;
	margin: 0 auto 32px;
	box-shadow: var(--shadow-glow);
}

/* Comparison table */
.comparison-table-scroll-hint { display: none; text-align: center; color: var(--muted-text); font-size: 0.85rem; margin: 64px 0 12px; }
.comparison-table-wrap {
	overflow-x: auto;
	margin-top: 64px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border);
}
.comparison-table-scroll-hint + .comparison-table-wrap { margin-top: 0; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--card-bg); }
.comparison-table th, .comparison-table td { padding: 18px 22px; border-bottom: 1px solid var(--border); text-align: center; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) td { background: var(--surface); }
.comparison-table-feature-col { text-align: left !important; color: var(--text); font-weight: 600; white-space: nowrap; }
.comparison-table thead th {
	background: var(--dark-blue);
	background: linear-gradient(160deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	padding-top: 22px;
	padding-bottom: 22px;
	position: relative;
}
.comparison-table thead .comparison-table-feature-col { background: transparent; }
.comparison-table .icon.is-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: rgba(22,163,74,0.12);
	color: var(--success);
}
.comparison-table .icon.is-cross { color: var(--muted-text); opacity: 0.35; }
.comparison-table-value { font-weight: 700; color: var(--text); font-size: 0.95rem; }

/* The recommended plan's column is visually called out down the whole table. */
.comparison-table th.is-recommended-col { background: var(--primary-blue); }
.comparison-table td.is-recommended-col { background: var(--light-blue); }
.comparison-table tbody tr:nth-child(even) td.is-recommended-col { background: #dbe8ff; }
.comparison-table td.is-recommended-col .comparison-table-value { color: var(--primary-blue-dark); }
.comparison-table-badge {
	display: block;
	margin-top: 4px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.85;
}

/* Devices — "Compatible avec tous vos appareils": a premium cinematic
   photo grid (8 owner-supplied images, title/description baked in — see
   section-devices.php). Plain light surface, no decorative pattern: the
   photos carry the visual weight, nothing competes with them. */
.devices-showcase {
	padding: 48px 32px;
	border-radius: var(--radius-xl);
	background: var(--surface);
}
.devices-grid { position: relative; }

/* Fallback card (icon + label) — only renders if a future admin-added
   device has no matching photo in section-devices.php's $device_photos. */
.device-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px 16px;
	text-align: center;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.device-card .icon-badge { margin: 0 auto 14px; }
.device-card-label { display: block; font-size: 0.9rem; font-weight: 700; }

/* The 8 real device cards. Title/description are baked into the photo,
   so the card IS the photo — no extra frame. .device-card--photo must
   reset every box-model property .device-card (the fallback icon card,
   above) sets, because both classes sit on the same element
   (section-devices.php's `<div class="device-card device-card--photo">`)
   and the fallback's border/padding/text-align otherwise leak straight
   through: that leak was the exact cause of the "double frame" (a white
   1px border + 24px/16px of the fallback's own white background showing
   around the image) reported after the first pass. object-fit:cover
   (not contain): the 8 source images don't share one exact pixel ratio
   (365x489 vs 364x485 etc.), so a fixed aspect-ratio box always has a
   sub-1% mismatch for some of them — contain showed that gap as a dark
   letterbox sliver (the second half of the "double frame" look); cover
   crops instead, but the mismatch is under 0.7% of the image on every
   one of the 8, nowhere near the baked-in text band near the bottom. */
.device-card--photo {
	position: relative;
	display: block;
	border: none;
	padding: 0;
	text-align: left;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 365 / 487;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	background: #0b1220; /* fallback fill if an image fails to load; invisible otherwise since cover fills the box exactly */
	cursor: default; /* these cards have no click action (no <a>) — never show a pointer cursor */
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.device-card--photo picture,
.device-card--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
	/* .devices-grid prefix: not needed for matching (.device-card--photo
	   only ever appears inside .devices-grid), but needed for specificity
	   — .reveal.is-visible (below, in the shared scroll-reveal rules) is
	   2 classes and sits later in this file, so on an exact tie it would
	   win the cascade and silently cancel this transform the moment a
	   card has been revealed. 3 classes here beats it outright, source
	   order no longer matters. */
	.devices-grid .device-card--photo:hover {
		transform: scale(1.1) translateY(-8px);
		z-index: 2;
		box-shadow: 0 0 0 2px rgba(37,99,235,0.45), 0 30px 54px rgba(15,23,42,0.28), 0 0 34px rgba(37,99,235,0.28);
	}
}
@media (prefers-reduced-motion: reduce) {
	.devices-grid .device-card--photo:hover { transform: none; }
}

/* Entrance animation: initScrollReveal() in main.js already targets
   .device-card and adds .reveal/.is-visible once on first scroll into
   view; layout.css's shared .reveal/.reveal.is-visible rule drives the
   actual transform. Parametrized via --reveal-offset (layout.css reads
   it with a 28px fallback, so every other section is untouched) instead
   of a competing transform override: an earlier pass here used
   `.devices-grid .device-card.reveal.is-visible { transform: none; }`
   to fix a stuck-offset bug — 4 classes of specificity, which then
   permanently beat the hover rule's `:hover` (2) and silently cancelled
   the hover zoom once a card had been revealed (confirmed: this is what
   made hover "not do anything" after the previous pass). A custom
   property declaration doesn't touch the `transform` cascade at all, so
   it can't out-rank — or be out-ranked by — hover ever again. */
.devices-grid .device-card { --reveal-offset: 18px; }
.devices-grid .device-card:nth-child(7).reveal { transition-delay: 0.48s; }
.devices-grid .device-card:nth-child(8).reveal { transition-delay: 0.56s; }
/* transition-delay is element-wide, not per-property: the shared
   .grid > .reveal:nth-child(N) stagger rules (layout.css) and the two
   nth-child(7/8) rules above set it to entrance the reveal, but .reveal
   is never removed afterwards — so without this reset, that same delay
   (40-560ms depending on the card) silently also applied to every later
   hover transition, making some cards' hover feel laggy/broken instead
   of the immediate 350ms this component asks for. Reset once revealed. */
.devices-grid .device-card.reveal.is-visible { transition-delay: 0s; }

/* 20-24px gutter + uniform cards, overriding the base .grid's 28px. */
.devices-grid { gap: 22px; }

@media (max-width: 899px) {
	.devices-showcase .devices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
	.devices-showcase .devices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.devices-showcase { padding: 40px 20px; }
}

/* How it works — blue-gradient cards (icon + number + title + description,
   all white-on-blue), matching the reference design the owner supplied. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.step-card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-md);
	margin-bottom: 18px;
}
.step-card {
	text-align: center;
	position: relative;
	background: linear-gradient(180deg, var(--primary-blue-light) 0%, var(--primary-blue-dark) 100%);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	color: #fff;
	box-shadow: var(--shadow-md);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card-icon { display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 8px; }
.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1rem;
	margin: 0 auto 14px;
}
.step-card h3 { font-size: 1.05rem; color: #fff; }
.step-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin: 0; }

/* Testimonials */
.testimonial-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.stars { display: inline-flex; gap: 2px; }
.stars .star.is-filled { color: #f59e0b; }
.stars .star.is-empty { color: var(--border); }
.testimonial-quote { color: var(--text); font-size: 0.975rem; margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--light-blue); flex-shrink: 0; }
.testimonial-avatar-fallback {
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--light-blue); color: var(--primary-blue);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.testimonial-role { font-size: 0.8rem; color: var(--muted-text); }

/* Aggregate rating badge above the testimonials carousel — own styling
   (blue accent, plain star icons), not modeled on any third-party review
   platform's mark. */
.reviews-summary {
	display: flex;
	align-items: center;
	gap: 20px;
	width: fit-content;
	margin: -16px auto 40px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px 28px;
	box-shadow: var(--shadow-md);
}
.reviews-summary-score { font-family: var(--font-heading); font-weight: 800; font-size: 2.25rem; color: var(--primary-blue); line-height: 1; }
.reviews-summary-score small { font-size: 1.1rem; font-weight: 700; color: var(--muted-text); }
.reviews-summary-meta { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 1px solid var(--border); }
.reviews-summary-text { font-size: 0.85rem; color: var(--muted-text); font-weight: 600; }
@media (max-width: 480px) {
	.reviews-summary { flex-direction: column; text-align: center; gap: 10px; padding: 20px; }
	.reviews-summary-meta { padding-left: 0; border-left: none; align-items: center; }
}

.testimonial-carousel { position: relative; }
.testimonial-page { animation: testimonial-fade 0.4s ease; }
@keyframes testimonial-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
.testimonial-dots { display: flex; justify-content: center; gap: 9px; margin-top: 32px; }
.testimonial-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--border);
	cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}
.testimonial-dots button.is-active { background: var(--primary-blue); transform: scale(1.3); }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); overflow: hidden; }
.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: none;
	border: none;
	padding: 20px 24px;
	text-align: left;
	font-weight: 700;
	font-size: 1rem;
	color: var(--text);
}
.faq-question .icon { flex-shrink: 0; transition: transform var(--transition-base); color: var(--primary-blue); }
.faq-item.is-open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-answer-inner { padding: 0 24px 20px; color: var(--muted-text); }
.faq-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.faq-filter button { border: 1px solid var(--border); background: var(--card-bg); padding: 8px 18px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem; color: var(--muted-text); }
.faq-filter button.is-active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* Installation guide */
.install-credentials-callout {
	max-width: 800px;
	margin: 0 auto 32px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--light-blue);
	border-radius: var(--radius-lg);
	padding: 24px 28px;
}
.install-credentials-callout .icon-badge { flex-shrink: 0; }
.install-credentials-callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.install-credentials-callout p { margin: 0; color: var(--muted-text); font-size: 0.925rem; }
.install-list { max-width: 800px; }
.install-app-line { font-weight: 700; color: var(--text); margin: 0 0 14px; }
.install-steps { margin: 0; padding-left: 20px; color: var(--muted-text); display: flex; flex-direction: column; gap: 8px; }
.install-steps li { padding-left: 4px; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.final-cta-actions .btn { margin-top: 0; }
@media (max-width: 480px) {
	.final-cta-actions { flex-direction: column; width: 100%; }
	.final-cta-actions .btn { width: 100%; }
}

/* Sticky mobile CTA */
.sticky-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 600;
	background: rgba(11,21,51,0.96);
	backdrop-filter: blur(8px);
	padding: 12px 16px;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.sticky-cta span { color: #fff; font-weight: 700; font-size: 0.9rem; }
.sticky-cta .btn { flex-shrink: 0; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-card li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.contact-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.9rem; font-weight: 600; }
.form-notice.success { background: rgba(22,163,74,0.1); color: var(--success); }
.form-notice.error { background: rgba(220,38,38,0.1); color: #dc2626; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Badges / trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 40px; }
.trust-strip .trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted-text); font-weight: 600; font-size: 0.9rem; }
.trust-strip .icon { color: var(--primary-blue); }

/* Scrolling genre "poster wall" under the hero — see
   section-movie-marquee.php. The track holds the genre list twice back to
   back; animating it exactly -50% loops seamlessly since that's precisely
   one full (non-duplicated) pass. */
.movie-marquee { overflow: hidden; background: var(--dark-blue); padding-block: 28px; }
.movie-marquee-track {
	display: flex;
	gap: 20px;
	width: max-content;
	animation: movie-marquee-scroll 50s linear infinite;
}
.movie-marquee:hover .movie-marquee-track { animation-play-state: paused; }
@keyframes movie-marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.movie-poster {
	position: relative;
	flex-shrink: 0;
	width: 130px;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: var(--shadow-md);
}
.movie-poster-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	color: #fff;
}
.movie-poster-label { color: #fff; font-weight: 700; font-size: 0.85rem; text-align: center; padding-inline: 8px; }
@media (prefers-reduced-motion: reduce) {
	.movie-marquee-track { animation: none; }
}

/* Homepage "streaming showcase" — two independent rows below the hero.
   Row 1 "Films & Séries": white background (.streaming-showcase),
   untouched by the Row 2 restructure below — see template-parts/
   section-streaming-showcase.php's header comment for why its title
   was deliberately left as-is.
   Row 2 "TV en direct, Sport & Divertissement": its OWN white
   background (.showcase-tv-section, scoped to just this row's wrapper
   — kept as its own element rather than merged back into
   .streaming-showcase in case a future round wants them to differ
   again, same as it's already flipped white/black/white twice). 3
   large fixed hero cards (no scroll, CSS-only hover highlight) + 5
   secondary cards in a fixed single row (no carousel — reverted from
   the previous scrolling version per explicit "fixe, pas bougé"). */
.streaming-showcase { background: var(--card-bg); padding-block: 72px 56px; }
.streaming-showcase .section-header { margin-bottom: 40px; }
.showcase-row-label-wrap { margin-block: 48px 16px; }
.showcase-row-label { color: var(--text); font-size: 1.1rem; font-weight: 700; margin: 0; }

/* Row 2's own wrapper — everything from the centred title through both
   card tiers lives inside this, independent of Row 1's background
   above it (currently the same white, but kept separable). */
.showcase-tv-section { background: var(--card-bg); padding-block: 64px 56px; margin-top: 56px; }
.showcase-tv-section .showcase-row-label-wrap { margin-block: 0 16px; }
.showcase-tv-section .showcase-row-label { color: var(--text); }
.showcase-tv-section .showcase-row-description { color: var(--muted-text); }
.showcase-row-label-wrap--centered { text-align: center; max-width: 720px; margin-inline: auto; }
.showcase-row-label--centered { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.showcase-row-underline { display: block; width: 56px; height: 3px; border-radius: var(--radius-pill); }
.showcase-row-underline--blue { background: var(--primary-blue-light, var(--primary-blue)); }
.showcase-row-underline--red { background: #dc2626; }
.showcase-row-description { margin: 10px 0 0; }
/* Sub-title for the secondary (5-card) tier, introduced to visually
   separate it from the 3 hero cards above — smaller than the section's
   main title, same weight/font/underline treatment. The blanket
   ".showcase-tv-section .showcase-row-label-wrap { margin-block: 0 16px }"
   above zeroes out top margin for the FIRST label wrap in the section;
   this one isn't first (the hero grid comes before it), so it needs its
   own top spacing restored — same specificity as that blanket rule,
   wins on source order (declared later). */
.showcase-tv-section .showcase-row-label-wrap--sub { margin-top: 48px; }
.showcase-row-label--sub { font-size: 0.95rem; }

/* Row 1's continuous-marquee engine (initContinuousMarquee()) — Row 2
   no longer uses this (reverted to a fixed grid, see below). The track
   is a REAL scroll container (overflow-x:auto), not just a transformed
   strip: JS nudges scrollLeft forward every animation frame and wraps
   it at the halfway point (the list is duplicated once in the markup,
   so that wrap is seamless — no jump). Because it's a genuine scroll
   container, touch/mouse drag on it is real native scrolling, not a
   simulated pause — the auto-advance just backs off while a pointer is
   down or hovering and resumes shortly after release. */
.showcase-marquee { position: relative; overflow: hidden; }
.showcase-marquee-track {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	scroll-behavior: auto; /* JS drives scrollLeft directly every frame; smooth would fight it */
	-webkit-overflow-scrolling: touch;
	padding-inline: var(--container-padding);
	padding-block: 16px;
	scrollbar-width: none;
	cursor: grab;
}
.showcase-marquee-track::-webkit-scrollbar { display: none; }
.showcase-marquee-track:active { cursor: grabbing; }

.showcase-card {
	position: relative;
	flex-shrink: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #000;
	box-shadow: var(--shadow-md);
	transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
}
/* object-fit:contain (not cover): source images don't share one
   consistent aspect ratio with their target card box, so cropping to
   cover would risk cutting into the image. Containing keeps the whole
   image intact; any letterbox bars disappear into the card's own black
   background. width/height:100% !important — this homepage is
   Elementor-rendered, and Elementor's own frontend CSS carries a global
   ".elementor img { height: auto; max-width: 100%; }" reset with the
   exact same selector specificity as .showcase-card img (one class +
   one element each), so the winner is whichever stylesheet happens to
   print later in <head> — not reliable. !important here is a deliberate,
   narrow override of that one third-party rule for this one component.
   Positioned absolutely (inset:0) against the card so the box resolves
   unambiguously, independent of the <img> width/height HTML attributes'
   own implicit aspect-ratio. */
.showcase-card img { display: block; position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; }
/* Visible title overlay — the only thing on the card besides the image,
   per the "clean card" spec (no play button, no icon badge). Bottom
   gradient scrim strengthened for legibility over any photo; it IS the
   accessible name — no separate screen-reader-only duplicate needed. */
.showcase-card-title {
	position: absolute;
	inset: auto 0 0 0;
	padding: 34px 16px 14px;
	background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%);
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.25;
}
.showcase-card-title-underline {
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 7px;
	border-radius: var(--radius-pill);
	background: var(--primary-blue-light, var(--primary-blue));
}
/* Row 1 "Films & Séries" — tall vertical posters, 280x420 on desktop
   (2:3 box, held fixed across breakpoints via aspect-ratio so only the
   width needs to change per breakpoint). */
.showcase-marquee-track .showcase-card--poster { width: 280px; aspect-ratio: 2 / 3; }

/* "S'abonner" CTA on every Films & Séries poster — always visible (not
   hover-revealed), top-right corner so it never overlaps the bottom
   title gradient. Links to the existing on-page #pricing anchor (the
   homepage already renders section-pricing.php further down) — no new
   URL. A real <a> inside a native overflow-x:auto track, so it stays
   clickable through the auto-scroll/drag without any JS intervention. */
.showcase-card-subscribe {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	background: #E50914;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
	box-shadow: 0 2px 10px rgba(0,0,0,0.4);
	transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.showcase-card-subscribe:hover {
	background: #ff1a28;
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(229,9,20,0.5);
}

/* Row-level info badges (genre / quality) — see the PHP comment above
   this markup for why these two specifically and nothing else. */
.showcase-info-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}
.showcase-info-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	/* Neutral surface, not the brand-blue tint: these are quiet info
	   chips, not secondary CTAs — keeping them visually distinct from
	   the blue "Essai gratuit"/"Voir les formules" buttons elsewhere on
	   the page so they read as discreet metadata, not another action. */
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted-text);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Row 2 hero tier — 3 large, ALWAYS-FIXED cards (TV en direct, Sport en
   direct, Divertissement): no scroll, no auto-movement, all three
   always visible. Full-bleed width (not the standard 1240px .container)
   so each card can reach the ~450-480px target on desktop — 3 columns
   of a genuinely wide track naturally land there without a magic
   number. CSS-only hover (no click, no JS): hovering one card scales
   it up with a glowing ring to full opacity; .showcase-hero-grid:hover
   dims every card first, then the individual :hover rule (same
   specificity, declared after) wins back to opacity:1 + scale only on
   the one actually under the pointer. */
.showcase-hero-grid-wrap { padding-inline: var(--container-padding); max-width: 1560px; margin-inline: auto; }
.showcase-hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.showcase-card--hero { aspect-ratio: 16 / 9; }
.showcase-card-title--hero { font-size: 1.2rem; padding: 48px 22px 22px; }
.showcase-card-title--hero .showcase-card-title-underline { width: 40px; margin-top: 9px; }
@media (hover: hover) {
	.showcase-hero-grid:hover .showcase-card--hero { opacity: 0.6; }
	.showcase-hero-grid .showcase-card--hero:hover {
		opacity: 1;
		transform: scale(1.05);
		box-shadow: 0 0 0 2px rgba(96,165,250,0.8), 0 24px 48px rgba(0,0,0,0.6);
		z-index: 2;
	}
}
@media (prefers-reduced-motion: reduce) {
	.showcase-card--hero { transition: opacity var(--transition-base); }
	.showcase-hero-grid .showcase-card--hero:hover { transform: none; }
}
@media (max-width: 899px) {
	/* Touch-appropriate fallback, not hover-dependent: a swipeable
	   single-card-at-a-time row. Only one card is ever prominent in
	   this layout by construction, so no JS tap-to-highlight is needed
	   to satisfy "touch interaction, not relying on hover". */
	.showcase-hero-grid {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.showcase-hero-grid::-webkit-scrollbar { display: none; }
	.showcase-card--hero { flex: 0 0 auto; width: 340px; scroll-snap-align: center; }
}

/* Row 2 secondary tier — 5 smaller cards, FIXED single row on desktop
   (no carousel, no scroll — wraps to a responsive grid on narrower
   widths instead of scrolling, since "fixed" was explicit). */
.showcase-secondary-grid-wrap { padding-inline: var(--container-padding); max-width: 1400px; margin-inline: auto; margin-top: 28px; }
.showcase-secondary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.showcase-card--channel { aspect-ratio: 16 / 9; }
@media (hover: hover) {
	.showcase-card--channel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
@media (max-width: 1100px) {
	.showcase-secondary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
	.showcase-secondary-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 782px) {
	.showcase-marquee-track .showcase-card--poster { width: 200px; }
	.streaming-showcase { padding-block: 48px 40px; }
	.showcase-tv-section { padding-block: 48px 40px; }
}
@media (max-width: 480px) {
	.showcase-marquee-track { gap: 18px; }
	.showcase-marquee-track .showcase-card--poster { width: 160px; }
	.showcase-card--hero { width: 260px; }
	/* Smaller poster box (160px) needs a smaller badge so it doesn't
	   crowd the card corner or overlap the title below it. */
	.showcase-card-subscribe { padding: 4px 9px; font-size: 0.64rem; top: 7px; right: 7px; }
	.showcase-info-badge { font-size: 0.7rem; padding: 5px 11px; }
}

/* Scroll-reveal: assets/js/main.js's initScrollReveal() adds .reveal to
   section headers and grid cards on load, then .is-visible once each one
   scrolls into view (once only). Staggered per grid-child so a row doesn't
   all pop in on the same frame. */
/* --reveal-offset lets one section ask for a different travel distance
   (e.g. .devices-grid wants 18px, not 28px) via a plain custom-property
   declaration, instead of a competing higher-specificity transform
   override — see components.css's devices section for why that approach
   broke the devices hover effect. Every section that doesn't set the
   var keeps today's exact 28px via the fallback. */
.reveal { opacity: 0; transform: translateY(var(--reveal-offset, 28px)); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Guide des programmes (EPG) demo page */
.epg-disclaimer { text-align: center; color: var(--muted-text); max-width: 640px; margin: -24px auto 40px; }
.epg-channel-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
}
.epg-channel-card h3 { margin-bottom: 16px; }
.epg-schedule { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.epg-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.epg-status {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--muted-text);
}
.epg-row--now .epg-status { background: var(--primary-blue); color: #fff; }
.epg-row--past { opacity: 0.55; }
.epg-title { flex: 1; font-weight: 600; }
.epg-row--now .epg-title { font-weight: 700; }
.epg-time { flex-shrink: 0; color: var(--muted-text); font-size: 0.85rem; }
.epg-cta { text-align: center; margin-top: 48px; }

/* Custom Section — free, theme-native stand-in for ACF Flexible Content
   (see inc/cpt-custom-sections.php). Two layout families: a centered
   text block (with or without a coloured CTA-banner background), and a
   two-column split (image + copy, either side). */
/* Text colour inside .section--dark / .section--surface is already
   handled by the global `.section--dark h2/h3/p` cascade (layout.css) —
   these rules only set layout, not colour, so dark/surface/light all
   inherit the right contrast automatically. */
.custom-section-centered { max-width: 720px; margin-inline: auto; text-align: center; }
.custom-section-centered h2 { margin-bottom: 8px; }
.custom-section-subtitle { font-size: 1.05rem; font-weight: 600; color: var(--muted-text); margin: 0 0 16px; }
.custom-section-body { margin-bottom: 20px; }
.custom-section-body p:last-child { margin-bottom: 0; }

.custom-section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.custom-section--text-image-left .custom-section-split { direction: rtl; }
.custom-section--text-image-left .custom-section-copy,
.custom-section--text-image-left .custom-section-media { direction: ltr; }
.custom-section-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.custom-section-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.custom-section-copy h2 { margin-bottom: 8px; }
@media (max-width: 900px) {
	.custom-section-split { grid-template-columns: 1fr; }
	.custom-section--text-image-left .custom-section-split { direction: ltr; }
}

/* /compatibilite/ device cards — reuses .feature-card as the base box. */
.device-compat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.device-compat-status--ok { background: rgba(22,163,74,0.1); color: var(--success); }
.device-compat-rows { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.device-compat-rows li { font-size: 0.92rem; color: var(--text); }
.device-compat-rows strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted-text); font-weight: 700; margin-bottom: 2px; }
