:root{color-scheme:light;--ink:#14243a;--navy:#101a2f;--muted:#74849a;--line:#e5eaf1;--bg:#f7f9fc;--green:#188465;--green-bg:#e8f6ef;--amber:#b37b23;--amber-bg:#fff6e8;--red:#cb4b4b;--red-bg:#fff0f0;--gray:#94a3b8;--blue:#3269b7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.52;-webkit-font-smoothing:antialiased}.container{width:min(1080px,calc(100% - 44px));margin:auto}.site-header{height:82px;background:var(--navy);color:white;border-bottom:1px solid #26374f}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:16px;color:#fff;text-decoration:none;font-size:23px;font-weight:760;letter-spacing:-1.15px}.brand-mark{width:42px;height:42px;display:block;position:relative;transform:rotate(-24deg)}.brand-mark span{position:absolute;display:block;clip-path:polygon(50% 0,100% 95%,0 95%);height:32px;width:30px;left:6px;top:4px}.brand-mark span:first-child{background:linear-gradient(145deg,#66d1f1,#2875cc);transform:rotate(0deg)}.brand-mark span:nth-child(2){background:linear-gradient(155deg,#70f0d2,#2bbaae);transform:rotate(120deg);transform-origin:center 67%}.brand-mark span:nth-child(3){background:linear-gradient(175deg,#b798ef,#7557c9);transform:rotate(240deg);transform-origin:center 67%}.brand small{font-size:14px;color:#b5c3d7;font-weight:500;letter-spacing:0;padding-left:8px}.brand-apostrophe{color:#63c5d4}.header-right{color:#b6c4d6;display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.01em}.live-dot{height:8px;width:8px;border-radius:50%;background:#63d4a5;box-shadow:0 0 0 4px #5dddab20}.header-sep{height:16px;width:1px;background:#32465f;margin:0 8px}.intro{padding:72px 0 39px}.eyebrow{font-size:11px;font-weight:800;color:#4e77a8;letter-spacing:.17em}.intro h1{font-weight:790;letter-spacing:-.045em;font-size:clamp(33px,5.1vw,51px);line-height:1.16;margin:18px 0 17px}.intro h1 span{color:#547da7}.intro p{font-size:16px;color:#71829a;max-width:620px;margin:0;line-height:1.78}.summary{border-radius:15px;padding:30px 30px;display:flex;align-items:center;gap:24px;background:white;border:1px solid var(--line);box-shadow:0 6px 30px #17335306}.summary-up{background:#ecf8f2;border-color:#c4e5d6}.summary-down{background:#fff1ef;border-color:#f5ccc6}.summary-warn,.summary-maintenance{background:#fff7ec;border-color:#f1dec3}.summary-icon{width:59px;height:59px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;color:#1a9070;background:#d6efe3}.summary-down .summary-icon{background:#f9ded9;color:#c04848}.summary-warn .summary-icon,.summary-maintenance .summary-icon{background:#f7eacc;color:#ad7929}.summary-icon svg{height:27px;width:27px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}.summary-meta{font-size:10px;letter-spacing:.14em;font-weight:800;color:#638a7e}.summary h2{font-size:21px;line-height:1.3;letter-spacing:-.027em;margin:4px 0 5px}.summary p{margin:0;font-size:12px;color:#668578}.summary-status{margin-left:auto;white-space:nowrap;border-radius:50px;padding:8px 14px;background:#d5efdf;color:#157454;font-size:12px;font-weight:750}.summary-down .summary-status{background:#f8d6d0;color:#b23d3d}.summary-warn .summary-status,.summary-maintenance .summary-status{background:#f5e5c6;color:#936221}.summary-unknown .summary-status{background:#e8edf4;color:#657489}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:58px 0 20px}.section-heading h2{font-size:25px;letter-spacing:-.04em;margin:5px 0 0}.section-aside{font-size:12px;color:#7a889d;padding-bottom:4px}.group-head{display:flex;align-items:center;justify-content:space-between;margin:30px 0 14px;color:#8190a2;font-size:12px}.group-head>div{display:flex;gap:10px;align-items:center}.group-head h3{font-size:15px;color:#364966;margin:0}.group-dot{height:8px;width:8px;border-radius:50%;background:#6c8aab}.service-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:13px;padding:24px 26px;box-shadow:0 4px 14px #213a5805;display:grid;grid-template-columns:1fr auto;gap:18px}.service-main{display:flex;align-items:center;gap:15px}.service-icon{width:43px;height:43px;flex-shrink:0;border:1px solid #e3ebf3;background:#f5f8fc;color:#6388b4;border-radius:11px;display:grid;place-items:center}.service-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.service-title h4{font-size:15px;margin:0 0 3px;font-weight:720}.service-title p{font-size:11px;color:#8190a2;margin:0}.state-pill{display:flex;align-items:center;gap:9px;align-self:center;font-size:12px;font-weight:690;border:1px solid #d7ebe0;color:#198367;background:#f3fbf6;border-radius:99px;padding:7px 12px}.state-pill i,.check-dot{display:inline-block;border-radius:50%;height:8px;width:8px;background:#28a37a}.state-pill.state-warn,.state-pill.state-maintenance{color:#a87824;background:#fff9ed;border-color:#f2e4cf}.state-pill.state-warn i,.state-pill.state-maintenance i,.check-dot.warn,.check-dot.maintenance{background:#e8b54c}.state-pill.state-down{color:#bf4848;background:#fff3f2;border-color:#f0d8d6}.state-pill.state-down i,.check-dot.down{background:#e46a6a}.state-pill.state-unknown{color:#76869c;background:#f5f7fa;border-color:#e7ebf0}.state-pill.state-unknown i,.check-dot.unknown,.check-dot.planned{background:#aebbc9}.history{grid-column:1/-1;margin-top:7px}.history-bars{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:4px;height:34px}.bar{background:#4fbb93;border-radius:3px;min-width:3px}.bar-up{background:#58b995}.bar-warn{background:#efc36c}.bar-down{background:#e47f7e}.bar-unknown{background:#e5eaf1}.history-legend{display:flex;justify-content:space-between;gap:12px;color:#8b99aa;font-size:10px;margin-top:9px}.history-legend span:nth-child(2){color:#58718b;font-weight:650}.service-subchecks{grid-column:1/-1;border-top:1px solid #eef1f5;display:flex;flex-wrap:wrap;gap:16px 25px;padding-top:15px;color:#8190a2;font-size:11px}.service-subchecks span{display:flex;align-items:center;gap:6px}.service-subchecks strong{color:#596b81;font-weight:650}.service-subchecks .future strong{color:#9aaaad}.incidents{margin-top:5px}.incidents .section-heading{margin-bottom:19px}.incident-panel{border:1px solid var(--line);background:white;border-radius:13px;overflow:hidden}.no-incidents{display:flex;align-items:center;gap:16px;padding:28px}.no-incidents strong{font-size:14px;color:#2a4058}.no-incidents p{font-size:12px;color:#8a98a9;margin:3px 0}.icon-check{height:36px;width:36px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#e3f4ed;color:#269671;font-size:18px}.incident-entry{padding:19px 25px;display:flex;align-items:center;gap:14px}.incident-entry+.incident-entry{border-top:1px solid var(--line)}.incident-entry strong{font-size:13px}.incident-entry p{margin:2px 0 0;font-size:11px;color:#8393a5}.incident-entry time{font-size:11px;color:#8393a5;margin-left:auto}.incident-symbol{height:11px;width:11px;background:#cbd5e1;border-radius:50%}.incident-symbol.up{background:#49b38c}.incident-symbol.down{background:#e17471}.incident-symbol.warn{background:#e9be71}.method-note{border-top:1px solid var(--line);padding:19px 1px;color:#8a98a8;font-size:12px;margin:56px 0 65px;line-height:1.8}.method-note strong{color:#627b92}.footer{background:#fff;border-top:1px solid var(--line);color:#98a4b2;font-size:11px}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px}.footer a{color:#6885a1;text-decoration:none}.empty-state{border:1px dashed #c9d3df;border-radius:13px;background:#fff;padding:38px;text-align:center;color:#7c90a6}.empty-state h3{font-size:18px;color:#35506c;margin:0 0 10px}.empty-state p{margin:0}.admin-wrap{max-width:1050px;margin:45px auto;padding:0 22px}.admin-panel{background:white;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:18px}.admin-panel h2{margin:0 0 18px;font-size:20px}.admin-form{display:grid;gap:14px}.admin-form label{display:grid;gap:6px;font-size:12px;color:#596e86;font-weight:600}.admin-form input,.admin-form select,.admin-form textarea{padding:11px 12px;border:1px solid #d7e1ec;border-radius:9px;font:inherit;width:100%;color:#1d3449;background:white}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-form button,.btn{font:inherit;border:0;background:#285b90;border-radius:9px;padding:12px 17px;color:#fff;font-weight:650;cursor:pointer;width:fit-content}.btn-danger{background:#b04444}.btn-secondary{background:#e9eff5;color:#35516f}.error{color:#a82f2f;background:#fff0f0;padding:12px;border-radius:7px}.success{color:#176a4b;background:#e7f6ef;padding:12px;border-radius:7px}.admin-row{padding:17px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.admin-row:last-child{border:0}.admin-row h3{margin:0 0 3px;font-size:14px}.admin-row p{margin:0;font-size:11px;color:#728499}.admin-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.admin-actions form{display:flex;align-items:center;gap:7px}.admin-actions button{font-size:11px;padding:7px 10px}.admin-actions input{border-radius:7px;border:1px solid #d7e1ec;padding:7px;width:180px}.admin-hint{font-size:12px;color:#718499}.admin-metrics{font-size:11px;color:#526b85;margin-top:6px}@media(max-width:680px){.container{width:min(100% - 28px,1080px)}.site-header{height:auto;min-height:75px}.header-inner{padding:18px 0}.header-right{display:none}.brand{font-size:21px}.brand small{font-size:12px}.intro{padding:47px 0 28px}.intro h1{font-size:32px}.intro p{font-size:14px}.summary{align-items:flex-start;padding:21px 19px;gap:13px}.summary-icon{height:42px;width:42px}.summary-icon svg{height:21px;width:21px}.summary h2{font-size:17px}.summary-status{display:none}.section-heading{margin-top:39px}.section-heading h2{font-size:22px}.section-aside{display:none}.service-card{padding:18px 16px;gap:16px}.service-icon{width:34px;height:34px}.service-icon svg{width:20px;height:20px}.service-title h4{font-size:13px}.state-pill{font-size:0;padding:7px}.state-pill i{height:9px;width:9px}.history-bars{gap:2px;height:29px}.history-legend{font-size:9px}.history-legend span:nth-child(2){display:none}.service-subchecks{gap:10px 16px}.footer-inner{align-items:flex-start;flex-direction:column;padding:18px 0;gap:5px}.admin-grid{grid-template-columns:1fr}}
.admin-public-link{color:#b5c3d7;font-size:12px}.admin-login{max-width:430px;margin:65px auto}.admin-heading{margin-top:0}.small-checkbox{width:auto!important;margin-right:6px}
.setup-wide{max-width:660px}.setup-wide code,.enrollment code{background:#eef2f6;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere}.enrollment{border-color:#cddfed}.enrollment label,.admin-panel>label{display:block;font-size:12px;font-weight:650;color:#596e86;margin:12px 0}.secret-output{display:block;font:inherit;width:100%;box-sizing:border-box;padding:12px;border:1px solid #d7e1ec;border-radius:8px;background:#f7f9fb;color:#304960;margin-top:8px}.enrollment p{font-size:13px;line-height:1.7;color:#5b6d82}.admin-panel a.btn{display:inline-block;text-decoration:none}
.setup-generate{display:grid;gap:9px;margin:20px 0}.setup-generate input{font-family:ui-monospace,monospace;font-size:12px}

.admin-edit-url{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px}.admin-edit-url label{font-size:.83rem;color:#64748b;display:grid;gap:4px;flex:1;min-width:min(260px,100%)}.admin-edit-url input{width:100%;min-width:0;border:1px solid #ccd7e4;border-radius:8px;padding:10px 12px;font:inherit;color:#172b4d}.admin-diagnostic{padding:9px 12px;background:#fff8e6;border-left:3px solid #cb9735;border-radius:5px;max-width:850px}

/* Historique minute par minute : 60 contrôles, distincts de la synthèse journalière. */
.minute-history{grid-column:1/-1;margin-top:-6px;padding:14px 0 2px;border-top:1px solid #eef1f5}
.minute-history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.minute-history-heading strong{font-size:11px;font-weight:740;color:#52667e}
.minute-history-heading span{font-size:10px;color:#8b99aa}
.minute-bars{display:grid;grid-template-columns:repeat(60,minmax(0,1fr));gap:3px;height:23px}
.minute-bar{display:block;min-width:1px;border-radius:2px;background:#e5eaf1}
.minute-bar-up{background:#58b995}
.minute-bar-warn,.minute-bar-maintenance{background:#efc36c}
.minute-bar-down{background:#e47f7e}
.minute-bar-unknown{background:#abb7c5}
.minute-bar-missing{background:#e5eaf1}
.minute-history-legend{display:flex;justify-content:space-between;gap:10px;color:#8b99aa;font-size:10px;margin-top:7px}
@media(max-width:680px){.minute-bars{gap:1.5px;height:22px}.minute-history-heading span{font-size:9px}}

.minute-state-key{display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:9px;font-size:10px;color:#7c8ca0}
.minute-state-key span{display:inline-flex;align-items:center;gap:5px}
.minute-state-key i{display:inline-block;width:8px;height:10px;border-radius:2px;flex-shrink:0}

/* Réglages des serveurs enregistrés — éditables après création. */
.admin-row>div:first-child{flex:1 1 540px;min-width:0}
.admin-edit-server{margin-top:14px;border:1px solid #dfe7ef;border-radius:10px;background:#fafcfe;padding:12px 14px}
.admin-edit-server summary{cursor:pointer;color:#285b90;font-size:13px;font-weight:700;list-style-position:inside}
.admin-edit-server[open] summary{margin-bottom:16px}
.admin-edit-server-form{max-width:760px}
.admin-edit-options{display:flex;flex-wrap:wrap;gap:12px 24px}
.admin-edit-options label{display:flex;align-items:center;gap:8px;font-size:12px;color:#425870;font-weight:600;cursor:pointer}
.admin-edit-options input[type=checkbox]{width:17px;height:17px;accent-color:#285b90}
@media(max-width:680px){.admin-edit-server{padding:10px}.admin-edit-options{flex-direction:column;gap:12px}}
