/*
Theme Name: Littér'Art
Author: BELLE Quentin
Description: Un thème WordPress personnalisé pour Littér'Art.
Version: 1.0
Text Domain: revue-litterart.fr
*/

html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    min-height: calc(100vh - 100px);
    top: 100px;
    position: absolute;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.grecaptcha-badge {
    display: none;
}

body,
header,
main,
footer,
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

body {
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #F5F5F5;
}

i {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-size: 30px;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease-in-out;
}

a {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

li {
    list-style: none;
}

/* 
////////////////////////////////////////////////////
///////////////////    Header    ///////////////////
////////////////////////////////////////////////////
*/
.site-header {
    width: 100%;
    min-height: 100px;
    max-height: 100px;
    margin: 0 auto;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    padding: 0 10%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
}

.site-header .header-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.site-header .header-wrapper .header-wrapper-relative {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: white;
}

/* Logo */
.site-title {
    width: 20%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.site-title a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: 100px;
}

.site-title a img {
    max-width: 15vw;
    width: auto;
    max-height: 80px;
}

/* Navigation */
.main-navigation {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-mainmenu-container {
    width: 100%;
}

.menu-mainmenu-container ul {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.menu-mainmenu-container li {
    margin: 0;
    font-size: 1.4em;
}

.menu-mainmenu-container a,
.search-button {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu-mainmenu-container a:hover,
.search-button:hover {
    color: #666;
}

.search-container {
    width: 10%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.search-container .search-button {
    height: 100%;
    min-height: 100px;
    max-height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.search-form.active {
    transform: translateY(0);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
}

.search-form {
    width: 20%;
    padding: 1%;
    position: absolute;
    top: 100%;
    right: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(-100%);
    z-index: -1;
    border-radius: 0 0 10px 10px;
}

.search-form form {
    display: flex;
    justify-content: space-between;
    background: #F5F5F5;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    padding: 2%;
}

header .search-form form input {
    width: 80%;
}

header .search-form form button {
    width: auto;
}

.search-form form input,
.search-form form button {
    all: unset;
}

.mobile-menu-button {
    display: none;
}

/* 
////////////////////////////////////////////////////
////////////////////    Main    ////////////////////
////////////////////////////////////////////////////
*/

.site-main {
    width: 80%;
    display: flex;
    height: auto;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    margin: 0 10%;
    background-color: white;
    box-shadow: -6px 0 8px rgba(0, 0, 0, 0.25), 6px 0 8px rgba(0, 0, 0, 0.25);
    padding: 3% 5%;
}

.site-article {
    width: 80%;
    display: flex;
    height: auto;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 10%;
    background-color: white;
    box-shadow: -6px 0 8px rgba(0, 0, 0, 0.25), 6px 0 8px rgba(0, 0, 0, 0.25);
    padding: 0;
}

#bulletin {
    .container {
        flex-direction: row;
        align-items: start;
    }

    .container>div {
        width: 50%;
    }

    .post-content a {
        color: #333;
    }

    .post-content a:hover {
        color: #666;
    }
}

.site-main .container,
.site-article .container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.category-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 2% 5%;
}

.category-links a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1.2em;
}

.category-links a:hover {
    color: #666;
}

.category-links ul {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.post-grid,
.redactors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0;
}

.post-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-item.empty {
    visibility: hidden;
    opacity: 0;
}


.post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

article .post-image,
article .post-image a {
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0;
    background-color: white;
}

.post-image a {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

article .post-image a img {
    width: 100%;
    object-fit: cover;
}

.post-meta>div:last-child {
    height: 100%;
}

/*Contacts*/

.site-main:has(.wpcf7) {
    padding: 0;
}

.site-main .container.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
}

.contact-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.contact-form {
    width: 50%;
    padding: 20px;
}

.contact-form h1 {
    text-align: center;
    padding: 20px 0;
}

.contact-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f13729;
    padding: 20px;
}

.contact-info .footer-logo img {
    max-width: 100%;
    margin-bottom: 20px;
}

.footer-contacts {
    display: flex;
    gap: 15px;
}

.footer-contacts a i {
    font-size: 30px;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.footer-contacts a:hover i {
    color: #0073e6;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }

    .contact-info {
        height: auto;
    }
}

.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wpcf7-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 10%;
    color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #f13729;
    outline: none;
}

.wpcf7-form textarea {
    height: 120px;
    resize: none;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #f13729;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.wpcf7-form input[type="submit"]:hover {
    background: #333;
}

.wpcf7-response-output {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-mail-sent-ng {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.social-media {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.redacteur-card {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    background: white;
    transition: transform 0.3s ease;
}

.redacteur-card:hover {
    transform: translateY(-5px);
}

.redacteur-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redacteur-info {
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 80%;
    background: white;
    padding: 10px;
    text-align: left;
}

.redacteur-info h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.redacteur-info p {
    font-size: 14px;
    color: #777;
    margin: 5px 0 0;
}


/*wpulike*/

.wpulike-heart .wp_ulike_general_class {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.wpulike button.wp_ulike_btn {
    display: flex;
    align-items: center;
    padding: 2% !important;
}

.wpulike button.wp_ulike_btn br {
    display: none;
}

.wpulike button.wp_ulike_btn span {
    margin-left: 2%;
}

.wpulike-heart .wp_ulike_put_image:after {
    content: none;
}

.wpulike-heart .wp_ulike_put_image.wp_ulike_btn_is_active:before {
    filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
}

.wpulike-heart .wp_ulike_put_image:before {
    content: '';
    display: block;
    background: url(./images/love.svg) no-repeat;
    background-position: center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    position: static;
    transform: none;
}

/*article*/

.site-article .container article {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.site-article article .post-image {
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
}

.site-article .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-main,
.site-article {

    .post-meta {
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin: 5% 10%;
        gap: 10px;

        img {
            border-radius: 50%;
        }
    }

    .post-informations {
        width: 100%;
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }

    .post-informations img {
        width: auto;
        aspect-ratio: 1/1;
        border-radius: 50%;
    }

    .post-informations .informations {
        width: 80%;
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        flex-direction: column;
        font-size: 0.8em;
    }

    .share-btn.native-share {
        all: unset;
        aspect-ratio: 1/1;
        padding: 5px;
        border-radius: 50%;
        background-color: #f9f9f9;
        transition: background-color 0.3s ease-in-out;
        cursor: pointer;

        i {
            color: #333;
            transition: color 0.3s ease-in-out;
        }
    }

    .post-buttons {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 20px;

        >div {
            width: min-content;
            height: min-content;
        }
    }

    .share-btn.native-share:hover {
        background-color: #333;

        i {
            color: #f9f9f9;
        }
    }
}

.post-meta {
    a {
        color: black;
    }

    div,
    div a,
    div a>* {
        width: 100%;
    }
}

.post-meta h1 {
    font-size: 2em;
    font-weight: 400;
    padding-bottom: 5%;
    border-bottom: 2px solid black;
    margin: 2% 0;
}

.post-content p {
    margin-bottom: 2%;
}

/*A Propos*/

.site-main .container.about-container {
    flex-direction: initial;
}

.container.about-container>div {
    padding: 3%;
}

.about-left {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-left img {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-right {
    width: 50%;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .site-main .container.about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-left img {
        max-width: 70%;
    }
}

.featured-video {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-direction: column;
    gap: 20px;
}

.featured-video iframe {
    width: 100%;
    height: 400px;
}

#home {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: start;
    }

    .latest-articles {
        width: 50%;
    }

    .latest-articles article {
        width: 100%;
        margin-bottom: 5%;
    }

    .latest-bulletin {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .latest-bulletin .post-image {
        width: 60%;
        margin: 5%;
    }

    .container>section {
        margin-top: 5%;
    }
}

@media (max-width: 768px) {
    #home .container {
        flex-direction: column;
        align-items: center;
    }

    #home {

        .latest-articles,
        .latest-bulletin {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .latest-articles .post-meta {
            width: 90%;
        }
    }
}

/* Latest Articles */
.latest-articles,
.latest-bulletin {
    margin-bottom: 40px;
}

.latest-articles h2,
.latest-bulletin h2,
.featured-video h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.latest-bulletin a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.latest-bulletin a:hover {
    color: #e74c3c;
}

.post-content {
    font-size: medium;
    font-weight: 500;
    text-indent: 5%;
}

.post-content blockquote.wp-block-quote .wp-block-pullquote blockquote p{
    font-size: medium;
    font-style: italic;
    text-align: center;
    margin: 10px;
}

blockquote .wp-block-pullquote {
    box-sizing: border-box;
    margin: 0;
    overflow-wrap: break-word;
    padding: 1em 0;
    text-align: center;
}


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

.site-footer {
    width: 100%;
    bottom: 0;
}

.site-footer .footer-navigation,
.site-footer .footer-info {
    width: 100%;
    min-height: 50px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2% 10%;
}

.footer-navigation {
    padding: 20px 0;
    background-color: #4A4A4A;
}

.footer-logo,
.footer-nav {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-logo a {
    width: min-content;
}

.footer-logo img {
    width: 100%;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-nav * {
    text-shadow: 0 2px 4px #00000044;
}

.footer-nav h2 {
    color: #F13729;
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.footer-menu li:not(.footer-menu li:last-child):after {
    content: "";
    width: 50%;
    margin: 3% 0;
    height: 0;
    display: block;
    border-bottom: #F13729 3px solid;
}

.footer-menu li a:hover {
    color: #F13729;
}

.footer-info {
    position: relative;
    padding: 10px 0;
    background-color: #F13729;
}

.footer-info * {
    color: white;
    text-shadow: 0 2px 4px #00000044;
}

.footer-info>* {
    width: auto;
}

.footer-info p {
    position: absolute;
    left: 10%;
    font-size: 1.2em;
}

.footer-contacts {
    width: 30%;
    display: flex;
    justify-content: space-around;
}

.footer-contacts a i {
    color: white;
}

.footer-contacts a:hover i {
    color: #4A4A4A;
}

/* 
////////////////////////////////////////////////////
///////////////    Tablet Version    ///////////////
////////////////////////////////////////////////////
*/

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .site-header {
        padding: 0 5%;
        justify-content: space-between;
    }

    .mobile-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 10%;
        height: 100%;
        min-height: 100px;
        max-height: 20%;
    }

    .site-title {
        width: 50%;
    }

    .site-title a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-title a img {
        height: auto;
        max-width: 100%;
    }

    .main-navigation.active {
        transform: translateY(0);
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
    }

    .main-navigation {
        width: 100%;
        padding: 1%;
        position: absolute;
        top: 100%;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        transform: translateY(-100%);
        z-index: -1;
        border-radius: 0;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-navigation ul li {
        margin: 10px 0;
    }

    .search-form {
        width: 100%;
        right: 0;
        border-radius: 0;
    }

    body {

        .site-main,
        .site-article {
            width: 100%;
            margin: 0;
        }
    }

    body .category-links {
        a {
            color: black;
            font-size: 1.2em;
        }

        ul {
            flex-direction: column;
        }

        li {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid black;
        }

        padding: 0;
    }

    .post-item .post-meta {
        margin: 5%;
    }

    #post-container.post-grid,
    #redactors-container.redactors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-item .post-meta h1 {
        padding-bottom: 10%;
    }

    .post-item .post-content p {
        margin-bottom: 2%;
    }

    footer {

        .footer-logo,
        .footer-nav {
            width: 50%;
        }

        .footer-logo img {
            min-width: 150px;
        }
    }
}

/* 
////////////////////////////////////////////////////
///////////////    Mobile Version    ///////////////
////////////////////////////////////////////////////
*/

@media screen and (max-width: 768px) {
    .site-header {
        padding: 0 5%;
        justify-content: space-between;
    }

    .mobile-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 10%;
        height: 100%;
        min-height: 100px;
        max-height: 20%;
    }

    .site-title {
        width: 50%;
    }

    .site-title a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-title a img {
        height: auto;
        max-width: 100%;
    }

    .main-navigation.active {
        transform: translateY(0);
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
    }

    .main-navigation {
        width: 100%;
        padding: 1%;
        position: absolute;
        top: 100%;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        transform: translateY(-100%);
        z-index: -1;
        border-radius: 0;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-navigation ul li {
        margin: 10px 0;
    }

    .search-form {
        width: 100%;
        right: 0;
        border-radius: 0;
    }

    body {

        .site-main,
        .site-article {
            width: 100%;
            margin: 0;
        }
    }

    body .category-links {
        a {
            color: black;
            font-size: 1.2em;
        }

        ul {
            flex-direction: column;
        }

        li {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid black;
        }

        padding: 0;
    }

    .post-item .post-meta {
        margin: 5%;
    }

    #post-container.post-grid,
    #redactors-container.redactors-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .post-item .post-meta h1 {
        padding-bottom: 10%;
    }

    .post-item .post-content p {
        margin-bottom: 2%;
    }

    footer.site-footer {

        .footer-navigation {
            padding: 10%;
        }

        .footer-logo,
        .footer-nav {
            width: 50%;
        }

        .footer-logo img {
            min-width: 150px;
        }

        .footer-info {
            flex-direction: column;

            p {
                position: static;
                text-align: center;
                order: 2;
            }

            .footer-contacts {
                width: 50%;
                order: 1;
            }

            >* {
                margin: 5%;
            }
        }
    }

    .contact-info {
        order: 1;
    }

    .contact-form {
        order: 2;
    }
}