body a{
  color: var(--e-global-color-secondary);
}
.twb {
  text-wrap: balance;
}

.twp {
  text-wrap: pretty;
}

.portlet-borderless-container {
  background-color: red;
}

body {
  overflow: visible !important;
}

body .btn-solid:hover {
  transform: initial;
  box-shadow: initial;
}

.bottom-shadow {
  &::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url(../images/Shadow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: multiply;
    z-index: 0;
  }
}

@keyframes gustaav-loop {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wink {
  0% {
    d: path(
      "M302.901 263H302.816C294.584 262.956 287.954 257.056 288 249.82L288.198 220.03C288.245 212.818 294.91 207 303.099 207H303.184C311.416 207.044 318.046 212.944 318 220.18L317.802 249.97C317.755 257.182 311.09 263 302.901 263Z"
    );
  }

  50% {
    d: path(
      "M302.901 263H302.816C294.584 262.967 287.954 258.567 288 253.171L288.198 250.717C288.245 245.338 294.91 241 303.099 241H303.184C311.416 241.033 318.046 245.433 318 250.829L317.802 253.283C317.755 258.662 311.09 263 302.901 263Z"
    );
  }
  100% {
    d: path(
      "M302.901 263H302.816C294.584 262.956 287.954 257.056 288 249.82L288.198 220.03C288.245 212.818 294.91 207 303.099 207H303.184C311.416 207.044 318.046 212.944 318 220.18L317.802 249.97C317.755 257.182 311.09 263 302.901 263Z"
    );
  }
}

.gustaav-absol-faq {
  top: -10%;
  position: absolute !important;

  @media (width <= 768px) {
    top: 0;
    position: relative !important;
    order: -1 !important;
  }
}

#Gustaav {
  #Corps {
    animation: gustaav-loop 5s ease-in-out infinite;

    &:hover path#Vector_5 {
      animation: wink 0.4s ease-in-out reverse forwards;
    }
  }
}

.text-quote {
  width: fit-content;
  align-self: flex-start !important;
  &.align-self-center {
    align-self: center !important;
  }
  &.--quote-white {
    --quote-color: white;
  }
  &.--quote-green {
    --quote-color: var(--e-global-color-primary);
  }
  &.--quote-big {
    --quote-size: 1.5;
  }

  &:before {
    content: "";
    position: absolute;
    display: block;
    top: -50px;
    right: -80px;
    width: calc(60px * var(--quote-size, 1));
    height: calc(4rem * var(--quote-size, 1));
    background-image: url(../images/QuoteIcon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mask-image: url(../images/QuoteIcon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background: var(--quote-color);

    @media (width <= 768px) {
      top: -30px;
      right: -50px;
      width: calc(40px * var(--quote-size, 1));
      height: calc(3rem * var(--quote-size, 1));
    }
  }
}

/* Menu */

.header.is-stuck {
  box-shadow: none;
}

.navbar-brand-inner {
  .logo-sticky,
  .logo-default {
    width: 200px;
  }

  .logo-sticky {
    display: none;
  }
}
.main-header.is-stuck > .elementor > :is(.elementor-section, .e-con){
  background-color: transparent !important;
}

.menu-icon .elementor-icon-wrapper {
  width: 24px;
  height: 24px;
}

.menu-icon .ld-module-trigger-txt {
  display: none;
}

.header.is-stuck .gustaav-menu .e-con-inner {
  &:before {
    content: "";
    width: calc(var(--content-width) - 40px);
    left: 50%;
    bottom: 0;
    height: calc(100% - 20px);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    position: absolute;
    transform: translateX(-50%);
    border-radius: 20px;
    z-index: 2;
    @media (width <= 768px) {
      width: fit-content;
    }
  }
}

@media (width <= 768px) {
  .header .gustaav-menu .e-con-inner {
    width: fit-content;
    &:before{
      width: fit-content;
    }
  }
}

.gustaav-menu .e-con-inner {
  & > div {
    pointer-events: auto;
  }
  @media (width >=768px) {
    & > div:first-child {
      margin-left: 20px;
    }

    & > div:last-child {
      margin-left: -40px;
    }
  }

  .elementor-widget-image img {
    height: 60px;
    object-position: left;
    object-fit: contain;
  }
}

.gustaav-map {
  width: 100%;
  height: 100%;

  svg {
    width: 110%;

    #AunisMap {
      path {
        transition: fill 0.3s ease;
        &:focus {
          outline: none;
        }
        &:hover {
          cursor: pointer;
          fill: var(--e-global-color-secondary);
        }
      }
    }
  }
}

.tippy-box[data-theme~="gustaav"] {
  background-color: var(--e-global-color-secondary);
  color: white;
  border-radius: 4;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.tippy-box[data-theme~="gustaav"][data-placement^="top"]
  > .tippy-arrow::before {
  border-top-color: var(--e-global-color-secondary);
}
.tippy-box[data-theme~="gustaav"][data-placement^="bottom"]
  > .tippy-arrow::before {
  border-bottom-color: var(--e-global-color-secondary);
}
.tippy-box[data-theme~="gustaav"][data-placement^="left"]
  > .tippy-arrow::before {
  border-left-color: var(--e-global-color-secondary);
}
.tippy-box[data-theme~="gustaav"][data-placement^="right"]
  > .tippy-arrow::before {
  border-right-color: var(--e-global-color-secondary);
}

.pe-n {
  pointer-events: none;

  & > div {
    pointer-events: auto;
  }
}

.eventon_events_list .eventon_list_event .evcal_list_a {
  flex-direction: column;
}

.agenda .ajde_evcal_calendar.color #evcal_list .eventon_list_event a:hover {
  border-left-width: 0px;
}

body:not(.single-ajde_events) > #evcal_list.eventon_events_list {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

body .is-svg {
  svg {
    width: 100%;
    height: fit-content;
    @media (width <= 578px) {
      max-width: 200px;
    }
  }

  @media (width <= 578px) {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.tel-home {
  a {
    border: 1px solid white;
    border-radius: 99px;
    padding: 0px 34px;
  }
}

body .lqd-module-search-slide-top .ld-module-dropdown {
  height: 200px !important;
  background-color: #f3f3f3;
}

/* Event single card home */

/* PAGE EVENEMENTS */
.page-id-7858 .container {
  max-width: 1600px;
  width: 100%;
  padding: 200px 0;

  h1 {
    font-family: "magno-sans-variable", Sans-serif;
    font-size: 96px;
    font-weight: 700;
    text-transform: none;
    line-height: 1em;
    letter-spacing: -1.2px;
    color: var(--e-global-color-secondary);
    text-align: center;
  }
}

.gustaav-event-card-container {
  display: flex;
  flex-direction: row;
  gap: 40px;

  &.all-events {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;

    @media (width <= 1200px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media (width <= 880px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width <= 578px) {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  @media (width <= 880px) {
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 0 20px;
  }
}
.gustaav-event-card {
  --card-text-color: white;
  --card-background-color: var(--e-global-color-secondary);
  --card-badge-background-color: var(--e-global-color-primary);
  --card-badge-text-color: var(--e-global-color-secondary);

  &:nth-child(odd) {
    /* Card du milieu */
    --card-text-color: var(--e-global-color-secondary);
    --card-background-color: white;
    --card-badge-background-color: var(--e-global-color-secondary);
    --card-badge-text-color: var(--e-global-color-primary);
  }

  font-family: "Barlow Condensed", sans-serif;
  font-display: swap;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 50px;
  padding: 24px 32px;
  width: 100%;
  flex: 1 1 auto;
  background-color: var(--card-background-color);
  color: var(--card-text-color);

  @media (width <= 880px) {
    scroll-snap-align: center;
    flex: 0 0 50%;
    border-radius: 20px;
    padding: 20px;
  }
  @media (width <= 578px) {
    flex: 0 0 90%;
  }

  .event-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
  }

  .event-badge {
    background-color: var(--card-badge-background-color);
    color: var(--card-badge-text-color);
    padding: 8px 16px;
    border-radius: 10px;
    align-self: center;
    font-size: 20px;
    line-height: 1;
    text-box: trim-both cap alphabetic;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    width: fit-content;
  }

  .event-icon-round {
    width: fit-content;
    padding: 32px;
    border-radius: 999px;
    align-self: center;
    background-color: var(--e-global-color-primary);

    img{
      aspect-ratio: 1/1;
      max-width: 100px;
      min-width: 100px;
    }
  }

  .event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    .event-day {
      font-size: 64px;
      font-weight: 900;
      line-height: 1;
    }
    .event-month {
      font-size: 32px;
      font-weight: 900;
      text-transform: uppercase;
      line-height: 1;
    }
  }

  .event-title {
    color: currentColor;
    font-family: var(--e-global-typography-ec512b8-font-family);
    font-display: swap;
    font-size: var(--e-global-typography-ec512b8-font-size);
    font-weight: var(--e-global-typography-ec512b8-font-weight);
    text-transform: uppercase;
    text-wrap: pretty;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 20px;
  }

  .event-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    p {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 0;
      line-height: 1;
      font-weight: 600;
      text-wrap: pretty;
      font-size: 24px;

      @media (width <= 578px) {
        font-size: 20px;
      }

      svg {
        width: 20px;
        height: 20px;
        position: relative;
        top: 2px;
      }
    }
  }
}

.white-exp .accordion-expander {
  --expander-image: url(../images/AccordionDownWhite.svg);
}
.elementor-widget-ld_accordion:not(.white-exp) .accordion-expander {
  --expander-image: url(../images/AccordionDown.svg);
}

.accordion-item .accordion-title a{
  gap: 10px;
}

:not(.active) .accordion-expander {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  position: relative;
  aspect-ratio: 1/1;

  @media (width <= 768px) {
    width: 30px;
    height: 30px;
    aspect-ratio: 1/1;
  }

  &::before {
    content: "";
    position: relative;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--expander-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }
}

.active .accordion-expander {
  &::before {
    transform: rotate(180deg);
  }
}

.accordion-title-txt {
  text-wrap: pretty;
  line-height: 1.2;
}

.list-arrow {
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      position: relative;
      gap: 10px;
      padding-bottom: 16px;
      padding-left: 16px;
      @media (width <= 578px) {
        padding-bottom: 24px;
        padding-left: 20px;
      }
      &::before {
        content: "";
        display: block;
        left: -10px;
        top: 5px;
        width: 18px;
        height: 18px;
        background-image: url(../images/ListArrow.svg);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        aspect-ratio: 1/1;
      }
    }
  }
}

@keyframes form-step-animation {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.elementor-shortcode {
  .formulaire {
    background: white;
    border-radius: 50px;
    padding: 36px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    margin-top: 100px;

    @media (width <= 578px) {
      margin-top: 40px;
      padding: 14px;
      border-radius: 20px;
    }

    .gustaav-form {
      position: relative;
      width: 100%;
    }

    .form-step {
      inset: 0;
      position: absolute;
      display: flex;
      flex-direction: column;
      gap: 20px;
      opacity: 0;
      visibility: hidden;
      width: 100%;
      &.is-active {
        position: relative;
        animation: form-step-animation 0.4s ease-in forwards 0.2s;
      }

      .buttons {
        margin-left: auto;
        button {
          color: var(--e-global-color-secondary);
          border-color: var(--e-global-color-secondary);
          transition: background 0.3s ease, border-color 0.3s ease;
          &:hover {
            background: var(--e-global-color-primary);
            border-color: var(--e-global-color-primary);
          }
        }
      }
    }

    .answer {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      @media (width <= 578px) {
        grid-template-columns: repeat(1, 1fr);
      }
      gap: 20px;
      width: 100%;
      box-sizing: border-box;

      .input-block {
        position: relative;

        * {
          margin: 0;
        }
      }

      input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        &:hover {
          cursor: pointer;
          & + label {
            background: var(--e-global-color-primary);
          }
        }
        &:checked {
          & + label {
            background: var(--e-global-color-primary);
          }
        }
      }

      label,
      a {
        position: relative;
        z-index: 1;
        border-radius: 10px;
        padding: 16px 20px;
        background: #f3f3f3;
        color: var(--e-global-color-secondary);
        font-weight: 600;
        font-size: 20px;
        line-height: 1.2;
        text-wrap: pretty;
        height: 100px;
        display: flex;
        align-items: center;
        transition: background 0.3s ease;

        &:hover {
          cursor: pointer;
        }
      }

      a:hover {
        background: var(--e-global-color-primary);
      }
    }
  }
}

.elementor-widget-text-editor {
  ul li a {
    text-decoration: underline;
  }
}

@media (width <= 1024px) {
  .absol-info-hero {
    position: relative !important;
    inset: 0;
    width: 100% !important;
    transform: translateY(40px);
  }
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--e-global-color-secondary);
  font-weight: 600;
  position: absolute;
  width: 100%;
  left: 0;
  margin: 20px 0 0 0;
}

footer#footer {
  .nav-item-children {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    &::before {
      display: none;
    }
  }
  .lqd-submenu-toggle-hover .position-applied:hover > .nav-item-children {
    height: calc-size(auto, size);
  }

  @media (width <= 768px) {
    .submenu-expander {
      top: 10px !important;
    }
  }

  .lqd-custom-menu .nav-item-children > li {
    @media (width <= 768px) {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    & > a {
      padding: 0;
      padding-bottom: 8px;
      font-size: 20px;
      color: var(--e-global-color-secondary);
      text-wrap: pretty;
      line-height: 1.2;
      @media (width <= 768px) {
        font-size: 16px;
        text-align: center;
        max-width: 80%;
      }
    }
  }
}

/* SEARCH */
/* Search result */

.search-container {
  display: flex;
  gap: 80px;
  align-items: baseline;
  padding: 40px 0;

  @media (width <= 992px) {
    flex-direction: column;
    gap: 40px;
  }

  .search-content {
    flex: 1;
  }
}

.search-results main#lqd-site-content {
  background-color: #f7f7f7 !important;
  padding-top: 150px;

  .container {
    width: 100%;
    max-width: 1600px;
  }

  .search-title {
    font-family: "magno-sans-variable", Sans-serif;
    font-size: 96px;
    font-weight: 700;
    text-transform: none;
    line-height: 1em;
    letter-spacing: -1.2px;
    margin: 0;
    padding: 40px 0;
    @media (width <= 992px) {
      font-size: 58px;
    }
  }
}


.search-results #wrap {
  .results-section {
    padding-bottom: 60px;
    &:not(:first-of-type) {
      margin-top: 70px;
    }
    .section-title {
      font-family: var(--e-global-typography-0757e56-font-family), Sans-serif;
      font-size: 58px;
      font-weight: var(--e-global-typography-0757e56-font-weight);
      text-transform: var(--e-global-typography-0757e56-text-transform);
      line-height: var(--e-global-typography-0757e56-line-height);
      letter-spacing: var(--e-global-typography-0757e56-letter-spacing);
      padding-bottom: 20px;
      color: var(--e-global-color-secondary);
      border-bottom: 2px solid var(--e-global-color-secondary);
    }
    .results-list {
      --grid-columns: 3;
      @media (width <= 1200px) {
        --grid-columns: 2;
      }
      @media (width <= 768px) {
        --grid-columns: 1;
      }
      display: grid;
      grid-template-columns: repeat(var(--grid-columns), 1fr);
      gap: 20px;

      .result-item {
        position: relative;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        background-color: white;
        padding: 20px;
        border-radius: 20px;

        h3 {
          margin-top: 0;
          margin-bottom: 6px;
          font-style: initial;
          font-size: 42px;
          font-weight: 600;
          font-family: var(--e-global-typography-primary-font-family);
          color: black;
          text-transform: initial;
        }

        .result-excerpt {
          margin-bottom: 20px;
          font-size: 20px;
          line-height: 1.1;
        }

        .result-date {
          font-size: 16px;
          font-weight: 600;
          margin-bottom: 6px;
        }

        span {
          color: black;
          font-size: 20px;
          font-weight: 400;
          margin-top: auto;
          text-decoration: underline;
        }

        .result-link {
          position: absolute;
          inset: 0;
          z-index: 1;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

.search-sidebar {
  position: sticky;
  top: 120px;
  padding: 32px;
  background: var(--color-font);
  border-radius: 20px;
  color: white;
  width: 330px;
  @media (width <= 992px) {
    width: 100%;
  }

  form.search-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    input,
    label {
      width: 100%;
      margin: 0;
    }

    button.search-submit {
      padding: 10px;
      margin: 0;

      .ld-module-trigger-icon {
        font-size: 18px;
      }
    }
  }

  button.search-submit,
  button.filter-submit {
    margin-bottom: 12px;
    color: white;
    border-color: white;
  }

  button.filter-submit {
    margin-top: 12px;
    font-size: 18px;
    padding: 10px 24px;
    line-height: 1.2;
  }
}

.sidebar-title {
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: 38px;
  font-weight: var(--e-global-typography-primary-font-weight);
  line-height: 1.2;
  letter-spacing: var(--e-global-typography-primary-letter-spacing);
  word-spacing: var(--e-global-typography-primary-word-spacing);
  color: white;
  padding-bottom: 14px;
}

.filters-wrapper {
  margin-top: 32px;

  .filter-item {
    input {
      &:checked {
        accent-color: var(--e-global-color-primary);
      }
    }
  }
}

.search-field {
  border-color: white;
  border-style: solid;
  border-width: 1px;
  padding: 4px 12px;
  background-color: transparent;
  border-radius: 99px;
  font-size: 18px;

  &::placeholder {
    color: white;
  }
}

/* Search suggestions */

.search-suggestions {
  position: absolute;
  z-index: 1000;
  background-color: white;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 400px;

  .no-suggestions {
    padding: 14px 20px;
    font-size: var(--e-global-typography-text-font-size);
  }

  .suggestions-wrapper {
    display: flex;
    flex-direction: column;

    .suggestions-section {
      display: flex;
      flex-direction: column;

      a {
        color: black;
        font-size: 18px;
        padding: 14px 20px 6px 20px;

        &:nth-child(even) {
          background-color: #f2f2f2;
        }

        &:hover {
          background-color: #d7d7d7;
        }
        &:hover:not(:nth-child(even)) {
          background-color: #f2f2f2;
        }

        .suggestion-type {
          font-weight: 600;
          text-transform: uppercase;
          display: flex;
          color: white;
          gap: 6px;
          padding: 4px 12px;
          border-radius: 99px;
          background-color: var(--e-global-color-primary);
          width: fit-content;
          align-items: center;
          font-size: 14px;
          margin-bottom: 6px;

          p {
            margin: 0;
            line-height: 1;
          }
          i::before {
            font-size: 14px;
          }
        }
        .suggestion-title {
          font-weight: 500;
          font-size: 20px;
        }
      }
    }
  }
}


/* COMPLIANZ */

#cmplz-document {
  max-width: 100%;
}

#cmplz-document p, #cmplz-document li, #cmplz-document td, .editor-styles-wrapper .cmplz-unlinked-mode p, .editor-styles-wrapper .cmplz-unlinked-mode li, .editor-styles-wrapper .cmplz-unlinked-mode td{
  font-size: 20px;
  font-weight: 500;
}

#cmplz-document .cmplz-subtitle, .editor-styles-wrapper .cmplz-unlinked-mode .cmplz-subtitle{
  font-size: 28px;
}

#cmplz-document h2, #cmplz-document h3, .editor-styles-wrapper .cmplz-unlinked-mode h2, .editor-styles-wrapper .cmplz-unlinked-mode h3{
  font-size: 32px;
}

/* PAGE secondaire  */

@media (width >= 1024px) {
  [data-elementor-type="wp-page"] > .elementor-element:first-of-type {
    min-height: 55vh;

    & .e-con-inner{
      justify-content: center;
    }
  }
}

