/*Tea Innovation Style de base V2.0*/


/* Fonts---------------*/

@font-face {
    font-family: 'clear-web';
    src: url('font/clear.eot');
    src: url('font/clear.eot?#iefix') format('embedded-opentype'), url('font/clear.woff') format('woff');
}

@font-face {
    font-family: 'ms-web';
    src: url('font/montserrat.eot');
    src: url('font/montserrat.eot?#iefix') format('embedded-opentype'), url('font/montserrat.woff') format('woff');
}


/* General---------------*/

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #e8e8e8;
    font: 1.05em clear-web, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    border: 0
}

table {
    border-collapse: collapse;
}

ul {
    list-style: none;
    padding-left: 0;
}

h1,
h2,
h3 {
    text-align: left;
}

::-moz-selection {
    background: #333;
    color: #fff;
}

::selection {
    background: #333;
    color: #fff;
}

a {
    text-decoration: none;
    outline: 0;
    color: #444;
}

a:hover {
    color: #555;
}

.centre {
    width: 980px;
    margin: 0 auto;
    position: relative;
}

#page {
    width: 111vh;
    margin: 0 auto;
}

.clear {
    clear: both;
}

#ecran {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 100%;
    background: url(img/tv.png) center;
    background-size: auto 100%;
    pointer-events: none;
}

#neige {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 190;
    width: 100%;
    height: 100%;
    background: url(img/neige.gif);
    pointer-events: none;
    opacity: .04;
    animation: 15s 2s neige infinite;
}

@keyframes neige {

    5% {
      opacity: .15;
    }
    10% {
      opacity: .04;
    }
}


/* Cookies---------------*/

#info-cookie {
    width: 110vh;
    height: 12vh;
    background: #333;
    color: #aaa;
    padding: 7px 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    margin-left: -55vh;
    z-index: 100;
}

#info-cookie a {
    white-space: nowrap;
    margin-left: 10px;
    color: #eee;
}

#ok-cookie {
    display: inline-block;
    background: #888;
    padding: 4px 10px;
    line-height: 1em;
    cursor: pointer;
}

#ok-cookie:hover {
    background: #999;
}


/* Inputs---------------*/

input[type=submit],
button,
.bouton {
    font: .9em ms-web, sans-serif;
    text-transform: uppercase;
    background: none;
    color: #444;
    padding: 8px 15px;
    border: 3px solid #888;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
}

input[type=submit]:hover,
button:hover,
.bouton:hover {
    background: #ddd;
    color: #444;
}

input[type=text],
textarea,
select {
    font: 1em clear-web, sans-serif;
    background: none;
    color: #333;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid #333;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1px;
}

input[type=text]:focus,
textarea:focus,
select:focus {
    border-bottom: 2px solid #333;
    margin-bottom: 0;
}

select,
label {
    cursor: pointer;
}

label {
    display: block;
}


/* Haut----------------------*/

header {
    padding: 120px 3vh 30px;
    background: #ccc;
}

nav {
    text-align: center;
    padding-top: 20px;
}

nav a {
    display: inline-block;
    padding: 7px;
    font: 1em/1em ms-web, sans-serif;
    text-transform: uppercase;
}

h1 {
    font: 3em/1em ms-web, sans-serif;
    text-transform: uppercase;
    text-align: center;
}

#header2 {
    padding: 0 3vh 40px;
    background: #ccc;
}

#intro {
    text-align: center;
    margin-bottom: 20px;
}

#tags {
    width: 60%;
    float: left;
}

.tag {
    display: inline-block;
    font: 1.2em ms-web, sans-serif;
    text-transform: uppercase;
    padding: 0 5px;
    color: #888;
    cursor: pointer;
}

.tag:hover,
.actif {
    color: #444 !important;
}

#partage {
    width: 40%;
    text-align: right;
    float: left;
}

#partage img {
    padding-left: 5px;
}

#connaitre {
    font: .8em/1em ms-web, sans-serif;
    text-transform: uppercase;
    padding-right: 3px;
    position: relative;
    top: -2px;
}


/* Milieu--------------------*/

#contenu {
    padding: 40px 3vh 40px;
}

#contenu {
    filter: saturate(0);
}

#contenu a {
    text-decoration: underline;
    font-size: 1.1em;
}

#contenu a:hover {
    text-decoration: none;
}

#contenu b {
    font-size: 1.1em;
}

h2 {
    font: 34px/1em ms-web, sans-serif;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 20px;
}

#contenu h2 {
    display: inline;
    background: #e8e8e8;
    padding-right: 10px;
    position: relative;
    top: -5px;
}

.deco {
    background: #ccc;
    height: 26px;
    margin-bottom: 30px;
}

.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding-bottom: 50px;
}

.chaine {
    padding: 20px;
    background: #ccc;
    max-width: 300px;
    margin: 10px 20px 10px 0;
    float: left;
    line-height: 1.15em;
}

.chaine img:first-child {
    width: 100%;
}

h3 {
    font: 1.3em/1em ms-web, sans-serif;
    text-transform: uppercase;
    color: #444;
    margin: 15px 0 10px;
}

.par {
    font: .9em ms-web, sans-serif;
    text-transform: uppercase;
    color: #444;
    margin: 20px 0 15px;
}

.chaine a {
    display: block;
    padding-left: 30px;
    margin-bottom: 10px;
    background: url(img/yt.png) no-repeat 0 center;
    color: #444;
    font-weight: bold;
}

.chaine a:hover {
    opacity: .8;
}

.cache {
    display: none;
}


/* Bas-----------------------*/

#box-proposer {
    background: #ccc;
    padding: 40px 3vh 12vh;
}

#mentions {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #888;
}


/* Mobile---------------------*/

@media (max-aspect-ratio: 4/3) {
    #info-cookie {
        width: 100%;
        height: auto !important;
        left: 0;
        margin-left: 0;
    }
    #ecran {
        display: none;
    }
    #page {
        width: 100%;
    }
    #contenu h2 {
        display: block;
        background: none;
    }
    h2 {
        font-size: 1.7em;
    }
    .deco {
        background: none;
    }
}

@media (max-width: 450px) {
    h1 {
        font-size: 1.9em;
    }
}

@media (max-height: 500px) {
    #info-cookie {
        width: 100%;
        height: auto !important;
        left: 0;
        margin-left: 0;
    }
    #ecran {
        display: none;
    }
    #page {
        width: 100%;
    }
    #contenu h2 {
        display: block;
        background: none;
    }
    h2 {
        font-size: 1.7em;
    }
    .deco {
        background: none;
    }
}

@media (max-height: 700px) {
    #info-cookie {
        height: 17vh;
    }
}
