html {
    height: 100%;
}

body {
    margin: 0;
    width: 100%;
    background: #ebebeb;
    font-family: Arial, 'sans-serif';
    font-size: 80%;
}

body.body-homepage {
    height: 100%;
}

header.background {
    min-height: 30vh;
    background: url("../img/penseur.jpg") center fixed;
    background-size: cover;

    /* Vertically centered */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header.background-homepage {
    height: calc(100% - 50px);
}

header .logo {
    display: inline-block;
    width: 150px;
}

header .header-content {
    background: rgba(235, 235, 235, 0.8);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

header .call-to-action {
    display: block;
    text-align: center;
    font-weight: bold;

    /** Center bottom */
    position: absolute;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.cta-content {
    display: inline-block;
    padding: 10px;
    background: rgba(235, 235, 235, 0.9);
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.header-txt {
    font: 20px 'Kaushan Script', cursive ;
}

.header-txt-main {
    font-size: 50px;
}

@media(max-width: 800px) {
    header .header-txt-second {
        display: none;
    }

    header .header-txt-main {
        font-size: 20px;
    }

    .header .logo {
        height: 100px;
    }
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #333;
    color: #ddd;
    position: sticky;
    top: 0;
    height: 50px; /* Pretty okay but still magic number. ugh. */
}

nav div {
    flex-grow: 1;
    margin: 0 5px;
    text-align: center;
    line-height:1.5em;
}

nav .social {
    padding-right: 10px;
}

a.social img {
    width: 25px;
}

nav div a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    height: 100%;
}

article {
    width: 95%;
    margin: auto;
}

@media(min-width:800px) {
    .page-small {
        width: 50%;
        margin: auto;
    }

    .page-small.center {
        text-align: center;
    }
}

.error {
    display: inline-block;
    color: red;
    font-weight: bold;
    background-color: white;
    border-radius: 25px;
    padding: 5px;
}

.flash {
    display: inline-block;
    width: 50%;
    line-height: 3em;
    border: 1px solid black;
    border-radius: 10px;
    text-align: center;
    margin-top: 2em;
}

.flash-info {
    background-color: #87CEEB;
}

.flash-success {
    background-color: #aef5ae;
}

.flash-error {
    background-color: #E6BBAD;
}

.nodisplay {
    display: none;
}

/**
 * conferences.html
 */

.visit_align {
    padding-left: 4em;
    padding-bottom: 3em;
}

/**
    visits.html
 */

 h3 a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
 }

 .anchor {
    position: relative;
    top: -60px;
    visibility: hidden;
 }

.visits {
    display: flex;
    flex-wrap: wrap; /** OMG such responsiveness **/
    align-items: flex-start;
    width: 100%;
    max-width: 1500px;
    margin: auto;
}

#research-help {
    width: 30%;
    background: #ffffff;
    padding: 10px;
    box-sizing: border-box;
}

#visits-list {
    width: 70%;
}

.visit {
    margin-left: 5%;
}

.visit-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.visit-content h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.visit-content p {
    margin-bottom: 0;
}

h1 {
    padding-left: 3em;
    padding-top: 1em;
}

h4 {
    font-size: 1em;
    text-decoration: underline;
    font-weight: normal;
    display: inline-block;
    margin: 1em 0 1em 0;
}

ul.visit_slots {
    margin-top: 0;
}

.visit .visit_img {
    margin: auto;
    display: block;
    flex-shrink: 0;
    max-width: 130px;
    max-height: 150px;
    width: auto;
    height: auto;
}

.visit .visit_img_container {
    width: 150px;
    flex-shrink: 0;
}

.visit hr {
    margin-top: 2em;
    margin-bottom: 2em;
}

.tariff_title {
    text-decoration: underline;
}

.action {
    cursor: pointer;
}

.tariff {
    margin-top: 0;
    font-style: italic;
    /*margin-left: 20px;*/
    height: auto;
    opacity: 1;
    transition: opacity 2s ease, height 2s ease;
    /*padding: inherit;*/
    /*visibility: visible;*/
}

.checkout-quantity {
    height: auto;
    opacity: 1;
    transition: opacity 1.5s ease, height 1.5s ease;
}

.hidden, .collapse {
    height: 0;
    margin: 0;
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 2s ease, height 3s ease;
}

.squeeze-top {
    padding-top: 0;
    margin-top: 0;
}

.clear {
    clear: both;
}

.nosize {
    height: 0;
    margin: 0;
}

ul.research {
    padding-left:0;
}

#research-place {
    display: flex;
    justify-content: flex-start;
}

#research-place li, #research-type li, #research-planned li {
    list-style: none;
    padding: 0 2em;
}

.icon {
    height: 15px;
    width: 15px;
    padding-left: 10px;
}

@media (max-width: 800px) {
    .visits {
        width: 100%;
    }
    #research-help {
        width: 100%;
    }

    #visits-list {
        width: 100%;
    }
}

/**
 * conférence
 */

fieldset.conf_category {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
fieldset.conf_category legend h2 {
    padding: 10px;
    display: inline-block   ;
}

/* Try to make the first title as high as possible by negating the h1+label margins */
fieldset.conf_category > legend {
    margin-top: -10px;
}

fieldset.conf_category > legend h2 {
    margin: 0;
    padding-top: 0;
/*    margin-bottom: -10px;
*/}

fieldset.conf_category {
    min-height: 10px;
    border-radius: 15px;
    margin-left: 5%;
    margin-bottom: 40px; /* only 30 px because of the negative margin top on legend */
    padding-left:  -5%;
    background-blend-mode: darken;
    background-color: rgba(0,0,0,0.03);
}

fieldset.conf_category .visit:last-child > hr {
    display: none;
}
/**
 * Trucs en rapport avec une visite
 */

fieldset.slot-field {
    border-radius:  8px;
    background-color: #dbdbdb;
    /*transition-duration: 1s;*/
}

 fieldset.slot-field.inactive {
    border:  0;
    padding:  0;
    background-color: inherit;
 }


/**
Presentation.html
 */

.guide_picture {
    float: left;
    padding-right: 20px;
    padding-bottom: 10px;
}

/**
 * Trucs copié collé de bootstrap pour des boutons pas dégueus
 */
.button {
    background-color: #337ab7;
    border-color: #2e6da4;
}

.button:focus {
    color: #fff;
    background-color: #286090;
    border-color: #122b40;
}

.button:focus, .button:hover {
    text-decoration: none;
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

.button {
    color: #fff;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    background-color: #337ab7;
    text-decoration: none;
}
