.f-suite { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #e8e8ed; border-radius: 16px; max-width: 900px; margin: 0 auto; }
.f-suite a {
  min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 12px; padding: 8px 10px; font-size: .9rem; font-weight: 500; line-height: 1.25; color: var(--encre);
  transition: background .15s, box-shadow .15s;
}
.f-suite a:hover { background: rgba(255, 255, 255, .55); text-decoration: none; }
.f-suite a[aria-current="page"] { background: var(--blanc); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
.f-nouveau { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--action); background: var(--action-doux); border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.f-avert { display: flex; gap: 12px; align-items: flex-start; max-width: 900px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre); font-size: .88rem; color: var(--gris-texte); }
.f-avert svg { flex-shrink: 0; margin-top: 2px; color: var(--action); }
.f-avert strong { color: var(--encre); }
.f-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.f-semaine .f-j { display: grid; gap: 4px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--gris-texte); }
.f-semaine button { min-height: 44px; border-radius: 12px; border: 1px solid var(--gris-ligne); background: var(--blanc); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; padding: 4px 2px; line-height: 1.1; }
.f-B { --c: #0068d1; --f: #e8f2fd; }   
.f-T { --c: #9a4400; --f: #ffe9cc; }   
.f-D { --c: #6e3ad6; --f: #efe8fd; }   
.f-M { --c: #0b7a75; --f: #dff4f2; }   
.f-C { --c: #6e6e73; --f: #ececf0; }   
.f-F { --c: #8e8e93; --f: #f5f5f7; }   
.f-semaine button[class], .f-cal button[class*="f-"] { background: var(--f); border-color: transparent; color: var(--c); }
.f-pinceaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.f-pinceau { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 2px solid transparent; background: var(--gris-fond); font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; color: var(--encre); }
.f-pinceau i { width: 12px; height: 12px; border-radius: 4px; background: var(--c, #fff); border: 1px solid var(--gris-ligne); }
.f-pinceau[aria-pressed="true"] { border-color: var(--action); background: var(--blanc); font-weight: 600; }
.f-pinceau.gomme i { background: #fff; }
.f-mois-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.f-mois-tete h3, .f-mois-tete .f-mois { margin: 0; font-family: var(--police-titre); color: var(--encre); font-weight: 650; letter-spacing: -.01em; text-transform: capitalize; font-size: 1.15rem; }
.f-mois-tete .btn { min-width: 44px; padding: 8px 12px; }
.f-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.f-cal .f-jsem { text-align: center; font-size: .75rem; font-weight: 600; color: var(--gris-texte); padding: 2px 0 4px; }
.f-cal button {
  position: relative; aspect-ratio: 1 / 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--gris-ligne); background: var(--blanc);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--encre); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums;
}
.f-cal button.we:not([class*="f-"]) { background: var(--gris-fond); color: #77777c; border-color: transparent; }
.f-cal button.auj { box-shadow: inset 0 0 0 2px var(--encre); }
.f-cal button .f-lettre { position: absolute; left: 0; right: 0; bottom: 3px; font-size: .69rem; font-weight: 700; letter-spacing: .02em; }
.f-cal .vide { visibility: hidden; }
.f-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--gris-texte); margin: 12px 0 0; padding: 0; list-style: none; }
.f-legende li { display: flex; align-items: center; gap: 6px; }
.f-legende i { width: 12px; height: 12px; border-radius: 4px; background: var(--f); border: 1px solid var(--c); }
.f-outils-cal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; }
.f-jauge { position: relative; height: 14px; border-radius: 99px; background: var(--gris-ligne); margin: 18px 0 30px; }
.f-jauge > i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .35s ease, background .2s; max-width: 100%; }
.f-jauge.proche > i { background: #e8a33a; }
.f-jauge.depasse > i { background: var(--danger); }
.f-jauge .f-seuil { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--encre); border-radius: 2px; }
.f-jauge .f-seuil span { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.f-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.f-chiffres div { background: var(--gris-fond); border-radius: 14px; padding: 12px; }
.f-chiffres b { display: block; font-family: var(--police-titre); font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.f-chiffres span { font-size: .78rem; color: var(--gris-texte); line-height: 1.25; display: block; }
.o-note.danger { background: #fde8ea; }
.f-verdict { border-radius: var(--r-m); padding: 20px; margin: 0 0 14px; background: var(--gris-fond); }
.f-verdict.oui { background: var(--ok-doux); }
.f-verdict.non { background: var(--alerte-doux); }
.f-verdict h3 { margin: 0 0 6px; font-size: 1.25rem; }
.f-verdict p { margin: 0; font-size: .92rem; }
.f-echeances { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 12px; }
.f-echeance { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--blanc); border-radius: var(--r-m); box-shadow: var(--ombre); padding: 20px 22px; }
.f-echeance.passee { opacity: .7; box-shadow: none; }
.f-date { text-align: center; background: var(--action-doux); color: var(--action); border-radius: 14px; padding: 8px 4px; line-height: 1.1; }
.f-date b { display: block; font-family: var(--police-titre); font-size: 1.6rem; letter-spacing: -.02em; }
.f-date span { font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.f-echeance.urgent .f-date { background: var(--alerte-doux); color: var(--alerte); }
.f-echeance h3 { margin: 0 0 4px; font-size: 1.05rem; }
.f-echeance p { margin: 0; font-size: .9rem; color: var(--gris-texte); }
.f-echeance .f-dans { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--encre); background: var(--gris-fond); border-radius: 99px; padding: 3px 10px; }
.f-echeance label { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .85rem; font-weight: 500; cursor: pointer; }
.f-echeance input[type=checkbox] { width: 20px; height: 20px; margin: 0; }
.f-barre-ics { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto 16px; }
.f-barre-ics p { margin: 0; font-size: .9rem; color: var(--gris-texte); }
.f-rebours { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.f-rebours .o-chiffre { margin: 0; }
.f-phase { max-width: 820px; margin: 34px auto 12px; display: flex; align-items: baseline; gap: 12px; }
.f-phase h3 { margin: 0; font-size: 1.25rem; }
.f-phase span { font-size: .85rem; color: var(--gris-texte); }
.f-kit-liens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 820px; margin: 34px auto 0; }
.f-kit-liens a { display: block; background: var(--nuit); color: #fff; border-radius: var(--r-m); padding: 20px; }
.f-kit-liens a:hover { text-decoration: none; background: var(--nuit-2); }
.f-kit-liens b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.f-kit-liens span { font-size: .85rem; color: #b8c7dd; }
.f-pdf { max-width: 820px; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--blanc); border-radius: var(--r-m); box-shadow: var(--ombre); padding: 20px 22px; }
.f-pdf p { margin: 0; font-size: .92rem; }
@media (max-width: 700px) {
  .f-suite { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-suite a { font-size: .85rem; padding: 8px 6px; }
  .f-suite a:nth-child(5) { grid-column: 1 / -1; }
  .f-cal { gap: 3px; }
  .f-cal button { border-radius: 9px; font-size: .82rem; min-height: 38px; }
  .f-semaine { gap: 4px; }
  .f-semaine button { font-size: .69rem; letter-spacing: -.02em; }
  .f-chiffres b { font-size: 1.25rem; }
  .f-echeance { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .f-date b { font-size: 1.3rem; }
  .f-kit-liens { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .f-chiffres { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .f-suite, .f-pinceaux, .f-outils-cal, .f-barre-ics, .f-pdf, .f-mois-tete .btn { display: none !important; }
  .f-avert, .f-echeance, .f-kit-liens a { box-shadow: none; border: 1px solid var(--gris-ligne); }
  .f-kit-liens a { background: #fff; color: var(--encre); }
  .f-retour, .f-kit-liens, .o-calcul:not([open]) { display: none !important; }
  .o-carte, .o-liste li, .f-echeance, .f-avert, .f-verdict, .f-chiffres { break-inside: avoid; }
  .f-phase { break-after: avoid; }
  .f-cal button, .f-semaine button, .f-legende i, .f-jauge, .f-jauge > i, .o-jauge, .o-jauge > i, .f-chiffres div, .f-date, .f-dans, .o-liste li.fait, .f-verdict, .o-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .o-liste .o-lien { padding: 2px 0; }
  .o-liste .o-lien[href^="http"]::after, .f-echeance a[href^="http"]::after { content: " : " attr(href); font-weight: 400; overflow-wrap: anywhere; }
}
.f-rappel { max-width: 820px; margin: 28px auto 0; padding: 20px 22px; border-radius: var(--r-m, 16px); background: var(--gris-fond, #f5f5f7); scroll-margin-top: 100px; }
.f-rappel-titre { font-weight: 700; margin: 0 0 10px; }
.f-rappel-ligne { display: flex; gap: 8px; }
.f-rappel-ligne input { flex: 1; min-width: 0; border: 1.5px solid #d2d2d7; background: #fff; border-radius: 99px; padding: 12px 18px; font: inherit; }
.f-rappel-ligne input:focus { outline: none; border-color: var(--action, #0068d1); }
.f-rappel-ligne input.erreur { border-color: #d93025; }
.f-rappel-ligne .btn { white-space: nowrap; }
.f-rappel-case { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .84rem; color: var(--gris-texte, #6e6e73); cursor: pointer; }
.f-rappel-case input { margin-top: 3px; accent-color: var(--action, #0068d1); }
.f-rappel-merci { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .f-rappel-ligne { flex-direction: column; } }
@media print { .f-rappel { display: none !important; } }
.f-retour { color: var(--action); font-weight: 600; text-decoration: none; }
.f-retour:hover { text-decoration: underline; }
