/* FONT ============================================================== */

@font-face {
    font-family: 'Exo';
    src: url('assets/fonts/Exo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Coastal Hand';
    src: url('assets/fonts/Coastal-Hand.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Palmer Lake';
    src: url('assets/fonts/PalmerLakePrint-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ============================================================== FONT */


/* VARIABLES ========================================================= */

body {
    --margin-size: 2rem;
    --margin-size-mobile: 1rem;

    /* colors */
    --green:       #11301E;
    --green-dark:  #10261B;
    --pink:        #FACFBD;
    --porcelain:   #FBFAF3;
    --white:       #fff;
    --blue:        #B1DCEB;
    --blue-medium: #689C9F;
}

/* ========================================================= VARIABLES */


/* BODY ============================================================== */

body{
    margin: 0;
}

/* Override*/
button,
a,
input {
    outline: none;
}

/* ============================================================== BODY */


/* MAIN =============================================================== */

.atlta{
    position: relative;
    background-color: var(--green);
    font-family: 'Palmer Lake', sans-serif;
}

.atlta .col-55 { width: 58%; }
.atlta .col-45 { width: 42%; }

@media screen and (max-width: 1024px) {
    .atlta .col-55,
    .atlta .col-45 { width: 100%; }
}


.atlta p{
    font-size: 36px;
    color: var(--blue);
}

.atlta .text--lg    { font-size: clamp(40px, 5vw, 52px); line-height: calc(clamp(20px, 5vw, 26px) + 4px); }
.atlta .text--md    { font-size: clamp(32px, 5vw, 38px); line-height: calc(clamp(16px, 5vw, 19px) + 4px); }
.atlta .text--right { text-align: end; }

/* =============================================================== MAIN */


/* SUPP INFOS IN THE HEADER =========================================== */

.atlta .poster-header{
    position: relative;
    z-index: 1;
    padding-top: 4rem;
}

.atlta .logo-mde{
    margin-top: 1.25rem;
}

/* =========================================== SUPP INFOS IN THE HEADER */

.atlta .poster-body{
    padding-bottom: 4rem;
}

/* NAVIGATION ========================================================= */

.atlta .nav {
    position: absolute;
    z-index: 20;
    padding-top: 3.5rem;
}

@media screen and (max-width: 1024px) {
    .atlta .nav { position: relative; }
}


.atlta .nav__list {
    display: grid;
    gap: 1.25rem;
    width: 100%;
}

.atlta .btn {
    font-family: 'Exo', sans-serif;
    width: fit-content;
    padding-right: 1rem;
    border: 1.5px solid;
    border-left: none;
    border-radius: 0 40px 40px 0;
    background-color: var(--green);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.atlta .btn:hover{
    border-color: var(--green-dark);
    box-shadow: 0 5px 0 0 var(--green-dark);
}

.atlta .btn:hover .icon-arrow {
    transform: rotate(0deg);
}

.atlta .btn span {
    display: block;
    text-align: start;
    padding: 1.125rem 1.5rem 1.125rem 2rem;
    border-radius: 0 40px 40px 0;
}

.atlta .btn a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(20px, 5vw, 22px);
    line-height: 20px;
    text-decoration: none;
    color: var(--green-dark);
}

.atlta .btn--porcelain { border-color: var(--porcelain); }
.atlta .btn--porcelain:hover { border-color: var(--porcelain); box-shadow: 0 5px 0 0 var(--porcelain); }
.atlta .btn--porcelain span { background-color: var(--porcelain);}

.atlta .btn--with-icon { transition: opacity 0.25s ease;}
.atlta .btn--with-icon:hover { opacity: 0.85; }

.atlta .icon-arrow {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='24px' height='24px' viewBox='0 0 24 24' stroke-width='1.5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-45deg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atlta .eco-label a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2rem 0 0 2rem;
    text-decoration: none;
}

.atlta .eco-label a p,
.atlta .eco-label a img {
    transition: color 0.2s ease, filter 0.2s ease;
}

.atlta .eco-label a:hover p {
    color: var(--blue);
    filter: brightness(0.8);
}

.atlta .eco-label a:hover img {
    filter: brightness(0.8);
}

.atlta .eco-label img{
    height: 20px;
    width: 20px;
}

.atlta .eco-label p{
    font-family: 'Exo', sans-serif;
    color: white;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 20px;
}

/* ========================================================= NAVIGATION */


/* ILLUSTRATION ======================================================= */

.atlta .illustration {
    margin-top: -6.5rem;
    margin-left: 2rem;
    mask-image:
            linear-gradient(to bottom, transparent 0%, black 20%, black 20%, transparent 100%),
            linear-gradient(to right,  transparent 0%, black 20%, black 80%, transparent 100%);
    mask-composite: intersect;
}

.atlta .illustration .mask-video {
    position: relative;
    width: 715px;
    height: 695px;
    overflow: hidden;
    margin-top: -5.5rem;
}

.atlta .illustration video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}

/* ======================================================= ILLUSTRATION */



/* EVENT INFOS ======================================================== */
.atlta .event {
    display: grid;
    gap: 3rem;
    max-width: 525px;
    margin: 0 auto;
}

/* Meta */
.atlta .event__meta {
    position: relative;
    height: 342px;
    width:  525px;
}

.event__date {
    position: absolute;
    bottom: 5.5%;
    left: 7.5%;
    width: 73%;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    border: 3px solid var(--green-dark);
    animation: pill-glow 2.4s ease-in-out infinite;
}

.event__date::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    pointer-events: none;
    animation: border-breathe 2.4s ease-in-out infinite;
}

.event__date p {
    font-size: clamp(50px, 5vw, 75px);
    line-height: clamp(23px, 5vw, 38px);
    color: var(--green-dark);
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    animation: typing-date 1.1s steps(19, end) 0.3s forwards;
    padding-bottom: 0.10em;
}
/* Meta */


/* tw-wrap */
.atlta .tw-wrap {
    position: relative;
    display: inline-block;
}

.atlta .tw-wrap::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 2px;
    background-color: var(--pink);
    opacity: 0;
}

.atlta .tw-wrap--date::after {
    animation:
            cursor-track 1.1s steps(19, end) 0.3s  both,
            cursor-blink 0.7s step-end       0.3s  3,
            hide-cursor  0s                  1.75s forwards;
}

.atlta .tw-wrap--loc1::after {
    animation:
            cursor-track 1.3s steps(25, end) 2.1s both,
            cursor-blink 0.7s step-end       2.1s 3,
            hide-cursor  0s                  3.4s forwards;
}

.atlta .tw-wrap--loc2::after {
    animation:
            cursor-track  0.65s steps(12, end) 3.7s  both,
            cursor-blink  0.7s  step-end       3.7s  3,
            hide-cursor   0s                   4.25s forwards;
}

.atlta .tw-wrap--cta::after {
    animation:
            cursor-track 1.2s steps(29, end) 4.5s both,
            cursor-blink 0.7s step-end       4.5s 3,
            hide-cursor  0s                  5.7s forwards;
}
/* tw-wrap */


/* Location */
.atlta .event__location-wrapper {
    margin-right: clamp(2.25rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atlta .event__location {
    text-align: center;
    white-space: nowrap;

    clip-path: inset(0 100% 0 0);
}

.atlta .event__location--place {
    animation: typing-loc-1 1.3s steps(25, end) 2.1s forwards;
}

.atlta .event__location--time {
    animation: typing-loc-2 0.65s steps(12, end) 3.7s forwards;
}
/* Location */


/* CTA */
.atlta .event__cta {
    position: relative;
    display: grid;
    justify-items: center;
    gap: .5rem;
    max-width: 525px;
    margin-right: clamp(0rem, 5vw, 3.5rem);
}

.atlta .event__cta::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 385px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 50%, var(--blue) 100%);
    background-size: 200% auto;
    transform: rotate(-1deg);
    transform-origin: left center;
    opacity: 0;
    animation: underline-appear 1.25s ease-out 5.7s forwards;
}

.atlta .event__cta-label {
    font-family: 'Coastal Hand', sans-serif;
    font-size: 22px;
    color: var(--white);
}

.atlta .event__cta-link-wrapper {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atlta .event__cta-link-wrapper:hover {
    transform: scale(1.1) rotate(-2deg);
}

.atlta .event__cta-link {
    position: relative;
    color: var(--blue);
    text-decoration: none;
    background: linear-gradient(90deg, var(--blue) 30%, var(--pink) 50%, var(--blue) 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    white-space: nowrap;

    clip-path: inset(0 100% 0 0);

    animation:
            typing-link  1.2s steps(29, end) 4.5s  forwards,
            shimmer      2.5s linear         5.7s  infinite,
            wiggle-loop  5s   ease-in-out    5.7s  infinite;
}
/* CTA */


/*Animations*/
@keyframes typing-date  { to { clip-path: inset(0 0% 0 0); } }
@keyframes typing-loc-1 { to { clip-path: inset(0 0% 0 0); } }
@keyframes typing-loc-2 { to { clip-path: inset(0 0% 0 0); } }
@keyframes typing-link  { to { clip-path: inset(0 0% 0 0); } }

@keyframes cursor-track {
    from { left: 0%;   }
    to   { left: 100%; }
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

@keyframes hide-cursor { to { opacity: 0; } }

@keyframes underline-appear {
    0% {
        opacity: 0;
        transform: rotate(-1deg) scaleX(0.6)  translateX(0);
    }
    50% {
        opacity: 0;
        transform: rotate(-1deg) scaleX(0.6)  translateX(0);
    }
    60% {
        opacity: 1;
        transform: rotate(-1deg) scaleX(1.05)  translateX(-50%);
    }
    100% {
        opacity: 1;
        transform: rotate(-1deg) scaleX(1)  translateX(-50%);
    }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes wiggle-loop {
    0%    { transform: translateX(0)     skewX(0deg);    }
    92%   { transform: translateX(0)     skewX(0deg);    }
    93%   { transform: translateX(-4px)  skewX(-3deg);   }
    94.5% { transform: translateX(4px)   skewX(3deg);    }
    96%   { transform: translateX(-3px)  skewX(-2deg);   }
    97.5% { transform: translateX(2px)   skewX(1deg);    }
    99%   { transform: translateX(-1px)  skewX(-0.5deg); }
    100%  { transform: translateX(0)     skewX(0deg);    }
}

@keyframes pill-glow {
    0%, 100% {
        background-color: var(--white);
        box-shadow: 0 0 0   0  rgba(240,234,214, 0),
        0 0 0   0  rgba(126,207,207, 0);
    }
    40% {
        background-color: var(--white);
        box-shadow: 0 0 18px 6px rgba(240,234,214, .3),
        0 0 25px 4px rgba(126,207,207, .2);
    }
    80% {
        background-color: var(--white);
        box-shadow: 0 0 8px  2px rgba(240,234,214, .1),
        0 0 10px 3px rgba(126,207,207, .1);
    }
}

@keyframes border-breathe {
    0%, 100% { inset: -5px; border-color: rgba(126,207,207, 0);  }
    50%      { inset: -7px; border-color: rgba(126,207,207, .6); }
}
/*Animations*/


/* Dandelion */
.dandelion {
    position: absolute;
    top: 12px;
    left: 35px;
    width: 21%;
    height: auto;
    animation: rotate 30s linear infinite;
}

.img-text {
    position: absolute;
    top: 12px;
    left: 35px;
    width: 21%;
    z-index: 20;
}

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


/* Flowers */
img#flower1,
img#flower2,
img#flower3,
img#flower4 {
    position: absolute;
    bottom: 0.5%;
    left: 74.5%;
    width: 24%;
    transform-origin: bottom center;
}

img#flower1 { animation: sway1 5.5s cubic-bezier(.45,.05,.55,.95) infinite;       }
img#flower2 { animation: sway2 6.8s cubic-bezier(.45,.05,.55,.95) infinite 1.1s; }
img#flower3 { animation: sway3 5.9s cubic-bezier(.45,.05,.55,.95) infinite 0.4s; }
img#flower4 { animation: sway4 7.2s cubic-bezier(.45,.05,.55,.95) infinite 2s;   }

@keyframes sway1 {
    0%, 100% { transform: rotate(0deg);    }
    35%      { transform: rotate(1.8deg);  }
    65%      { transform: rotate(-1.2deg); }
}
@keyframes sway2 {
    0%, 100% { transform: rotate(0deg);    }
    40%      { transform: rotate(-1.5deg); }
    70%      { transform: rotate(1deg);    }
}
@keyframes sway3 {
    0%, 100% { transform: rotate(0deg);    }
    30%      { transform: rotate(2deg);    }
    60%      { transform: rotate(-0.8deg); }
}
@keyframes sway4 {
    0%, 100% { transform: rotate(0deg);    }
    45%      { transform: rotate(-1.8deg); }
    75%      { transform: rotate(1.2deg);  }
}
/* ======================================================== EVENT INFOS */

/* PARTNERS =========================================================== */
.atlta .partners {
    background-color: var(--white);
}
/* =========================================================== PARTNERS */

/* MOBILE ============================================================= */
@media (max-width: 768px) {

    .atlta {
        display: flex;
        flex-direction: column;
    }

    .atlta .poster-header { order: 1; }
    .atlta .poster-body   { order: 2; }
    .atlta .nav           { order: 3; }
    .atlta .partners      { order: 4; }

    .atlta .poster-body{
        padding-bottom: 0;
    }

    .atlta .nav {
        margin: 4rem 0;
        padding-top: 0;
    }

    .atlta .btn { margin-right: 15px; }

    .atlta .eco-label a{
        flex-direction: column;
        gap: 12px;
        padding: 2rem 0 0 0;
    }

    .atlta .event {
        gap: 2rem;
        margin-top: -5.5rem;
        margin-inline: 15px;
    }

    .atlta .event__meta {
        width: 360px;
        height: auto;
        margin-top: 0;
    }

    .atlta .btn span {
        padding: 1rem;
    }

    .atlta .illustration {
        --size: 390px;
        width: var(--size);
        height: var(--size);
        margin: 0 auto;
        mask-image:
                linear-gradient(to bottom, transparent 0%, black 20%, black 20%, transparent 100%),
                linear-gradient(to right,  transparent 0%, black 60%, black 60%, transparent 100%);
    }

    .atlta .illustration .mask-video {
        width: var(--size);
        height: var(--size);
        margin-top: 0;
    }

    .atlta .illustration video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .atlta .event__details { margin: 0 auto; }

    .atlta .event__cta::after {
        width: 330px;
    }

    .atlta .partners img {
        height: 90px;
    }
}
/* ============================================================= MOBILE */