/* 11 octobre 2026 — tout ce qui est « Ma note » sur fond #FFF8B8 (rgb 255, 248, 184), validé.
   Sur ce jaune, le texte et le dessin passent en encre foncée.
   Ne concerne pas les « Observations sur la journée » (#noteJ), qui sont autre chose. */

/* le post-it et son encre sont les mêmes dans les deux thèmes */
:root{
  --relief-note-fond:#FFF8B8;--relief-note-encre:#2b2300;
  --relief-note-indication:#6b5a1a;--relief-note-voir:#5e4c00;--relief-note-appui:rgba(120,95,0,.14)}
/* ce qui change d'un thème à l'autre : l'ombre du post-it, le cadre vide, la confirmation */
html[data-theme="clair"]{
  --relief-note-ombre:4px 6px 12px rgba(80,92,120,.35);
  --relief-note-vide-filet:#8a7a1c;--relief-note-vide-encre:#5e5000;
  --relief-note-confirmer-encre:#2a0f0d;--relief-note-oui:#b3261e}
html:not([data-theme="clair"]){
  --relief-note-ombre:4px 6px 12px rgba(0,0,0,.40);
  --relief-note-vide-filet:#e8d97a;--relief-note-vide-encre:#efe39a;
  --relief-note-confirmer-encre:#ffe3dd;--relief-note-oui:#c9372c}

/* la marque dans une ligne du mois, et la note écrite sous la journée */
.m.note{background:var(--relief-note-fond)!important; color:var(--relief-note-encre)!important; border-color:transparent!important}
.m.note svg{stroke:var(--relief-note-encre)!important}
.noteL{background:var(--relief-note-fond)!important; color:var(--relief-note-encre)!important; border-radius:8px; padding:4px 8px; display:inline-block}

/* le panneau en bas de la fiche, vide ou écrit */
.sheet-in .panel.maNote, .sheet-in .panel.maNote.vide{background:var(--relief-note-fond)!important; border:0!important}
.sheet-in .panel.maNote :is(h3,p), .sheet-in .panel.maNote.vide :is(h3,p){color:var(--relief-note-encre)!important}
/* le pied d'ombre est transparent en sombre : une règle pour les deux thèmes */
html:root .sheet-in .panel.maNote{box-shadow:var(--relief-ombre), var(--relief-pied)!important}

/* la fenêtre où on écrit sa note : l'encadré reste neutre, en relief comme les
   panneaux ; seul le champ d'écriture porte le jaune post-it, sans ombre intérieure (sans creux, 11/10) */
.np-boite{border:0!important; border-radius:18px!important}
html:root .np-boite{background:var(--relief-carte)!important; box-shadow:var(--relief-ombre), var(--relief-pied)!important}
html:not([data-theme="clair"]) .np-boite{--dim:var(--relief-gris-dim); --muted:var(--relief-gris-muted)}
.np-boite textarea{background:var(--relief-note-fond)!important;color:var(--relief-note-encre)!important;border:0!important;border-radius:12px!important;padding:14px 16px!important;line-height:1.5;box-shadow:none!important}
.np-boite textarea::placeholder{color:var(--relief-note-indication)}

/* la note perso sous la date (proposition A, retenue le 11/10) : plus de bouton en haut ni de
   cellule en bas. Vide : « + Ajouter une note perso » en pointillés ; écrite : le post-it, 3 lignes */
.sheet-in .notePJ{display:flex;gap:10px;align-items:flex-start;margin:10px 0 14px;padding:12px 6px 12px 14px;border-radius:14px;background:var(--relief-note-fond);color:var(--relief-note-encre);font-size:var(--t-courant);line-height:1.45}
html:root .sheet-in .notePJ{box-shadow:var(--relief-note-ombre)}
.sheet-in .notePJ svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sheet-in .notePJ .notePC{flex:1;min-width:0}
.sheet-in .notePJ .notePT{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sheet-in .notePJ.ouverte .notePT{display:block;-webkit-line-clamp:unset;overflow:visible}
.sheet-in .notePJ.vide{cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 12px;background:transparent!important;box-shadow:none!important;font-weight:600;font-size:var(--t-legende)}
html:root .sheet-in .notePJ.vide{border:1.5px dashed var(--relief-note-vide-filet);color:var(--relief-note-vide-encre)}
.sheet-in .notePJ:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.sheet-in .notePJ.vide svg{margin-top:0}
/* « Voir plus » et le crayon, à l'encre du post-it ; le crayon garde 44 px de toucher */
.sheet-in .notePJ .noteVoir{display:inline-flex;align-items:center;min-height:44px;margin:0 0 -12px;padding:0;border:0;background:none;color:var(--relief-note-voir);font:inherit;font-size:var(--t-legende);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sheet-in .notePJ .noteVoir[hidden]{display:none}
.sheet-in .notePJ .noteMod{flex:none;width:44px;height:44px;margin:-10px 0 -10px 0;border:0;border-radius:12px;background:none;color:var(--relief-note-encre);display:flex;align-items:center;justify-content:center;cursor:pointer}
.sheet-in .notePJ .noteMod svg{width:19px;height:19px;margin:0}
.sheet-in .notePJ .noteMod:active{background:var(--relief-note-appui)}
.sheet-in .notePJ :is(.noteVoir,.noteMod):focus-visible{outline:2px solid var(--relief-note-encre);outline-offset:2px}

/* supprimer la note (11/10) : le bouton à gauche, discret ; la confirmation remplace les boutons,
   dans la fenêtre même, sur le rouge franc des anomalies du mois */
.np-boite #npActions{display:flex;gap:10px}
.np-boite #npSuppr{margin-right:auto}
.np-boite [hidden]{display:none!important}
.np-confirme{border-radius:14px;padding:12px 14px}
.np-confirme p{margin:0 0 10px;font-weight:600;line-height:1.4}
.np-confirme .actions{display:flex;gap:10px;justify-content:flex-end}
/* le fond est le rouge de l'anomalie grave (relief.css) */
html:root .np-confirme{background:var(--relief-rouge);color:var(--relief-note-confirmer-encre)}
.np-confirme #npOui{border:0!important;color:#fff!important}
html:root .np-confirme #npOui{background:var(--relief-note-oui)!important}
html[data-theme="clair"] .np-confirme #npNon{color:var(--relief-note-confirmer-encre)}

/* le cadre vide est un vrai bouton (critique du 11/10) : il garde l'allure du pointillé */
.sheet-in button.notePJ.vide{font:inherit;font-weight:600;font-size:var(--t-legende);text-align:left;width:auto}
