/* Switcher chrome CSS -- loaded on every one of the 5 pilot pages
   (small, framework-free, present regardless of which carnet theme is
   active, so it must not depend on any theme's variables). */
.massard-switcher-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  font-family: -apple-system, "Segoe UI", sans-serif;
}

.massard-switcher-gear {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 48px;
  height: 48px;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  font-size: 1.3rem;
  cursor: pointer;
  color: #111;
}
.massard-switcher-gear:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}
.massard-switcher-gear-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.massard-switcher-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(92vw, 640px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  padding: 1rem;
}

.massard-switcher-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .massard-switcher-cards { grid-template-columns: 1fr; }
}

.massard-switcher-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 0.75rem;
  background: #fafafa;
  cursor: pointer;
}
.massard-switcher-card:focus-visible,
.massard-switcher-card[tabindex="0"]:focus {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}
.massard-switcher-card-thumb {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 6px;
}
.theme-thumb-cahier-vivant { background: linear-gradient(135deg, #f6f1e7 50%, #4f6652 50%); }
.theme-thumb-dossier-voyage { background: linear-gradient(135deg, #fbf4e6 50%, #0f6d4c 50%); }
.theme-thumb-carnet-terrain { background: linear-gradient(135deg, #f7f4ec 50%, #a9611f 50%); }
.massard-switcher-card-name { font-weight: 700; font-size: 0.92rem; color: #111; }
.massard-switcher-card-desc { font-size: 0.78rem; color: #444; }
