/* Minute Cosmik : charte de la chaîne (violet #492B82, violet nuit #22124A, jaune soleil #FFC814, blanc chaud #FFFAEB) */
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/Montserrat-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Knewave'; src: url('assets/fonts/Knewave-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --violet: #492B82; --nuit: #22124A; --jaune: #FFC814; --blanc: #FFFAEB; --noir: #0C0A08;
  --fond: #0E0824; --carte: rgba(255, 250, 235, 0.06); --carte2: rgba(255, 250, 235, 0.10); --bord: rgba(255, 250, 235, 0.14);
  --texte: #FFFAEB; --muet: rgba(255, 250, 235, 0.62); --ok: #5FE3A1; --alerte: #FF6B6B; --bleu: #7EC8FF;
  --radius: 18px; --tabs: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fond); color: var(--texte); font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; background: radial-gradient(1200px 700px at 50% -10%, #3a2170 0%, var(--nuit) 35%, var(--fond) 75%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 72% 9%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 36% 42%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 88% 33%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 54% 61%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 18% 78%, #fff 60%, transparent 61%), radial-gradient(1.5px 1.5px at 81% 72%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 61% 88%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 5% 55%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 94% 94%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 44% 5%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 27% 95%, #fff 60%, transparent 61%);
  background-size: 420px 520px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 16px 10px; background: linear-gradient(to bottom, rgba(14, 8, 36, .95), rgba(14, 8, 36, .75)); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bord); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--jaune); }
.brand b { display: block; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.brand small { display: block; color: var(--muet); font-size: 11.5px; }
.iconbtn { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.iconbtn:active { background: var(--carte2); }

.view { position: relative; z-index: 1; padding: 14px 16px calc(var(--tabs) + var(--safe-b) + 24px); max-width: 720px; margin: 0 auto; }
.loading { color: var(--muet); text-align: center; padding: 40px 0; }
h1 { font-size: 24px; font-weight: 800; margin: 6px 0 12px; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--jaune); margin: 22px 0 10px; }
h2 small { color: var(--muet); font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 8px; font-size: 12px; }
p { line-height: 1.5; margin: 0 0 10px; }
.muet { color: var(--muet); }
.small { font-size: 12.5px; }
.punch { font-family: 'Knewave', cursive; font-size: 34px; line-height: 1; letter-spacing: .5px; }
.punch .l2 { display: inline-block; background: var(--jaune); color: var(--nuit); padding: 2px 10px; transform: rotate(-3deg); margin-top: 6px; }

.card { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.card.hero { background: linear-gradient(145deg, rgba(73, 43, 130, .75), rgba(34, 18, 74, .55)); border-color: rgba(255, 200, 20, .35); }
.card.hero p { font-size: 15.5px; line-height: 1.55; }
.card.accent { border-color: rgba(255, 200, 20, .45); }
.card.cover { padding: 0; overflow: hidden; }
.card.cover img { width: 100%; height: 150px; object-fit: cover; }
.card.cover .in { padding: 14px 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 12px 14px; min-height: 92px; }
.tile .k { color: var(--muet); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.tile .v { font-size: 22px; font-weight: 800; margin: 4px 0 2px; line-height: 1.1; }
.tile .v.big { font-family: 'Knewave', cursive; font-size: 30px; font-weight: 400; }
.tile .s { color: var(--muet); font-size: 12px; line-height: 1.35; }
.place { display: inline-flex; align-items: center; gap: 6px; background: var(--carte); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.place svg { width: 16px; height: 16px; stroke: var(--jaune); fill: none; stroke-width: 2; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--bord); background: var(--carte2); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn.primary { background: var(--jaune); color: var(--nuit); border-color: var(--jaune); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--bord); background: var(--carte); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--jaune); color: var(--nuit); border-color: var(--jaune); }
.search { width: 100%; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; outline: none; margin-bottom: 8px; }
.search::placeholder { color: var(--muet); }
input[type=text], input[type=search] { width: 100%; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 12px; padding: 10px 12px; font: inherit; outline: none; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.vcard { display: block; background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; }
.vcard .thumb { position: relative; aspect-ratio: 9 / 16; background: linear-gradient(160deg, var(--violet), var(--nuit)); overflow: hidden; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-family: 'Knewave', cursive; font-size: 24px; line-height: 1.05; color: var(--jaune); text-shadow: 0 2px 0 var(--noir); }
.vcard .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(12, 10, 8, .75); border-radius: 8px; padding: 3px 7px; font-size: 11.5px; font-weight: 700; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { background: rgba(12, 10, 8, .7); border-radius: 8px; padding: 3px 7px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.badge.yt { background: #e62117; color: #fff; }
.badge.en { background: var(--bleu); color: var(--nuit); }
.badge.anim { background: var(--jaune); color: var(--nuit); }
.vcard .vt { padding: 9px 10px 11px; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .vcard { flex: 0 0 132px; }
.hscroll .vcard .vt { font-size: 12px; -webkit-line-clamp: 2; }

.player { position: relative; width: min(100%, 420px); margin: 0 auto 12px; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--bord); }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player .soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(160deg, var(--violet), var(--nuit)); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { color: var(--bleu); font-size: 13px; font-weight: 600; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: flex-start; background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 12px 14px; }
.item .day { flex: 0 0 52px; text-align: center; background: var(--carte2); border-radius: 12px; padding: 6px 4px; }
.item .day b { display: block; font-size: 20px; line-height: 1; }
.item .day small { display: block; color: var(--muet); font-size: 11px; text-transform: uppercase; margin-top: 3px; }
.item .t { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.item .d { color: var(--muet); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.item .type { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--jaune); margin-bottom: 3px; }
.month { color: var(--muet); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; margin: 16px 0 8px; }
.planet { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bord); }
.planet:first-child { border-top: 0; }
.planet .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 14px; box-shadow: 0 0 10px currentColor; }
.planet .n { font-weight: 800; }
.planet .w { color: var(--muet); font-size: 12.5px; line-height: 1.35; }
.moon { width: 56px; height: 56px; }

.gauge { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #4fd37e 0%, #ffd23f 45%, #ff8c42 70%, #ff4b4b 100%); position: relative; margin: 10px 0 6px; }
.gauge i { position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); border: 3px solid var(--nuit); transform: translateX(-50%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.scale { display: flex; justify-content: space-between; color: var(--muet); font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: 8px; }
.bars div { flex: 1; background: var(--bleu); border-radius: 3px 3px 0 0; min-height: 3px; opacity: .9; }
.bars div.p { opacity: .5; }
.bars div.hi { background: var(--alerte); }
.bars div.mid { background: var(--jaune); }
.barlabels { display: flex; justify-content: space-between; color: var(--muet); font-size: 11px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 8px; }
.kv div { font-size: 13px; color: var(--muet); }
.kv div b { display: block; color: var(--texte); font-size: 17px; font-weight: 800; }
details { border-top: 1px solid var(--bord); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: '+'; color: var(--jaune); font-weight: 800; font-size: 18px; }
details[open] summary::after { content: '–'; }
details p { margin-top: 8px; color: var(--muet); font-size: 14px; }
.status { font-size: 12px; color: var(--muet); margin-top: 8px; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 800; background: var(--carte2); }
.pill.ok { background: rgba(95, 227, 161, .18); color: var(--ok); }
.pill.warn { background: rgba(255, 200, 20, .2); color: var(--jaune); }
.pill.bad { background: rgba(255, 107, 107, .2); color: var(--alerte); }

.quiz .choice { display: block; width: 100%; text-align: left; background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 13px 14px; margin-bottom: 8px; font-weight: 600; cursor: pointer; }
.quiz .choice.ok { background: rgba(95, 227, 161, .2); border-color: var(--ok); }
.quiz .choice.ko { background: rgba(255, 107, 107, .2); border-color: var(--alerte); }
.quiz .choice[disabled] { cursor: default; }
.progress { height: 6px; background: var(--carte2); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; background: var(--jaune); }
.score { font-family: 'Knewave', cursive; font-size: 56px; color: var(--jaune); line-height: 1; text-align: center; margin: 10px 0; }

.switch { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--bord); }
.switch:first-of-type { border-top: 0; }
.switch label { font-weight: 600; }
.switch input { width: 44px; height: 26px; appearance: none; background: var(--carte2); border-radius: 999px; position: relative; cursor: pointer; border: 1px solid var(--bord); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); transition: .15s; }
.switch input:checked { background: var(--jaune); }
.switch input:checked::after { left: 21px; background: var(--nuit); }
.seg { display: inline-flex; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--jaune); color: var(--nuit); }
.results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.results button { text-align: left; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: rgba(14, 8, 36, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--bord); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muet); font-size: 11px; font-weight: 700; }
.tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--jaune); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muet); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + var(--safe-b) + 14px); transform: translateX(-50%); background: var(--jaune); color: var(--nuit); font-weight: 700; padding: 10px 16px; border-radius: 12px; z-index: 9; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.apod img { width: 100%; border-radius: 12px; max-height: 320px; object-fit: cover; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--bord); margin: 12px 0; }

/* ===== v0.2 : composants façon Sirius, aux couleurs de la chaîne ===== */
.btn svg, .chev svg, .place svg, .linkbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.btn.block { display: flex; width: 100%; padding: 13px 14px; font-size: 15px; }
.chev { color: var(--muet); display: inline-flex; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muet); text-decoration: underline; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.h3, h3 { font-size: 17px; font-weight: 800; margin: 4px 0 6px; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.view.full { padding: 0; max-width: none; }
body.mapmode { overflow: hidden; }
body.mapmode .stars { display: none; }
a.card, a.tile, a.item, a.planet { color: inherit; }
.planet .chev { margin-left: auto; }

/* Bandeau rotatif */
.banner { position: relative; min-height: 96px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--radius); overflow: hidden; }
.bslide { position: absolute; inset: 0; padding: 14px 16px 12px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity .5s; }
.bslide.on { opacity: 1; pointer-events: auto; position: relative; }
.bslide .bt { font-weight: 800; font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; padding-right: 14px; }
.dots { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--bord); }
.dots i.on { background: var(--jaune); }

/* Carrousel « Visible cette nuit » */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.cslide { flex: 0 0 62%; max-width: 260px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cslide b { font-size: 13.5px; letter-spacing: .6px; margin-top: 10px; }
.cslide span { color: var(--muet); font-size: 12.5px; }
.orb { width: 100%; aspect-ratio: 1; max-width: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3a7a, #160c34 70%); background-size: cover; background-position: center; box-shadow: 0 0 0 6px rgba(255,250,235,.05), 0 10px 40px rgba(0,0,0,.5); }
.orb.meteor { background: radial-gradient(circle at 50% 50%, #1b1442, #070418 75%); position: relative; }
.orb.meteor::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, transparent 38%, rgba(255,250,235,.9) 40%, transparent 43%), linear-gradient(140deg, transparent 58%, rgba(255,250,235,.6) 59%, transparent 61%), linear-gradient(130deg, transparent 22%, rgba(255,250,235,.5) 23%, transparent 25%); }
.orb.has-img.meteor::after { display: none; }
.orb.sm { width: 40px; height: 40px; flex: 0 0 40px; box-shadow: none; }
.orb.xs { width: 34px; height: 34px; flex: 0 0 34px; box-shadow: none; }
.orb.star { background: radial-gradient(circle, #fffaf0 0 12%, rgba(255,250,235,.25) 13%, transparent 60%), #160c34; }

/* Carte « Votre ciel » */
.skycard .split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--bord); margin-top: 10px; padding-top: 10px; text-align: center; }
.skycard .split > div + div { border-left: 1px solid var(--bord); }
.skycard .k { color: var(--muet); font-size: 12.5px; font-weight: 700; }
.bignum { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 4px 0; }

/* Détections */
.dets .dcard { flex: 0 0 170px; background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.dimg, .himg, .mimg, .nimg { background: linear-gradient(160deg, var(--violet), var(--nuit)); background-size: cover; background-position: center; }
.dimg { height: 96px; }
.din { padding: 10px 12px 12px; }
.din b { font-size: 13px; }
.din p { font-size: 12.5px; color: var(--muet); margin: 4px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.himg { height: 170px; }
.himg.tall { height: 230px; }
.card.det .in h3 { margin-top: 6px; }

/* Calendrier */
.cal { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--radius); padding: 10px 8px; margin-top: 12px; }
.cweek, .cgrid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cweek span { color: var(--muet); font-size: 11.5px; font-weight: 700; padding: 4px 0 8px; }
.cday { position: relative; display: grid; place-items: center; height: 42px; width: 42px; border-radius: 50%; font-weight: 700; font-size: 15px; margin: 1px auto; }
.cday.other { color: rgba(255,250,235,.3); }
.cday.today { box-shadow: inset 0 0 0 2px var(--jaune); }
.cday.sel { background: var(--jaune); color: var(--nuit); }
.cday i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; }
.cday i.ev { background: var(--jaune); }
.cday i.lu { background: rgba(255,250,235,.55); }
.cday.sel i { background: var(--nuit); }
a.iconbtn { text-decoration: none; font-size: 22px; font-weight: 700; }

/* Grilles « visible à l'œil nu / jumelles / télescope » */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vchip { display: flex; align-items: center; gap: 10px; background: linear-gradient(120deg, rgba(73,43,130,.55), rgba(34,18,74,.35)); border: 1px solid var(--bord); border-radius: 14px; padding: 8px 10px; min-width: 0; }
.vchip b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vchip span { display: block; color: var(--muet); font-size: 11.5px; }
.vchip .grow { min-width: 0; }
.vchip .obs, .vchip .tick { color: var(--ok); display: inline-flex; }
.vchip .obs svg, .vchip .tick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.vchip .tick { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bord); background: transparent; justify-content: center; align-items: center; cursor: pointer; flex: 0 0 28px; }
.vchip.done { border-color: rgba(95,227,161,.45); }
.vchip.done .tick { background: rgba(95,227,161,.18); border-color: var(--ok); }

/* Onglets segmentés larges */
.seg.wide { display: flex; width: 100%; }
.seg.wide > * { flex: 1; text-align: center; padding: 9px 6px; font-weight: 700; font-size: 13px; background: transparent; border: 0; color: inherit; cursor: pointer; }
.seg.wide > .on { background: var(--jaune); color: var(--nuit); }

/* Actualités, missions, lancements */
.hscroll.big .ncard { flex: 0 0 82%; max-width: 360px; }
.ncard { display: block; background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; overflow: hidden; }
.nimg { height: 150px; }
.nin { padding: 12px 14px 14px; }
.nin b { display: block; font-size: 16px; line-height: 1.3; margin: 4px 0 6px; }
.nin p { color: var(--muet); font-size: 13px; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nrow img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; flex: 0 0 92px; }
.launch img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 72px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.mimg { height: 100px; }
.min { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.min b { font-size: 13.5px; }
.min p { font-size: 12px; color: var(--muet); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.min .pill { align-self: flex-start; }

/* Fiche objet */
.objhead .in { padding-top: 12px; }

/* Profil, carnet */
.profile { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 14px; }
.avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; background: linear-gradient(145deg, var(--violet), var(--nuit)); border: 2px solid var(--jaune); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.stats { display: flex; gap: 16px; margin-top: 8px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 17px; }
.stats span { color: var(--muet); font-size: 11.5px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pcell { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--carte2); display: block; }
.pcell img { width: 100%; height: 100%; object-fit: cover; }
.pcell .ptext { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-weight: 700; font-size: 13px; }
.pcell span { position: absolute; left: 6px; bottom: 6px; background: rgba(12,10,8,.7); border-radius: 6px; padding: 2px 6px; font-size: 10.5px; font-weight: 700; }
.carnet-img { width: 100%; border-radius: 16px; max-height: 70vh; object-fit: contain; background: #000; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.form textarea, .form select, .form input { width: 100%; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 500; outline: none; }
.form select option { background: var(--nuit); }
.photo-pick { display: block; cursor: pointer; }
.preview { display: grid; place-items: center; min-height: 150px; border: 1px dashed var(--bord); border-radius: 14px; color: var(--muet); font-weight: 700; overflow: hidden; }
.preview span { display: inline-flex; gap: 8px; align-items: center; }
.preview svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.preview img { width: 100%; max-height: 360px; object-fit: contain; }
#ratios { margin-top: 10px; }
.list0 { padding: 0; }
.srow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--bord); }
.srow:first-child { border-top: 0; }
.srow b { font-size: 14.5px; }
label.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-weight: 600; }

/* Carte du ciel */
.sky { position: relative; width: 100%; overflow: hidden; background: #070418; touch-action: none; }
.sky-cv { position: absolute; inset: 0; display: block; }
.sky-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.sky.ar .sky-cam { display: block; }
.sky-time { position: absolute; right: 12px; top: 60px; font-size: 12px; font-weight: 700; color: var(--muet); background: rgba(14,8,36,.6); padding: 4px 8px; border-radius: 8px; }
.sky-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-around; background: rgba(14,8,36,.78); backdrop-filter: blur(10px); border: 1px solid var(--bord); border-radius: 18px; padding: 6px; }
.sky-btn { background: none; border: 0; color: var(--muet); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 4px 8px; cursor: pointer; }
.sky-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sky-btn.on { color: var(--jaune); }
.sky-chip { position: absolute; left: 12px; right: 12px; bottom: 82px; display: flex; align-items: center; gap: 10px; background: rgba(14,8,36,.9); border: 1px solid rgba(255,200,20,.5); border-radius: 14px; padding: 10px 12px; }
.sky-panel, .sky-search { position: absolute; left: 12px; right: 12px; bottom: 82px; background: rgba(14,8,36,.95); border: 1px solid var(--bord); border-radius: 16px; padding: 12px 14px; max-height: 60%; overflow: auto; }
.sky-search input { width: 100%; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 12px; padding: 10px 12px; font: inherit; outline: none; }
.sky-res { display: flex; flex-direction: column; margin-top: 6px; }
.sky-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--bord); color: inherit; text-align: left; padding: 10px 4px; cursor: pointer; }
.sky-panel input[type=range] { accent-color: #FFC814; }
[hidden] { display: none !important; }

/* Mode nuit : tout en rouge pour préserver la vision nocturne */
html.night body { filter: grayscale(1) sepia(1) saturate(7) hue-rotate(-45deg) brightness(.75); }
