@import url('reset.css');

@font-face {
  font-family: 'ABC Asfalt';
  src: url('fonts/ABCAsfalt-Regular.woff2') format('woff2'),
  url('fonts/ABCAsfalt-Regular.otf') format('otf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Bold.woff2') format('woff2'),
      url('fonts/SpaceGrotesk-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Regular.woff2') format('woff2'),
      url('fonts/SpaceGrotesk-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Medium.woff2') format('woff2'),
      url('fonts/SpaceGrotesk-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Light.woff2') format('woff2'),
      url('fonts/SpaceGrotesk-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-SemiBold.woff2') format('woff2'),
      url('fonts/SpaceGrotesk-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  font-stretch: 1% 500%; /* Required by Chrome */
}

/*
Theme Name: Naked Wordpress
Theme URI: http://bckmn.com/naked-wordpress
Author: J Beckman
Version: 1.0
License: GNU General Public License
*/

:root {
  --font-color: #000000;
  --light-font-color: #ffffff;
  --violet: #8181F7;
  --lilac: #C2B6F8;
  --pink: #EEA6FF;
  --kaki: #A59950;
  --light-kaki: #EDFFBD;
  --orange: #F76C4C;
  --dark-orange: #EA5836;
  --grey : #a3a3a3;
  --light-grey: #ccc;
  --very-light-grey: #F4F4F4;
  --primary-color: var(--violet);
  --font-family: 'Space Grotesk', 'Open-sans', sans-serif;
  --font-size: 1.8rem;
  --h1-font-size: 4.8rem;
  --h1-font-size-mobile: 4.8rem;
}

/* Colors
-------------------------------------------------------------- */
.font-color {
  color: var(--font-color);
}

.violet {
  color: var(--violet);
}

.lilac {
  color: var(--lilac);
}

.pink {
  color: var(--pink);
}

.kaki {
  color: var(--kaki);
}

.light-kaki {
  color: var(--light-kaki);
}

.orange {
  color: var(--orange);
}

/* Animations
-------------------------------------------------------------- */
@keyframes r {
  80% {
    transform: translate(0, -600%);
  }
  80.01% {
    transform: translate(0, 1800%);
  }
  /* 0% {
    transform: translate(0, -400);
  }
  100% {
    transform: translate(0, 100%);
  } */
}

/* Global styles
-------------------------------------------------------------- */
body,
button,
input,
select {
  padding: 0;
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size);
}

main {
  margin: 14% 14% 2%;
}

img {
  width: 100%;
  max-width: 100%;
}

p:empty,
td:empty {
  display: none;
}

.scrollable {
  overflow: auto;
}

:focus-visible {
  outline: 3px solid var(--font-color);
}

body::-webkit-scrollbar,
.scrollable::-webkit-scrollbar {
  width: 8px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track,
.scrollable::-webkit-scrollbar-track {
  background: var(--very-light-grey);        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb,
.scrollable::-webkit-scrollbar-thumb {
  background-color: var(--font-color);    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 1px solid var(--very-light-grey);  /* creates padding around scroll thumb */
}

.mobile-only {
  display: block !important;
}

.mobile-only-flex {
  display: flex !important;
}

.desktop-only,
.desktop-only-flex {
  display: none !important;
}

.no-margin {
  margin: 0;
}

.underline {
  border-bottom: 1px solid var(--font-color);
  width: fit-content;
}

.site-footer {
  display: none;
}

.hide-text {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

.site-title {
  display: none;
}

@media only screen and (min-width: 414px) {
  main {
    margin: 14% 12% 2%;
  }
}

@media only screen and (min-width: 1024px) {
  main {
    margin: 6% 6% 2%;
  }

  .desktop-only {
    display: block !important;
  }

  .desktop-only-flex {
    display: flex !important;
  }

  .mobile-only,
  .mobile-only-flex {
    display: none !important;
  }
}

@media only screen and (min-width: 1280px) {
  main {
    margin: 5% 4% 2%;
  }
}


/* Typography
-------------------------------------------------------------- */
html {
  font-size: 62.5%;
}

body {
  font-family: var(--font-family);
  font-size: 1.6rem;
  line-height: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  margin-top: 0;
  margin-bottom: 1rem;;
  font-weight: 400;
}

h1 {
  font-size: 3rem;
  line-height: 40px;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h2 {
  line-height: 32px;
  font-size: 2.5rem;
  text-transform: uppercase;
}

h3 {
  font-size: 2rem;
  line-height: 30px;
  text-transform: uppercase;
}

h4 {
  font-size: 1.8rem;
  line-height: 26px;
}

hr {
  background-color: var(--light-grey);
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

a { 
  font-family: var(--font-family);
  color: var(--font-color);
  text-decoration: none;
  cursor: pointer;
}

p {
  margin-bottom: 1rem;
  margin-top: 0;
  vertical-align: top;
}

b,
strong {
  font-weight: bold;
}

.center {
  text-align: center;
}
.open {
  display: block;
}
.overflow-hidden {
  overflow: hidden;
}

@media only screen and (min-width: 1024px) {
  h1 {
    font-size: var(--h1-font-size);
    line-height: 58px;
  }

  h2 {
    line-height: 50px;
    font-size: 3.4rem;
    text-transform: uppercase;
  }
  
  h3 {
    font-size: 2.8rem;
    line-height: 32px;
    text-transform: uppercase;
  }
  
  h4 {
    font-size: 2.2rem;
    line-height: 28px;
  }
}

/* Buttons
-------------------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  max-width: 13.2rem;
  padding: 0 2rem;
  border: 1px solid var(--font-color);
  border-radius: 50px;
  font-size: 2rem;
  font-weight: 400;
  color: var(--font-color);
  transition: all .3s ease-in-out;
}

button:hover {
  box-shadow: none;
}

.primary-btn {
  background: var(--font-color);
  border-color: var(--font-color);
  color: var(--light-font-color);
}

.primary-btn:hover {
  background: transparent;
  border-color: var(--font-color);
  color: var(--font-color);
}

.secondary-btn {
  background: transparent;
}

.secondary-btn:hover {
  background: var(--font-color);
  border-color: transparent;
  color: var(--light-font-color);
}

.back-btn {
  position: fixed;
  left: 20px;
  top: 10px;
  background: transparent;
  z-index: 1;
}

.back-btn:hover {
  box-shadow: none;
}

/* Pre Homepage
-------------------------------------------------------------- */
#pre-homepage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 5;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  /* cursor: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iQ2FscXVlXzEiIGRhdGEtbmFtZT0iQ2FscXVlIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDIwMC42NSA2My44MSI+CjxnIHRyYW5zZm9ybT0icm90YXRlKDQ1LCAxNiwgMTYpIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4KICAgICAgLmNscy0xIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIGZvbnQtZmFtaWx5OiBTcGFjZUdyb3Rlc2stQm9sZCwgJ1NwYWNlIEdyb3Rlc2snOwogICAgICAgIGZvbnQtc2l6ZTogNTVweDsKICAgICAgICBmb250LXdlaWdodDogNzAwOwogICAgICAgIHN0cm9rZTogIzAwMDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPHRleHQgY2xhc3M9ImNscy0xIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSguNSA0Ny4yNSkiPjx0c3BhbiB4PSIwIiB5PSIwIj5FTlRSRVI8L3RzcGFuPjwvdGV4dD4KPC9zdmc+")16 16, pointer; */
  cursor: url("cursors/entrer-diago.cur"), default; 
}

.pre-homepage__content h1 {
  font-family: "ABC Asfalt", "Space Grotesk", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 5rem;
  line-height: 50px;
}

.pre-homepage__content {
  padding: 0 1rem 1rem;
  color: var(--dark-orange);
}

.pre-homepage__content p {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

@media only screen and (min-width: 414px) {
  .pre-homepage__content h1 {
    font-size: 7rem;
    line-height: 70px;
  }
}

@media only screen and (min-width: 768px) {
  .pre-homepage__content h1 {
    font-size: 12rem;
    line-height: 120px;
  }

  .pre-homepage__content p {
    font-size: 3rem;
  }
}

@media only screen and (min-width: 1024px) {
  .pre-homepage__content {
    max-width: 98%;
  }

  .pre-homepage__content h1 {
    font-size: 12.5rem;
    line-height: 116px;
  }
}

@media only screen and (min-width: 1440px) {
  .pre-homepage__content h1 {
    font-size: 14.5rem;
    line-height: 130px;
  }
}

@media only screen and (min-width: 1680px) {
  .pre-homepage__content h1 {
    font-size: 16.5rem;
    line-height: 150px;
  }
}

/* Main navigation menu
-------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 3;
  transform: translateX(-100%);
}

.site-header.clicked {
  transform: translateX(0);
  background-color: var(--primary-color);
}

.site-header h3 {
  text-align: center;
  margin: 0;
}

.menu {
    padding: 8rem 5rem 5rem;
    text-align: center;
}

.menu-item a {
  position: relative;
  display: block;
  width: fit-content;
  font-size: 6rem;
  line-height: 64px;
  text-transform: uppercase;
  font-weight: 300;
  transition: transform .3s ease-in-out;
}

.menu-item:hover a,
.menu-item:focus a,
.current_page_item a {
  transform: translateX(15px);
  font-weight: bold;
}

.current_page_item a::after {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translate(0, -58%);
  content: '';
  background: url(images/left-arrow.png) no-repeat;
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  background-size: 100%;
}

.main-navigation-info {
  display: flex;
  flex-direction: column;
  font-size: 1.4rem;
}

.main-navigation-info h3 {
  border-bottom: 1px solid var(--font-color);
  margin: 0;
}

.main-navigation-social {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 5rem;
  border-top: 1px solid
}

.main-navigation-social li {
  display: flex;
  justify-content: flex-start;
  gap: .5rem;
  align-items: center;
}

.main-navigation-social li a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
}

.main-navigation-social svg {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: background-color .3s ease-in-out;
}

.main-navigation-social li path {
    transition: fill .3s ease-in-out;
}

.main-navigation-social li:hover svg {
    background-color: black;
}

.main-navigation-social li:hover g path {
    fill: #fff;
}

.linkedin:hover g path {
  fill: #000;
}

.linkedin:hover g path:first-child {
  fill: #000;
}

.main-navigation-vjd {
  padding: 5rem 12%;
  text-align: center;
}

.btn {
  margin: 2rem auto;
}

.main-navigation-vjd h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 2rem 0;
}

.main-navigation-editions {
  border-top: 1px solid var(--font-color);
  border-bottom: 1px solid var(--font-color);
  padding: 5rem 12%;
  text-align: center;
}

.main-navigation-editions li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  border-bottom: 1px solid var(--font-color);
  height: 100%;
}

.main-navigation-editions span {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .menu-item a {
    font-size: 8rem;
    line-height: 85px;
  }
}

@media only screen and (min-width: 1024px) {
  .site-header.clicked {
    overflow: hidden;
  }

  .site-header {
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .site-header h3{
    text-align: left;
    line-height: 38px;
  }

  h3 .btn {
    font-weight: 400;
    text-transform: none;
  }

  .main-navigation-container {
    flex: 1;
  }

  .menu {
    padding: 5rem 0 5rem 3rem;
    text-align: left;
  }

  .main-navigation-info {
    flex: 1;
    padding: 5rem 3rem 5rem 5rem;
    gap: 8rem;
    font-size: 1.6rem;
  }

  .main-navigation-social,
  .main-navigation-editions,
  .main-navigation-vjd {
    padding: 0;
    border: 0;
  }

  .main-navigation-social li {
    width: 45%;
  }

  .main-navigation-social svg {
    width: 3rem;
    height: 3rem;
  }

  .main-navigation-editions{
    text-align: left;
  }


  .main-navigation-editions li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 4rem;
    padding: 1rem 0;
  }

  .main-navigation-vjd {
    text-align: left;
  }
  
  .btn {
    margin: 0;
  }

  .menu-item a {
    font-size: 8rem;
    line-height: 92px;
  }

  .menu-item:hover a,
  .menu-item:focus a,
  .current_page_item a {
    transform: translateX(30px);
  }

  .current_page_item a::after {
    width: 6rem;
    height: 5rem;
    right: -90px;
  }
}

@media only screen and (min-width: 1280px) {
  .main-navigation-info {
    flex: 1;
    padding: 5rem 10rem 5rem 5rem;
    gap: 8rem;
  }
  
  .menu {
    padding: 5rem 0 5rem 10rem;
  }
}

@media only screen and (min-width: 1440px) {
  .menu-item a {
    font-size: 10rem;
    line-height: 110px;
  }

  .main-navigation-social li {
    width: 48%;
    gap: 1rem;
  }
}

@media only screen and (min-width: 1680px) {
  .menu {
      padding: 5rem 0 5rem 16rem;
  }

  .menu-item a {
    font-size: 12rem;
    line-height: 115px;
  }

  .main-navigation-info {
    padding: 5rem 14rem 5rem 5rem;
  }
}


/* Header
-------------------------------------------------------------- */
.header-btn {
  position: fixed;
  top: 15px;
  z-index: 2;
  height: 35px;
  width: 35px;
  margin: 0 auto;
}

header {
  background: transparent;
}

.menu-trigger-btn {
  right: 10px;
  text-align: right;
}

#menu-close {
  right: 2px;
}

.menu-trigger-btn::before {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background-position: center;
}

#menu-trigger::before {
  background: url(images/burger.svg) no-repeat;
  background-size: 80%;
  background-position: center;
}

#menu-close::before {
  background: url(images/croix.svg) no-repeat;
  background-size: 80%;
  background-position: center;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 9px;
  left: 10px;
  text-align: left;
  z-index: 4;
}

.projects .site-header {
  background-color: var(--orange);
}

.receipes .site-header {
  background-color: var(--violet);
}

.texts .site-header {
  background-color: var(--lilac);
}

.presse .site-header {
  background-color: var(--kaki);
}

.agency .site-header {
  background-color: var(--light-kaki);
}

.site-header:has(.projects:hover) {
  background-color: var(--orange);
}

.site-header:has(.receipes:hover) {
  background-color: var(--violet);
}

.site-header:has(.texts:hover) {
  background-color: var(--lilac);
}

.site-header:has(.presse:hover) {
  background-color: var(--kaki);
}

.site-header:has(.agency:hover) {
  background-color: var(--light-kaki);
}

@media only screen and (min-width: 1024px) {
  .header-btn {
    top: 15px;
    height: 44px;
    width: 44px;
  }

  .menu-trigger-btn {
    right: 15px;
  }

  .back-btn {
    left: 15px;
  }

  #menu-close {
    right: 17px;
  }
}

/* HOME PAGE
-------------------------------------------------------------- */
.home main {
  margin: 0;
}

.home-logo {
  width: 50%;
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.home-scroller-wrapper {
  position: relative;
}

.scroller {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(2, 48%);
  grid-column-gap: 4% !important;
  width: 100%;
  z-index: 1;
}

.scroller-copy {
  position: relative;
  width: 100%;
  z-index: 0;
}

.scroller-img:nth-child(2) {
  margin-top: 0;
}

.scroller-img:last-child {
  margin-bottom: 0;
}

.scroller-img:nth-child(odd) {
  margin-top: 100%;
}

.scroller-img:nth-child(even) {
  margin-top: 12.5%;
}

.scroller-img img {
  /* height: 125px; */
  height: auto;
  object-fit: cover;
}

@media only screen and (min-width: 1024px) {
  .scroller {
    grid-template-columns: repeat(2, 44%);
    grid-column-gap: 12% !important;
  }

  .scroller-img img {
    /* height: 400px; */
    object-fit: cover;
  }
}

/* Layout with sidebar
-------------------------------------------------------------- */
.layout-with-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar a {
  display: flex;
  align-items: center;
}

.sidebar a img {
  width: 2rem;
  margin-right: 1rem;
}

@media only screen and (min-width: 1024px) {
  .layout-with-sidebar {
    display: initial;
  }

  .sidebar {
    position: fixed;
    top: 0;
    background: var(--light-font-color);
    width : 23%;
    height: 100vh;
    height: 100dvh;
    margin-top: 6%;
    padding: 0 1% 1% 3%;
    border-right: 1px solid var(--font-color);
  }

  .main-with-sidebar {
    margin-left: 28%;
    padding: 0 4% 0 2%;
  }
}

@media only screen and (min-width: 1440px) {
  .main-with-sidebar {
    margin-left: 26%;
  }

  .sidebar {
    margin-top: 5%;
  }
}

/* Projects
-------------------------------------------------------------- */
.page-id-2469 main /* page projets */ {
  margin: 14% 14% 6%;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
}

.projects-list img {
  /* height: 350px; */
  aspect-ratio: 677 / 552;
  object-fit: cover;
}

.projects-menu {
  display: flex;
  flex-direction: column;
  padding: 0 0 2rem;
  border-top: 1px solid var(--font-color);
}

.submenu-group-title {
  text-transform: uppercase;
  font-size: 1.8rem;
  line-height: 22px;
  cursor: pointer;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--font-color);
}

.submenu-group li {
  font-size: 1.8rem;
}

.submenu-group li:hover,
.submenu-group li:focus,
.submenu-group-title:hover,
.submenu-group-title:focus {
  font-weight: 600;
}

li.submenu-item {
  padding-left: 2rem;
}

@media only screen and (min-width: 414px) {
  .page-id-2469 main /* page projets */ {
    margin: 14% 12% 6%;
  }
}

@media only screen and (max-width: 1023px) {
  /* TODO : Delete when JS is fixed*/
  /* .submenu-group {
    display: block !important;
  } */
  .submenu-group {
    padding-top: 1rem;
  }

  .projects-categories {
    display: none;
  }

  .projects-categories.expanded {
    display: block;
  }

  .parent-tous {
    position: relative;
  }

  .parent-tous::after {
    transition: transform .3s ease-in-out;
  }

  .parent-tous::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    content: '';
    background: url(images/down-arrow-thin.svg) no-repeat;
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    background-size: 100%;
  }

  .parent-tous.expanded::after {
    transform: translate(0, -50%) rotate(-180deg);
  }
}

@media only screen and (min-width: 1024px) {
  .page-id-2469 main, /* page projets */
  .projet-template-default main {
    margin: 6% 2% 2%;
  }

  .projects-list {
    gap: 2%;
    justify-content: flex-start;
    padding: 0 1rem 1rem;
  }

  .projects-categories .submenu-group-title {
    position: relative;
  }

  .projects-categories .submenu-group-title::after {
    position: relative;
    transition: transform .3s ease-in-out;
  }

  .projects-categories .submenu-group-title::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    content: '';
    background: url(images/down-arrow-thin.svg) no-repeat;
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    background-size: 100%;
  }

  .projects-categories .open .submenu-group-title::after {
    transform: translate(0, -50%) rotate(-180deg);
  }

  .projects-menu {
    padding: 0;
    border-top: 0;
  }

  .projects-menu-item {
    width: 100%;
  }

  .submenu-group-title {
    display: flex;
    font-size: 2.2rem;
    line-height: 28px;
  }
  

  .submenu-group {
    padding: 1rem 1rem 1rem 0;
  }

  .open .submenu-group-title {
    font-weight: bold;
  }
}

@media only screen and (min-width: 1440px) {
  .page-id-2469 main, /* page projets */
  .projet-template-default main {
    margin: 5% 0;
  }
}

/* Single Project
-------------------------------------------------------------- */
.single-project h1 {
  font-size: 3rem;
  line-height: 42px;
  text-transform: uppercase;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.single-project h2 {
    font-size: 1.5rem;
    line-height: 20px;
}

.single-project h3 {
  transition: color .3s ease-in-out;
}

.single-project-sidebar,
.single-project-main {
  display: flex;
  flex-direction: column;
}

.single-project-sidebar a {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.single-project-sidebar p {
  border-bottom: 1px solid var(--font-color);
  margin: 0;
  padding: 1.5rem 0;
}

.single-project-sidebar p:first-of-type {
  border-top: 1px solid var(--font-color);
}

.single-project-sidebar p:last-child {
  border: 0;
}

.single-project-sidebar p strong {
  display: inline-block;
  margin-right: 1rem;
}

.single-project-sidebar p span{
  display: inline-block;
}

.single-project-gallery {
  border-bottom: 1px solid var(--font-color);
  margin-bottom: 2rem;
  width: 100%;
  transition: all .3s ease-in-out;
}

.single-project-gallery:hover {
  transform: scale(1.02);
}

.single-project-gallery:hover h3 {
  color: var(--primary-color);
}

.wp-block-envira-envira-gallery {
  border-top: 1px solid var(--font-color);
  border-bottom: 1px solid var(--font-color);
  padding: 0 0 3rem;
  margin: 0 0 2rem;
}

.justified-gallery>div>div>.caption, 
.justified-gallery>div>div .caption,
.envirabox-title-float,
.envirabox-title-outside {
  display: none !important;
}

@media only screen and (min-width: 1024px) {
  .single-project h1 {
    font-size: 6rem;
    line-height: 58px;
  }

  .single-project h2 {
    font-size: 2rem;
    line-height: 26px;
  }

  .single-project-sidebar {
    overflow: auto;
  }

  .single-project-gallery {
    width: 48%;
    margin-bottom: 5rem;
  }

  .single-project img {
    transition: transform .3s ease-in-out;
  }

  .single-project .envira-gallery-item:hover img {
    transform: scale(1.05);
  }

  .wp-block-envira-envira-gallery {
    order: 5;
    padding: 3rem 0 3rem;
    margin: 1rem 0 2rem;
  }

  .single-project-sidebar p:last-child {
    padding-bottom: 8rem;
  }
}

/* Related Pages
-------------------------------------------------------------- */
.crp_related {
  border-top: 1px solid #000;
  margin-top: 1rem;
  padding: 2rem 0;
  order: 6;
}

.crp_related ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.crp_related li {
  width: 45%;
  transition: transform .3s ease-in-out;
}

.crp_related img {
  aspect-ratio: 1;
  object-fit: cover;
}

.crp_related li:hover {
  transform: scale(1.02);
}

.crp_related a {
  position: initial;
  text-align: left;
}

@media only screen and (min-width: 1024px) {
  .crp_related {
    border-top: 0;
    margin-top: 0;
    padding: 0;
  }

  .crp_related li {
    width: 25%;
  }

  .crp_related ul {
    flex-wrap: nowrap;
  }

  .crp_related li:first-child {
    margin-left: 0 !important;
    padding-left: 0;
  }

  .crp_related li:last-child {
    margin-right: 0 !important;
    padding-right: 0;
  }
}

/* Recettes
-------------------------------------------------------------- */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer,
.grid-item {
  width: calc((100% - 10px) / 2);
}

.grid-item {
  float: left;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.grid-item img {
  display: block;
  max-width: 100%;
}

.two_img img:nth-child(2) {
  position: absolute;
  bottom: -100%;
  pointer-events: none;
  transition: bottom .5s ease-in-out;
}

.two_img img:first-child:hover {
  filter: grayscale(100%) brightness(.5);
}

.two_img img:first-child:hover + img:nth-child(2) {
  bottom: 0;
}

@media only screen and (min-width: 1024px) {
  .grid-sizer,
  .grid-item {
    width: calc((100% - 20px) / 3);
  }
}

@media only screen and (min-width: 1280px) {
    .grid-sizer,
    .grid-item {
      width: calc((100% - 30px) / 4);
  }
}

/* Articles & pages
-------------------------------------------------------------- */
.agency-flex {
  display: flex;
  flex-direction: column;
}

.agency-flex div {
 width: 100%;
}

.content-main h1 {
  margin-bottom: 2rem;
}

.wp-block-quote {
  margin: 0;
}

.wp-block-pullquote blockquote {
  font-size: 2rem;
}

figure.wp-block-pullquote {
  padding: 4rem 0;
  margin: 0;
}

.content-main h1 {
  margin-bottom: 2rem;
}

.content-main h2 {
  margin-bottom: 2rem;
}

.content-main h3 {
  margin-bottom: 1rem;
}

.wp-block-table {
  margin-bottom: 3rem;
}

.wp-block-table td, .wp-block-table th {
  font-size: 1.2rem;
}

@media only screen and (min-width: 414px) {
  .wp-block-table td, .wp-block-table th {
    font-size: 1.4rem;
  }
}

@media only screen and (min-width: 1024px) {
  .content-main {
    margin: 0 20%;
  }

  .wp-block-quote {
    margin: 0 3rem;
  }

  .wp-block-pullquote blockquote {
    font-size: 2.5rem;
  }

  .wp-block-table td, .wp-block-table th {
    font-size: 1.6rem;
  }
}

/* Presse & tribunes
-------------------------------------------------------------- */
.presse__page .page-title,
.tribune_list .page-title {
  display: none;
}

.bandeau_presse_liste,
.bandeau_tribune_liste {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.caption {
  position: absolute;
  bottom: -14px;
  width: 100%;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0 .2rem;
  color: var(--light-font-color);
  transition: opacity .5s ease-in-out;
  text-align: center;
  display: none;
}

.texts .caption,
.presse .caption {
  display: block;
}

.presse__list a:hover .caption,
.bandeau_tribune_liste a:hover .caption {
  opacity: .9;
  background: var(--primary-color);
}

.presse__list img,
.bandeau_tribune_liste img {
  width: 100%;
}

.presse__list a,
.bandeau_tribune_liste a {
  position: relative;
  display: inline-block;
  transition: transform .3s ease-in-out;
}

.presse__list a:hover,
.bandeau_tribune_liste a:hover {
  transform: scale(1.05);
}

.portrait,
.paysage {
  width: 100%;
}

@media only screen and (min-width: 1024px) {
  .portrait {
    width: 15%;
  }

  .paysage {
    width: 30%;
  }
  
  .bandeau_presse_liste,
  .bandeau_tribune_liste {
    justify-content: center;
    padding-bottom: 15rem;
  }
  
  .bandeau_presse_liste img,
  .bandeau_tribune_liste img {
    max-width: 100%;
  }

  .presse__list a,
  .bandeau_tribune_liste a {
    height: auto;
  }

  .presse__list a:last-child,
  .bandeau_tribune_liste a:last-child {
    margin-right: auto;
  }
}

/* FancyBox
-------------------------------------------------------------- */
.fancybox-button--zoom,
.fancybox-button--play,
.fancybox-button--thumbs,
.fancybox-infobar {
  display: none !important;
}

img.fancybox-image {
  border: none !important;
}

.fancybox-infobar, 
.fancybox-toolbar, 
.fancybox-caption, 
.fancybox-navigation .fancybox-button,
.fancybox-button {
  background-color: var(--primary-color) !important;
}

@media only screen and (min-width: 1024px) {
  .fancybox-navigation button.fancybox-button--arrow_right {
    right: 7%;
  }

  .fancybox-navigation button.fancybox-button--arrow_left {
    left: 7%;
  }

  .fancybox-toolbar {
    right: 7%;
  }

  .fancybox-infobar {
    left: 7%;
  }
}

@media only screen and (min-width: 1440px) {
  .fancybox-navigation button.fancybox-button--arrow_right {
    right: 15%;
  }

  .fancybox-navigation button.fancybox-button--arrow_left {
    left: 15%;
  }

  .fancybox-toolbar {
    right: 15%;
  }

  .fancybox-infobar {
    left: 15%;
  }
}

/* Envira Gallery
-------------------------------------------------------------- */
div.envira-gallery-wrap,
div.envira-gallery-wrap .envira-gallery-public {
  margin: 0;
}

.envira-gallery-item-inner:hover div.caption {
  opacity: 1 !important;
}

.justified-gallery>div>div>a>div.caption, 
.justified-gallery>div>div>div.caption, 
.justified-gallery>div>div div.caption {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  font-family: var(--font-family);
  opacity: 1;
  z-index: 0;
}

a#envirabox-close {
  width: 44px;
  height: 44px;
  background-size: 52px 177px;
}

a#envirabox-left, a#envirabox-right {
height: 90%;
}

@media only screen and (max-width: 1023px) {
  #envirabox-content {
    border-width: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
  }
  
  #envirabox-outer {
    background: transparent !important;
  }

  #envirabox-right:hover span, body.envira-touch #envirabox-right span {
    right: -20px !important;
  }

  body.envira-touch #envirabox-left span, #envirabox-left:hover span {
    left: -20px !important;
  }
}

@media only screen and (min-width: 768px) {
  .envira-gallery-wrap {
    min-height: 400px;
  }

  div#envirabox-outer {
    background: transparent;
  }

  div#envirabox-content {
    border-width: 0 !important;
    box-shadow: none !important;
    margin: 0 auto;
  }

  a#envirabox-close {
    right: 0;
  }

  a#envirabox-right:hover span, body.envira-touch area#envirabox-right span {
    left: auto;
    right: 20px !important;
  }

  div#envirabox-title {
    margin-left: 15px;
    padding-top: 0;
  }

  div#envirabox-title.envirabox-title-inside {
    margin-top: 5px;
    background: transparent;
    color: var(--light-font-color);
  }

  td#envirabox-title-float-main {
    text-shadow: none;
    margin-top: .5rem;
    background: transparent;
    color: var(--light-font-color);
  }
}

/* Weglot
-------------------------------------------------------------- */
@media only screen and (min-width: 1024px) {
  aside.country-selector.weglot-inline.weglot-default {
    bottom: 0;
  }
}

@media only screen and (min-width: 1280px) {
  .home aside.country-selector.weglot-default {
    bottom: initial;
    top: 40px;
    right: 40px;
  }

  aside.country-selector.weglot-default {
    bottom: initial;
    top: 47px;
    right: 12px;
  }
}
