/*
Theme Name: Mems Events
Theme URI: https://mems-events.fr/
Author: Mems Events
Description: Thème sur mesure du site Mems Events.
Version: 0.2.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: mems-events
*/

:root {
    --paper: #fffaf3;
    --paper-bright: #fffefa;
    --ink: #352437;
    --ink-soft: #725b71;
    --pink: #eb197d;
    --pink-deep: #c50066;
    --coral: #ff8878;
    --sun: #ffc84d;
    --mint: #bcead9;
    --sky: #bfe8f3;
    --display: "Cooper Black", "Rockwell Extra Bold", Rockwell, Georgia, serif;
    --sans: "Century Gothic", Futura, "Avenir Next", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    line-height: 1.5;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--paper-bright);
    background: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
    transform: translateY(0);
}

.site-main {
    min-height: calc(100svh - 4.25rem);
}

.coming-soon {
    position: relative;
    display: grid;
    min-height: calc(100svh - 4.25rem);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 5vw, 5.5rem) clamp(1.25rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 8% 8%, rgba(191, 232, 243, 0.86) 0 8%, transparent 29%),
        radial-gradient(circle at 88% 4%, rgba(188, 234, 217, 0.76) 0 9%, transparent 31%),
        radial-gradient(circle at 8% 92%, rgba(235, 25, 125, 0.14) 0 8%, transparent 31%),
        radial-gradient(circle at 92% 91%, rgba(255, 200, 77, 0.24) 0 10%, transparent 31%),
        linear-gradient(135deg, #fff8ef 0%, #fffdf8 42%, #f8fff9 100%);
}

.coming-soon::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(53, 36, 55, 0.07) 0 0.75px, transparent 0.85px),
        radial-gradient(circle, rgba(235, 25, 125, 0.09) 0 0.6px, transparent 0.7px);
    background-position: 0 0, 4px 6px;
    background-size: 8px 8px, 11px 11px;
    content: "";
    opacity: 0.38;
    pointer-events: none;
}

.coming-soon::after {
    position: absolute;
    z-index: -1;
    right: -8rem;
    bottom: -10rem;
    width: min(38rem, 68vw);
    aspect-ratio: 1;
    border: clamp(2.5rem, 8vw, 7rem) solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    content: "";
    filter: blur(2px);
    pointer-events: none;
}

.wash {
    position: absolute;
    z-index: -1;
    width: clamp(16rem, 34vw, 34rem);
    aspect-ratio: 1.3;
    border-radius: 42% 58% 66% 34% / 51% 31% 69% 49%;
    filter: blur(30px);
    opacity: 0.28;
    pointer-events: none;
}

.wash--pink {
    top: 25%;
    left: -13rem;
    background: linear-gradient(135deg, var(--pink), #ffb1cf 68%);
    transform: rotate(24deg);
}

.wash--mint {
    top: -9rem;
    right: 18%;
    background: linear-gradient(145deg, var(--mint), var(--sky));
    transform: rotate(-12deg);
}

.coming-soon__inner {
    display: grid;
    min-width: 0;
    width: min(100%, 76rem);
    grid-template-columns: minmax(17rem, 0.82fr) minmax(23rem, 1.18fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: center;
}

.coming-soon__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 33rem;
}

.coming-soon__copy::before {
    position: absolute;
    top: -2.8rem;
    left: -1.5rem;
    width: 4rem;
    height: 1.5rem;
    border-top: 0.25rem solid var(--pink);
    border-radius: 50%;
    content: "";
    opacity: 0.75;
    transform: rotate(-13deg);
}

.eyebrow {
    display: flex;
    margin: 0 0 1.25rem;
    gap: 0.7rem;
    align-items: center;
    color: var(--pink-deep);
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow__dot {
    width: 0.72rem;
    height: 0.72rem;
    border: 0.18rem solid var(--paper-bright);
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 1px var(--pink);
}

.coming-soon h1 {
    max-width: 10ch;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.15rem, 6.2vw, 6.25rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.coming-soon h1 em {
    position: relative;
    color: var(--pink);
    font-style: normal;
    text-shadow: 2px 3px 0 rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.coming-soon h1 em::after {
    position: absolute;
    right: -0.05em;
    bottom: -0.08em;
    left: 0.02em;
    height: 0.11em;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--pink), var(--coral), var(--sun));
    content: "";
    transform: rotate(-1.5deg);
}

.coming-soon__lede {
    max-width: 33rem;
    margin: clamp(1.6rem, 3vw, 2.3rem) 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.75;
}

.coming-soon__lede strong {
    color: var(--ink);
    font-weight: 700;
}

.coming-soon__address {
    display: inline-flex;
    margin: clamp(1.7rem, 3vw, 2.5rem) 0 0;
    gap: 0.65rem;
    align-items: center;
    padding: 0.72rem 1rem 0.72rem 0.8rem;
    border: 1px solid rgba(53, 36, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 0.55rem 2rem rgba(81, 59, 74, 0.08);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.coming-soon__address-mark {
    display: grid;
    width: 1.8rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: var(--paper-bright);
    background: var(--pink);
    font-size: 0.75rem;
    line-height: 1;
}

.logo-stage {
    position: relative;
    z-index: 1;
    min-width: 0;
    justify-self: end;
    width: min(100%, 40rem);
    padding: clamp(0.45rem, 1vw, 0.7rem);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: clamp(1.5rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.38);
    box-shadow:
        0 2rem 5rem rgba(119, 75, 101, 0.18),
        0 0.45rem 1rem rgba(119, 75, 101, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.66);
    transform: rotate(1.6deg);
    backdrop-filter: blur(9px);
}

.logo-stage::before,
.logo-stage::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
}

.logo-stage::before {
    top: -2.5rem;
    right: 8%;
    width: clamp(3.2rem, 7vw, 5.4rem);
    aspect-ratio: 1;
    background: var(--sun);
    box-shadow:
        -1.2rem -1.5rem 0 -2.45rem var(--sun),
        1.6rem -0.7rem 0 -2.45rem var(--sun),
        2.1rem 1.1rem 0 -2.45rem var(--sun);
    opacity: 0.85;
}

.logo-stage::after {
    bottom: 8%;
    left: -2.2rem;
    width: clamp(3.5rem, 8vw, 6.3rem);
    aspect-ratio: 1;
    border: clamp(0.8rem, 1.8vw, 1.35rem) solid var(--pink);
    opacity: 0.74;
}

.logo-stage img {
    width: 100%;
    height: auto;
    border-radius: clamp(1.15rem, 3.3vw, 2.45rem);
}

.sparkle {
    position: absolute;
    z-index: 3;
    width: 1.8rem;
    aspect-ratio: 1;
    background: var(--paper-bright);
    clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
    filter: drop-shadow(0 0.25rem 0.35rem rgba(53, 36, 55, 0.12));
}

.sparkle--one {
    top: 15%;
    left: -1rem;
}

.sparkle--two {
    right: -1.1rem;
    bottom: 19%;
    width: 1.2rem;
}

.sticker {
    position: absolute;
    z-index: 4;
    right: -1.3rem;
    bottom: -1.2rem;
    display: grid;
    width: clamp(6.6rem, 11vw, 8.6rem);
    aspect-ratio: 1;
    place-items: center;
    border: 0.28rem solid var(--paper-bright);
    border-radius: 49% 51% 48% 52% / 54% 47% 53% 46%;
    color: var(--ink);
    background: var(--sun);
    box-shadow: 0 0.8rem 1.5rem rgba(121, 81, 69, 0.18);
    font-family: var(--display);
    font-size: clamp(0.75rem, 1.2vw, 0.94rem);
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-8deg);
}

.coming-soon__copy > *,
.logo-stage {
    animation: reveal 760ms cubic-bezier(0.2, 0.72, 0.28, 1) both;
}

.coming-soon__copy > :nth-child(1) { animation-delay: 80ms; }
.coming-soon__copy > :nth-child(2) { animation-delay: 170ms; }
.coming-soon__copy > :nth-child(3) { animation-delay: 260ms; }
.coming-soon__copy > :nth-child(4) { animation-delay: 350ms; }
.logo-stage { animation-name: reveal-logo; animation-delay: 150ms; }
.sticker { animation: bob 4.2s ease-in-out 1.1s infinite; }
.sparkle { animation: twinkle 3.4s ease-in-out 1s infinite; }
.sparkle--two { animation-delay: 1.8s; }

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-logo {
    from {
        opacity: 0;
        transform: rotate(4deg) scale(0.94) translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: rotate(1.6deg) scale(1) translateY(0);
    }
}

@keyframes bob {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-0.45rem); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.68; transform: scale(0.86) rotate(0); }
    50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}

.site-footer {
    display: flex;
    min-height: 4.25rem;
    padding: 1rem clamp(1.25rem, 5vw, 5rem);
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    background: var(--paper);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
}

.content-shell {
    width: min(100% - 2.5rem, 48rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 7vw, 5rem);
}

.site-wordmark {
    margin: 0 0 4rem;
    color: var(--pink);
    font-family: var(--display);
    font-size: 1.2rem;
}

.site-wordmark a {
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.25em;
}

.entry-title {
    margin: 0 0 1.5rem;
    font-family: var(--display);
    font-size: clamp(2.4rem, 8vw, 4.8rem);
    line-height: 1;
}

.entry-content {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 4px;
}

@media (max-width: 56rem) {
    .coming-soon {
        padding-top: clamp(1.25rem, 6vw, 3rem);
    }

    .coming-soon__inner {
        width: min(100%, 40rem);
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.75rem, 8vw, 4.5rem);
    }

    .coming-soon__copy {
        max-width: 38rem;
    }

    .logo-stage {
        width: min(92%, 34rem);
        margin-right: 2%;
        justify-self: center;
        order: -1;
    }

    .coming-soon h1 {
        max-width: 11ch;
    }

    .wash--mint {
        right: -7rem;
    }
}

@media (max-width: 30rem) {
    .coming-soon {
        padding-inline: 1rem;
    }

    .coming-soon__inner {
        gap: 2.8rem;
    }

    .logo-stage {
        width: calc(100% - 1.5rem);
        max-width: 34rem;
        padding: 0.35rem;
        border-radius: 1.45rem;
    }

    .logo-stage img {
        border-radius: 1.15rem;
    }

    .sticker {
        right: -0.8rem;
        bottom: -1.5rem;
        width: 6.3rem;
        font-size: 0.7rem;
    }

    .coming-soon h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    .coming-soon__copy::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .coming-soon,
    .coming-soon__address,
    .logo-stage,
    .sticker {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    .wash,
    .sparkle {
        display: none;
    }
}
