/* AZUR7 Mission Control — thème commun (identité AZUR7 : marine, azur, coins coupés, Inter). */
@font-face { font-family: "Inter"; src: url("inter_regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter_semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter_bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --fond: #020D1A;
  --barre: #06182A;
  --carte: #0A2238;
  --carte2: #0D2A45;
  --ligne: #163552;
  --azur: #12B4F6;
  --azur-fonce: #0E8FC4;
  --texte: #E6F1FA;
  --gris: #8FA6BA;
  --vert: #2ECC71;
  --rouge: #E5484D;
  --jaune: #F5A524;
  --coin: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --coin-petit: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 100% -10%, rgba(18,180,246,.10), transparent 60%), var(--fond);
  color: var(--texte);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- barre du haut ---------- */
.a7-barre {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px;
  padding: 10px 24px 0;
  background: rgba(6,24,42,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.a7-marque { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.a7-marque img { height: 18px; display: block; }
.a7-marque span {
  color: var(--texte); font-weight: 700; font-size: 12px; letter-spacing: .28em;
  padding-left: 12px; border-left: 1px solid var(--ligne);
}
.a7-nav { order: 3; flex-basis: 100%; display: flex; align-items: center; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.a7-nav::-webkit-scrollbar { display: none; }
.a7-nav a {
  color: var(--gris) !important; text-decoration: none !important; white-space: nowrap;
  padding: 9px 10px 11px; font-size: 13.5px; font-weight: 600;
}
.a7-nav a:hover { color: var(--texte) !important; background: var(--carte); }
.a7-nav a.actif { color: var(--texte) !important; background: var(--carte); box-shadow: inset 0 -2px 0 var(--azur); }
.a7-nav .a7-admin { color: var(--azur) !important; }
.a7-compte { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; font-size: 13px; color: var(--gris); }
.a7-compte b { color: var(--texte); font-weight: 600; letter-spacing: .04em; }
.a7-compte .a7-role { color: var(--azur); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.a7-compte a { color: var(--gris) !important; text-decoration: none !important; padding: 6px 10px; border: 1px solid var(--ligne); clip-path: var(--coin-petit); }
.a7-compte a:hover { color: var(--texte) !important; border-color: var(--azur); }
.a7-bande { height: 2px; background: linear-gradient(90deg, var(--azur), transparent 70%); }

@media (max-width: 700px) {
  .a7-barre { padding: 10px 16px 0; gap: 8px 12px; }
  .a7-marque span { display: none; }
  .a7-compte { gap: 6px; }
  table { display: block; overflow-x: auto; white-space: nowrap; scrollbar-color: var(--ligne) var(--carte); scrollbar-width: thin; }
}

/* ---------- contenu (classes déjà utilisées par les pages) ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
@media (max-width: 600px) { .wrap { padding: 20px 16px 48px; } }

h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 700; margin: 28px 0 12px; color: var(--azur); text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
p { margin: 0 0 12px; }

a { color: var(--azur); }
a:visited { color: #6FCFF8; }
a:hover { color: #fff; }

.card {
  background: var(--carte); border: 1px solid var(--ligne);
  padding: 20px 22px; margin-bottom: 18px;
  clip-path: var(--coin);
}
.small, small { color: var(--gris); font-size: 13px; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--carte); border: 1px solid var(--ligne); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
th { background: var(--barre); color: var(--gris); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: rgba(18,180,246,.04); }
.card table { background: transparent; }

input, select, textarea {
  width: 100%; padding: 10px 12px;
  background: var(--fond); color: var(--texte);
  border: 1px solid var(--ligne); font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--azur); box-shadow: 0 0 0 3px rgba(18,180,246,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--azur); }
input[type=file] { padding: 8px; }
label { color: var(--gris); font-size: 13px; font-weight: 600; }

button, .bouton, input[type=submit] {
  display: inline-block; cursor: pointer;
  background: var(--azur); color: #021220 !important;
  border: 0; padding: 10px 18px;
  font: 700 14px "Inter", system-ui, sans-serif; text-decoration: none !important;
  clip-path: var(--coin-petit);
}
button:hover, .bouton:hover, input[type=submit]:hover { background: #3DC4FA; }
button.secondaire, button.discret { background: var(--ligne); color: var(--texte) !important; }
button.danger { background: var(--rouge); color: #fff !important; }

ul { margin: 0; padding-left: 22px; }
hr { border: 0; border-top: 1px solid var(--ligne); margin: 20px 0; }
code, pre { font-family: ui-monospace, monospace; background: #010810; border: 1px solid var(--ligne); }
pre { padding: 12px; overflow: auto; }

.topbar-right { float: none; }
.clearfix::after { content: ""; display: block; clear: both; }

.a7-pied { max-width: 1200px; margin: 0 auto; padding: 20px 24px 32px; color: var(--gris); font-size: 12px; border-top: 1px solid var(--ligne); letter-spacing: .04em; }

/* ---------- pages d'accueil et de connexion ---------- */
.a7-centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.a7-boite {
  width: 100%; max-width: 420px; padding: 36px 32px;
  background: var(--carte); border: 1px solid var(--ligne);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.a7-boite .a7-logo { height: 22px; display: block; margin-bottom: 6px; }
.a7-boite .a7-sous { color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .3em; margin-bottom: 28px; }
.a7-boite label { display: block; margin-bottom: 6px; }
.a7-boite input { margin-bottom: 16px; padding: 12px; }
.a7-boite button, .a7-boite .bouton { width: 100%; padding: 13px; font-size: 15px; text-align: center; }
.a7-erreur { color: #FF8A8E; background: rgba(229,72,77,.1); border-left: 3px solid var(--rouge); padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }
.a7-mention { color: var(--gris); font-size: 12px; margin-top: 22px; text-align: center; }
.a7-mention a { color: var(--gris); }

/* Rapports TYPHON */
pre.rapport { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
details.card > summary { cursor: pointer; }
