:root {
    --r-main-font-size: 32px;
    /*--r-background-color: #2b2b2b;*/
    /*--r-main-font: Lato, sans-serif;*/
    /*--r-main-color: #eee;*/
    /*--r-block-margin: 20px;*/
    /*--r-heading-margin: 0 0 20px 0;*/
    /*--r-heading-font: League Gothic, Impact, sans-serif;*/
    /*--r-heading-color: #eee;*/
    /*--r-heading-line-height: 1.2;*/
    /*--r-heading-letter-spacing: normal;*/
    /*--r-heading-text-transform: uppercase;*/
    /*--r-heading-text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);*/
    /*--r-heading-font-weight: normal;*/
    /*--r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15);*/
    /*--r-heading1-size: 3.77em;*/
    /*--r-heading2-size: 2.11em;*/
    /*--r-heading3-size: 1.55em;*/
    /*--r-heading4-size: 1em;*/
    /*--r-code-font: monospace;*/
    /*--r-link-color: #13DAEC;*/
    /*--r-link-color-dark: rgb(16.15, 185.3, 200.6);*/
    /*--r-link-color-hover: rgb(66.2, 225.4, 239.8);*/
    /*--r-selection-background-color: #FF5E99;*/
    /*--r-selection-color: #fff;*/
    /*--r-overlay-element-bg-color: 240, 240, 240;*/
    /*--r-overlay-element-fg-color: 0, 0, 0;*/
}

.reveal .slide-background {
    background-color: #21252d;
}

/* Alignement du texte à gauche avec marges centrées */
.reveal .slides {
    text-align: left;
}

/* Garder les titres centrés */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    text-align: center;
}

/* Conteneur pour le contenu avec marges automatiques */
.reveal p,
.reveal ul,
.reveal ol,
.reveal pre,
.reveal blockquote,
.reveal table {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Listes avec alignement à gauche */
.reveal ul,
.reveal ol {
    display: block;
}

/* Code blocks */
.reveal pre {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    max-height: 70vh;
}

.reveal pre code {
    max-height: 70vh;
    background-color: #dedede;
    overflow-y: auto;
}


.reveal .slides .small {
    font-size: 0.7em;
}
.reveal .slides img {
    max-width: 80%;
    margin: auto;
    display: block;
}

/* Styles pour les diagrammes PlantUML */
.reveal .slides .plantuml-container {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.reveal .slides .plantuml-container svg {
    max-width: 90% !important;
    max-height: 70vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.reveal{
    color: gold;
}

.reveal .controls button {
    color: gold;
}

.reveal .doc-only {
    display: none !important;
}

.reveal a,.reveal a:hover,.reveal a:active,.reveal a:visited   {
    color: gold;
    text-decoration: none;
    transition: color 0.15s ease;
}

.reveal .progress {
    background: rgba(0, 0, 0, 0.2);
    color: gold;
}

/* Bouton X pour fermer  */
.close-slides {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    font-weight: bold;
    color: gold;
    cursor: pointer;
    z-index: 9999;
    text-decoration: none;
}
.close-slides:hover {
    top: 5px;
    right: 10px;
    font-size: 5rem;
}

/* Styles pour les blocs d'alerte (admonitions) */
.reveal .admonition {
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid;
    max-width: 85%;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.reveal .admonition.info {
    border-left-color: #4c566a;
    background-color: rgba(66, 179, 245, 0.1);
}

.reveal .admonition.warning {
    border-left-color: #f5a623;
    background-color: rgba(245, 166, 35, 0.1);
}

.reveal .admonition.danger {
    border-left-color: #bf616a;
    background-color: rgba(231, 76, 60, 0.1);
}

.reveal .admonition.success {
    border-left-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

.reveal .admonition-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reveal .admonition.info .admonition-title {
    color: #ffffff;
}

.reveal .admonition.warning .admonition-title {
    color: #f5a623;
}

.reveal .admonition.danger .admonition-title {
    color: #bf616a;
}

.reveal .admonition.success .admonition-title {
    color: #27ae60;
}

.reveal .admonition.info .admonition-title::before {
    content: "ℹ️";
}

.reveal .admonition.warning .admonition-title::before {
    content: "⚠️";
}

.reveal .admonition.danger .admonition-title::before {
    content: "❌";
}

.reveal .admonition.success .admonition-title::before {
    content: "✅";
}

.reveal .admonition p {
    margin: 10px 0 0 0;
    color: #fff;
}
