/**
 * CONTENTS
 *
 * SETTINGS
 * Global...............Globally-available variables and config.
 * RemarkJS.............RemarkJS overrides.
 * Transitions..........Transitions and animations.
 *
 * OBJECTS
 * Wrappers.............Wrapping and constraining elements.
 * Header...............Nav header.
 *
 * BASE
 * Headings.............H1–H6 styles.
 *
 * TRUMPS
 * Buttons..............Button elements.
 * Text.................Text helpers.
 */

@import url('https://fonts.googleapis.com/css?family=Raleway:400,700,800');
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700');

/*------------------------------------*\
  # SETTINGS Global
\*------------------------------------*/

html {
    font-size: 14px;
}

body {
    color: #2d3436;
    font-family: 'Raleway', sans-serif;
}

nav {
    background-color: #E9EDEE;
    font-size: 0.7rem;
    padding: 1.3rem 6rem;
}

nav span:last-child {
    float: right;
}

/*------------------------------------*\
  # SETTINGS RemarkJS
\*------------------------------------*/

/* Full page mode */
.remark-slide-scaler {
    box-shadow: none !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
}

.remark-slide-content {
    height: 100%;
    padding: 5rem;
}

/*------------------------------------*\
  # SETTINGS Transitions
\*------------------------------------*/

.transition {
    -webkit-animation: fadein 2s;
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*------------------------------------*\
  # OBJECTS Wrappers
\*------------------------------------*/

.col {
    display: block;
    float: left;
    width: 50%;
}

.line {
    display: block;
    height: 2rem;
    width: 10rem;
}

/* ------------------------------------*\
  # OBJECTS Layout
\*------------------------------------ */

/* Header */

nav {
    background-color: #e9edee;
    box-sizing: border-box;
    display: flex;
    font-size: 0.8rem;
    justify-content: space-between;
    left: 0;
    min-height: 55px;
    padding: 1.5rem 5rem;
    position: fixed;
    top: 0;
    width: 100%;
}

nav span:last-child {
    float: right;
}

/*------------------------------------*\
  # BASE Headings
\*------------------------------------*/

.highlight {
    border-bottom: 8px solid #4A2383;
    display: block;
    width: 10rem;
}

.remark-slide-content h1,
.remark-slide-content h2,
.remark-slide-content h3 {
    font-weight: 800;
}

.remark-slide-content h1 {
    font-size: 7rem;
    margin: 20px 0;
}

.remark-slide-content h2,
.remark-slide-content h3 {
    font-size: 4rem;
    margin: 20px 0;
}

.remark-slide-content .subtitle {
    color: #595959;
    font-size: 1.5em;
}

/*------------------------------------*\
  # TRUMPS Texts
\*------------------------------------*/

.strong {
    font-weight: 600;
}

.small {
    font-size: 1.1rem;
}

.text-muted {
    color: #595959;
}

.text-center {
    text-align: center;
}

li {
    color: #2d3436;
    margin: 0 0 10px 0;
}

p:last-of-type {
    margin-bottom: 2rem;
}

/*------------------------------------*\
  # TRUMPS Code blocks
\*------------------------------------*/

.remark-inline-code {
    font-family: 'Source Code Pro', monospace;
}

.remark-code {
    background: #272822;
    border-radius: 5px;
    color: white;
    display: inline-block !important;
    font-family: 'Source Code Pro', monospace;
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
}

.exercice {
    background: #272822;
    color: wheat;
}

/*------------------------------------*\
  # TRUMPS Images
\*------------------------------------*/

.image-center > p {
    text-align: center;
}

.image-right {
    float: right;
    margin-right: 5rem;
}

.image-resize > p > img {
    width: 95%;
}

.image-max-height > p > img {
    max-height: 50vh;
}

.image-mini,
.image-mini-block {
    margin: 0 10px;
    position: relative;
    vertical-align: middle;
}

.image-mini {
    display: inline-block;
    height: 7.5rem;
    width: 7.5rem;
}

.image-mini-block {
    height: 2.7rem;
    width: 5rem;
}

.image-mini > p {
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* poussé de la moitié de hauteur du référent */ /* tiré de la moitié de sa propre hauteur */
}

.image-mini > p > img {
    width: 100%;
}
