/* ========== VARIABLES CSS ========== */
:root {
  /* Couleurs principales Groupe Bacalan */
  --color-gray: #6B7280;
  --color-gray-transparent: rgba(107, 114, 128, 0.50);
  --color-gold: #C0C4B4;
  --color-gold-light: #D8DBCF;
  --color-gold-dark: #A8AC9F;
  --color-gold-text: #575756;
  --color-white: #FFFFFF;
  --color-navy: #0F172A;
  --color-navy-dark: #020617;
  --color-navy-light: #1E293B;
  --color-purple: #140E43;
  --color-red: #DC2626;
  --color-beige: #F9FAFB;
  --color-light-gray: #F3F4F6;
  --color-light-gray-2: #9CA3AF;
  --color-light-gray-3: #F5F5F5;
  --color-disabled: #D1D5DB;
  --color-text-dark: #111827;

  /* Couleurs supplémentaires */
  --color-background: #FFFFFF;
  --color-text: #374151;
  --color-text-light: #6B7280;
  
  /* Tailles de police Groupe Bacalan */
  --font-size-xl: 56px;
  --font-size-lg: 40px;
  --font-size-lb: 32px;
  --font-size-l: 24px;
  --font-size-m: 20px;
  --font-size-md: 18px;
  --font-size-sm: 16px;
  --font-size-xs: 15px;
  --font-size-xxs: 14px;
  --font-size-xxxs: 13px;
  --spacing-section: 5vw;

  /* Poids de police Groupe Bacalan */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Espacements */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1800px) {
  :root {
    --spacing-section: 8vw;
  }
}
@media (max-width: 1024px) {
  :root {
    --font-size-xl: 42px;
    --font-size-lg: 34px;
    --spacing-section: 3vw;
  }
}
@media (max-width: 768px) {
  :root {
    --font-size-xl: 32px;
    --font-size-lb: 24px;
    --font-size-lg: 20px;
    --font-size-l: 20px;
    --font-size-md: 16px;
    --font-size-m: 15px;
    --font-size-sm: 14px;
    --font-size-xs: 12px;
    --spacing-section: 2vw;
  }
}
/* ========== TRANSITIONS DE PAGE ========== */
@view-transition {
    navigation: auto;
}
::view-transition-old(root) {
    animation: 1s ease both fade-blur-out;
}
::view-transition-new(root) {
    animation: 1s ease both fade-blur-in;
}
@keyframes fade-blur-out {
    from {
        opacity: 1;
        filter: blur(0px);
    }
    to {
        opacity: 0;
        filter: blur(10px);
    }
}
@keyframes fade-blur-in {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0px);
    }
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ========== STYLES GÉNÉRAUX ========== */
body {
  font-family: "League Spartan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul{
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
a{
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
button{
  font-family: "League Spartan", sans-serif;
}
h1{
  color: #000000;
}

/* ========== HEADER ========== */
header {
  .logo{
      width: 250;
      height: 33px;
    }

  /* CONNECTION PAGE HEADER */
  &.connection-header {
    display: none;
  }
  /* MAIN HEADER */
  &.cir-header{
    display: flex;
    padding: 1rem var(--spacing-section);
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 5;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    & nav{
      display: flex;
      width: 100%;
      justify-content: space-between;
      & .cir-logo{
        & h1{
          display: none;
        }
      }
      & .cir-menu{
        display: flex;
        align-items: center;
        gap: 2rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        @media (max-width: 1024px) {
          position: relative;
          top: unset;
          left: unset;
          transform: unset;
        }
        @media (max-width: 576px) {
          display: none;
        }
        & li{
          & a{
            text-decoration: none;
            color: var(--color-gray);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
            transition: color 0.3s ease-in-out;
            &.active, &:hover {
              color: var(--color-gold-text);
            }
          }
        }
      }
    }
    & .cir-menu-btn{
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: transparent;
      gap: 0.5rem;
      padding: 4px 8px;
      height: 34px;
      border-radius: 10px;
      border: 0.5px solid var(--color-gold);
      transition: all 0.3s ease-in-out;
      & img:nth-child(1) {
        width: 14px;
        height: 10px;
        transition: all 0.3s ease-in-out;
      }
      & img:nth-child(2) {
        width: 18px;
        height: 18px;
        transition: all 0.3s ease-in-out;
      }
      &:hover, &.active {
        background-color: var(--color-gold);
        cursor: pointer;
        & img:nth-child(1) {
          filter: brightness(0) invert(1);
        }
        & img:nth-child(2) {
          filter: brightness(0) invert(1);
        }
      }
    }
  }
  & nav.cir-submenu-nav{
    position: absolute;
    bottom: 0;
    right: var(--spacing-section);
    transform: translateY(calc(100% - 1rem));
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows ease .3s;
    border-radius: 9px;
    background: transparent;
    width: fit-content;
    padding: 0;
    & ul{
      overflow: hidden;
      & li{
        & a {
          text-decoration: none;
          font-size: var(--font-size-sm);
          font-weight: var(--font-weight-normal);
          opacity: 0;
          transition: opacity 0.3s ease-in-out , color 0.3s ease-in-out;
          color: var(--color-white);
          display: flex;
          align-items: center;
          gap: 0.5rem;
          & span{
            display: flex;
            background: url(../assets/svg/log_out.svg);
            background-repeat: no-repeat;
            background-size: contain;
            width: 16px;
            height: 16px;
          }
        }
      }
    }
    &.active {
      grid-template-rows: 1fr;
      background-color: var(--color-white);
      z-index: 3;
      & ul{
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        border-radius: 9px;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
        padding: 0.5rem;
        & li {
          padding: 0.5rem 1rem;
          border-bottom: 1px solid rgba(0, 0, 0, 0.1);
          &:last-child {
            border-bottom: none;
          }
          & a {
            opacity: 1;
            display: flex;
            color: var(--color-gray);
            &:hover {
              color: var(--color-gold-text);
            }
          }
        }
      }
    }
  }
}

/* ========== MAIN ========== */
main {
  /* PAGE MAIN CONNECTION / FIRST CONNECTION*/
  &.connection-container{
    display: flex;
    & .connection-wrapper{
      display: flex;
      flex-direction: column;
      width: 50%;
      &:nth-child(1) {
        align-items: center;
        justify-content: center;
        position: relative;
        & .connection-logo{
          margin-bottom: 4rem;
          img {
            width: 300px;
            height: 72px;
          }
        }
        @media (max-width: 570px) {
          & .connection-logo{
            margin-bottom: 1rem;
          }
        }
        & .connection-modal{
          display: flex;
          flex-direction: column;
          max-width: 550px;
          border-radius: 20px;
          background: #FFF;
          box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
          padding: 2rem;
          & h2{
            display: flex;
            flex-direction: column;
            margin-bottom: 2rem;
            & span:nth-child(1) {
              font-size: var(--font-size-xl);
              font-weight: var(--font-weight-semibold);
              color: var(--color-gray);
              line-height: 100%;
              &.first-connection{
                font-size: var(--font-size-lg);
                font-weight: var(--font-weight-light);
              }
              @media (max-width: 570px) {
                &.first-connection{
                  font-size: var(--font-size-xl);
                }
              }
            }
            & span:nth-child(2) {
              font-size: var(--font-size-lg);
              font-weight: var(--font-weight-light);
              color: var(--color-gray);
              line-height: 100%;
              &.first-connection{
                font-weight: var(--font-weight-light);
              }
              @media (max-width: 570px) {
                &.first-connection{
                  font-size: var(--font-size-xl);
                }
              }
            }
          }
          @media (max-width: 720px) {
            & h2{
              &:has(span.first-connection) {
                margin-bottom: 1rem;
              }
            }
          }
          & .connection-message {
            font-size: var(--font-size-sm);
            color: var(--color-gray);
            font-weight: var(--font-weight-normal);
            margin-bottom: 2rem;
          }
          & .connection-form{
            display: flex;
            flex-direction: column;
            & input {
              width: 75%;
              border-radius: 9px;
              border: 0.5px solid var(--color-gold);
              background: #FAFAFA;
              padding: 10px;
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
              &:nth-child(1) {
                margin-bottom: 0.5rem;
                &.first-connection{
                  margin-bottom: 2rem;
                }
              }
              &::placeholder {
                color: var(--color-gray-transparent);
              }
              &:nth-child(2) {
                margin-bottom: 2rem;
              }
            }
            @media (max-width: 1024px) {
              & input {
                width: 100%;
              }
            }
            & .login-error-message{
              color: var(--color-red);
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
              transform: translateY(-1rem);
            }
            & .connection-actions{
              display: flex;
              gap: 1rem;
              & a {
                display: flex;
                align-items: center;
                color: var(--color-gray-transparent);
                text-align: center;
                font-size: var(--font-size-sm);
                font-weight: var(--font-weight-normal);
                line-height: 112%;
                text-decoration-line: underline;
                text-decoration-style: solid;
                text-underline-position: from-font;
                width: fit-content;
                &:hover {
                  color: var(--color-gray);
                }
                &.back-to-login{
                  &::before{
                    content: url(../assets/svg/Vector.svg);
                    margin-right: 0.5rem;
                    transform: translate(0, 15%);
                    transition: transform 0.3s ease;
                  }
                  &:hover {
                    &::before {
                      transform: translate(-0.2rem, 15%);
                    }
                  }
                }
              }
              &.first-connection {
                flex-direction: column;
              }
            }
            @media (max-width: 720px) {
              & .connection-actions{
                flex-direction: column;
                /* align-items: center; */
                & button{
                  width: 100%;
                }
                & a{
                  & br{
                    display: none;
                  }
                }
              }
            }
          }
        }
        @media (max-width: 720px) {
          & .connection-modal{
            width: 100%;
          }
        }
        & .connection-partner{
          margin-top: 2rem;
        }
        @media (max-width: 720px) {
          & .connection-partner{
            width: calc(100% - 4rem);
          }
        }
        & .connection-footer{
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          position: absolute;
          bottom: 1rem;
          left: 50%;
          transform: translateX(-50%);
          & p { 
            color:var(--color-gold-text);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
          }
          & .connection-contact{
            display: flex;
            gap: 1rem;
            & a{
              color: var(--color-gray-transparent);
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
              line-height: 112%;
              &:hover {
                color: var(--color-gray);
              }
            }
          }
        }
        @media (max-width: 1024px) {
          & .connection-footer {
            position: relative;
            bottom: unset;
            left: unset;
            transform: unset;
            padding-top: 2rem;
          }
        }
      }
      @media (max-width: 1024px) {
        &:nth-child(1) {
          width: 100%;
          position: absolute;
          top: 40%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
      @media (max-width: 570px) {
        &:nth-child(1) {
          top: 50%;
          padding: 0 var(--spacing-section);
        }
      }
      &:nth-child(2) {
        height: 100vh;
        overflow: hidden;
        flex-direction: row;
        & .connection-gallery{
          display: flex;
          flex-direction: column;
          width: 50%;
          position: relative;
          overflow: hidden;
          & .gallery-track {
            display: flex;
            flex-direction: column;
            animation: scrollVertical var(--scroll-speed, 20s) linear infinite;
          }
          & div{
            padding: 0.5rem 0.30rem 0.5rem 0;
            flex-shrink: 0;
            & img {
              width: 100%;
              aspect-ratio: 2 / 3;
              object-fit: cover;
            }
          }
          &:nth-child(2){
            & div{
              padding: 0.5rem 0 0.5rem 0.30rem;
            }
          }
          @media (max-width: 570px) {
            &:nth-child(1) {
              width: 100%;
              & div {
                padding: 0.5rem 0rem;
              }
            }
            &:nth-child(2) {
              display: none;
            }
          }
        }
      }
      @media (max-width: 1024px) {
        &:nth-child(2) {
          width: 100%;
          position: absolute;
          top: 0;
          left: 0;
          z-index: -1;
          &::after{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
          }
        }
      }
    }
  }
  /* PAGE DISPONIBILITES & SIMULATIONS */
  &.dispo-container, & .simulations-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(80px + 1rem) var(--spacing-section) 1rem;
    & .search-toggle-mobile, & .simulations-toggle-mobile{
      display: none;
      @media (max-width: 576px) {
        display: flex;
        align-items: center;
        width: 100%;
        height: 36px;
        border-radius: 21px;
        background: #FFF;
        box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.17);
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        & p{
          font-size: var(--font-size-md);
          font-weight: var(--font-weight-normal);
          color: var(--color-gray);
          padding-left: 0.5rem;
        }
        & span{
          &:first-child{
            width: 15.5px;
            height: 7.5px;
            background-image: url(../assets/svg/filter.svg);
            background-repeat: no-repeat;
            background-size: contain;
          }
          &:last-child{
            width: 11px;
            height: 6px;
            margin-left: auto;
            background-image: url(../assets/svg/arrow-down-blk.svg);
            background-repeat: no-repeat;
            background-size: contain;
            transition: transform 0.3s ease-in-out;
          }
        }
        &.active{
          & span{
            &:last-child{
              transform: rotate(-180deg);
            }
          }
        }
      }
    }
    /* ZONE DE RECHERCHE */
    & .search-container, & .simulations-search-container {
      display: flex;
      width: 100%;
      max-width: 1200px;
      padding: 20px;
      border-radius: 20px;
      border: 1px solid var(--color-beige);
      box-shadow: 0px 3px 12px 0px rgba(0, 0, 0, 0.10);
      position: relative;
      z-index: 2;
      & .search-mobile-wrapper, & .simulations-mobile-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
      }
      @media (max-width: 576px) {
        flex-direction: unset;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows ease .3s;
        padding: 0;
        opacity: 0;
        & .search-mobile-wrapper, & .simulations-mobile-wrapper {
          overflow: hidden;
        }
        &.active{
          grid-template-rows: 1fr;
          padding: 20px;
          opacity: 1;
          & .search-mobile-wrapper, & .simulations-mobile-wrapper {
            overflow: visible;
          }
        }
      }
      & .simulations-mobile-wrapper{
        & .search-criteria{
          flex-wrap: wrap;
          gap: 2%;
          & .search-input-wrapper{
            width: 32%;
            margin-bottom: 1rem;
            & .select-wrapper{
              width: 100%;
            }
          }
          & .input-wrapper{
            width: 32%;
            margin-bottom: 1rem;
          }
        }
      }
      
      & .search-criteria{
        display: flex;
        width: 95%;
        gap: 1rem;
        @media (max-width: 1024px) {
          flex-wrap: wrap;
        }
        & .search-input-wrapper {
          display: flex;
          flex-direction: column;
          position: relative;
          @media (max-width: 576px) {
            &:first-child{
              width: 100%;
              & .select-wrapper{
                width: 100%;
              }
            }
          }
          & .select-wrapper {
            display: flex;
            padding: 10px;
            justify-content: space-between;
            align-items: center;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            gap: 1rem;
            height: 100%;
            width: fit-content;
            cursor: pointer;
            & p{
              font-size: var(--font-size-xs);
              font-weight: var(--font-weight-normal);
              color: var(--color-gray);
              width: fit-content;
            }
            & img{
              transition: transform 0.3s ease-in-out;
            }
          }
          & .select-options{
            position: absolute;
            top: 45px;
            left: 0;
            width: 100%;
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows ease .3s;
            border-radius: 9px;
            background: #FFF;
            & ul{
              overflow: hidden;
              & li{
                opacity: 0;
                &:hover{
                  cursor: pointer;
                }
              }
            }
          }
          &.active{
            z-index: 2;
            & .select-wrapper{
              & img{
                transform: rotate(-180deg);
              }
            }
            & .select-options{
              grid-template-rows: 1fr;
              padding: 1rem;
              border: 0.5px solid var(--color-gold);
              & ul{
                display: flex;
                flex-direction: column;
                width: 100%;
                gap: 1rem;
                  & li{
                    display: flex;
                    width: 100%;
                    border-bottom: 0.5px solid var(--color-gold);
                    padding-bottom: 0.5rem;
                    align-items: center;
                    gap: 0.5rem;
                    opacity: 1;
                    & span{
                      width: 10px;
                      height: 10px;
                      border-radius: 2px;
                      background-color: var(--color-white);
                      border: 0.5px solid var(--color-gold);
                      position: relative;
                      &::after{
                        content: "";
                        display: none;
                      }
                      &.active{
                        &::after{
                          position: absolute;
                          content: "";
                          top: 50%;
                          left: 50%;
                          transform: translate(-50%, -50%);
                          display: flex;
                          width: 6px;
                          height: 6px;
                          background-color: var(--color-gold);
                        }
                    }
                    & p{
                      font-size: var(--font-size-sm);
                      font-weight: var(--font-weight-normal);
                      color: var(--color-gray);
                    }
                    &:last-child{
                      border-bottom: none;
                    }
                    &:hover{
                      cursor: pointer;
                    }
                  }
                }
              }
            }
          }
          
        }
        & .input-wrapper {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          position: relative;
          @media (max-width: 576px) {
            &:nth-child(2){
              width: 100%;
            }
        
          }
          & input{
            display: flex;
            height: 100%;
            width: 100%;
            padding: 10px;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            box-sizing: border-box;
            font-family: "League Spartan", sans-serif;
            &[type="number"]::placeholder {
              color: var(--color-gray-transparent);
              font-size: var(--font-size-xs)!important;
            }
            &[type="number"]{
              max-width: 115px;
              position: relative;
            }
            &::placeholder {
              color: var(--color-gray);
              font-size: var(--font-size-xs)!important;
            }
            &#geolocalisation{
              width: 281px;
              padding-left: 10px;
              padding-right: 10px;
              @media (max-width: 576px) {
                width: 100%;
              }
            }
          }
          & .geolocation-tags{
            position: absolute;
            left: 12px;
            bottom: 0%;
            transform: translateY(50%);
            display: flex;
            gap: 0.25rem;
            max-width: 200px;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
            & .geolocation-tag{
              background-color: var(--color-gold);
              color: var(--color-white);
              font-size: 11px;
              padding: 2px 6px;
              border-radius: 3px;
              display: flex;
              align-items: center;
              gap: 0.25rem;
              white-space: nowrap;
              pointer-events: all;
              & .remove-tag{
                cursor: pointer;
                font-weight: bold;
                line-height: 1;
                &:hover{
                  color: var(--color-red);
                }
              }
            }
          }
          & .select-options{
            position: absolute;
            top: 45px;
            left: 0;
            width: 100%;
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows ease .3s;
            border-radius: 9px;
            background: #FFF;

            z-index: 2;
            & ul{
              overflow: hidden;
              & li{
                opacity: 0;
                &:hover{
                  cursor: pointer;
                }
              }
            }
          }
          &.active{
            & .select-options{
              grid-template-rows: 1fr;
              padding: 1rem;
              border: 0.5px solid var(--color-gold);
              & ul{
                display: flex;
                flex-direction: column;
                width: 100%;
                gap: 1rem;
                & li{
                  display: flex;
                  width: 100%;
                  border-bottom: 0.5px solid var(--color-gold);
                  padding-bottom: 0.5rem;
                  align-items: center;
                  gap: 0.5rem;
                  opacity: 1;
                }
              }
            }
          }
          & p{
            display: flex;
            width: 100%;
            min-width: fit-content;
            align-items: center;
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            color: var(--color-gray);
            @media (max-width: 576px) {
              &.input-number-label{
                display: none;
              }
            }
          }
          & .input-number-wrapper {
            position: relative;
            display: inline-block;
            max-width: 115px;
            & input[type="number"] {
              padding-right: 20px;
              width: fit-content;
            }
            &::after {
              content: "";
              display: flex;
              background-image: url(../assets/svg/€.svg);
              position: absolute;
              background-repeat: no-repeat;
              background-size: contain;
              width: 9px;
              height: 10px;
              position: absolute;
              right: 8px;
              top: 50%;
              transform: translateY(-50%);
            }
          }
        }
      }
      & .search-tags{
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        @media (max-width: 576px) {
          & p{
            width: 100%;
            font-size: 15px;
            font-weight: var(--font-weight-normal);
            color: var(--color-gray);
          }
        }
        & .search-tag{
          display: flex;
          align-items: center;
          padding: 5px 8px;
          gap: 15px;
          color: var(--color-gray);
          background-color: var(--color-light-gray);
          border: none;
          border-radius: 5px;
          font-size: var(--font-size-xs);
          transition: all 0.3s ease-in-out;
          &.heart, &.new, &.small-price, &.soon{
            & span{
              background-repeat: no-repeat;
              background-size: contain;
              width: 9.7px;
              height: 9px;
            }
          }
          &.heart, &.new, &.small-price, &.soon{
            & span{
              background-image: url(../assets/svg/heart.svg);
            }
          }
          &.new{
            & span{
              background-image: url(../assets/svg/new.svg);
            }
          }
          &.small-price{
            & span{
              background-image: url(../assets/svg/tag.svg);
            }
          }
          &.soon{
            & span{
              background-image: url(../assets/svg/clock.svg);
            }
          }
          &:hover{
            cursor: pointer;
          }
          &.active{
            background-color: var(--color-gold);
            color: var(--color-white);
            & span{
              filter: brightness(0) invert(1);
            }
          }
        }
      }
      & .search-btn{
        width: 48px;
        height: 48px;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        background-color: var(--color-gold);
        border-radius: 100%;
        border: none;
        display: flex;
        align-items: center;
        &::before{
          content: url(../assets/svg/search.svg);
          position: absolute;
          display: flex;
          top: 50%;
          left: 50%;
          width: 14px;
          height: 14px;
          transform: translate(-50%, -50%);
          @media (max-width: 576px) {
            left: 1rem;
            transform: translate(-50%, -60%);
          }
        }
        &::after{
          content: "";
          @media (max-width: 576px) {
            content: "Rechercher";
            padding-left: calc(1.5rem + 14px);
            font-size: var(--font-size-md);
            color: var(--color-white);
          }
        }
        &:hover {
          cursor: pointer;
        }
        @media (max-width: 576px) {
          width: 100%;
          height: 35px;
          border-radius: 35px;
          position: relative;
          top: unset;
          right: unset;
          transform: unset;
        }
      }
    }
    & .search-results-container{
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem 0 0;
      width: 100%;
      & .search-pre{
        display: flex;
        width: 100%;
        justify-content: space-between;
        & p{
          color: var(--color-gray-transparent);
          font-size: var(--font-size-sm);
          font-weight: var(--font-weight-normal);
        }
        & .search-toggle-map{
          display: flex;
          gap: 0.25rem;
          align-items: center;
          & p{
            color: var(--color-gray);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
          }
          
        }
      }
      & .search-results-wrapper{
        display: flex;
        width: 100%;
        & .search-results-list{
          display: flex;
          width: 100%;
          gap: 1.33%;
          flex-wrap: wrap;
          @media (max-width: 1024px) {
            gap: 2%;
          }
          @media (max-width: 576px) {
            gap: 0;
          }
          & .search-project-card{
            display: flex;
            flex-direction: column;
            width: 24%;
            padding: 0.5rem;
            border-radius: 9px;
            background: var(--color-white);
            box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
            position: relative;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(50px) scale(0.9);
            transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            @media (max-width: 1024px) {
              width: 49%;
            }
            @media (max-width: 576px) {
              width: 100%;
            }
            & a {
              display: flex;
              flex-direction: column;
              position: relative;
              text-decoration: none;
              & .search-project-image{
                width: 100%;
                height: 250px;
                border-radius: 9px;
                overflow: hidden;
                object-fit: cover;
                @media (max-width: 576px) {
                  height: 160px;
                }
              }
              & .search-project-dispositif{
                display: flex;
                position: absolute;
                top: -0.25rem;
                left: -0.25rem;
                padding: 0.25rem;
                background-color: var(--color-white);
                border-radius: 5px;
                color: var(--color-gold-text);
                text-transform: uppercase;
                font-size: var(--font-size-xxs);
              }
              & .search-project-fav{
                position: absolute;
                top: 0.5rem;
                right: 0.5rem;
                width: 25px;
                height: 25px;
                border-radius: 5px;
                background-color: var(--color-white);
                border: none;
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 2;
                overflow: hidden;
                &:hover {
                  cursor: pointer;
                }
                & div{
                  display: flex;
                  width: 18px;
                  height: 18px;
                  justify-content: center;
                  align-items: center;
                  position: relative;
                  overflow: hidden;
                  & span{
                    width: 18px;
                    height: 18px;
                    background-image: url(../assets/svg/star.svg);
                    background-repeat: no-repeat;
                    background-size: contain;
                    position: relative;
                    &:nth-child(2){
                      background-image: url(../assets/svg/star_gold.svg);
                      position: absolute;
                      top: 50%;
                      left: 50%;
                      transform: translate(-50%, -50%);
                      opacity: 0;
                      width: 0;
                      height: 0;
                      transition: width 1.2s ease, height 1.2s ease, opacity 1.2s ease;
                    }
                  }
                }
                
                &.active{
                  & span{
                    &:nth-child(2){
                      width: 18px;
                      height: 18px;
                      opacity: 1;
                    }
                  }
                }
              }
              & .search-project-infos{
                display: flex;
                flex-direction: column;
                width: 100%;
                & .search-project-title{
                  display: flex;
                  justify-content: space-between;
                  padding-top: 0.5rem;
                  align-items: center;
                  & .search-project-city{
                    font-size: var(--font-size-l);
                    font-weight: var(--font-weight-semibold);
                    color: var(--color-gold-text);
                  }
                  & .search-project-price{
                    font-size: var(--font-size-xxs);
                    font-weight: var(--font-weight-normal);
                    color: var(--color-gold-text);
                    & span{
                      font-weight: var(--font-weight-semibold);
                      font-size: var(--font-size-sm);
                    }
                  }
                }
                & .search-project-adress{
                  font-size: var(--font-size-sm);
                  font-weight: var(--font-weight-normal);
                  color: var(--color-gray);
                  padding-bottom: 0.5rem;
                }
                & .search-project-tags{
                  display: flex;
                  gap: 0.5rem;
                  margin-bottom: 0.5rem;
                  flex-wrap: wrap;
                  & .search-project-tag{
                    color: var(--color-gray);
                    font-size: var(--font-size-xxs);
                    font-weight: var(--font-weight-normal);
                    padding: 5px;
                    border-radius: 5px;
                    background-color: var(--color-light-gray);
                    position: relative;
                    & span{
                      font-weight: var(--font-weight-semibold);
                    }
                    &.heart, &.new, &.small-price, &.soon{
                      &::before{
                        width: 9.7px;
                        height: 9px;
                        padding-right: 0.5rem;
                      }
                    }
                    &.heart{
                      &::before{
                        content: url(../assets/svg/heart.svg);
                      }
                    }
                    &.new{
                      &::before{
                        content: url(../assets/svg/new.svg);
                      }
                    }
                    &.small-price{
                      &::before{
                        content: url(../assets/svg/tag.svg);
                      }
                    }
                    &.soon{
                      &::before{
                        content: url(../assets/svg/clock.svg);
                      }
                    }
                  }
                }
              }
            }
            &.active{
              opacity: 1;
              transform: translateY(0) scale(1);
            }
          }
        }
        & .search-map-container{
          width: 100%;
          height: 80vh;
          border-radius: 9px;
          display: none;
          position: relative;
          & .search-map{
            width: 100%;
            height: 100%;
            border-radius: 9px;
            object-fit: cover;
          }
          & .search-map-marker{
            position: absolute;
            background-image: url(../assets/svg/white_mark.svg);
            background-repeat: no-repeat;
            background-size: contain;
            width: 15px;
            height: 22px;
            z-index: 2;
            &:hover{
              cursor: pointer;
            }
            &.active{
              background-image: url(../assets/svg/gold_mark.svg);
            }
          }
        }
        & .no-results-message{
          width: 100%;
          margin-bottom: 2rem;
          opacity: 0;
          transform: translateY(20px);
          transition: opacity 0.4s ease-out, transform 0.4s ease-out;
          & .no-results-content{
            & p{
              color: var(--color-gray-transparent);
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
            }
          }
          &.active{
            opacity: 1;
            transform: translateY(0);
          }
        }
        & .map-project-card-overlay{
          position: absolute;
          width: 100%;
          max-width: 350px;
          z-index: 10;
          opacity: 0;
          transform: translate(-10px, -10px);
          transition: opacity 0.3s ease-out, transform 0.3s ease-out;
          pointer-events: none;
          @media (max-width: 576px) {
            bottom: 10px;
            left: 10px;
            width: calc(100% - 20px);
            max-width: none;
            transform: translate(0, 0);
          }
          & .map-project-card{
            background: var(--color-white);
            border-radius: 9px;
            box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.20);
            padding: 0.5rem;
            position: relative;
            & .search-project-image{
              width: 100%;
              height: 250px;
              border-radius: 9px;
              object-fit: cover;
              @media (max-width: 576px) {
                height: 120px;
              }
            }
            & .search-project-dispositif{
              position: absolute;
              top: 0.25rem;
              left: 0.25rem;
              padding: 0.25rem;
              background-color: var(--color-white);
              border-radius: 5px;
              color: var(--color-gold-text);
              text-transform: uppercase;
              font-size: var(--font-size-xxs);
            }
            & .search-project-fav{
              position: absolute;
              top: 1rem;
              right: 1rem;
              width: 25px;
              height: 25px;
              border-radius: 5px;
              background-color: var(--color-white);
              border: none;
              display: flex;
              justify-content: center;
              align-items: center;
              z-index: 2;
              overflow: hidden;
              cursor: pointer;
              & div{
                display: flex;
                width: 18px;
                height: 18px;
                justify-content: center;
                align-items: center;
                position: relative;
                overflow: hidden;
                & span{
                  width: 18px;
                  height: 18px;
                  background-image: url(../assets/svg/star.svg);
                  background-repeat: no-repeat;
                  background-size: contain;
                  position: relative;
                  &:nth-child(2){
                    background-image: url(../assets/svg/star_gold.svg);
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    opacity: 0;
                    width: 0;
                    height: 0;
                    transition: width 1.2s ease, height 1.2s ease, opacity 1.2s ease;
                  }
                }
              }
              &.active{
                & span{
                  &:nth-child(2){
                    width: 18px;
                    height: 18px;
                    opacity: 1;
                  }
                }
              }
            }
            & .search-project-infos{
              display: flex;
              flex-direction: column;
              width: 100%;
              & .search-project-title{
                display: flex;
                justify-content: space-between;
                padding-top: 0.5rem;
                align-items: center;
                & .search-project-city{
                  font-size: var(--font-size-l);
                  font-weight: var(--font-weight-semibold);
                  color: var(--color-gold-text);
                }
                & .search-project-price{
                  font-size: var(--font-size-xxs);
                  font-weight: var(--font-weight-normal);
                  color: var(--color-gold-text);
                  & span{
                    font-weight: var(--font-weight-semibold);
                    font-size: var(--font-size-sm);
                  }
                }
              }
              & .search-project-adress{
                font-size: var(--font-size-sm);
                font-weight: var(--font-weight-normal);
                color: var(--color-gray);
                padding-bottom: 0.5rem;
              }
              & .search-project-tags{
                display: flex;
                gap: 0.5rem;
                margin-bottom: 0.5rem;
                flex-wrap: wrap;
                & .search-project-tag{
                  color: var(--color-gray);
                  font-size: var(--font-size-xxs);
                  font-weight: var(--font-weight-normal);
                  padding: 5px;
                  border-radius: 5px;
                  background-color: var(--color-light-gray);
                  position: relative;
                  & span{
                    font-weight: var(--font-weight-semibold);
                  }
                  &.heart, &.new, &.small-price, &.soon{
                    &::before{
                      width: 9.7px;
                      height: 9px;
                      padding-right: 0.5rem;
                    }
                  }
                  &.heart{
                    &::before{
                      content: url(../assets/svg/heart.svg);
                    }
                  }
                  &.new{
                    &::before{
                      content: url(../assets/svg/new.svg);
                    }
                  }
                  &.small-price{
                    &::before{
                      content: url(../assets/svg/tag.svg);
                    }
                  }
                  &.soon{
                    &::before{
                      content: url(../assets/svg/clock.svg);
                    }
                  }
                }
              }
            }
          }
          &.active{
            opacity: 1;
            transform: translate(-10px, -10px);
            pointer-events: all;
            @media (max-width: 576px) {
              transform: translate(0, 0);
            }
          }
        }
      }
    }
    
  }
  & .simulator-container{
    display: flex;
    position: fixed;
    bottom: 100px;
    transform: translateY(100%);
    right: calc(var(--spacing-section) / 2);
    z-index: 3;
    @media (max-width: 576px) {
      width: 100%;
      bottom: 0;
    }
    & .simulator-btn{
      width: 62px;
      height: 62px;
      border-radius: 12px 12px 0 12px;
      background-color: var(--color-white);
      box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
      position: absolute;
      border: 0;
      right: 0;
      top: 0;
      background: url(../assets/svg/simulator.svg) no-repeat center center;
      &:hover{
        cursor: pointer;
      }
      @media (max-width: 576px) {
        display: none;
      }
    }
    & .simulator-wrapper{
      display: flex;
      flex-direction: column;
      position: absolute;
      right: 0;
      top: 0;
      border-radius: 12px 12px 0 12px;
      background-color: var(--color-white);
      box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
      padding: 1rem 1rem 1.5rem;
      gap: 1rem;
      opacity: 0;
      transform: translate(-1%, -50%);
      pointer-events: none;
      transition: opacity 0.4s ease-out, transform 0.4s ease-out;
      @media (max-width: 576px) {
        width: calc(100% - (var(--spacing-section) * 2));
      }
      & h3{
        color: var(--color-gold-text);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-normal);
      }
      & .simulator-inputs{
        display: flex;
        width: 100%;
        align-items: center;
        gap: 1rem;
        @media (max-width: 576px) {
          flex-wrap: wrap;
        }
        & .simulator-input{
          display: flex;
          align-items: center;
          gap: 0.5rem;
          & label{
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            color: var(--color-gray);
            @media (max-width: 576px) {
              display: none;
            }
          }
          & .simulator-input-wrapper{
            position: relative;
            & input[type="number"]{
              padding-right: 20px;
            }
            &::after{
              content: "";
              display: flex;
              background-image: url(../assets/svg/€.svg);
              position: absolute;
              background-repeat: no-repeat;
              background-size: contain;
              width: 9px;
              height: 10px;
              position: absolute;
              right: 8px;
              top: 50%;
              transform: translateY(-50%);
            }
          }
          & input{
            width: fit-content;
            padding: 10px;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            box-sizing: border-box;
            width: 115px;
            &::placeholder {
              color: var(--color-gray-transparent);
              font-size: var(--font-size-xs);
              font-family: "League Spartan", sans-serif;
            }
          }
        }
        & .investment-wrapper{
          display: flex;
          gap: 0.5rem;
          & .investment-rate, & .investment-fees{
            display: flex;
            justify-content: flex-end;
            width: 160px;
            gap: 0.5rem;
            color: var(--color-gray);
            & span{
              display: flex;
              width: fit-content;
            }
          }
        }
      }
      & .simulator-results{
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        & .simulator-infos{
          font-size: var(--font-size-xs);
          color: var(--color-gray);
        }
        & .simulator-result{
          font-size: var(--font-size-m);
          color: var(--color-gray);
          font-weight: var(--font-weight-bold);
          @media(max-width: 576px) {
            font-size: var(--font-size-md);
          }
        }
        @media (max-width: 576px) {
          flex-direction: column-reverse;
          align-items: flex-start;
          gap: 1rem;
        }
      }
      & .simulator-close{
        position: absolute;
        right: 1rem;
        top: 0.5rem;
        border: 0;
        background: none;
        cursor: pointer;
        width: 20px;
        height: 20px;
        &::before, &::after{
          content: "";
          display: flex;
          width: 1px;
          height: 14.5px;
          background-color: var(--color-gray);
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
        &::before{
          transform: translate(-50%, -50%) rotate(45deg);
        }
        &::after{
          transform: translate(-50%, -50%) rotate(-45deg);
        }
      }
      &.active{
        opacity: 1;
        transform: translate(0%, -50%);
        pointer-events: all;
        @media(max-width: 576px) {
          transform: translate(-1%, -100%);
        }
      }
    }
  }
  /* PAGE PROGRAMME */
  &.programme-container, &.option-container, & .simulations-section, & .files-container, &.calculator-container{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: calc(80px + 1rem) var(--spacing-section) 1rem;
    & .programme-nav{
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      width: calc(100% - (var(--spacing-section) * 2));
      left: var(--spacing-section);
      z-index: 4;
      @media(max-width: 576px) {
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-1.5rem);
      }
      & .programme-return{
        display: flex;
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translateY(-50%);
        gap: 0.5rem;
        align-items: center;
        color: var(--color-gold-text);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        padding: 5px 10px;
        background-color: var(--color-white);
        border-radius: 5px;
        & span{
          display: flex;
          width: 17px;
          height: 10px;
          background-image: url(../assets/svg/gold_left_arrow.svg);
          background-repeat: no-repeat;
          background-size: contain;
          transition: transform 0.3s ease;
        }
        &:hover{
          cursor: pointer;
          & span{
            transform: translateX(-5px);
          }
        }
        @media(max-width: 576px) {
          position: relative;
          top: unset;
          left: unset;
          transform: unset;
          margin-bottom: 1rem;
          width: 100%;
          border-radius: 0;
        }
      }
      & .programme-anchors{
        display: flex;
        border-radius: 9px;
        background: #FFF;
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
        padding: 0.5rem 2rem;
        gap: 1rem;
        position: relative;
        @media(max-width: 576px) {
          gap: 0;
        }
        & a{
          display: flex;
          width: 200px;
          text-align: center;
          justify-content: center;
          color: var(--color-gray);
          font-size: var(--font-size-sm);        
        }
        @media(max-width: 576px) {
          width: 100%;
          justify-content: space-between;
          padding: 0.5rem 1rem;
        }
        &::before{
          content: "";
          position: absolute;
          width: 1px;
          height: calc(100% - 1rem);
          background-color: var(--color-gray-transparent);
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
    }
    & .programme-hero{
      display: flex;
      flex-direction: column;
      padding-top: calc(50px + 2rem);
      & h1{
        color: var(--color-gray);
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-semibold);
      }
      & .programme-hero-wrapper{
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: flex-end;
        padding-bottom: 2rem;
        & h2{
          color: var(--color-gray);
          font-size: var(--font-size-lg);
          font-weight: var(--font-weight-light);
        }
        & h3{
          color: var(--color-gold-text);
          font-size: var(--font-size-l);
          font-weight: var(--font-weight-normal);
          text-transform: uppercase;
        }
      }
      & .programme-poster{
        display: flex;
        width: 100%;
        position: relative;
        border-radius: 10px;
        height: 577px;
        overflow: hidden;
        @media(max-width: 576px) {
          height: 220px;
        }
        & img{
          position: absolute;
          display: flex;
          width: 100%;
          height: 100%;
          object-fit: cover;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        }
        & .programme-type{
          position: absolute;
          top: 1rem;
          left: 1rem;
          background: var(--color-gold);
          color: #fff;
          padding: 0.5rem;
          border-radius: 5px;
          font-size: var(--font-size-sm);
          font-weight: var(--font-weight-normal);
        }
        
        & .programme-tags{
          display: flex;
          gap: 0.5rem;
          position: absolute;
          bottom: 1rem;
          left: 1rem;
          flex-wrap: wrap;
          & .programme-tag{
            color: var(--color-gray);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
            padding: 5px;
            border-radius: 5px;
            background-color: var(--color-light-gray);
            position: relative;
            & span{
              font-weight: var(--font-weight-semibold);
            }
            &.heart, &.new, &.small-price, &.soon{
              &::before{
                width: 9.7px;
                height: 9px;
                padding-right: 0.5rem;
              }
            }
            &.heart{
              &::before{
                content: url(../assets/svg/heart.svg);
              }
            }
            &.new{
              &::before{
                content: url(../assets/svg/new.svg);
              }
            }
            &.small-price{
              &::before{
                content: url(../assets/svg/tag.svg);
              }
            }
            &.soon{
              &::before{
                content: url(../assets/svg/clock.svg);
              }
            }
          }
        }
      }
    }
    & .programme-numbers-container{
      display: flex;
      gap: 2rem;
      justify-content: center;
      flex-wrap: wrap;
      width: 100%;
      padding: 0 var(--spacing-section);
      @media (max-width: 576px) {
        justify-content: space-between;
        gap: 1%;
      }
      & .programme-numbers-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 260px;
        padding: 2.5rem;
        border-radius: 5px;
        background-color: var(--color-light-gray);
        color: var(--color-gray);
        font-size: var(--font-size-l);
        font-weight: var(--font-weight-semibold);
        gap: 0.5rem;
        & span{
          font-size: var(--font-size-m);
          font-weight: var(--font-weight-light);
          text-align: center;
          justify-content: center;
        }
        @media (max-width: 576px) {
          width: 49%;
          margin-bottom: 1rem;
          padding: 1rem;
        }
      }
    }
    & .programme-description-container{
      display: flex;
      flex-direction: column;
      padding: 0 var(--spacing-section);
      position: relative;
      & h4{
        color: var(--color-gray);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 3rem;
        @media(max-width: 576px) {
          margin-bottom: 1rem;
        }
      }
      & .programme-description-wrapper{
        display: flex;
        justify-content: space-between;
        @media(max-width: 576px) {
          &.mobile-col{
            flex-direction: column;
            gap: 1rem;
          }
        }
        & p{
          font-size: var(--font-size-m);
          font-weight: var(--font-weight-light);
          line-height: 150%;
          color: var(--color-gray);
          display: flex;
          flex-direction: column;
          width: 50%;
          padding-right: 4rem;
          @media(max-width: 576px) {
            width: 100%;
            padding-right: 0;
            font-size: var(--font-size-xxxs);
          }
        }
        & img{
          display: flex;
          width: 48%;
          height: 280px;
          object-fit: cover;
          border-radius: 10px;
          &.alt-style{
            width: 48%;
          }
          @media(max-width: 576px) {
            display: none;
            &.alt-style{
              display: flex;
              width: 100%;
              height: 200px;
            }
          }
        }
      }
      & .programme-description-slider{
        display: flex;
        height: 200px;
        overflow: hidden;
        width: 100%;
        padding-top: 2rem;
        position: relative;
        @media (max-width: 576px) {
          width: calc(100% - 22px);
          align-self: center;
          height: 120px;
        }
        & .programme-description-slide-track{
          display: flex;
          height: 100%;
          width: fit-content;
          gap: 4%;
          will-change: transform;
          @media(max-width: 1024px) {
            gap: 2%;
          }
          & img{
            width: 22%;
            min-width: 22%;
            max-width: 22%;
            min-height: 170px;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
            cursor: pointer;
            transition: transform 0.3s ease, opacity 0.3s ease;
            &:hover {
              transform: scale(1.05);
              opacity: 0.8;
            }
            @media (max-width: 576px) {
              width: 32%;
              min-width: 32%;
              max-width: 32%;
              height: 75px;
              min-height: unset;
            }
          }
        }
      }
      & .programme-slider-arrow{
        position: absolute;
        display: flex;
        width: 11px;
        height: 36px;
        border: 0;
        background-repeat: no-repeat;
        background-size: contain;
        background-color: transparent;
        bottom: 40px;
        transform: translateY(-50%);
        cursor: pointer;
        transition: opacity 0.3s ease-in-out;
        @media(max-width: 576px) {
          height: 15px;
        }
        &:hover {
          opacity: 0.7;
        }
        &.prev{
          left: -30px;
          background-image: url(../assets/svg/slide_left.svg);
          @media(max-width: 576px) {
            left: 0px;
          }
        }
        &.next{
          right: -30px;
          background-image: url(../assets/svg/slide_right.svg);
          @media(max-width: 576px) {
            right: 0px;
          }
        }
      }
      
    }
    & .programme-table-container, & .simulations-table-container{
      display: flex;
      flex-direction: column;
      gap: 3rem;
      &.files-page-variant{
        width: 100%;
        position: relative;
        z-index: 2;
        & .programme-table-wrapper{
          position: absolute;
          padding-top: 3rem;
          top: 0;
          left: 0;
          opacity: 0;
          pointer-events: none;
          transform: translateY(50px);
          transition: all 0.3s ease-in-out;
          &.active{
            opacity: 1;
            pointer-events: all;
            transform: translateY(0);
          }
        }
      }
      & h4{
        padding-left: var(--spacing-section);
        color: var(--color-gray);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
      }
      & .programme-types-wrapper{
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        @media(max-width: 576px) {
          justify-content: space-between;
        }
        & .programme-types-type{
          background-color: var(--color-light-gray);
          border-radius: 5px;
          padding: 1.5rem;
          position: relative;
          display: flex;
          justify-content: center;
          flex-direction: column;
          @media(max-width: 576px) {
            padding: 1.5rem 0rem 0.5rem;
          }
          & h5{
            position: absolute;
            top: 0;
            left: 0;
            font-size: var(--font-size-l);
            font-weight: var(--font-weight-semibold);
            color: var(--color-gray);
            background-color: var(--color-white);
            padding: 0.5rem;
            border-radius: 5px;
            @media(max-width: 576px) {
              font-size: var(--font-size-m);
              padding: 0.25rem;
            }
          }
          & p{
            text-align: center;
            font-size: var(--font-size-m);
            font-weight: var(--font-weight-light);
            line-height: 156%;
            @media(max-width: 576px) {
              font-size: var(--font-size-xxxs);
              padding: 0 1rem;
            }
          }
        }
      }
      & .programme-table-wrapper, & .simulations-table-wrapper{
        overflow-x: auto;
        display: flex;
        width: 100%;
        position: relative;
        & .programme-table{
          width: 100%;
          border-collapse: collapse;
          background-color: var(--color-white);
          overflow: hidden;
          & thead{
            background-color: var(--color-light-gray-3);
            border-radius: 8px;
            & th{
              color: var(--color-gray);
              font-size: 13px;
              font-weight: var(--font-weight-normal);
              padding: 1rem 0.75rem;
              text-align: left;
              white-space: nowrap;
              vertical-align: middle;
              &:first-child{
                border-top-left-radius: 8px;
                border-bottom-left-radius: 8px;
              }
              &:last-child{
                border-top-right-radius: 8px;
                border-bottom-right-radius: 8px;
              }
              & span{
                display: inline-block;
                width: 8px;
                height: 6px;
                background-image: url(../assets/svg/table_arrow.svg);
                background-repeat: no-repeat;
                background-size: contain;
                transition: transform 0.3s ease;
                margin-left: 4px;
              }
              &.active{
                & span{
                  transform: rotate(180deg);
                }
              }
            }
            & tr{
              border-radius: 8px;
            }
          }
          & tbody{
            & tr{
              border-bottom: 1px solid var(--color-light-gray-3);
              transition: background-color 0.2s ease;
              margin-bottom: 2rem;
              position: relative;
              &:last-child{
                border-bottom: none;
              }
              &.reserve, &.sold{
                background-color: var(--color-disabled);
                margin-bottom: 0;
                & .expand-cell{
                  padding: 0;
                  & .expand-line{
                    display: none;
                  }
                }
                & .fav-cell{
                  & .programme-fav{
                    display: none;
                  }
                }
                & .actions-cell{
                  justify-content: center;
                  & button{
                    display: none;
                  }
                }
                & td{
                  padding: 1rem 0.75rem;
                  &:first-child{
                    border-top-left-radius: 8px;
                    border-bottom-left-radius: 8px;
                  }
                  &:last-child{
                    border-top-right-radius: 8px;
                    border-bottom-right-radius: 8px;
                  }
                }
              }
            }
            & td{
              padding: 1rem 0.75rem 2rem;
              font-size: var(--font-size-xxs);
              font-weight: var(--font-weight-normal);
              white-space: nowrap;
              text-align: left;
              &.actions-cell{
                display: flex;
                gap: 0.5rem;
                justify-content: end;
                & .status-text{
                  display: flex;
                  align-items: center;
                  color: var(--color-gray);
                  font-size: var(--font-size-xs);
                  font-weight: var(--font-weight-normal);
                  text-transform: uppercase;
                }
              }
              &.fav-cell{
                text-align: center;
                position: relative;
                & .programme-fav{
                  position: absolute;
                  top: 50%;
                  right: 50%;
                  transform: translateY(calc(-50% - 0.5rem)) translateX(50%);
                  width: 25px;
                  height: 25px;
                  border-radius: 5px;
                  background-color: var(--color-white);
                  border: none;
                  display: flex;
                  justify-content: center;
                  align-items: center;
                  z-index: 2;
                  overflow: hidden;
                  cursor: pointer;
                  & div{
                    display: flex;
                    width: 18px;
                    height: 18px;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    overflow: hidden;
                    & span{
                      width: 18px;
                      height: 18px;
                      background-image: url(../assets/svg/star.svg);
                      background-repeat: no-repeat;
                      background-size: contain;
                      position: relative;
                      &:nth-child(2){
                        background-image: url(../assets/svg/star_gold.svg);
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        opacity: 0;
                        width: 0;
                        height: 0;
                        transition: width 1.2s ease, height 1.2s ease, opacity 1.2s ease;
                      }
                    }
                  }
                  &.active{
                    & span{
                      &:nth-child(2){
                        width: 18px;
                        height: 18px;
                        opacity: 1;
                      }
                    }
                  }
                }
              }
            }
            & .expand-cell{
              padding: 0;
              position: absolute;
              left: 50%;
              top: 0;
              transform: translateX(-50%);
              & .expand-line{
                display: flex;
                justify-content: center;
                padding: 5px 1rem;
                background-color: var(--color-light-gray-3);
                border-radius: 5px;
                position: absolute;
                left: 50%;
                bottom: -5rem;
                transform: translate(-50%, 0);
                border: 0;
                opacity: 1;
                transition: opacity 0.3s ease;
                @media(max-width: 576px) {
                  bottom: -3.5rem;
                }
                & span{
                  display: flex;
                  width: 10px;
                  height: 9px;
                  background-image: url(../assets/svg/table_arrow_down.svg);
                  background-repeat: no-repeat;
                  background-size: contain;
                }
                &:hover{
                  cursor: pointer;
                }
                &.variant{
                  @media(max-width: 576px) {
                    bottom: -3.5rem;
                  }
                }
              }
            }
            & .detail-row{
              display: none;
              opacity: 0;
              max-height: 0;
              overflow: hidden;
              transition: opacity 0.4s ease, max-height 0.4s ease;
              &.open{
                opacity: 1;
                max-height: 1000px;
              }
              & .detail-cell{
                padding: 0;
                position: relative;
                transition: padding-bottom 0.3s ease;
                &.expanded{
                  padding-bottom: 2rem;
                  & .expand-line-bottom{
                    opacity: 1;
                  }
                }
                & .detail-table{
                  width: 100%;
                  border-collapse: collapse;
                  & tbody{
                    & tr{
                      border-bottom: 1px solid var(--color-white);
                      &:last-child{
                        border-bottom: none;
                      }
                    }
                    & td{
                      padding: 0.75rem;
                      font-size: var(--font-size-xxs);
                      font-weight: var(--font-weight-normal);
                      white-space: nowrap;
                      &:nth-child(odd){
                        color: var(--color-gray);
                      }
                      &:nth-child(even){
                        color: var(--color-gray);
                        font-weight: var(--font-weight-semibold);
                      }
                      @media(max-width: 576px) {
                        font-size: var(--font-size-xxxs);
                      }
                    }
                  }
                }
                & .expand-line-bottom{
                  display: flex;
                  justify-content: center;
                  padding: 5px 1rem;
                  background-color: var(--color-light-gray-3);
                  border-radius: 5px;
                  position: absolute;
                  left: 50%;
                  bottom: 0.5rem;
                  transform: translate(-50%, 0);
                  border: 0;
                  opacity: 0;
                  transition: opacity 0.3s ease 0.2s;
                  & span{
                    display: flex;
                    width: 10px;
                    height: 9px;
                    background-image: url(../assets/svg/table_arrow_down.svg);
                    background-repeat: no-repeat;
                    background-size: contain;
                    transform: rotate(180deg);
                  }
                  &:hover{
                    cursor: pointer;
                  }
                }
              }
            }
          }
        }
      }
      @media (max-width: 576px) {
        & .programme-table{
          & thead th:nth-child(4), 
          & thead th:nth-child(5),
          & thead th:nth-child(6),
          & thead th:nth-child(9),
          & thead th:nth-child(10),
          & thead th:nth-child(11)
          {
            display: none;
          }
          
          & tbody td:nth-child(4),
          & tbody td:nth-child(5),
          & tbody td:nth-child(6),
          & tbody td:nth-child(9),
          & tbody td:nth-child(10),
          & tbody td:nth-child(11)
          & tbody td.actions-cell,
          & tbody td.fav-cell
          {
            display: none!important;
          }
          & tbody {
            & tr.reserve,
            & tr.sold {
              & td{
                &:nth-child(3){
                  display: none!important;
                }
                &:nth-child(2), &:nth-child(7), &:nth-child(8){
                  opacity: 0;
                }
                &.actions-cell{
                  display: flex!important;
                }
                &.expand-cell{
                  position: relative;
                  left: unset;
                  transform: unset;
                }
              }
              
            }
          }
          
          & tbody td.actions-cell,
          & tbody td.fav-cell {
            display: none;
          }
          
          & tbody .detail-row {
            & .detail-cell {
              & .detail-table {
                & tbody {
                  & tr {
                    &.actions-cell {
                      margin-top: 1rem;
                      & td {
                        padding: 1rem 0.75rem;
                        text-align: left;

                        & button.btn-white {
                          margin: 0 0.25rem;
                          padding: 0.5rem 1rem;
                          font-size: var(--font-size-xxxs);
                          white-space: nowrap;
                        }
                      }
                    }
                  }
                  
                  & td {
                    &.long-content {
                      white-space: normal;
                      word-wrap: break-word;
                    }
                  }
                }
              }
            }
          }
          &.simulation-table{
            & tbody td:nth-child(11){
              display: none;
            }

          }
        }
        & .programme-table.files{
          & thead th:nth-child(3),
          & thead th:nth-child(4), 
          & thead th:nth-child(5),
          & thead th:nth-child(6),
          & thead th:nth-child(7),
          & thead th:nth-child(10),
          & thead th:nth-child(12),
          & tbody td:nth-child(3),
          & tbody td:nth-child(4),
          & tbody td:nth-child(5),
          & tbody td:nth-child(6),
          & tbody td:nth-child(7),
          & tbody td:nth-child(10),
          & tbody td:nth-child(12),
          & tbody td.actions-cell,
          & tbody td.fav-cell
          {
            display: none!important;
          }
          & thead th:nth-child(9),
          & thead th:nth-child(11),
          & tbody td:nth-child(9),
          & tbody td:nth-child(11)
          {
            display: table-cell!important;
          }
          & .simulate-btn{
            display: none;
          }
        }
      }
    }
    & .simulations-table-container{
      width: 100%;
      padding: 3rem 0 0;
      & tr{
        & td{
          text-align: center;
          padding: 1rem 0.75rem 1rem!important;
          &.delete{
            position: relative;
            padding: 0!important;
            &::after{
              content: "";
              display: flex;
              width: 14px;
              height: 16px;
              background-image: url(../assets/svg/trashbin.svg);
              background-repeat: no-repeat;
              background-size: contain;
              position: absolute;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
            }
            &::before{
              content: "";
              display: flex;
              width: 18px;
              height: 20px;
              border-radius: 2px;
              position: absolute;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
              background-color: var(--color-light-gray-2);
            }
            &:hover{
              cursor: pointer;
            }
          }
        }
      }
    }
    & .programme-travaux{
      display: flex;
      flex-direction: column;
      padding: 0 var(--spacing-section);
      & h4{
        color: var(--color-gray);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 2rem;
      }
      & h5{
        color: var(--color-gray);
        font-size: var(--font-size-xxxs);
        font-weight: var(--font-weight-bold);
        margin-bottom: 1rem;
      }
      & p{
        color: var(--color-gray);
        font-size: var(--font-size-xxs);
        font-weight: var(--font-weight-normal);
        margin-bottom: 0.5rem;
      }
    }
    & .programme-documents{
      display: flex;
      flex-direction: column;
      padding: 0 var(--spacing-section);
      & h4{
        color: var(--color-gray);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 2rem;
      }
      & h5{
        color: var(--color-gray);
        font-size: var(--font-size-xxxs);
        font-weight: var(--font-weight-bold);
        margin-bottom: 1rem;
      }
      & ul{
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 1.33%;
        @media(max-width: 576px) {
          flex-direction: column;
          gap: 1rem;
        }
        & li{
          display: flex;
          width: 24%;
          margin-bottom: 1rem;
          @media(max-width: 576px) {
            width: 80%;
          }
          & a{
            display: flex;
            width: 100%;
            flex-direction: column;
            border-radius: 9px;
            background: var(--color-white);
            box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
            padding: 2rem;
            gap: 1rem;
            & h5{
              color: var(--color-gray);
              font-size: var(--font-size-m);
              font-weight: var(--font-weight-bold);
              margin-bottom: 0.5rem;
            }
            & p{
              display: flex;
              color: var(--color-gray);
              font-size: var(--font-size-xs);
              font-weight: var(--font-weight-normal);
              align-items: center;
              margin-top: auto;
              & span{
                display: flex;
                width: 10px;
                height: 6px;
                background-image: url(../assets/svg/arrow-doc.svg);
                background-repeat: no-repeat;
                background-size: contain;
                margin-left: 0.5rem;
                transition: transform 0.3s ease;
              }
            }
          }
          &:hover{
            cursor: pointer;
            & a{
              & p{
                & span{
                  transform: translateX(5px);
                }
              }
            }
          }
        }
      }
    }
    & .programme-fav{
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 25px;
      height: 25px;
      border-radius: 5px;
      background-color: var(--color-white);
      border: none;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2;
      overflow: hidden;
      cursor: pointer;
      & div{
        display: flex;
        width: 18px;
        height: 18px;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        & span{
          width: 18px;
          height: 18px;
          background-image: url(../assets/svg/star.svg);
          background-repeat: no-repeat;
          background-size: contain;
          position: relative;
          &:nth-child(2){
            background-image: url(../assets/svg/star_gold.svg);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            width: 0;
            height: 0;
            transition: width 1.2s ease, height 1.2s ease, opacity 1.2s ease;
          }
        }
      }
      &.active{
        & span{
          &:nth-child(2){
            width: 18px;
            height: 18px;
            opacity: 1;
          }
        }
      }
    }
    & .programme-modal-container{
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
      z-index: 10;
      & .programme-modal-next, & .programme-modal-prev{
        position: absolute;
        top: 50%;
        left: var(--spacing-section);
        transform: translateY(-50%);
        width: 11px;
        height: 30px;
        border: 0;
        background: url(../assets/svg/slide_left.svg);
        background-repeat: no-repeat;
        background-size: contain;
        background-color: transparent;
        cursor: pointer;
        transition: opacity 0.3s ease-in-out;
        &:hover {
          opacity: 0.7;
        }
      }
      & .programme-modal-next{
        left: unset;
        right: var(--spacing-section);
        background-image: url(../assets/svg/slide_right.svg);
      }
      & .programme-modal{
        display: flex;
        width: 80%;
        height: 80%;
        background-color: var(--color-gray);
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        align-items: stretch;
        @media(max-width: 576px) {
          width: 90%;
          height: 70%;
        }
        & .programme-modal-track{
          display: flex;
          height: 100%;
          border-radius: 10px;
          align-items: center;
          transition: transform 0.5s ease;
          & .programme-modal-image{
            display: flex;
            width: 100%;
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
            border-radius: 10px;
          }
        }
        & .programme-modal-close{
          position: absolute;
          top: 1rem;
          right: 1rem;
          width: 20px;
          height: 20px;
          border: 0;
          background: none;
          cursor: pointer;
          &::before, &::after{
            content: "";
            display: flex;
            width: 1px;
            height: 14.5px;
            background-color: var(--color-white);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
          }
          &::before{
            transform: translate(-50%, -50%) rotate(45deg);
          }
          &::after{
            transform: translate(-50%, -50%) rotate(-45deg);
          }
        }
      }
    }
  }
  /* PAGE OPTIONS */
  &.option-container{
    display: flex;
    & .option-form-container{
      padding: 6rem var(--spacing-section) 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      & h1{
        width: 100%;
        color: var(--color-gray);
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-light);
        text-align: left;
      }
      & form{
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 2rem;
        padding-top: 5rem;
        align-items: center;
        width: calc(260px * 2 + 1rem);
        @media (max-width: 576px) {
          width: 100%;
          padding-top: 2rem;
          gap: 1rem;
        }
        & .option-wrapper{
          display: flex;
          gap: 1rem;
          @media(max-width: 576px) {
            flex-direction: column;
            width: 100%;
          }
          & div{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            & label{
              color: var(--color-gray-transparent);
              font-size: var(--font-size-xs);
              font-weight: var(--font-weight-normal);
            }
            & input{
              width: 260px;
              padding: 0.5rem;
              border-radius: 9px;
              border: 0.5px solid var(--color-gold);
              background: var(--color-white);
              font-size: var(--font-size-xs);
              font-weight: var(--font-weight-normal);
              color: var(--color-gray);
              &::placeholder{
                color: var(--color-gray-transparent);
                font-family: "League Spartan", sans-serif;
              }
              @media(max-width: 576px) {
                width: 100%;
              }
            }
          }
        }
        & .area-wrapper{
          display: flex;
          flex-direction: column;
          width: 100%;
          gap: 1rem;
          & label{
            color: var(--color-gray-transparent);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
          }
          & textarea{
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            background: var(--color-white);
            padding: 0.5rem;
            &::placeholder{
              color: var(--color-gray-transparent);
              font-family: "League Spartan", sans-serif;
              font-size: var(--font-size-xs);
            }
          }
        }
        & span{
          display: flex;
          width: 100%;
          color: var(--color-gray-transparent);
          font-size: var(--font-size-xs);
          font-weight: var(--font-weight-normal);
          text-align: center;
          &.error-msg{
            color: var(--color-red);
          }
          &.valid-msg{
            color: var(--color-gold-text);
            font-size: var(--font-size-sm);
          }
        }
      }
    }
  }
  /* PAGE MON COMPTE */
  &.dashboard-container{
    display: flex;
    flex-direction: column;
    padding: 6rem var(--spacing-section) 0;
    min-height: calc(100vh - 180px);
    & .dashbord-nav{
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      width: calc(100% - (var(--spacing-section) * 2));
      left: var(--spacing-section);
      z-index: 4;
      background-color: var(--color-white);
      & ul{
        display: flex;
        gap: 1rem;
        @media(max-width: 576px) {
          flex-wrap: wrap;
          justify-content: center;
        }
        & li{
          & a{
            color: var(--color-gray);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
            text-decoration: none;
            transition: color 0.3s ease;
            &:hover, &.active {
              color: var(--color-gold-text);
            }
          }
        }
      }
    }
    /* PAGE MON PROFIL */
    & .profil-container{
      display: flex;
      flex-direction: column;
      padding-top: 3rem;
      width: 100%;
      position: relative;
      @media(max-width: 576px) {
        padding-top: 5rem;
      }
      & h1{
        display: flex;
        width: 100%;
        justify-content: center;
        color: var(--color-gold-text);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
      }
      & .profil-wrapper{
        position: absolute;
        left: 0;
        width: 100%;
        & .profil-group{
          display: flex;
          flex-direction: column;
          padding : 6rem var(--spacing-section) 0;
          @media(max-width: 576px) {
            align-items: center;
          }
          & h2{
            color: var(--color-gold-text);
            font-size: var(--font-size-m);
            font-weight: var(--font-weight-semibold);
            text-transform: uppercase;
          }
          & h3, & p{
            color: var(--color-gold-text);
            font-size: var(--font-size-m);
            font-weight: var(--font-weight-semibold);
            margin-bottom: 1rem;
          }
          & p{
            font-weight: var(--font-weight-normal);
          }
          & a{
            color: var(--color-gray);
            margin-bottom: 0;
          }
          & button{
            margin-top: 1rem;
            display: flex;
            gap: 0.5rem;
            align-items: center;
            font-size: var(--font-size-sm);
            & span{
              display: flex;
              width: 11px;
              height: 14px;
              background-image: url(../assets/svg/Exclude.svg);
            }
            &:hover{
              & span{
                filter: brightness(0) invert(1);
              }
            }
          }
        }
        &.profil-form{
          opacity: 0;
          pointer-events: none;
          & h2{
            color: var(--color-gray);
            font-size: var(--font-size-l);
            font-weight: var(--font-weight-normal);
            text-transform: none;
            padding-bottom: 1rem;
          }
          & p{
            color: var(--color-gray);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            margin-bottom: 0.5rem;
          }
          & form{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            @media(max-width: 576px) {
              align-items: center;
            }
            & input{
              border-radius: 9px;
              border: 0.5px solid var(--color-gold);
              padding: 0.5rem;
              width: 300px;
              &::placeholder{
                color: var(--color-gray-transparent);
                font-family: "League Spartan", sans-serif;
              }
            }
            & .form-msg{
              color: var(--color-red);
            }
          }
        }
      }
    }
    /* PAGE MES INTERLOCUTEURS */
    & .advisor-container{
      display: flex;
      flex-direction: column;
      padding-top: 4rem;
      align-items: center;
      gap: 2rem;
      & h1{
        color: var(--color-gold-text);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        @media(max-width: 576px) {
          padding: 2rem 0;
        }
      }
    }
    & .advisor-wrapper{
      display: flex;
      width: 100%;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      & .advisor-card{
        display: flex;
        flex-direction: column;
        width: 300px;
        padding: 2rem 3rem;
        border-radius: 10px;
        border: 0.5px solid var(--color-gold);
        align-items: center;
        & img{
          width: 50px;
          height: 50px;
        }
        & h2, & h3{
          color: var(--color-gold-text);
          font-size: var(--font-size-lb);
          font-weight: var(--font-weight-semibold);
          text-transform: uppercase;
          padding-top: 1rem;
        }
        & h3{
          padding-top: 0;
          text-transform: none;
        }
        & p{
          color: var(--color-gold-text);
          padding: 1rem 0;
          text-transform: uppercase;
          font-size: var(--font-size-xxxs);
        }
        & a {
          text-decoration: underline;
          color: var(--color-gray);
          font-size: var(--font-size-m);
          font-weight: var(--font-weight-normal);
          padding-bottom: 1rem;
        }
        & button{
          & a{
            text-decoration: none;
            color: var(--color-gold-text);
            font-size: var(--font-size-sm);
            display: flex;
            padding-bottom: 0;
            gap: 0.5rem;
            & span{
              display: flex;
              width: 14px;
              height: 13px;
              background-image: url(../assets/svg/msg.svg);
              margin-left: 0.5rem;
            }
          }
          &:hover{
            & a{
              color: var(--color-white);
              & span{
                filter: brightness(0) invert(1);
              }
            }
          }
        }
        &.board-card{
          & p{
            padding: 3rem 0 0;
          }
          & a{
            padding: 2rem 0;
          }
          & button{
            & a{
              padding: 0;
            }
          }
        }
      }
    }
    /* PAGE MES SIMULATIONS */
    & .simulations-section{
      display: flex;
      flex-direction: column;
      padding: 0;
      padding-top: 4rem;
      align-items: center;
      gap: 2rem;
      @media(max-width: 576px) {
        gap: 0;
      }
      & h1{
        color: var(--color-gold-text);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        @media(max-width: 576px) {
          padding: 2rem 0;
        }
      }
      & .simulations-search-container{
        & .simulations-cases-wrapper{
          display: flex;
          flex-direction: column;
          & .simulations-case{
            display: flex;
            align-items: center;
            gap: 0.5rem;
            & span{
              width: 10px;
              height: 10px;
              border-radius: 2px;
              background-color: var(--color-white);
              border: 0.5px solid var(--color-gold);
              position: relative;
              &::after{
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 6px;
                height: 6px;
                background-color: var(--color-gold);
                border-radius: 2px;
                transform: translate(-50%, -50%);
                opacity: 0;
                transition: opacity 0.3s ease;
              }
              &:hover{
                cursor: pointer;
              }
            }
            & p{
              color: var(--color-gray);
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
            }
            &.active{
              & span{
                &::after{
                  opacity: 1;
                }
              }
            }
          }
        }
        & .simulations-reset-btn{
          background-color: var(--color-white);
          border: 0;
          padding: 0;
          margin-bottom: 1rem;
          color: var(--color-gold-text);
          font-size: var(--font-size-sm);
          font-weight: var(--font-weight-semibold);
          text-decoration: underline;
          cursor: pointer;
          display: flex;
          align-items: center;
          flex: 1;
          justify-content: center;
        }
      }
    }
    /* PAGES MES DOSSIERS */
    & .files-container{
      display: flex;
      flex-direction: column;
      padding: 0;
      padding-top: 3rem;
      align-items: center;
      gap: 0.5rem;
      & h1{
        color: var(--color-gold-text);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-semibold);
        @media (max-width: 576px) {
          padding: 2rem 0;
        }
      }
      & ul{
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        & li{
          color: var(--color-gray);
          font-size: var(--font-size-sm);
          font-weight: var(--font-weight-normal);
          transition: color 0.3s ease;
          position: relative;  
          & span{
            display: flex;
            width: 0px;
            height: 1px;
            background-color: var(--color-gold);
            transition: width 0.3s ease;
            position: absolute;
            bottom: -0.5rem;
            left: 50%;
            transform: translateX(-50%);
          }
          &.active{
            color: var(--color-gold-text);
            & span{
              width: 100%;
            }
          }
          &:hover{
            cursor: pointer;
            color: var(--color-gold-text);
          }
        }
      }
    }
  }
  /* PAGE SIMULATION */
  &.calculator-container{
    gap: 2rem;
    & .simulation-actions{
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      @media(max-width: 576px) {
        flex-direction: column;
        align-items: center;
      }
    }
    & .datas-wrapper{
      display: flex;
      flex-direction: column;
      border-radius: 20px;
      border: 1px solid var(--color-gold);
      background: #FFF;
      padding: 1rem 2rem;
      width: 100%;
      gap: 1rem;
      & h2{
        color: var(--color-gray);
        font-size: var(--font-size-lb);
        font-weight: var(--font-weight-normal);
      }
      & h3{
        color: var(--color-gray);
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-normal);
      }
      &:nth-child(2){
        border: 1px solid var(--color-beige);
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
        margin-top: 2rem;
        & h2{
          margin-bottom: 1rem;
        }
      }
      & .inputs-wrapper, & .infos-apt-wrapper{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 2rem;
        align-items: flex-end;
        @media(max-width: 576px) {
          justify-content: center;
        }
        & .input-group, & .select-group{
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          position: relative;
          width: 200px;
          justify-content: flex-end;
          @media(max-width: 576px) {
            width: 100%;
          }
          & label, & p{
            color: var(--color-gray-transparent);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            &.msg{
              display: flex;
              width: 100%;
              position: absolute;
              bottom: 0;
              left: 0;
              transform: translate(0%, 150%);
              color: var(--color-gray-transparent);
              font-size: var(--font-size-xxxs);
            }
          }
          & input{
            display: flex;
            height: 100%;
            width: 100%;
            padding: 10px;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            font-size: var(--font-size-xs);
            font-weight: var(--font-weight-normal);
            box-sizing: border-box;
            font-family: "League Spartan", sans-serif;
            height: 35px;
            &::placeholder{
              color: var(--color-gray-transparent);
              font-family: "League Spartan", sans-serif;
            }
          }
          & .select-wrapper{
            display: flex;
            width: 100%;
            padding: 10px;
            justify-content: space-between;
            align-items: center;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            gap: 1rem;
            height: 100%;
            cursor: pointer;
            height: 35px;
          }
          & .select-options{
            position: absolute;
            top: 45px;
            left: 0;
            width: 100%;
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows ease .3s;
            border-radius: 9px;
            background: #FFF;
            & ul{
              overflow: hidden;
              & li{
                opacity: 0;
                color: var(--color-gray);
                font-size: var(--font-size-sm);
                font-weight: var(--font-weight-normal);
                transition: color 0.3s ease, opacity 0.3s ease;
                &:hover{
                  cursor: pointer;
                  color: var(--color-gold-text);
                }
              }
            }
          }
          & .input-line, & .date-wrapper{
            display: flex;
            position: relative;
            cursor: pointer;
            & span{
              position: absolute;
              padding: 0.5rem;
              background-color: var(--color-white);
              right: 10px;
              top: 50%;
              transform: translateY(-50%);
              color: var(--color-gold-text);
              pointer-events: none;
              &.date-icon{
                display: flex;
                width: 12px;
                height: 14px;
                background-image: url(../assets/svg/calendar.svg);
                background-repeat: no-repeat;
                background-size: contain;
                z-index: 2;
              }
            }
            & input[type="date"] {
              &::-webkit-calendar-picker-indicator {
                display: none;
                -webkit-appearance: none;
                appearance: none;
              }
              &::-webkit-inner-spin-button,
              &::-webkit-outer-spin-button {
                -webkit-appearance: none;
                margin: 0;
                display: none;
              }
              &::-moz-calendar-picker-indicator {
                display: none;
              }
              &::-webkit-datetime-edit {
                padding: 0;
              }
              &:focus {
                outline: none;
              }
              &::placeholder {
                color: var(--color-gray-transparent);
                font-family: "League Spartan", sans-serif;
              }
              pointer-events: none;
            }
          }
          & .date-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
            background: transparent;
            bottom: 0;
            color: transparent;
            cursor: pointer;
            height: auto;
            left: 0;
            position: absolute;
            right: 0;
            top: 0;
            width: auto;
          }
          /* CALENDRIER PERSONNALISÉ */
          & .custom-calendar {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 5px;
            padding: 0.5rem 0.5rem;
            border-radius: 9px;
            border: 0.5px solid var(--color-gold);
            background: var(--color-white);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            display: none;
            font-family: "League Spartan", sans-serif;
            color: var(--color-gray);
            &.active {
              display: block;
            }
            & .calendar-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              padding-bottom: 0.5rem;
              border-bottom: 1px solid var(--color-gold);
              & .calendar-nav-btn {
                background: none;
                border: none;
                color: var(--color-gold-text);
                cursor: pointer;
                font-size: 1.2rem;
                padding: 0.25rem 0.5rem;
                border-radius: 4px;
                &:hover {
                  background-color: #f5f5f5;
                }
              }
              & .calendar-month-year {
                color: var(--color-gray);
              }
            }
            & .calendar-grid {
              display: grid;
              grid-template-columns: repeat(7, 1fr);
              gap: 1px;
              & .calendar-day {
                aspect-ratio: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                font-size: var(--font-size-xs);
                color: var(--color-gray);
                
                &:hover {
                  background-color: #f5f5f5;
                }
                
                &.selected {
                  background-color: var(--color-gold);
                  color: white;
                }
                
                &.other-month {
                  color: var(--color-gray-transparent);
                }
              }
              
              & .calendar-day-header {
                background-color: #f8f9fa;
                font-weight: bold;
                padding: 0.5rem;
                text-align: center;
                font-size: var(--font-size-xxs);
                color: var(--color-gray);
              }
            }
          }
        }
        & .select-group{
          z-index: 2;
          &.active{
            z-index: 3;
            & .select-wrapper{
              & img{
                transform: rotate(180deg);
              }
            }
            & .select-options{
              grid-template-rows: 1fr;
              border: 0.5px solid var(--color-gold);
              & ul{
                & li{
                  opacity: 1;
                  padding:1rem;
                  display: flex;
                  width: 100%;
                  border-bottom: solid 0.5px var(--color-gray-transparent);
                  &:last-child{
                    border-bottom: none;
                  }
                }
              }
            }
          }
        }
        & .btn-white{
          height: 35px;
          width: 200px;
          position: relative;
          & span{
            display: flex;
            width: 100%;
            position: absolute;
            bottom: 0%;
            left: 0;
            transform: translate(0%, 200%);
            color: var(--color-gray-transparent);
          }
        }
        &.add-client{
          display: none;
          opacity: 0;
          margin-bottom: 2rem;
        }
      }
      & .results{
        padding-top: 1rem;
        color: var(--color-gold-text);
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-semibold);
      }
      & .datas-apt-wrapper{
        display: flex;
        width: 100%;
        border-radius: 10px;
        position: relative;
        height: 530px;
        & img{
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 10px;
        }
        & .datas-apt-tags{
          position: absolute;
          display: flex;
          width: 500px;
          flex-wrap: wrap;
          left: 1rem;
          gap: 1rem;
          @media (max-width: 576px) {
            width: 100%;
          }
          &:nth-child(2){
            top: 1rem;
          }
          &:nth-child(3){
            bottom: 1rem;
          }
          & .datas-apt-tag{
            background-color: var(--color-white);
            border-radius: 5px;
            color: var(--color-gray);
            padding: 0.5rem 1rem;
            & span{
              color: var(--color-gold-text);
            }
            & b{
              font-weight: var(--font-weight-semibold);
            }
          }
        }
        & .datas-apt-btn{
          position: absolute;
          right: 1rem;
          bottom: 1rem;
          font-size: var(--font-size-m);
          padding: 1rem 1.5rem;
          @media(max-width: 576px) {
            padding: 0.5rem;
            top: 1rem;
            bottom: unset;
          }
        }
      }
      & .infos-apt-wrapper{
        padding: 2rem 0;
        border-bottom: solid 0.5px var(--color-gold);
        flex-direction: column;
        align-items: flex-start;
        & .infos-apt-group{
          display: flex;
          width: 100%;
          flex-wrap: wrap;
          gap: 2rem;
          padding-bottom: 2rem;
          border-bottom: solid 0.5px var(--color-gray-transparent);
          @media(max-width: 576px) {
            justify-content: center;
          }
          & .infos-apt{
            background-color: var(--color-light-gray-3);
            border-radius: 5px;
            color: var(--color-gold-text);
            padding: 1.5rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 200px;
            gap: 0.5rem;
            & span, & b{
              font-weight: var(--font-weight-semibold);
            }
          }
          & .infos-apt:has(b) {
            flex-direction: row;
            gap: 0.25rem;
          }
          &.variation{
            align-items: end;
            & .infos-apt-price{
              padding-bottom: 10px;
            }
            
          }
          &.no-underline{
            padding-bottom: 0;
            border-bottom: none;
          }
        }
        & h4{
          color: var(--color-gray);
          font-size: var(--font-size-xs);
          font-weight: var(--font-weight-normal);
        }
        & .infos-apt-prices{
          display: flex;
          gap: 3rem;
          flex-wrap: wrap;
        }
        & .infos-apt-price{
          display: flex;
          gap: 0.25rem;
          color: var(--color-gray);
          font-size: var(--font-size-xs);
          font-weight: var(--font-weight-normal);
          & b{
            font-weight: var(--font-weight-semibold);
          }
          &.total-price{
            color: var(--color-gold-text);
            font-size: var(--font-size-m);
            font-weight: var(--font-weight-semibold);
          }
        }
      }
      & .convention-container{
        display: flex;
        flex-direction: column;
        & .convention-wrapper{
          display: flex;
          flex-wrap: wrap;
          gap: 1rem;
          padding-bottom: 2rem;
          align-items: stretch;
          @media(max-width: 576px) {
            justify-content: center;
          }
          & .convention-tag{
            display: flex;
            border-radius: 5px;
            padding: 0.5rem;
            background: var(--color-light-gray-3);
            gap: 0.5rem;
            
          }
          & .convention{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            border-radius: 5px;
            width: 200px;
            background: var(--color-light-gray-3);
            text-align: center;
            gap: 0.5rem;
            &:first-child{
              background-color: var(--color-gold);
              color: var(--color-white);
              & b{
                color: var(--color-white);
              }
            }
          }
          &.avantage{
            width: 100%;
            padding-top: 2rem;
            border-top: solid 0.5px var(--color-gray-transparent);
          }
        }
        & b{   
          font-weight: var(--font-weight-semibold);
          color: var(--color-gray);
        }
      }
      & .contribution{
        display: flex;
        gap: 0.25rem;
        color: var(--color-gold-text);
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-semibold);
      }
      & .add-loan{
        margin-top: 1rem;
      }
    }
  }
}

/* ========== FOOTER ========== */
footer {
  .footer-logo{
    width: 500;
    height: 66px;
  }
  &.connection-footer {
    display: none;
  }
  &.cir-footer{
    display: flex;
    flex-direction: column;
    padding: 4rem var(--spacing-section) 2rem;
    gap: 2rem;
    @media(max-width: 576px) {
      padding: 4rem var(--spacing-section) 8rem;
    }
    & .cir-footer-wrapper{
      display: flex;
      justify-content: space-between;
      width: 100%;
      & .cir-top{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        background: var(--color-gold);
        border: none;
        cursor: pointer;
        border-radius: 100%;
        & span{
          display: flex;
          width: 12px;
          height: 18px;
          background-image: url(../assets/svg/top_arrow.svg);
          background-repeat: no-repeat;
          background-size: contain;
        }
      }
    }
    & .footer-nav{
      display : flex;
      justify-content: space-between;
      @media(max-width: 576px) {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
      }
      & .link-group-cir{
        color: var(--color-gold-text);
        font-size: var(--font-size-sm);
        text-decoration: underline;
      }
      & ul{
        display: flex;
        gap: 1rem;
        & li{
          & a{
            color: var(--color-gray);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-normal);
            text-decoration: underline;
            transition: color 0.3s ease;
            opacity: 0.5;
            &:hover, &.active {
              color: var(--color-gold-text);
            }
          }
          & p{
            color: var(--color-gold-text);
            font-weight: var(--font-weight-semibold);
            text-decoration: none;
          }
        }
      }
      & .cir-legals{
        opacity: 0.5;
      }
    }
    @media(max-width: 576px) {
      display: flex;
      width: 100%;
      background-color: var(--color-white);
      z-index: 2;
      & .footer-nav-mobile{
        display: flex!important;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 1rem var(--spacing-section) 2rem;
        background-color: var(--color-white);
        border-top: 0.5px solid var(--color-gold);
        z-index: 2;
        & ul{
          display: flex;
          width: 100%;
          justify-content: space-between;
          padding: 0.5rem 0;
          align-items: center;
          & li{
            list-style: none;
            & a{
              color: var(--color-gray);
              font-size: 15px;
              font-weight: var(--font-weight-normal);
              text-decoration: none;
              &:hover, &.active {
                color: var(--color-gold-text);
              }
            }
            & .footer-btn-simulator{
              background-color: transparent;
              border: none;
              width: 19.375px;
              height: 18.276px;
            }
          }
        }
      }
    }
    &.no-desktop{
      display: none;
      @media(max-width: 576px) {
        display: flex;
      }
    }
    & .footer-nav-mobile{
      display: none;
    }
    
  }
}

/* ========== BUTTONS ========== */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  width: fit-content;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
  }
  
  &:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    
    &::before {
      left: 100%;
    }
  }
  
  &:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }
  
  &.first-connection {
    width: 75%;
    text-align: center;
  }
}

.btn-navy {
  border: 2px solid var(--color-navy);
  background: var(--color-white);
  color: var(--color-navy);
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  
  &:hover {
    background: var(--color-navy);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  &:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }
}

.btn-white {
  background: var(--color-white);
  color: var(--color-gold-text);
  border: 2px solid var(--color-gold);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  width: fit-content;
  box-shadow: var(--shadow-sm);
  
  &:hover {
    background: var(--color-gold);
    color: var(--color-gold-text);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  &:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }
}
& .search-toggle-btn{
  display: flex;
  width: 27px;
  height: 13px;
  border-radius: 27px;
  background-color: var(--color-light-gray-2);
  border: none;
  position: relative;
  &::before{
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-white);
    transform: translateY(-50%);
    transition: left 0.3s ease;
  }
  &.active{
    background-color: var(--color-gold);
    &::before{
      right: 15px;
    }
  }
  &:hover {
    cursor: pointer;
  }
}

tr{
  transform : translate(0);
}
/* ========== ANIMATIONS ========== */
@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}