/* My89 Mes envies 0.3.0 — identité officielle : bleu #003366, jaune #ffff99. */
:root{color-scheme:light;--brand:#003366;--navy:#08294e;--yellow:#ffff99;--bg:#f4f6f9;--ink:#172a3e;--muted:#58677a;--line:#dce4ec;--white:#fff;--green:#23753c;--radius:20px;--shadow:0 12px 35px #0b315513;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.45}button,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #1675bd;outline-offset:3px}[hidden]{display:none!important}.nx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nx-header{background:var(--brand);color:white;border-bottom:0}.nx-header-inner{max-width:1120px;margin:auto;padding:8px 24px;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px}.nx-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.nx-brand:hover{text-decoration:none}.nx-brand img{display:block;width:151px;height:auto}.nx-brand-tag{font-size:21px;font-weight:850;letter-spacing:-.05em;line-height:1;border-left:1px solid #ffffff66;padding-left:13px}.nx-brand-tag span{color:var(--yellow)}.nx-back{font-size:13px;font-weight:650;color:white;white-space:nowrap}.nx-back span{color:var(--yellow);margin-left:3px}.nx-shell{max-width:1120px;margin:0 auto;padding:24px 24px 18px}.nx-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}.nx-eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--brand);margin:0 0 7px;display:flex;align-items:center;gap:7px}.nx-live-dot{height:8px;width:8px;background:#339900;border-radius:50%;box-shadow:0 0 0 4px #33990017}.nx-intro h1{font-size:clamp(30px,5vw,47px);line-height:1.04;letter-spacing:-.055em;color:var(--brand);margin:0 0 7px;font-weight:850}.nx-subtitle{margin:0;color:var(--muted);font-size:15px}.nx-count{border:1px solid var(--line);background:white;border-radius:999px;padding:9px 14px;white-space:nowrap;color:var(--brand);font-weight:750;font-size:13px}.nx-panel{border:1px solid var(--line);background:white;border-radius:var(--radius);box-shadow:var(--shadow)}.nx-filters{padding:14px 16px;margin-bottom:17px}.nx-periods{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 9px}.nx-periods button{background:#edf2f7;border:1px solid transparent;color:var(--brand);padding:8px 13px;border-radius:999px;font-weight:650;white-space:nowrap;font-size:13px;flex-shrink:0}.nx-periods button[aria-pressed=true]{background:var(--brand);color:#fff}.nx-filter-row{display:flex;align-items:end;gap:12px}.nx-filter-row label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.nx-filter-row label span{font-size:11px;color:var(--muted);font-weight:700}.nx-filter-row select{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;width:100%;padding:9px 10px;font-size:13px;text-overflow:ellipsis}.nx-text-button{color:var(--brand);background:transparent;border:0;padding:7px 3px;font-size:12px;font-weight:700;text-decoration:none}.nx-text-button:not(:disabled):hover{text-decoration:underline}.nx-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:13px;background:#e8eef5;width:max-content;margin:0 0 17px}.nx-tabs button{border:0;background:transparent;color:var(--brand);border-radius:9px;padding:9px 16px;font-weight:750;font-size:14px}.nx-tabs button[aria-pressed=true]{background:white;box-shadow:0 2px 7px #10304c16}.nx-tabs span,.nx-pill{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--yellow);color:var(--brand);font-size:12px;margin-left:4px;font-weight:800}.nx-workspace{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(0,1fr);gap:22px;align-items:start}.nx-discovery{min-width:0}.nx-deck-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.nx-deck-heading>div{flex:1;max-width:65%}.nx-small{font-size:12px;color:var(--muted);font-weight:700}.nx-progress{height:4px;background:#dae3ed;border-radius:99px;margin-top:5px;overflow:hidden}.nx-progress span{display:block;height:100%;width:0;background:var(--brand);transition:width .25s}.nx-surprise{font-size:13px;white-space:nowrap}.nx-surprise span{font-size:18px;color:var(--nx-keep,#2e8000);vertical-align:-1px}.nx-deck{position:relative;min-width:0}.nx-event{background:white;border:1px solid #d5dfe9;border-radius:24px;overflow:hidden;box-shadow:0 13px 28px #00336617;position:relative;touch-action:pan-y;transition:transform .18s ease,opacity .18s ease;will-change:transform}.nx-event.nx-dragging{transition:none;user-select:none;cursor:grabbing}.nx-event.nx-out{opacity:0}.nx-card-visual{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#eaf0f6;min-height:175px;height:clamp(175px,28vw,240px);isolation:isolate}.nx-card-visual.nx-has-image{background:#edf0f3}.nx-card-visual img{width:100%;height:100%;object-fit:contain;display:block}.nx-card-visual.nx-graphic{align-items:flex-end;justify-content:flex-start;background:linear-gradient(125deg,#003366 0%,#124f86 100%);color:white;padding:22px}.nx-graphic[data-tone="warm"]{background:linear-gradient(135deg,#003366,#7c4c2b)}.nx-graphic[data-tone="green"]{background:linear-gradient(135deg,#003366,#16604e)}.nx-graphic[data-tone="purple"]{background:linear-gradient(135deg,#003366,#594279)}.nx-graphic::before{content:"";position:absolute;z-index:-1;width:245px;height:245px;right:-40px;top:-65px;border:34px solid #ffffff13;border-radius:50%}.nx-graphic::after{content:"";position:absolute;z-index:-1;width:165px;height:165px;right:-5px;top:-25px;border:1px solid #ffffff2e;border-radius:50%}.nx-graphic-copy{position:relative;max-width:85%}.nx-graphic-copy small{color:#ffff99;font-size:10px;letter-spacing:.15em;font-weight:800;display:block;margin-bottom:5px}.nx-graphic-copy strong{display:block;max-width:390px;font-size:clamp(25px,4vw,36px);line-height:1.12;letter-spacing:-.035em;font-weight:820}.nx-graphic-mark{position:absolute;right:18px;bottom:15px;font-size:26px;font-weight:800;letter-spacing:-.07em;opacity:.72}.nx-top-label{position:absolute;left:12px;top:12px;background:var(--yellow);color:var(--brand);font-size:11px;font-weight:850;letter-spacing:.02em;border-radius:999px;padding:6px 10px;box-shadow:0 2px 5px #0001}.nx-card-body{padding:17px 20px 19px;min-height:190px}.nx-card-category{color:#416384;font-size:11px;font-weight:750;letter-spacing:.07em;margin:0 0 5px}.nx-card-pre{color:var(--muted);font-size:13px;margin:0 0 2px}.nx-card-title{color:var(--brand);font-size:clamp(22px,3vw,30px);letter-spacing:-.035em;line-height:1.14;margin:0 0 10px;overflow-wrap:anywhere}.nx-meta{display:grid;gap:4px;margin:0 0 11px;font-size:14px;color:var(--ink)}.nx-meta>div{display:flex;gap:8px;align-items:flex-start;overflow-wrap:anywhere}.nx-meta-symbol{color:#5d7186;flex:0 0 16px;text-align:center;line-height:1.4}.nx-date{color:var(--green);font-weight:750}.nx-detail-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.nx-detail{color:var(--brand);font-size:14px;font-weight:800;padding:5px 0}.nx-detail:hover{text-decoration:underline}.nx-share{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;color:var(--brand);font-size:12px;font-weight:650}.nx-decisions{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;margin-top:13px}.nx-decisions button{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;min-height:54px;font-weight:800;font-size:16px;border:1px solid var(--line);box-shadow:0 5px 12px #00336609}.nx-pass{color:var(--brand);background:white}.nx-like{background:var(--yellow);color:var(--brand);border-color:#e4e47b!important}.nx-action-icon{font-size:29px;font-weight:500;line-height:1}.nx-like:hover{background:#fff58b}.nx-pass:hover{background:#e8f0f8}.nx-deck-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px}.nx-swipe-tip{color:var(--muted);font-size:11px}.nx-sidebar{padding:25px}.nx-sidebar h2{color:var(--brand);font-size:27px;line-height:1.1;letter-spacing:-.04em;margin:4px 0 12px}.nx-sidebar p{font-size:14px;color:var(--muted);margin:0 0 12px}.nx-sidebar h3{margin:0 0 12px;color:var(--brand);font-size:18px}.nx-side-divider{height:1px;background:var(--line);margin:20px 0}.nx-privacy-note{font-size:12px!important}.nx-privacy-note strong{display:block;color:var(--brand);margin-bottom:4px}.nx-outline,.nx-primary{display:inline-flex;align-items:center;justify-content:center;text-align:center;border-radius:10px;padding:10px 15px;border:1px solid #bfcedf;color:var(--brand);background:#fff;font-size:13px;font-weight:750;min-height:41px}.nx-primary{background:var(--brand);color:#fff;border-color:var(--brand)}.nx-outline:hover{background:#edf3f9}.nx-primary:hover{background:#0b457b;text-decoration:none}.nx-sidebar .nx-outline{width:100%;margin-top:10px}.nx-preview-item{display:flex;align-items:flex-start;gap:8px;padding:9px 0;border-bottom:1px solid #edf1f6;line-height:1.3;color:var(--brand);font-weight:700;font-size:13px}.nx-preview-item small{display:block;color:var(--muted);font-weight:500;margin-top:3px}.nx-preview-item>span{color:#947c00}.nx-empty{text-align:center;padding:32px 20px;background:#fff;border:1px dashed #c3d0dd;border-radius:20px}.nx-empty h2{font-size:24px;color:var(--brand);margin:0 0 8px;line-height:1.2}.nx-empty p{color:var(--muted);margin:0 0 16px;font-size:14px}.nx-empty .nx-primary,.nx-empty .nx-outline{margin:3px}.nx-saved{padding:24px}.nx-saved-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.nx-saved-heading h2{margin:0;color:var(--brand);font-size:28px;letter-spacing:-.035em}.nx-saved-heading p:not(.nx-eyebrow){font-size:14px;color:var(--muted);margin:4px 0 0}.nx-saved-list{display:grid;gap:10px}.nx-saved-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:13px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px}.nx-thumb{width:72px;height:72px;display:grid;place-items:center;background:var(--brand);color:var(--yellow);border-radius:9px;overflow:hidden;font-size:26px}.nx-thumb img{width:100%;height:100%;object-fit:contain;background:#eef2f6}.nx-saved-item h3{font-size:16px;color:var(--brand);margin:0 0 3px;line-height:1.2;overflow-wrap:anywhere}.nx-saved-item p{font-size:12px;color:var(--muted);margin:0 0 4px}.nx-saved-item a{font-size:12px;font-weight:750;color:var(--brand)}.nx-remove{border:1px solid var(--line);background:white;color:var(--brand);border-radius:50%;width:38px;height:38px;font-size:22px;line-height:1}.nx-privacy-box{margin:20px 0 6px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f2f6fa;padding:16px;border:1px solid var(--line);border-radius:13px}.nx-privacy-box h3{font-size:14px;color:var(--brand);margin:0 0 5px}.nx-privacy-box p{font-size:12px;color:var(--muted);margin:0;max-width:660px}.nx-switch{position:relative;flex:0 0 48px;display:flex;align-items:center;cursor:pointer}.nx-switch input{position:absolute;width:48px;height:26px;margin:0;opacity:0;cursor:pointer}.nx-switch>span:not(.nx-sr-only){width:48px;height:26px;background:#a5b2bf;border-radius:99px;pointer-events:none;position:relative}.nx-switch>span:not(.nx-sr-only)::after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:white;transition:transform .15s}.nx-switch input:checked+span{background:var(--brand)}.nx-switch input:checked+span::after{transform:translateX(22px)}.nx-switch input:focus-visible+span{outline:3px solid #1675bd;outline-offset:3px}.nx-clear{display:block;margin:4px 0 18px;text-align:left}.nx-status{min-height:18px;margin:9px 0;color:var(--brand);font-size:12px;font-weight:650}.nx-notice{font-size:12px;color:var(--muted)}.nx-footer{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid var(--line);padding:14px 0;font-size:11px;color:var(--muted)}.nx-footer span{margin-right:auto}.nx-footer a{color:var(--brand);font-weight:700}
@media(max-width:800px){.nx-workspace{grid-template-columns:minmax(0,1fr)}.nx-sidebar{display:none}.nx-shell{max-width:620px}.nx-card-visual{height:clamp(145px,45vw,230px)}.nx-intro{align-items:flex-start}.nx-count{display:none}.nx-intro h1{font-size:37px}.nx-card-body{min-height:0}.nx-saved{padding:16px}}
@media(max-width:480px){.nx-header-inner{padding:6px 13px;min-height:61px}.nx-brand{gap:9px}.nx-brand img{width:120px}.nx-brand-tag{font-size:19px;padding-left:9px}.nx-back{font-size:11px}.nx-shell{padding:17px 12px 10px}.nx-intro{margin-bottom:13px}.nx-eyebrow{font-size:9px;margin-bottom:5px}.nx-intro h1{font-size:33px}.nx-subtitle{font-size:13px;max-width:340px}.nx-filters{padding:9px 10px;margin-bottom:11px;border-radius:15px}.nx-periods{margin-right:-4px;padding-bottom:7px}.nx-periods button{font-size:12px;padding:7px 11px}.nx-filter-row{gap:7px;flex-wrap:wrap}.nx-filter-row label{flex:1 1 43%}.nx-filter-row label span{font-size:10px}.nx-filter-row select{font-size:12px;padding:8px 5px}.nx-filter-row>.nx-text-button{flex:0 0 100%;text-align:right;padding:0 1px;font-size:10px}.nx-tabs{margin-bottom:10px;width:100%;padding:3px}.nx-tabs button{flex:1;font-size:13px;padding:7px 6px}.nx-deck-heading{margin-bottom:7px}.nx-small{font-size:11px}.nx-surprise{font-size:12px}.nx-event{border-radius:19px}.nx-card-visual{height:clamp(140px,40vw,180px)}.nx-card-visual.nx-graphic{padding:15px}.nx-graphic-copy strong{font-size:25px}.nx-graphic-mark{font-size:22px;right:12px;bottom:10px}.nx-card-body{padding:13px 14px 12px}.nx-card-title{font-size:23px;margin-bottom:7px}.nx-card-category{font-size:10px;margin-bottom:4px}.nx-card-pre{font-size:12px}.nx-meta{font-size:13px;gap:3px;margin-bottom:7px}.nx-decisions{margin-top:9px;gap:8px}.nx-decisions button{min-height:50px;font-size:14px;border-radius:12px}.nx-action-icon{font-size:25px}.nx-deck-foot .nx-text-button{font-size:11px}.nx-swipe-tip{font-size:10px}.nx-saved-heading{align-items:flex-start;flex-direction:column}.nx-saved-heading h2{font-size:24px}.nx-saved-item{grid-template-columns:50px minmax(0,1fr) auto;gap:8px;padding:8px}.nx-thumb{width:50px;height:60px}.nx-saved-item h3{font-size:14px}.nx-privacy-box{padding:12px}.nx-footer{gap:8px 14px}.nx-footer span{flex-basis:100%}.nx-status{margin:5px 0}}
@media(max-width:340px){.nx-brand img{width:104px}.nx-brand-tag{font-size:17px}.nx-back{font-size:10px}.nx-swipe-tip{display:none}.nx-saved-item{grid-template-columns:minmax(0,1fr) auto}.nx-thumb{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.nx-share-dialog{border:1px solid var(--line);border-radius:16px;padding:20px;max-width:min(500px,92vw);color:var(--ink);box-shadow:0 12px 50px #00336640}.nx-share-dialog::backdrop{background:#00336675}.nx-share-dialog h2{color:var(--brand);margin:0 0 8px}.nx-share-dialog p{font-size:14px;color:var(--muted)}.nx-share-dialog textarea{display:block;width:100%;margin-bottom:12px;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;resize:vertical}
/* Commandes accessibles au pouce sur les petits écrans. */
.nx-filter-toggle{display:none}.nx-footer .nx-footer-privacy{margin-right:0}
@media(max-width:600px){
 .nx-header-inner{min-height:56px}.nx-intro{margin-bottom:10px}.nx-intro h1{font-size:30px}.nx-subtitle{font-size:12px}.nx-shell{padding-top:12px;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 .nx-filters{padding:9px 10px 5px}.nx-periods{padding-bottom:4px}.nx-filter-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:7px 2px 6px;font-size:12px;color:var(--brand)}.nx-filter-toggle>span:first-child{overflow-wrap:anywhere}.nx-filter-toggle[aria-expanded=true]>span:last-child{transform:rotate(180deg)}.nx-filter-row{display:none}.nx-filter-row.nx-expanded{display:flex;padding-bottom:5px}
 .nx-card-visual.nx-graphic{height:124px;min-height:124px}.nx-card-visual.nx-has-image{height:clamp(150px,43vw,200px);min-height:150px}.nx-graphic-copy small{font-size:9px}.nx-graphic-copy strong{font-size:23px}.nx-card-category{line-height:1.25}.nx-card-body{padding-bottom:12px}.nx-card-title{font-size:22px}
 .nx-decisions{position:fixed;z-index:10;left:0;right:0;bottom:0;margin:0 auto;max-width:620px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#f4f6f9;border-top:1px solid var(--line);box-shadow:0 -4px 20px #00336612}.nx-decisions button{min-height:50px}
 .nx-footer .nx-footer-privacy{flex-basis:100%}.nx-deck-foot{margin-top:7px}
}


/* Version 0.2.1 — retour aux proportions de la V0.1 et cartes compactes. */
.nx-intro h1{font-weight:650;letter-spacing:-.035em;font-size:40px}
.nx-eyebrow{letter-spacing:0;font-size:12px;font-weight:650}
.nx-card-category{letter-spacing:0;font-weight:650}
.nx-header-inner,.nx-shell{max-width:1120px}
.nx-workspace{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:20px}
.nx-event{display:grid;grid-template-columns:minmax(0,1fr) 165px;grid-template-areas:"body visual";gap:14px;padding:18px;border-radius:16px;box-shadow:0 6px 20px #0033660c;touch-action:pan-y}
.nx-card-body{grid-area:body;min-height:0;padding:0;min-width:0;display:flex;flex-direction:column}
.nx-card-heading{min-width:0}
.nx-card-title{font-size:30px;font-weight:700;letter-spacing:-.025em;line-height:1.16}
.nx-card-visual,.nx-card-visual.nx-has-image,.nx-card-visual.nx-graphic{grid-area:visual;width:100%;height:auto;min-height:0;align-self:start;border-radius:9px;overflow:hidden;padding:0;background:#fff;isolation:isolate}
.nx-card-visual.nx-has-image img{display:block;width:auto;height:auto;max-width:100%;max-height:250px;object-fit:contain;object-position:center;border-radius:7px}
.nx-card-visual.nx-graphic{min-height:155px;align-items:flex-end;justify-content:flex-start;padding:12px;background:linear-gradient(140deg,#003366,#124f86);color:#fff}
.nx-card-visual.nx-graphic[data-tone="warm"]{background:linear-gradient(140deg,#003366,#7c4c2b)}
.nx-card-visual.nx-graphic[data-tone="green"]{background:linear-gradient(140deg,#003366,#16604e)}
.nx-card-visual.nx-graphic[data-tone="purple"]{background:linear-gradient(140deg,#003366,#594279)}
.nx-graphic-copy{max-width:100%;width:100%;padding-bottom:20px}
.nx-graphic-copy small{font-size:11px;letter-spacing:0;font-weight:600}
.nx-graphic-copy strong{font-size:18px;line-height:1.2;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
.nx-graphic-city{font-size:11px;margin-top:8px;overflow-wrap:anywhere}
.nx-graphic-mark{font-size:20px;bottom:8px;right:10px}
.nx-top-label{position:static;display:inline-flex;align-items:center;margin:0 0 7px;background:#edf5e6;border:1px solid #cfe0bf;color:#31751d;box-shadow:none;padding:2px 8px;letter-spacing:0;font-size:11px;font-weight:700}
.nx-card-category,.nx-card-pre{overflow-wrap:anywhere}
.nx-meta>div>span:last-child{min-width:0;overflow-wrap:anywhere}
.nx-detail-row{margin-top:auto}
.nx-sidebar h2{font-size:25px;font-weight:700}
.nx-sidebar .nx-eyebrow{font-size:12px;font-weight:650;margin-bottom:6px;color:var(--muted)}
.nx-panel{box-shadow:0 6px 20px #0033660b}
.nx-filters{margin-bottom:14px}
.nx-tabs{margin-bottom:14px}
/* Un a deux pixels de plus sur ordinateur, pas de changement global d'echelle. */
@media(min-width:801px){
 .nx-subtitle{font-size:16px}
 .nx-back,.nx-count,.nx-periods button,.nx-filter-row select,.nx-surprise{font-size:14px}
 .nx-filter-row label span,.nx-small,.nx-text-button{font-size:13px}
 .nx-tabs button,.nx-meta,.nx-detail,.nx-sidebar p{font-size:15px}
 .nx-card-category{font-size:12px}
 .nx-card-pre,.nx-share,.nx-preview-item,.nx-outline,.nx-primary{font-size:14px}
 .nx-swipe-tip,.nx-footer{font-size:12px}
 .nx-decisions button{font-size:16px}
}
@media(min-width:801px) and (max-width:960px){
 .nx-workspace{grid-template-columns:minmax(0,1fr)}
 .nx-sidebar{display:none}
}
@media(max-width:800px){
 .nx-workspace{grid-template-columns:minmax(0,1fr)}
 .nx-event{grid-template-columns:minmax(0,1fr);grid-template-areas:none;padding:14px;gap:8px}
 .nx-event.nx-with-poster{grid-template-columns:minmax(0,1fr) clamp(90px,28vw,140px);grid-template-areas:"heading visual" "meta meta" "actions actions";column-gap:12px}
 .nx-event:not(.nx-with-poster){grid-template-areas:"heading" "meta" "actions"}
 .nx-card-body{display:contents}
 .nx-card-heading{grid-area:heading;align-self:start}
 .nx-card-title{font-size:23px;margin-bottom:3px}
 .nx-card-visual.nx-has-image{align-self:start;justify-self:end;max-width:100%;border-radius:7px}
 .nx-card-visual.nx-has-image img{max-height:180px}
 .nx-card-visual.nx-graphic{display:none}
 .nx-meta{grid-area:meta;margin:0 0 3px;gap:4px;font-size:14px}
 .nx-detail-row{grid-area:actions;margin:0}
 .nx-card-category{font-size:11px;margin-bottom:4px}
 .nx-card-pre{font-size:12px}
 .nx-top-label{font-size:10px;margin-bottom:5px}
 .nx-intro h1{font-size:33px}
}
@media(max-width:600px){
 .nx-intro h1{font-size:30px}
 .nx-eyebrow{font-size:10px}
 .nx-card-title{font-size:22px}
 .nx-event{padding:13px;border-radius:16px}
 .nx-event.nx-with-poster{grid-template-columns:minmax(0,1fr) clamp(76px,27vw,112px);column-gap:10px}
 .nx-card-visual.nx-has-image img{max-height:150px}
 .nx-meta{font-size:13px}
 .nx-detail{font-size:13px}
 .nx-share{font-size:12px}
 .nx-footer{padding-bottom:6px}
 .nx-shell{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
}

/* Version 0.2.2 — confort tactile et sélection à la manière de My89. */
/* Autorise le pincement pour l'accessibilité, sans zoom au double toucher.
   La carte conserve le défilement vertical et son geste horizontal JS. */
html,body{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,select,input,label{touch-action:manipulation}
.nx-event{touch-action:pan-y pinch-zoom}
/* Une carte en mouvement ne doit jamais élargir le document. */
html,body{overflow-x:clip}
@supports not (overflow:clip){html{overflow-x:hidden}.nx-deck{overflow:hidden}}
.nx-shell,#next-app,.nx-discovery,.nx-saved,.nx-saved-list,.nx-saved-item,.nx-saved-copy{min-width:0}
.nx-deck-heading>div{min-width:0}
.nx-event img{max-width:100%}
.nx-deck,.nx-saved{scroll-margin-top:calc(12px + env(safe-area-inset-top,0px))}

/* Mes envies : texte à gauche, vraie affiche à droite uniquement pour les Top Agenda.
   Les actions occupent toute la largeur, aucun espace réservé à une image absente. */
.nx-saved-item{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "actions";align-items:start;gap:7px 12px;padding:13px 15px}
.nx-saved-item.nx-saved-with-poster{grid-template-columns:minmax(0,1fr) 84px;grid-template-areas:"copy poster" "actions poster";align-items:start}
.nx-saved-copy{grid-area:copy;min-width:0;align-self:start}
.nx-saved-copy h3,.nx-saved-copy p{overflow-wrap:anywhere;word-break:normal}
.nx-saved-copy p{margin:4px 0 0}
.nx-saved-actions{grid-area:actions;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;align-self:end}
.nx-saved-actions a{padding:7px 0;overflow-wrap:anywhere}
.nx-saved-actions .nx-remove{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;height:auto;min-height:36px;border-radius:9px;padding:6px 9px;margin-left:auto;font-size:12px;font-weight:650;line-height:1.2}
.nx-saved-actions .nx-remove span{font-size:20px;line-height:1}
.nx-saved-poster{grid-area:poster;display:flex;justify-content:flex-end;align-items:flex-start;align-self:start;min-width:0;width:100%;border-radius:7px}
.nx-saved-poster img{display:block;width:auto;height:auto;max-width:100%;max-height:125px;object-fit:contain;object-position:top right;border-radius:6px}
@media(min-width:801px){
 .nx-saved-item.nx-saved-with-poster{grid-template-columns:minmax(0,1fr) 110px}
 .nx-saved-poster img{max-height:150px}
 .nx-saved-item h3{font-size:16px}
 .nx-saved-copy p,.nx-saved-actions a,.nx-saved-actions .nx-remove{font-size:14px}
}
@media(max-width:600px){
 /* Les cinq périodes restent visibles : retour à la ligne au lieu du défilement. */
 .nx-periods{flex-wrap:wrap;overflow:visible;margin-right:0;gap:5px;padding:2px 0 4px}
 .nx-periods button{flex:1 0 auto;min-height:35px;padding:6px 9px;font-size:12px}
 .nx-filter-row select{font-size:16px}
 .nx-filter-row label{flex:1 1 43%;min-width:0}
 .nx-filter-toggle>span:first-child{min-width:0}
 .nx-tabs button{min-width:0}
 .nx-saved{padding:13px}
 .nx-saved-item{padding:12px;gap:6px 10px}
 .nx-saved-item.nx-saved-with-poster{grid-template-columns:minmax(0,1fr) clamp(62px,22vw,88px)}
 .nx-saved-item h3{font-size:14px}
 .nx-saved-copy p,.nx-saved-actions a{font-size:12px}
 .nx-saved-poster img{max-height:115px}
 .nx-saved-actions .nx-remove{min-height:40px}
 .nx-share-dialog textarea{font-size:16px}
 .nx-deck-heading{gap:7px}
 .nx-deck-foot>*{min-width:0}
 .nx-swipe-tip{text-align:right}
 /* En mode Mes envies, ne réserve plus l'espace des boutons de swipe. */
 .nx-shell.nx-view-saved{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}
@media(max-width:340px){
 .nx-saved{padding:10px}
 .nx-saved-item.nx-saved-with-poster{grid-template-columns:minmax(0,1fr) 60px}
 .nx-saved-item{padding:9px;gap:6px 8px}
 .nx-saved-poster img{max-height:100px}
 .nx-periods button{padding-left:7px;padding-right:7px}
}

/* V0.2.3 : identité publique, actions et compteur.
   Rouge du logo #ff3030, vert My89 #339900 : variantes foncées pour
   un contraste de texte blanc supérieur à 4,5:1. */
:root{--nx-red:#d12626;--nx-red-hover:#b91f1f;--nx-keep:#2e8000;--nx-keep-hover:#246700;--nx-counter:#287b00}
.nx-decisions button.nx-pass,.nx-saved-actions .nx-remove{background:var(--nx-red);color:#fff;border-color:var(--nx-red)}
.nx-decisions button.nx-like{background:var(--nx-keep);color:#fff;border-color:var(--nx-keep)}
.nx-decisions button.nx-pass:not(:disabled):hover,.nx-saved-actions .nx-remove:hover{background:var(--nx-red-hover);border-color:var(--nx-red-hover)}
.nx-decisions button.nx-like:not(:disabled):hover{background:var(--nx-keep-hover);border-color:var(--nx-keep-hover)}
#remaining{display:block;color:var(--nx-counter);font-size:16px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.nx-progress span{background:var(--nx-keep)}
/* L'image occupe seulement le haut de la fiche. Les actions s'alignent
   sur la largeur totale : Retirer toujours au bord droit. */
.nx-saved-item.nx-saved-with-poster{grid-template-areas:"copy poster" "actions actions"}
.nx-saved-actions{width:100%;justify-content:space-between;align-items:center}
.nx-saved-actions .nx-remove{margin-left:auto;flex-shrink:0;white-space:nowrap}
@media(min-width:801px){#remaining{font-size:17px}}
@media(max-width:600px){#remaining{font-size:14px}.nx-deck-heading>div{max-width:none}.nx-surprise{flex-shrink:0}}
@media(max-width:340px){#remaining{font-size:13px}}

/* V0.2.4 : menu commun fixe de My89. Sa propre feuille de style gère
   son espacement ; ne pas recouvrir une fiche lors du défilement automatique. */
.nx-deck,.nx-saved{scroll-margin-top:calc(var(--my89-header-offset,0px) + 12px + env(safe-area-inset-top,0px))}


/* V0.2.6 : sobriété et couleurs des textes de My89 classique.
   Références : style-site-public-my89-2025-v1.css et my89-event-card-v1.css.
   Le menu, les dimensions, le geste tactile et les couleurs des actions restent inchangés. */
.nx-shell{--nx-text:#222;--ink:#222;--muted:#60646c;--green:#339900;color:var(--ink)}
.nx-intro h1,.nx-card-title,.nx-sidebar h3,.nx-saved-heading h2,
.nx-saved-item h3,.nx-empty h2,.nx-privacy-box h3{color:var(--nx-text)}
.nx-card-category,.nx-meta-symbol{color:var(--muted)}
.nx-card-pre,.nx-date{color:var(--green)}
.nx-meta .nx-place{color:#5b625e}
.nx-meta .nx-access{color:var(--muted)}
.nx-detail,.nx-saved-item a,.nx-footer a{color:var(--nx-text)}
.nx-detail,.nx-saved-actions a{text-decoration:underline;text-underline-offset:3px}
.nx-count,.nx-tabs button,.nx-tabs span,.nx-pill,.nx-text-button,
.nx-share,.nx-outline,.nx-preview-item,.nx-status{color:var(--nx-text)}
.nx-periods button:not([aria-pressed=true]){color:var(--nx-text)}
/* Ne pas modifier le blanc des boutons actifs ni des actions rouge et verte. */
.nx-primary{color:#fff}
.nx-preview-item>span{color:var(--nx-keep)}
/* Le texte utilise toute la largeur en l'absence de vraie affiche. */
@media(min-width:801px){
 .nx-event:not(.nx-with-poster){grid-template-columns:minmax(0,1fr);grid-template-areas:"body"}
}
.nx-card-visual.nx-graphic{display:none!important}
.nx-intro{align-items:center}
.nx-intro h1{margin-bottom:0}
.nx-sidebar h3{margin-top:0}
/* Une ligne de commandes sous la carte, le rappel peut revenir à la ligne
   dans sa propre colonne sur les petits écrans. */
.nx-deck-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 14px}
.nx-deck-foot #undo{flex:0 1 auto;text-align:left}
.nx-deck-foot .nx-swipe-tip{display:block;flex:0 1 auto;text-align:right;line-height:1.35;max-width:60%;min-width:0;color:var(--muted)}
@media(max-width:600px){
 .nx-deck-foot{align-items:flex-start}
 .nx-deck-foot .nx-swipe-tip{font-size:11px;padding-top:7px;max-width:54%}
}

/* V0.2.7 — Carte principale : contour vert-gris du champ de recherche
   de My89 classique, ombre portee douce. Aucun changement de proportions. */
.nx-event{border:2px solid #718b7f;background:#fff;box-shadow:0 6px 19px rgba(0,51,102,.14),0 2px 5px rgba(0,0,0,.07)}
