/* ==========================================================================
   Modal - Styles pour fenêtres modales accessibles
   Extrait de css-perso.css - Sprint 4
   ========================================================================== */

/* Utilitaire masquage */
.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Boutons déclencheurs
   -------------------------------------------------------------------------- */

button.js-modal.asimage {
  background: none;
  border: none;
}

button.js-modal.asimage:hover,
button.simple-modal-close:hover {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Bouton fermeture
   -------------------------------------------------------------------------- */

button.simple-modal-close {
  background: var(--opq-navy-panel);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 0.9em;
  text-transform: none;
  font-weight: 700;
  float: right;
  margin: -20px -20px 30px 0;
  color: var(--opq-bg-white);
}

/* --------------------------------------------------------------------------
   Contenu modal
   -------------------------------------------------------------------------- */

.simple-modal__content img {
  box-shadow: .125em .125em .125em rgba(47, 69, 84, .2);
}

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.simple-modal-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(28, 55, 68, 95%);
  z-index: 10100;
  height: 800%;
}

/* --------------------------------------------------------------------------
   Fenêtre modale
   -------------------------------------------------------------------------- */

.simple-modal {
  border: 0;
  z-index: 10200;
  position: fixed;
  left: 15%;
  width: 70%;
  top: 5vh;
  max-height: 90vh;
  background: var(--opq-bg-white);
  padding: 2em;
  right: auto;
  overflow: auto;
}

.simple-modal-title {
  font-size: 1.5em;
}

.simple-modal__content {
  padding: 30px;
}
