html {
  font-feature-settings: "lnum";
  -moz-font-feature-settings: "lnum=1";
  -ms-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  -o-font-feature-settings: "lnum";
}

html,
body {
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  color: var(--c-oak-text);
}

main {
  background-color: var(--c-light-stone);
  /* Default background color */
}

.grid-template {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 100vh;
  width: calc(100% - (var(--fluid-60) + var(--fluid-10)) * 2);
  margin: 0 calc(var(--fluid-60) + var(--fluid-10));
  gap: var(--fluid-10);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  z-index: 9999999;
  pointer-events: none;
}

.grid-template>span {
  background: red;
  opacity: 0.02;
  border: 1px solid white;
}

/* Disable image dragging site-wide */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                   HTML BASE
--------------------------------------------------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  line-height: 1.6;
  width: 100%;
  font-size: var(--font-size);
  font-family: "PP Fragment Sans", sans-serif;
  overflow-x: hidden;
}

input {
  font-family: "PP Fragment Sans", sans-serif;
}

.no-scroll {
  overflow: hidden;
}

body {
  background: var(--light-stone);
  padding: 0;
}

div#page {
  padding: 0;
}

#page .wp-block-columns,
#page .wp-block-group {
  padding-left: 0;
  padding-right: 0;
}

.scrollmagic-pin-spacer {
  overflow: visible !important;
  width: 100% !important;
  /* garde la largeur du conteneur */
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                    GENERALS
--------------------------------------------------------------------------------------------------------------------- */

p {
  margin-bottom: var(--paragraph-fluid-bottom);
}

p> :is(a, a:hover, button) {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: "PP Fragment Glare", sans-serif;
  font-weight: 400;
}

h1,
.has-x-large-font-size {
  font-family: Raleway;
  font-size: var(--fs-50);
  font-style: normal;
  line-height: 1.2;
  text-transform: initial;
  margin-bottom: var(--fluid-32);
}

h2,
.has-large-font-size {
  font-size: var(--fs-40);
  text-transform: initial;
  line-height: 1.2;
  margin-bottom: var(--fluid-32);
}

h3,
.has-medium-font-size {
  font-size: var(--fs-25);
  text-transform: initial;
  line-height: 1.2;
  margin-bottom: var(--fluid-32);
}

h4 {
  font-size: var(--fs-20);
  text-transform: initial;
  line-height: 1.2;
  margin-bottom: var(--fluid-32);
}

ul {
  padding-left: 1.1rem;
}

main#primary>* {
  overflow: hidden;
  /* max-width: calc(2600px + (2 * var(--normal-spacing))); */
  margin: auto;
}

#page .wp-block-columns,
#page .wp-block-group {
  max-width: 100%;
  margin: auto;
}

#page .wp-block-columns.container-pndo-width-content,
#page .wp-block-group.container-pndo-width-content {
  max-width: 80%;
}

#page .wp-block-columns.container-pndo-width-content-large,
#page .wp-block-group.container-pndo-width-content-large {
  max-width: 90%;
}

main#primary .page-container .overflow-visible {
  overflow: visible;
}

.hidden {
  display: none !important;
}

.has-small-font-size {
  font-size: var(--wp--preset--font-size--small) !important;
}

.has-normal-font-size {
  font-size: var(--wp--preset--font-size--normal) !important;
}

.has-medium-font-size {
  font-size: var(--wp--preset--font-size--medium) !important;
}

.has-large-font-size {
  font-size: var(--wp--preset--font-size--large) !important;
}

.has-x-large-font-size {
  font-size: var(--wp--preset--font-size--x-large) !important;
}

.has-xx-large-font-size {
  font-size: var(--wp--preset--font-size--xx-large) !important;
}

.has-max-width-small {
  max-width: var(--wp--custom--max-width--small) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.has-max-width-medium {
  max-width: var(--wp--custom--max-width--medium) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.has-max-width-large {
  max-width: var(--wp--custom--max-width--large) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.has-max-width-full {
  max-width: var(--wp--custom--max-width--full) !important;
  width: 100% !important;
}

.has-force-full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.has-animation-fade-in {
  animation: fadeIn var(--wp--custom--animation--duration--normal) var(--wp--custom--animation--timing--ease);
}

.has-animation-slide-up {
  animation: slideUp var(--wp--custom--animation--duration--normal) var(--wp--custom--animation--timing--ease);
}

.has-animation-zoom-in {
  animation: zoomIn var(--wp--custom--animation--duration--normal) var(--wp--custom--animation--timing--ease);
}

.has-animation-duration-fast {
  animation-duration: var(--wp--custom--animation--duration--fast) !important;
}

.has-animation-duration-normal {
  animation-duration: var(--wp--custom--animation--duration--normal) !important;
}

.has-animation-duration-slow {
  animation-duration: var(--wp--custom--animation--duration--slow) !important;
}

.has-animation-timing-ease {
  animation-timing-function: var(--wp--custom--animation--timing--ease) !important;
}

.has-animation-timing-ease-in {
  animation-timing-function: var(--wp--custom--animation--timing--ease-in) !important;
}

.has-animation-timing-ease-out {
  animation-timing-function: var(--wp--custom--animation--timing--ease-out) !important;
}

.has-animation-timing-ease-in-out {
  animation-timing-function: var(--wp--custom--animation--timing--ease-in-out) !important;
}

.has-bottom-margin-none {
  margin-bottom: var(--wp--custom--bottom-margin--none) !important;
}

.has-bottom-margin-small {
  margin-bottom: var(--wp--custom--bottom-margin--small) !important;
}

.has-bottom-margin-medium {
  margin-bottom: var(--wp--custom--bottom-margin--medium) !important;
}

.has-bottom-margin-large {
  margin-bottom: var(--wp--custom--bottom-margin--large) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                    BUTTONS
--------------------------------------------------------------------------------------------------------------------- */

a.wp-block-button__link.wp-element-button {
  border: 1px solid;
  border-color: inherit;
  background: none;
  border-radius: 100%;
  padding: 0.75rem 2.4rem;
}


.wp-block-button.is-style-fill>a.wp-block-button__link {
  background: var(--c-light-stone);
  color: var(--c-oak-text);
  border-color: var(--c-oak-text);
  transition: all 0.5s;
}

.wp-block-button.is-style-fill>a.wp-block-button__link:hover {
  background: var(--c-oak-text);
  color: var(--c-light-stone);
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                    LOADER
--------------------------------------------------------------------------------------------------------------------- */

.global-loader:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--c-light-stone);
  z-index: 1;
  -webkit-transition: all 750ms ease-in-out;
  -moz-transition: all 750ms ease-in-out;
  -ms-transition: all 750ms ease-in-out;
  -o-transition: all 750ms ease-in-out;
  transition: all 750ms ease-in-out;
}

body.page-loaded .loader-container {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  height: 100%;
}

.global-loader:after {
  content: none;
}

.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.global-loader .loader-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.global-loader .loader-container .loader {
  width: 100%;
  height: 100%;
  display: flex;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.loader__content svg {
  opacity: 0;
  transform: translateY(-20px);
}

/* Animations individuelles avec delays intÃ©grÃ©s */
.loader__content svg:nth-child(1) {
  animation: stackPebbles1 2s ease-in-out infinite;
  /* Le plus petit - tombe en dernier */
}

.loader__content svg:nth-child(2) {
  animation: stackPebbles2 2s ease-in-out infinite;
}

.loader__content svg:nth-child(3) {
  animation: stackPebbles3 2s ease-in-out infinite;
}

.loader__content svg:nth-child(4) {
  animation: stackPebbles4 2s ease-in-out infinite;
  /* Le plus gros - tombe en premier */
}

/* SVG 4 - Le plus gros, tombe en premier (0s delay intÃ©grÃ©) */
@keyframes stackPebbles4 {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  20% {
    opacity: 0.8;
    transform: translateY(-10px);
  }

  40% {
    opacity: 1;
    transform: translateY(2px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* SVG 3 - Tombe aprÃ¨s 0.2s */
@keyframes stackPebbles3 {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  13.3% {
    /* 0.2s sur 1.5s = 13.3% */
    opacity: 0;
    transform: translateY(-40px);
  }

  33.3% {
    opacity: 0.8;
    transform: translateY(-10px);
  }

  53.3% {
    opacity: 1;
    transform: translateY(2px);
  }

  63.3% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* SVG 2 - Tombe aprÃ¨s 0.4s */
@keyframes stackPebbles2 {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  26.7% {
    /* 0.4s sur 1.5s = 26.7% */
    opacity: 0;
    transform: translateY(-40px);
  }

  46.7% {
    opacity: 0.8;
    transform: translateY(-10px);
  }

  66.7% {
    opacity: 1;
    transform: translateY(2px);
  }

  76.7% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* SVG 1 - Le plus petit, tombe en dernier aprÃ¨s 0.6s */
@keyframes stackPebbles1 {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  40% {
    /* 0.6s sur 1.5s = 40% */
    opacity: 0;
    transform: translateY(-40px);
  }

  60% {
    opacity: 0.8;
    transform: translateY(-10px);
  }

  80% {
    opacity: 1;
    transform: translateY(2px);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.loader__logo {
  width: var(--loader-width);
  height: auto;
  max-width: 200px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.loader__logo:hover {
  opacity: 1;
}

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

div#masthead {
  --header-height: 5rem;
  background: none;
  padding: 0;
  font-size: 0.75rem;
}

div#masthead .fixed-header-group {
  height: var(--header-height);
}

div#masthead .fixed-header-columns {
  height: 100%;
}

div#masthead a:hover {
  text-decoration: none;
}

#masthead .wp-block-uagb-container.uagb-is-root-container {
  row-gap: 0.5vw;
  column-gap: 0.5vw;
}

#page .site-logo {
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#page .site-logo a {
  display: block;
  width: 100%;
  max-width: 12rem;
  line-height: 1;
  padding: 0;
}

#page .site-logo img {
  width: 100%;
}


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

footer#colophon h3 {
  font-size: var(--fs-20);
  margin-bottom: 0.5rem;
}

footer#colophon .navigation-block {
  margin-top: 0;
}

footer#colophon .is-layout-flex {
  height: auto;
}

footer#colophon ul.menu {
  padding-left: 0;
  margin-bottom: 0;
}

footer#colophon ul.menu>li {
  padding: 0.5rem 0;
}

footer#colophon ul.menu>li:last-child {
  padding-bottom: 0;
}

/* Animation parallaxe du footer basée sur GSAP progress */
footer#colophon {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--c-light-stone);
}

footer#colophon .site-info {
  width: 80%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: var(--c-moss);
  /* Fond vert du contenu */
}

/* Élément de fond qui grandit progressivement (réel élément HTML) */
footer#colophon .footer-bg-animation {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 100%;
  background: var(--c-moss);
  z-index: 0;
  transform: translateX(-50%);
  transform-origin: center;
  will-change: transform;
}

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

.social-networks-links {
  display: flex;
  column-gap: var(--fluid-10);
}

.footer-legal-links {
  font-size: var(--fs-12);
}

#primary #footer-links-section .link-list a.link-list-item {
  max-width: 90%;
}

#page .has-footer-big-text-font-size {
  font-size: var(--fs-60, 3.75rem) !important;
  line-height: 1.24;
}

#page #primary .footer-nav-legals ul {
  display: flex;
  justify-content: left;
  width: 100%;
  column-gap: 2rem;
  row-gap: 0rem;
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                    BREADCRUMB
--------------------------------------------------------------------------------------------------------------------- */

.breadcrumb-home img {
  height: var(--fluid-10);
  margin-top: var(--fluid-5);
  vertical-align: top;
  margin-right: var(--fluid-5);
}

.breadcrumb a {
  height: var(--fluid-20);
  text-align: center;
  line-height: var(--fluid-20);
  color: var(--c-moss, #2e576b);
  font-size: var(--fs-12);
  line-height: var(--fluid-20);
  vertical-align: middle;
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
}

.breadcrumb a:last-of-type {
  color: var(--c-moss, #2e576b);
  font-weight: 500;
  text-decoration: none;
}

span.breadcrumb-separator {
  height: var(--fluid-20);
  width: var(--fluid-15);
  line-height: var(--fluid-20);
  text-align: center;
  margin: 0;
}

span.breadcrumb-separator svg {
  height: var(--fluid-10);
  margin-top: var(--fluid-5);
  vertical-align: top;
}

/* ---------------------------------------------------------------------------------------------------------------------
                                                    BLOCKS STYLES
--------------------------------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------------------------------
                                                PARENTS BLOCS OVERIDES
--------------------------------------------------------------------------------------------------------------------- */

/* -------------------- VIDEO EMBEDER -------------------- */

#page .video_embeder {
  border-radius: 1rem;
  overflow: hidden;
}

#page .video_embeder .play {
  background-image: url("/wp-content/themes/cosamirai/assets/images/play_btn.png");
  top: calc(50% - 55px);
  left: calc(50% - 55px);
  height: 110px;
  width: 110px;
}

/* -------------------- POST ITEM -------------------- */

.post-items {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: var(--fluid-10);
}

.post-item {
  max-width: 60.9rem;
  display: grid;
  grid-template-areas: "image texts";
  grid-template-columns: 20rem 1fr;
  gap: var(--fluid-10);
}

.post-item-image {
  width: 100%;
  min-height: 15rem;
  height: 100%;
  border-radius: 0.5rem 0 0 0.5rem;
  overflow: hidden;
}

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

.post-item-content {
  background: var(--c-light-stone);
  border-radius: 0.5rem;
  margin-left: calc(var(--fluid-20) * -1);
  padding: var(--fluid-40);
}

.post-item-content h3 {
  font-size: var(--fs-20);
  text-transform: initial;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--fluid-10);
}

.post-item-metas {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-12);
  margin-bottom: var(--fluid-10);
  color: var(--c-copy);
}

.post-item-categories {
  display: flex;
  gap: var(--fluid-5);
  flex-flow: wrap;
}

span.post-item-category {
  padding: var(--fluid-5) var(--fluid-10);
  border: 1px solid var(--c-copy);
  border-radius: var(--fluid-30);
}

a.post-item-read-more {
  position: relative;
  display: inline-block;
  margin-left: var(--fluid-5);
  font-weight: 500;
}

a.post-item-read-more:after {
  content: "";
  top: 100%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-oak-text);
  position: absolute;
}

#page .blog-items-filters-container {
  display: block;
}

#page .blog-items-filter-title {
  font-size: var(--fs-20);
  margin-bottom: var(--fluid-20);
}

#page .blog-items-filters-container {
  margin: 0 0 var(--fluid-20) 0;
}

#page .loop-ajax-container {
  display: flex;
  flex-direction: column;
  max-width: 60.9rem;
  margin: 0 0 0 auto;
}

#page .blog-items-filter.loop-ajax-filter {
  color: inherit;
  text-transform: none;
  font-weight: inherit;
  font-size: var(--fs-12);
  padding: var(--fluid-7) var(--fluid-15);
  border: 1px solid var(--c-oak-text);
  border-radius: var(--fluid-10);
  margin-bottom: var(--fluid-5);
}

#page .blog-items-filter.loop-ajax-filter:hover {
  background: var(--c-copy);
}

#page .blog-items-filter.loop-ajax-filter.active {
  background: var(--c-oak-text);
  color: white;
}


/* ---------------------------------------------------------------------------------------
                                ActualitÃ©s
--------------------------------------------------------------------------------------- */

#primary span.page-numbers.current {
  background: var(--c-moss);
  color: var(--c-blanc);
}

#primary .page-numbers {
  width: var(--fluid-40);
  height: var(--fluid-40);
  border: 1px solid var(--c-moss);
  border-radius: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  color: var(--c-stone);
  background: var(--c-blanc);
  font-weight: 600;
  cursor: pointer;
}

a.newsletter-policy-link {
  color: var(--c-blue);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------------------------------------------------
                                          IMAGE PARALLAX EFFECT (inner-parallax)
--------------------------------------------------------------------------------------------------------------------- */

figure.wp-block-image.inner-parallax.progressing {
  overflow: hidden;
  --scroll-progress: 0;
}

figure.wp-block-image.inner-parallax.progressing img {
  height: 124%!important;
  object-fit: cover;
  object-position: 50%;
  transform: translateY(calc(-12% + var(--scroll-progress) * 12%));
  will-change: transform;
  transition: none;
  /* width: auto!important; */
}

/* ---------------------------------------------------------------------------------------
                                    FIX COOKIES BANNER
--------------------------------------------------------------------------------------- */


body #cmplz-manage-consent .cmplz-manage-consent {
  bottom: -60px;
  animation: mc_slideOut_alt 0.5s forwards;
}
@-webkit-keyframes mc_slideOut_alt {
  100% {
      bottom: -60px;
  }
}

@keyframes mc_slideOut_alt {
  100% {
      bottom: -60px;
  }
}



body.home .otgs-development-site-front-end,
body.home .wpml-ls-statics-footer {
  display: none!important;
}

.otgs-development-site-front-end {
  display: none !important;
}

body.page-id-1951 .hidden-spaces,
body.page-id-820 .hidden-spaces
{
  display: none !important;
}

body.page-id-1929 .hidden-homes,
body.page-id-818 .hidden-homes {
  display: none !important;
}
