/*
Theme Name: EV-info
Author: Dorian Swales
Version: 1.0
Licen: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: EV-info
*/

:root {
    --title_font: 'Expletus Sans';
    --body_font: "Roboto", sans-serif;
    --bleu: #0B29FB;
    --bleu_2: rgba(11, 41, 251, 0.9);
    --vert: #3AC696;
    --noir: #111111;
    --gris: #333333;
    --blanc_cassé: #F7F7F7;
}

*, :after, :before {
    box-sizing: border-box;
}

::selection {
    background-color: var(--bleu);
    color: white;
}

::marker {
    color: var(--bleu);
}

#blog .blog-intro h1 {
    font-family: var(--title_font);
    color: var(--noir);
    width: 100%;
    font-size: 1.5em;
    text-align: center;
}

#blog h2 {
    font-family: var(--title_font);
    width: 100%;
    font-size: 1.5em;
    text-transform: uppercase;
}

#blog h3 {
    font-family: var(--title_font);
    font-size: 1.3em;
}

#blog h4 {
    font-family: var(--title_font);
    place-self: center;
    text-align: center;
    font-size: 1.2em;
}

#blog_header {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 1em!important;
    flex-direction: column;
    gap: 1rem;
}

#blog_nav {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-left: 0;
    width: 100%;
}

#blog_nav_main {
    display: flex;
    justify-content: space-between;
}

#blog_nav a {
    cursor: pointer;
}

.loupe_burger {
    display: flex;
    gap: 1em;
    justify-content: end;
}

/* Blog Logo */

#blog_logo {
    width: 100px;
}

/* Search Bar */

#blog_search {
    padding: 0 2em;
    width: 100%;
    height: 100%;
    z-index: 1;
    align-items: center;
    display: flex;
}

#blog_search.hidden {
    display: none;
}

#blog_search #s {
    border: none;
    border-radius: 10px 0 0 10px;
}

#search_submit {
    border-left: none;
    border-width: 1px;
    background-color: #0B29FB;
    color: white;
    width: 15%;
    border-radius: 0 10px 10px 0;
}

/* Hamburger Menu */

#blog_categories {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

#blog_categories.hidden {
    display: none;
}

#blog_categories h4 {
    color: var(--noir);
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
    padding: 1em;
    width: 100%;
    height: 100%;
    text-align: center;
}

#blog_categories a {
    text-decoration: none;
    font-weight: bold;
    padding: 1em;
    text-align: center;
    width: 100%;
    color: #fff;
    padding: 14px 16px;
    font-size: 17px;
}

#blog_categories a:hover {
    color: var(--vert);
}

#blog_categories a.icon {
    right: 0;
    top: 0;
}

#blog_categories a.active {
    background-color: #04AA6D;
}

/* Progress Bar */

.progress-container {
    position: absolute;
    bottom: -0.3rem;
    width: 100%;
    height: 0.3rem;
    left: 0;
    background: var(--blanc_cassé);
}

.progress-bar {
    height: 0.3rem;
    background-color: var(--vert);
    width: 0%;
}

/* Back To Top Button */

#back-to-top {
    padding: 0;
    border: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 3em;
    height: 3em;
    background: var(--bleu);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgb(2 79 245 / 20%);
    cursor: pointer;
    display: none;
}

.icon img {
    width: 30px;
    height: 100%;
}

.blog-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    margin: 2em 0;
    place-content: center;
}

.blog-intro-txt {
    position: relative;
    width: 90%;
    color: white;
    border-radius: 5px;
}

.blog-intro-txt h2 {
    font-size: 20px;
    text-transform: initial;
}

.blog-intro-txt p {
    color: white;
    width: 70%;
    margin: 1em auto;
}

.blog-intro-background {
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    filter: brightness(0.5);
}

.blog-titre {
    background-color: var(--vert);
    border-radius: 2px;
    color: white;
    padding: 1em;
    width: 100%;
    margin: 2em 0;
    min-height: auto;
}

.blog-titre h2 {
    color: white;
    font-size: 20px;
    margin: 0;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    grid-gap: 4em 0;
    gap: 2rem;
    margin: 4em 0;
    min-height: auto;
}

.card_blog {
    width: 100%;
    box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.1);
    
    img {
        border-radius: 8px 8px 0 0;
    }
}

#blog .card_blog {
    height: fit-content;
    border-radius: 0.25rem;
    box-shadow: rgb(0 0 0 / 15%) 0 0 8px 0;
}

#blog .card_blog picture a {
    display: block;
}

#blog .card_blog img {
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
    display: block;
}

#blog .card_blog ul {
    list-style: none;
    padding: 0.5em 0;
}

#blog .card_blog a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.post-categories {
    padding: 0;
}

.post-categories a {
    background-color: var(--bleu);
    padding: 0.4em 0.8em;
    border-radius: 1em;
    color: white;
    box-shadow: rgb(2 79 245 / 20%) 0 0.2em 0.4em;
    text-decoration: none;
}

.post-categories a:hover {
    background-color: var(--bleu);
    color: white;
    box-shadow: none;
    transition: all .15s linear 0s;
}

#blog .card-title h3 {
    color: var(--noir);
    text-align: center;
    margin: 1em;
}

#blog a.card-title {
    display: block;
    height: 100%;
    padding: 1.5em 1em;
}

#blog a.card-title h3 {
    margin: 0;
    height: 100%;
    display: block;
}

#blog .card-title-similaire h4 {
    color: var(--noir);
    text-align: center;
    margin: 1em 0 0;
}

#blog .card-title-similaire h4:hover {
    color: var(--bleu);
}

#blog .card-category-similaire {
    padding: 1em;
}

#blog .card-body {
    padding: 0 1em;
}

#blog .card-body h4 {
    margin: 0;
}

#blog .card-body p {
    font-weight: 300;
    letter-spacing: 0.5px;
}

#blog .card-footer {
    color: #777;
    margin: 0;
}

.bar {
    border-bottom: solid 1px grey;
    margin-bottom: 1em;
}

/* Articles */

.blog_article_container {
    display: initial;
    min-height: auto;
    width: initial;
}

.blog_article_container h4 {
    text-align: start;
    font-weight: bold;
}

.article h1 {
    text-align: center;
    font-size: 1.6em;
    margin: 2em 0;
}

#blog .article h2 {
    display: inline-block;
    margin: 0 2em;
    text-align: start;
    font-size: 1.8em;
    color: var(--noir);
}

.article h2::after {
    content: '';
    border-bottom: 0.2rem solid var(--bleu);
    width: 4em;
    display: block;
    padding: 0.1rem;
}


#blog .article h4 {
    text-align: start; 
}

.blog_container {
    display: grid;
    padding-bottom: 2rem;
}

.info-article {
    text-align: center;
}

.info-article div {
    padding: 1em 0 1em;
}

.info-article h4, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.img-article {
    grid-row-start: 1;
}

.img-article img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: 1em 0;
}

#blog .card_image {
    position: relative;
}

#blog .card_image span {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
    background: #00000010;
    padding: 0.25em;
    font-size: 0.75em;
}

.blog-posts #blog .card_image span {
    bottom: 0rem;
}

#blog .border {
    border-bottom: 1px solid #777!important;
    width: 60%;
    margin: auto;
    margin-top: 2em;
}

.article-text {
    width: 90%;
    margin: 2em auto;
}

.article-text ul {
    list-style: initial;
    padding-left: 2em;
}

.article-text li {
    padding: 0.5em;
    line-height: 2;
}

.article-text a:hover {
    text-decoration: underline;
}

.article-text p {
    line-height: 2;
}

.article-text h3 {
    font-size: 1.3em;
    margin: 2em 0;
    border-left: 0.20em solid var(--bleu);
    padding-left: 1em;
    text-align: start;
}

#sources {
    display: block;
    margin: 0;
    padding: 1em;
    margin-top: 2em;
}

blockquote {
    position: relative;
    background-color: aliceblue;
    border-radius: 2rem;
    padding: 0.5em 1.5em;
    ;
}

blockquote::before {
    content: "";
    position: absolute;
    max-width: 50px;
    max-height: 36px;
    width: 100%;
    height: 100%;
    background: url(../ev-info/assets/images/quote_1.svg) no-repeat;
    background-size: 100% 100%;
    margin: 0;
    margin-left: -4rem;
}

blockquote::after {
    content: "";
    position: absolute;
    max-width: 50px;
    max-height: 36px;
    width: 100%;
    height: 100%;
    background: url(../ev-info/assets/images/quote_2.svg) no-repeat;
    background-size: 100% 100%;
    margin: 0;
    right: 0;
    margin-right: -2rem;
    margin-top: -3rem;
}

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

.page-numbers {
    display: inline-block;
    border: 1px solid var(--bleu);
    padding: 5px 10px;
    line-height: 1;
    margin-right: 10px;
    margin-bottom: 1em;
}

.page-numbers.current {
    background-color: var(--bleu);
    color: white;
}

.page-numbers:hover {
    background: #222;
    color: #FFF;
    border-color: #222;
}

.pagination {
    justify-content: center;
}

.nav-links {
    display: flex;
}

.nav-links>* {
    position: relative;
    display: block;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding: 0.375rem 0.75rem;
}

span.page-numbers.current {
    color: white;
    background: var(--couleur_bleue);
}

figcaption {
    text-align: center;
    line-height: normal;
    font-size: 90%;
    color: #666;
}

.sharing-box, .share-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 2em;
}

.share-button img {
    width: 2.5em;
    height: 2.5em;
    transition: transform .2s;
}

.share-button img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .info-article {
        text-align: start;
    }

    .sharing-box {
        flex-direction: column;
        align-items: start;
        padding: 1rem 0;
    }
}

@media (max-width: 500px) {
   
}

/* A partir de 1200px */

@media (min-width: 1200px) {
    #menu_icon {
        display: none;
    }
    #blog_categories {
        flex-direction: column;
    }
    #blog_categories.hidden {
        display: initial;
    }
    .blog-titre h2 {
        font-size: 26px;
    }
    .blog-intro-txt {
        width: 50%;
    }
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Articles */
    .blog_container {
        grid-template-columns: 20% 60% 10%;
        margin: auto;
        width: 80%;
    }
    .info-article {
        text-align: initial;
    }
    .article-text {
        width: 60%;
    }
    .article h1 {
        font-size: 2em;
    }
    .img-article {
        grid-row-start: initial;
    }
    figure {
        width: 60%;
    }
    .sharing-box, .share-button-wrapper {
        flex-direction: column;
        grid-column: end;
    }
    .img-article img {
        margin: initial;
    }
    #blog .card_image span {
        bottom: 0;
    }
}

/* A partir de 1920px */

@media (min-width: 1920px) {
    .blog-posts {
        margin: 6em auto;
    }
    #blog .border {
        width: 50%;
    }
    .article-text {
        width: 50%;
    }
    .article-text h3 {
        font-size: 2em;
    }
    .blog-intro-txt p {
        width: 50%;
    }
}

/* UHD */

@media (min-width: 3840px) {
    #blog_categories {
        top: 6em;
    }
    #blog_categories a {
        font-size: 2.75em;
        padding: 2em;
    }
    .blog-intro {
        height: 60em;
    }
    .blog-titre {
        margin: 6em auto;
        padding: 2em;
    }
    h1 {
        font-size: 3.2em;
    }
    h2 {
        font-size: 4em;
    }
    h3 {
        font-size: 3.125em;
    }
    #blog a.card-title {
        padding: 4.5em 3em;
    }
    #blog .card-body {
        padding: 0 3em;
    }
    p, #blog .card-body a {
        font-size: 2.75em;
    }
    #blog .card-footer {
        font-size: 3em;
    }
    .post-edit-link {
        font-size: 2.75em;
        ;
    }
    .article h1 {
        font-size: 6em;
    }
    .info-article {
        font-size: 3em;
    }
    #blog .border {
        margin-top: 6em;
    }
    .blog_container p {
        font-size: 3em;
    }
    .article-text ul {
        padding-left: 6em;
    }
    .article-text li {
        font-size: 2.75em;
    }
    figcaption {
        font-size: 2.5em;
    }
    figure {
        width: initial;
    }
    #blog .card-title-similaire h4 {
        font-size: 3em;
    }
    #blog .card-category-similaire {
        font-size: 2.75em;
    }
    .page-numbers {
        font-size: 3em;
        margin-right: 40px;
    }
    .share-button-wrapper {
        gap: 6em;
    }
    .share-button img {
        width: 6em;
        height: 6em;
    }
    .sharing-box-name {
        font-size: 3em;
    }
    blockquote::before, blockquote::after {
        max-width: 4em;
        max-height: 4em;
    }
    .button-404 {
        padding: 1em;
        font-size: 2em;
    }
    #back-to-top {
        width: 6em;
        height: 6em;
    }
}