@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

/************* VARIABLES ***************/

:root {
    --title-font-family: "magistral-condensed", sans-serif;
    --text-font-family: "Roboto";
    --primary-color: #111A23; /* text en light, bg en dark*/
    --secondary-color: #15BCA0; /**/
    --secondary-color-light: #A2DFDF;
    --white-color: #fff;
}

.light {
    --main-bg: var(--white-color);
    --text-main: var(--primary-color);
    --green-bg: var(--primary-color);
    --green-secondary-bg: var(--secondary-color-light);
    --nav-bg: var(--primary-color);
    --secondary-text: var(--white-color);
}

.dark {
    --main-bg: var(--primary-color);
    --text-main: var(--secondary-color-light);
    --green-bg: var(--secondary-color);
    --green-secondary-bg: #011A23;
    --nav-bg: var(--secondary-color);
    --secondary-text: var(--primary-color);
}

/************* GLOBAL ***************/

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--main-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 300ms;
    color: var(--text-main);
    font-family: var(--text-font-family);
    line-height: 1.4;
}

/*
body.dark-mode {
    background-color: var(--primary-color);
    color: #fff;
}
*/

h1, h2, h3, h4, h4 a {
    color: var(--text-main);
}




h1 {
    font-family: var(--title-font-family);
    font-size: 44px;
    font-weight: 400;
}

.container {
    width: 80%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 2;
}

.cont-blog {
    max-width: 1300px;

}

p {
    font-family: var(--text-font-family);
    font-size: 22px;
    margin:0;
}

main {
    margin-bottom: 220px;
}

.flexx {
    display: flex;
    flex-direction: column;
}

figure {
    text-align: center;
}

a:any-link {
    font-family: 'magistral-compressed';
    font-weight: 500;
    color: var(--green-bg);
    text-decoration: none;
}

/************* HEADER ***************/

header {
    background-color: var(--green-bg);
    height: 145px;
    width: 100%;
    overflow: hidden;
}

.green-band {
    background-color: var(--secondary-color);
    height: 30px;
    width: 100%;
}

.main-logo {
    width: 345px;
    height: auto;
}

.container-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 31px 2px 67px;
}

.header-container {
    top: 58px;
    width: 100%;
    overflow-y: auto;
    background-color: var(--green-bg);
}

.fixed-content {
    position: fixed;
    top: 0;
}

.burger-menu {
    width: 40px;
    height: 24px;
}

.right-header {
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-left: -15px;

}

.perso-header {
    width: 56px;
    height: auto;
    margin-bottom: 9px;
}

/* Toggle button */
.toggle-theme {
    width: 100px;
    position: relative;
    overflow: visible;
}

.toggle-theme label {
    width: 83px;
    height: 29px;
    position: absolute;
    background-color: var(--green-secondary-bg);
    overflow: visible;
    border-radius: 50px;
    cursor: pointer;

}

.toggle-theme label input[type=checkbox] {
    position: absolute;
    display: none;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    transition: 0.3s;
    overflow: visible;
}

.toggle-icon {
    position: absolute;
    z-index: 1;
    transition: 0.3s;
    background-size: cover;
    background-image: url("../images/toggle-icon.png");
    height: 25px;
    width: 38px;
    top: 2px;
    left: -7px;
}

.round-toggle {
    z-index: 0;
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: var(--secondary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider .toggle-icon, input:checked + .slider .round-toggle {
    transform: translateX(53px);
}

.logo-container {
    width: 342px;
    height: 108px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/************* NAVBAR ***************/

.navbar {
    width: 375px;
    height: calc(100vh - 210px);
    display: flex;
    position: absolute;
    z-index: 2;
    left: -380px;
    transition: left 0.3s ease;
}

/* Style pour afficher la navbar */
.navbar.active {
    left: 0;
}

.primary-band {
    background-color: var(--nav-bg);
    width: 65px;
    height: 100%;
}

.main-nav {
    background-color: var(--secondary-color);
    width: 100%;
    padding-top: 50px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--white-color);
}

.main-nav li {
    font-family: var(--title-font-family);
    font-size: 34px;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 50px;
}

/************* HOME PAGE ***************/

.intro {
    min-height: 670px;
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.welcome {
    min-height: 550px;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.olivier {
    max-width: 681px;
    height: auto;
    margin-right: 30px;
    display: block;
}

.olivier img {
    height: auto;
    max-width: 100%;
}

.welcome p, .welcome h1 {
    display: inline-block;
}

.homepage-h1 {
    font-size: 64px;
}

.welcome p {
    margin: 10px;
}

.up-page {
    width: 67px;
    height: 67px;
    position: fixed;
    right: 7%;
    bottom: 70px;
    background-size: contain;
    background-repeat: no-repeat;
}

.up-page img {
    height: 100%;
    width: 100%;
}

.up-page-blog {
    bottom: 190px;
}

/****** Newsletter ******/

.newsletter {
    display: flex;
    align-items: center;

}

.newsletter label {
    font-family: var(--text-font-family);
    font-size: 22px;
}



.newsletter input[type="checkbox"] {
    width: 30px;
    height: 30px;
}

.newsletter-form {
    width: 622px;
    background-color: var(--primary-color);
    padding: 24px 18px;
    border-radius: 13px;
    display: none;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 6px 24px;
    font-family: var(--text-font-family);
    font-size: 16px;
    border-radius: 5px;
    outline: none;
    border-style: none;
    cursor: pointer;
}

.newsletter-form input[type="text"] {
    width: 398px;
    height: 32px;
    background-color: var(--secondary-color-light);
    outline: none;
    border-style: none;
    border-radius: 5px;
    margin-right: 85px;
    padding: 3px 0px 3px 12px;
}


/***** content *****/

.the-content {
    margin-top: 130px;
}

.the-content h2 {
    font-family: var(--title-font-family);
    font-size: 52px;
    font-weight: 400;
    text-align: center;
}

.grid3, .grid2 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 64px;
    margin-bottom: 64px;
}

.grid-txt {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/*
.grid3:nth-of-type(1) {
    margin-top: 140px;
}
*/

.tuto {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.tuto h3 {
    font-family: var(--text-font-family);
    font-size: 22px;
    text-align: center;
}

.tuto-yt {
    height: 414px;
    width: auto;
}

.tuto-tutocom {
    height: 337px;
    width: auto;
}

.grid2 figure img {
    height: 100%;
    width: auto;
}

/*
.wp-block-column {
    display: flex;
    align-items: center;
}
*/


.the-content p {
    line-height: 40px;
}

.grid-txt {
    height: 40px;
}

.grid-txt a {
    text-decoration: none;
    color: var(--green-bg);
}

/************* BLOG PAGE ***************/

.blog-title {
    text-align: center;
    margin-top: 116px;
    margin-bottom: 90px;
}

.post-thumbnail {
    width: 254px;
    height: 231px;
}

.post-thumbnail img, .post-thumbnail-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.post-thumbnail-full {
    width: 1000px;
    height: 547px;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.blog-article {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.article {
    margin: 15px 0px 70px 15px;
    max-width: 254px;
}

.article h4 {
    text-align: center;
}

.article h4 a {
    text-decoration: none;
    color: var(--green-bg);
    font-size: 22px;
    line-height: 29px;
    font-weight: normal;
}

/************* BLOG PAGE ***************/

.the-content img {
    border-radius: 15px;
}

.comment-title {
    font-family : var(--title-font-family);
    font-size: 35px;
    font-weight: 400;
    margin-top: 110px;
}

.comment-reply-title {
    font-family: var(--text-font-family);
    font-size: 25px;
}

input[type="submit"] {
    padding: 15px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: var(--primary-color);
    font-family: var(--text-font-family);
    font-size: 18px;
}



/********** BLOG PAGER *********/

.pagination.navigation {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    margin: 3rem;
    box-shadow: 0 0.8rem 2rem rgba(#5a6181, 0.05);
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.4rem;
    font-size: 1.4rem;
    cursor: pointer;
    width: 2.6rem;
    height: 2.6rem;
}

.page-numbers.next, .page-numbers.prev {
    width: auto;
}

.page-numbers.current {
    color: #ffffff;
    background: var(--secondary-color);
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    border-radius: 0.4rem;
}


/********** ARTICLE PAGER *********/

.site__navigation {
    display: flex;
    margin-top: 48px;
}

.site__navigation__prev, .site__navigation__next {
    flex-grow: 1;
    padding: 16px;
}

.site__navigation__prev {
    text-align: left;
    font-size: 20px;
    border: var(--secondary-color) 1px solid;
    border-radius: 10px 0px 0px 10px;
    border-right: none;
}

.site__navigation__next {
    text-align: right;
    font-size: 20px;
    border: var(--secondary-color) 1px solid;
    border-radius: 0px 10px 10px 0px;
}


/********** FOOTER *********/

footer {
    background-color: var(--green-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 84px 27px 138px;
}

.left h5 {
    color: var(--secondary-text);
    font-size: 16px;
    font-family: var(--text-font-family);
}

.social-media {
    display: flex;
    width: 380px;
    justify-content: space-between;
}

.rs {
    height: 37px;
}

.rs figure, .rs figure img {
    height: 100%;
    width: auto;
}

.right a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 16px;
    font-family: var(--text-font-family);
}


/********** Contact Page *********/

form {
    width: 100%;
}

input[type=text], input[type=email], textarea {
    width: 90%;
    border: 1px solid var(--secondary-color);
    padding: 10px;
    border-radius: 5px;
}

#newsletter-contact {
    width:70%;
}

.nl-contact-form {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.nl-contact-form input[type="submit"] {
    padding: 8px 15px;
}

.wpcf7-form p {
    margin: 12px 0px;
}

.contact-icons {
    height: 36px;
    width: auto;
}

.contact-icons img {
    border-radius: 0px;
    height: 100%;
    width: auto;
}


@media all and (max-width: 600px) {
    /********** Header *********/
    .logo-container {
        max-width: 75px;
    }

    .container-h {
        padding : 5px 16px;
    }

    /********** Content *********/

    .homepage-h1 {
        font-size: 42px;
        line-height: 1.5;
    }

    .olivier {
        margin-right: 0;
        height: auto;
        width: 100%;
    }

    /********** Footer *********/
    .rs {
        height: 25px;
    }

    .social-media {
        width: 325px;
    }

    .perso-header {
        display: none;
    }
}

@media all and (max-width: 1100px) {
    .mini-container {
        flex-direction: column-reverse;
    }

    .grid3 {
        display: flex;
        flex-direction: column;
    }


    .wp-block-columns {
        flex-wrap: wrap!important;
    }

    .intro {
        margin-top : 32px;
    }

    .welcome {
        min-height: unset;
    }

    .welcome:first-child {
        margin: 32px auto;
    }

    /********** Footer *********/

    .main-footer {
        flex-direction: column;
        padding: 10px 16px 27px 16px;
    }

    footer .left {
        text-align: center;
        margin-bottom: 16px;
    }

    #menu-footer-menu {
        padding-inline-start: 0px;
    }


}