/* ===== Apps Calendrier, Horloge, Rappels, Crypto, Actualités ===== */
.xa-body { padding-bottom: 46px; }
.xa-hint { color: var(--muted); font-size: 14px; padding: 4px 16px 8px; }
.xa-chev svg { width: 16px; height: 16px; fill: var(--muted); opacity: .6; transform: rotate(180deg); display: block; }
.btn[disabled], .clk-rb[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Calendrier ---------- */
.cal-wrap.wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.cal-month { background: var(--card); border-radius: 18px; padding: 12px 10px 10px; margin-bottom: 20px; }
.cal-mhead { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.cal-mname { font-size: 22px; letter-spacing: -.3px; color: var(--muted); }
.cal-mname b { color: var(--text); font-weight: 700; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.cal-nav button:active { background: rgba(120,120,128,.16); }
.cal-nav svg { width: 22px; height: 22px; fill: var(--red); }
.cal-nav .next svg { transform: rotate(180deg); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-wd span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; }
.cal-wd span.we { opacity: .7; }
.cal-cell { aspect-ratio: 1 / 1; max-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; font-size: 18px; }
.cal-cell span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; transition: background .15s; }
.cal-cell.we span { color: var(--muted); }
.cal-cell.today span { color: var(--red); font-weight: 700; }
.cal-cell.sel span { background: var(--text); color: var(--bg); font-weight: 700; }
.cal-cell.sel.today span { background: var(--red); color: #fff; }
.cal-cell i { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.cal-cell.cal-blank { pointer-events: none; }
.cal-ev { gap: 10px; }
.row.cal-ev + .row::before, .row.cal-add + .row::before { left: 14px; }
.cal-ev-time { width: 52px; flex-shrink: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-ev-time small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cal-ev-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--red); flex-shrink: 0; min-height: 22px; }
.cal-ev .r-title { font-size: 16px; }
.cal-ev .r-sub { font-size: 14px; }
.cal-ev .r-sub b { font-weight: 600; color: var(--text); opacity: .75; }
.cal-ev-plus { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,69,58,.12); display: grid; place-items: center; flex-shrink: 0; }
.cal-ev-plus svg { width: 18px; fill: var(--red); }
.cal-add-l { color: var(--red); font-size: 15px; font-weight: 600; }

/* ---------- Horloge ---------- */
.clk-app .app-body { padding-bottom: 20px; }
.xa-tabbar { display: flex; justify-content: space-around; padding: 6px 8px 24px; border-top: 1px solid var(--line); background: var(--card); backdrop-filter: blur(20px); flex-shrink: 0; }
.xa-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); min-width: 64px; }
.xa-tabbar svg { width: 26px; height: 26px; fill: currentColor; }
.xa-tabbar button.on { color: #ff9f0a; }
.clk-city { gap: 14px; padding: 12px 14px; cursor: default; }
.row.clk-city + .row::before { left: 72px; }
.clk-city .r-sub { font-size: 13px; }
.clk-city .r-title { font-size: 20px; font-weight: 500; }
.clk-city.game .r-title { color: #ff9f0a; font-weight: 600; }
.clk-big { font-size: 38px; font-weight: 300; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.clk-face { width: 46px; height: 46px; flex-shrink: 0; }
.clk-face circle:first-child { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: .6; }
.clk-face .tk line, .clk-face .hd line { stroke: #1c1c1e; }
.clk-face .ct { fill: #ff9f0a; }
.clk-face.night circle:first-child { fill: #1c1c1e; stroke: rgba(255,255,255,.12); }
.clk-face.night .tk line, .clk-face.night .hd line { stroke: #f5f5f7; }
.dark .clk-face:not(.night) circle:first-child { stroke: none; }
.clk-al { cursor: pointer; }
.row.clk-al + .row::before { left: 14px; }
.clk-al-time { font-size: 46px; font-weight: 300; letter-spacing: -1px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.clk-al.off .clk-al-time, .clk-al.off .r-sub { color: var(--muted); }
.clk-sw, .clk-tm { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.clk-digits { font-size: 74px; font-weight: 200; letter-spacing: -2px; font-variant-numeric: tabular-nums; padding: 30px 0 34px; }
.clk-digits.sm { font-size: 50px; padding: 0; letter-spacing: -1px; }
.clk-btns { width: 100%; display: flex; justify-content: space-between; padding: 0 6px 22px; }
.clk-rb { width: 82px; height: 82px; border-radius: 50%; font-size: 15px; font-weight: 600; position: relative; }
.clk-rb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--bg); }
.clk-rb.grey { background: rgba(120,120,128,.22); color: var(--text); }
.clk-rb.green { background: rgba(48,209,88,.2); color: #1fa846; }
.clk-rb.red { background: rgba(255,69,58,.18); color: var(--red); }
.clk-rb.orange { background: rgba(255,159,10,.2); color: #e08600; }
.dark .clk-rb.green { color: var(--green); }
.dark .clk-rb.orange { color: #ff9f0a; }
.clk-laps { width: 100%; }
.clk-laps .row { cursor: default; padding: 10px 14px; }
.clk-laps .row + .row::before { left: 14px; }
.clk-laps .r-main { font-size: 16px; }
.clk-lap-t { font-size: 16px; font-variant-numeric: tabular-nums; }
.clk-laps .best { color: var(--green); }
.clk-laps .worst { color: var(--red); }
.clk-pick { display: flex; gap: 10px; width: 100%; justify-content: center; padding: 26px 0 18px; }
.clk-pick label { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 16px; padding: 10px 12px; }
.clk-pick select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 40px; font-weight: 300; font-variant-numeric: tabular-nums; outline: none; text-align: center; cursor: pointer; padding: 0 2px; }
.clk-pick select option { font-size: 16px; color: #111; }
.clk-pick span { font-size: 15px; font-weight: 600; color: var(--muted); }
.clk-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 0 34px; }
.clk-presets .chip { font-weight: 600; padding: 7px 13px; }
.clk-ring { position: relative; width: 250px; height: 250px; margin: 6px 0 34px; }
.clk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clk-ring circle { fill: none; stroke-width: 9; }
.clk-ring .bg { stroke: rgba(120,120,128,.2); }
.clk-ring .fg { stroke: #ff9f0a; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.clk-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.clk-end { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; font-weight: 500; }
.clk-end svg { width: 15px; fill: currentColor; }

/* ---------- Rappels ---------- */
.rem-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.rem-cards.wide { grid-template-columns: repeat(4, 1fr); }
.rem-card { background: var(--card); border-radius: 14px; padding: 10px 12px 9px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; row-gap: 6px; }
.rem-card:active { opacity: .7; }
.rem-ci { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.rem-ci svg { width: 18px; fill: #fff; }
.rem-card b { font-size: 26px; font-weight: 700; line-height: 1; align-self: center; font-variant-numeric: tabular-nums; }
.rem-card span { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--muted); }
.rem-li { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.rem-li svg { width: 18px; fill: #fff; }
.rem-lrow .r-title { font-weight: 500; }
.row.rem-lrow + .row::before { left: 58px; }
.rem-title { font-size: 32px; font-weight: 700; letter-spacing: -.5px; padding: 0 4px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.rem-title span { font-size: 26px; font-weight: 600; }
.rem-tasks { background: var(--card); }
.rem-task { align-items: flex-start; gap: 12px; padding: 11px 14px; }
.row.rem-task + .row::before { left: 50px; }
.rem-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(120,120,128,.45); flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; transition: background .2s, border-color .2s; }
.rem-check svg { width: 15px; fill: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.rem-check.on { background: var(--c); border-color: var(--c); }
.rem-check.on svg { opacity: 1; transform: none; }
.rem-task .r-title { font-size: 16px; font-weight: 400; white-space: normal; }
.rem-task .r-sub { font-size: 14px; white-space: normal; }
.rem-task .late { color: var(--red); }
.rem-task.done .r-title { color: var(--muted); }
.rem-toggle { display: block; margin: 12px auto 0; color: var(--accent); font-size: 15px; }
.rem-add { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; padding: 10px 20px 30px; background: var(--bg); flex-shrink: 0; text-align: left; }
.rem-add span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.rem-add svg { width: 18px; fill: #fff; }

/* ---------- Crypto ---------- */
.cr-wrap.wide { max-width: 640px; margin: 0 auto; }
.cr-port { border-radius: 22px; padding: 18px 18px 16px; margin-bottom: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #8b6cff 0%, #4a2fd1 45%, #1a0f5c 100%); box-shadow: 0 10px 28px rgba(74,47,209,.28); }
.cr-port-l { font-size: 14px; font-weight: 600; opacity: .8; }
.cr-port-v { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.cr-port-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.cr-port-s > span:last-child { opacity: .8; }
.cr-port .cr-pill.up, .cr-port .cr-pill.down { background: rgba(255,255,255,.18); color: #fff; }
.cr-pill { display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-pill.up { background: rgba(48,209,88,.16); color: #1fa846; }
.cr-pill.down { background: rgba(255,69,58,.14); color: var(--red); }
.dark .cr-pill.up { color: var(--green); }
.cr-row { gap: 10px; }
.row.cr-row + .row::before { left: 62px; }
.cr-ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.cr-ic span { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .2px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cr-ic.big { width: 50px; height: 50px; }
.cr-ic.big span { font-size: 14px; }
.cr-row .r-title { font-size: 16px; }
.cr-row .r-sub { font-size: 13px; }
.cr-spark { width: 64px; height: 28px; flex-shrink: 0; }
.cr-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cr-base { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; vector-effect: non-scaling-stroke; }
.cr-px { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 86px; }
.cr-px b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.cr-name { font-size: 22px; font-weight: 700; }
.cr-big { font-size: 40px; font-weight: 700; letter-spacing: -1px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.cr-chg { font-size: 16px; font-weight: 600; padding: 0 4px 10px; }
.cr-chg span { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.cr-chart { position: relative; height: 170px; margin: 0 0 16px; padding: 10px 0; }
.cr-axis { position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); pointer-events: none; text-align: right; }
.cr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cr-buy { background: var(--green); }
.cr-stats { margin-bottom: 22px; }
.cr-stats .row { cursor: default; padding: 12px 14px; }
.cr-stats .row + .row::before { left: 14px; }
.cr-stats .r-main { font-size: 16px; }
.cr-stats .r-meta { font-size: 16px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-tx { cursor: default; }
.cr-txi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(120,120,128,.16); }
.cr-txi svg { width: 17px; fill: var(--text); }
.cr-txi.sell { background: rgba(48,209,88,.16); }
.cr-txi.sell svg { fill: var(--green); }
.cr-tx .r-title { font-size: 15px; font-weight: 500; }
.cr-tx .r-sub { font-size: 13px; }
.cr-tx .r-meta { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Actualités ---------- */
.nw-app { --serif: "New York", Georgia, "Times New Roman", serif; }
.nw-date { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; padding: 0 4px 12px; margin-top: -4px; }
.nw-wrap.wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.nw-hero { background: var(--card); border-radius: 20px; overflow: hidden; margin-bottom: 22px; cursor: pointer; }
.nw-hero:active, .nw-row:active { opacity: .8; }
.nw-hero-img { aspect-ratio: 16 / 10; background: rgba(120,120,128,.15); }
.nw-hero-img img, .nw-thumb img, .nw-read-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-hero-img.broken, .nw-thumb.broken, .nw-read-img.broken { display: none; }
.nw-hero-txt { padding: 14px 16px 16px; }
.nw-kicker { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #d7262e; margin-bottom: 6px; }
.dark .nw-kicker { color: #ff5f57; }
.nw-hero h2 { font-family: var(--serif); font-size: 24px; line-height: 1.18; font-weight: 700; letter-spacing: -.2px; margin-bottom: 8px; }
.nw-hero p { font-size: 15px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.nw-meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.nw-meta b { color: var(--text); font-weight: 700; }
.nw-sec { font-size: 20px; font-weight: 700; padding: 0 4px 8px; }
.nw-row { align-items: flex-start; gap: 12px; padding: 12px 14px; }
.row.nw-row + .row::before { left: 14px; }
.nw-h { font-family: var(--serif); font-size: 17px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-by { font-size: 12px; color: var(--muted); margin-top: 4px; }
.nw-thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(120,120,128,.15); }
.nw-more { margin-top: 14px; }
.nw-read { padding: 4px 4px 20px; }
.nw-read.wide { max-width: 600px; margin: 0 auto; }
.nw-read h1 { font-family: var(--serif); font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
.nw-byline { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.nw-byline b { color: var(--text); font-weight: 600; }
.nw-read-img { border-radius: 16px; overflow: hidden; margin-bottom: 18px; aspect-ratio: 16 / 10; background: rgba(120,120,128,.15); }
.nw-text p { font-family: var(--serif); font-size: 17px; line-height: 1.55; margin-bottom: 14px; user-select: text; }
.nw-text p:first-child::first-letter { font-size: 44px; float: left; line-height: .9; padding: 4px 6px 0 0; font-weight: 700; color: #d7262e; }
.dark .nw-text p:first-child::first-letter { color: #ff5f57; }
