
:root {
    --color-announcement-background: gray; /* Fond gris */
    --color-announcement-text: white; /* Texte blanc */
}


/*
--------------------------------------------------------------------------------------  
                                PARTIE AFFICHAGE DOC CLASSIQUE
---------------------------------------------------------------------------------------
*/

p{
	font-size: .75rem;
}

h1{
	font-size: 2rem;
}

h2{
	font-size : 1.5rem;
}

dt {
	font-size: 1.2rem;
	padding-top: 1rem;
}

dd{
	font-size: .8rem;
}

.announcement + .page {
	padding-top: 50px;
}

.show-back-to-top .back-to-top {
	margin-top: 60px;
}

.content {
	width: 70rem;
}

a.footnote-reference.brackets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  vertical-align: middle;
}

/* Sidebar personnalisation 
  ---------------------------*/


/* sidebar-drawer in light mode */

body[data-theme="light"] .sidebar-drawer {
	width: calc(10%);
	background-color: #e4ebed
}

/* sidebar-drawer in dark mode */

body[data-theme="dark"] .sidebar-drawer {
	width: calc(10%);
	background-color: #1a1c1e	
}

/* sidebar-drawer in auto mode */

body[data-theme="auto"] .sidebar-drawer {
	width: calc(10%);
}


.sidebar-logo{
	max-width: 75%;
}

.sidebar-sticky, .toc-sticky {
	height: calc(100vh - 3rem);
	top: 3rem;
}

.sidebar-tree ul {
	font-size: .9em;
}

.caption-text{
	color: #009ebd;
}

/* toc-drawer personnalisation
  --------------------------- */

/* toc-drawer in dark mode */
body[data-theme="dark"] .toc-drawer {
    width: calc(20%);
    background-color: #1a1c1e;
}

/* toc-drawer in light mode */
body[data-theme="light"] .toc-drawer {
    width: calc(20%);
    /* background-color: #e4ebedc2; */
}

/* toc-drawer in auto mode */
body[data-theme="auto"] .toc-drawer {
    width: calc(20%);
    background-color: #1a1c1e;
}

/*
--------------------------------------------------------------------------------------  
                                PARTIE CONTENU ECRITE DE LA DOC
---------------------------------------------------------------------------------------
*/

/* Add color for text in page */

.green-text {
    color: #28a745;
}

.orange-text {
    color: orange;
}

.red-text {
    color: #dc3545;
}

.blue-text {
    color: cornflowerblue;
}

.purple-text {
    color: rgb(210, 81, 235);
}

.cyan-text {
    color : #188c8c
}

/* Add background color for Hint/Note/Warning/Attention/Danger/Important in light mode
----------------------------------------------------------------------------*/

body[data-theme="light"] .admonition.hint {
    background-color: #e0f7e0;
}

body[data-theme="light"] .admonition.note {
    background-color: #e0eef7;
}

body[data-theme="light"] .admonition.attention {
    background-color: #f7e0e0;
}

body[data-theme="light"] .admonition.danger {
    background-color: #f7e0e0;
}

body[data-theme="light"] .admonition.warning {
    background-color: #f7e9e0;
}

body[data-theme="light"] .admonition.important {
		background-color: #ccf2ed;
}

/* Add background color for Hint/Note/Warning/Attention/Danger/Important in dark mode 
----------------------------------------------------------------------------*/

body[data-theme="dark"] .admonition.hint {
    background-color: #2e4f2e;
    color: #cce8cc;
}

body[data-theme="dark"] .admonition.note {
    background-color: #2c3e50;
    color: #cce0f0;
}

body[data-theme="dark"] .admonition.attention {
    background-color: #4f2e2e;
    color: #f0cccc;
}

body[data-theme="dark"] .admonition.danger {
    background-color: #5a1e1e;
    color: #ffcccc;
}

body[data-theme="dark"] .admonition.warning {
    background-color: #5a4a2e;
    color: #ffe0b3;
}

body[data-theme="dark"] .admonition.important {
		background-color: #345b54;
}

/* better visibility of internal ref tags
-----------------------------------------*/

body[data-theme="light"] article a.reference.internal {
    color: cornflowerblue !important;
    font-weight: bold !important;
}

body[data-theme="dark"] article a.reference.internal {
    color: cornflowerblue !important;
    font-weight: bold !important;
}

body[data-theme="auto"] article a.reference.internal {
    color: cornflowerblue !important;
    font-weight: bold !important;
}

/* better visibility of external ref tags */

article a.reference.external {
    color: teal !important;
}

/*

 WAPT Enterprise logo for light and dark mode

*/

/* Reduce the size of WAPT Enterprise logo in the toc-drawer 
------------------------------------------------------------*/

.toc-drawer .enterprise-icon-light,
.toc-drawer .enterprise-icon-dark {
    height: 17px !important;
    width: auto !important; /* keep the proportions */
}

/* remove displays of WAPT Enterprise logo in the left navigation sidebar-tree
------------------------------------------------------------------------------      display: none !important  */

.sidebar-tree .enterprise-icon-light,
.sidebar-tree .enterprise-icon-dark {
    height: 15px !important;
    width: auto !important; /* keep the proportions */
}

/* Reduce the size of WAPT Enterprise logo inside a toctree in the page body (index page)
-----------------------------------------------------------------------------------------*/

.toctree-wrapper .enterprise-icon-light,
.toctree-wrapper .enterprise-icon-dark {
    height: 17px !important;
    width: auto !important;
    vertical-align: middle;
}

/* Hide/show wapt enterprise logos in light or dark theme
---------------------------------------------------------*/

.enterprise-icon-dark {
    display: none;
}
.enterprise-icon-light {
    display: inline;
}

body[data-theme="dark"] .enterprise-icon-dark {
    display: inline;
}
body[data-theme="dark"] .enterprise-icon-light {
    display: none;
}

/* ---------------------- GENERAL TOGGLE BASE ------------------------ */

details {
    border: 1px solid var(--color-background-border);
    border-radius: 6px;
    padding: 0.5em 1em;
    margin: 1.5em 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

details > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25em 0;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    list-style: none;
    -webkit-appearance: none;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.2s ease, border-radius 0.2s ease;
}

details > summary + * {
    margin-top: 0.5em;
}

/* ------------------- COMMON CHEVRON ------------------- */

details summary .toggle-chevron-right {
    stroke: currentColor;
    transform: rotate(0deg) scale(1);
    transition: transform 0.3s ease, stroke 0.3s ease;
}

details[open] summary .toggle-chevron-right {
    transform: rotate(90deg) scale(1);
}

details summary:hover .toggle-chevron-right {
    animation: pulse 0.6s ease-in-out infinite alternate;
}

details[open] summary:hover .toggle-chevron-right {
    transform: rotate(90deg) scale(1.15);
}

@keyframes pulse {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1.2);
    }
}

/* ==================== ORANGE TOGGLE ==================== */

details.orange-toggle {
    background-color: #7b5824;
}

body[data-theme="light"] details.orange-toggle {
    background-color: #f8d7b3;
}

details.orange-toggle summary {
    color: white;
}

body[data-theme="light"] details.orange-toggle summary {
    color: black;
}

details.orange-toggle summary:hover {
    background-color: #f7e9e0;
    color: #9A4D00;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

body[data-theme="light"] details.orange-toggle summary:hover {
    background-color: #f7e9e0;
    color: #9A4D00;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

/* ==================== WHITE TOGGLE ==================== */

details.white-toggle {
    background-color: #ffffff;
}

details.white-toggle summary {
    color: black;
}

body[data-theme="dark"] details.white-toggle {
    background-color: black;
}

body[data-theme="dark"] details.white-toggle summary {
    color: white;
}

details.white-toggle summary:hover {
    background-color: #f0f0f0 !important;
    color: #0066cc;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

body[data-theme="dark"] details.white-toggle summary:hover {
    background-color: gray !important;
    color: #0066cc;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

/* ==================== BLUE TOGGLE ==================== */

details.blue-toggle {
    background-color: #235473;
}

body[data-theme="light"] details.blue-toggle {
    background-color: #b3e1f8;
}

details.blue-toggle summary {
    color: white;
}

body[data-theme="light"] details.blue-toggle summary {
    color: black;
}

details.blue-toggle summary:hover {
    background-color: #c8e3f0;
    color: #005A80;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

body[data-theme="light"] details.blue-toggle summary:hover {
    background-color: #c8e3f0;
    color: #005A80;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

/* ==================== GREEN TOGGLE ==================== */

details.green-toggle {
    background-color: #246734;
}

body[data-theme="light"] details.green-toggle {
    background-color: #b3edc3;
}

details.green-toggle summary {
    color: white;
}

body[data-theme="light"] details.green-toggle summary {
    color: #187A3D;
}

details.green-toggle summary:hover {
    background-color: #d8eede;
    color: #187A3D;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

/*body[data-theme="light"] details.green-toggle summary:hover {
    background-color: #d8eede;
    color: #187A3D;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}*/

/*
--------------------------------------------------------------------------------------  
                                PARTIE ECRAN ET RESPONSIVE
---------------------------------------------------------------------------------------
*/
@media (max-width: 1000px) {

	.announcement + .page {
		padding-top: 0;
	}
	
	.show-back-to-top .back-to-top {
		margin-top: 20px;
	}

	.mobile-header {
		top: 35px;
    }
	}

@media (max-width: 1200px) {
	.content {
		width: 46em;
	}
}

.content-icon-container .edit-this-page svg,
.content-icon-container .view-this-page svg {
    height: 2.3rem;
}

/* override table width restrictions */
@media screen and (min-width: 767px) {

	.wy-grid-for-nav{
		position: relative;
		top: 50px;
			width: auto;
			height : auto;
	}
	.wy-nav-side{
		top: 50px;
	}
	
		   .wy-table-responsive table td {
					 /* !important prevents the common CSS stylesheets from overriding
				  *          this as on RTD they are loaded after this stylesheet */
		  white-space: normal !important;
			 }
	
			.wy-table-responsive {
					  overflow: visible !important;
					 }
				 }