/*
tea-innovation.fr 2021

#D7DFE7
#2F8DCC
#215F82
#272B36

*/

body {
    font-size: 1.1em;
    line-height: 1.6em;
    background: #215F82;
}

#accueil {
    background: #272B36 url(img/palme.jpg) repeat-x center 0;
}

#site {
    margin: 0 !important;
    background: none;
    position: relative;
}

img {
    display: block;
}

/*haut*/

#haut {
    display: flex;
    height: auto !important;
    padding: 10px 15px 10px;
    background: #215F82;
    position: relative;
    z-index: 2;
}

header {
    width: 144px;
    height: 60px;
    position: relative;
    z-index: 20000;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#menu {
    margin: 0 !important;
}

#menu li {
    position: static;
}

#menu li a:hover {
    background: none;
    color: #fff;
}

/*sous menu*/

#menu li li a {
    color: #D7DFE7;
    background: #23262f;
    padding: 10px 15px !important;
    width: 260px !important;
    border-bottom: 1px solid #334;
}

#menu li li a:hover {
    background: #334;
}


/*corps*/

section {
    padding: 60px 0 40px;
    position: relative;
}

.centre {
    margin: 0 auto;
    width: 1100px;
}

h1 {
    font-size: 2.7em;
    padding-bottom: 40px;
    color: #fff;
}

h1::after {
    content: '';
    display: block;
    width: 35px;
    height: 5px;
    background: #272B36;
    margin-top: 25px;
}

h2 {
    font-size: 2em;
    line-height: 1.2em;
    padding-bottom: 20px;
    color: #fff;
}

section a {
    border-bottom: 2px solid #fff;
}

section a:hover {
    text-decoration: none;
    border-bottom: 0;
}

em a,
a em {
    display: inline-block;
    padding: 5px 20px 6px;
    margin: 15px 0;
    border: 3px solid !important;
    font: 1.2em oswald, sans-serif;
    text-transform: uppercase;
}

em a:hover,
a em:hover {
    color: #D7DFE7;
}


table {
    width: auto !important;
    border: 0;
}

td {
    width: auto !important;
    background: #1b4b65;
    padding: 8px;
    border: 0;
}

tr:nth-child(2n) td {
    background: #1e526e;
}


/*bloc accueil*/

.block {
    border: 0;
    padding: 0;
}

.block video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 57vw !important;
}

/*
.block h1 {
    position: relative;
    z-index: 2;
    margin: calc(27vw - 100px) 0 4vw;
    text-transform: none;
    font-size: 112.9px;
    text-indent: -5px;
    color: #fff;
    text-shadow: 0 0 20px #000;
    width: 1110px;
    padding-bottom: 0;
}

.block h1::after {
    content: '';
    display: block;
    width: 300px;
    height: 10px;
    background: #fff;
    margin-top: 5vw;
    position: relative;
    left: 400px;
    box-shadow: 0 0 20px #000;
}
*/

.block p {
    background: #272B36;
    position: relative;
    padding: 40px;
}


.block p:first-of-type {
    background: none;
    position: static;
    padding: 0;
}

video {
    /* background: #000; */
}

#son {
    width: 60px;
    height: 50px;
    background: url(img/son.png) center 5px no-repeat;
    position: absolute;
    top: 30px;
    right: 20px;
    cursor: pointer;
}

.son {
    background-position: center -55px !important;
}

.block p:last-of-type {
    margin-top: calc(57vw - 30px);
    font-size: 1.2em;
    text-align: center;
}

.block p:last-of-type::after {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    background: #2F8DCC;
    margin-top: 20px;
    position: relative;
    left: calc(50% - 13px);
}


/*colonnes*/

.row {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
}

/*4*/
.col3 {
    min-width: 40%;
    flex: 1;
    display: block;
    padding: 0;
    margin: 0 40px 40px 0;
}

.col3:nth-child(2n) {
    margin-right: 0;
}

.col3:nth-child(4) {
    padding: 40px;
    background: #272B36;
    max-width: calc((100% - 40px) / 2);
}

.col3:nth-child(4) p:last-of-type::after {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    background: #2F8DCC;
    margin-top: 20px;
}

.col3 h1 {
    padding-bottom: 0;
    margin-bottom: -20px;
    font-size: 1.8em;
    line-height: 1.2em;
}

/*3*/
.col4 {
    background: #23262F;
    padding: 20px;
    flex: 1;
    margin-right: 20px;
}

.col4:nth-child(3) {
    margin-right: 0;
}

/*back office*/

form .block {
    border: border: 1px solid #ccc;
    padding: 20px;
}

form .block img {
    position: static;
    width: auto;
    opacity: 1;
}

form .row {
    margin: 0;
    display: block;
}

form .col4 {
    background: none;
    padding: 10px;
    margin-right: 0;
}

form .col3 {
    min-width: auto;
    display: inline-block;
    padding: 10px;
    margin: 0;
}



/*yt*/

iframe {
    width: 100%;
    height: 600px;
}



/*bas*/

footer {
    padding: 50px 0 15px;
}

footer p img {
    display: inline-block;
    text-align: center;
    margin: 0 15px 30px;
}

footer p img:hover {
    opacity: .8;
}

footer .col4,
footer .col4 a {
    color: #D7DFE7;
}

#carte {
	height: 600px;
}

#carte a {
	color: #2F8DCC;
}

.leaflet-tile-pane {
    filter: saturate(0);
    transition: .6s;
}

/*
#carte:hover .leaflet-tile-pane {
    filter: saturate(1);
}
*/

.leaflet-container:after {
    color: #fff;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 500;
    pointer-events: none;
    animation: leaf .8s;
}

.leaflet-gesture-handling-touch-warning:after,
.leaflet-gesture-handling-scroll-warning:after {
    animation: leaf .8s;
}

@keyframes leaf {
    0% {
        opacity: 0;
    }
}

.leaflet-gesture-handling-touch-warning:after {
    content: attr(data-gesture-handling-touch-content);
}

.leaflet-gesture-handling-scroll-warning:after {
    content: attr(data-gesture-handling-scroll-content);
}


#backToTop {
    bottom: 30px;
    z-index: 1000;
}



/*responsive*/

@media (max-width: 1170px) {

    .centre {
        width: 100%;
        padding: 0 15px;
    }

    .block h1 {
        font-size: 9.63vw;
        width: calc(100% + 10px);
    }

    footer {
        padding-top: 15px;
    }
}

@media (max-width: 1150px) {

    nav {
        display: block;
    }

    nav li li a {
        background: none !important;
    }

    #menu {
        background: #272b36;
        position: absolute;
        left: 0;
        width: 100%;
        box-shadow: 0 0 10px rgba(0,0,0,.5);
    }

    #menu .active {
        background: none;
    }
}

@media (max-width: 900px) {

    #son {
        top: calc(57vw - 50px);
        right: 0px;
        background-size: 60%;
    }

    .son {
        background-position: center -38px !important;
    }

    .col4 {
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 800px) {

    .col3 {
        margin: 0 15px 15px 0;
        order: 1;
    }

    .col3:nth-child(3) {
        order: 3;
        min-width: 100%;
    }

    .col3:nth-child(4) {
        order: 2;
        min-width: 100%;
    }

    footer .row {
        display: block !important;
    }

    footer .col4 {
        margin-bottom: 20px;
    }
}
