/* COMMON */
:root {
    --gold: #A87F58;
    --light-gold: #CAB379;
    --blue: #09215D;
    --blue-transparent: rgb(9 33 93 / 90%);
    --faded-blue: #02314F;
    --grey: #8F8F8F;
    --beige: #F9F4EA;
    --white: #FFFFFF;
}

* {
    color: #333333;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.2px;
}

html, 
body {
    overflow-x: hidden;
    max-width: 100vw;
}

canvas {
    display: block;
  }

.section {
    position: relative;
    margin-top: 80px;
}

.section.--container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kicker {
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    line-height: 28px;
    margin-bottom: 16px;
}

.title {
    color: var(--blue);
    font-size: 36px;
    line-height: 52px;
    margin-bottom: 8px;
}

p {
    color: var(--grey);
    font-size: 16px;
    line-height: 32px;
    margin: 0px;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 64px;
}

.highlight-item {
    position: relative;
    display: flex;
    gap: 24px
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 24px;
    background-color: var(--blue);
    border-radius: 6px;
}

.highlight-icon > img {
    width: 24px;
    height: 24px;
}

.highlight-texts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
}

.highlight-p {
    font-size: 16px;
    line-height: 28px;
}

.highlights-list.--horizontal {
    flex-direction: row;
    text-align: left;
}

.bullets-list {
    margin: 24px 0;
}

.bullets-list > li {
    color: #333333;
    position: relative;
    margin: 4px 0;
    list-style-type: none;
}

.bullets-list > li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: calc(50% - 3px);
    transform: translateY(-50%);
    margin: 4px 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* HERO */
.hero__container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 64px;
    margin: 0;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -15;
}

.--line-1 {
    top: 0;
    left: 0;
    width: 150%;
    z-index: -5;
    transform: translate(-15%, -30%);
}

.--line-1 > path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.topbar__container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: -10;
    overflow: hidden;
}

.topbar__blue {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 80vh;
    background: var(--blue);
    z-index: -1;
}

.topbar__water {
    position: absolute;
    top: calc(100% - 392px);
    left: 0;  
    z-index: -1;
}

.topbar__logo {
    position: absolute;
    height: 192px;
    top: calc(75vh - 64px);
    /* transform: translateY(-50%); */
}

.topbar__maquette {
    height: 50vh;
    transform: translateY(-128px);
}

.topbar__maquette path {
    stroke-dasharray: 1;
}

.hero__card {
    position: relative;
    width: 600px;
    padding: 24px 32px;
    opacity: 0;
}

.hero__card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--blue-transparent);
    box-shadow: 
        0 4px 4px rgb(0 0 0 / 10%),
        0 4px 16px rgb(0 0 0 / 10%)
    ;
    z-index: -1;
}

.hero__card .kicker {
    color: var(--light-gold);
}

.hero__title {
    color: var(--beige);
    font-family: 'Marcellus', serif;
    font-size: 32px;
    line-height: 46px;
}

.hero__divider {
    width: 50%;
    border-top: 1px solid var(--gold);
    margin: 24px 0;
}

.hero__paragraph {
    color: var(--beige);
    margin-bottom: 24px;
    font-size: 16px;
}

.--line-2 {
    left: 50%;
    top: -192px;
    width: calc(100% + 200px);
    transform: translateX(-50%);
}

.form__container {
    background: var(--blue);
    padding: 56px;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    max-width: 656px;
    z-index: 1000;
    box-shadow: 
        0 0 32px rgb(0 0 0 / 5%),
        0 0 16px rgb(0 0 0 / 10%),
        0 0 4px rgb(0 0 0 / 5%);
    transform: translateX(100%);
}

.form__header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inscription-form-container {
    margin-right: 64px;
}

.inscription-form-wrapper {
    justify-content: flex-end;
}

.form__container--inscription {
    border-radius: 6px;
    margin-left: auto;
    position: relative;
    background: var(--blue-transparent);
    padding: 56px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 656px;
    z-index: 1000;
    box-shadow: 
        0 0 32px rgb(0 0 0 / 5%),
        0 0 16px rgb(0 0 0 / 10%),
        0 0 4px rgb(0 0 0 / 5%);
}

.form__header-container {
    text-align: center;
    margin-bottom: 32px;
}

.form__thank-you {
    display: none;
    text-align: center;
}

.form__thank-you > h2 {
    color: var(--gold);
}

.form__thank-you > p {
    color: var(--white);
}

.form__thank-you strong {
    color: var(--white);
    font-weight: 600;
}

.form__decoration {
    height: 32px;
    margin-bottom: 16px;
}

.form__title {
    color: var(--light-gold);
    font-size: 28px;
    line-height: 52px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form__p,
.form__p > strong {
    color: var(--beige);
}

.form__wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

label {
    color: var(--beige);
    font-weight: 600;
}

.form-control {
    border-radius: 2px;
    border: 2px solid var(--beige);
    padding: 0.4rem 0.75rem;
}

.form-control:focus {
    border-color: var(--light-gold);
    box-shadow: 0 0 0 0.25rem rgb(255 219 130 / 25%);
}

.form-button {
    position: relative;
    background: var(--gold) !important;
    border-radius: 0px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    margin: 16px auto;
    padding: 0.75rem 1.5rem;
    overflow: hidden;
    color:rgb(0 0 0 / 0%) !important;
    transition: 0.3s;
    border: none !important;
}

.form-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 0px 2px rgb(255 255 255 / 10%),
        0 4px 16px rgb(202 179 121 / 40%),
        0 8px 72px rgb(202 179 121 / 40%);
}

.form-button:active {
    transform: translateY(1px);
}

.form-button > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
}

.form-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-color: var(--light-gold);
    opacity: 0.5;
}

.form-button > img {
    position: absolute;
    top: 0;
    left: 60%;
    height: 400%;
    opacity: 0.5;
    transition: 0.3s;
}

.form-button:hover > img {
    animation: button-blob-scroll infinite linear 3.5s;
}

@keyframes button-blob-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-75%);
    }
}

#inscription {
    padding: 64px 0;
}

.input-group {
    border: 2px solid var(--light-gold);
    border-radius: 2px;
}

.input-group > .form-control {
    border: none;
}

.input-group-text {
    background: var(--beige);
    border-radius: 0 1px 1px 0;
    padding: 0.375rem 1rem;
    color: var(--gold);
    border-left: 2px solid var(--light-gold);
    border-top: none;
    border-right: none;
    border-bottom: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.--blob-2 {
    top: 50%;
    left: -80px;
    /* height: 100%; */
    width: 50%;
    transform: translateY(-50%);
}

.--line-3 {
    left: 50%;
    top: -80px;
    width: calc(100% + 200px);
    transform: translateX(-50%);
}

.map-container {
    width: 100%;
    margin: 32px 0;
}

.map-container > iframe {
    width: 100%;
    height: 504px;
    box-shadow: 
        0 4px 8px rgb(0 0 0 / 6%),
        0 0 8px rgb(0 0 0 / 4%);
}

.--line-4 {
    left: 50%;
    top: 0px;
    width: calc(100vw + 200px);
    transform: translateX(-50%);
}

#gallerie {
    margin-bottom: 0;
    padding-bottom: 80px;
}

.carousel__blue-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 128px;
    background: var(--blue);
    left: 0;
}

.partenaires-text {
    text-align: center;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.partenaires-list {
    display: flex;
    height: 96px;
    margin-bottom: 32px;
    justify-content: center;
}

.partenaire-item img {
    height: 100%;    
}

.footer-section {
    margin-top: 48px;
    margin-bottom: 80px;
}

.footer-texts {
    display: flex;
    align-items: flex-end;
    margin: 12px 0;
    gap: 48px;
}

.footer-logo {
    height: 104px;
}

.footer-divider {
    width: 100%;
    border-top: 1px solid var(--gold);
}

.footer-links-list {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.footer-links-list > a {
    width: fit-content;
    padding: 0;
    color: var(--gold);
    text-decoration: none;
}

.--line-2,
.--line-3 {
    opacity: 0.5;
}

.scene {
    position: absolute;
    width: 300px;
    height: 200px;
    perspective: 5000px;
    top: 50%;
    left: 50%;
    transform: scale(1.7) translateX(-50%) translateY(-50%);
    transition: 0.6s;
}
.scene:hover {
    transform: scale(1.7) translateX(-50%) translateY(-50%);
}

.scene:hover .box-container,
.scene:hover .box__shadow--blur-1,
.scene:hover .box__shadow--blur-2 {
    animation-play-state: paused;
}

.box-container {
    position: relative;
    transform-style: preserve-3d;
    animation: float 5s infinite;
}

.box {
    width: 300px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(12deg) rotateZ(-6deg);
    box-shadow: 
        -2px 8px 128px -12px rgb(202 179 121 / 50%),
        -1px 4px 24px -2px rgb(202 179 121 / 80%);
    /* animation: float 5s infinite; */
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.6s cubic-bezier(.14,1,.78,1);
}

.box:hover {
    transform: translateZ(800px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) !important;
    box-shadow: 
        -2px 8px 80px -12px rgb(202 179 121 / 80%),
        -1px 4px 24px -2px rgb(202 179 121 / 100%);
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(-50px);
    }
    50% {
        transform: translateY(-8px) translateZ(-50px);
    }
    100% {
        transform: translateY(0px) translateZ(-50px);
    }
}

.box__tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    background: #333333;
    border-radius: 4px;
    padding: 2px 8px;
    color: #ffffff;
    opacity: 0;
    transform: translate3d(-50%, -4px, 10px);
    width: fit-content;
    white-space: nowrap;
    font-size: 8px;
    transition: 0.3s;
}

.box__tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    
    border-top: 4px solid #333333;
}

.box:hover > .box__tooltip {
    opacity: 1;
    transform: translate3d(-50%, calc(-100% - 4px), 10px);
}

.box__face {
    position: absolute;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.box__face--front,
.box__face--back {
    width: 300px;
    height: 200px;
    line-height: 200px;
}

.box__face--right,
.box__face--left {
    width: 16px;
    height: 200px;
    left: 100px;
    line-height: 200px;
}

.box__face--top,
.box__face--bottom {
    width: 300px;
    height: 16px;
    top: 50px;
    line-height: 100px;
}

.box__face--front  { 
    background-image:
    radial-gradient(circle at top center,
      rgb(255 255 255 / 15%) 0%,
      rgb(255 255 255 / 5%) 8%,
      rgb(255 255 255 / 0%) 13%,
      rgb(255 255 255 / 25%) 20%,
      rgb(255 255 255 / 0%) 25%,
      rgb(255 255 255 / 0%) 40%,
      rgba(0 0 0 / 50%) 100%
    ),
    url(../img/plan.png);
    background-position: 0% 0%, center;
    background-size: 400% 600%, contain;
    background-repeat: no-repeat;
    background-color: #ffffff;
    transition: background-size 0.6s cubic-bezier(.14,1,.78,1);
}
.box__face--right,
.box__face--back,
.box__face--left,
.box__face--top,
.box__face--bottom {
    background: var(--blue); 
}

.box__face--front  { transform: rotateY(  0deg) translateZ( 8px); }
.box__face--back   { transform: rotateY(180deg) translateZ( 8px); }

.box__face--right  { transform: rotateY( 90deg) translateZ(188px); }
.box__face--left   { transform: rotateY(-90deg) translateZ(108px); }

.box__face--top    { transform: rotateX( 90deg) translateZ(58px); }
.box__face--bottom { transform: rotateX(-90deg) translateZ(142px); }

.box__shadow {
    margin-top: 0px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
}

.box__shadow--blur-1 {
    position: absolute;
    background:rgb(0 0 0 / 6%);
    filter: blur(12px);
    width: 200px;
    height: 100px;
    border-radius: 50%;
    transform: translateZ(-50px) rotateX(80deg);
    animation: fade-1 5s infinite;
}

.pitch__image-container {
    position: relative;
    flex-grow: 1;
    height: 400px;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0px 66px 84px 0px rgba(48, 49, 51, 0.1),
      0px 4px 24px 0px rgba(0, 0, 0, 0.25);
  }

  .pitch__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

@keyframes fade-1 {
    0% {
        width: 240px;
        height: 100px;
        background:rgb(0 0 0 / 6%);
        filter: blur(12px);
    }
    50% {
        width: 280px;
        height: 120px;
        background:rgb(0 0 0 / 5%);
        filter: blur(20px);
        transform: translateY(-10px) translateZ(-50px) rotateX(80deg);
    }
    100% {
        width: 240px;
        height: 100px;
        background:rgb(0 0 0 / 6%);
        filter: blur(12px);
    }
}

.box__shadow--blur-2 {
    position: absolute;
    background:rgb(0 0 0 / 10%);
    filter: blur(24px);
    width: 220px;
    height: 80px;
    border-radius: 50%;
    left: 60%;
    transform: translateX(-50%) translateZ(-50px) rotateX(75deg);
    animation: fade-2 5s infinite;
}

@keyframes fade-2 {
    0% {
        background: rgb(0 0 0 / 8%);
    }
    50% {
        background: rgb(0 0 0 / 4%);
    }
    100% {
        background: rgb(0 0 0 / 8%);
    }
}

#secteur {
    text-align: center;
}

#secteur > p {
    text-align: justify;
}


@media screen and (max-width: 1440px) {
    .topbar__logo {
        height: 96px;
    }

    .hero__container {
        align-items: flex-end;
        padding-bottom: 10vh;
    }

    .hero__card {
        max-width: 40vw;
    }

    .hero__divider {
        margin: 16px 0;
    }

    .hero__title {
        font-size: 24px;
        line-height: 32px;
    }

    .hero__paragraph {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .form-button {
        font-size: 16px;
    }

    .kicker {
        font-size: 14px;
    }

    .section {
        margin-top: 48px;
        padding-top: 48px;
    }

    .title {
        font-size: 28px;
        line-height: 48px;
    }

    .highlights-list {
        margin-top: 48px;
    }

    p {
        font-size: 16px;
        line-height: 28px;
    }

    .map-container {
        margin: 32px 0;
    }

    .swiper {
        height: 480px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        padding: 32px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 28px;
    }

    .form__container {
        max-height: 100vh;
        overflow-y: auto;
    }

    .scene {
        transform: scale(1.3) translateX(-50%) translateY(-50%);
    }

    .scene:hover {
        transform: scale(1.3) translateX(-50%) translateY(-50%);
    }
}

@media screen and (max-width: 1320px) {
    .--desktop {
        display: none !important;
    }
}

@media screen and (max-width: 1200px) {
  .highlights-list.--horizontal {
    flex-direction: column;
  }
}

@media screen and (max-width: 1000px) {
    .hero__container {
        padding: 0;
    } 

    .hero__card {
        max-width: none;
        width: 100%;
    }

    .--line-1,
    .--line-2,
    .--line-3 {
        display: none;
    }

    .unit-card-container {
        margin: 0 0 32px 0;
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .topbar__maquette {
        transform: scale(0.5) translateY(-128px);
    }
    .topbar__logo {
        top: calc(50vh + 80px);
    }

    .scene {
        transform: scale(1) translateX(-50%) translateY(-50%);
    }

    .scene:hover {
        transform: scale(1) translateX(-50%) translateY(-50%);
    }

    .hero__container {
        flex-direction: column;
        height: fit-content;
    }

    .hero__image {
        position: static;
        height: 80vh;
    }

    .hero__card-bg,
    .form__container--inscription {
        background: var(--blue);
    }

    .section {
        margin-top: 0;
    }

    .title {
        font-size: 22px;
        line-height: 32px;
    }

    p {
        font-size: 14px;
        line-height: 22px;
    }

    #projet {
      background: var(--blue);
      padding-bottom: 32px;
    }

    #projet .kicker {
      color: var(--light-gold);
    }

    #projet .title {
      color: var(--white);
      font-size: 26px;
      font-family: 'Marcellus', serif;
    }

    #projet p {
      color: var(--beige);
    }

    #projet .highlight-title {
      color: var(--white);
    }

    #projet .highlight-icon {
      background: var(--white);
    }


    .highlights-list {
        margin-top: 32px;
    }

    .highlight-item {
        gap: 16px;
    }

    .highlight-icon {
        width: 40px;
        height: 40px;
        padding: 16px;
    }

    .highlight-icon > img {
        width: 20px;
        height: 20px;
    }

    .highlight-title {
        font-size: 16px;
        line-height: normal;
    }

    .highlight-p {
        font-size: 14px;
        line-height: 22px;
    }
    
    .section.--container-centered {
        align-items: flex-start;
        text-align: left;
    }
    
    .swiper .swiper-slide {
        width: 100% !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
        padding: 24px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }

    #inscription {
        margin-top: 0;
        padding-top: 0;
    }

    .inscription-form-container {
        padding: 0;
    }

    .form__container--inscription {
        padding: 32px 24px;
        border-radius: 0;
    }

    .form__header-container {
      margin-bottom: 24px;
    }

    .form__title {
      font-size: 26px;
    }

    .form__container--inscription > .form__wrapper {
        gap: 0;
    }

    .form__container--inscription .form-group {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .form__container--inscription .form-group > label {
        color: var(--black);
    }

    .form__p {
      color: var(--black);
    }

    .form-control {
      font-size: 14px;
    }

    .form__decoration {
      margin-bottom: 8px;
      height: 26px;
    }

    #secteur > p {
      padding: 0.75rem;
    }

    #inscription {
      padding-bottom: 0;
    }
    
    #form-mobile,
    #form-inscription {
      background: var(--white);
    }

    .form__title {
      color: var(--blue);
    }
    
    #footer {
      margin: 48px 0 0;
    }

    .footer-links-list,
    .footer-divider {
      display: none;
    }

    .footer-texts {
      flex-direction: column;
      align-items: center;
      background: var(--blue);
      padding: 64px 0;
      margin: 0;
      gap: 32px;
    }

    .footer-texts p {
      text-align: center;
      width: 240px;
      color: var(--white);
    }

    .pitch__image-container {
      height: 200px;
      width: 100%;
    }

}

@media screen and (max-width: 500px) {
    .--tablet {
        display: none !important;
    }
}

@media screen and (min-width: 500px) {
    .--mobile {
        display: none !important;
    }
}

@media screen and (max-height: 800px) {
    .hero__card {
        padding: 16px 24px;
    }
}