/* statut.tchin.tech (23 nov. 2026) : couleurs et police de tchin.tech (Inter), clair et sombre. Tailles en rem ;
   sur téléphone la racine suit la largeur (16 px à 375 px) : le même dessin sur tous les téléphones. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fond: #FFF8EF; --carte: #FFFFFF; --texte: #3A1C0A; --doux: #6E5846; --pale: #B5A08C;
  --bord: rgba(58, 28, 10, .09); --pilule: #EFE2D0; --accent: #E67A1E; --accent-texte: #A84A08;
  --noir: #171310; --noir-texte: #FFF8EF; --noir-doux: rgba(255, 248, 239, .62); --noir-cadre: rgba(255, 248, 239, .06); --noir-bord: rgba(255, 248, 239, .09);
  --ok: #15803D; --ok-fond: rgba(21, 128, 61, .1); --lent: #C2410C; --lent-fond: rgba(217, 119, 6, .13); --panne: #DC2626; --panne-fond: rgba(220, 38, 38, .1);
  --inconnu: #9C8670; --inconnu-fond: rgba(58, 28, 10, .07);
  --barre-ok: #22A55A; --barre-lent: #F59E0B; --barre-panne: #E5484D; --barre-vide: rgba(58, 28, 10, .12); --barre-avant: rgba(58, 28, 10, .05);
  --s-site: #E67A1E; --s-api: #3A1C0A; --s-paiement: #B5A08C; --s-mcp: #15803D;
  --mouvement: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171310; --carte: #221B16; --texte: #FFF8EF; --doux: #C2AE9A; --pale: #8A7462;
    --bord: rgba(255, 248, 239, .08); --pilule: #2C241D; --accent: #E67A1E; --accent-texte: #F0954A;
    --noir: #0F0C0A; --noir-cadre: rgba(255, 248, 239, .05);
    --ok: #4ADE80; --ok-fond: rgba(74, 222, 128, .12); --lent: #FBBF24; --lent-fond: rgba(251, 191, 36, .13); --panne: #F87171; --panne-fond: rgba(248, 113, 113, .13);
    --inconnu: #A8927C; --inconnu-fond: rgba(255, 248, 239, .07);
    --barre-ok: #2FB866; --barre-lent: #F5A524; --barre-panne: #EF5B5F; --barre-vide: rgba(255, 248, 239, .13); --barre-avant: rgba(255, 248, 239, .05);
    --s-api: #FFF8EF; --s-paiement: #8A7462; --s-mcp: #4ADE80;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--fond); color: var(--texte); font: 400 1rem/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, p { margin: 0; }
.st-evitement { position: absolute; left: -999rem; }
.st-evitement:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem 1rem; border-radius: 999rem; background: var(--noir); color: var(--noir-texte); }

/* ---------- En-tête ---------- */
.st-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 92%; max-width: 68rem; margin: 0 auto; padding: 1.5rem 0 0; }
.st-entete__gauche, .st-entete__droite { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.st-logo img { height: 2rem; width: auto; }
.st-logo--sombre { display: none !important; }
@media (prefers-color-scheme: dark) { .st-logo--clair { display: none !important; } .st-logo--sombre { display: block !important; } }
.st-badge { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 .75rem; border-radius: 999rem; background: var(--pilule); color: var(--texte); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.st-langue { display: grid; place-items: center; flex: none; width: 2.625rem; height: 2.625rem; border: .0625rem solid var(--bord); border-radius: 50%; background: var(--carte); font-size: .8125rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.st-langue:hover { background: var(--texte); color: var(--fond); }
.st-creer { display: inline-flex; align-items: center; gap: .45rem; height: 2.625rem; padding: 0 1.1rem 0 .95rem; border: .14rem solid var(--accent); border-radius: 999rem; font-size: .9375rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.st-creer svg { width: 1.1rem; height: 1.1rem; fill: var(--accent); transition: fill .2s; }
.st-creer:hover { background: var(--accent); color: #FFFFFF; }
.st-creer:hover svg { fill: #FFFFFF; }

/* ---------- Page ---------- */
.st-page { display: grid; gap: 1.25rem; width: 92%; max-width: 68rem; margin: 0 auto; padding: 2rem 0 3rem; }

/* États : pastilles */
.st-point { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.st-pilule { display: inline-flex; align-items: center; gap: .5rem; width: max-content; height: 2rem; padding: 0 .9rem; border-radius: 999rem; font-size: .875rem; font-weight: 600; }
.st-pilule--petite { height: 1.75rem; padding: 0 .75rem; font-size: .8125rem; }
.st-ok { color: var(--ok); } .st-lent { color: var(--lent); } .st-panne { color: var(--panne); } .st-inconnu { color: var(--inconnu); }
.st-pilule.st-ok { background: var(--ok-fond); } .st-pilule.st-lent { background: var(--lent-fond); } .st-pilule.st-panne { background: var(--panne-fond); } .st-pilule.st-inconnu { background: var(--inconnu-fond); }
.st-pilule.st-ok .st-point { box-shadow: 0 0 0 .25rem rgba(34, 165, 90, .18); }

/* Le bloc noir de l'état général (noir franc, sans lueur) */
.st-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2.75rem; border-radius: 2rem; background: var(--noir); color: var(--noir-texte); }
.st-hero .st-pilule.st-ok { background: rgba(74, 222, 128, .14); color: #4ADE80; }
.st-hero .st-pilule.st-lent { background: rgba(251, 191, 36, .15); color: #FBBF24; }
.st-hero .st-pilule.st-panne { background: rgba(248, 113, 113, .15); color: #F87171; }
.st-hero .st-pilule.st-inconnu { background: rgba(255, 248, 239, .1); color: var(--noir-doux); }
.st-hero h1 { margin-top: 1.1rem; font-size: 2.6rem; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.st-hero__chapeau { margin-top: .9rem; max-width: 34rem; color: var(--noir-doux); font-size: 1rem; line-height: 1.55; }
.st-hero__maj { margin-top: 1.4rem; color: rgba(255, 248, 239, .45); font-size: .8125rem; }
.st-chiffres { display: grid; gap: .5rem; padding: .5rem; border-radius: 1.5rem; background: var(--noir-cadre); border: .0625rem solid var(--noir-bord); }
.st-chiffre { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem 1rem; padding: 1rem 1.15rem; border-radius: 1.1rem; background: rgba(255, 248, 239, .04); }
.st-chiffre__libelle { color: var(--noir-doux); font-size: .8125rem; font-weight: 500; }
.st-chiffre strong { grid-row: span 2; color: #F0954A; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; text-align: right; }
.st-chiffre strong em { font-style: normal; font-size: 1rem; font-weight: 600; }
.st-chiffre small { color: rgba(255, 248, 239, .4); font-size: .75rem; }
.st-court { display: none; }

/* Les cartes */
.st-carte { overflow: hidden; border-radius: 1.75rem; background: var(--carte); border: .0625rem solid var(--bord); }
.st-carte__tete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.25rem 1.5rem; border-bottom: .0625rem solid var(--bord); }
.st-carte__tete h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }

/* Un service : nom et état, 90 barres, disponibilité */
.st-liste > .sv + .sv { border-top: .0625rem solid var(--bord); }
.sv { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: center; gap: 1.5rem; padding: .85rem 1.5rem; }
.sv__tete { all: unset; display: flex; align-items: center; gap: .8rem; min-width: 0; cursor: default; }
.sv__logo { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; background: var(--pilule); }
.sv__logo--crypto { object-fit: contain; background: none; }
.sv__logo--icone { display: grid; place-items: center; }
.sv__logo--icone svg { width: 1.15rem; height: 1.15rem; fill: var(--texte); }
.sv__nom { display: grid; gap: .1rem; min-width: 0; }
.sv__titre { overflow: hidden; font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sv__etat { display: flex; align-items: center; gap: .4rem; overflow: hidden; font-size: .8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sv__etat .st-point { width: .4rem; height: .4rem; }
.sv__dispo { display: none; }
.sv__chevron { display: none; }
.sv__corps { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; align-items: center; gap: .3rem 1rem; }
.sv__barres { display: flex; gap: .125rem; height: 2rem; }
.sv__barres i { flex: 1 1 0; min-width: 0; border-radius: .2rem; background: var(--barre-vide); transition: opacity .15s; }
.sv__barres i.ok { background: var(--barre-ok); }
.sv__barres i.lent { background: var(--barre-lent); }
.sv__barres i.panne { background: var(--barre-panne); }
.sv__barres i.avant { background: var(--barre-avant); }
.sv__barres i:hover { opacity: .7; }
.sv__pied { grid-column: 1; display: flex; justify-content: space-between; color: var(--pale); font-size: .75rem; }
.sv .sv__dispo-bureau { grid-row: 1; grid-column: 2; text-align: right; font-size: .9375rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Le graphique */
.st-legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--doux); font-size: .8125rem; }
.st-legende__item { display: inline-flex; align-items: center; gap: .4rem; }
.st-trait { width: 1rem; height: .2rem; border-radius: 999rem; }
.st-trait--site { background: var(--s-site); } .st-trait--api { background: var(--s-api); } .st-trait--paiement { background: var(--s-paiement); } .st-trait--mcp { background: var(--s-mcp); }
.st-courbe { padding: 1.25rem 1.5rem 1.25rem; }
.courbe { width: 100%; height: auto; overflow: visible; }
.courbe .grille { stroke: var(--bord); stroke-width: 1; }
.courbe .axe { fill: var(--pale); font: 500 11px "Inter", system-ui, sans-serif; }
.courbe .serie path { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.courbe .serie--site path { stroke: var(--s-site); } .courbe .serie--site circle { fill: var(--s-site); }
.courbe .serie--api path { stroke: var(--s-api); } .courbe .serie--api circle { fill: var(--s-api); }
.courbe .serie--paiement path { stroke: var(--s-paiement); } .courbe .serie--paiement circle { fill: var(--s-paiement); }
.courbe .serie--mcp path { stroke: var(--s-mcp); } .courbe .serie--mcp circle { fill: var(--s-mcp); }
.courbe circle { stroke: var(--carte); stroke-width: 1.5; }
.courbe--mobile { display: none; }

/* Incidents */
.st-incidents { padding: .5rem 1.5rem; }
.st-incident { display: flex; align-items: flex-start; gap: 1rem; padding: .9rem 0; }
.st-incident + .st-incident { border-top: .0625rem solid var(--bord); }
.st-incident__texte { display: grid; gap: .15rem; min-width: 0; }
.st-incident__texte strong { font-size: .9375rem; font-weight: 600; }
.st-incident__texte small { color: var(--doux); font-size: .8125rem; }
.st-vide { display: flex; align-items: center; gap: .6rem; padding: .9rem 0; color: var(--doux); font-size: .9375rem; }
.st-vide svg { flex: none; width: 1.25rem; height: 1.25rem; fill: var(--ok); }

/* L'info-bulle d'un jour */
.st-bulle { position: fixed; z-index: 20; transform: translate(-50%, calc(-100% - .6rem)); display: grid; gap: .1rem; min-width: 10rem; padding: .55rem .8rem; border-radius: .85rem; background: var(--noir); color: var(--noir-texte); font-size: .8125rem; line-height: 1.35; text-align: center; pointer-events: none; box-shadow: 0 .75rem 2rem -1rem rgba(0, 0, 0, .5); }
.st-bulle[hidden] { display: none; }
.st-bulle b { font-weight: 650; }
.st-bulle span { color: var(--noir-doux); }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .st-hero { grid-template-columns: 1fr; padding: 2.25rem; }
  .st-hero h1 { font-size: 2.25rem; }
  .sv { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
}

/* ---------- Téléphone : une ligne par service ; la toucher montre ses barres ---------- */
@media (max-width: 760px) {
  html { font-size: 4.2667vw; }
  .st-entete { padding-top: 1.1rem; gap: .5rem; }
  .st-entete__gauche, .st-entete__droite { gap: .45rem; }
  .st-logo img { height: 1.6rem; }
  .st-badge { height: 1.5rem; padding: 0 .55rem; font-size: .75rem; }
  .st-langue { width: 2.25rem; height: 2.25rem; font-size: .75rem; }
  .st-creer { height: 2.25rem; padding: 0 .8rem 0 .65rem; gap: .3rem; font-size: .8125rem; border-width: .125rem; }
  .st-creer svg { width: .95rem; height: .95rem; }
  .st-page { gap: .85rem; padding: 1.25rem 0 2rem; }
  .st-hero { gap: 1.4rem; padding: 1.5rem 1.25rem 1.25rem; border-radius: 1.5rem; }
  .st-hero h1 { margin-top: .9rem; font-size: 1.75rem; }
  .st-hero__chapeau { font-size: .9375rem; }
  .st-hero__maj { margin-top: 1rem; font-size: .75rem; }
  .st-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: .35rem; border-radius: 1.1rem; }
  .st-chiffre { grid-template-columns: 1fr; gap: .2rem; padding: .7rem .6rem; border-radius: .8rem; text-align: left; }
  .st-chiffre strong { grid-row: auto; order: 2; font-size: 1.35rem; text-align: left; }
  .st-chiffre strong em { font-size: .8125rem; }
  .st-chiffre__libelle { order: 1; font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-chiffre small { order: 3; font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-chiffre .st-long { display: none; }
  .st-chiffre .st-court { display: inline; }
  .st-carte { border-radius: 1.4rem; }
  .st-carte__tete { padding: 1rem 1.1rem; }
  .st-carte__tete h2 { font-size: 1rem; }
  .sv { display: block; padding: 0; }
  .sv__tete { display: flex; width: 100%; padding: .8rem 1.1rem; gap: .7rem; cursor: pointer; }
  .sv__logo { width: 2rem; height: 2rem; }
  .sv__titre { font-size: .875rem; }
  .sv__etat { font-size: .75rem; }
  .sv__nom { flex: 1 1 auto; }
  .sv__dispo { display: block; flex: none; font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
  .sv__chevron { display: block; flex: none; width: 1.1rem; height: 1.1rem; fill: var(--pale); transition: transform .25s var(--mouvement); }
  .sv.ouvert .sv__chevron { transform: rotate(180deg); }
  .sv__corps { display: none; grid-template-columns: 1fr; padding: 0 1.1rem 1rem; }
  .sv.ouvert .sv__corps { display: grid; }
  .sv .sv__dispo-bureau { display: none; }
  .sv__barres { height: 1.75rem; gap: .1rem; }
  .sv__barres i:nth-child(-n+45) { display: none; }
  .st-courbe { padding: 1rem 1.1rem; }
  .courbe--bureau { display: none; }
  .courbe--mobile { display: block; }
  .st-incidents { padding: .25rem 1.1rem; }
  .st-incident { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
