/* ScienceActu · Surligneur · home */

/* Lead story + live feed */
.sa-lead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 52px); padding-top: 8px; }
.sa-lead-story { min-width: 0; }
.sa-lead-img { display: block; position: relative; overflow: hidden; border-radius: var(--r-l); aspect-ratio: 16 / 9; background: var(--sunk); }
.sa-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.sa-lead-img:hover img { transform: scale(1.02); }
.sa-lead-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(20px, 3vw, 40px); margin-top: 24px; align-items: start; }
.sa-lead-title { grid-column: 1 / -1; }
.sa-lead-title .sa-card-top { margin-bottom: 12px; }
.sa-lead-t { font-size: clamp(2.2rem, 1.1rem + 3.2vw, 3.9rem); font-weight: 820; font-stretch: 114%; letter-spacing: -0.03em; line-height: 1.02; }
.sa-lead-t a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.sa-lead-dek p { font: 400 var(--t-4)/1.62 var(--f-read); color: var(--ink-2); max-width: 56ch; }
.sa-lead-dek .sa-btn { margin-top: 22px; }
.sa-lead .sa-feed { padding-top: 4px; }
.sa-lead .sa-fil li:nth-child(n+8) { display: none; }

/* Question of the day: the marker as a surface */
.sa-qod { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: var(--sect); padding: clamp(28px, 5vw, 72px); border-radius: calc(var(--r-l) + 6px); background: var(--hl); color: var(--on-hl); }
.sa-qod-l { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--t-s); }
.sa-qod h2 { font-size: var(--t-1); font-weight: 820; font-stretch: 114%; line-height: 1.04; letter-spacing: -0.028em; margin-top: 14px; }
.sa-qod .sa-btn { margin-top: 28px; background: var(--on-hl); color: var(--hl); }
.sa-qod ol { display: grid; gap: 16px; counter-reset: q; }
.sa-qod li { counter-increment: q; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; font: 400 1.0625rem/1.5 var(--f-read); }
.sa-qod li::before { content: counter(q); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--on-hl); color: var(--hl); font: 800 0.95rem/1 var(--f-sans); }

/* Discipline index tiles */
.sa-disc-idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(18px, 2vw, 28px); }
.sa-idx { display: flex; flex-direction: column; gap: 14px; }
.sa-idx-art { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; padding: 16px; border-radius: var(--r-l); overflow: hidden; isolation: isolate; background: #0b1020; color: oklch(0.97 0.004 95); }
.sa-idx-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 800ms var(--ease); }
.sa-idx-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0.14 0.03 265 / 0) 50%, oklch(0.14 0.03 265 / 0.9)); }
.sa-idx-art:hover img { transform: scale(1.05); }
.sa-idx-name { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.sa-idx-name .sa-i { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: oklch(1 0 0 / 0.12); }
.sa-idx-name b { font-size: var(--t-4); }
.sa-idx-name small { font-size: var(--t-xs); color: oklch(0.8 0.01 262); }
.sa-idx-list { display: grid; }
.sa-idx-list a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 620; font-size: var(--t-s); line-height: 1.4; }
.sa-idx-list li:first-child a { border-top: 0; padding-top: 0; }
.sa-idx-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The Pass band */

@media (max-width: 1100px) {
	.sa-lead { grid-template-columns: 1fr; }
	.sa-lead .sa-fil li:nth-child(n+6) { display: none; }
}
@media (max-width: 900px) {
	.sa-lead-body { grid-template-columns: 1fr; }
	.sa-qod { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.sa-lead-img { border-radius: var(--r-m); aspect-ratio: 4 / 3; }
	.sa-lead-body { margin-top: 18px; gap: 18px; }
	.sa-disc-idx { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
	.sa-idx { scroll-snap-align: start; }
}

/* ==================================================== The Pass (membership)
   Light on purpose: the footer below is dark. Copy + configurator on the
   left, a deck of membership cards on the right. */
.sa-pass { --pass-glow: oklch(0.925 0.185 106 / 0.2); position: relative; margin-top: var(--sect); padding-block: clamp(64px, 8vw, 128px); overflow: hidden; background: radial-gradient(55% 65% at 82% 45%, var(--pass-glow), transparent 70%), var(--surface); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .sa-pass { --pass-glow: oklch(0.55 0.08 265 / 0.35); background-color: var(--chalk); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sa-pass { --pass-glow: oklch(0.55 0.08 265 / 0.35); background-color: var(--chalk); } }
.sa-pass-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.sa-pass-in > * { min-width: 0; }
.sa-pass-k { font-size: var(--t-s); font-weight: 750; color: var(--ink-2); }
.sa-pass-t { font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4.2rem); font-weight: 830; font-stretch: 114%; line-height: 1.02; letter-spacing: -0.032em; margin-top: 12px; max-width: 13ch; }
.sa-pass-lede { font: 400 var(--t-4)/1.6 var(--f-read); color: var(--ink-2); max-width: 48ch; margin-top: 18px; }

/* Tier picker: three segments with their price */
.sa-pass-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 34px; }
.sa-pass-bar-t { font-weight: 720; font-size: var(--t-ui); }
.sa-pass-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding: 6px; border-radius: 20px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.sa-pass-pick button { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left; transition: background var(--mid-t) var(--ease), box-shadow var(--mid-t), color var(--fast); }
.sa-pass-pick button span { font-weight: 760; font-size: var(--t-4); }
.sa-pass-pick button small { font-size: var(--t-s); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sa-pass-pick button:hover { background: color-mix(in oklch, var(--surface) 60%, transparent); }
.sa-pass-pick button[aria-selected="true"] { background: var(--surface); box-shadow: 0 6px 20px -8px oklch(0.2 0.02 262 / 0.25), inset 0 0 0 1.5px var(--ink); }
.sa-pass-pick [data-show][hidden] { display: none; }

.sa-pass-panel { margin-top: 26px; animation: sa-panel-in 420ms var(--ease); }
@keyframes sa-panel-in { from { opacity: 0; transform: translateY(6px); } }
.sa-pass-price { font-size: var(--t-ui); color: var(--ink-2); }
.sa-pass-price b { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); font-weight: 820; font-stretch: 106%; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.sa-pass-price em { display: block; font-style: normal; font-size: var(--t-s); font-weight: 650; color: var(--yes); margin-top: 2px; }
.sa-pass-price [data-show][hidden] { display: none; }
.sa-pass-perks { display: grid; gap: 10px; margin: 18px 0 26px; }
.sa-pass-perks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: var(--t-ui); line-height: 1.45; }
.sa-pass-perks .sa-i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--hl); color: var(--on-hl); stroke-width: 2.4; }
.sa-pass-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; }
.sa-pass-fine { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); }
.sa-pass-fine .sa-i { width: 14px; height: 14px; }

/* Monthly / yearly switch (light) */

/* The deck of membership cards */
.sa-pass-stage { position: relative; aspect-ratio: 1.3; perspective: 1400px; }
.sa-pass-stage .sa-mcard { position: absolute; left: 6%; top: 18%; width: 78%; cursor: pointer; }
/* deck positions (set by JS: front / mid / back) */
.sa-mcard.is-front { z-index: 3; transform: translate3d(0, 0, 0) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-4deg); }
.sa-mcard.is-front .sa-mcard-sheen { opacity: 1; }
.sa-mcard.is-mid { z-index: 2; transform: translate3d(14%, -16%, -80px) rotate(4deg) scale(0.92); filter: saturate(0.85) brightness(0.85); }
.sa-mcard.is-back { z-index: 1; transform: translate3d(24%, -30%, -160px) rotate(10deg) scale(0.84); filter: saturate(0.7) brightness(0.7); }
.sa-mcard.is-mid:hover, .sa-mcard.is-back:hover { filter: none; }
/* Only the front card carries text: the others show their art, never a half-hidden label. */
.sa-pass-stage .sa-mcard :is(.sa-mcard-brand, .sa-mcard-chip, .sa-mcard-n, .sa-mcard-no) { transition: opacity 400ms var(--ease); }
.sa-pass-stage .sa-mcard:not(.is-front) :is(.sa-mcard-brand, .sa-mcard-chip, .sa-mcard-n, .sa-mcard-no) { opacity: 0; }
.sa-pass:not([data-ready]) .sa-mcard:not([data-card="1"]) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sa-mcard { transition: none; } .sa-pass-panel { animation: none; } }

@media (max-width: 1000px) {
	.sa-pass-in { grid-template-columns: 1fr; }
	.sa-pass-stage { order: -1; width: min(100%, 520px); margin: 0 auto 12px; aspect-ratio: 1.32; }
	.sa-pass-stage .sa-mcard { left: 4%; top: 26%; width: 78%; }
}
@media (max-width: 560px) {
	.sa-pass-pick button { padding: 10px; }
	.sa-pass-pick button span { font-size: var(--t-ui); }
	.sa-pass-bar { flex-direction: column; align-items: stretch; }
	.sa-bill { display: flex; }
	.sa-bill button { flex: 1; justify-content: center; }
	.sa-pass-pick button small { font-size: var(--t-xs); }
	.sa-pass-panel .sa-btn { width: 100%; }
}
