/*
Theme Name: LeChateauDeVerre
Text Domain: le-chateau-de-verre
Template: blankslate
*/

/* RESET */

/* FONT-FACES */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    text-decoration-color: var(--secondary);
    text-underline-offset: 0.2rem;
    transition: all .25s ease-in-out;
}

a:not([class]):hover {
    color: var(--secondary);
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

input,
button,
textarea,
select {
  font: inherit;
  cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition: none;
  }
}

body,
html {
  /*height: 100%; */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  margin-top: 0 !important;
}

#wpadminbar {
  top: auto !important;
  bottom: 0 !important;
}

/* INIT */

:root {
  --primary: #03052f;
  --secondary: #cd3233;
  --darker: #081a3c;
  --lighter: #fce277;
  --bg: white;
  --lightgray: #f2f2f2;
  --shadow: 0 0.05rem 1.4rem #05305726;
  --lightblue: rgba(0, 76, 145, 0.2);

  --mw: 64rem;
  --break: 55rem;
  --ratio: 1.61;
  --spacer: 2rem;
  --radius: 1rem;

  --body-xs: 0.8rem;
  --body-s: 1rem;
  --body-m: 1.25rem;
  --body-l: 1.5rem;
  --body-xl: 2.1rem;
  --bodyfont: "Raleway", sans-serif;
  --headingfont: "Italiana", sans-serif;
}

html {
  /*font-size: clamp(16px, 1.05vw, 30px);*/
  font-size: 20px;
}

@media screen and (max-width: 55rem) {
  html {
    font-size: clamp(16px, 1.2vw, 30px);
    /*font-size: 20px;*/
  }
}

body {
  color: var(--primary);
  font-family: var(--bodyfont);
  font-optical-sizing: auto;
  font-weight: 400;
  background: var(--bg);
  font-size: var(--body-s);
}

@media screen and (max-width: 55rem) {
  :root {
    --box-width: 16;
  }
}

::selection {
  background-color: var(--secondary);
  color: var(--bg);
}

/* TYPE */

p {
  font-size: var(--body-xs);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.p-l {
  font-size: var(--body-l);
}

.content ul,
.hero__content ul {
  margin-bottom: 1.5rem;
}

.content ul li,
.hero__content ul li {
  /* list-style-position: inside; */
  margin-bottom: 0.5rem;
  list-style: "➔" outside;
  padding-left: 0.5rem;
  margin-left: 1rem;
  font-weight: 800;
}

.content ul li:before,
.hero__content ul li {
  content: "";
}

.content ul li::marker,
.hero__content ul li::marker,
.content ol li::marker {
  color: var(--secondary);
  font-weight: 600;
}

a {
  color: var(--primary);
}

a:hover {
  /*color: var(--secondary);*/
}

h1 {
  /* font-size: calc(2 * var(--ratio) * 1rem); */
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.2;
  font-family: var(--headingfont);
}

h2 {
  font-size: var(--body-l);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: var(--headingfont);
}

h2 span {
  color: var(--secondary);
}

.subtitle {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 0.7rem;
  display: block;
}

.text__col {
  columns: 2;
  padding-left: 12.5%;
  margin-top: 2.7rem;
}

@media screen and (max-width: 55rem) {
  .text__col {
    columns: 1;
    padding-left: 0;
  }
}

/* GLOBAL LAYOUT */

section {
  padding: 6rem 0;
  position: relative;
}

section:has(.embla) {
  overflow-x: hidden;
}

/* main section:last-of-type:not(.team__member) {
    padding-bottom: 0;
} */

/*.wp-block-group__inner-container,*/

.ctn {
  max-width: var(--mw);
  width: 100%;
  margin: 0 auto !important;
  padding: 0 calc(var(--spacer) * 1.5);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
/*
.row > * {
  flex: 1;
}

section:not(:has(.ctn)) {
  padding: 2rem 1rem;
}
  */

@media screen and (max-width: 55rem) {
  .wp-block-group__inner-container,
  .ctn {
    padding: 0 var(--spacer);
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 0;
  }
}
.pb-0 {
  padding-bottom: 0 !important;
}

/* COMPONENTS */

button,
.btn,
.wp-block-button__link,
input.wpcf7-form-control.wpcf7-submit.has-spinner {
  font-size: 1rem;
  /* text-transform: uppercase; */
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
  font-weight: 900;
  border-radius: 2rem;
  border: none;
  text-transform: uppercase;
  color: var(--primary);
  /* letter-spacing: .1rem; */
  font-family: var(--headingfont);
  padding: 0;
  background: none;
}

button:hover,
.btn:hover,
.wp-block-button__link:hover,
input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  /*border: 1px solid var(--secondary);*/
  transition: all 0.25s ease;
  color: var(--secondary);
}

.btn::after,
.wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 0.7rem;
  margin-left: 0.75rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="19" height="14" viewBox="0 0 19 14"><path fill="%23CD3233" d="M10 .6c0 1.3.4 2.7 1.6 3.8 1.2 1 3.2 1.8 6.7 1.8v1.4c-3.5 0-5.5.8-6.7 1.8a4.8 4.8 0 0 0-1.7 3.8H8.6a6.2 6.2 0 0 1 3.6-5.8H.5v-1h11.7l-1.5-1a6.2 6.2 0 0 1-2-4.8h1.2Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.25s ease-in-out;
}

.btn:hover::after {
  margin-left: 1rem;
}

.btn.invert {
  border: 2px solid white;
  background: transparent;
}

.btn.invert:hover {
  background: white;
  color: var(--primary) !important;
}

a.btn.icon,
.footer__cta .btn.icon {
  display: flex;
  gap: 1rem;
  width: fit-content;
  padding: 0.5rem 0.7rem 0.5rem 1rem;
  align-items: center;
  background: var(--bg);
  color: var(--darker);
}

.btn.icon svg {
  width: 2.2rem;
  /* height: 3.3rem; */
  background: var(--secondary);
  padding: 0.4rem;
  aspect-ratio: 1;
  border-radius: 100%;
}

.sm {
  padding: 0 4vw;
}

/* 2 COL TEMPLATE */

.page-template-page-2col .hero__gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 2 COL TEMPLATE TEXTE DROITE */

@media screen and (min-width: 55rem) {
  .page-template-page-2col-righttxt .hero__content {
    height: auto;
  }

  .page-template-page-2col-righttxt .hero__gallery img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .page-template-page-2col-righttxt .hero__gallery {
    height: 100vh;
    position: sticky;
    top: 0;
  }
}

/* GUTENBERG COMPONENTS */

.wp-block-details {
  box-sizing: border-box;
  border-bottom: 1px solid #dbe2eb;
  padding: 2.5rem 0;
}

.mission__acc {
  padding: 1.5rem 0;
}

details.missions__acc:first-of-type {
  padding-top: 0;
}

.wp-block-details {
  box-sizing: border-box;
  border-bottom: 1px solid var(--secondary);
  padding: 1.5rem 0;
}

.col-reverse {
  flex-direction: row-reverse;
}

.center {
  text-align: center;
  flex-wrap: wrap !important;
}

details summary {
  font-size: var(--body-l);
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  border-radius: 5px;
  margin-bottom: 5px;
  position: relative;
  padding: 0;
  font-weight: 400;
  transition: all 0.45s ease-in-out;
  padding-right: 4rem;
}

details p {
  font-size: var(--body-m);
  margin-top: 1rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

/*details summary:hover {
  padding-left: calc(var(--spacer) / 2);
}*/

details summary::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 18 18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M.3 1.31A1.1 1.1 0 0 1 1.4.21c1.827 0 3.877.46 5.48 1.9a7.04 7.04 0 0 1 1.588 2.096 7.234 7.234 0 0 1 1.845-2.144C12.107.658 14.383.21 16.398.21a1.1 1.1 0 1 1 0 2.2c-1.74 0-3.465.393-4.731 1.385-1.142.894-2.048 2.382-2.157 4.898l-.012.517-.005.112a1.1 1.1 0 0 1-2.19 0L7.3 9.21l-.01-.527c-.097-2.56-.902-4.058-1.88-4.936-1.067-.958-2.517-1.338-4.01-1.338a1.1 1.1 0 0 1-1.1-1.1Z' fill='%23FFCE00' /%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
  position: absolute;
  right: 10px;
  top: 5px;
  transition: transform 0.15s ease;
}

details summary h3 {
  all: unset;
  width: 94%;
  display: block;
  font-weight: 500;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.wp-block-details {
  box-sizing: border-box;
  border-bottom: 1px solid #ffffff38;
  padding: 1.5rem 0;
}

.wp-block-details {
  box-sizing: border-box;
  border-bottom: 1px solid var(--secondary);
  padding: 1.5rem 0;
}

h3.wp-block-heading {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.full {
  width: 100vw;
  margin-left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  padding: 4rem 0;
}

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

hr.wp-block-separator {
  margin: 2rem 0;
  border: 0.5px solid lightgrey;
}

@media screen and (max-width: 55rem) {
  .wp-block-image .alignright {
    float: right;
    margin: 0;
  }
}

.has-medium-font-size {
  font-size: var(--body-m) !important;
}

/* FOOTER */

footer {
  background: var(--primary);
  padding: 4rem 0 2rem;
}

  footer .ctn {
    max-width: -webkit-fill-available; 
  }

footer svg {
  max-width: 15rem;
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff3b;
  padding-bottom: var(--spacer);
}

.footer__columns {
    display: grid;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0 0;
    grid-template-columns: 1fr 1fr 0.6fr 1fr;
    gap: var(--spacer);
}

.footer__columns > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff1a;
    padding: 1rem;
}
.footer__columns > div:last-child p {
    font-size: 0.6rem;
    text-transform: uppercase;
}
.footer__columns * {
  color: var(--bg);
}

.footer__columns svg {
        height: 2.4rem;
    fill: var(--bg);
    margin-bottom: 1rem;
}

.footer__columns p {
  margin: 0;
}

.footer__bottom {
    color: white;
    margin-top: var(--spacer);
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__bottom svg {
    width: 1.75rem;
    transition: all .25s ease-in-out;
}

.footer__bottom svg:hover {
    fill: var(--secondary);
}

.footer__bottom a {
  color: white;
}

footer h3 {
  color: white;
  font-family: var(--headingfont);
  text-transform: uppercase;
  font-weight: 900;
}

footer .btn {
  color: white;
  border: 1px solid white;
  padding: 0.75rem 1.5rem;
  background: none;
  border-radius: 0;
  font-size: var(--body-xs);
}

footer .btn:hover {
  color: white;
  background: var(--secondary);
  border: 1px solid var(--secondary);
}

footer .btn::after {
  content:none;
}

svg.afp {
    transform: scale(1.3);
}

footer h3.wp-block-heading {
    margin-bottom: 0.5rem;
    font-size: var(--body-xs);
}

.footer-widget.footer-widget-3 a {
    text-decoration: none;
}

@media screen and (max-width:55rem) {
  .footer__cta {
    flex-direction: column;
    gap: var(--spacer);
    text-align: center;
  }

  .footer__columns {
        flex-direction: column;
    gap: var(--spacer);
    text-align: center;
    grid-template-columns: 1fr;
  }
}

/* HEADER */

header {
  background: var(--bg);
  color: var(--primary);
  padding: calc(var(--spacer) / 1);
  position: relative;
  width: 100%;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 9;
  top: 0;
  display: flex;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--primary);
}

a#branding {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled .header__logo-desktop {
  display: none;
  width: 9rem;
  transition: width 0.3s ease;
}

  .header__logo-mobile {
    display: block;
    height: 2.5rem;
}

@media screen and (min-width:55rem) {

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

  .header__logo-mobile {
    display: none!important;
    width: 10rem;
}
}



.page-id-2 header {
  border: none;
}

.header__nav {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
  /*padding: 1rem 1.35rem;
    gap: 1rem;
    backdrop-filter: blur(5.647668361663818px);
    max-height: 3.16rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0s;
    transition: all .3s ease-in-out;*/
}

.lang-select {
  position: absolute;
  top: 0.5rem;
  z-index: 2;
  right: 1rem;
  display: flex;
  gap: 0.2rem;
}

.lang-select a {
  width: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}

.lang-select a:hover p {
  color: var(--bg);
}

.lang-select a:hover svg {
  fill: var(--primary);
}

.lang-select a.active svg {
  fill: var(--primary);
}

.lang-select a.active p {
  color: var(--bg);
}

.lang-select svg {
  width: 2.4rem;
}

.lang-select p {
  all: unset;
  position: absolute;
  font-size: 0.75rem;
  margin-left: 0.1rem;
}

@media screen and (min-width: 55rem) {
  /*html[lang="fr-FR"] .header__nav {
        width: 33rem;
    }

    html[lang="fr-FR"] .scrolled.header__nav {
        width: 29rem;
    }


    .header__nav {
        width: 31rem;
    }

    .scrolled.header__nav {
        width: 28rem;
    }

    */
}

.header__nav__inner {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  justify-content: space-between;
  width: 100%;
}

header .ctn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
  position: relative;
  max-width: none;
  padding: 0 2rem;
}

.header__cta {
  justify-self: end;
}

.hero-home {
  padding: var(--spacer);
  background-image: var(--hero-bg);
  color: var(--primary);
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid var(--primary);
  min-height: 50dvh;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
}

.hero-home__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-home__intro svg {
  width: 1rem;
}

.hero-home__intro h1 {
  text-align: center;
  font-family: var(--headingfont);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero.small {
  min-height: 50vh;
}

.hero.small .hero__img {
  height: 50vh;
}



.hero-home .embla__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 100%, rgb(0 0 0 / 56%), rgb(0 0 0 / 0%) 67%);
    pointer-events: none;
    z-index: 1;
}

.hero-home .embla__controls {
  display: flex;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  padding: calc(var(--spacer)/2);
}

.hero-home .embla__button {
  cursor: pointer;
}

.hero-home a.embla__button.embla__button--prev {
    transform: rotate(180deg);
}

.hero-home .embla__dots {
  display: none;
}

.hero-home .embla__buttons {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.hero-home .embla__viewport {
  position: relative;
}

.hero-home .embla__controls svg {
    width: 1.5rem;
}

p.slider__infos {
    position: absolute;
    bottom: var(--spacer);
    right: var(--spacer);
    font-family: var(--headingfont);
    text-transform: uppercase;
    color: white;
    font-size: var(--body-s);
    margin: 0;
    z-index: 2;
    text-align: right;
    font-weight: 900;
}

p.slider__infos span {
    font-size: var(--body-xs);
}

@media screen and (max-width: 55rem) {
  .hero {
    grid-template-columns: 1fr !important;
  }

  a#branding {
    left: var(--spacer);
    transform: none;
  }

  .hero-home .embla__controls svg {
    width: 1.15rem;
  }
}

.hero {
  padding: 0;
  background-image: var(--hero-bg);
  color: var(--primary);
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid var(--primary);
  min-height: 50dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__content {
  z-index: 3;
  height: 100%;
  border-right: 1px solid var(--primary);
  display: flex;
  align-items: start;
  min-height: 25vh;
  flex-direction: column;
  padding: calc(var(--spacer) * 1.5);
  gap: calc(var(--spacer) * 1.5);
  height: 100dvh;
  position: sticky;
  top: 0;
  justify-content: space-evenly;
}

.hero__content > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) / 2);
}

.hero__tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.hero__tags > * {
  font-family: var(--headingfont);
}

.hero__tags a {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  gap: calc(var(--spacer) / 2);
  gap: calc(var(--spacer) / 8);
  align-items: center;
  text-decoration: none;
}

.hero__tags a svg {
  width: 1rem;
}
/*
.hero__info {
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin: 0;
}*/

.hero__info {
  margin: 0;
  font-family: var(--headingfont);
  font-size: var(--body-xs);
  text-transform: uppercase;
  font-weight: 900;
}

.hero__img {
  position: relative;
  z-index: 3;
  height: 100%;
  background-image: var(--hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 100vh;
  position: sticky;
  top: 0;
}
.hero__icon {
  z-index: 2;
  position: absolute;
  width: 60%;
  right: -10%;
  transform: rotate(-6deg);
}

a.hero__cta {
  text-decoration: none;
  width: 100%;
  display: flex;
  background: var(--secondary);
  padding: var(--spacer);
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--primary);
  top: calc(100% - 5.5rem);
}

.hero__cta span {
  margin-left: 0.65rem;
  display: inline-block;
  animation: rotateY360 4s linear infinite;
  transform-style: preserve-3d;
}

@keyframes rotateY360 {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.hero h1 {
  line-height: 0.9;
  font-size: var(--body-xl);
  text-align: left;
  /*margin-bottom: calc(var(--spacer) / 1.5);*/
  font-weight: 900;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero h1 span {
  background-image: url('data:image/svg+xml,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 439 142"><path d="M372.383 52.472c-170.217-46.04-498.482 9.633-316.11 68.239 85.106 29.296 316.11 29.296 376.897-35.17 24.319-23.436-68.89-102.554-230.999-79.11" stroke="%23FFCE00" stroke-width="3.64" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50%;
  padding: 1rem;
  white-space: nowrap;
}

header a {
  color: var(--bg);
}

header img,
.header__logo-desktop {
  width: 8rem;
  max-width: none;
  transform: scale(1.25);
  display: none;
}

.header__socials svg {
  height: 1.2rem;
}

.header__socials a:first-child svg {
  height: 1.3rem;
}

.header__socials {
  display: flex;
  gap: 1rem;
}

.light .cls-3 {
  fill: var(--bg);
}

header img:hover {
  opacity: 0.8;
}

header.wide {
  background: none;
  border-bottom: 1px solid #253d914a;
}

header.wide ul li a {
  color: var(--primary);
}

header.wide ul li a:hover {
  color: var(--secondary);
}

.breadcrumb {
  font-family: var(--headingfont);
  display: flex;
  gap: 0.25rem;
  font-size: var(--body-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 900;
}

.breadcrumb a:last-child {
  margin-left: 0.1rem;
}

.breadcrumb svg {
  width: 0.8rem;
}

.breadcrumb span,
.breadcrumb a {
  color: var(--primary);
  font-weight: 900;
}

.breadcrumb a:first-child {
  color: var(--primary);
}

span.breadcrumb__separator {
  color: var(--primary);
  padding: 0;
  font-size: 0.5rem;
  display: contents;
}

.breadcrumb a {
  text-decoration: none;
}

svg.hero__arrow {
  display: none;
}

@media screen and (max-width: 55rem) {
  svg.hero__arrow {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 1rem;
    display: block;
  }

  .hero__content {
    position: relative;
    height: auto;
    justify-content: flex-start;
    padding: calc(var(--spacer) * 2) var(--spacer);
  }

  .hero__icon {
    right: -22%;
    bottom: 0;
  }

  .hero h1 {
    font-size: 3rem;
    padding: 0 !important;
  }

  header {
    padding: 0;
  }

  header .ctn {
    padding: 1rem var(--spacer);
    display: flex;
    justify-content: space-between;
    z-index: 3;
  }

  .hero__image {
    left: -15rem;
    top: -8rem;
    display: none;
  }

  .intro-circle {
    opacity: 0.26;
    width: 62.5vw;
    height: 62.5vw;
    margin-right: -30% !important;
  }
}

/* TOPBAR */

.topbar {
  background: var(--accent);
  color: var(--bg);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

.topbar .ctn {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

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

.topbar__block svg {
  margin-left: 0.3rem;
  transform: translateY(-1px);
}

.topbar a {
  text-decoration: none;
  color: var(--bg);
}

/* NAV */

nav {
  display: flex;
  width: 100%;
}

nav ul {
  list-style-type: none;
  display: flex;
  /*gap: 1rem;*/
}

nav a,
a.header__cta {
  text-decoration: none;
  color: var(--primary);
  font-size: var(--body-xs);
  display: flex;
  align-items: center;
  transition: all 0.45s ease-in-out;
  font-weight: 900;
  text-decoration-color: var(--secondary);
  font-family: var(--headingfont);
  text-transform: uppercase;
}

nav li {
  margin-bottom: 0 !important;
  padding: 0.75rem;
  display: flex;
}

nav ul a:hover {
  color: var(--secondary);
}

.header__cta {
  background-color: var(--bg);
  border-radius: 2rem;
  margin-left: 0.5rem;
  transition: all 0.45s ease;
  padding: 0.5rem 0.7rem 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  position: relative;
}

.header__cta p {
  margin: 0;
  position: absolute;
  top: -1.5rem;
  font-size: 1rem;
  line-height: 1;
  left: 0.7rem;
  font-weight: 500;
}

.header__cta a {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.9rem;
  border-radius: 4rem;
  padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
  background: none;
  transition: background 0.3s;
}

.header__cta a {
  background: none;
}

.header__cta a.active {
  background: var(--secondary);
}

.header__cta a:hover {
  background: var(--secondary);
}

.header__cta:has(a:hover:not(.active)) a.active {
  background: none;
}

.header__cta:not(:has(a.active)) a:last-child {
  background: var(--secondary);
}

.header__cta:not(:has(a.active)):has(a:hover:not(:last-child)) a:last-child {
  background: none;
}

ul.sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  color: var(--bg);
  margin-top: 2rem;
  position: absolute;
  display: none;
  border-radius: 0.25rem;
  box-shadow: 0 7px 20px #00000017;
}

ul.sub-menu li {
  padding: 0.25rem 1.5rem;
}

ul.sub-menu a {
  color: var(--primary);
  text-transform: none;
  font-size: var(--body-xs);
  text-transform: uppercase;
}

ul.sub-menu li:first-child {
  padding-top: 1rem;
}

ul.sub-menu li:last-child {
  padding-bottom: 1rem;
}

ul.sub-menu a:hover {
}

.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.3rem;
  transition: transform 0.15s ease;
  background-color: var(--secondary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 18 18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M.3 1.31A1.1 1.1 0 0 1 1.4.21c1.827 0 3.877.46 5.48 1.9a7.04 7.04 0 0 1 1.588 2.096 7.234 7.234 0 0 1 1.845-2.144C12.107.658 14.383.21 16.398.21a1.1 1.1 0 1 1 0 2.2c-1.74 0-3.465.393-4.731 1.385-1.142.894-2.048 2.382-2.157 4.898l-.012.517-.005.112a1.1 1.1 0 0 1-2.19 0L7.3 9.21l-.01-.527c-.097-2.56-.902-4.058-1.88-4.936-1.067-.958-2.517-1.338-4.01-1.338a1.1 1.1 0 0 1-1.1-1.1Z' fill='%23FFCE00' /%3E%3C/svg%3E%0A");
  mask-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 -4 18 18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M.3 1.31A1.1 1.1 0 0 1 1.4.21c1.827 0 3.877.46 5.48 1.9a7.04 7.04 0 0 1 1.588 2.096 7.234 7.234 0 0 1 1.845-2.144C12.107.658 14.383.21 16.398.21a1.1 1.1 0 1 1 0 2.2c-1.74 0-3.465.393-4.731 1.385-1.142.894-2.048 2.382-2.157 4.898l-.012.517-.005.112a1.1 1.1 0 0 1-2.19 0L7.3 9.21l-.01-.527c-.097-2.56-.902-4.058-1.88-4.936-1.067-.958-2.517-1.338-4.01-1.338a1.1 1.1 0 0 1-1.1-1.1Z' fill='%23FFCE00' /%3E%3C/svg%3E%0A");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.logo__none {
  fill: none;
}

.logo__name {
  fill: var(--primary);
}

.logo__and {
  fill: var(--primary);
  opacity: 0.5;
}

.logo__highlight {
  fill: var(--secondary);
}

.menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}

.menu__button {
  height: 2rem;
  display: none;
}

.menu__icon svg {
  width: 2.5rem;
}

.menu__icon .line {
  /* stroke: var(--bg);*/
}

.menu__icon .cross {
  display: none;
}

.open .menu__icon .line {
  display: none;
}

.open .menu__icon .cross {
  display: block;
}

.open path.cross {
  /*stroke: var(--bg);*/
}

.nav__right {
  display: none;
}

/* a.header__cta {
    background: var(--secondary);
    text-transform: uppercase;
    padding: 1rem 2rem;
    color: var(--bg);
    position: relative;
    text-decoration: none;
    font-size: .8rem;
    text-transform: uppercase;
    border-radius: 3.2rem;
    padding: .8rem 1.6rem;
}

a.header__cta:hover {
    background: #cc610a;
    transition: all .25s ease;
} */

.current-menu-item a,
.current_page_item a,
.current-menu-ancestor > a {
  color: var(--secondary);
}

@media screen and (max-width: 55rem) {
  .header__cta {
    display: none;
  }

  header {
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--ratio) * 1.3rem) 1rem;
  }

  .header__cta {
    display: none;
  }

  .header__nav__left,
  .header__nav__right {
    display: none;
  }

  .menu__button {
    height: 1.5rem;
    display: block;
    cursor: pointer;
    position: relative;
  }

  .header__menu {
    justify-content: flex-end;
  }

  .header__menu-left,
  .header__menu-right li:not(.header__socials) {
    display: none;
  }

  .header__menu-right {
    justify-content: flex-start;
    margin-left: 0;
  }

  .header__logo-desktop {
    width: 8rem;
  }

  .header__socials {
    padding-right: 0;
  }

  .menu__button {
    height: 1.5rem;
    display: block;
    cursor: pointer;
    z-index: 9;
  }

  .nav__right {
    height: 100dvh;
    position: fixed;
    z-index: 1;
    background: var(--primary);
    top: 0;
    width: 100%;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: calc(var(--spacer) * 0.5);
    left: 0;
  }

  .nav__right.open .header__cta {
    display: flex;
    justify-content: center;
  }

  .nav__right .header__cta a {
    color: var(--primary) !important;
  }

  .nav__right .header__cta p {
    margin: 0 auto;
    position: absolute;
    top: -2rem;
    left: unset;
    font-weight: 500;
  }

  .nav__right.open {
    display: flex;
    z-index: 2;
  }

  .nav__right ul {
    list-style-type: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .nav__right li {
    margin-bottom: 0;
  }

  .nav__right a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--body-m);
    color: white;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--headingfont);
  }

  ul.sub-menu a {
    font-size: var(--body-s);
  }

  header.wide .nav__right a {
    color: var(--bg);
  }

  a.header__cta {
    display: none;
  }

  .topbar {
    display: none;
  }

  ul.sub-menu {
    width: 100vw;
    position: relative;
    display: none;
    background: none;
    margin-top: 1rem;
    box-shadow: none;
    gap: 0;
  }

  ul.sub-menu a {
    padding: 0;
    opacity: 0.85;
  }

  ul.sub-menu a {
    color: var(--bg);
  }

  ul.sub-menu li:last-child {
    padding-bottom: 0;
  }

  ul.sub-menu li:first-child {
    padding-top: 0;
  }

  .menu-item-has-children > a::after {
    background: var(--secondary);
  }
}

/* SINGLE */

section:has(.content) {
  padding: calc(var(--spacer) * 2) 0;
}

/* HOMEPAGE */

.embla {
  margin: auto;
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 100%;
}

.embla img {
  width: 100%;
  /*aspect-ratio: 2.5;*/
  object-fit: cover;
  object-position: center center;
  height: 65dvh;
}

.embla__viewport {
  overflow: hidden;
}
.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}
.embla__slide {
  transform: translate3d(0, 0, 0);
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
}

.embla__slide a,
.realisation__item {
  text-decoration: none;
}

.embla__infos,
.realisation__item p {
  text-transform: uppercase;
  font-family: var(--headingfont);
  font-weight: 900;
}

.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  border-radius: 1.8rem;
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
}
.embla__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.8rem;
  position: absolute;
  top: 0;
}
.embla__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-items: center;
}
.embla__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
}
.embla__dot {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.embla__dot:after {
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  content: "";
}
.embla__dot--selected:after {
  box-shadow: inset 0 0 0 0.2rem var(--text-body);
}

.col2 {
  min-height: 80dvh;
  border-bottom: 1px solid var(--primary);
}

.col2 p,
.col2 h2 {
  margin: 0;
}

.col2__content {
  padding: calc(var(--spacer) * 3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-content: flex-start;
  gap: calc(var(--spacer) / 2);
  border-left: 1px solid var(--primary);
}

.col2__content h2 {
  margin-bottom: 1.5rem;
}

.col2__content .btn {
  margin-top: 1.5rem;
}

.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.col2 > div:last-child {
  border-left: 1px solid var(--primary);
}

.col2__img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col2__img img {
  object-fit: cover;

  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  aspect-ratio: 1.2;
  max-height: 80%;
}

#services.col2 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media screen and (max-width: 55rem) {
  #intro.col2,
  #team.col2 {
    grid-template-columns: 1fr;
  }
  #services.col2 {
    grid-template-columns: 1fr;
  }

  .col2 {
    height: auto !important;
  }

  .col2__content {
    padding: calc(var(--spacer)*2) var(--spacer);
  }

  .col2__img {
    padding: calc(var(--spacer)*2) var(--spacer);
  }

    .col2 > div:last-child {
        /* border-top: 1px solid var(--primary); */
        border-left: none;
        padding-top: 0;
    }
}


.services__img {
  width: 100%;
  height: 15rem;
  background-size: cover;
  background-position: center;
}

.services__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--spacer);
  border-left: 1px solid var(--primary);
  padding: var(--spacer);
  transition: all 0.25s ease-in-out;
  text-decoration: none;
}

.services__item:hover {
  background: var(--primary);
  color: var(--bg);
}

.services__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#projects {
  border-bottom: 1px solid var(--primary);
  display: grid;
  align-items: start;
  padding-left: var(--spacer);
  grid-template-columns: 1fr 2fr;
  gap: var(--spacer);
  padding-bottom: 4rem;
}

.projects__intro {
  padding-right: calc(var(--spacer) * 2);
  gap: var(--spacer);
  display: flex;
  flex-direction: column;
  max-width: 100vw;
}

.projects__intro p,
.projects__intro h2 {
  margin: 0;
}

#projects .embla {
  margin: auto;
  --slide-height: auto;
  --slide-spacing: var(--spacer);
  --slide-size: calc(100% / 2.75);
  position: relative;
}

#projects .embla img,
.realisation__item img {
  height: auto;
  margin-bottom: calc(var(--spacer) / 2);
}

#projects .embla h3,
.realisation__item h3 {
  /*font-size: var(--body-l);*/
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: var(--headingfont);
}

#projects .embla__button--prev svg {
  transform: scale(-1);
}

#projects .embla__buttons a {
  cursor: pointer;
}

#projects .embla__buttons svg {
  width: 1.25rem;
}

#projects .embla__controls {
  display: grid;
  grid-template-columns: unset;
  justify-content: space-between;
  /* gap: 1.2rem; */
  margin-top: 0;
  position: absolute;
  top: -2.6rem;
  right: 2rem;
}

@media screen and (max-width: 55rem) {
  #projects {
    grid-template-columns: 1fr;
    padding-top: calc(var(--spacer)*2);
  }

  #projects .embla {
    --slide-size: 72%;
  }

  .services__item {
    padding: calc(var(--spacer)*2) var(--spacer);
    border-bottom: 1px solid var(--primary);
  }

  #projects .embla__controls {
    display: none;
  }

  .services__item:last-child {
    border-bottom: 0;
  }
}

/* REALISATION */

section.realisation {
  padding: 0;
}

/* SERVICES */

.services__intro {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.services__intro div:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services__intro div:first-child img {
  object-fit: cover;

  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  aspect-ratio: 0.75;
  /* max-height: 80%; */
  max-width: 75%;
}

.services__intro-text {
  padding-right: calc(var(--spacer) * 2);
}

.services__intro-text h2 {
  text-wrap: balance;
}

.hero-pages {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) / 3);
  padding-top: calc(var(--spacer)*2);
}

.hero-pages .breadcrumb {
  justify-content: center;
}

.hero-pages h1 {
  line-height: 0.9;
  font-size: var(--body-xl);
  text-align: center;
  /*margin-bottom: calc(var(--spacer) / 1.5);*/
  font-weight: 900;
  text-wrap: balance;
  text-transform: uppercase;
}

.single-services .hero-pages {
  padding-top: 4rem;
}

.single-services .col2__img img {
  aspect-ratio: 1.1;
  max-height: 100%;

  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 502 658"><path fill="white" d="M251 0c134.8 0 244.8 101.7 250.8 229.2h.1v5.7a232.3 232.3 0 0 1 0 10.3v412.2H.1V245.2a234 234 0 0 1 0-10.3v-5.7h.1C6.3 101.7 116.3 0 251 0Z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.single-services .col2 > div:last-child {
  border: 0 !important;
}

.single-services #intro {
  padding-top: 4rem;
  padding-bottom: calc(var(--spacer) * 2);
  border-bottom: 1px solid var(--primary);
}

.single-services .hero-pages {
  padding-bottom: 0;
}

.services__content {
  border-bottom: 1px solid var(--primary);
}

@media screen and (max-width: 55rem) {
  .services__intro {
    grid-template-columns: 1fr;
    gap: calc(var(--spacer) * 1.5);
  }

  .single-services #projects .embla {
    --slide-size: calc(100% / 2.2);
  }

  .services__intro-text {
    text-align: center;
    padding-right: 0;
  }
}

/*.single-services #projects {
  max-width: 60rem;
  margin: 0 auto;
}*/

/* REALISATIONS */

.page-template-page-realisations .hero-pages {
  padding-bottom: 0;
}

.realisations__categories.ctn {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: calc(var(--spacer) / 2.5);
  flex-wrap: wrap;
}

section.realisations-taxo {
  padding-top: calc(var(--spacer) * 2);
}

.realisations__categories {
}

.realisations__categories .btn {
  font-weight: 900;
}

.realisations__categories .btn.active {
  font-weight: 900;
}

.realisations__categories .btn::after {
  content: none;
}

.realisations__grid {
  padding-top: var(--spacer);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: var(--spacer);
}

.realisation__item {
  display: flex;
  flex-direction: column;
  /* gap: calc(var(--spacer) / 3); */
}

a.btn.active {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}
