@font-face {
    font-family: "Instrument-italic";
    src: url("./fonts/InstrumentSerif-Italic.ttf") format('truetype');
}

@font-face {
    font-family: "Alpino";
    src: url("./fonts/Alpino-Variable.woff2");
}

:root {
    --brown: #726451;
    --brown-light: #cfba9f;
    --grey: #777777;
    --grey-light: #D9D9D9;
    --red: #ad3030;
}

h1, h2, h3, h4, h5, h6, p, a, .ta-div .char {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    text-rendering: optimizeLegibility;
}

/* Cursor */
/* body {
    cursor:
        url("/images/cursors/mouse.png") 4 12,
        auto;
}

button, a {
    cursor:
        url("/images/cursors/pointer.png") 4 12,
        pointer;
} */


/* Title and apparition effect */

.title em, .title i {
    font-style: normal;
    font-family: "Instrument-italic";
}

.title {

}

.text-appear {
    text-align: center;
    font-optical-sizing: auto;
    font-style: normal;
    opacity: 0;
}

.ta-div {
    position: relative;
    display: flex;
    justify-content: center;
    overflow-y: hidden;
    overflow-x: visible;
    /* padding: 0 0.1em; */
}

.ta-div.bigger {
    font-size: 102px;
}

@media screen and (max-width: 800px) {
    .ta-div .char {
        font-size: 48px;
    }
    .ta-div.bigger .char {
        font-size: 62pxpx;
    }
}

@media screen and (max-width: 540px) {
    .large-content .ta-div .char {
        font-size: 8vw;
    }
    .ta-div.bigger .char {
        font-size: 10vw;
    }
}

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

.char {
    transform: translate3d(0, 100%, 0);
    z-index: 1000;
    white-space: pre;
    /* padding-left: 0.1em; */
    /* color: #1f1f1f; */
}

.ta-div .char:first-child {
    padding-left: 0.1em;
}

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

.italic {
    font-family: "Instrument-italic";
}

.brown-text {
    color: var(--brown);
}

.brown-light-text {
    color: var(--brown-light);
}

.white-text {
    color: white;
}

.big-text {
    font-size: 26px;
}

@media screen and (max-width: 540px) {
    .big-text {
        font-size: 22px;
    }
}

/* Hero section */
#hero, #home-hero {
    position: relative;
}

@media screen and (min-width: 640px) and (max-width: 1100px) {
    #home-hero > div {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }
}

/* #hero-slider ul img {
    position: relative;
}

#hero-slider ul img::after {
    position: absolute !important;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.452);
} */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.479);
}

/* Home Hero buttons */
.buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    /* bottom: 8vh; */
    z-index: 1;
    /* position: absolute; */
}

.buttons-container:is(.absolute) {
    position: absolute;
    bottom: 8vh;
    z-index: 10;
}

.buttons-container > div {
    background: #d9d9d9b9;
    padding: 10px;
    border-radius: 45px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: max-content;
    max-width: 82vw;
}

@media screen and (max-width: 640px) {

    .buttons-container {
        margin-top: 6vh;
        bottom: 4vh;
    }

    .buttons-container > div {
        border-radius: 15px;
    }
}

.buttons-container .el-item {
    padding-left: 0px;
}

.buttons-container .uk-grid-margin {
    margin: 0px !important;
}

/* Home hero gallery */
#folded-gallery {
    margin-top: 4vh !important;
}

#folded-gallery .uk-grid {
    position: relative;
    margin: 0px !important;
}

#folded-gallery .uk-grid > div {
    padding-left: 0px !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 23vw;
    max-width: 252px !important;
    aspect-ratio: 0.618;
    overflow: hidden;
    min-width: 0px !important;
    opacity: 0.5;
}

#folded-gallery .uk-grid .el-item img {
    width: inherit;
    aspect-ratio: inherit;
    min-width: 0px !important;
    max-width: 252px !important;
    object-fit: cover;
}

/* Home hero animation  */
#home-hero .home-hero-img-container {
    position: absolute;
    transform: translateX(-50%) translateY(-50%);
    width: 23vw;
    max-width: 252px !important;
    aspect-ratio: 0.618;
    overflow: hidden;
    min-width: 0px !important;
    z-index: 0;
    border-radius: 10px;
}
#home-hero .home-hero-img-container img {
    width: inherit;
    aspect-ratio: inherit;
    min-width: 0px !important;
    max-width: 252px !important;
    object-fit: cover;
}

/* Apparition des images */
.show-img {
    /* overflow: hidden; */
}
.show-img img, .show-img p, .show-img > a, .show-img .el-item > a {
    opacity: 0; 
    transform: translateY(30%);
    will-change: transform;
}

/* Text reveal */
.tr {
    font-family: "Instrument Serif";
    font-size: 46px;
}

@media screen and (max-width: 600px) {
    .tr {
        font-size: 7vw;
    }
}

/* Other styles */
.uk-border-rounded {
    border-radius: 10px;
}

.el-meta a {
    cursor: default;
}

.accordeon .el-title {
    font-size: 40px;
}

@media screen and (min-width: 800px) {
    #timeline .el-meta {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    #timeline .date-title {
        display: none;
    }
}

/* About page quizz */

#dragdrop-quizz {
    position: relative;
}

.sticky {
    position: sticky;
    bottom: 25px;
}

#dragdrop-quizz .col-3 {
    flex-grow: unset !important;
}

#get-gift {
    display: none;
}

.djpopup-popup .uk-modal-dialog, .djpopup-popup .uk-modal-body {
    border-radius: 10px;
}

.djpopup-popup .uk-modal-dialog {
    background: var(--brown);
}

.djpopup-popup .uk-modal-dialog svg path {
    stroke: white !important;
}

.question-image {
    /* display: flex;
    flex-direction: column;
    align-items: center; */
}

.question-dropzone {
    width: 100%;
    min-width: 250px;
    aspect-ratio: 1.618;
    border: 3px dashed var(--grey);
    border-radius: 14px;
    overflow: hidden;
}

.question-image.correct .question-dropzone {
    border-color: var(--brown);
    border-style: solid;
}

.question-image.not-correct .question-dropzone {
    border-color: var(--red);
}

.question-image.not-correct {
    animation: shake 1.2s;
}

.question-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 8px;
    width: 100%;
}

.question-legend p {
    background: var(--grey-light);
    padding: 5px 20px;
    border-radius: 4px;
    color: black;
}

.question-image.correct .question-legend p {
    background: var(--brown);
    color: white;
}

.question-image.not-correct .question-legend p {
    background: var(--red);
    color: white;
}

/* Centered vert elems */
.y-centered {
    top: calc(50% - 120px)
}

/* 3D Canvas */
.webgl {
    width: 100%;
    /* margin-left: 20%; */
    height: 100vh;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.sticky-section-scroll {
    position: relative !important;
}

.sticky-section-scroll > div {
    position: sticky !important;
    top: 0px !important;
}

.webgl-section .webgl-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-width: 960px) {

    .webgl-section > div {
       
    }

    .webgl-section .webgl-section-content,
    .webgl-section .webgl-col {
        position: relative;
        top: 0px;
        min-height: 100vh;
    }

    .webgl-section .webgl-section-content {
        z-index: 2;
    }

    .webgl-section .webgl-section-content p {
        max-width: 95vw;
        font-weight: 600;
    }

    .webgl-section .webgl-col {
        position: absolute;
        z-index: 0;
    }

    .webgl-section .webgl-section-content .margin-left {
        margin-left: 4vw !important;
    }
}

/* SVG animated icons */
#heart-svg {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media screen and (max-width: 800px) {
    #heart-svg {
        justify-content: center;
    }
}

.lucide-heart-handshake path {
  /* On définit une valeur arbitraire grande qui sera mise à jour en JS */
  stroke-dasharray: 140;
  stroke-dashoffset: 68;
  transition: stroke-dashoffset 2s ease-in-out;
}

.lucide-heart-handshake.animate path {
  stroke-dashoffset: 0 !important;
}

.white-grid .el-content {
    color: black !important;
}

.margin-left {
    margin-left: 7.5vw !important;
}



@keyframes shake {
    0% { transform: skewX(-10deg); }
    5% { transform: skewX(10deg); }
    10% { transform: skewX(-10deg); }
    15% { transform: skewX(10deg); }
    20% { transform: skewX(0deg); }
    100% { transform: skewX(0deg); }
}