:root {
    color-scheme: dark;
    --nuit: #070b11;
    --fond: #0b1119;
    --surface: rgba(17, 24, 33, 0.78);
    --surface-pleine: #111821;
    --surface-haute: #172130;
    --texte: #eef3f8;
    --discret: #9aa8b8;
    --pale: #6b7a8c;
    --filet: rgba(148, 170, 196, 0.16);
    --filet-fort: rgba(148, 170, 196, 0.3);
    --accent: #22d3ee;
    --accent-doux: rgba(34, 211, 238, 0.14);
    --violet: #8b5cf6;
    --ok: #4ade80;
    --alerte: #fbbf24;
    --panne: #f87171;
    --pause: #8494a7;
    --vide: rgba(148, 170, 196, 0.14);
    /* Couleurs des sites dans les graphiques, validées pour le fond sombre */
    --serie-1: #3987e5;
    --serie-2: #d95926;
    --serie-3: #199e70;
    --serie-4: #c98500;
    --serie-5: #d55181;
    --serie-6: #008300;
    --serie-7: #9085e9;
    --serie-8: #e66767;
    --serie-0: #6b7a8c;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --rayon: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--nuit); }

body {
    min-height: 100vh;
    background: var(--nuit);
    color: var(--texte);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Lueurs et quadrillage du fond, qui dérivent lentement */
.fond {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(60vmax 40vmax at 15% -10%, rgba(34, 211, 238, 0.13), transparent 70%),
        radial-gradient(50vmax 40vmax at 100% 10%, rgba(139, 92, 246, 0.12), transparent 70%),
        radial-gradient(60vmax 50vmax at 50% 120%, rgba(57, 135, 229, 0.10), transparent 70%),
        var(--nuit);
}

.fond::before {
    content: "";
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(148, 170, 196, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 170, 196, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(closest-side, #000 30%, transparent);
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
    animation: derive 60s linear infinite;
}

@keyframes derive { to { transform: translate(48px, 48px); } }

a { color: inherit; }

.entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 0;
}

.marque {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-decoration: none;
}

.marque__signe {
    width: 34px;
    height: 34px;
    padding: 5px;
    border: 1px solid var(--filet-fort);
    border-radius: 10px;
    background: var(--surface-pleine);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

.marque__signe .marque__fixe { opacity: 0.3; animation: none; }

.marque__signe path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    animation: trace 2.8s ease-in-out infinite;
}

@keyframes trace {
    0% { stroke-dashoffset: 60; }
    45%, 70% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -60; }
}

.menu { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.menu a, .lien {
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--discret);
    text-decoration: none;
}
.menu a:hover, .lien:hover { color: var(--texte); background: var(--accent-doux); }
.menu a[aria-current] { color: var(--texte); background: var(--surface-haute); box-shadow: inset 0 0 0 1px var(--filet-fort); }

.lien { background: none; border: 0; font: inherit; cursor: pointer; }

.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 80px; }

h1 {
    font-size: clamp(1.9rem, 5.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 4px; }

.discret { color: var(--discret); font-size: 0.95rem; overflow-wrap: anywhere; }
.retour { margin-bottom: 12px; font-size: 0.95rem; }
.retour a { color: var(--discret); text-decoration: none; }
.retour a:hover { color: var(--accent); }
.intertitre { margin: 32px 0 12px; font-size: 1.3rem; }

a:focus-visible, .bouton:focus-visible, .lien:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Scène 3D --- */

.scene {
    position: relative;
    height: clamp(440px, 64vh, 620px);
    margin: 0 -16px 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--filet);
    background: radial-gradient(ellipse at 60% 45%, rgba(34, 211, 238, 0.08), transparent 60%);
    touch-action: pan-y;
}

@media (min-width: 900px) {
    .scene { margin: 0 0 24px; border: 1px solid var(--filet); border-radius: 24px; }
}

.scene__toile { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scene__toile.est-survole { cursor: pointer; }
.scene__toile:active { cursor: grabbing; }

.scene__texte {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    max-width: 460px;
    pointer-events: none;
}

.scene__texte h1 { margin: 6px 0 8px; text-shadow: 0 2px 24px rgba(7, 11, 17, 0.9); }
.scene__action { margin-top: 16px; pointer-events: auto; }

.surtitre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--discret);
}

.pastille { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.pastille::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: onde 2s ease-out infinite;
}
.pastille--alerte { background: var(--alerte); }
.pastille--panne { background: var(--panne); }

@keyframes onde { to { transform: scale(3.2); opacity: 0; } }

.scene__aide {
    position: absolute;
    left: 24px;
    bottom: 18px;
    font-size: 0.8rem;
    color: var(--pale);
}

.scene__bulle {
    position: absolute;
    z-index: 2;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--filet-fort);
    border-radius: 12px;
    background: rgba(11, 17, 25, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.88rem;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 18px));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.scene__bulle b { display: block; font-size: 0.95rem; }
.scene__bulle span { color: var(--discret); font-variant-numeric: tabular-nums; }

.fil {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: min(300px, calc(100% - 40px));
    padding: 12px 14px;
    border: 1px solid var(--filet);
    border-radius: 14px;
    background: rgba(11, 17, 25, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fil__titre {
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.fil ol { list-style: none; display: grid; gap: 3px; }

.fil__ligne {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: var(--discret);
}
.fil__ligne time { font-family: var(--mono); color: var(--pale); }
.fil__ligne span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil__ligne b { font-weight: 600; color: var(--ok); }
.fil__ligne--panne b { color: var(--panne); }
.fil__ligne.est-neuf { animation: arrivee 0.7s cubic-bezier(.2, .8, .2, 1); }

@keyframes arrivee {
    from { opacity: 0; transform: translateY(-8px); background: var(--accent-doux); }
    to { opacity: 1; transform: none; background: transparent; }
}

@media (max-width: 640px) {
    .scene { height: 560px; }
    .scene__texte { top: 18px; left: 16px; right: 16px; }
    .scene__aide { display: none; }
    .fil { left: 16px; right: 16px; bottom: 14px; width: auto; }
    .fil ol li:nth-child(n+4) { display: none; }
}

/* --- Indicateurs --- */

.indicateurs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.indicateurs--cinq { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.indicateur {
    position: relative;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid var(--filet);
    border-radius: var(--rayon);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: monte 0.7s cubic-bezier(.2, .8, .2, 1) both;
}

.indicateur:nth-child(2) { animation-delay: 0.07s; }
.indicateur:nth-child(3) { animation-delay: 0.14s; }
.indicateur:nth-child(4) { animation-delay: 0.21s; }
.indicateur:nth-child(5) { animation-delay: 0.28s; }

.indicateur::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.indicateur__nom { font-size: 0.85rem; color: var(--discret); }
.indicateur__valeur {
    margin: 2px 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.indicateur__note { font-size: 0.8rem; color: var(--pale); }

@keyframes monte { from { opacity: 0; transform: translateY(14px); } }

/* --- Cartes --- */

.carte {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--filet);
    border-radius: var(--rayon);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.carte--etroite { max-width: 420px; margin: 56px auto 0; }

.carte__tete {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
}

.deux-colonnes { display: grid; gap: 16px; }
.deux-colonnes .carte { margin-bottom: 0; align-content: start; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1fr 1fr; margin-bottom: 16px; } }
@media (max-width: 899px) { .deux-colonnes { margin-bottom: 16px; } }

.onglets {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--filet);
    border-radius: 999px;
    background: rgba(7, 11, 17, 0.6);
}

.onglets a {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--discret);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.onglets a:hover { color: var(--texte); }
.onglets a[aria-current] { color: var(--nuit); background: var(--accent); font-weight: 600; }

/* --- Graphiques --- */

.legende { display: flex; flex-wrap: wrap; gap: 6px; }

.legende button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid var(--filet);
    border-radius: 999px;
    background: transparent;
    color: var(--texte);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}
.legende button:hover { border-color: var(--filet-fort); }
.legende button[aria-pressed="false"] { opacity: 0.45; }
.legende button[aria-pressed="false"] .puce { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }

.puce {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 3px;
    background: var(--c);
}
.legende .puce { margin-right: 0; }

.serie-0 { --c: var(--serie-0); }
.serie-1 { --c: var(--serie-1); }
.serie-2 { --c: var(--serie-2); }
.serie-3 { --c: var(--serie-3); }
.serie-4 { --c: var(--serie-4); }
.serie-5 { --c: var(--serie-5); }
.serie-6 { --c: var(--serie-6); }
.serie-7 { --c: var(--serie-7); }
.serie-8 { --c: var(--serie-8); }

.graphique { position: relative; min-height: 280px; }
.graphique--bande { min-height: 34px; }
.graphique--barres { min-height: 220px; }
.graphique svg { display: block; width: 100%; overflow: visible; }
.graphique__titre { margin-top: 4px; font-size: 0.82rem; color: var(--discret); }

.axe text { fill: var(--pale); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.axe line { stroke: var(--filet); stroke-width: 1; }
.axe .axe__base { stroke: var(--filet-fort); }

.trace {
    fill: none;
    stroke: var(--c);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: opacity 0.25s;
}
.trace.est-dessine { animation: dessin 1.2s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes dessin { from { stroke-dashoffset: var(--longueur); } }
.aire { fill: url(#degrade-aire); opacity: 0.9; animation: apparait 1.2s ease both; }
@keyframes apparait { from { opacity: 0; } }
.est-estompe { opacity: 0.12; }

.panne-zone { fill: var(--panne); opacity: 0.16; }
.repere { stroke: var(--texte); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.5; }
.point { fill: var(--c); stroke: var(--surface-pleine); stroke-width: 2; }

.barre { fill: var(--accent); transition: opacity 0.2s; }
.barre:hover, .barre.est-actif { opacity: 0.75; }
.barre--ok { fill: var(--ok); }
.barre--alerte { fill: var(--alerte); }
.barre--panne { fill: var(--panne); }
.barre--vide { fill: var(--vide); }
.barre.est-pousse { animation: pousse 0.8s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: bottom; }
@keyframes pousse { from { transform: scaleY(0); } }

.cible { fill: transparent; }

.info-bulle {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    min-width: 170px;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid var(--filet-fort);
    border-radius: 12px;
    background: rgba(11, 17, 25, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    font-size: 0.82rem;
    pointer-events: none;
}
.info-bulle__titre { margin-bottom: 4px; color: var(--discret); }
.info-bulle__ligne { display: flex; align-items: center; gap: 6px; }
.info-bulle__ligne span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-bulle__ligne b { font-variant-numeric: tabular-nums; font-weight: 600; }
.info-bulle__ligne .puce { margin-right: 0; }

.tableau-chiffres summary { font-size: 0.88rem; color: var(--discret); cursor: pointer; }
.tableau-chiffres summary:hover { color: var(--texte); }
.tableau-chiffres .defilant { max-height: 320px; margin-top: 8px; overflow: auto; }

/* --- Sites --- */

.sites {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.site {
    position: relative;
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--filet);
    border-radius: var(--rayon);
    background: var(--surface);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), border-color 0.25s, box-shadow 0.25s;
}

.site::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--ok);
    box-shadow: 0 0 16px var(--ok);
}
.site--alerte::after { background: var(--alerte); box-shadow: 0 0 16px var(--alerte); }
.site--panne::after { background: var(--panne); box-shadow: 0 0 16px var(--panne); animation: clignote 1.4s ease-in-out infinite; }
.site--pause::after { background: var(--pause); box-shadow: none; }

@keyframes clignote { 50% { opacity: 0.35; } }

.site:hover { transform: translateY(-3px); border-color: var(--filet-fort); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.site--panne { border-color: rgba(248, 113, 113, 0.4); }

.site__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site__nom { display: inline-flex; align-items: center; font-size: 1.08rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.site__url { color: var(--pale); font-size: 0.85rem; overflow-wrap: anywhere; }

.courbe { display: block; width: 100%; height: 44px; overflow: visible; }
.courbe__trait { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

.etat {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
}

.etat::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.etat--ok { color: var(--ok); }
.etat--alerte { color: var(--alerte); background: rgba(251, 191, 36, 0.1); }
.etat--panne { color: var(--panne); background: rgba(248, 113, 113, 0.12); }
.etat--panne::before { animation: clignote 1s ease-in-out infinite; }
.etat--pause { color: var(--pause); background: rgba(132, 148, 167, 0.12); }

.bande { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.case { height: 16px; border-radius: 3px; background: var(--vide); }
.case--ok { background: linear-gradient(var(--ok), #22a35a); opacity: 0.85; }
.case--panne { background: var(--panne); box-shadow: 0 0 8px rgba(248, 113, 113, 0.6); }

.chiffres { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--discret); font-size: 0.85rem; }
.chiffres b { color: var(--texte); font-weight: 650; font-variant-numeric: tabular-nums; }

/* --- Fiche d'un site --- */

.fiche-tete {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 8px 0;
}

.fiche-tete__texte { min-width: 0; }
.fiche-tete__texte h1 { margin-bottom: 4px; }
.fiche-tete__etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }

.orbe {
    --o: var(--ok);
    position: relative;
    flex: none;
    width: 112px;
    height: 112px;
}
.orbe--alerte { --o: var(--alerte); }
.orbe--panne { --o: var(--panne); }
.orbe--pause { --o: var(--pause); }

.orbe b {
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--o) 45%, rgba(0, 0, 0, 0.6));
    box-shadow: 0 0 30px var(--o), 0 0 60px var(--o);
    animation: bat 2.4s ease-in-out infinite;
}

.orbe i {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--o);
    border-radius: 50%;
    opacity: 0.55;
    animation: tourne 6s linear infinite;
}
.orbe i:nth-child(1) { transform: rotateX(70deg); }
.orbe i:nth-child(2) { inset: 8%; animation-duration: 9s; animation-direction: reverse; opacity: 0.35; }
.orbe i:nth-child(3) { inset: 18%; border-style: dashed; animation-duration: 14s; opacity: 0.4; }
.orbe--panne i { animation-duration: 2s; }

@keyframes tourne { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes bat { 50% { transform: scale(1.12); } }

@media (max-width: 560px) {
    .fiche-tete { gap: 16px; }
    .orbe { width: 76px; height: 76px; }
}

/* --- Formulaires, messages, tableaux --- */

.formulaire { display: grid; gap: 12px; justify-items: start; }
.formulaire label { display: grid; gap: 4px; width: 100%; font-size: 0.9rem; color: var(--discret); }

@media (min-width: 760px) {
    .formulaire--ligne { grid-template-columns: 1fr 1.6fr auto; align-items: end; }
}

input:not([type=hidden]) {
    width: 100%;
    padding: 10px 12px;
    background: rgba(7, 11, 17, 0.7);
    border: 1px solid var(--filet-fort);
    border-radius: 10px;
    color: var(--texte);
    font: inherit;
    font-size: 1rem;
}
input:not([type=hidden]):focus { border-color: var(--accent); }

.bouton {
    padding: 10px 18px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--nuit);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
}

a.bouton { display: inline-block; text-decoration: none; }
.bouton:hover { filter: brightness(1.1); box-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }
.bouton--lumineux { box-shadow: 0 0 30px rgba(34, 211, 238, 0.3); }
.bouton--discret { background: transparent; color: var(--texte); border-color: var(--filet-fort); }
.bouton--discret:hover { box-shadow: none; background: var(--accent-doux); }
.bouton--danger { background: var(--panne); border-color: var(--panne); }
.bouton--danger:hover { box-shadow: 0 0 24px rgba(248, 113, 113, 0.4); }

.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; margin-top: 12px; }
.suppression summary { padding: 10px 0; color: var(--panne); cursor: pointer; }
.suppression .discret { margin-bottom: 8px; }

.message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--filet);
    border-left-width: 3px;
    border-radius: 10px;
    background: var(--surface);
}
.carte .message { margin-bottom: 4px; }
.message--ok { border-color: var(--ok); }
.message--alerte { border-color: var(--alerte); }
.message--panne { border-color: var(--panne); }

.liste { list-style: none; display: grid; gap: 10px; }
.liste li {
    display: grid;
    padding: 10px 12px;
    border: 1px solid var(--filet);
    border-left: 3px solid var(--panne);
    border-radius: 10px;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.defilant { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { color: var(--discret); font-weight: 500; text-align: left; white-space: nowrap; }
th, td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--filet); }
td { font-variant-numeric: tabular-nums; }

/* --- Rapports --- */

.titre-page { margin: 8px 0 20px; }
.titre-page h1 { margin-bottom: 8px; }
.titre-page .discret { max-width: 70ch; }
.vide { margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.petit { font-size: 0.82rem; }
.aide { font-size: 0.8rem; color: var(--pale); }
.retour-lien { color: var(--discret); font-size: 0.9rem; }

.destinataires { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.destinataires .carte { margin-bottom: 0; }
.destinataire .actions { margin-top: 0; }

.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.etiquettes li {
    padding: 3px 10px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    background: var(--accent-doux);
    font-size: 0.82rem;
}

.choix-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
}
.choix-sites legend { margin-bottom: 6px; font-size: 0.9rem; color: var(--discret); }

.formulaire .case-a-cocher {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--filet-fort);
    border-radius: 10px;
    background: rgba(7, 11, 17, 0.5);
    color: var(--texte);
    cursor: pointer;
}
.case-a-cocher:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.case-a-cocher input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.case-a-cocher span { display: grid; min-width: 0; }
.case-a-cocher b { font-weight: 600; overflow-wrap: anywhere; }
.case-a-cocher small { color: var(--pale); font-size: 0.8rem; overflow-wrap: anywhere; }

.confirmer summary { padding: 10px 0; color: var(--accent); cursor: pointer; }
.confirmer .discret { margin-bottom: 8px; }

@media (max-width: 480px) {
    .menu { gap: 0; font-size: 0.88rem; }
    .menu a, .lien { padding: 6px 9px; }
    .indicateurs, .indicateurs--cinq { grid-template-columns: 1fr 1fr; gap: 10px; }
    .indicateur { padding: 14px; }
    .indicateurs--cinq .indicateur:first-child { grid-column: 1 / -1; }
    .onglets { display: flex; flex-wrap: nowrap; width: 100%; }
    .onglets a { flex: 1; padding: 5px 4px; text-align: center; white-space: nowrap; font-size: 0.8rem; }
    .carte { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Historique des notifications */
.notifications { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.notifications .carte { margin-bottom: 0; }
.contenu-mail summary { padding: 6px 0; color: var(--accent); cursor: pointer; }
.contenu-mail pre { max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--filet); border-radius: 10px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.onglets + .onglets { margin-top: 8px; }
.notifications, .onglets + .vide { margin-top: 12px; }
@media (max-width: 560px) { .menu { flex-wrap: wrap; } }
