/* status.masurvie.fr : mêmes briques que masurvie.fr (commun.css, parcours.css), sans en dépendre. */
@font-face { font-family: "Nunito"; src: url(/polices/Nunito.ttf) format("truetype"); font-weight: 200 1000; font-display: swap; }
:root {
  --bleu: #b1effe; --bleu-fonce: #4aa9c7;
  --rose: #f8a5c2; --rose-clair: #fbb9d0; --rose-profond: #c5447a;
  --beige: #DEC198; --beige-clair: #f5e9cc; --beige-fonce: #b37f4a;
  --prune: #4d1038; --prune-nuit: #2a0a22;
  --gris: #cdbcc6; --gris-fonce: #93808c;
  --tuile: rgba(255, 255, 255, .06); --filet: rgba(255, 255, 255, .16);
  --doux: #e9dbe3;
  --texte: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 700 1.0625rem/1.5 var(--texte); color: #fff; background: var(--prune-nuit); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid #fff; outline-offset: 3px; border-radius: 10px; }
.annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.scene { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.fond { position: fixed; inset: 0; z-index: -3; }
.fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.fleur, .masc, .feuilles { position: absolute; pointer-events: none; user-select: none; }
.fleur-g { top: 0; left: 0; width: clamp(84px, 14vw, 260px); z-index: 1; transform-origin: 0 0; animation: balance 7s ease-in-out infinite; }
.fleur-d { top: 0; right: 0; width: clamp(76px, 12vw, 230px); z-index: 1; transform-origin: 100% 0; animation: balance 8s ease-in-out infinite reverse; }
.masc { right: clamp(0px, 1.5vw, 24px); bottom: clamp(6px, 1.5vw, 24px); width: clamp(84px, 11vw, 190px); z-index: 4; animation: flotte 5s ease-in-out infinite; }
.feuilles { left: 0; right: 0; bottom: -2px; height: clamp(70px, 9vw, 150px); z-index: 3; background: url(/images/feuillage.webp) repeat-x center bottom / auto 100%; }
.retour { position: absolute; top: 14px; left: max(14px, env(safe-area-inset-left, 0px)); z-index: 7; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(42, 10, 34, .86); color: #fff; font-weight: 900; text-decoration: none; transition: background-color .15s ease; }
.retour:hover { background: var(--prune); }

.centre { position: relative; z-index: 5; display: flex; flex-direction: column; gap: clamp(18px, 2.4vh, 26px); width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px clamp(120px, 13vw, 200px); }
.logo-lien { align-self: center; display: block; border-radius: 14px; transition: transform .12s ease; }
.logo-lien:hover { transform: scale(1.03); }
.logo-p { width: clamp(130px, 13vw, 180px); filter: drop-shadow(0 8px 16px rgba(10, 30, 30, .45)); }

/* L'état général : le gros bouton du site, sans action */
.general { align-self: center; display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); width: min(100%, 860px); min-height: 124px; margin-bottom: 10px; padding: 14px clamp(18px, 3vw, 32px); border-radius: 26px; color: var(--prune); box-shadow: 0 12px 0 var(--ombre), 0 26px 36px rgba(20, 5, 20, .5); background: var(--fond); }
.general[data-niveau="ok"] { --fond: var(--bleu); --ombre: var(--bleu-fonce); }
.general[data-niveau="moyen"] { --fond: var(--beige-clair); --ombre: var(--beige); }
.general[data-niveau="grave"] { --fond: var(--rose); --ombre: var(--rose-profond); }
.general[data-niveau="attente"] { --fond: var(--gris); --ombre: var(--gris-fonce); }
.general-ic { flex: none; display: grid; place-items: center; width: clamp(54px, 7vw, 72px); height: clamp(54px, 7vw, 72px); border-radius: 18px; background: var(--prune); color: #fff; }
.general-ic svg { width: 62%; height: 62%; }
.general-txt { min-width: 0; }
.surtitre { font-weight: 900; font-size: .95rem; line-height: 1.2; }
.general h1 { font-weight: 1000; font-size: clamp(1.55rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.general-sous { margin-top: 4px; font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.3; font-variant-numeric: tabular-nums; }

.alerte { padding: 12px 18px; border-radius: 14px; background: var(--rose-profond); color: #fff; font-weight: 800; }

.boite { padding: clamp(16px, 2vw, 26px); border-radius: 22px; background: rgba(42, 10, 34, .88); }
.boite-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.boite h2 { font-weight: 1000; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.1; }
.boite h2 span { color: var(--rose); }
.lecture { margin-top: 14px; color: var(--doux); font-weight: 600; font-size: .92rem; line-height: 1.4; max-width: 92ch; }
.lecture b { font-weight: 900; color: #fff; }

/* Période */
.echelle { display: flex; gap: 8px; margin: 0; padding: 0 0 5px; border: 0; }
.echelle label { position: relative; display: block; cursor: pointer; }
.echelle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.echelle span { display: grid; place-items: center; min-width: 62px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--beige-clair); color: var(--prune); font-weight: 1000; box-shadow: 0 5px 0 var(--beige); transition: transform .1s ease, background-color .15s ease; }
.echelle label:hover span { background: #fff6df; }
.echelle input:checked + span { background: var(--rose); box-shadow: 0 5px 0 var(--rose-profond); }
.echelle input:focus-visible + span { outline: 4px solid #fff; outline-offset: 3px; }

/* Pastilles d'état : toujours icône + mot */
.pastille { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px 2px 8px; border-radius: 999px; font-weight: 900; font-size: .95rem; line-height: 1.15; color: var(--prune); background: var(--gris); white-space: nowrap; }
.pastille svg { flex: none; width: 18px; height: 18px; }
.pastille[data-niveau="ok"] { background: var(--bleu); }
.pastille[data-niveau="moyen"] { background: var(--beige); }
.pastille[data-niveau="grave"] { background: var(--rose-profond); color: #fff; }
.pastille:empty { display: none; }

/* Serveurs */
.serveurs { display: flex; flex-direction: column; gap: 14px; }
.srv { display: grid; grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.srv-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 6px 10px 2px; min-width: 0; }
.srv-nom { font-weight: 1000; font-size: 1.5rem; line-height: 1.1; }
.srv-role { color: var(--doux); font-weight: 700; font-size: .9rem; line-height: 1.25; }
.srv-faits { list-style: none; margin: 4px 0 0; padding: 0; color: var(--beige-clair); font-size: .93rem; line-height: 1.35; font-weight: 800; font-variant-numeric: tabular-nums; }
.srv-faits b { color: #fff; font-weight: 1000; }
.srv.vieux .tuile-val, .srv.vieux .srv-faits { opacity: .55; }

.tuile { min-width: 0; padding: 10px 12px 6px; border-radius: 16px; background: var(--tuile); }
.tuile-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.tuile h3 { font-weight: 900; font-size: .95rem; color: var(--doux); }
.tuile-val { font-weight: 1000; font-size: 1.85rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile-val small { font-size: .55em; font-weight: 900; margin-left: 2px; }
.tuile-lu { margin-left: auto; font-weight: 800; font-size: .88rem; color: var(--beige-clair); text-align: right; }
.courbe { display: block; width: 100%; height: 104px; margin-top: 2px; touch-action: pan-y; border-radius: 6px; }
.courbe text { fill: var(--doux); font: 700 11px var(--texte); font-variant-numeric: tabular-nums; }

details.plus { grid-column: 1 / -1; margin-top: -2px; }
details.plus summary { display: inline-flex; align-items: center; min-height: 34px; padding: 0 2px; color: var(--bleu); font-weight: 800; font-size: .93rem; cursor: pointer; }
.plus-corps { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 4px 2px 8px; }
.plus-corps table { border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.plus-corps caption { text-align: left; font-weight: 900; color: var(--doux); padding-bottom: 2px; }
.plus-corps th, .plus-corps td { padding: 2px 16px 2px 0; text-align: left; font-weight: 700; }
.plus-corps thead th { color: var(--doux); font-weight: 800; }
.plus-corps tbody th { font-weight: 800; color: var(--beige-clair); }
.plus-corps td { font-weight: 900; }
.srv + .srv { padding-top: 14px; border-top: 2px solid var(--filet); }

/* Mojang */
.mojang { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.mj { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--tuile); }
.mj-tete { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mj-nom { font-weight: 1000; font-size: 1.2rem; line-height: 1.15; }
.mj-faits { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: .93rem; color: var(--beige-clair); font-weight: 800; font-variant-numeric: tabular-nums; }
.mj-faits b { color: #fff; font-weight: 1000; }
.mj-quoi { color: var(--doux); font-size: .86rem; font-weight: 600; line-height: 1.3; }

/* Redémarrages */
.filtre select { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--beige-clair); color: var(--prune); font: 900 1rem var(--texte); box-shadow: 0 5px 0 var(--beige); margin-bottom: 5px; cursor: pointer; }
.redem { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.redem th { padding: 4px 12px 8px 0; text-align: left; font-size: .9rem; font-weight: 800; color: var(--doux); }
.redem td { padding: 9px 12px 9px 0; border-top: 2px solid var(--filet); font-weight: 800; font-size: .98rem; }
.redem td:first-child { color: var(--beige-clair); }
.redem .pastille { font-size: .88rem; min-height: 26px; }
.rien { padding: 12px 14px; border-radius: 14px; background: var(--tuile); color: var(--beige-clair); font-weight: 800; }
.plus-btn { margin: 14px 0 5px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bleu); color: var(--prune); font: 900 1rem var(--texte); box-shadow: 0 5px 0 var(--bleu-fonce); cursor: pointer; }
.plus-btn:hover { filter: brightness(1.05); }

.bulle { position: fixed; z-index: 20; top: 0; left: 0; min-width: 120px; max-width: 240px; padding: 8px 12px; border-radius: 12px; background: var(--beige-clair); color: var(--prune); font-size: .88rem; line-height: 1.3; font-weight: 800; box-shadow: 0 5px 0 var(--beige), 0 10px 18px rgba(20, 5, 20, .45); pointer-events: none; font-variant-numeric: tabular-nums; }
.bulle b { display: block; font-weight: 1000; font-size: 1.2rem; line-height: 1.15; }
.bulle i { display: block; font-style: normal; font-weight: 700; }

.pied { padding: 12px 16px; background: var(--prune-nuit); color: var(--beige-clair); text-align: center; font-size: .9rem; font-weight: 600; }
.pied a { display: inline-block; padding: 6px 2px; color: var(--beige-clair); font-weight: 800; }

@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes balance { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2deg); } }

@media (max-width: 1000px) {
  .srv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .srv-info { grid-column: 1 / -1; padding: 0 2px; }
  .srv-tete { width: 100%; }
}
@media (min-width: 1001px) { .srv-tete { display: contents; } .srv-tete > .pastille { margin-top: 2px; } }
.srv-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
@media (min-width: 1001px) { .srv-tete { display: flex; flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) {
  .centre { padding-top: 66px; }
  .logo-lien { margin-top: -50px; }
  .srv { gap: 8px; }
  .tuile { padding: 8px 8px 4px; }
  .tuile-val { font-size: 1.5rem; }
  .tuile-lu { margin-left: 0; width: 100%; text-align: left; font-size: .8rem; min-height: 1.3em; }
  .courbe { height: 84px; }
  .general { min-height: 108px; }
  .redem thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .redem tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-top: 2px solid var(--filet); }
  .redem tbody tr:first-child { border-top: 0; }
  .redem td { padding: 0; border: 0; }
  .redem td:nth-child(2) { font-weight: 1000; grid-row: 1; grid-column: 1; }
  .redem td:nth-child(4) { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .redem td:nth-child(1) { grid-row: 2; grid-column: 1; font-size: .9rem; }
  .redem td:nth-child(3) { grid-row: 3; grid-column: 1 / -1; font-size: .9rem; color: var(--doux); }
}
@media (prefers-reduced-motion: reduce) { .fleur-g, .fleur-d, .masc { animation: none; } .retour, .logo-lien, .echelle span { transition: none; } }
@media (forced-colors: active) { .pastille, .general, .echelle span, .plus-btn { border: 2px solid CanvasText; } }
.mj-faits span:empty, .srv-faits li:empty { display: none; }
