@font-face {
    font-family: 'uppereastsideregular';
    src: url('../fonts/UpperEastSide-webfont.eot');
    src: url('../fonts/UpperEastSide-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/UpperEastSide-webfont.woff') format('woff'),
        url('../fonts/UpperEastSide-webfont.ttf') format('truetype'),
        url('../fonts/UpperEastSide-webfont.svg#uppereastsideregular') format('svg');
    font-weight: normal;
    font-style: normal;
}


body {
    background-color: #f0dfaf;
    background-image: url(../images/beige-paper.png);
    background-repeat: repeat;
    background-size: auto;
    font-family: 'Merriweather', serif;
    font-size: 14px;
}

.font-merriweather {
    font-family: 'Merriweather', serif;
}

a {
    text-decoration: none;
    color: #43027B;
}

a:hover, a:focus {
    text-decoration: none;
    color: #43027B;
    opacity: .7;
}

h1, .h1, h2, .h2 {
    font-family: 'uppereastsideregular', serif;
    color: #000;
    text-transform: uppercase;
}

h3, .h3, h4, .h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    font-size: 36px;
    font-size: 2.25rem;
    line-height: 1.2;
}

h4, .h4 {
    font-size: 20px;
    font-size: 1.5rem;
}

aside h3 {
    font-size: 20px;
}

.btn-primary {
    background-color: transparent;
    border: solid 1px #4A4A4A;
    color: #000;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #43027B;
    border-color: #43027B;
    color: #fff;
}

.ornement::before {
    content: "";
    width: 254px;
    height: 23px;
    position: absolute;
    top: 0;
    left: calc(50% - (254px / 2));
    background-image: url(../images/ornement-separation.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.ornement-left-right {
    position: relative;
    text-align: center;
    display: inline-block;
    padding-left: 50px;
    padding-right: 50px;
    margin: 0 auto;
}

.ornement-left-right::before,
.ornement-left-right::after {
    content: "";
    width: 30px;
    height: 20px;
    position: absolute;
    top: calc(50% - 15px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../images/ornement_titre.svg);
}

.ornement-left-right::before {
    left: 5px;
}

.ornement-left-right::after {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    right: 5px;
}

/* HEADER */

#topbar {
    position: absolute;
    width: 100%;
    height: 50px;
    padding: 5px 0;
    background-color: #2F2D27;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    font-size: 14px;
    text-transform: initial;
}

#topbar a, #topbar a:hover, #topbar a:focus, #topbar a:visited {
    color: #fff;
}

#header-hero {
    background-image: url(../images/banniere.jpg);
    display: block;
    margin-top: 50px;
    padding: 40px 0;
    width: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

#header-hero h1 {
    font-size: 52px;
    line-height: 80px;
    vertical-align: middle;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 7px black;
}

#header-hero h2 {
    font-size: 16px;
    line-height: 23px;
    color: #fff;
    text-transform: uppercase;
}

#header-hero img {
    height: 60px;
    vertical-align: text-bottom;
}

#header-hero a:hover, #header-hero a:focus {
    opacity: 1;
}

@media (max-width: 767px) {
    #topbar > .nav {
        padding: 0;
        justify-content: center !important;
    }

    #header-hero {
        padding: 0;
	background-position: top right;
    }

    #header-hero h1 {
        font-size: 40px;
	line-height: 60px;
    }

    #header-hero h1 img {
        height: 40px;     
    }


    #header-hero h2 {
        padding-bottom: 10px;
    }
}


/* NAVBAR */

nav {
    text-transform: uppercase;
    padding: 10px 0;
}

nav .dropdown-item {
    font-size: 0.8em;
    padding-top: 8px;
    padding-bottom: 8px;
}

nav a, nav a:hover, nav a:focus, nav a:visited {
    color: #000;
}

@media (max-width: 767px) {
    .nav-link {font
        padding: .5rem;
    }
}

/* ELEMENTS */

.card {
    position: relative;
    border: solid 1px rgba(74, 74, 74, 0.3);
    margin-bottom: 30px;
    background-color: #f4e8c4;
    background-image: url(../images/beige-paper.png);
    background-repeat: repeat;
    background-size: auto;
    border-radius: 3px;
    padding: 13px;

    font-family: 'Merriweather', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4A4A4A;
}

a {
    color: #43027B;
}

a:hover, a:focus {
    opacity: .7;
}

.alert-success {
    background-color: #c0d5c5;
    border-color: #b3ccb9;
}

/* FOOTER */

footer {
    padding: 50px 0;
    background-color: #181818;
    text-align: center;
    color: #fff;
}

footer h1, footer a, footer a:hover, footer a:focus, footer a:visited, footer p {
    color: #fff;
}

footer small {
    color: #4A4A4A;
}

/* SPECIFIQUE BUSE */

header {
    margin-bottom: 15px;
}

#alphabetMenu {
    text-align: center;
}

#alphabetMenu > * {
    margin: 0 5px;
    font-size: 1.2em;
}

#studentList {
    columns: 3;
    list-style: none;
    padding: 0;
}

@media (max-width: 991px) {
    #studentList {
        columns: 2;
    }
}

@media (max-width: 767px) {
    #studentList {
        columns: 1;
    }
}

#diploma {
    padding: 50px 10%;
}

#diploma .table * {
    border: none
}

#diploma h1 {
    font-size: 3em;
}

#diploma h4 {
    font-weight: normal;
    font-size: 1.5em;
    font-family: "Merriweather", serif;
}

.crest-G {
    color: #a62e2e;
}

.crest-G-alt {
    color: #f9ab16;
}

.crest-S {
    color: #326d32;
}

.crest-S-alt {
    color: silver;
}

.crest-R {
    color: #4242a8;
}

.crest-R-alt {
    color: gray;
}

.crest-H {
    color: #cece03;
}

.crest-H-alt {
    color: black;
}