/*
Theme Name: Pixelis 2025
Theme URI: 
Author: Pixelis
Author URI: 
Description: A custom WordPress theme for Pixelis
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixelis
Tags: custom-theme
*/

:root {
    /* Colors */
    --color-primary: rgba(0, 0, 0, 1);
    --color-secondary: #E9FF1D;
    --color-text: #000000;
    --color-background: rgba(250, 252, 238, 1);
    --color-dark-background: rgba(0, 0, 0, 1);
    --color-dark-text: rgba(255, 255, 255, 1);

    /* Typography */
    --font-primary: 'Work Sans', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 140%;
    
    /* Spacing */
    --spacing-unit: 8px;
    --spacing-small: calc(var(--spacing-unit) * 1);
    --spacing-medium: calc(var(--spacing-unit) * 2);
    --spacing-large: calc(var(--spacing-unit) * 3);
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: var(--spacing-medium);

    overscroll-behavior: none;
}

html {
    height: -webkit-fill-available;
}

/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
    body {
      /* The hack for Safari */
      min-height: -webkit-fill-available;
    }
}

html {
    height: -webkit-fill-available;
}

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

/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
    body {
      /* The hack for Safari */
      min-height: -webkit-fill-available;
    }
  }

html, body {
    overscroll-behavior: none;
}

/* Base styles will be applied after reset.css */
body, .page-container {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 25.20px;
    word-wrap: break-word;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

body.dark, .dark .page-container {
    background-color: var(--color-dark-background);
    color: var(--color-dark-text);
}

.page-template-agence .page-container {
    overflow: hidden;
}

/* .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
} */

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add your custom styles below */ 
main {
    padding: 0 48px;
    z-index: 10;
    position: relative;
    min-height: calc(100vh - 80px);
}

/* Projects Archive Layout */
.projects-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 40px 0;
}

/* Filters Column */
.filters-column {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filter-section {
    margin-bottom: 40px;
}

.filter-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    transition: opacity 0.3s ease;
}

.filter-list a:hover {
    opacity: 0.7;
}

.filter-list .count {
    font-size: 0.9em;
    opacity: 0.5;
}

/* Projects Grid */

.project-title {
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
}



@media (max-width: 1024px) {

    :root {
        --font-size-base: 16px;
    }

    .projects-layout {
        grid-template-columns: 1fr;
    }

    .filters-column {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

.page-template-default h1, .h1 {
    text-align: center;

    /* Desktop/H1 */
    font-size: 80px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 80px */
    letter-spacing: -1.6px;
    text-transform: uppercase;
}

.h2 {
    color: var(--Black, #000);
    /* Desktop/H2 */
    font-size: 64px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 64px */
    text-transform: uppercase;
}

.h3 {
    color: var(--Black, #000);

    /* Desktop/H3 */
    font-size: 40px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%; /* 48px */
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.h4 {
    color: var(--Black, #000);
    /* Desktop/H4 */
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
    letter-spacing: -0.64px;
    text-transform: uppercase;
}

.h5 {
    color: var(--White, #FFF);
    /* Desktop/H5 */
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 28.8px */
    letter-spacing: -0.48px;
    text-transform: uppercase;
}

.text-body {
    color: var(--Black, #000);
    /* Desktop/Body */
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
    letter-spacing: -0.36px;
}

.text-html-body p:not(:last-child) {
    margin-bottom: 32px;
}

.text-html-body li {
    list-style-type: disc;
    list-style-position: inside;
}

.error404 h1 {
    color: var(--Black, #000);
    text-align: center;
    font-size: 720px;
    font-style: normal;
    font-weight: 300;
    line-height: 160px; /* 22.222% */
    letter-spacing: -14.4px;
    text-transform: uppercase;
}

.uppercase {
    text-transform: uppercase;
}

main.single-post {
    margin-top: 261px;
}

.single-post .article-content {
    display: flex;
    flex-direction: row;
    gap: 0px;
}

.single-post .article-content .article-content-intro {
    text-transform: none;
    max-width: 770px;
}

.single-post .article-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 48px;
}

.single-post .article-content-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    padding-bottom: 16px;
}

.single-post .article-content-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-primary);
    border-radius: 8px;
    padding: 24px;
    overflow: hidden;
    position: sticky;
    top: 24px;
    color: white;
}

.single-post .article-content .article-date, .single-post .article-content-share .article-author  {
    font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 130%; /* 15.6px */
letter-spacing: -0.24px;
}

.single-post .article-content-info-container .article-author, .single-post .article-content-info-container .article-author a {
    color: white;
}

.single-post .article-content-info-container > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-post .article-content-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-right: 115px;
    padding-bottom: 104px;
}

.single-post .article-content-right > * {
    max-width: 770px;
}

.single-post .article-footer {
    background-color: var(--color-primary);
    color: white;
    margin-left: -48px;
    margin-right: -48px;
    min-height: 100vh;
    padding: 128px 0;
}

.single-post .article-navigation-block {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 128px;
}

.article-navigation-block-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-bottom: 5px solid var(--Black, #000);
}

.single-post article footer {
    height: auto;
}

.single-post .article-share-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
}



/* .single-post  .selected-articles {
    display: flex;
    flex-direction: row;
    gap: 90px;
    flex-wrap: nowrap;
} */

.page-template-news .selected-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 90px;
    grid-row-gap: 160px;
    padding: 0;
}

.page-template-news .selected-articles.remove-bottom-margin {
    margin-bottom: -160px;
}

.page-template-news .selected-articles .article-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-template-news .selected-articles .article-item:not(:nth-child(3n)) {
    margin-right: 0;
}

.page-template-news .selected-articles .article-item .article-image {
    width: 100%;
    padding-bottom: 75%; /* Ratio d'aspect fixe pour toutes les images */
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.page-template-news .selected-articles .article-item .article-image > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-template-news .selected-articles .article-item .article-content {
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1; /* Pour que le contenu prenne tout l'espace disponible */
    position: relative; /* Ajout pour le positionnement de article-date */
    justify-content: space-between; /* Répartit l'espace entre les éléments */
}

.page-template-news .selected-articles .article-item .article-content .article-description {
    color: var(--White, #FFF);
    text-overflow: ellipsis;
    height: calc(18px * 1.4 * 3);
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.page-template-news .selected-articles .article-item .article-content .article-date {
    overflow: hidden;
    color: var(--Grey-Anthracite, #727272);
    text-overflow: ellipsis;
    margin-top: auto; /* Pousse l'élément vers le bas */

    /* Desktop/Body */
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
    letter-spacing: -0.36px;
}

img.arrow-down {
    transform: rotate(90deg);
    height: 53px;
}

.wp-block-image img {
    width: 100%;
}

.social-links a {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: flex-end;
}

#fullscreen-menu .social-links a {
    justify-content: flex-end;
}

.social-links img {
    width: 12px;
    height: 11px;
    display: inline;
    transform: rotate(-45deg);
}

.wp-element-caption {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 15.6px */
    letter-spacing: -0.24px;
}

.pixelis-break-fullwidth__content {
    max-width: 1400px;
    padding: 0 80px;
}

.pixelis-text-paragraph__content {
    max-width: 750px;
}

.pixelis-text-paragraph {
    padding: 160px 0 64px;
}

.single-post .article-title {
    color: var(--color-primary);
    max-width: 770px;
}

.single-post .article-content-right-infos {
    margin-bottom: 170px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-post .article-content .article-date, .single-post .article-content-share .article-author {
    color: var(--color-secondary);
}

/* On appear animtaions */

.appear-fade-in {
    opacity: 0;
}

.appear-fade-in-first {
    transform: translateY(20px);
}

.appear-fade-in-first.fade-in-visible {
    transform: translateY(0);
}

.appear-fade-in.fade-in-visible {
    opacity: 1;
    transition: opacity 2s cubic-bezier(0.25, 0.71, 0.27, 1), transform 2s cubic-bezier(0.25, 0.71, 0.27, 1);
}

/* classic page */
.page-template-default  .type-page {
    margin-top: 48px;
}

.wp-block-columns {
    margin-bottom: 32px;
}

.mobile {
    display: none !important;
}

@media screen and (max-width: 1024px) { /* Mobile and Tablet */

    .desktop {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }

    main {
        padding: 0 8px;
    }

    #fullscreen-menu .social-links a {
        justify-content: flex-start;
    }

    .page-template-default h1, .h1 {
        font-size: 36px;
        font-style: normal;
        font-weight: 300;
        line-height: 100%; /* 36px */
    }

    .h2 {
        font-size: 32px;
        font-style: normal;
        font-weight: 300;
        line-height: 100%; /* 32px */
    }

    .h3 {
        font-size: 24px;
        font-style: normal;
        font-weight: 300;
        line-height: 100%; /* 28.8px */
        letter-spacing: -0.48px;
    }

    .h4 {
        font-size: 22px;
        font-style: normal;
        font-weight: 400;
        line-height: 130%; /* 28.6px */
        letter-spacing: -0.44px;
    }

    .h5 {
        /* Desktop/H5 */
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 28px; /* 233.333% */
        letter-spacing: -0.24px;
    }

    .text-body {
        font-size: 16px;
        font-weight: 400;
        line-height: 140%; /* 22.4px */
        letter-spacing: -0.32px;
    }

    .appear-fade-in {
        opacity: 1;
    }
    
    .appear-fade-in-first {
        transform: none;
    }

    .two-s-images {
        gap: 8px;
        margin: 8px 0;
    }

    main.single-post {
        margin-top: 170px;
    }

    .single-post .article-content {
        flex-direction: column-reverse;
        gap: 64px;
        padding-bottom: 45px;
    }

    .single-post .article-content-left {
        padding-bottom: 0;
    }

    .single-post .article-content-right {
        padding: 0;
    }

    .single-post .article-content-right-infos {
        margin-bottom: 0px;
    }

    .single-post .article-footer {
        height: auto;
        width: 100vw;
        margin-left: -8px;
        margin-right: -8px;
        padding: 0 8px 80px;
    }

    .single-post .article-content-info {
        border-bottom: none;
    }

    .single-post .article-content-info-container {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .single-post .article-share-links {
        flex-direction: column;
        gap: 12px;
    }

    .single-post .article-content-share {
        border-left: 1px solid rgba(255, 255, 255, 0.20);
        padding-left: 16px;
    }

    .single-post img.arrow-down {
        height: 24px;
    }
    /* .single-post .selected-articles {
        flex-direction: column;
    }

    .single-post .selected-articles .article-item {
        width: 100%;
    } */

    .single-post .article-navigation-block {
        height: 100vw;
        width: 100%;
        padding: 0;
    }

    .two-columns-images__column {
        width: 100%;
    }

    .page-template-news .selected-articles {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-template-news .selected-articles .article-item .article-image {
        padding-bottom: 66.67%; /* Ratio d'aspect 3:2 pour les mobiles */
    }

    .pixelis-break-fullwidth__content {
        padding: 0;
    }

    .page-template-news .selected-articles.remove-bottom-margin {
        margin-bottom: -80px;
    }

    .page-template-default .type-page {
        margin-top: 120px;
    }

    .error404 h1 {
        font-size: 203px;
        font-style: normal;
        font-weight: 300;
        line-height: 160px; /* 78.818% */
    }

}