/* Serena : rose poudré, doux, lisible. Les jetons suivent le thème clair ou sombre du téléphone. */
@font-face {
  font-family: "Jakarta";
  src: url(/static/fonts/PlusJakartaSans-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #FBF5F5; --carte: #FFFFFF; --texte: #3A2A31; --texte2: #7E6770;
  --accent: #C4577A; --accent2: #A83F62; --sur-accent: #FFFFFF; --doux: #F8E4EA; --ligne: #EFDFE4;
  --ok: #3F8A5F; --alerte: #C27A22; --danger: #B8433F; --bulle: #F3E2E7; --nav: #FFFFFF;
  --ombre: 0 8px 28px rgba(80, 30, 50, .10);
  --r: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #211B1E; --carte: #2C2428; --texte: #F5EBEE; --texte2: #B49CA5;
    --accent: #E68BA8; --accent2: #F0A6BD; --sur-accent: #2A1820; --doux: #3F2A34; --ligne: #3D3036;
    --ok: #7CC49A; --alerte: #E8AE63; --danger: #F08A84; --bulle: #382930; --nav: #2C2428;
    --ombre: 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--fond); color: var(--texte);
  font-family: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
}
body.fige { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.demarrage { min-height: 100vh; display: grid; place-items: center; }
.demarrage img { border-radius: 18px; animation: respire 1.6s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(.94); opacity: .7; } }
.noscript { padding: 24px; }

/* ---------------------------------------------------------------- coque */
.coque { min-height: 100vh; }
.cote { display: none; }
.page {
  max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(150px + env(safe-area-inset-bottom));
}
.bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.bas > * { pointer-events: auto; }
.capture {
  width: calc(100% - 32px); max-width: 528px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px; background: var(--carte); border: 1.5px dashed var(--accent);
  color: var(--texte2); font-size: 14.5px; box-shadow: var(--ombre); text-align: left;
}
.capture .ic { color: var(--accent); }
.onglets {
  width: 100%; display: flex; justify-content: space-around; background: var(--nav); border-top: 1px solid var(--ligne);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
}
.ong { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--texte2); min-width: 60px; }
.ong .ic { padding: 3px; box-sizing: content-box; border-radius: 12px; }
.ong.on { color: var(--accent); }
.ong.on .ic { background: var(--doux); }
.hors-ligne { background: var(--bulle); color: var(--texte2); border-radius: 12px; padding: 8px 12px; font-size: 13px; text-align: center; }

@media (min-width: 900px) {
  .coque { display: grid; grid-template-columns: 236px 1fr; }
  .cote {
    display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--nav); border-right: 1px solid var(--ligne); padding: 18px 12px;
  }
  .marque { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
  .marque img { border-radius: 10px; }
  .marque strong { display: block; font-size: 16px; }
  .marque small { color: var(--texte2); font-size: 12.5px; }
  .nv { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--texte2); width: 100%; }
  .nv:hover { background: var(--bulle); }
  .nv.on { background: var(--doux); color: var(--accent2); }
  .cote-cap { width: 100%; margin: auto 0 0; box-shadow: none; }
  .bas { display: none; }
  .page { max-width: 720px; padding: 26px 28px 60px; width: 100%; }
  .page.large { max-width: none; }
}

/* ---------------------------------------------------------------- en-tête */
.tete { display: flex; align-items: center; gap: 8px; padding: 8px 2px 2px; }
.tete-t { margin-right: auto; min-width: 0; }
.tete h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; text-wrap: balance; }
.salut { margin: 0 0 2px; color: var(--texte2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; text-transform: uppercase; }
.btn-rond { width: 38px; height: 38px; border-radius: 50%; background: var(--carte); border: 1px solid var(--ligne); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); flex: none; }
.lang button { font-size: 11px; font-weight: 700; letter-spacing: .05em; line-height: 1; padding: 7px 8px; border-radius: 999px; color: var(--texte2); }
.lang button.on { background: var(--accent); color: var(--sur-accent); }
.compteur { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; flex: none; }
.compteur small { font-size: 14px; color: var(--texte2); font-weight: 600; }
.mini { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--carte); border: 1px solid var(--ligne); }
.retour { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- blocs */
.bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 14px 16px; }
.bloc.doux { background: var(--doux); border-color: transparent; }
.bloc.auj { border-color: var(--accent); }
.bloc.pris { opacity: .85; }
.bloc-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.bloc h2 { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 7px; letter-spacing: -.005em; }
.bloc h2 .ic { color: var(--accent); }
.compte { font-size: 12px; color: var(--texte2); font-weight: 600; white-space: nowrap; }
.lien { font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.lien-simple { color: var(--accent); font-weight: 600; font-size: 14px; padding: 8px 0; text-align: center; }
.grand { font-size: 20px; font-weight: 700; margin: 2px 0; letter-spacing: -.01em; }
.sous { color: var(--texte2); font-size: 13px; margin: 4px 0 0; }
.vide { color: var(--texte2); font-size: 14px; margin: 6px 0; }
.erreur { color: var(--danger); font-size: 13.5px; margin: 0; }
.centre { text-align: center; }

.coche { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--ligne); }
.bloc-t + .coche, .rayon + .coche, .coche:first-child { border-top: 0; }
.rond { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ligne); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.coche.fait .rond { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.ct { flex: 1; font-size: 15px; min-width: 0; padding: 4px 0; overflow-wrap: anywhere; }
.coche.fait .ct { color: var(--texte2); text-decoration: line-through; }
.cn { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--texte2); text-decoration: none; }
.th { font-size: 12.5px; font-weight: 700; color: var(--accent2); white-space: nowrap; }
.qui { width: 22px; height: 22px; border-radius: 50%; background: var(--bulle); color: var(--texte2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; text-transform: uppercase; }
.ajout-ligne { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; padding: 10px 0 2px; }

.pst { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bulle); color: var(--texte2); white-space: nowrap; }
.pst.src { background: var(--doux); color: var(--accent2); }
.pst.alerte { background: color-mix(in srgb, var(--alerte) 18%, transparent); color: var(--alerte); }
.pst.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pst.on { background: var(--accent); color: var(--sur-accent); }
.pst.petit { padding: 2px 8px; font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .pst { font-size: 13.5px; padding: 8px 13px; }
.filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.filtres .pst { font-size: 13px; padding: 6px 12px; }

.ligne { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--ligne); font-size: 14.5px; }
.bloc-t + .ligne { border-top: 0; }
.heure { font-weight: 700; min-width: 46px; color: var(--accent2); font-size: 13.5px; }
.fin { margin-left: auto; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--texte2); flex: none; margin: 0 3px; }
.dot.alerte { background: var(--alerte); }

.btn { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; width: 100%; }
.btn.plein { background: var(--accent); color: var(--sur-accent); }
.btn.doux { background: var(--doux); color: var(--accent2); }
.btn.contour { border: 1.5px solid var(--ligne); background: var(--carte); color: var(--texte); }
.btn.danger { color: var(--danger); background: transparent; }
.rangee { display: flex; gap: 8px; }
.rangee > * { flex: 1; }

/* ---------------------------------------------------------------- saisie */
.rech { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 16px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); }
.rech .ic { color: var(--accent); }
.rech-saisie { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 9px 0; }
.rech-ok { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.aide { font-size: 12.5px; color: var(--texte2); margin: -4px 8px 0; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ > small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--texte2); font-weight: 700; }
.saisie { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--carte); border: 1px solid var(--ligne); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; min-height: 46px; }
textarea.saisie { resize: vertical; line-height: 1.4; }
.saisie:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--doux); }
input[type="date"].saisie, input[type="time"].saisie { display: block; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ligne); font-size: 14.5px; cursor: pointer; }
.bloc-t + .interrupteur { border-top: 0; }
.interrupteur input { -webkit-appearance: none; appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--ligne); position: relative; flex: none; transition: background .15s; cursor: pointer; margin: 0; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.interrupteur input:checked { background: var(--accent); }
.interrupteur input:checked::after { transform: translateX(18px); }

/* ---------------------------------------------------------------- feuilles et toasts */
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(30, 12, 22, .40); display: flex; align-items: flex-end; justify-content: center; animation: fondu .16s ease; }
.feuille-modale {
  background: var(--fond); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 24px 24px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: monte .22s ease;
}
.poignee { width: 40px; height: 5px; border-radius: 3px; background: var(--ligne); margin: 2px auto 8px; }
.feuille { display: flex; flex-direction: column; gap: 14px; }
.feuille-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feuille-t h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 900px) { .voile { align-items: center; } .feuille-modale { border-radius: 24px; padding-bottom: 22px; } }
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { transform: translateY(40px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 70; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast { pointer-events: auto; background: var(--texte); color: var(--fond); padding: 11px 16px; border-radius: 14px; display: flex; gap: 16px; align-items: center; box-shadow: var(--ombre); font-size: 14px; max-width: 520px; animation: monte .2s ease; }
.toast button { color: var(--bulle); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- connexion */
.connexion { max-width: 420px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 24px); }
.connexion-haut { display: flex; align-items: center; justify-content: space-between; }
.connexion .logo { border-radius: 16px; box-shadow: var(--ombre); }
.titre-app { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.etapes { margin: 8px 0 4px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.etapes li { padding-left: 4px; }
.etapes .ic { display: inline-block; vertical-align: -3px; color: var(--accent); }
.code-affiche { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--bulle); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

/* ---------------------------------------------------------------- à faire */
.nav-semaine { gap: 6px; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jr { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 5px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); text-align: center; }
.jr small { font-size: 10.5px; font-weight: 700; color: var(--texte2); letter-spacing: .03em; text-transform: uppercase; }
.jr b { font-size: 15px; font-weight: 800; }
.jr i { font-style: normal; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; background: var(--doux); color: var(--accent2); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; padding: 0 4px; }
.jr i.vide { background: transparent; }
.jr.auj { border-color: var(--accent); }
.jr.sel { background: var(--accent); border-color: var(--accent); }
.jr.sel small, .jr.sel b { color: var(--sur-accent); }
.jr.sel i { background: color-mix(in srgb, var(--sur-accent) 28%, transparent); color: var(--sur-accent); }
.selwrap { position: relative; align-self: flex-start; }
.selcat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); font-size: 13px; font-weight: 600; color: var(--texte2); }
.selcat.act { background: var(--doux); border-color: transparent; color: var(--accent2); }
.selcat > .ic:first-child { color: var(--accent); }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 250px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 6px; box-shadow: var(--ombre); }
.mi { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 500; width: 100%; }
.mi i { width: 14px; height: 14px; display: block; flex: none; }
.mi.on { color: var(--accent2); font-weight: 700; }
.mi.on .ic { color: var(--accent); }
.mi b { margin-left: auto; font-size: 11.5px; color: var(--texte2); font-weight: 700; background: var(--bulle); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mi b:empty { display: none; }
.mi.ajout { color: var(--accent); border-top: 1px solid var(--ligne); border-radius: 0 0 10px 10px; margin-top: 4px; }
.planning { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: start; }
.pcol { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; min-height: 460px; }
.pcol.auj { border-color: var(--accent); box-shadow: 0 0 0 2px var(--doux); }
.pcol.sans { background: var(--fond); border-style: dashed; }
.pcol.survol { background: var(--doux); }
.pjour { padding: 2px 2px 6px; border-bottom: 1px solid var(--ligne); margin-bottom: 2px; }
.pjour b { display: block; font-size: 13.5px; }
.pjour small { font-size: 11.5px; color: var(--texte2); }
.pcol .coche { align-items: flex-start; gap: 7px; padding: 5px 0; }
.pcol .ct { font-size: 13px; line-height: 1.3; padding: 2px 0; }
.pcol .cn { font-size: 10.5px; }
.pcol .rond { width: 20px; height: 20px; margin-top: 1px; }
.pcol .th { font-size: 11px; }
.pcol [draggable="true"] { cursor: grab; }
.pcol .ajout-ligne { margin-top: auto; font-size: 12.5px; }

/* ---------------------------------------------------------------- courses */
.rayon { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--texte2); margin: 12px 0 0; font-weight: 700; }
.rayon:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- repas */
.semaine { display: flex; flex-direction: column; gap: 8px; }
.jour { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 8px; align-items: stretch; }
.jn { font-weight: 700; font-size: 13px; color: var(--texte2); padding-top: 10px; line-height: 1.2; }
.jn b { display: block; font-size: 15px; color: var(--texte); }
.jour.auj .jn, .jour.auj .jn b { color: var(--accent); }
.cas { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 8px 10px; min-height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; }
.cas small { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--texte2); font-weight: 700; }
.cas span { font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cas.vide { border-style: dashed; background: transparent; }
.cas.vide span { color: var(--texte2); font-weight: 500; }
.jour.auj .cas { border-color: var(--accent); }
.cas .envoye { color: var(--ok); }

/* ---------------------------------------------------------------- courrier, enregistrés */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tuile { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; text-align: left; }
.tuile small { font-size: 11px; color: var(--texte2); font-weight: 600; letter-spacing: .02em; }
.tuile strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 0; }
.tuile span { font-size: 12px; color: var(--texte2); }
.tuile.alerte strong { color: var(--alerte); }
.tuile.ok strong { color: var(--ok); }
.bloc.liste { padding: 4px 12px; }
.fac, .enr { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--ligne); width: 100%; text-align: left; }
.fac:first-child, .enr:first-child, .bloc-t + .enr { border-top: 0; }
.photo { width: 46px; height: 58px; border-radius: 8px; flex: none; background: var(--bulle); border: 1px solid var(--ligne); object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--texte2); overflow: hidden; }
.vignette { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--doux); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.ft { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ft strong { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft .sous { margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.montant { font-weight: 700; font-size: 14px; white-space: nowrap; }
.photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.photos .photo { width: 76px; height: 96px; }
.ajout-photo { width: 76px; height: 96px; border-radius: 8px; border: 1.5px dashed var(--accent); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; text-align: center; flex: none; cursor: pointer; padding: 4px; }
.photo-grande { width: 100%; border-radius: 14px; border: 1px solid var(--ligne); display: block; background: var(--bulle); }
.pdf { width: 100%; height: 60vh; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.details dt { color: var(--texte2); }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.idee { display: block; width: 100%; text-align: left; padding: 10px 2px; border-top: 1px solid var(--ligne); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.bloc-t + .idee, .idee:first-child { border-top: 0; }
.astuce { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; background: var(--doux); border-radius: 12px; font-size: 12.5px; color: var(--accent2); line-height: 1.4; text-align: left; width: 100%; }
.astuce .ic { flex: none; margin-top: 2px; }
.lien-nav { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--ligne); width: 100%; font-weight: 600; }
.lien-nav:first-child { border-top: 0; }
.lien-nav .ic:first-child { color: var(--accent); }
.lien-nav .ic:last-child { margin-left: auto; color: var(--texte2); }
.progres { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--bulle); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--bulle); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }

/* ---------------------------------------------------------------- cycle */
.cycle-haut { display: flex; align-items: center; gap: 14px; }
.cycle-anneau { flex: none; }
.cycle-anneau .fond { stroke: var(--doux); }
.cycle-anneau .regles { stroke: var(--accent); }
.cycle-anneau .fertile { stroke: color-mix(in srgb, var(--accent) 38%, var(--carte)); }
.cycle-anneau .curseur { stroke: var(--texte); }
.cycle-anneau .gros { font-size: 44px; font-weight: 800; fill: var(--texte); letter-spacing: -.03em; }
.cycle-anneau .petit { font-size: 10.5px; font-weight: 700; fill: var(--texte2); letter-spacing: .04em; text-transform: uppercase; }
.cycle-txt { min-width: 0; }
.cycle-txt .grand { font-size: 18px; margin: 0; }
.cycle-txt .sous { font-size: 12.5px; }
.cycle-ligne { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--doux); color: var(--accent2); font-size: 13px; font-weight: 600; width: 100%; text-align: left; }
.cycle-ligne .ic:last-child { margin-left: auto; }
.humeurs { display: flex; gap: 8px; }
.humeurs button { width: 48px; height: 48px; border-radius: 50%; font-size: 23px; border: 1.5px solid var(--ligne); opacity: .6; display: inline-flex; align-items: center; justify-content: center; }
.humeurs button.on { border-color: var(--accent); background: var(--doux); opacity: 1; }
.cal { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 14px; }
.cal-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; }
.cal-t b { text-transform: capitalize; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; text-align: center; }
.cal-g small { font-size: 10.5px; font-weight: 700; color: var(--texte2); padding-bottom: 2px; text-transform: uppercase; }
.cal-g .j { height: 36px; width: 36px; margin: 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 600; position: relative; }
.cal-g .j.fertile { background: var(--doux); }
.cal-g .j.regles { background: var(--accent); color: var(--sur-accent); }
.cal-g .j.prevues { border: 1.5px dashed var(--accent); color: var(--accent2); }
.cal-g .j.ovulation { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-g .j.auj { outline: 2px solid var(--texte); outline-offset: 1px; }
.cal-g .j.note::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent2); }
.cal-g .j.regles.note::after { background: var(--sur-accent); }
.cal-g .j:disabled { opacity: 1; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: var(--texte2); }
.cal-leg span { display: inline-flex; align-items: center; gap: 5px; }
.cal-leg i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cal-leg i.regles { background: var(--accent); }
.cal-leg i.prevues { border: 1.5px dashed var(--accent); }
.cal-leg i.fertile { background: var(--doux); }

/* ---------------------------------------------------------------- pages du courrier dans la feuille */
.photo-btn { position: relative; flex: none; border-radius: 8px; }
.photo-btn .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--texte); color: var(--fond); display: flex; align-items: center; justify-content: center; }
.bloc.lien-nav { border: 1px solid var(--ligne); padding: 13px 16px; }
button.ligne { width: 100%; text-align: left; }
button.ligne .fin { color: var(--texte2); }

.barre-semaine { display: flex; align-items: center; gap: 8px; color: var(--texte2); font-size: 13.5px; font-weight: 600; margin-top: -4px; }
.barre-semaine > span { flex: 1; text-align: center; }
.jr i.vide, .jr.sel i.vide { background: transparent; }
/* Planning ordinateur : la case, puis le texte sur toute la largeur, l'heure en dessous */
.pcol .coche { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 7px; row-gap: 0; }
.pcol .ct { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.pcol .th { grid-column: 2; }
.pcol .cn { display: block; line-height: 1.35; }
.pcol .cn .ic { display: inline-block; vertical-align: -1px; margin-right: 2px; }
