/* --------------------------------------------------------------------------
   Couleurs des admonitions (theme sphinx_rtd_theme) - charte ECL
   note      -> #397FC5 (bleu recherche)
   warning   -> #D89E19 (orange international)  [couvre aussi attention/caution]
   tip       -> #96BD44 (vert entreprises)       [couvre aussi hint/important]
   admonition générique (".. admonition::")      -> #5D1553 (violet campus)
   danger, error                                 -> #71191C (rouge foncé lyon)
   -------------------------------------------------------------------------- */

/* note, seealso */
.rst-content .note,
.rst-content .seealso,
.wy-alert.wy-alert-info {
  background: #eaf2fa !important;
}
.rst-content .note .admonition-title,
.rst-content .seealso .admonition-title,
.rst-content .wy-alert-info.admonition-title,
.wy-alert.wy-alert-info .wy-alert-title {
  background: #397FC5 !important;
}

/* warning, attention, caution */
.rst-content .warning,
.rst-content .attention,
.rst-content .caution,
.wy-alert.wy-alert-warning {
  background: #fdf3e4 !important;
}
.rst-content .warning .admonition-title,
.rst-content .attention .admonition-title,
.rst-content .caution .admonition-title,
.rst-content .wy-alert-warning.admonition-title,
.wy-alert.wy-alert-warning .wy-alert-title {
  background: #D89E19 !important;
}

/* tip, hint, important */
.rst-content .tip,
.rst-content .hint,
.rst-content .important,
.wy-alert.wy-alert-success {
  background: #f0f7e5 !important;
}
.rst-content .tip .admonition-title,
.rst-content .hint .admonition-title,
.rst-content .important .admonition-title,
.rst-content .wy-alert-success.admonition-title,
.wy-alert.wy-alert-success .wy-alert-title {
  background: #96BD44 !important;
}

/* admonition générique (".. admonition:: Titre"), ex. les exercices du tutoriel */
.rst-content .admonition:not(.note):not(.seealso):not(.warning):not(.attention):not(.caution):not(.tip):not(.hint):not(.important):not(.danger):not(.error) {
  background: #f4e9f1 !important;
}
.rst-content .admonition:not(.note):not(.seealso):not(.warning):not(.attention):not(.caution):not(.tip):not(.hint):not(.important):not(.danger):not(.error) > .admonition-title {
  background: #5D1553 !important;
}

/* danger, error */
.rst-content .danger,
.rst-content .error,
.wy-alert.wy-alert-danger {
  background: #f9eaea !important;
}
.rst-content .danger .admonition-title,
.rst-content .error .admonition-title,
.rst-content .wy-alert-danger.admonition-title,
.wy-alert.wy-alert-danger .wy-alert-title {
  background: #71191C !important;
}

/* solutions repliables (<details>/<summary>) dans les exercices */
.rst-content details {
  margin: 0.5em 0 1.5em 0;
  padding: 0.4em 0.8em;
  border: 1px solid #5D1553;
  border-radius: 3px;
}
.rst-content details summary {
  cursor: pointer;
  font-weight: bold;
  color: #5D1553;
}
.rst-content details[open] summary {
  margin-bottom: 0.6em;
}

/* forcer le respect des largeurs de colonne et le retour a la ligne */
.wy-table-responsive {
  overflow-x: visible !important;
}
.rst-content table.docutils {
  table-layout: fixed !important;
  width: 100% !important;
}
.rst-content table.docutils td,
.rst-content table.docutils th {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}
.rst-content table.docutils code,
.rst-content table.docutils tt.docutils {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}
