/* =========================
   Trix video
========================= */

.trix-content figure.attachment--video,
.trix-content figure.trix-media.attachment--video {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto;
  padding: 0;
}

.trix-content .trix-media__video-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;

  /*
    La vidéo prend son ratio naturel.
    Ça évite le frame 16/9 qui peut créer du noir inutile.
  */
  aspect-ratio: auto;

  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.trix-content video[data-trix-video],
.trix-content .trix-media__video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;

  border-radius: 16px;
  background: transparent;

  object-fit: contain;
  object-position: center center;

  opacity: 1 !important;
  transition: none !important;

  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Caption vidéo comme les images */
.trix-content figure.attachment--video .trix-media__caption,
.trix-content figure.attachment--video .attachment__caption {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.7;
  text-align: center;
}

/* Si aucun caption, aucun espace vide */
.trix-content figure.attachment--video figcaption:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Cache les contrôles natifs autant que possible */
.trix-content video[data-trix-video]::-webkit-media-controls,
.trix-content video[data-trix-video]::-webkit-media-controls-panel,
.trix-content video[data-trix-video]::-webkit-media-controls-play-button,
.trix-content video[data-trix-video]::-webkit-media-controls-start-playback-button,
.trix-content video[data-trix-video]::-webkit-media-controls-timeline,
.trix-content video[data-trix-video]::-webkit-media-controls-current-time-display,
.trix-content video[data-trix-video]::-webkit-media-controls-time-remaining-display,
.trix-content video[data-trix-video]::-webkit-media-controls-mute-button,
.trix-content video[data-trix-video]::-webkit-media-controls-volume-slider,
.trix-content video[data-trix-video]::-webkit-media-controls-fullscreen-button {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Spinner off */
.trix-content .trix-media__spinner {
  display: none !important;
}

@media (max-width: 700px) {
  .trix-content .trix-media__video,
  .trix-content .trix-media__video-frame {
    border-radius: 12px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 .custom-green {
    background-color: #009a71 !important;
    border-color: #009a71 !important;
    color: #fff !important;
  }
  
  .custom-green:hover,
  .custom-green:focus,
  .custom-green:active {
    background-color: #007f5c !important;
    border-color: #007f5c !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 154, 113, 0.3);
  }
  
  input.form-control:focus {
    border-color: #009a71;
    box-shadow: 0 0 0 0.2rem rgba(0, 154, 113, 0.25);
  }
  
  .form-check-input:checked {
    background-color: #009a71 !important;
    border-color: #009a71 !important;
  }
  
  .form-check-input:focus,
  .form-check-input:active {
    border-color: #009a71 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 154, 113, 0.25) !important;
  }
  
