/* ============================================================
   theme-extra.css — compléments du thème Le Maestro
   N'altère PAS style.css (source de vérité du design).
   ------------------------------------------------------------
   Navbar « shrink on scroll » : plus haute en haut de page,
   se réduit (vers la taille d'origine) au défilement, à la
   manière du thème Grav par défaut (Quark).
   ============================================================ */

/* Logo de marque (images/logo_extra.svg : logo large avec texte) */
.site-header .brand-logo {
  display: block;
  width: auto;
  height: 52px;
  transition: height .25s ease;
}

/* État « tout en haut » : en-tête plus aéré */
.site-header .nav { transition: height .25s ease; height: 96px; }
.site-header .brand { transition: font-size .25s ease; }

/* État « défilé » : retour à la hauteur compacte d'origine (72px) + ombre légère */
.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(35, 64, 100, .08);
}
.site-header.scrolled .nav { height: 72px; }
.site-header.scrolled .brand { font-size: 1.2rem; }
.site-header.scrolled .brand-logo { height: 40px; }

/* Logos officiels « Swiss Made Software » (preuve sociale) */
.sms-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.sms-logos .sms-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
}
.sms-logos .sms-logo-digital { height: 40px; }

/* Badge « Made in Fribourg » (images/made-in-fribourg.svg) */
.made-logo {
  display: block;
  width: auto;
  height: 84px;
  margin-top: 4px;
}

/* ============================================================
   Messages de formulaire (plugin Form)
   Génère <div class="notices success green">…</div>.
   Le thème ne charge pas la CSS du plugin markdown-notices,
   d'où l'absence de couleur. On définit ici les variantes.
   ============================================================ */
.notices {
  margin: 1.25rem 0;
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 6px solid #5cb85c;
  background: #f1f9f1;
  color: #234064;
}
.notices p { margin: 0; }

.notices.green,
.notices.success {
  border-left-color: #5cb85c;
  background: #eef9ee;
  color: #2f6f33;
}
.notices.red,
.notices.error {
  border-left-color: #d9534f;
  background: #fdf3f3;
  color: #a23a37;
}
.notices.yellow,
.notices.warning {
  border-left-color: #f3c969;
  background: #fdf8ec;
  color: #8a6d1f;
}
.notices.blue {
  border-left-color: #5bc0de;
  background: #f1f8fb;
  color: #234064;
}

/* Accessibilité : pas d'animation si l'utilisateur la refuse */
@media (prefers-reduced-motion: reduce) {
  .site-header .nav,
  .site-header .brand,
  .site-header .brand-logo { transition: none; }
}
