/*
Theme Name: Y-Park Theme
Author: Damien Beuchat
Description: Theme customisé pour Y-Park
License: GNU General Public License v2
Text Domain: ypark-theme
*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ------ VARIABLES ------- */
:root {
  --main-font-family: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --content-max-width: 1980px;
  --main-header-height: 6.875rem;
  --main-header-vertical-padding: 1.25rem;
  --section-horizontal-padding: 8rem;
  --section-horizontal-gap: 3.125rem;
  --section-horizontal-col-min-width: 22rem;
  --section-vertical-gap: 5rem;
  --color-line-height: 6px;
  --grid-column-nb: 4;

  --color-primary-green: #59b884;
  --color-secondary-green: #4ba172;
  --color-transparent-green: rgba(89, 184, 132, 0.15);
  --color-primary-red: #ec6a6a;
  --color-secondary-red: #fae6e1;
  --color-gray1: #efefef;
  --color-gray2: #aaaaaa;
  --color-gray3: #9e9e9e;
  --color-gray4: #707070;
  --color-gray5: #5d5d5d;
  --color-gray6: #4e4e4e;
  --color-black: #000000;

  --transition-enter-delay: 0.5s;
  --transition-exit-delay: 0.2s;
}

/* ------ ANIMATIONS ------- */
.animate-slide-down-fade-in,
.animate-fade-in,
.animate-zoom-in,
.animate-rotate-in,
.animate-slide-in-left {
  opacity: 0;
}

/* ------ SWIPER.JS ------- */

.swiper-wrapper {
}
.swiper-container {
  width: 100%;
  height: 100%;
  margin-bottom: 2rem;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary-green) !important;
  display: block;
  z-index: 10;
}
.swiper-pagination {
  display: block;
  z-index: 10;
}
.swiper-pagination-bullet-active {
  background-color: var(--color-primary-green) !important;
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  width: auto !important;
  right: 0 !important;
  top: 1.25rem !important;
  bottom: auto !important;
  display: flex;
  justify-content: flex-end;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 2rem !important;
  font-weight: 700 !important;
}
.swiper-button-next {
  right: -3.5rem !important;
  margin-top: 13px !important;
}
.swiper-button-prev {
  left: -3.5rem !important;
  margin-top: 13px !important;
}

/* ------ GENERAL ------- */
html {
  scroll-behavior: smooth;
}
body * {
  font-family: var(--main-font-family);
}
.site-content {
  overflow: hidden;
}
h1 {
  color: white;
  font-size: 4.375rem;
  font-weight: 600;
  line-height: 5rem;
  /* text-shadow: 1px 4px 20px rgba(0, 0, 0, 0.65); */
}
h2 {
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 2.3125rem;
  transition: color var(--transition-exit-delay);
}
h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5625rem;
  line-height: 2rem;
}
h6 {
  display: inline-block;
  color: var(--color-primary-green);
  font-size: 20px;
  font-weight: 600;
  line-height: 29px; /* 131.818% */
  text-transform: uppercase;
  padding-bottom: 0.375rem;
  border-bottom: 4px solid var(--color-primary-green);
}
a,
a:hover,
a:visited {
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition-enter-delay);
}
a:hover {
  color: var(--color-primary-green);
  transition: color var(--transition-exit-delay);
}
a:not(.small):has(> img) {
  display: flex;
  min-width: auto;
  text-indent: 0;
  line-height: 0;
  overflow: hidden;
}
p {
  font-size: 1.375rem;
  line-height: 29px;
}
em {
  font-style: italic;
}
strong {
  font-weight: 700;
}
img {
  width: 100%;
  /* max-width: 50rem; */
  height: auto;
  object-fit: cover;
  padding: 0;
  margin: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid var(--color-gray2);
  padding: 0.5rem;
  text-align: left;
}
th {
  background-color: var(--color-gray1);
}
button {
  display: flex;
  gap: 0.625rem;
  padding: 0.375rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--color-gray3);
  background: none;

  text-align: center;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.36px;

  align-self: flex-start;
  transition: all var(--transition-enter-delay);
  cursor: pointer;
}
button:hover {
  color: var(--color-primary-green);
  border-color: var(--color-primary-green);
  transition: all var(--transition-exit-delay);
}
button a,
button a:visited {
  color: var(--color-gray4);
  transition: all var(--transition-enter-delay);
}
button:hover a {
  color: var(--color-primary-green);
  transition: all var(--transition-exit-delay);
}
label {
  display: flex;
  flex-direction: column;
  color: var(--color-gray6);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.0175rem;
  gap: 0.3125rem;
}
input,
select,
textarea {
  color: black;
  font-size: 1.125rem;
  letter-spacing: 0.36px;
  padding: 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--color-gray4);
  background: white;
}
input::placeholder,
textarea::placeholder {
  color: var(--color-gray3);
}
select {
  cursor: pointer;
}
textarea {
  min-height: 10rem;
  resize: none;
  flex: 1 0 0;
}

/* ------ CONSTRUCTION ------- */
.hidden {
  display: none;
}

.content-max-width {
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.block-section {
  padding: 0 var(--section-horizontal-padding);
  transition: padding var(--transition-exit-delay);
}
.flex-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 3.125rem 0 6.25rem;
  gap: var(--section-horizontal-gap);
  row-gap: var(--section-vertical-gap);
}
.flex-container.vertical {
  row-gap: 3.75rem;
  flex-direction: column;
  flex-wrap: nowrap;
}
.search .flex-container.vertical {
  gap: 3rem;
}
.flex-container.list {
  padding: 0;
}
.two-columns {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-horizontal-gap);
  justify-content: stretch;
}
.two-columns .sub-section form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.125rem;
  flex: 1 0 0;
  width: 100%;
}
.sub-section {
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  gap: 3.125rem;
  align-self: stretch;
}
.sub-section.text {
  align-self: normal;
}
.sub-section h6 {
  align-self: baseline;
  margin-bottom: 0.5rem;
}
.page-template-page-list .sub-section h6 {
  margin-bottom: 3.75rem;
}
.sub-section.info-card {
  align-self: flex-start;
  flex-basis: 25%;
}
.sub-section > header {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}
.sub-section > header .section-description {
  max-width: 50rem;
}
.sub-section > header button {
  margin-top: 0.625rem;
}
.sub-section:has(.wp-video) {
  position: relative;
}

.wp-video,
.mejs-video {
  width: 100% !important;
  height: auto;
}

.section-title {
  max-width: 44rem;
}

.small-text,
.small-text p {
  font-size: 1.125rem;
  line-height: 1.375rem;
}

#spotlight.success-stories {
  background-color: rgba(89, 184, 132, 0.15);
  border-bottom: var(--color-line-height) solid var(--color-primary-green);
}
#spotlight .sub-section {
  width: 100%;
}

#spotlight .hotizontal-article-list {
  max-width: 80vw;
}

.horizontal-article-list {
  display: flex;
  gap: 2.5rem;
  align-self: stretch;
  align-items: stretch;
  flex: 1 0 0;
  flex-wrap: wrap;
}
.horizontal-article-list article {
  flex: 1 0 0;
}
.insert {
  flex: 1 0 0;
  padding: 2.5rem;
  background: var(--color-gray1);
  display: flex;
  gap: 1.5625rem;
  flex-direction: column;
}

/* ------ FORM ------- */
.form {
}

.form-select {
  position: relative;
  /* -webkit-appearance: none; */
}

button.plain {
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-gray1);
  z-index: 1;
}
form#form-filters button.form-button.plain {
  color: var(--color-black);
  text-decoration: none;
  display: block;
  height: 100%;
  padding: 0.75rem 2rem 0.75rem 2rem;
  transition: color 0.3s;
}
form#form-filters button.form-button.plain::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--color-line-height);
  background-color: var(--color-primary-green);
  transition: height 0.3s;
  z-index: -1;
}
form#form-filters button.form-button.plain:hover {
  color: white;
  transition: color 0.2s;
}
form#form-filters button.form-button.plain:hover::after {
  height: 100%;
}

button.plain a {
  color: var(--color-black);
  text-decoration: none;
  display: block;
  height: 100%;
  padding: 0.75rem 2rem 0.75rem 2rem;
  transition: color 0.3s;
}
button.plain a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--color-line-height);
  background-color: var(--color-primary-green);
  transition: height 0.3s;
  z-index: -1;
}
button.plain a:hover {
  color: white;
  transition: color 0.2s;
}
button.plain a:hover::after {
  height: 100%;
}
.multifield {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 1.25rem;
  /* flex: 1 0 0; */
  width: 100%;
}
.multifield > * {
  flex: 1 1 0;
  position: relative;
}
form p:has(span):has(textarea) {
  display: flex;
  flex: 1 0 0;
}
/* .multifield>p{
	display: flex;
	flex-direction: column;
} */
.m,
.m2,
.sqm {
  position: relative;
}
.m::after,
.m2::after,
.sqm::after {
  content: "m²";
  color: var(--color-gray3);
  font-size: 1.125rem;
  font-weight: 300;
  position: absolute;
  right: 0.625rem;
  bottom: 0.875rem;
}
.m::after {
  content: "m";
}
.sqm::after {
  content: "sqm";
}
.m > input,
.m2 > input,
.sqm > input {
  padding-right: 2.25rem;
}

/* ------ SINGLE ------- */
.single-post h3 {
  line-height: 2rem;
}

/* ------ ARTICLE ------- */
article.card {
  min-width: 15rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.875rem;
  max-width: 100%;
}
article.card > a > img,
article.card .metaslider {
  aspect-ratio: 16/11;
  object-fit: cover;
}
article.card .metaslider .flex-control-nav {
  position: absolute;
  bottom: 1.5rem;
}
article.card .metaslider > *,
article.card .metaslider > * > *,
article.card .metaslider .flex-viewport,
article.card .metaslider .slides {
  height: 100%;
  width: 100%;
}
article.card .metaslider .slides li {
  height: 100%;
}
article.card .metaslider .slides li img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
article.card .card-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  line-height: 2rem;
}
#spotlight article.card .card-title {
  text-overflow: clip;
  white-space: normal;
  overflow: visible;
}
article.card header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
article.card footer {
  margin-top: 0.625rem;
}
article.card header p {
  color: var(--color-gray5);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 25px;
  color: var(--Gray-5, #5d5d5d);
}
article.card.small {
  min-width: calc(25% - var(--section-horizontal-gap) / 1);
  flex-basis: calc(25% - var(--section-horizontal-gap) / 1);
  /* transition: transform var(--transition-exit-delay) ease-in; */
}
article.card.small:hover {
  /* transform: scale(1.05); */
  /* transition: transform var(--transition-exit-delay) ease-out; */
}
article.card.small > a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;

  width: 100%;
  height: 100%;
  flex: 1 0 0;
  z-index: 1;
  transition: color var(--transition-exit-delay);
  background: white;

  color: var(--color-gray5);
  position: relative;
  overflow: visible;
  cursor: pointer;
}
article.card.small > a:hover {
  color: white;
  transition: color var(--transition-enter-delay);
}
article.card.small > a header {
  position: relative;
  flex: 1 0 0;
  gap: 0;
  padding: 0.8rem 0.9375rem 0.5rem 0.9375rem;

  color: var(--color-gray5);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 25px;
  transition: color var(--transition-exit-delay);
}
.search article.card.small > a header {
  gap: 0.625rem;
}
.search article.card.small > a header {
  font-size: 1.375rem;
  font-weight: 500;
}
article.card.small > a:hover header,
.search article.card.small > a:hover header p {
  color: white;
  transition: color var(--transition-enter-delay);
}
.search article.card.small > a header p {
  position: relative;
  display: inline-block;
  word-wrap: break-word;
  overflow: hidden;
  max-height: calc(
    2 * 1.5625rem
  ); /* (Number of lines you want visible) * (line-height) */
  line-height: 1.5625rem;
}
/*
.search article.card.small > a header p::after {
  content: "...";
  position: relative;
  bottom: 1.5625rem;
}
*/
article.card.small > a header::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--color-line-height));
  left: 0;
  width: 100%;
  height: var(--color-line-height);
  background-color: var(--color-primary-green);
  transition: height var(--transition-exit-delay);
  z-index: -1;
}
article.card.small > a:hover header::after {
  height: calc(100% + var(--color-line-height));
}
article.card.small > a img {
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(100%);
  max-width: 100%;
  transition: filter var(--transition-exit-delay);
}
article.card.small > a img:hover {
  filter: grayscale(0%);
  transition: filter var(--transition-enter-delay);
}
article.card.small .the-date,
article.card.small .the-excerpt p {
  font-size: 1.125rem;
  font-weight: 500;
}
article.card.small .the-excerpt p {
  font-weight: 400;
  text-overflow: ellipsis;
  overflow: hidden;
}
article.card.small .the-title {
  align-self: stretch;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 2;
  font-weight: 400;
}
article:not(.small) > a > .attachment-post-thumbnail {
  object-fit: cover;
  max-width: 100%;
  /* max-width: 40rem; */
  transform: scale(1);
  transition: transform calc(var(--transition-exit-delay) * 2);
}
article:not(.small) > a:hover > .attachment-post-thumbnail {
  transform: scale(1.05);
  transition: transform calc(var(--transition-enter-delay) * 2);
}
article.data {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}
article.data header {
  padding-bottom: 1.25rem;
  border-bottom: var(--color-line-height) solid var(--color-primary-green);
}
.red article.data header {
  border-color: var(--color-primary-red);
}
.gray article.data header {
  border-color: var(--color-gray5);
}
article.data footer {
}
article.data .value {
  font-size: 4.375rem;
  font-weight: 500;
  line-height: 100%;
  text-transform: none;
}
article.data .title {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0.13px;
}
article.data .subtitle {
  color: var(--color-gray4);
  font-size: 1rem;
  font-weight: 300;
  line-height: 29px;
  letter-spacing: 0.35px;
}
#post-content .wysiwyg.the-content {
  gap: 0;
}
.wysiwyg {
  display: flex;
  flex-direction: column;
  gap: 1.5625rem;
}
.wysiwyg a {
  color: var(--color-primary-green);
  text-decoration: underline;
  font-weight: 300;
}
.wysiwyg p {
  /* margin-bottom: 1.5625rem; */
}
.wysiwyg h3 {
  /* margin-bottom: 1.5625rem; */
}

.wysiwyg ul,
.wysiwyg ol {
  font-size: 18px;
  line-height: 25px;
  list-style: outside;
  padding: 0 0 1.5625rem 1.25rem;
  margin-left: 1.25rem;
}
.wysiwyg ul.slides {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wysiwyg ol {
  list-style: decimal;
}
.wysiwyg li {
  padding-bottom: 0.625rem;
}
.wysiwyg p:last-child,
.wysiwyg ul:last-child,
.wysiwyg ol:last-child,
.wysiwyg li:last-child {
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

.sub-section p.last-child {
  margin-bottom: 0;
}

/* ------ HEADER ------- */
#main-header {
  min-height: calc(
    var(--main-header-height) - var(--main-header-vertical-padding) * 2
  );
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--main-header-vertical-padding) var(--section-horizontal-padding);
  transition: padding var(--transition-exit-delay);
}
#main-header .content-max-width {
  max-width: var(--content-max-width);
  justify-content: space-between;
  display: flex;
  flex: 1 0 0;
}
#main-header .flex-container {
  gap: var(--section-horizontal-gap);
  flex-wrap: nowrap;
  flex: 1 0 0;
  padding: 0;
}
#main-header #main-logo {
  width: 194px;
  height: 62px;
  background-image: url("img/yp_main_logo.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
  text-indent: -999rem;
}
#main-header #main-logo h1,
#main-header #main-logo a {
  display: block;
  width: 100%;
  height: 100%;
}
/* ------ MENU ------- */
#main-menu {
  display: flex;
  flex-wrap: wrap;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  flex: 1 0 0;
  column-gap: 3.75rem;
  row-gap: 2rem;

  font-family: var(--main-font-family);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}
#main-menu ul {
  display: flex;
  flex-direction: row;
  column-gap: 3.75rem;
}
#main-menu ul ul {
  position: absolute;
  display: none;
  background-color: white;
  padding: 5rem 2.5rem 2.5rem;
  flex-direction: column;
  gap: 1.25rem;
  left: -2.5rem;
}
#main-menu ul li:has(ul) {
  position: relative;
}
#main-menu ul li:has(ul):hover {
}
#main-menu ul li:has(ul):hover ul {
  display: flex;
  min-width: 20rem;
  z-index: 999;
}
#main-menu ul ul li {
  text-transform: none;
  font-weight: 400;
}
#main-menu a {
  color: var(--color-gray2);
  text-decoration: none;
  transition: color var(--transition-exit-delay);
}
#main-menu .current-menu-ancestor > a,
#main-menu .current-menu-item > a {
  color: var(--color-primary-green);
}
#main-menu .current-menu-item.menu-item-28 > a,
#main-menu .current-menu-item.menu-item-1233 > a {
  color: var(--color-primary-red);
}
#main-menu .menu-item-28 .sub-menu a:hover,
#main-menu .menu-item-26 .sub-menu a:hover,
#main-menu .menu-item-1233 .sub-menu a:hover,
#main-menu .menu-item-1241 .sub-menu a:hover {
  color: var(--color-black);
}
#main-menu .menu-item-28 .sub-menu a,
#main-menu .menu-item-26 .sub-menu a,
#main-menu .menu-item-1233 .sub-menu a,
#main-menu .menu-item-1241 .sub-menu a,
#main-menu .menu-item-1109 a,
#main-menu .menu-item-1492 a,
#main-menu .menu-item-1493 a,
#main-menu .menu-item-53:has(.current-menu-item.menu-item-1492) > a,
#main-menu .menu-item-1216:has(.current-menu-item.menu-item-1493) > a {
  color: var(--color-gray2);
}
#main-menu a:hover {
  color: var(--color-black);
  transition: color var(--transition-enter-delay);
}
#main-menu ion-icon {
  font-size: 1.5rem;
}
#main-menu #menu-search,
#mobile-menu-items #menu-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 4rem;
}
#main-menu #searchform,
#mobile-menu-items #searchform {
  display: none;
}
#main-menu #searchform > div,
#mobile-menu-items #searchform > div {
  position: relative;
  display: flex;
  justify-content: stretch;
  gap: 0;
}
#main-menu #searchform input,
#mobile-menu-items #searchform input {
  /* border-radius: 0; */
  border-radius: 5px 0 0 5px;
}
#main-menu #searchform input:focus,
#mobile-menu-items #searchform input:focus {
  outline: none;
}
#main-menu #searchform #s,
#mobile-menu-items #searchform #s {
  /* border: none;
	border-bottom: 1px solid var(--color-gray2); */
  max-width: 10rem;
}
#main-menu #searchform #searchsubmit,
#mobile-menu-items #searchform #searchsubmit {
  border-radius: 0 5px 5px 0;
  border-left-width: 0;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background-color: var(--color-gray1);
  color: var(--color-gray6);
}
#searchform .screen-reader-text,
#mobile-menu-items .screen-reader-text {
  display: none;
}
#menu-lang,
#mobile-menu-lang {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
}
#main-menu .current-lang a {
  color: var(--color-black);
}
#main-menu #mobile-menu-lang .current-lang a {
  font-weight: 500;
}
.lang-item {
  list-style-type: none;
}
.lang-item::after {
  content: "|";
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--color-gray2);
}
#mobile-menu-lang .lang-item {
  text-transform: uppercase;
}
#mobile-menu-lang .lang-item::after {
  color: var(--color-black);
  font-weight: 400;
}
.lang-item:last-child::after {
  content: "";
}

/* ------ MENU MOBILE ------- */

#mobile-menu {
  display: none;
  align-items: center;
}
#mobile-menu ion-icon {
  font-size: 3rem;
}
#mobile-menu-items {
  display: none;
  position: absolute;
  top: 110px; /* Ajustez selon la hauteur de votre header */
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#mobile-menu-items.mobile-menu-visible {
  display: block;
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-list li {
  border-bottom: 1px solid #eee;
}
.mobile-menu-list li:last-child {
  border-bottom: none;
}
.mobile-menu-list li a {
  display: block;
  padding: 15px var(--section-horizontal-padding);
  color: var(--color-black);
  text-decoration: none;
}
.mobile-menu-list li a:hover {
  background-color: var(--color-gray1);
}
#mobile-menu-lang {
  padding: 15px var(--section-horizontal-padding);
  border-top: 1px solid #eee;
}
#mobile-menu-search {
  padding: 15px var(--section-horizontal-padding);
  border-top: 1px solid #eee;
}
/* Masquer les sous-menus par défaut */
.mobile-menu-list ul {
  display: none;
  padding-left: 20px; /* Indentation pour les sous-menus */
}
/* Afficher les sous-menus lorsqu'ils sont actifs */
.mobile-menu-list .submenu-visible > ul {
  display: block;
}

/* ------ SLIDER ------- */
#main-carrousel {
  display: flex;
  align-items: center;
  padding: 0;
  background-color: var(--color-gray6);

  position: relative;
  overflow: hidden;
  transition: all var(--transition-exit-delay) ease-out;
}
#main-carrousel > .metaslider {
  width: 100%;
  height: 100%;
}
#main-carrousel .flexslider {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  position: relative;
}
#main-carrousel .slides {
  width: 100%;
  height: 100%;
  filter: brightness(75%);
  bottom: 0;
}
#main-carrousel .slides li img {
  transform: scale(1.2);
  transition: all var(--transition-exit-delay) ease-in-out;
  width: 100%;
  height: 100%;
}
#main-carrousel .flex-control-nav,
article .flex-control-nav {
  height: 15px;
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#main-carrousel .flex-control-paging li a,
article .flex-control-paging li a {
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease-out, height 0.2s ease-out;
}
#main-carrousel .flex-control-paging li a.flex-active,
article .flex-control-paging li a.flex-active {
  width: 15px;
  height: 15px;
  background: white;
}
#main-carrousel .content-max-width {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  width: calc(100% + var(--section-horizontal-padding));
  margin: 0 auto;
  padding: 0 var(--section-horizontal-padding);
  transition: padding var(--transition-exit-delay);
}
#main-carrousel #carrousel-text {
  height: 100%;
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}
#main-carrousel #carrousel-text h1 {
  /* position: relative;
  right: 37px; */
}
#main-carrousel #carrousel-text p {
  max-width: 50rem;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 37px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.65);
}
#main-carrousel .button-container {
  margin-top: 1rem;
}

/* ------ NEWS & EVENTS ------- */
#news-and-events {
  background: var(--color-gray1);
}
#news-and-events .sub-section {
  gap: 3.75rem;
}
#news-and-events .sub-section > header {
  gap: 2.5rem;
}
#news-and-events .sub-section > header .section-description {
  max-width: 30rem;
}
.past-event {
  filter: opacity(50%);
  transition: all var(--transition-exit-delay) ease-in-out;
  -webkit-transition: all var(--transition-exit-delay) ease-in-out;
}
.past-event:hover {
  filter: opacity(100%);
  transition: all var(--transition-enter-delay) ease-in-out;
  -webkit-transition: all var(--transition-enter-delay) ease-in-out;
}

.page-template-page-ecosysteme
  #spotlight
  .horizontal-article-list
  article.card {
  flex: 1 0 0;
  width: calc(
    (33%) - ((var(--section-horizontal-gap) / 3) + (0.32rem))
  ); /* TODO: Trouver valeur 1.1rem */
}

#event-content #side-column {
  max-width: 24rem;
}

#event-content #side-column .ypc-info-box {
  align-self: auto;
}

/* ------ CATEGORY & SEARCH ------- */
.archive .flex-container.list,
.search .flex-container.list {
  padding: 3.125rem 0 6.25rem;
}
.archive article.card.small,
.search article.card.small {
  flex: 0 0 0;
  min-width: calc(
    (25%) - ((var(--section-horizontal-gap) / 4) + (1.1rem))
  ); /* TODO: Trouver valeur 1.1rem */
}
.archive article.card.small.swiper-slide {
  flex: none !important;
  min-width: none !important;
}
.archive article.card.small .the-excerpt,
.search article.card.small .the-excerpt {
  font-weight: 300;
}
.category .site-content,
.search .site-content {
  background-color: var(--color-gray1);
}
.category .archive-header,
.search .archive-header {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  padding-top: 3.125rem;
}
.search .archive-header {
  padding-top: 0;
}
.category .archive-description,
.search .archive-description {
  max-width: 35rem;
}
.category .horizontal-article-list,
.search .horizontal-article-list {
  row-gap: var(--section-vertical-gap);
}
.no-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 9.375rem;
  padding-bottom: 9.375rem;
}

/* ------ ENTREPRISE-LIST ------- */
#entreprise-list {
  background-color: var(--color-gray1);
}
#entreprise-list .flex-container {
  padding-top: 3.125rem;
  padding-bottom: 6.25rem;
  row-gap: 0;
  gap: 0;
}
#entreprise-list .horizontal-article-list {
  /* display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--section-horizontal-gap);
	position: relative; */
  display: grid;
  gap: var(--section-horizontal-gap) var(--section-horizontal-gap);
  grid-template-columns: repeat(var(--grid-column-nb), 1fr);
}
#entreprise-list .horizontal-article-list li {
  background-color: white;
  padding: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5/3;
}

/* ------ Y-START ------- */
#y-start {
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
  background: var(--color-secondary-red);
  position: relative;
  z-index: 1;
}
#y-start .flex-container {
  padding: 0;
  align-items: stretch;
  gap: var(--section-horizontal-gap);
  row-gap: var(--section-vertical-gap);
}
#y-start .sub-section > header {
  gap: 0;
}
#y-start::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;

  background-image: url("img/icon/yp_ystart_bg.svg");
  background-size: cover;
  background-position: 0 -200%;
  background-repeat: no-repeat;
  opacity: 0.75;
  z-index: -1;
  transition: background-position var(--transition-enter-delay);
}
#y-start:hover::after {
  background-position: 0 0;
  transition: background-position var(--transition-enter-delay);
}
#y-start #ystart-features {
  gap: 2.5rem;
}
#y-start #ystart-text header {
  flex: 1 0 0;
}
#y-start #ystart-text h2,
#y-start #ystart-text h3 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 4.5rem;
  text-transform: uppercase;
}
#y-start #ystart-text h2 {
  color: var(--color-primary-red);
}
#y-start #ystart-text h3 {
  text-transform: none;
}
#y-start #ystart-text p {
  max-width: 35rem;
}
#y-start .feature {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
}
#y-start .feature img {
  max-width: 12.5rem;
  aspect-ratio: 11/10;
  flex-basis: 50%;
}
#y-start .feature header {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-basis: 50%;
}
#y-start .feature header p {
  color: var(--color-gray6);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5625rem;
}
.y-start-link:hover {
  color: var(--color-black);
}

/* ------ Y-START PAGE ------- */
#ystart-page {
  padding-top: 3.75rem;
  padding-bottom: 9rem;
}
#ystart-page .ystart-description {
  display: flex;
  padding-top: 3.125rem;
  padding-bottom: 5rem;
}
#ystart-page .ystart-description > header {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
#ystart-page .ystart-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
#ystart-page .ystart-section {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding-top: 5.625rem;
  padding-bottom: 5.625rem;
  background-size: cover;
  background-image: url("img/yp_ystart_odd_section_bg.png");
  background-repeat: no-repeat;
  /* background-position: -44vw center; */
  background-position: -100vw center;
}
#ystart-page .ystart-section-wrapper:nth-child(even) .ystart-section {
  flex-direction: row;
  background-image: url("img/yp_ystart_even_section_bg.png");
  /* background-position: 44vw center; */
  background-position: 100vw center;
}

/* Animation slide-in-left */
@keyframes slideBgInLeft {
  from {
    background-position: -100vw center;
    opacity: 0;
  }
  to {
    background-position: -44vw center;
    opacity: 1;
  }
}
/* Animation slide-in-right */
@keyframes slideBgInRight {
  from {
    background-position: 100vw center;
    opacity: 0;
  }
  to {
    background-position: 44vw center;
    opacity: 1;
  }
}
/* Classes pour déclencher les animations */
.slide-bg-in-left {
  animation: slideBgInLeft 1s ease-out forwards;
}
.slide-bg-in-right {
  animation: slideBgInRight 1s ease-out forwards;
}

#ystart-page .ystart-section header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1 0 0;
  flex-basis: 50%;
}
#ystart-page .ystart-section .img-container {
  flex: 1 0 0;
  flex-basis: 50%;
  display: flex;
  justify-content: center;
}
#ystart-page .ystart-section img {
  max-width: 14rem;
  object-fit: contain;
}
.page-id-20 #ystart-offer .block-section,
.page-id-1227 #ystart-offer .block-section {
  background-color: #ffd5d5;
}
.list-block.red .wysiwyg a,
#ystart-offer .wysiwyg a,
.list-block.red a:hover,
#ystart-offer a:hover {
  color: var(--color-primary-red);
}
#ystart-offer {
  /* border-top: var(--color-line-height) solid var(--color-primary-red); */
  background-color: rgba(89, 184, 132, 0.15);
  margin-bottom: 9rem;
}
.list-block img,
#ystart-offer img {
  height: 100%;
}
.list-block .block-section,
#ystart-offer .block-section {
  background-color: rgba(89, 184, 132, 0.15);
  padding-top: 3.125rem;
  padding-bottom: 3.125rem;
}
#ystart-offer .block-section a:hover {
  color: var(--color-secondary-green);
}
.list-block .block-section:nth-child(even),
#ystart-offer .block-section:nth-child(even) {
  background-color: white !important;
}
.list-block li .two-columns,
#ystart-offer li .two-columns {
  flex-direction: row;
}
.list-block li:nth-child(even) .two-columns,
#ystart-offer li:nth-child(even) .two-columns {
  flex-direction: row-reverse;
}
.list-block .sub-section .metaslider,
#ystart-offer .sub-section .metaslider {
  /* aspect-ratio: 16/11; */
  object-fit: cover;
  /* debug */
  /* background-color: greenyellow; */
  /* Forcer le MetaSlider à prendre 50% de la largeur du conteneur parent */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.list-block .sub-section .metaslider .flex-viewport,
#ystart-offer .sub-section .metaslider .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.list-block .sub-section .metaslider .flex-control-nav,
#ystart-offer .sub-section .metaslider .flex-control-nav {
  position: absolute;
  bottom: 2.5rem;
}
.list-block .sub-section .metaslider > *,
.list-block .sub-section .metaslider > * > *,
.list-block .sub-section .metaslider .flex-viewport,
.list-block .sub-section .metaslider .slides,
#ystart-offer .sub-section .metaslider > *,
#ystart-offer .sub-section .metaslider > * > *,
#ystart-offer .sub-section .metaslider .flex-viewport,
#ystart-offer .sub-section .metaslider .slides {
  height: 100%;
  width: 100%;
}
.list-block .sub-section .metaslider .slides li,
#ystart-offer .sub-section .metaslider .slides li {
  height: 100%;
}
.list-block .sub-section .metaslider .slides li img,
#ystart-offer .sub-section .metaslider .slides li img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#ystart-admissions .flex-container {
}
#ystart-admissions .two-columns {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  row-gap: var(--section-horizontal-gap);
  /* column-gap: 100px; */
  flex-wrap: wrap;
}
#ystart-admissions .two-columns > * {
  /* min-width: 26rem; */
  flex-basis: calc(50% - var(--section-horizontal-gap) / 2);
}
#ystart-admissions h2 {
  flex: 1 0 0;
  flex-basis: 100%;
}

/* ------ PARK IN NUMBERS ------- */
.number .sub-section,
#park-in-numbers .sub-section {
  gap: 5rem;
}
.number .horizontal-article-list,
#park-in-numbers .horizontal-article-list {
  width: 100%;
  position: relative;
  gap: 3.75rem;
  row-gap: 1.875rem;
  flex-wrap: wrap;
}
.number .horizontal-article-list .data,
#park-in-numbers .horizontal-article-list .data {
  flex: 0 0 0;
  /* min-width: var(--section-horizontal-col-min-width); */
  min-width: calc(50% - (var(--section-horizontal-gap) - 1.25rem));
  width: 25%;
  /* flex-basis: calc(50% - (var(--section-horizontal-gap) - 1.25rem)); */
}

/* ------ PROJECT ------- */
#project-content .flex-container {
  padding-bottom: 3.75rem;
}
#project-content .horizontal-article-list {
  position: relative;
  gap: 3.75rem;
  row-gap: 1.875rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  flex: 0;
}
#project-content .horizontal-article-list .data {
  min-width: var(--section-horizontal-col-min-width);
  width: 50%;
  max-height: 12rem;
}
#post-content .the-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
#post-content .the-content ul {
  list-style: inside;
  padding: 0 0 1.5625rem 1.5625rem;
  margin-left: 1.25rem;
}
#post-content .the-content ul li {
  font-size: 1.375rem;
  list-style-type: disc;
  padding-bottom: 0.625rem;
  line-height: 1.75rem;
  list-style: outside;
}

#project-table {
  margin: 1rem 0;
}
.page-template-page-info #project-table {
  width: 100%;
}
.table .content-max-width,
#project-table .content-max-width {
  padding-bottom: 6.25rem;
}
.table .flex-container,
#project-table .flex-container {
  overflow-x: auto;
  padding-bottom: 0;
}
.table table,
#project-table table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-gray1);
}
.align-right {
  text-align: right;
}
.table tr th,
#project-table tr th {
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
}
.table tr th em,
#project-table tr th em {
  font-weight: 400;
}
.table tr td,
#project-table tr td {
  font-size: 1.125rem;
  line-height: 1.5rem;
}
.table tr td strong,
#project-table tr td strong {
  font-weight: 600;
}
.table tr th,
.table tr td,
#project-table tr th,
#project-table tr td {
  padding: 1rem;
  border-color: white;
  border-width: 2px;
  background-color: var(--color-gray1);
  vertical-align: center;
}
#project-table tr th:nth-child(6),
#project-table tr td:nth-child(6) {
  color: white;
  background-color: var(--color-primary-green);
}
.gallery,
#project-gallery {
  height: 40vw;
  min-height: 20rem;
  background: var(--color-gray1);
  display: flex;
  overflow: hidden;
  position: relative;
  padding: 0;
}
/* Arrow right to indicate that the gallery is draggable horizontally */
.gallery::after,
#project-gallery::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.125rem;
  background: var(--color-gray1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 75%;
  rotate: 270deg;
  /* slow animation from left to right to indicate scrollability */
  animation: arrowR 1.5s ease-in-out 20 alternate,
    fadeToInvisible 2s ease-in 16s forwards;
}
@keyframes arrowR {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}
@keyframes fadeToInvisible {
  0% {
    opacity: 75%;
  }
  100% {
    opacity: 0%;
  }
}

.gallery .flex-container,
#project-gallery .flex-container {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-bottom: 3.125rem;
  padding-left: var(--section-horizontal-padding);
  padding-right: var(--section-horizontal-padding);
  overflow-x: auto;
  position: relative;
}
.gallery .flex-container > li,
#project-gallery .flex-container > li {
  display: contents;
  background-color: #4e4e4e;
  height: 100%;
  width: auto;
  min-width: 0;
  flex: 0 0 auto; /* Empêche les éléments de se rétrécir */
}
.gallery .flex-container > li > img,
#project-gallery .flex-container > li > img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain; /* Assure que l'image couvre toute la hauteur sans déformation */
  pointer-events: none;
}
.offer-debug {
  display: none;
}
.draggable-gallery {
  position: relative;
  width: 100%;
  overflow-y: hidden;
  overflow-x: scroll;
  white-space: nowrap;
  /* transition: all 0.2s; */
  /* will-change: transform; */
  user-select: none;
  cursor: grab;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.draggable-gallery::-webkit-scrollbar {
  display: none;
}
.draggable-gallery.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

/* ------ CONTACT ------- */
#contact {
  border-top: var(--color-line-height) solid var(--color-primary-green);
}
.wpcf7 {
  display: flex;
  justify-content: stretch;
  flex: 1 0 0;
}
.wpcf7 > form {
  gap: 3.125rem !important;
}
.wpcf7 .stretch-height {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.wpcf7 .stretch-height span:has(textarea) {
  flex: 1 0 0;
}
p:has(.wpcf7-form-control-wrap) {
  display: flex;
}
.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  width: 100%;
}
.wpcf7-form-control-wrap input {
  flex: 1 0 0;
}
.wpcf7-form-control-wrap span {
  font-size: 0.875rem;
  line-height: 2;
  flex: 1 0 0;
}
.wpcf7-submit {
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 0.75rem 2rem 0.75rem 2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--color-gray1);
  z-index: 1;
  cursor: pointer;

  box-shadow: inset -0px -56px 0 -50px var(--color-primary-green);
  transition: color var(--transition-exit-delay),
    box-shadow var(--transition-exit-delay);
}
.wpcf7-submit:hover {
  color: white;
  box-shadow: inset -0px -100px 0 -50px var(--color-primary-green);

  transition: color 0.3s box-shadow 0.3s ease-out;
}
.wpcf7 .wpcf7-form .wpcf7-response-output {
  margin: 0;
  padding: 1rem;
  border-width: 1px;
  border-radius: 6px;
  /* background-color: var(--color-gray1); */
}

/* ------ INFOS ------- */
#page-infos {
  background-color: var(--color-transparent-green);
}
#page-infos .flex-container {
  /* padding-top: 6.25rem; */
}

/* ------ LIST ------- */
.offres > div > ul > li:nth-child(odd) .two-columns {
  flex-direction: row-reverse;
}
.offres > div > ul > li:only-child .two-columns {
  flex-direction: row;
}
.offres > div > ul > li {
  margin-bottom: 6.25rem;
}
.offres > div > ul > li:last-child {
  margin-bottom: 3.125rem;
}
.offres .offer {
  margin-bottom: 5rem;
}
.offres .offer:last-child {
  margin-bottom: 0;
}
.offres .offer h2 {
  margin-bottom: 1.5rem;
}
.offres .sub-section:has(img) {
  justify-content: center;
  align-items: center;
}
.offres .sub-section img {
  max-width: 280px;
  max-height: 140px;
  object-fit: contain;
}
#info-box {
  background: var(--color-transparent-green);
  /* padding-top: 3.75rem;
  padding-bottom: 3.75rem; */
  margin-bottom: 6.25rem;
}

/* ------ ABOUT ------- */
.team-member {
  display: grid;
  grid-template-columns: repeat(var(--grid-column-nb), 1fr);
  grid-template-rows: 1fr 1fr 1fr auto;
  gap: 1.875rem 3.125rem;
  grid-template-areas:
    "avatar header header header"
    "avatar infos bio bio"
    ". . bio bio"
    ". . bio bio";
}
.member-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
  align-items: flex-start;
}
.member-avatar {
  grid-area: avatar;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.avatar {
}
.avatar img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  /* height: 100%; */
  border-radius: 100%;
  aspect-ratio: 1;
}
/* Ajouter regle pour avatar success stories responsive */
.member-infos {
  grid-area: infos;
  display: flex;
  flex-direction: column;
  line-height: 22px;
}
.member-bio {
  grid-area: bio;
}
.member-bio p {
  font-size: 1.125rem;
  line-height: 1.375rem;
}

.logos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.partner-logo {
  height: 80px;
  width: auto;
}
.partner-logo img {
  object-fit: contain;
}
.info-card {
  background: var(--color-transparent-green);
  padding: 60px;
}
.logo-linkedin {
  font-size: 1.25rem;
  color: var(--color-black);
  position: relative;
  left: 2px;
  top: 2px;
}
.logo-linkedin:hover {
  color: var(--color-primary-green);
}

/* --------- PAGE --------- */
#page-banner {
  height: 23.75rem;

  display: flex;
  justify-content: flex-start;
  align-items: end;

  background-color: var(--color-gray2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-blend-mode: multiply; */
}
.page-template-templatespage-ystart-php #page-banner,
.single #page-banner {
  /* background-blend-mode: normal; */
}
#page-banner .content-max-width {
  width: 100%;
  max-width: var(--content-max-width);
  padding: 2.5rem 0;
  margin: 0 auto;
}
#offer-filters
  .content-max-width
  .flex-container
  .sub-section#filter-form
  button {
  margin-top: 0.625rem;
}
.vertical-article-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 0 0;
}
.vertical-article-list article {
  display: flex;
  gap: var(--section-horizontal-gap);
  align-items: stretch;
  justify-content: center;

  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
}
.vertical-article-list > ul > li:nth-child(odd) > article,
.vertical-article-list > #results > li:nth-child(odd) {
  background: var(--color-gray1);
}
.vertical-article-list article > a {
  aspect-ratio: 3/2;
  display: flex;
  justify-content: stretch;
  overflow: hidden;
  flex-basis: 50%;
}
.vertical-article-list article header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-basis: 50%;

  /* max-width: 40rem; */
}
.vertical-article-list article header .the-excerpt {
  flex: 1 0 0;
}
.vertical-article-list article header button {
  margin-top: 0.625rem;
}

/* ------ FOOTER ------- */
#footer-section.block-section {
  background-color: var(--color-primary-green);
  padding: 0;
  position: relative;
}
#footer-section a,
#footer-section a:visited,
#footer-section a:hover {
  color: white;
}
#footer-nav {
  width: calc(100% - var(--section-horizontal-padding) * 2);
  color: white;
  background: var(--color-primary-green);
  padding: 5rem var(--section-horizontal-padding);

  display: flex;
  gap: 60px;
}
#footer-nav * {
  font-size: 1.125rem;
  line-height: 1.5625rem;
}
#footer-nav .column {
  flex: 1 0 0;
}
#footer-nav main.column {
  flex: 4 0 0;
}
#footer-nav footer.column {
  gap: 2.5rem;
}
#footer-nav footer.column {
  display: flex;
  gap: 1.25rem;
}
#footer-nav > header {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 3.75rem;
  flex: 1 0 0;
}
.footer-menu > li,
.footer-menu > li > ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-weight: 600;
  flex: 1 0 0;
  min-width: 10rem;
}
.footer-menu > li > ul {
  font-weight: 400;
}
/* .footer-menu > li > a,
.footer-menu > li > ul > li{
  margin-bottom: 10px;
} */
#footer-nav > footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
#footer-nav > footer #newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}
#footer-nav > footer input,
#footer-nav > footer input::placeholder {
  color: white;
  border: none;
  /* border-radius: 0; */
  background-color: var(--color-secondary-green);
}
#footer-nav .social-links {
  display: flex;
  gap: 0.625rem;

  color: var(--color-primary-green);
}
#footer-nav .social-links > li {
  background: white;
  border-radius: 100%;
  width: 30px;
  height: 30px;
}
#footer-nav .social-links > li > a {
  color: var(--color-primary-green);
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 0 0 0.5px;
}
#footer-nav .social-links > li > a > i {
  font-size: 1.25rem;
}
#footer-nav #block-sponsor {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-top: 20px;
}
#footer-nav #block-sponsor h3,
#footer-nav #block-sponsor img {
  opacity: 0.35;
  transition: opacity 0.2s ease-in-out;
}
#footer-nav #block-sponsor > div {
  display: flex;
  gap: 1.25rem;
}
#footer-nav #block-sponsor img {
  width: 100px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1000%);
}
#footer-nav #block-sponsor img:hover {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
#impressum {
  padding: 0.625rem 0;
  background: var(--color-gray6);
  position: absolute;
  left: 0;
  width: 100%;
}
#impressum p {
  color: var(--color-gray2);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 25px;
}

/* ------ SINGLE ------- */
.single .the-content h3 {
  /* color: #4BA172; */
}
.the-content a {
  color: var(--color-primary-green);
  text-decoration: underline;
  font-weight: 300;
}
#section-text {
  margin-bottom: 6.25rem;
}

/* ------ CHICKEN + ROBOTXY ------- */
#main_countedown_1 .countdown {
  display: flex;
  flex-direction: row;
  gap: var(--section-horizontal-gap);
  justify-content: center;
  align-items: center;
}
.page #main_countedown_1 .time_left {
  background: none;
  font-size: 4.375rem;
  color: var(--color-black);
  font-family: var(--main-font-family);
  font-weight: 500;
}
.page #main_countedown_1 .element_conteiner {
  min-width: 10rem;
}
.page #main_countedown_1 .time_description {
  font-size: 1.125rem;
  font-family: var(--main-font-family);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

.page-template-page-event #page-banner {
  background-color: white;
  /* background-blend-mode: normal; */
}

/*
.page-id-476 #page-banner,
.page-id-1348 #page-banner {
  background-color: #fffbcc;
} */
.page-template-page-event #page-banner .content-max-width {
  padding: 0;
}
.page-template-page-event #side-column > p:has(img) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.page-template-page-event #side-column > p > img {
  max-width: 100%;
  height: auto;
}
#event-archives {
  /* margin-top: 3.125rem; */
  position: relative;
}
#event-archives .archives-dropdown {
  position: absolute;
  right: 0;
  top: 3.125rem;
  right: var(--section-horizontal-padding);
}
.event-details {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}
/* Styles pour le dropdown */
.archives-dropdown select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}
.mini-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(calc(var(--grid-column-nb) * 2), 1fr);
}
.mini-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}
.logo-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 2.5rem;
  column-gap: 2.5rem;
  justify-content: center;
  /* max-width: 960px; */
  margin: 0 auto;
}
.logo-list img {
  width: auto;
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  margin: 10px;
}

/* ------ ENTREPRISE DETAILS ------- */

.page-id-485 .two-columns {
  flex-direction: row;
}
.page-id-485 .two-columns > * {
  flex-basis: 25%;
}
.page-id-485 #side-column {
  display: none !important;
}
.single .ypc-info-box,
.page-id-485 .ypc-info-box {
  max-width: 24rem;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  align-self: baseline;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--color-transparent-green);
}
.single .ypc-info-box button,
.page-id-485 .ypc-info-box button {
  border-color: var(--color-primary-green);
}
.single .ypc-info-box button a,
.page-id-485 .ypc-info-box button a {
  color: var(--color-primary-green);
  text-decoration: none;
}
#map_canvas {
  margin-top: 0.625rem;
}

/* ------ INTERACTIVE MAP ------- */
#interactive-map {
  position: relative;
  width: 100%;
  height: auto;
}
#interactive-map ul li {
  list-style-type: none;
}
#interactive-map .marker {
  position: absolute;
  width: 80px;
  height: auto;
  cursor: help;
  transform: scale(0.5);
  transition: transform 0.2s ease-in;
  z-index: 50;
  transform-origin: center bottom;
  margin-top: -150px;
}
#interactive-map .marker:hover {
  transform: scale(1);
  transition: transform 0.4s ease-in-out;
  z-index: 100;
}

/* ------ POPUP ------- */

.smcx-embed {
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
}
.smcx-embed > .smcx-iframe-container {
  max-width: none !important;
  height: 563px;
  max-height: none !important;
}

/* ------ RESPONSIVENESS ------- */

@media only screen and (min-width: 1980px) {
  :root {
    --content-max-width: 100vw;
  }
  #ystart-page .ystart-section,
  #ystart-page .ystart-section-wrapper:nth-child(even) .ystart-section {
    /* background: none; */
  }
}
@media only screen and (min-width: 1280px) {
}
@media only screen and (min-width: 1080px) {
  .list-block img,
  #ystart-offer img {
    max-height: 400px;
  }
  #mobile-menu-items.mobile-menu-visible {
    display: none;
  }
}
@media only screen and (max-width: 1280px) {
  :root {
    --section-horizontal-padding: 4rem;
    --grid-column-nb: 4;
  }
  #main-menu,
  #main-menu ul,
  #main-header .flex-container {
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
  }
  #main-carrousel #carrousel-text {
    gap: 2rem;
  }
  #main-carrousel #carrousel-text h1 {
    font-size: 4rem;
    line-height: 4.5rem;
  }
  #main-carrousel #carrousel-text p {
    font-size: 1.5rem;
    line-height: 2rem;
    max-width: 60vw;
  }
}
@media only screen and (max-width: 1080px) {
  :root {
    --grid-column-nb: 3;
    --section-horizontal-gap: 2rem;
  }
  #main-header #main-logo {
    background-image: url("img/yp_mobile_logo.png");
  }
  #main-header .flex-container {
    justify-content: space-between;
  }
  #main-menu {
    display: none;
  }
  #mobile-menu {
    display: flex;
  }
  #main-carrousel {
  }
  #main-carrousel #carrousel-text {
    gap: 1.25rem;
  }
  #main-carrousel #carrousel-text h1 {
    font-size: 3.25rem;
    line-height: 3.75rem;
  }
  #main-carrousel #carrousel-text p {
    font-size: 1.35rem;
    line-height: 1.9rem;
    max-width: 80vw;
  }
  .flex-container {
    flex-direction: column;
  }
  #main-header .flex-container {
    flex-direction: row;
  }
  .two-columns {
    flex-direction: column;
    flex-flow: column;
    row-gap: 100px;
  }
  #ystart-page .ystart-description > header {
    flex-basis: 100%;
  }
  #ystart-admissions .two-columns {
    row-gap: 6.25rem;
  }
  #ystart-admissions .two-columns > .wysiwyg {
    flex-basis: 100%;
  }
  .number .horizontal-article-list,
  #park-in-numbers .horizontal-article-list .data {
    flex: 1 0 0;
  }
  .team-member {
    grid-template-columns: repeat(var(--grid-column-nb), 1fr);
    grid-template-rows: 0.25fr 0.25fr 1fr 1fr;
    grid-template-areas:
      "avatar header header header"
      "avatar infos infos infos"
      ". bio bio bio"
      ". bio bio bio";
  }
  .sub-section.info-card {
    width: calc(100% - 60px * 2);
  }
  .logo-list {
    align-items: center;
  }
}
@media only screen and (max-width: 860px) {
  :root {
    --grid-column-nb: 3;
    --section-horizontal-padding: 1.25rem;
  }
  h1 {
    font-size: 3rem;
    line-height: 4rem;
  }
  #main-carrousel #carrousel-text h1 {
    right: 0;
  }
  #page-banner {
    height: auto;
  }
  .page-template-page-ecosysteme
    #spotlight
    .horizontal-article-list
    article.card {
    width: 100%;
  }
  #map_canvas {
    width: 100% !important;
  }
  .horizontal-article-list,
  .vertical-article-list article,
  .list-block li .two-columns,
  #ystart-offer li .two-columns {
    flex-direction: column;
  }
  .horizontal-article-list {
    flex-wrap: nowrap;
  }
  .horizontal-article-list:has(.data) {
    flex-wrap: nowrap !important;
  }
  .list-block li:nth-child(2n) .two-columns,
  #ystart-offer li:nth-child(2n) .two-columns,
  .offres > div > ul > li:only-child .two-columns,
  .offres > div > ul > li:nth-child(2n + 1) .two-columns {
    flex-direction: column-reverse;
  }
  #y-start #ystart-text h2,
  #y-start #ystart-text h3 {
    font-size: 2.5rem;
    line-height: 3.25rem;
  }
  #y-start .feature {
    flex-direction: column;
  }
  #y-start .feature img {
    max-width: 100%;
    aspect-ratio: none;
  }
  #ystart-page .ystart-section,
  #ystart-page .ystart-section-wrapper:nth-child(even) .ystart-section {
    flex-direction: column-reverse;
    background-position: right center;
    gap: 2.5rem;
  }
  #ystart-page .ystart-section-wrapper:nth-child(even) .ystart-section {
    background-position: left center;
  }
  .number .horizontal-article-list .data,
  #park-in-numbers .horizontal-article-list .data {
    width: 100%;
  }
  article.data .value {
    font-size: 3rem;
  }
}
@media only screen and (max-width: 640px) {
  :root {
    --grid-column-nb: 2;
  }
  h1 {
    font-size: 2rem;
    line-height: 3rem;
  }
  .sub-section {
    max-width: 100%;
  }
  .multifield > * {
    width: 100%;
  }
  .team-member {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .team-member .member-avatar {
    order: -1;
  }
  #main-carrousel .content-max-width {
    width: auto;
  }
  #main-carrousel #carrousel-text h1 {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
  #main-carrousel #carrousel-text p {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  #main-carrousel > .metaslider {
    height: 80vh;
    position: relative;
  }
  #main-carrousel > .metaslider > div,
  #main-carrousel > .metaslider > div .flexslider,
  #main-carrousel > .metaslider > div .flexslider .slides li {
    height: 100% !important;
  }
  .partner-logo {
    height: auto;
    width: 100%;
  }
}
@media only screen and (max-width: 480px) {
  :root {
    --grid-column-nb: 1;
  }
  #menu-footer-menu {
    flex-direction: column;
  }
}
