/* panneau.css : un outil ouvert, par-dessus l'accueil (plein écran sur téléphone). */
body.panneau-ouvert { overflow: hidden; }

.panneau {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  background: var(--voile);
  animation: fondu var(--duree) var(--courbe) both;
}

.panneau-boite {
  display: flex;
  flex-direction: column;
  gap: var(--espace-2);
  width: 100%;
  max-width: var(--mesure-panneau);
  min-height: 100%;
  padding: var(--panneau-marge-interieure) var(--marge-laterale) var(--espace-4);
  background: var(--fond-bloc);
  text-align: left;
  animation: montee var(--duree) var(--courbe) both;
}

.lien-retour {
  display: inline-flex;
  align-items: center;
  gap: var(--espace-1);
  min-height: var(--pilule-hauteur);
  color: var(--bleu-lien);
  font-weight: var(--graisse-semi);
  text-decoration: none;
}

.panneau-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-2);
}
.panneau-entete h2 { font-size: var(--taille-titre); font-weight: var(--graisse-forte); }
.panneau-texte { color: var(--texte-secondaire); }
.panneau-corps { display: flex; flex-direction: column; gap: var(--espace-2); }

@media (min-width: 48rem) {
  .panneau { padding-block: var(--espace-4); }
  .panneau-boite {
    min-height: 0;
    padding-inline: var(--panneau-marge-interieure);
    border-radius: var(--rayon-grand);
    box-shadow: var(--ombre-tuile-survol);
  }
}

@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes montee {
  from { opacity: 0; transform: translateY(var(--espace-3)); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panneau, .panneau-boite { animation: none; }
}
