/* ============================================================
 * MARQUE (lot 16) — logo en image et bandeau d'annonce
 * Chargée par toutes les pages du thème (registre_tete_commune()).
 * Le logo remplace le carré « R » ; sa hauteur suit celle du carré
 * de chaque page. Sur les fonds sombres (barre latérale, panneau des
 * pages de connexion), il est posé sur une pastille blanche pour rester
 * lisible quelles que soient ses couleurs.
 * ============================================================ */

.mark-img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
}

header .mark-img {
  height: 38px;
}

.brand .mark-img {
  height: 44px;
}

/* Barre latérale (étroite) : le nom passe sous le logo. */
.app-brand:has(> .mark-img) {
  flex-wrap: wrap;
  row-gap: 10px;
}

.app-brand:has(> .mark-img) > .mark-img + div {
  flex-basis: 100%;
}

.app-brand .mark-img {
  height: 36px;
  max-width: 160px;
}

.app-brand .mark-img,
.brand .mark-img {
  box-sizing: content-box;
  padding: 4px 6px;
  border-radius: 8px;
  background: #fff;
}

/* ── Bandeau d'annonce ── */
.registre-bandeau {
  margin: 0 0 18px;
  padding: 12px 18px;
  border: 1px solid var(--amber-78);
  border-radius: 8px;
  background: var(--amber-95);
  color: var(--amber-20);
  font-size: 14px;
  line-height: 1.5;
}

.registre-bandeau p {
  margin: 0;
}

/* Pages publiques : bandeau pleine largeur, en haut de la page. */
body > .registre-bandeau {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  text-align: center;
}

@media print {
  .registre-bandeau {
    display: none;
  }
}
