
/*.aos-init.aos-animate[data-aos="custom-slide-up"] {
    transform: translateY(0);
}

[data-aos="custom-slide-up"] {
    transform: translateY(10px); /* Ajustez la valeur pour réduire la distance */
    /*transition-property: transform, opacity;
    transition-duration: 0.6s; /* Ajustez la durée selon vos besoins */
/*}/*



/* ------------------------ GENERAL ------------------------ */

body {
    background-color: #F5F5EF;
    padding: 1rem;
    --button-color: #DCDCD5;
    --dark-color: #191919; 
    --light-color: #F5F5EF; 
    --secondary-color: #3962b4; 
    --main-title: "Libre Baskerville", serif;
    --secondary-title: "Playfair Display", serif;
}

* {
    box-sizing: border-box;
}

.hidden-content {
    opacity: 0; /* Hide content initially */
    visibility: hidden; /* Hide content initially */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition */
}

/* TEXT STYLES */

p, a, h2, h3, h4, h5, li, span, h3 .flip span, label, ::placeholder, input, textarea, .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wp-element-caption, .wpcf7-response-output {
    font-family: "Quicksand", sans-serif;
    color: #191919;
    font-size: 20px;
    text-decoration: none;
    line-height: 1.5rem;
}

p, h4, li, h5 {
    padding-top: 1rem;
}

h1, h2, h3, h3 .flip span {
    font-family: var(--main-title);
    color: var(--dark-color);
}

h1, h2 {
    text-transform: uppercase;
    text-align: center;
}

.container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: auto;
    padding-bottom: 2rem;
}
           
h1 {
    font-size: 10vw; /* Default large font size */
    white-space: normal; /* Ensure text wraps */
    overflow-wrap: break-word; /* Break long words */
    width: 100%; /* Make sure text takes full width of container */
    margin: 0 auto; /* Center align */
    padding: 0 1rem; /* Add padding for a cleaner layout */
    line-height: 12vw;
}

h2{
    font-size: 28px;
    padding: 1rem 0;
    border-top: var(--dark-color) solid 1px; 
    border-bottom: var(--dark-color) solid 1px; 
    margin: 4rem 0 2rem 0;
    line-height: 3.5rem;
    width: 100%;
}

.blinking-cursor {
    border-right: 0.15em solid var(--dark-color);
    animation: blinking 0s step-end infinite; /* Applique l'animation de clignotement */
    display: inline-block; /* S'assurer que le curseur prend de la place */
    height: 10vw;
}

@keyframes blinking {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

h3, h3 .flip span {
    font-size: 22px;
    font-weight: 600;
    line-height: 2rem;
}

h4 {
    font-size: 24px;
}

h5 {
    font-weight: bold;
}

main a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.strong {
    font-weight: 800;
}

.no-padding {
    padding: 0 ;
}

.job-h3 {
    padding-top: 2rem;
}

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

strong, b {
    font-weight: bold; /* Assurez-vous que le poids de la police est défini sur bold */
}


/* ------------------------ HEADER ------------------------ */

header .logo {
    display: flex;
    justify-content: center;
}

header .logo p {
    display: none;
}

.svg-container {
    width: 100%; /* La div occupe la largeur maximale disponible */
    max-width: 100%; /* Assure que la largeur de la div ne dépasse pas 100% */
    display: flex;
    justify-content: center; /* Centre le SVG horizontalement si nécessaire */
    position: relative;
}

.svg-container img {
    width: 100%; /* Le SVG occupe toute la largeur de la div */
    height: auto; /* La hauteur du SVG s'ajuste automatiquement pour maintenir les proportions */
    max-width: 100%; /* Assure que le SVG ne dépasse pas la largeur de la div */
}

.hidden {
    display: none; 
    position: absolute;
    top: 10%;
    left: 2%;
    z-index: -10;
}

.hover:hover .hidden {
    display: block;
}

nav {
    margin : 2rem 0 2rem 0;
    padding: 1rem 0;
    border-top: var(--dark-color) 1px solid;
    border-bottom: var(--dark-color) 1px solid;
}

nav ul, .header-mobile ul {
    display: flex;
    align-items: end;
    gap: 3rem;
}

.header-mobile div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav li {
    display: none;
    position: relative;
}

header nav.active ul{
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
}

header nav.active li{
    display: block;
}

nav p {
    text-transform: uppercase;
    font-size: 28px;
    font-family: var(--secondary-title);
    padding: 0;
}

#menu-icon-open {
    display: block;
    color: var(--dark-color);
    cursor: pointer;
}

#menu-icon-close {
    display: none;
    color: var(--dark-color);
    z-index: 20;
    cursor: pointer;
}
.hover-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hover-indicator svg {
    top: 50%;
    left: 50%;
    transform: translate(-15%, -55%);
}

.stroke-path {
    stroke-linecap: round;
    stroke-dasharray: 943px; /* Longueur totale du tracé */
    stroke-dashoffset: 943px; /* Initialement masqué */
    animation: none; /* Pas d'animation par défaut */
}

.menu li {
    padding: 0;
}

/* Animation de tracé avec pauses égales */
@keyframes loopDraw {
    0% {
        stroke-dashoffset: 943px; /* Masqué au début */
    }

    50% {
        stroke-dashoffset: 0; /* Maintenir le tracé visible */
    }

    80% {
        stroke-dashoffset: 943px; /* Rester masqué */
    }
}

/* Appliquer l'animation de boucle au survol */
.nav-list li a:hover .stroke-path:not(.active) {
    animation: loopDraw 2s infinite; /* Lancer l'animation de boucle avec une durée totale de 4 secondes */
}

.nav-list li a .active {
    stroke-dashoffset: 0;
    z-index: 30;
}

.header-mobile p {
    line-height: 1.8rem;
    font-size: 1.3rem;
}

.hamburger-menu {
    padding-left: 2rem;
}

/* Initialement, la liste de navigation est cachée avec une translation */
header nav ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out; /* Transition fluide pour l'apparition */
}

/* Quand le menu est actif (ouvert), la liste de navigation est visible */
header nav.active ul {
    max-height: 100vh; /* Hauteur maximale de la liste de navigation (ajustez selon vos besoins) */
    height: 100vh;
    opacity: 1;
    transform: translateY(0); /* Ramène la liste à sa position d'origine */
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


/* ------------------------ MAIN ------------------------ */

/* LANDING PAGE */ 

@keyframes zoom {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.2); /* 80% du temps, échelle à 1.2 */
    }
    100% {
        transform: scale(1); /* À la fin, échelle à 1 */
    }
}

.turning-zoom {
    display: inline-block;
    animation: zoom 2s ease-in-out forwards;
    z-index: 40;
}

.presentation {
    display: block;
    width: 100%;
}

.img-profile {
    border: var(--dark-color) solid 1px;
    border-radius: 6px;
    display: block;
    margin: 0 auto 1rem; /* Centre l'image et ajoute un espace en bas */
    width: 100%; /* Prend toute la largeur disponible sur les petits écrans */
    height: auto; /* Maintient le ratio d'aspect de l'image */
}


.blank-space {
margin-top: 4rem;
}

/* LINKS */

.contact-link, .know-more {
    animation: blink 1s infinite;
    font-weight: 800;
    position: relative;
    padding-left: 20px; /* Espace pour la flèche */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Ombre légère */
}


.contact-link::before, .know-more::before {
    content: '➜'; /* Unicode pour la flèche */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: blink 1s infinite;
}

.know-more {
    animation: none;
    margin-top: 1rem !important;
}

.know-more::before {
    animation: none;
}

@keyframes blink {
    0% {
        color: inherit;
    }
    50% {
        color: var(--light-color);
    }
    100% {
        color: inherit;
    }
}

.social-media {
    display: flex;
    justify-content: end;
    gap: 2rem;
    margin-top: 2rem;
}

.social-media a{
    display: inline-block;
    position: relative; /* Added for z-index management */
}

.social-media a i {
    font-size: 3rem; /* Adjust size as needed */
    transition: color 0.2s ease; /* Smooth transition for color change */
}

.social-media a:hover i {
    color: var(--secondary-color); /* Color change on hover */
}


/* SLIDER */

.slider {
    margin-bottom: -8rem;
}

.slider-content {
    display: flex;
    overflow-x: hidden;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
    gap: 2rem;
    scroll-behavior: smooth;
    width: 100%;
}

.slider-item {
    padding: 0.5rem;
    background-color: var(--button-color);
    border-radius: 6px;
    transition: transform 0.5s ease;
    box-sizing: border-box;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    scroll-behavior: smooth;
}

.slider-image {
    width: 100%;
    object-fit: cover;
    object-position: top;
    box-sizing: border-box;
    border-radius: 6px;
}

.fa-arrow-right, .fa-arrow-left {
    font-size: 3rem;
}

.slider-nav {
    position: relative;
    bottom: 6.5rem;
    margin-bottom: -7rem;
    left: -3%;
    width: 106%;
    display: flex;
    justify-content: space-between;
}

.slider-nav-left,
.slider-nav-right {
    cursor: pointer;
    color: var(--dark-color);
    font-size: 4rem;
    z-index: 20;
    transition: color 0.2s ease;
}

/* BUTTONS STYLES */

.slider-title, .project-button {
    margin: 2rem 0;
    padding: 1rem;
    background-color: white;
    font-family: var(--main-title);
    text-transform: uppercase;
    display: inline-block;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 10;
}

.project-button {
    background-color: var(--button-color);
    margin: 0;
    align-items: start;
    color: var(--dark-color);
    cursor: pointer;
}

.slider-title::before, .project-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color); /* Change to your desired border color */
    border-radius: 6px;
    transform: scale(0);
    transition: transform 0.3s ease;
}


.slider-title:hover::before, .project-button:hover::before {
    transform: scale(1);
}

.slider-title:hover, .project-button:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Désactiver le filtre pour l'image du projet sélectionné */
.slider-item.selected .slider-image.no-filter {
    filter: none;
}

/* SECTIONS */

.news, .project, .collaboration {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Étire les enfants en hauteur */
}

.news-blog {
    margin-top: 0;
}


.flex-column, .news-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/* PUB */ 

.publicity {
    display: flex;
    overflow: hidden;
}

.publicity-margin {
    margin-top: 8rem;
}

.pub {
    margin: 4rem 0 2rem 0;
}

.pub-logo, .pub-text {
    padding: 1rem 0;
    border-top: var(--dark-color) solid 1px;
    border-bottom: var(--dark-color) solid 1px;
}

.pub-logo {
    display: flex;
    justify-content: center;
}

.pub-logo img {
    width: 50%;
    height: auto;
}

.pub .contact {
    display: flex !important;
    justify-content: space-between;
    align-items: end;
}

.pub .social-media{
    margin: 0;
}

/* PROJECT */

.project {
    display: flex;
    align-items: center;
}

.next-project-p {
    padding: 1rem 0;
    text-transform: uppercase;
}

.next-project {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.next-project img {
    filter: grayscale(100%); /* Convertit l'image en noir et blanc par défaut */
}

.project-header-image-wrapper {
    overflow: hidden;
    position: relative; /* Assurez-vous que le conteneur est positionné correctement */
}

.project-header-image {
    height: 20rem;
    width: 98.6vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #7F64D3, #1C80A3);
    box-sizing: border-box;
    margin: 2rem 0;
}

.project-logo {
    max-width: 50vw;
    max-height: 18rem;
    padding: 1rem;
    box-sizing: border-box;
}

.margin-4 {
    margin-top: 4rem;
}

.special {
    text-transform: uppercase;
    text-align: center;
    line-height: 2rem;
}   

.image-scroll-container {
    overflow: auto; /* Active le défilement à l'intérieur du conteneur */
    position: relative; /* Position relative pour pouvoir ajuster l'image */
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
}

.image-scroll-container-mobile {
    max-width: 25rem; /* Prend toute la largeur disponible */
    height: 45rem; /* Fixe la hauteur du conteneur */
}

.image-scroll-container::-webkit-scrollbar {
    display: none; /* Cache les barres de défilement pour les navigateurs Webkit */
}

.image-containers {
    position: relative; /* Nécessaire pour positionner l'overlay et la flèche */
}

.image-container {
    position: relative; /* Nécessaire pour que les images soient positionnées correctement */
    margin: 2rem 0;
    border-radius: 6px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Exemple d'ombre */
    overflow: hidden; /* Cache tout débordement de l'overlay */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* S'assure que l'overlay couvre tout le conteneur */
    background-color: rgba(0, 0, 0, 0.5); /* Voile foncé */
    opacity: 1; /* Pleine opacité par défaut */
    transition: opacity 0.3s ease; /* Transition douce pour l'opacité */
    z-index: 1; /* S'assure que le voile est au-dessus des images */
    pointer-events: none; /* Permet le défilement à travers l'overlay */
}

.image-scroll-container {
    overflow: auto; /* Active le défilement à l'intérieur du conteneur */
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
}

.image-scroll-container-mobile {
    max-width: 25rem; /* Prend toute la largeur disponible */
    height: 45rem; /* Fixe la hauteur du conteneur */
}

.image-scroll-container-desktop {
    width: 100%;
    aspect-ratio: 5 / 3; /* La hauteur sera automatiquement ajustée pour être la moitié de la largeur */
}

.image-scroll-container::-webkit-scrollbar {
    display: none; /* Cache les barres de défilement pour les navigateurs Webkit */
}

.image-container img {
    display: block; /* Pour éviter les espaces en bas de l'image */
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: auto; /* Conserve les proportions de l'image */
    object-fit: cover; /* L'image couvre le conteneur tout en conservant ses proportions */
    border-radius: 6px;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre la flèche */
    font-size: 3rem; /* Taille de la flèche */
    color: white; /* Couleur de la flèche */
    animation: pulse 1s infinite; /* Animation de pulsation */
    z-index: 2; /* S'assure que la flèche est au-dessus du voile */
}

.scroll-indicator.up {
    transform: translate(-50%, -50%) rotate(180deg); /* Fait tourner la flèche vers le haut */
}

@keyframes pulse {
    0%, 100% {
        opacity: 1; /* Opacité pleine au début et à la fin */
    }
    50% {
        opacity: 0.5; /* Opacité réduite au milieu */
    }
}

.image-container:hover .overlay {
    opacity: 0; /* Disparaît au survol */
}

.image-container:hover .scroll-indicator {
    display: none; /* Disparaît au survol de l'image */
}

.image-container-hidden {
    display: none;
}

/* PORTRAIT */

.img-profile-zoom {
    margin-top: 2rem;
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-image-container-wrapper {
    overflow: hidden;
    position: relative;
    width: calc(100% + 2rem);
    margin-left: -1rem;
}

.no-radius {
    border-radius: 0 !important;
}

.profile-image-container {
    height: 12rem;
    margin-top: 2rem;
}

.profile-image {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%); /* Convertit l'image en noir et blanc par défaut */
    transition: transform 1s ease-out; /* Transition pour le mouvement de l'image */
}

.profile-image:hover {
    filter: grayscale(0%); /* Convertit l'image en noir et blanc par défaut */
}

/* GREETINGS ANIMATION */

.flip {
    height: 32px; /* Hauteur d'un seul mot */
    overflow: hidden;
    position: relative;
}

.flip-content {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%; /* Assure que le texte occupe toute la largeur disponible */
    will-change: transform; /* Optimisation pour les animations */
}

/* BLOG */

.blog-container, .column {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.blog-img {
    width: 100%;
    filter: grayscale(100%);
    margin-bottom: 1rem;
    margin: 2rem 0 0 0 !important;
}

.blog-column-BD .blog-img {
    height: 100%;
    margin: 0 !important;
}

.blog-img:hover {
    filter: grayscale(0%);
}

.blog-column {
    flex: 1;
    border: 1px solid var(--dark-color);
    padding: 2rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.no-gap {
    gap: 0 !important;
}

.blog-hidden {
    display: none;
}

.blog-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.blog-container-BD {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    margin: 4rem 1rem 0 1rem;
}

.blog-column-BD {
    padding: 0;
    border: 5px var(--dark-color) solid;
}

/* BLOG ARTICLES */

.edito, .interview, .trick {
    padding: 2rem 1rem;
    border-radius: 6px;
}

.interview {
    background-color: var(--button-color);
    box-sizing: border-box;
}

.trick {
    border: var(--dark-color) dashed 1px;
}

.edito {
    border: var(--dark-color) solid 1px;
}

.news a, .pub .contact{
    margin-top: 2rem;
    display: inline-block;
}

.author {
    font-size: 16px;
    text-align: end;
}

.news img {
    min-width: 100%;
    margin-top: 1rem;
    border-radius: 6px;
}

.space-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    margin-bottom: 0;
}

.no-articles-message {
    padding-bottom: 2rem;
}

/* SINGLE ARTICLE */

.single-article-img {
    display: flex;
    justify-content: center;
}

.wp-block-image .alignright, .wp-block-image .alignleft {
    margin: 1rem 0;
}

.padding-top img {
    padding-top: 1rem;
}

.wp-element-caption {
    margin-bottom: 0;
}

.margin-bottom-mobile , .more-from-category {
    margin-bottom: 4rem;
}

.other-article {
    text-align: end;
    font-size: 0.8rem;
}

/* ARTICLE CATEGORY */

.articles-list {
    margin-bottom: 8rem;
}

/* JOB */

.logo-long > img {
    padding-top: 2rem;
    width: 100%;
}

.job-list {
    list-style-type: disc;
    padding: 1rem 20px;
}

.job-list li {
    padding-top: 0;
}

.line {
    border-bottom: 1px var(--dark-color) solid;
    display: block;
    width: 4rem;
    padding-top: 2rem;
}

.full-size-image img{
    width: 100% !important;
}

/* JOB TESTIMONY SLIDER */

.job-slider {
    padding-top: 2rem;
}

.job-slider-item {
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 36rem;
}

.job-slider-item p, .testimony_company, .wp-element-caption {
    font-size: 0.8rem;
    line-height: 1rem;
}

.testimony-text {
    display: flex;
    flex-direction: column;
}

.apostrophe {
    width: 3rem;
    height: auto;
    margin-left: -1rem;
    padding-top: 1rem;
}

.apostrophe_close {
    align-self: end;
    margin-right: -1rem;
}

.job-testimony-img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimony-client {
    align-self: center;
    text-align: center;
}

/* JOB ACCORDION */

.accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
}

.accordion p, .accordion li {
    color: var(--light-color);
}

.accordion-item {
    display: flex;
    flex-direction: column;
    transition: flex-grow 0.3s;
    border-bottom: 4px solid var(--light-color);
}

.accordion-item-first .accordion-header{
    border-top-left-radius: 50px;
}

.accordion-header {
    padding: 1rem;
    background-color: var(--dark-color);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    width: 100%;
    flex-shrink: 0; /* Fixed width */
}

.accordion-content {
    display: none;
    background-color: var(--dark-color);
    padding: 2rem 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.accordion-item.active {
    flex-grow: 1;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-header:hover {
    background-color: var(--secondary-color);
}

.accordion-item.active .accordion-header {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 4px solid var(--dark-color);
}

.accordion-content p, .accordion-content li {
    font-size: 1rem;
    line-height: 1rem;
    padding-top: 0;
}
.accordion-content p {
    padding-bottom: 1rem;
    font-weight: 800
}

.accordion-content li {
    padding: 0.3rem;
    border-bottom: 1px var(--light-color) solid;
}

/* CONTACT */

/* CONTACT STEPS */

.quote-paragraph { 
    padding-top: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Exemple d'ombre */
    background-color: var(--button-color);
    transition: transform 0.2s ease; /* Transition pour l'effet */
    perspective: 1000px; /* Ajout de la perspective pour un effet 3D */
}

.step-container:hover {
    background-color: #F5F5EF;
}

.step-container p {
    text-align: center;
    font-size: 1rem;
}

.step-img {
    height: 4rem;
    padding-bottom: 1rem;
}

/* CONTACT FORM */

form {
    padding-bottom: 4rem;
    margin-top: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

span.label-text {
    display: inline-block;
    margin-bottom: 1rem;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
}

.wpcf7-radio, .wpcf7-form-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

::placeholder {
    color: #9e9e9b;
}

input[type="text"], input[type="email"], input[type="file"], input[type="tel"], textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #9e9e9b;
    background-color: var(--light-color);
    padding-left: 1rem ;
}

.wpcf7-text, .wpcf7-textarea {
    margin-bottom: 0.5rem;
}

.last, .website-type-other{
    margin-bottom: 0.8rem;
}

#your-wishes .last, #your-fonctionnalities .last {
    margin-bottom: 0.5rem;
}

.file-input-container p {
    padding: 0;
}

#branding-files {
    border: none;
    display: inline-block; /* Assurez-vous qu'il est un bloc ou un élément en ligne */
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wpcf7-response-output {
    border: none !important; 
    color: #dc3232;
    margin: 1rem 0 0 0 !important;
    padding: 0 !important;
}

.wpcf7-response-output {
    color: var(--secondary-color);
}


/* Style de focus pour le label */
.file-input-button:focus,
#branding-files:focus + .file-input-button { /* Utiliser le sélecteur frère + pour le label */
    outline: 2px solid black; /* Couleur du contour visible */
    z-index: 100; /* S'assurer qu'il est au-dessus des autres éléments */
}

textarea {
    height: 5rem;
    border: 2px solid #9e9e9b;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem ;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
}

.checkbox-group label input, .radio-group label input{
    margin-right: 1rem;
}

.other {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

input[type="text"]:focus, 
input[type="tel"]:focus,
input[type="email"]:focus, 
input[type="file"]:focus{
    border-bottom: 2px solid var(--secondary-color); /* Change la bordure du bas lorsqu'il est sélectionné */
    outline: none; /* Supprime la bordure par défaut lors de la mise au focus */
}

textarea:focus {
    border: 2px solid var(--secondary-color); /* Change la bordure du bas lorsqu'il est sélectionné */
    outline: none; /* Supprime la bordure par défaut lors de la mise au focus */
}

.file-input-container {
    position: relative;
    width: fit-content;
}

.file-input-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#file-selected-text {
    margin-bottom: 1rem;
    display: block;
    padding: 0;
}

input, textarea {
    color: var(--secondary-color);
}

.submit-button{
    border: none; /* Pas de bordure */
    margin-top: 2rem !important;
    font-size: 20px;
}

.wpcf7-acceptance .wpcf7-list-item{
    margin:0;
}

.flex-row--acceptance{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.flex-row--acceptance p, .wpcf7-acceptance label {
    padding: 0;
    margin: 0;
}

input:-webkit-autofill {
    color: var(--secondary-color) !important;
    -webkit-text-fill-color: var(--secondary-color) !important;
    background-color: none;
    -webkit-box-shadow: 0 0 0px 1000px none inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* CONTACT FAQ ACCORDION */

.faq-accordion {
    width: 100%; 
    margin-top: 2rem;
}

.faq-header {
    display: flex; /* Utilisation de flexbox pour aligner le triangle et le texte */
    align-items: center; /* Alignement vertical */
    padding: 1rem; /* Espacement interne */
    border-bottom: 1px solid var(--dark-color); /* Bordure de l'accordéon */
    cursor: pointer; /* Curseur de pointeur */
    -webkit-tap-highlight-color: transparent;
}

.faq-content {
    padding: 1rem; /* Espacement interne */
    display: none; /* Masquer le contenu par défaut */
    border-bottom: 1px solid var(--dark-color); /* Bordure de l'accordéon */
    background-color: var(--button-color); /* Couleur de fond pour l'état actif */
}

.faq-icon {
    width: 0; /* Triangle à gauche */
    height: 0; 
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent; 
    border-bottom: 10px solid var(--dark-color); /* Couleur du triangle */
    margin-right: 10px; /* Espacement à droite du triangle */
    transition: transform 0.3s; /* Transition douce pour la rotation */
    transform: rotate(90deg); /* Rotation du triangle lorsque l'état est actif */
}

/* Styles pour l'état actif */
.faq-header.active {
    background-color: var(--button-color); /* Couleur de fond pour l'état actif */
    border-bottom: none;
}

.faq-header.active p {
    color: var(--dark-color);
}

.faq-header.active .faq-icon {
    transform: rotate(180deg); /* Rotation du triangle lorsque l'état est actif */
    border-bottom: 10px solid var(--dark-color); /* Couleur du triangle */
}

/* 404 */

.section-404 {
    margin-bottom: 4rem;
}

.no-margin{
    margin: 0;
}

.container-404 {
    margin-bottom: 2rem;
}
   
.flex-row-404 {
    display: flex;
    flex-direction: column;
}

.article-404, .word-search{
    flex: 1;
    border: var(--dark-color) solid 1px;
    border-left: none;
    border-right: none;
}

.article-404, .word-search, .word-list{
    padding: 2rem 0;
}

.word-search{
    border-top: none;
    display: flex;
    align-items: flex-start;
    position: relative;
}

#drawing-canvas {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.word-list {
    border-bottom: var(--dark-color) solid 1px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 colonnes */
    gap: 1rem; /* Espacement entre les éléments */
    list-style-type:none;
}

.word-list li {
    font-family: var(--main-title);
    text-transform: uppercase;
}

.word-list li.found {
    text-decoration: line-through; /* Applique un style barré */
    color: var(--secondary-color);
}

.article-404 p, .article-404 li, .article-404 a {
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(15, 23px); /* 15 colonnes de 40px */
    margin: 0 auto;
}

.grid div:hover {
color   : var(--secondary-color); /* Changer la couleur du texte au survol */
}

.button-404 {
    background-color: var(--button-color);
    margin: 1rem 0 !important;
}

#word-search-grid div {
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

#word-search-grid .found {
    background-color: rgba(57, 98, 180, 0.5);
}

/* PAGES */

.pages {
    margin-bottom: 4rem;
}

.pages h2 {
    margin-top: 0;
}

.pages h3 {
    padding-top: 2rem;
}

/* BACK TO TOP */

.back-top-container {
    display: none;
}

#back-top.backtop-shown {
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

#back-top {
    overflow: hidden;
    width: 40px;
    height: 60px;
    cursor: pointer;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -moz-transform: scaleX(0);
    color: var(--dark-color);
}

#back-top, #back-top.backtop-shown {
    -webkit-transition: -webkit-transform .5s;
    -moz-transition: -moz-transform .5s;
    transition: transform .5s;
}

#back-top:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1px;
    width: 20px;
    height: 2px;
    background-color: var(--dark-color);
    -webkit-transform-origin: 21px 0;
    -moz-transform-origin: 21px 0;
    -ms-transform-origin: 21px 0;
    transform-origin: 21px 0;
}


#back-top:after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    margin-top: -1px;
    width: 20px;
    height: 2px;
    background-color: var(--dark-color);
    -webkit-transform-origin: 3px 0;
    -moz-transform-origin: 3px 0;
    -ms-transform-origin: 3px 0;
    transform-origin: 3px 0;
}

#back-top:hover:after {
    -webkit-transform: translate(2px,-12px) rotate(60deg);
    -moz-transform: translate(2px,-12px) rotate(60deg);
    -ms-transform: translate(2px,-12px) rotate(60deg);
    transform: translate(2px,-12px) rotate(60deg);
}

#back-top:hover:before {
    -webkit-transform: translate(2px,-15px) rotate(-60deg);
    -moz-transform: translate(2px,-15px) rotate(-60deg);
    -ms-transform: translate(2px,-15px) rotate(-60deg);
    transform: translate(2px,-15px) rotate(-60deg);
}


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

footer {
    position: absolute; 
    left: 0;
    width: 100%;
}

.marquee-w {
    height: 6rem;
    background-color: var(--dark-color);
    padding: 2rem 0;
    position: relative;
    overflow: hidden; /* Hide any overflowing content */
}

.marquee {
    display: flex; /* Use flexbox for horizontal alignment */
    position: absolute; 
    white-space: nowrap; 
    animation: marquee 20s linear infinite; /* Animation for the entire marquee */
}

.marquee span {
    display: inline-block;
    color: var(--light-color);
    white-space: nowrap; /* Prevent line breaks */
}

/* Pause the animation on hover */
footer:hover .marquee {
    animation-play-state: paused;
}

/* Styling for links */
.marquee span a {
    color: var(--light-color); 
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Adjust for two spans */
    }
}

/* ------------------------------------------------ SCREEN 500PX - 768PX ------------------------------------------------ */

@media screen and (min-width: 500px) {

    h1 {
    	font-size: 8vw;
    	line-height: 10vw;
    }
    
    .blinking-cursor {
    	height: 8vw;
    }

}

/* ------------------------------------------------ SCREEN 768PX - 930PX ------------------------------------------------ */

@media screen and (min-width: 768px) {

    /* ------------------------ GENERAL ------------------------ */

    body {
        padding: 2rem 4rem;
    }

    .flex-reverse {
        display: inline;
    }

    /* TEXT STYLES */
    
    h1 {
    	font-size: 6.4vw;
    	line-height: 8vw;
    }
    
    .blinking-cursor {
    	height: 6.4vw;
    }

    h2{
        font-size: 38px;
        padding: 2rem 0;
    }

    .container {
        margin-bottom: 2rem;
    }

    /* ------------------------ HEADER ------------------------ */

    nav {
        margin : 2rem 0 4rem 0;
    }

    /* ------------------------ MAIN ------------------------ */

    /* LANDING PAGE */ 

    .presentation {
        display: flex;
    }

    .img-profile {
        margin-right: 2rem; /* Ajoute un espace entre l'image et le texte */
        margin-bottom: 1rem; /* Ajoute un espace entre l'image et le texte */
        width: auto; /* Ajuste la largeur de l'image pour les grands écrans */
        border-radius: 0;
        max-height: 400px;
    }

    /* PUB */ 
    
    .pub {
        display: flex;
    }
    
    .pub-logo {
        flex: 1;
        display: flex;
        padding: 2rem 2rem 2rem 0;
        border-right: var(--dark-color) solid 1px;
    }

    .pub-logo img {
        width: 100%;
    }
    
    .pub-text {
        flex: 2;
        padding: 2rem 0 2rem 2rem;
    }

    .pub .contact {
        padding: 0;
    }

    /* PROJECT */

    .project-header-img {
        height: 20rem;
        width: 100%;
        margin: 2rem -4rem
    }
    
    .slider-nav-left:hover,
    .slider-nav-right:hover {
        color: var(--secondary-color);
    }

    /* PORTRAIT */

    .img-profile-zoom {
        float: left;
        margin-top: 0;
        height: 500px;
    }
    
    .profile-image-container-wrapper {
        width: calc(100% + 8rem);
        margin-left: -4rem;
    }

    .profile-image-container {
        height: 25rem;
    }

    /* BLOG */

    .blog-container-BD {
        flex-direction: row;
    }

    /* SINGLE ARTICLE */

    .single-article-img {
        display: inline;
    }

    .single-article-img figure {
        max-width: 40vw;
    }

    .single-article-img figure {
        margin: 2rem 0rem 1rem 0 !important;
    }

    .single-article-img-left figure {
        margin-right: 2rem !important;
    }

    .single-article-img-right figure {
        margin-left: 2rem !important;
    }

    .padding-top {
        padding-top: 3rem;
    }

    .margin-bottom, .margin-bottom figure {
        margin-bottom: 4rem !important;
    }

    /* JOB */

    .job-slider-item {
        min-width: 35% !important;
    }

    /* CONTACT */

    .steps-container {
        flex-direction: row;
        margin-bottom: 4rem;
    }

    .steps-container > .step-container {
        flex: 1; /* Chaque div enfant prendra une part égale de l'espace disponible */
    }
    
    .faq-header {
        transition: background-color 0.3s; /* Transition douce pour le survol */
    }
    
    .faq-header:hover {
        background-color: var(--secondary-color); /* Couleur de fond au survol */
    }

    .faq-header:hover p {
        color: var(--light-color);
    }

    .faq-header:hover .faq-icon {
        border-bottom: 10px solid var(--light-color); /* Couleur du triangle */
    }
    
    /* BACK TO TOP */

    .back-top-container {
        z-index: 1000; /* Pour s'assurer que la flèche est au-dessus des autres éléments */
	display: flex;
        justify-content: flex-end;
    }
}

/* ------------------------------------------------ SCREEN 992PX - 1200 PX ------------------------------------------------  */

@media screen and (min-width: 992px) {

    /* ------------------------ HEADER ------------------------ */

    header nav ul {
        opacity: 1;
        max-height: none;
        overflow: visible;
    }

    .nav-list {
        height: auto;
        position: unset;
    }
    /* ------------------------ MAIN ------------------------ */

    /* SLIDER */

    .slider-item {
        min-width: 85%; 
        padding: 6rem 4rem 0 4rem;
        border-radius: 0;
        align-items: start;
        margin-bottom: 4rem;;
    }

    .slider-title::before, .project-button::before {
        border-radius: 0;
    }

    .slider-image {
        border-radius: 0;
        position: relative; /* Nécessaire pour le positionnement relatif des éléments enfants */
        filter: grayscale(100%); /* Convertit l'image en noir et blanc par défaut */
        transition: filter 0.3s ease; /* Transition fluide pour l'effet de changement */
    }

    .slider-image-selected {
        filter: grayscale(0%); /* Retire le filtre noir et blanc au survol */
    }


    .slider-item:hover .slider-image{
        filter: grayscale(0%); /* Retire le filtre noir et blanc au survol */
    }
    

    .slider-title, .project-button {
        border-radius: 0;
        margin: 4rem 0 ;
    }

    .slider-nav {
        bottom: 25rem;
        margin-bottom: -7rem;
    }

    /* BUTTONS STYLES */

    .project-button {
        margin: 0;
    }

    /* BLOG ARTICLES */

    .edito, .interview, .trick {
        padding: 4rem 2rem;
        border-radius: 0;
    }

    .news img {
        border-radius: 0;
    }
    
    .news .flex-row {
        display: flex;
        flex-direction: row;
        gap: 20px; /* Espacement entre les éléments */
    }

    .news .flex-column {
        flex: 2;
    }
    
    .news .edito,
    .news .trick,
    .news .interview {
        flex:1;
        min-width: 0; /* Pour éviter que le contenu ne force une largeur excessive */
    }

    .trick-blog{
        flex: 0 !important;
    }

    .news img {
        float: left;
        margin-right: 1rem;
        min-width: 10rem;
    }

    /* PROJECT */

    .next-project-p {
        margin: 0 0 1rem 0;
        text-transform: uppercase;
    }

    .image-containers {
        display: flex;
        gap: 2rem;
    }

    .image-container-hidden {
        display: block;
    }

    .project-header-image {
        height: 30rem;
    }

    .project-logo {
        padding: 2rem;  
        max-height: 26rem;  
    }

    .image-container {
        border-radius: 0;
    }

    .image-container img {
        border-radius: 0;
    }

    /* PUB */

    .publicity-margin {
        margin-top: 4rem;
    }

    /* BLOG */

    .blog-container {
        flex-direction: row;        
        justify-content: space-between;
        gap: 40px;
    }
    
    .column {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 40px;
    }
    
    /* Colonne des articles longs */
    .long-column {
        flex: 2; /* 2/3 de la largeur */
    }
    
    /* Colonne des articles courts */
    .short-column {
        flex: 1; /* 1/3 de la largeur */
    }

    .grid-item.short.trick {
        flex: 0;
    }

    .blog-hidden {
        display: inline-block;
    }

    /* JOB */

    .job-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
      
    .job-container > div {
        box-sizing: border-box;
        width: 48%; /* Ajustez à 50% moins la marge/gouttière */
        margin-bottom: 20px;
    }

    /* JOB ACCORDION */

    .accordion {
        flex-direction: row;
        height: 28rem;
    }
    
    .accordion p, .accordion li {
        color: var(--light-color);
    }
    
    .accordion-item {
        display: flex;
        flex-direction: row;
        transition: flex-grow 0.3s;
        border-right: 4px solid var(--light-color);
    }
    
    .accordion-item-first .accordion-header{
        border-bottom-right-radius: 50px;
        border-top-left-radius: 0;
    }
    
    .accordion-header {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        transform: rotate(180deg); /* Rotate the text 180 degrees */
        width: 4rem;
    }
    
    .accordion-content {
        display: none;
        background-color: var(--dark-color);
        flex-grow: 1;
        overflow-y: auto;
    }

    .news, .project, .collaboration {
        margin-top: 0;
    }

    /* 404 */

    .flex-row-404 {
        display: flex;
        flex-direction: row;
    }

    .article-404, .word-search{
        border-left: none;
    }

    /* 404 */
    
    .flex-row-404 {
    display: flex;
    flex-direction: row;
    }
    
    .article-404, .word-search{
    border-left: none;
    border-right: var(--dark-color) solid 1px;;
    }
    
    .article-404, .word-search, .word-list{
    padding: 2rem;
    }
    
    .word-search{
    border-right: none;
    border-top: var(--dark-color) solid 1px;
    }
    
    .grid {
    grid-template-columns: repeat(15, 30px); /* 15 colonnes de 40px */
    }
    
    #word-search-grid div {
    width: 30px;
    height: 30px;
    }
    
    .word-list {
    grid-template-columns: repeat(4, 1fr); /* 3 colonnes */
    }
    

/* ---------------------------------------------- SCREEN 1200PX - 1500 PX ---------------------------------------------- */

@media screen and (min-width: 1200px) {

    /* ----------------------- GENERAL ----------------------- */

    h2{
        font-size: 48px;    
    }

    /* ----------------------- HEADER ----------------------- */

    header .logo {
        display: flex;
        justify-content: space-between;
        align-items: end;
    }

    header .logo p {
        display: block;
        text-transform: uppercase;
        font-size: 28px;
        font-family: var(--secondary-title);
        margin: 0;
    }

    nav {
        padding: 1.25rem 0;
    }

    nav ul, .header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    }

    nav li {
        display: block;
    }

    nav p {
        display: none;
    }

    #menu-icon-open {
        display: none; 
    }
    
    #menu-icon-close {
        display: none;
    }

    .header-mobile {
        display: none;
    }

    /* ----------------------- MAIN ----------------------- */

    main {
        padding: 0 6rem;
    }

    /* LANDING PAGE */ 

    .presentation {
        padding-top: 2rem;
    }

    .profile-image-container-wrapper {
        width: calc(100% + 20rem);
        margin-left: -10rem;
    }

    .profile-image-container {
        height: 30rem;
    }

    /* SINGLE ARTICLE */

    .single-article-img figure {
        max-width: 30vw;
    }

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

    .marquee-w {
        padding: 4rem 0;
    }

    .marquee-2 {
        display: none;
    }
}

/* ---------------------------------------------- SCREEN 1500 PX ---------------------------------------------- */

@media screen and (min-width: 1500px) {

    /* ----------------------- MAIN ----------------------- */

    main {
        padding: 0 12rem;
    }

    /* LANDING PAGE */ 

    .profile-image-container-wrapper {
        width: calc(100% + 32rem );
        margin-left: -16rem;
        display: block;
    }

    .profile-image-container {
        height: 35rem;
    }
}
}
