﻿/* -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
/*-----------------------------------------------------------------------------
/* Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
/* See the top-level COPYRIGHT file for details.
/* SPDX-License-Identifier: Apache-2.0
/*-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* custom.css                                                  (C) 2000-2026 */
/*                                                                           */
/* Personnalisation des css de doxygen et du thème.                          */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/**
 * Paramètres globaux pour la page.
 */
html {
  --top-height: 230px;
}

/**
 * Correction temporaire de font en dark mode.
 */
html.dark-mode {
  --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  --font-family-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

/**
 * Table des matières.
 */
.toc {
  background: var(--side-nav-background) !important;
  border-radius: 10px !important;
  top: 0px !important;
  border-left: 0px !important;
}

/**
 * Table des matières (doxygen v1.14.0+).
 */
#page-nav {
  background: var(--side-nav-background) !important;
}

.vis {
  background: var(--side-nav-background) !important;
}

.vis::after {
  background: var(--primary-color) !important;
}

/**
 * Les partie note, critical, &c.
 */
dl.section dd,
dl.bug dd,
dl.deprecated dd {
  margin-inline-start: revert;
}

/**
 * Partie haute de la side-nav.
 */
#top {
  background: linear-gradient(var(--top-side-nav), var(--side-nav-background));
}

/**
 * Taille / Position du logo.
 */
#projectlogo img {
  max-height: none !important;
  padding-top: 5px;
  padding-bottom: 5px;
}

#projectlogo a:hover {
  background: none;
}

/**
 * Arcane / Version.
 */
#projectalign {
  text-align: center;
}
#titlearea table {
  width: 100%;
}

/**
 * Le texte principal.
 */
#doc-content {
  padding-top: 0px !important;
}

/**
 * Pour les "Powertips" (bulles qui s'affichent quand on
 * passe la souris dans un code.
 */
#powerTip {
  background-color: var(--side-nav-background);
  color: var(--side-nav-foreground);
  box-shadow: 1px 1px 7px var(--primary-light-color);
  border: 1px solid var(--primary-color);
  opacity: 1;
}

/**
 * Permet d'ajouter des lignes de niveaux dans le nav-tree.
 */
#nav-tree .arrow {
  /* Il est nécessaire de manipuler la marge et la largeur
  pour que le bouton collapse soit plus grand. */
  width: 95px !important;
  margin-left: -80px;
  padding-left: 0px !important;
}
#nav-tree .children_ul {
  margin-left: 20px;
  border-left-color: var(--separator-color);
  border-left-style: solid;
  border-left-width: 1px;
  padding-left: 0px;
}

/**
 * Pour le bouton d'extend.
 */
#nav-extend {
  bottom: 12px;
  right: 10px;
  top: auto !important;
  user-select: none;
  position: absolute;
  top: 5px;
  right: 25px;
  z-index: 0;
  rotate: 90deg;
}

/*--------------------------------------------------------*/
/*--------------------Partie Recherche--------------------*/

/**
 * On centre le mot "Recherche" dans la recherche.
 */
#MSearchField {
  height: calc(var(--searchbar-height) - 5px);
}

/*
 * On centre la "croix" dans la recherche.
 */
.sm-dox a,
.sm-dox a:focus,
.sm-dox a:hover,
.sm-dox a:active {
  line-height: 30px;
}

/*--------------------------------------------------------*/
/*------------------Partie Index keyword------------------*/

.keyword_elem {
  background-color: var(--side-nav-background);
  text-align: center;
  padding: 5px 0px 5px 0px;
  margin: 3px 0px 3px 0px;
}

.keyword_elem_title {
  display: inline-block;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  width: inherit;
  font-size: larger;
  line-height: initial;
}


.keyword_elem_modser {
  display: inline-block;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  width: inherit;
}

.keyword_elem_option {
  display: inline-block;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  width: inherit;
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/*
 * Début : Pour le 'corner' GitHub.
 */
.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out
}

.github-corner svg {
  fill: var(--primary-light-color);
  color: var(--page-background-color);
  position: absolute;
  top: 0;
  border: 0;
  left: var(--side-nav-fixed-width);
  transform: scale(-1, 1);
  z-index: 99;
}

@keyframes octocat-wave {

  0%,
  100% {
    transform: rotate(0)
  }

  20%,
  60% {
    transform: rotate(-25deg)
  }

  40%,
  80% {
    transform: rotate(10deg)
  }
}

@media (max-width:500px) {
  .github-corner:hover .octo-arm {
    animation: none
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }
}
/*
 * Fin : Pour le 'corner' GitHub.
 */


/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/


/*
 * Début : Bouton 'Prochaine page'.
 */
/*
 * Dans le fichier ../doxygen-awesome-theme/doxygen-awesome-custom.css
 */

.next_section_button a:hover {
  background: none;
}

/*
 * Fin : Bouton 'Prochaine page'.
 */


/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/


/*
 * Début : Bouton 'Précedente page'.
 */
.back_section_button {
  width: fit-content;
  display: inline-block;
  padding: var(--spacing-large) 0 var(--spacing-small) 0;
  color: var(--side-nav-background);
  user-select: none;
}

.back_section_button::after {
  content: "";
  clear: both;
  display: table;
}

.back_section_button a {
  overflow: hidden;
  float: left;
  border: 1px solid var(--separator-color);
  padding: var(--spacing-medium) var(--spacing-large) var(--spacing-medium) calc(var(--spacing-large) / 2);
  border-radius: var(--border-radius-medium);
  color: var(--page-foreground-color) !important;
  text-decoration: none;
  background-color: var(--side-nav-background);
  transition: color .08s ease-in-out, background-color .1s ease-in-out;
}

.back_section_button a:hover {
  color: var(--page-foreground-color) !important;
  background: var(--odd-color) none;
}

.back_section_button a::before {
  content: '〈';
  color: var(--page-foreground-color) !important;
  padding-right: var(--spacing-large);
  display: inline-block;
  transition: color .08s ease-in-out, transform .09s ease-in-out;
}

.back_section_button a:hover::before {
  color: var(--page-foreground-color) !important;
  transform: translateX(-6px);
}
/* 
 * Fin : Bouton 'Précedente page'.
 */


/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/


/*
 * Début : Div pour les boutons 'Page'.
 */
.section_buttons {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
}
/*
 * Fin : Div pour les boutons 'Page'.
 */


/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/


/*
 * Début : Personnalisation de la partie spoiler.
 */
details {
  border: 1px solid;
  border-color: var(--separator-color);
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
  margin: 10px 0 10px 0;
}

summary {
  background-color: var(--side-nav-background);
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  transition: color .08s ease-in-out, background-color .1s ease-in-out;
  font-weight: bold;
  cursor: pointer;
}

summary:hover {
  color: var(--primary-color) !important;
  background-color: var(--odd-color);
}

summary::before {
  content: '⯈' !important;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 2px solid;
  border-bottom-color: var(--primary-color);
  margin-bottom: 0.5em;
  color: var(--primary-color) !important;
}

details[open] summary::before {
  content: '⯆' !important;
}

/*
 * Doxygen possède sa propre version de "details".
 * On reproduit donc le style au-dessus pour la version de Doxygen.
 */
div.dynheader {
  border: 1px solid;
  border-color: var(--separator-color);
  border-radius: 4px;
  margin: 0 0 10px 0;
  background-color: var(--side-nav-background);
  padding: 0.5em;
  transition: color .08s ease-in-out, background-color .1s ease-in-out;
  font-weight: bold;
  cursor: pointer;
}

div.dynheader.opened {
  border-bottom: 2px solid;
  border-bottom-color: var(--primary-color);
  margin: 0 0 0 0;
  color: var(--primary-color) !important;
}

div.dynheader:hover {
  color: var(--primary-color) !important;
  background-color: var(--odd-color);
}

div.dyncontent {
  border-width: 0 1px 1px 1px;
  border-style: solid;
  margin: 0 0 10px 0 !important;
  border-color: var(--separator-color);
}
/*
 * Fin : Personnalisation de la partie spoiler.
 */

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/*
 * Début : Personnalisation de la partie axldoc.
 */
.full_desc_service_module {
  color: var(--page-foreground-color) !important;
  text-shadow: none;
}

.label_option_type {
  font-size: 8pt !important;
  font-weight: bold;
}
/*
 * Fin : Personnalisation de la partie axldoc.
 */

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/*
 * Pour Doxygen 1.10.0+
 * Correction de la couleur de la première ligne des extraits de codes et
 * ajout d'un espace entre les numéros de lignes et les lignes.
 */
#snippetLineno {
  margin-right: 10px !important;
  background-color: var(--fragment-linenumber-background) !important;
}

/*
 * Ajustement des couleurs des snippets.
 */
.doxygen-awesome-fragment-wrapper {
  background: var(--page-background-color);
  border: 0 solid var(--section-code-border);
  border-radius: var(--border-radius-medium);
}

.fragment {
  border: 1px solid var(--separator-color);
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/**
 * Correction temporaire de l'affichage des formules sans MathJax.
 */
html img.light-mode-visible {
  display: unset;
}

html.dark-mode img.light-mode-visible {
  display: none;
}

html img.dark-mode-visible {
  display: none;
}

html.dark-mode img.dark-mode-visible {
  display: unset;
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
