/* ==========================================================================
   Agenda de Mon espace sur le Mac au style d'Apple (carte systeme 583, 30/11/2026) : agenda-mac.jsx. Rendu seulement sous la
   barre neuve du Mac (?barre), dans Mon espace (notes-app.jsx, EcranOutil). Version LARGE de l'Agenda de l'iPhone, facon
   Calendrier d'Apple sur le Mac : le mois en grand a gauche (une case par jour, ses lignes dedans), les listes de l'iPhone a
   droite (Aujourd'hui, En retard, le jour choisi). 1rem = 13, le corps de macOS, par html.na-pc (Mon espace).
   Jetons --a-* seulement ; Papier toujours (jamais de mode sombre, Tito 30/11). Cartes du Mac : rayon 12, lisere d'un
   demi-point (convention, section 4). Aucun texte d'aide, rien au survol.
   ========================================================================== */
.agm{max-width:1200px;margin:0 auto;padding:6px 0 72px;color:var(--a-t1);font-family:var(--a-police);font-size:1rem;line-height:1.294;
  letter-spacing:0;font-feature-settings:"kern";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  -webkit-user-select:none;user-select:none}
.agm *,.agm *::before,.agm *::after{box-sizing:border-box;-webkit-user-drag:none}
.agm :where(button,a){font-family:inherit;color:inherit;letter-spacing:inherit}
.agm :where(button){cursor:default}
.agm :focus{outline:none}
.agm :focus-visible{outline:3px solid color-mix(in srgb,var(--a-bleu) 55%,transparent);outline-offset:-3px}
.agm-attente{display:flex;justify-content:center;padding:72px 0}

/* ---------- deux colonnes : le mois en grand, puis les listes de l'iPhone ---------- */
.agm-cols{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:16px 18px;align-items:start}
@media (max-width:1180px){.agm-cols{grid-template-columns:minmax(0,1fr)}}

/* ---------- la carte du mois (carte du Mac : rayon 12, titre dedans, comme Finances) ---------- */
.agm-carte{position:relative;min-width:0;border-radius:12px;background:var(--a-carte);
  box-shadow:0 0 0 .5px var(--a-filet-fort),0 1px 2px rgba(17,17,17,.04);overflow:hidden;isolation:isolate}
.agm-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:9px 12px 7px 16px}
.agm-mois{font-size:1.154rem;font-weight:700;letter-spacing:-.2px;font-variant-numeric:tabular-nums}
.agm-sem{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.agm-sem span{padding:0 10px 5px;text-align:right;font-size:max(10px,.846rem);font-weight:600;color:var(--a-t2)}
.agm-grille{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.agm-j,.agm-v{min-height:96px;border:0;border-top:1px solid var(--a-filet);margin:0;background:var(--a-carte)}
.agm-j:not(:nth-child(7n+1)),.agm-v:not(:nth-child(7n+1)){border-left:1px solid var(--a-filet)}
.agm-j{display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:4px 5px 6px;font:inherit;text-align:left;
  transition:background-color .2s}
.agm-j:active{background:var(--a-appui);transition:none}
.agm-j--choisi{background:color-mix(in srgb,var(--a-t1) 4%,var(--a-carte))}
.agm-n{align-self:flex-end;display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;
  font-size:max(10px,1rem);font-weight:600;font-variant-numeric:tabular-nums}
.agm-j--we .agm-n{color:var(--a-t2)}
.agm-j--choisi .agm-n{background:var(--a-t1);color:var(--a-fond);font-weight:700}
.agm-j--auj .agm-n{background:var(--a-rouge);color:#fff;font-weight:700}

/* une ligne dans sa case : la couleur de son origine (les points de l'iPhone), le titre sur une ligne */
.agm-ev{display:flex;align-items:center;gap:5px;min-width:0;padding:1px 6px;border-radius:5px;
  background:color-mix(in srgb,var(--c) 13%,var(--a-carte));font-size:max(10px,.923rem);font-weight:500;line-height:1.35}
.agm-ev i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--c)}
.agm-ev-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agm-plus{padding:0 6px;font-size:max(10px,.846rem);color:var(--a-t2)}

/* ---------- les listes de l'iPhone (Sect, Grp, LigneAg inchangees), a la largeur de leur colonne ---------- */
.agm-listes{min-width:0}
.agm-listes .a-sect{margin-left:4px;margin-right:4px}
.agm-listes > .a-sect:first-child{margin-top:3px}
.agm-listes .a-grp{margin-left:0;margin-right:0}
