:root {
    --duration: 1.618s;
    --duration-short: 618ms;
    --easing: cubic-bezier(.83,.02,.28,.99);
    --easing-elastic: cubic-bezier(.65,-0.39,.4,1);
    --violet: #882179;
    --violet-bis: #46323D;
    --blue: #161A4B;
    --light-blue: #8289E6;
    --low-contrast-grey: #EDEDED;
}

@font-face {
    font-family: "Nohemi";
    src: url("./fonts/Nohemi-Regular.woff") format("woff");
}

@font-face {
    font-family: "Mango";
    src: 
        url("./fonts/MangoGrotesque-SemiBold.woff2") format("woff2"),
        url("./fonts/MangoGrotesque-SemiBold.otf") format("opentype");
}

@font-face {
    font-family: "Switzer";
    src: url("./fonts/Switzer-Regular.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Switzer";
    src: url("./fonts/Switzer-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Switzer";
    src: url("./fonts/Switzer-Medium.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Switzer";
    src: url("./fonts/Switzer-Bold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
    font-style: normal;
}

body {
    /* cursor: url('./cursors/glass-cursor.ani') 32 32,
        url('./cursors/glass-cursor.png') 32 32,
        auto; */
}

p strong {
    font-weight: 800;
}

/* START ------------------------------------------ Hero logo */
#hero-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
#hero-logo {
    position: relative;
    z-index: 10;
    width: 20vw;
    height: auto;
    aspect-ratio: 1;
}
@media screen and (max-width: 500px) {
    #hero-logo {
        width: 70vw;
    }
}
#logo-box {
    box-shadow: rgba(0, 0, 0, 0.404) 0 0 5px 10px;
}
#logo-box, #logo-outer-frame, #logo-cross, #logo-v, #logo-a, #logo-d, #logo-e, #logo-e-accent {
    opacity: 0;
}
#logo-box, #logo-outer-frame {
    animation: fade-in var(--duration) var(--easing) forwards;
}
#logo-cross {
    animation: fade-in calc(var(--duration-short) * 1.618) var(--duration) var(--easing) forwards;
}
#logo-v {
    animation: fade-in var(--duration) calc(var(--duration) + var(--duration-short)) var(--easing) forwards;
}
#logo-a {
    animation: fade-in var(--duration)  calc(var(--duration) + var(--duration-short) * 2) var(--easing) forwards;
}
#logo-d {
    animation: fade-in var(--duration)  calc(var(--duration) + calc(var(--duration-short) * 3)) var(--easing) forwards;
}
#logo-e, #logo-e-accent {
    animation: fade-in var(--duration)  calc(var(--duration) + calc(var(--duration-short) * 4)) var(--easing) forwards;
}
/* END -------------------------------------------- Hero logo */

/* Grid effect */
.grid {
    position: absolute;
    top: 0; 
    left: 0;
    width: 200%; /* Augmenté pour avoir plus d'espace avec 21 images */
    height: 200%;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colonnes au lieu de 5 */
    grid-template-rows: repeat(3, 1fr); /* 3 rangées (7x3 = 21) */
    gap: 1rem; /* Espacement entre les images */
    z-index: 0;
}

.grid > div {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

figure {
    position: absolute;
    inset: 0.5rem;
    padding: 0;
    margin: 0;
}
/* End Grid Effect */


/* START ------------------------------------------ Hero banner section (home with background map) */
#svg-mapping-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mapping-svg {
    width: 130%;
    height: 130%;
}
@media screen and (max-aspect-ratio: 1.2/0.9) {
    /* #mapping-svg, #mapping-svg g {
        height: 100vh;
        width: auto;
    } */
}
#mapping-svg path {
    stroke-dasharray: 2000;  
    stroke-dashoffset: 2000;
    animation: draw 20s var(--easing) forwards; 
    stroke: rgb(216, 216, 216) !important;
}
#mapping-svg #outer-path {
    opacity: 0;
    animation-duration: 35s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes opacity {
  to {
    opacity: 1; 
  }
}


/* END ------------------------------------------ Hero banner section (home with background map) */

/* START ------------------------------------------ Text Appear effect */
.text-appear {
    text-align: center;
    font-optical-sizing: auto;
    font-style: normal;
}

.ta-div {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.text-appear.not-centered .ta-div {
    justify-content: flex-start;
}

.char {
    transform: translateY(100%);
    z-index: 1000;
    white-space: pre;
    /* color: #1f1f1f; */
}

.text-appear.strong .char {
    font-weight: 600;
}

.violet-letter {
    color: var(--violet);
}
.light-blue-letter {
    color: var(--light-blue);
}
/* END -------------------------------------------- Text Appear effect */



/* START ------------------------------------------ Fixed-section */

/* END -------------------------------------------- Text Appear effect */



/* START ------------------------------------------ Fade element */
.fade {
    transform: scale(0);
}
.fade-show {
    animation: fade-in var(--duration) var(--easing) forwards;
}
/* END -------------------------------------------- Fade Element */



/* START ------------------------------------------ Fade element */
.reveal {
    transform: scale(0);
}
.reveal-show {
    animation: reveal var(--duration) var(--easing) forwards;
}
/* END -------------------------------------------- Fade Element */

/* START ------------------------------------------ Custom slider */
#team-section {
    position: relative;
}
#team-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/decorations/team-slider-bg-transparent.png");
    background-size: cover;
    background-position: center;
    z-index: 10;
    pointer-events: none;
}
@media screen and (max-width: 961px) {
    #team-section::after {
        background-image: url("/images/decorations/team-slider-bg-transparent-tablet-big.png");
    }
}
@media screen and (max-width: 810px) {
    #team-section::after {
        background-image: url("/images/decorations/team-slider-bg-transparent-tablet.png");
    }
}
@media screen and (max-width: 500px) {
    #team-section::after {
        background-image: url("/images/decorations/team-slider-bg-transparent-mobile.png");
    }
}
.cus-nav-container .uk-panel > div {
    display: flex;
    justify-content: center;
}
.cus-nav {
    display: flex;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 15;
}
.cus-nav:active {
    transform: translateY(11px);
}
.cus-nav.forbidden {
    opacity: 0.25;
    cursor: default;
}
.cus-nav svg circle {
    fill: #FDFDFD;
}
@media screen and (max-width: 810px) {
    .cus-nav, .cus-nav svg {
        width: 70px;
        height: 70px;
    }
}
#bg-title {
    text-transform: uppercase;
    color: var(--low-contrast-grey);
    /* mix-blend-mode: difference; */
    font-family: "Mango";
    font-size: 250px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
@media screen and (max-width: 810px) {
    #bg-title {
        font-size: 30vw;
    }
}
#bg-title .ta-div {
    overflow: visible;
}
#custom-slider-pics {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 15;
}
@media screen and (max-width: 780px) {
    #custom-slider-pics {
        max-height: 80vw;
    }
}
#custom-slider-pics .uk-grid {
    /* overflow-x: hidden; */
    padding: 25px;
}
#custom-slider-pics .uk-grid > div {
    position: relative;
    width: 100%;
    min-height: 450px;
    /* overflow: hidden; */
}
#custom-slider-pics .uk-grid > div > div {
    position: absolute !important;
    /* width: 365px;
    height: 525px; */
    width: 293px;
    height: 425px;
}
@media screen and (max-width: 810px) {
    #custom-slider-pics .uk-grid > div > div {
        position: absolute !important;
        width: 48vw;
        height: 69.65vw;
        max-width: 332px !important;
        max-height: 469px !important;
    }
}
#custom-slider-pics img {
    /* width: 365px;
    height: 525px; */
    user-select: none;
    -webkit-user-select: none;
}
#custom-slider-pics .uk-grid > div > div {
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    width: 100%;
}
#custom-slider-pics .uk-grid > div > div {
    width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#custom-slider-pics .uk-grid > div > div:not(:first-of-type) {
    transform: translateX(50vw);
}
@media screen and (max-width: 810px) {
    #custom-slider-pics .uk-grid > div > div:not(:first-of-type) {
        transform: translateX(100vw);
    }
}
#custom-slider-pics .show-image {
    animation: show-slider-img var(--duration-short) var(--easing) forwards;
}
#custom-slider-pics .hide-image {
    animation: hide-slider-img var(--duration-short) var(--easing) forwards;
}
#custom-slider-pics img {
    box-shadow: rgba(0, 0, 0, 0.065) 0px 1vw 1.25vw 0.2vw;
}
#custom-slider-pics .uk-grid > div > div:nth-child(3n + 1) img {
    transform: rotate(-2deg);
}
#custom-slider-pics .uk-grid > div > div:nth-child(3n + 2) img {
    transform: rotate(1deg);
}
#custom-slider-pics .uk-grid > div > div:nth-child(3n + 3) img {
    transform: rotate(3deg);
}
@keyframes show-slider-img {
    from {
        opacity: 0;
        transform: scale(0.15) translateX(50vw);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0vw);
    }
}
@keyframes hide-slider-img {
    from {
        opacity: 1;
        transform: scale(1) translateX(0vw);
    }
    to {
        opacity: 0;
        transform: scale(0.15) translateX(50vw);
    }
}
#custom-slider-content {
    position: relative;
    z-index: 15;
}
/* #custom-slider-content-line {
    margin-left: -10px;
}
#custom-slider-content-line > div {
    padding-left: 0px;
} */
#custom-slider-content h2 {
    color: white;
}
#custom-slider-content p {
    color: rgb(226, 226, 226);
}
#custom-slider-content p strong {
    color: white;
}
#custom-slider-content hr {
    opacity: 0.1;
}
#custom-slider-content > .uk-container {
    overflow: hidden;
    width: max-content;
}
#custom-slider-content > .uk-container > .uk-grid > div {
    display: flex;
}
#custom-slider-content > .uk-container > .uk-grid > div > .uk-panel {
    min-width: 100%;
    margin-top: 0px !important;
    padding: 0 10px;
}
.encart-violet {
    background: var(--violet-bis);
    padding: 15px 25px;
    border-radius: 10px;
    max-width: max-content;
}
.encart-violet * {
    color: white;
}
@media screen and (max-width: 960px) {
    .profile-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .profile-header > div:nth-of-type(2) .uk-panel {
        display: flex;
        justify-content: center;
    }
    #custom-slider-content > .uk-container > .uk-grid > div > .uk-panel {
        min-width: calc(100vw - 25px) !important;
        max-width: calc(100vw - 25px) !important;
    }
    #custom-slider-content p {
        text-align: center !important;
    }
    #custom-slider-content h2 {
        margin-top: 5vh;
    }
    .rain-btn {
        text-align: center;
    }
}

/*  */
.flip-card {
    position: relative;
    display: inline-block;
    perspective: 1000px;
    /* width: 325px;
    height: 485px; */
}

.flip-card-inner {
    position: relative;
    width: 293px;
    height: 425px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform .6s var(--easing);
}
@media screen and (max-width: 810px) {
    .flip-card-inner {
        width: 48vw;
        height: 69.65vw;
        max-width: 332px !important;
        max-height: 469px !important;
    }
}
.flip-card-inner:hover {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
}


/*  */

/* END -------------------------------------------- Custom slider */


/* START ------------------------------------------ Other things */
.uk-navbar a.uk-logo {
    opacity: 0;
}

.large-media img, .large-media video, .large-media canvas, .large-media svg {
    min-width: 90vw !important;
    max-width: none !important;
    height: auto;
}
.medium-media img, .medium-media video, .medium-media canvas, .medium-media svg {
    min-width: 46vw !important;
    max-width: none !important;
    height: auto;
}
.small-media img, .small-media video, .small-media canvas, .small-media svg {
    min-width: 35vw !important;
    max-width: none !important;
    height: auto;
}

.fixed-section {
    width: 100vw;
    height: 100vh;
    padding: 0px !important;
    margin: 0px !important;
}
.fixed-section > div {
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radius, .radius img, .radius video {
    border-radius: 10px;
}

.uk-button {
    overflow: hidden;
}
.uk-button:hover .content {
    transform: translateY(-100%);
}
.uk-button .content {
    transition: transform var(--duration-short) var(--easing);
    position: relative;
}
.uk-button .content::after {
    content: attr(data-cta-text);
    position: absolute;
    top: 100%;
    left: 0;
}

/* #scroll-hint-container {
    position: relative;
} */
#scroll-hint {
    position: fixed !important;
    z-index: 10;
    right: 10px;
    bottom: 10px;
    opacity: 0;
    animation: appear var(--duration-short) linear 5.6s forwards;
    pointer-events: none;
}
#scroll-hint .rotate {
    animation: rotate 3.618s var(--easing-elastic) infinite;
    transform-origin: center;
}
@media screen and (max-width: 800px) {
    #scroll-hint {
        display: none;
    }
}

.tm-header-placeholder {
    display: none !important;
}


.worded-parcelle {
    position: relative;
    
}

.rotated {
    padding: 5px 30px;
    border-radius: 50px;
    transform: rotate(-5deg);
    max-width: max-content;
}
.r-blue {
    background: var(--light-blue);
}

.mbm-diff {
    mix-blend-mode: difference;
}

.white-border > div {
    border: 6px solid white;
}

@media screen and (max-width: 501px) {
    .max-90-width {
        max-width: 90vw !important;
        width: unset !important;
    }
}

.text-appear-simple {
    opacity: 0;
}

@media screen and (max-width: 700px) {
    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-text-center .uk-flex-right, .mobile-text-center .uk-flex-left {
        justify-content: center;
    }

    .mobile-reduced-image {
        max-width: 55vw !important;
    }
}

.separator {
    width: 100%;
    height: 4vh;
}

@media screen and (min-width: 700px) {
    .mobile-only {
        display: none;
    }
}

.translated-y-25 {
    transform: translateY(25px);
}

.translated-y-50 {
    transform: translateY(50px);
}

.translated-y-75 {
    transform: translateY(75px);
}

.padding-y-25 {
    padding: 25px 0;
}
.padding-y-35 {
    padding: 35px 0;
}
.padding-y-50 {
    padding: 50px 0;
}

.sublayout-cuvée {
    position: relative;
}

/* .coup-de-coeur-cuvée {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
} */

.coup-de-coeur-cuvée {
    opacity: 0;
    transition: opacity .6s var(--easing);
    backdrop-filter: blur(5px);
}

.sublayout-cuvée .uk-panel:hover .coup-de-coeur-cuvée {
    opacity: 1;
}

.djpopup-popup {
    backdrop-filter: blur(8px);
}
.djpopup-popup .uk-modal-close svg path {
    stroke: white !important;
}
.djpopup-popup .uk-modal-dialog {
    border-radius: 10px;
    overflow: hidden;
}

.repeat-bg-image .uk-background-norepeat {
    background-repeat: repeat !important;
}

.no-delay {
    animation-delay: 0s !important;
}

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

#all-wines > .uk-background-norepeat > .uk-container {
    position: relative;
}

#all-wines #wines-filter p {
    background: var(--blue);
    padding: 5px 15px;
    border-radius: 50px;
    color: rgba(219, 219, 219, 0.425);
}

#all-wines #wines-filter p a {
   color: rgb(255, 255, 255);
   scroll-behavior: smooth;
   font-weight: 600;
}

#all-wines #wines-filter {
    position: sticky;
    bottom: 15px;
    z-index: 991;
}

#wines-filter a {
    opacity: 0.6;
}

#wines-filter a:hover {
    opacity: 0.8;
    text-underline-offset: 4px;
}

#wines-filter a.active-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 1;
}

.rain-drop {
    /* transform: translateY(-20vh) rotate(0deg); */
    /* top: -50vh */
}
/* .bg-parcelle {
    position: relative;
}
.bg-parcelle, .bg-parcelle p {
    max-width: max-content;
    overflow: visible;
    padding: 10px 15px;
}
.parcelle-image {
    width: 150px;
    height: auto;
} */
/* .bg-parcelle {
    background-image: url('/images/decorations/Group 56.svg');
    background-size: cover;
    background-position: center;
}
.bg-parcelle-54-dark-blue {
    background-image: url('/images/decorations/Group 54-dark-blue.svg');
}
.bg-parcelle-54-green {
    background-image: url('/images/decorations/Group 54-green-47pct-opacity.svg');
}
.bg-parcelle-full-map {
    background-image: url('/images/decorations/bg-map-svg-5B-simplified.svg');
} */
/* END -------------------------------------------- Other things */

/* START ------------------------------------------ Hide accords mets et vins modules */
/* #module-115 {
    transform: scale(0);
    height: 0px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50% -50%);
}
#module-115.opened {
    transform: scale(1);
    animation: scale-up var(--duration) var(--easing);
}
#module-115.closed {
    transform: scale(0);
    animation: scale-down var(--duration-short) var(--easing);
}
.close-accords-icon {
    cursor: pointer;
} */
/* END -------------------------------------------- Hide accords mets et vins modules */


@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes reveal {
    to {
        transform: scale(1);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scale-up {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes scale-down {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0);
    }
}