/*!
Theme Name: TAM TAM Communications Theme
Author: Gilston Digital SA
Author URI: https://gilston.digital/
Description: Theme pour wordpress
Version: 1.2.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tamtam
*/

/* NORMALIZED
--------------------------------------------- */
html {
    line-height: 1.2;
    -webkit-text-size-adjust: 100%;
    font-size: 18px;
}

body {
    margin: 0;
}

main {
    display: block;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: 600;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

body {
    background-color: #c2c2c2;
}

body:not(.home) #content {
    padding-top:120px;
}

a,
img,
header#masthead,
#left-logo,
#content,
.nav-link {
    transition: all ease-in 0.2s;
    -webkit-transition: all ease-in 0.2s;
    -ms-transition: all ease-in 0.2s;
    -o-transition: all ease-in 0.2s;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #000;
    font-family: "din-2014", Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 300;
}

p {
    margin-bottom: 1rem;
}

p:last-of-type {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

/* Links 
---------------------------------------------- */
a {
    color: #000;
    font-weight: 400;
}

a:hover {}

a:focus {
    outline: none;
}

a:hover,
a:active {
    outline: 0;
}

/* CONTENT
--------------------------------------------- */
.btn.btn-primary {
    background-color: #c2c2c2;
    border-color: #c2c2c2;
    color: #000;
    box-shadow:1px 1px 6px rgba(0, 0, 0, 0.3);
}

.btn.btn-primary:hover {
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.6);
}


/* NAV
--------------------------------------------- */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
}

body.admin-bar #masthead {
    top: 32px;
}

#home-logo {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 10px;
    left: -4px;
}

#home-logo:hover {
    width: 130px;
    height: 130px;
}

#menu-principal {
    position: absolute;
    top: 55px;
    left: 110px;
    z-index: 1500;
}

#menu-principal a {
    text-decoration: none;
    color: #000;
    font-weight: 300;
    background-color: #c2c2c2;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

#menu-principal a:hover,
#menu-principal a.active {
    font-weight: 700;
}

.menu-contact,
.menu-info,
.menu-facebook,
.menu-linkedin,
.menu-instagram {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    position: absolute;
    z-index: 1500;
    top: 45px;
}

.menu-contact:hover,
.menu-info:hover,
.menu-facebook:hover,
.menu-linkedin:hover,
.menu-instagram:hover {
    width: 46px;
    height: 46px;
}

.menu-contact {
    right: 0;
    background-image: url('img/contact.svg');
}

.menu-contact.active {
    background-image: url('img/contact-active.svg');

}

.menu-info {
    right: 50px;
    background-image: url('img/info.svg');
}

.menu-info.active {
    background-image: url('img/info-active.svg');
}

.menu-facebook {
    right: 200px;
    background-image: url('img/facebook.svg');
}

.menu-instagram {
    right: 150px;
    background-image: url('img/instagram.svg');
}

.menu-linkedin {
    right: 100px;
    background-image: url('img/linkedin.svg');
}

body.home .home-logo-left,
body.home .home-logo-right,
body.home .home-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    height: 100%;
    width: auto;
    transition: all 0.8s ease;
}
body.home .home-logo-left {
    opacity: 0;
}
body.home .home-logo-left img,
body.home .home-logo-right img,
body.home .home-logo-bg img {
    height: 100%;
    transition: all ease 0.2s;   
}

body.home .home-logo-left.logo-animated,
body.home .home-logo-right.logo-animated,
body.home .home-logo-bg.logo-animated {
    top: 140px;
    height: 300px;    
    transform: translate(-50%, 0);
}

body.home.left-hover .home-logo-left {
    opacity: 0;
}
body.home.left-hover .home-logo-right {
    opacity: 1;
}

body.home.right-hover .home-logo-left {
    opacity: 1;
}
body.home.right-hover .home-logo-right {
    opacity: 0;
}

body.home .menu-icon{
    top: -50px;
    transition: all ease .5s;
}

body.home.admin-bar .menu-icon {
    top: 47px;
}
body.home.split-container-animated .menu-icon{
  top: 15px;
}
body.home.admin-bar.split-container-animated .menu-icon{
  top: 47px;
}
body.home .menu-contact {
    right: 20px;
    background-image: url('img/contact.svg');
}

body.home .menu-info {
    right: 70px;
    background-image: url('img/info.svg');
}

body.home .menu-facebook {
    left: 20px;
}

body.home .menu-instagram {
    left: 70px;
}

body.home .menu-linkedin {
    left: 120px;

}

/* FOOTER
--------------------------------------------- */

#site-footer {
    position: relative;
    color: #000;
    font-size: 80%;
}

#site-footer #gd_credit-inline img {
    height: 18px;
}

#site-footer #credits {
    position: absolute;
    bottom: 10px;
    right: 6px;
    display: flex;
    flex-direction: column;
}

#site-footer #gd_credit img {
    width: 14px;
}

#site-footer #gd_credit-inline img {
    height: 18px;
}

#site-footer #credit-block {
    border-top: 1px solid #b0b0b0;
}

/* SPLIT PAGE HOME
--------------------------------------------- */

#split-page-container {
    display: flex;
    opacity: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Pour les navigateurs modernes */
    margin: 0;
    padding: 0;
    transition: all 1s ease;
}
#split-page-container.show{
    opacity: 1;
}
.split-link {
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: start;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.split-link::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    transition: opacity 0.5s ease;
    z-index: 3;
}

.split-link-left::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
}

.split-link-right::after {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 1;
}

body.left-hover .split-link-left::after {
    opacity: 0;
}

body.right-hover .split-link-left::after {
    opacity: 1;
}

body.right-hover .split-link-right::after {
    opacity: 0;
}

.split-content {
    text-align: left;
    z-index: 1;
    padding-bottom: 4px;
}

.split-content h2 {
    font-size: 5rem;
    line-height: 1;
    margin: 0;
    font-weight: 800;
    color: #b7b7b7;
    position: relative;
    text-align: start;
    display: flex;
    justify-content: start;
    align-items: end;
}

.home-subtitle {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    padding: 0 0 .7rem 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}


body.home.admin-bar .split-content {
    padding-bottom: 32px;
}

.bloc-titre,
h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
}

.bloc-sous-titre {
    font-size: 2.6rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    color: #FFF;
    padding-left: 2rem;
}

.text-right .bloc-titre {
    text-align: right;
}

.text-right .bloc-sous-titre {
    text-align: right;
    padding-left: 0;
    padding-right: 2rem;
}

#mobile-nav {
    display: none;
    height: 0;
    overflow: hidden;
}

@media (max-width: 991px) {
    body:not(.home) #home-logo {     
        left: 20px;
        position: fixed;
        z-index: 2600;
    }
    body.home {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body:not(.home) #content {
        padding-left: 20px;
        padding-right: 20px;
    }

    #split-page-container {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .split-link {
        height: 50vh;
        height: 50dvh;
        min-height: 50vh;
        min-height: 50dvh;
        max-height: 50vh;
        max-height: 50dvh;
        justify-content: end;
        align-items: center;
    }

    .split-link::after {
        width: 100%;
        height: 100px;
    }

    .split-link-left::after {
        bottom: 0;
        top: auto;
        right: auto;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 100%);
    }

    .split-link-right::after {
        top: 0;
        bottom: auto;
        left: auto;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 100%);
    }

    .split-link-left {
        border-right: none;
    }

    .split-content {
        text-align: right;
    }

    .split-content h2 {
        font-size: 2.5rem;
        justify-content: end;
        text-align: end;
    }


    .home-subtitle {
        padding: 0 1rem .4rem 0;
    }

    body.home .home-logo-bg,
    body.home .home-logo-left,
    body.home .home-logo-right {
       height:60%
    }


    body.home .home-logo-bg.logo-animated,
    body.home .home-logo-left.logo-animated,
    body.home .home-logo-right.logo-animated {
        top: 50%;
        left: 100px;
        height: 150px;        
        transform: translate(-50%, -50%);
    }

    .bloc-titre,
    h1 {
        font-size: 1.2rem;

    }

    .bloc-sous-titre {
        font-size: 1.8rem;

    }

    #mobile-navbar-toggler {
        top: 35px;
        right: 20px;
        position: fixed;
        z-index: 2600;
    }

    body.admin-bar #mobile-navbar-toggler {
        top: 42px;
    }

    #mobile-navbar-toggler img {
        height: 20px;
    }

    #mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background-color: #c2c2c2;
        z-index: 2500;
        display: flex;
        justify-content: end;
        align-items: center;
        padding-right: 20px;
    }

    #mobile-nav #mobile-nav-container a {
        display: block;
        font-size: 1.5rem;
        margin-bottom: .5rem;
        text-decoration: none;
        color: #000;
        text-align: end;
    }

    #mobile-nav #mobile-nav-container a:hover,
    #mobile-nav #mobile-nav-container a.active {
        font-weight: 700;

    }

    #mobile-nav #mobile-nav-socials {
        text-align: end;
    }

    #mobile-nav .menu-facebook,
    #mobile-nav .menu-linkedin,
    #mobile-nav .menu-instagram {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        display: inline-block !important;
    }
}

@media (max-width: 400px) {
    .split-content h2 {
        font-size: 2rem;
    }


    .home-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem .3rem 0;
    }
}


.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field {
    padding-top: 0;
}

.news-list .news-item {}

.news-list .news-item .news-link {
    border-radius: 8px;
    overflow: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.news-list .news-item .news-inner {
    position: absolute;
    border-radius: 8px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem 1.5rem;
    color: #FFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all .5s ease;
}

.news-list .news-item .news-inner .news-title {
    font-size: 1.3rem;
    line-height: 1.7rem;
    margin-bottom: 0;
}

.news-list .news-item .news-inner .news-subtitle {
    color: #FFF;
    font-size: 1.1rem;
    line-height: 1.4rem;
    font-weight: 300;
    margin: 0;
}

.news-list .news-item:hover .news-inner {
    opacity: 1;
}
img.bloc-texte-image{
    max-width: 100%;
}
@media only screen and (max-width: 576px) {

    /** before XS **/
    .news-list .ratio {
        height: auto;
    }

    .news-list .ratio .news-inner {
        min-height: 200px;
    }

    .news-list .ratio::before {
        padding: 0;
    }

    .news-list .ratio>* {
        position: relative;
        display: block;
    }
    img.bloc-texte-image{
        max-width: 80%;
    }

    .news-list .news-item .news-inner .news-title {
        font-size: 1.1rem;
        line-height: 1.3rem;
        
    }

    .news-list .news-item .news-inner .news-subtitle {
        
        font-size: 1rem;
        line-height: 1.2rem;
    }
}

.lb-data{
    display: none;
}