/* Plaine Altitude, maquettes : panneau « Réglages » (outil de travail, jamais sur la boutique). Voir js/reglages.js.
   En bas à gauche, au-dessus d'une éventuelle barre fixe du bas (même décalage --an-bas que l'outil d'annotations). */
.rg, .rg-panneau { font-family: var(--font-texte, system-ui, sans-serif); box-sizing: border-box; }
.rg-panneau[hidden], .rg-message[hidden] { display: none !important; }
.rg__bouton { position: fixed; left: 1rem; bottom: var(--an-bas, 1rem); z-index: 2147483000; display: inline-flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.9rem;
  border: 4px solid #fff; box-sizing: content-box; border-radius: 12px; background: var(--pa-noir, #292728); color: var(--pa-turquoise, #20c4c3); font: 700 0.85rem/1 var(--font-texte, system-ui);
  cursor: pointer; box-shadow: 0 10px 30px rgba(41,39,40,.25); }
.rg__bouton svg { width: 1.1rem; height: 1.1rem; }
.rg__bouton[aria-expanded="true"] { background: var(--pa-turquoise, #20c4c3); color: var(--pa-noir, #292728); }

.rg-panneau { position: fixed; left: 1rem; top: 1rem; bottom: calc(var(--an-bas, 1rem) + 3.9rem); z-index: 2147483000; display: flex; flex-direction: column; width: min(25rem, calc(100vw - 2rem));
  border-radius: 14px; background: #fff; color: #292728; box-shadow: 0 20px 50px rgba(41,39,40,.3); overflow: hidden; }
.rg-panneau__tete { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem 0.2rem; font-size: 0.95rem; }
.rg-fermer { width: 2rem; height: 2rem; border: 0; border-radius: 6px; background: #f1f4f6; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.rg-note { margin: 0; padding: 0 1rem 0.5rem; font-size: 0.75rem; line-height: 1.45; color: #6b6f73; }
.rg-liste { flex: 1; overflow: auto; padding: 0 0.75rem 0.5rem; }
.rg-option { margin: 0.45rem 0 0; padding: 0.7rem 0.75rem 0.75rem; border: 1px solid rgba(41,39,40,.12); border-radius: 10px; }
.rg-option legend { float: left; display: flex; align-items: center; gap: 0.45rem; width: 100%; margin-bottom: 0.45rem; padding: 0; }
.rg-ref { display: grid; place-items: center; flex: none; min-width: 1.45rem; height: 1.45rem; border-radius: 6px; background: var(--pa-noir, #292728); color: var(--pa-turquoise, #20c4c3); font: 800 0.72rem/1 system-ui, sans-serif; }
.rg-titre { font-size: 0.86rem; font-weight: 800; }
.rg-option legend small { margin-left: auto; padding: 0.15rem 0.45rem; border-radius: 999px; background: #f1f4f6; font-size: 0.68rem; font-weight: 700; color: #6b6f73; white-space: nowrap; }
.rg-aide { clear: both; margin: 0 0 0.45rem; font-size: 0.74rem; line-height: 1.4; color: #6b6f73; }
.rg-choix { clear: both; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.rg-choix input { position: absolute; opacity: 0; pointer-events: none; }
.rg-choix span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.6rem; border-radius: 7px; border: 1px solid rgba(41,39,40,.2); font-size: 0.78rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.rg-choix span:hover { border-color: #292728; }
.rg-choix input:checked + span { background: #292728; border-color: #292728; color: #fff; }
.rg-choix input:focus-visible + span { outline: 2px solid var(--pa-turquoise, #20c4c3); outline-offset: 2px; }
.rg-choix i { padding: 0.1rem 0.35rem; border-radius: 4px; background: #dff5f5; color: #0b6261; font-size: 0.64rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.rg-choix input:checked + span i { background: var(--pa-turquoise, #20c4c3); color: #292728; }
.rg-pied { display: flex; gap: 0.4rem; padding: 0.7rem 0.75rem; border-top: 1px solid rgba(41,39,40,.1); }
.rg-pied button { height: 2.4rem; padding: 0 0.8rem; border-radius: 8px; border: 1px solid rgba(41,39,40,.2); background: #fff; font: 700 0.8rem/1 var(--font-texte, system-ui); cursor: pointer; }
.rg-pied .rg-enregistrer { flex: 1; border-color: #292728; background: #292728; color: #fff; }
.rg-pied button:disabled { opacity: .5; }
.rg-message { margin: 0; padding: 0 0.75rem 0.75rem; font-size: 0.78rem; line-height: 1.4; color: #1c6b3a; }
/* Choix en vignettes (photos) et intertitres de groupe (2026-11-13, accueil de l'école) */
.rg-section { margin: 1rem 0.1rem 0.1rem; font: 800 0.7rem/1 var(--font-texte, system-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pa-turquoise-text, #0b7a79); }
.rg-choix--vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.rg-choix--vignettes span { display: grid; gap: 0.3rem; padding: 0.25rem 0.25rem 0.4rem; font-size: 0.7rem; text-align: center; }
.rg-choix--vignettes img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; }
.rg-choix--vignettes i { justify-self: center; }
@media (max-width: 639px) {
  .rg__bouton { left: 0.6rem; height: 2.3rem; padding: 0 0.7rem; font-size: 0.8rem; }
  .rg-panneau { left: 0.5rem; right: 0.5rem; top: 0.5rem; width: auto; }
}
@media print { .rg { display: none !important; } }
