/* BITS Solutions — jetons et composants communs (site + portail) */
:root {
  --blue: #1446A0;      /* bleu Ogooué, couleur principale du logo */
  --blue-deep: #0D3478;
  --green: #0E7C3A;     /* vert forêt */
  --sun: #F2C200;       /* jaune soleil, réservé au filet tricolore */
  --ink: #0A1F3D;       /* encre bleu nuit */
  --ink-2: #44546C;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --line: #D5DCE6;
  --red: #B42318;
  --amber: #A15C00;
  --display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r-s: 4px;
  --r-m: 10px;
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: condensed; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { color: var(--ink-2); }
code { font-size: .92em; background: #E8EDF4; padding: .1em .35em; border-radius: var(--r-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.2em; border: 2px solid var(--blue); border-radius: var(--r-s);
  background: var(--blue); color: var(--white); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn-ghost, .btn-quiet { background: transparent; color: var(--blue); }
.btn-ghost:hover, .btn-quiet:hover { background: #E6EDF8; color: var(--blue-deep); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8E1B12; border-color: #8E1B12; }
.btn-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.btn-link.danger, .danger { color: var(--red); }

/* Formulaires */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .55em .75em; font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1px solid #A9B5C6; border-radius: var(--r-s);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(20, 70, 160, .25); border-color: var(--blue); }
input[readonly], textarea[readonly] { background: var(--paper); }
.form .check { display: flex; align-items: center; gap: .6rem; font-weight: 400; }
.check input { width: 20px; min-height: 20px; }
.hp { position: absolute; left: -9999px; }

/* Messages */
.flash { padding: .75rem 1rem; border-radius: var(--r-s); border-left: 4px solid; background: var(--white); }
.flash-ok { border-color: var(--green); }
.flash-error { border-color: var(--red); color: #6B140D; }
.flash-info { border-color: var(--blue); }

/* Pastilles de disponibilité */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: middle; }
.dot-ok { background: #1FA34A; box-shadow: 0 0 0 3px rgba(31, 163, 74, .2); }
.dot-warn { background: #E59500; }
.dot-down { background: var(--red); }
.dot-unknown { background: transparent; border: 2px solid #8C99AD; }

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