/* Pages "création" (Spectacles, Hypnose...): built on prestation.css, with
   their own header. Pages with an Instagram photo use it as the header and
   quote backgrounds; pages without a photo get an abstract header drawn in
   CSS. */

/* Header with photo: the Instagram photo fills the header, in colour and
   without grain, under the same dark gradient as the prestation pages. */
.creation .hero__photo {
    filter: none;
}

.hero__post {
    display: inline-block;
    margin-top: 26px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
}

.creation .quote__photo {
    filter: brightness(0.35);
}

/* Header without photo */
.hero--abstract {
    align-items: center;
    background: radial-gradient(ellipse at 70% 45%, rgba(232, 179, 58, 0.16), transparent 60%), var(--ink);
}

.hero__art {
    position: absolute;
    top: 50%;
    right: max(-120px, calc((100% - 1180px) / 2 - 80px));
    width: min(620px, 80vw);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__art span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

/* Entretiens épistémiques: two circles, two points of view, slowly drifting
   into each other, with a large question mark where they overlap. */
.creation--entretiens-epistemiques .hero__art span:nth-child(1),
.creation--entretiens-epistemiques .hero__art span:nth-child(2) {
    inset: 12% 30% 12% 0;
    border: 1px solid rgba(232, 179, 58, 0.7);
    animation: views 9s ease-in-out infinite alternate;
}

.creation--entretiens-epistemiques .hero__art span:nth-child(2) {
    inset: 12% 0 12% 30%;
    border-color: rgba(241, 236, 226, 0.45);
    animation-direction: alternate-reverse;
}

.creation--entretiens-epistemiques .hero__art span:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Anton, sans-serif;
    font-size: min(260px, 34vw);
    color: rgba(232, 179, 58, 0.14);
}

.creation--entretiens-epistemiques .hero__art span:nth-child(3)::before {
    content: "?";
}

@keyframes views {
    from { transform: translateX(-6%); }
    to { transform: translateX(6%); }
}

/* Dream Machine: a slatted cylinder seen from above, turning slowly in warm
   light, the way the colours appear behind closed eyelids. Deliberately slow:
   no flicker on the page itself. */
.creation--dream-machine .hero__art span:nth-child(1) {
    background: repeating-conic-gradient(from 0deg, rgba(232, 179, 58, 0.55) 0deg 9deg, transparent 9deg 24deg);
    -webkit-mask: radial-gradient(circle, transparent 22%, #000 23%, #000 68%, transparent 69%);
    mask: radial-gradient(circle, transparent 22%, #000 23%, #000 68%, transparent 69%);
    animation: spin 60s linear infinite;
}

.creation--dream-machine .hero__art span:nth-child(2) {
    inset: 20%;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.9), rgba(232, 120, 58, 0.25) 45%, transparent 70%);
    filter: blur(20px);
    animation: glow 7s ease-in-out infinite alternate;
}

.creation--dream-machine .hero__art span:nth-child(3) {
    inset: -8%;
    border: 1px solid rgba(232, 179, 58, 0.25);
}

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

@keyframes glow {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.hero--abstract .wrap {
    position: relative;
    z-index: 1;
}

.hero--abstract h1 {
    max-width: 900px;
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.95;
}

.creation--entretiens-epistemiques .quote,
.creation--dream-machine .quote {
    background: radial-gradient(ellipse at center, rgba(232, 179, 58, 0.12), transparent 70%);
}

.creation-note {
    margin: 30px 0 0;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    font-size: 17px;
    color: var(--muted);
}

/* Spectacles page: each show is a full-width banner (its illustration
   covers the whole band, The Conjurer orange, Kaïros pink) with the show
   details in a dark panel on top, alternating sides. Then the four arts as
   illustrated cards, in a thin smoked-glass passe-partout with a hairline
   edge and a deep shadow. */
.universe__img {
    box-sizing: border-box;
    padding: 14px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 55%),
        rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.show {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(100vh, 1000px);
    margin-top: 70px;
    overflow: hidden;
    border-top: 1px solid rgba(241, 236, 226, 0.08);
    border-bottom: 1px solid rgba(241, 236, 226, 0.08);
}

.show + .show {
    margin-top: 0;
}

.show__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.show__bg img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Darkens the side under the text so it stays readable, while the rest
   of the illustration shows at full strength. */
.show::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 16, 23, 0.6) 0%, rgba(11, 16, 23, 0.25) 45%, rgba(11, 16, 23, 0) 70%);
}

.show:nth-of-type(even)::before {
    background: linear-gradient(270deg, rgba(11, 16, 23, 0.6) 0%, rgba(11, 16, 23, 0.25) 45%, rgba(11, 16, 23, 0) 70%);
}

/* The panel floats well inside the band (not against the page edge),
   leaving the centre of the illustration free. */
.show .show__inner {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 130px clamp(40px, 9vw, 170px);
}

.show:nth-of-type(even) .show__inner {
    justify-content: flex-end;
}

.show__text {
    position: relative;
    box-sizing: border-box;
    width: clamp(460px, 42vw, 640px);
    padding: 54px 50px 40px;
    /* Smoked glass: smooth (no grain, the illustrations already have
       theirs), the picture blurred behind, a soft sheen across the top. */
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 55%),
        rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 40px rgba(255, 255, 255, 0.03),
        0 30px 70px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

/* Kaïros ornaments around the panel: two arabesque corners reaching out
   onto the illustration, and the seal set on the top edge like a stamp. */
.show__text::before,
.show__text::after {
    content: "";
    position: absolute;
    width: 118px;
    aspect-ratio: 640 / 664;
    background: url("../wp-content/uploads/2026/11/deco/coin-blanc.png") top left / contain no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.show__text::before {
    top: -22px;
    left: -22px;
}

.show__text::after {
    right: -22px;
    bottom: -22px;
    transform: rotate(180deg);
}

.show__seal {
    position: absolute;
    top: -31px;
    left: 50%;
    width: 50px;
    height: 62px;
    transform: translateX(-50%);
    background: var(--ink) url("../wp-content/uploads/2026/11/deco/sceau-blanc.png") center / 34px auto no-repeat;
    border: 1px solid rgba(232, 179, 58, 0.55);
    border-radius: 25px;
}

.show__text h3 {
    margin: 10px 0 14px;
    font-size: clamp(48px, 6vw, 90px);
    line-height: 0.95;
    text-transform: uppercase;
}

.show__mix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.show__mix li {
    padding: 5px 12px;
    border: 1px solid var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.show__text p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}

.show__text blockquote {
    margin: 24px 0 0;
    padding-left: 18px;
    border-left: 3px solid var(--gold);
    font-size: 21px;
    font-style: italic;
    line-height: 1.45;
    color: var(--paper);
}

.show__credit {
    margin-top: 18px !important;
    font-size: 14px !important;
    letter-spacing: 1px;
}

.universes__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.universe__img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 10px;
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.universe:hover .universe__img {
    transform: translateY(-4px);
    border-color: rgba(232, 179, 58, 0.45);
}

.universe h3 {
    margin: 8px 0 10px;
    font-size: 34px;
    text-transform: uppercase;
}

.universe p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}

@media (min-width: 901px) {
    .show__text p {
        text-align: justify;
    }
}

/* Animated illustrations: each image moves slowly inside its frame
   (overflow hidden, so the passe-partout stays still). The hat floats, the
   hands breathe, the keyhole draws the eye in, the spiral eye pulses. */
.art {
    overflow: hidden;
}

.art img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 50%;
    will-change: transform;
}

.art--magie img {
    animation: art-float 7s ease-in-out infinite alternate;
}

.art--close-up img {
    animation: art-breathe 5s ease-in-out infinite;
}

.art--mentalisme img {
    transform-origin: 50% 48%;
    animation: art-dive 12s ease-in-out infinite alternate;
}

.art--hypnose img {
    transform-origin: 50% 52%;
    animation: art-pulse 4s ease-in-out infinite;
}

@keyframes art-float {
    from { transform: scale(1.06) translateY(1.5%) rotate(-1deg); }
    to { transform: scale(1.06) translateY(-1.5%) rotate(1deg); }
}

@keyframes art-breathe {
    0%, 100% { transform: scale(1.02); filter: brightness(1); }
    50% { transform: scale(1.07); filter: brightness(1.12); }
}

@keyframes art-dive {
    from { transform: scale(1); }
    to { transform: scale(1.22); }
}

@keyframes art-pulse {
    0%, 100% { transform: scale(1.02); filter: saturate(1); }
    50% { transform: scale(1.08); filter: saturate(1.25); }
}

@media (max-width: 900px) {
    /* Phones and tablets: the whole illustration shows across the top of
       the band, then the panel slides over its lower edge. */
    .show {
        display: block;
        min-height: 0;
        margin-top: 56px;
    }

    .show__bg,
    .show::before,
    .show:nth-of-type(even)::before {
        inset: 0 0 auto 0;
        aspect-ratio: 2008 / 1772;
    }

    .show::before,
    .show:nth-of-type(even)::before {
        background: linear-gradient(180deg, rgba(11, 16, 23, 0) 55%, rgba(11, 16, 23, 0.85) 100%);
    }

    .show .show__inner {
        padding: calc(88vw - 70px) 22px 48px;
    }

    .show__text {
        width: auto;
        padding: 46px 24px 32px;
    }

    .show__text::before,
    .show__text::after {
        width: 74px;
        top: -14px;
        left: -14px;
    }

    .show__text::after {
        top: auto;
        left: auto;
        right: -14px;
        bottom: -14px;
    }

    .universes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .hero__art {
        opacity: 0.5;
        right: -30%;
    }
}

@media (max-width: 560px) {
    .universes__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__art span,
    .art img {
        animation: none !important;
    }
}
