/*
 * Fichier : skinzenitude.css
 * Projet  : SZ — Welcome EN
 */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #000;
}

body {
    display: flex;

    justify-content: center;
    align-items: center;
}

#skinzenitude {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 100vh;
}

#scene {
    position: relative;

    width: fit-content;
    height: fit-content;

    max-width: 96vw;
    max-height: 96vh;
}

#scene picture {
    display: block;
}

#background {
    display: block;

    max-width: 96vw;
    max-height: 96vh;

    width: auto;
    height: auto;
}

/* ==========================================================
   Portes FR / EN
   ========================================================== */

#hotspots {
    position: absolute;

    inset: 0;

    z-index: 10;
}

.door {
    position: absolute;

    z-index: 20;

    display: block;

    box-sizing: border-box;

    cursor: pointer;

    background: transparent;

    transition:
        background .25s ease,
        box-shadow .25s ease;
}

/* Même effet violet pour les deux portes */
.door:hover {
    background: transparent;

    box-shadow:
        inset 0 0 40px rgba(255,170,255,.90),
        0 0 20px rgba(255,220,120,.85),
        0 0 50px rgba(255,220,120,.55);
}

/* Porte française — même zone que celle qui fonctionne déjà */
#door-fr {
    left: 14%;
    top: 26%;

    width: 9.5%;
    height: 34%;
}

/* Porte anglaise — miroir de la porte française */
#door-en {
    left: 76.5%;
    top: 26%;

    width: 9.5%;
    height: 34%;
}

/* ==========================================================
   Paillasson
   ========================================================== */

#skinzenitude-mat {
    position: absolute;

    left: 37%;
    top: 91%;

    width: 26%;
    height: 7%;

    display: flex;

    justify-content: center;
    align-items: center;

    pointer-events: none;
}

#skinzenitude-text {
    opacity: 0;

    transition: opacity .35s ease;

    font-family: "Cormorant Garamond", Garamond, serif;

    font-size: clamp(1.35rem, 2vw, 2rem);

    font-style: italic;

    font-weight: 500;

    letter-spacing: .02em;

    color: #d3bc8a;

    -webkit-text-stroke: 0.7px rgba(185,155,225,.85);

    text-shadow:
        0 1px 1px rgba(45,30,15,.45);

    user-select: none;

    white-space: nowrap;
}

/* ==========================================================
   Saphyia
   ========================================================== */

.hotspot {
    position: absolute;

    display: block;

    cursor: pointer;

    background: transparent;
}

#saph {
    left: 44%;
    top: 22%;

    width: 12%;
    height: 55%;
}

/* ==========================================================
   VERSION CELLULAIRE
   ========================================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        height: 100%;

        min-width: 100%;
        min-height: 100%;

        overflow: hidden;
    }

    body {
        display: block;

        background: #000;
    }

    #skinzenitude {
        width: 100dvw;
        height: 100dvh;

        display: block;
    }

    #scene {
        position: relative;

        width: 100dvw;
        height: 100dvh;

        max-width: none;
        max-height: none;
    }

    #scene picture {
        display: block;

        width: 100%;
        height: 100%;
    }

    #background {
        display: block;

        width: 100%;
        height: 100%;

        max-width: none;
        max-height: none;

        object-fit: cover;
        object-position: center center;
    }

    #hotspots {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }

    /* Pot / porte française */
    #door-fr {
        left: 46%;
        top: 62%;

        width: 24%;
        height: 27%;

        cursor: pointer;
    }

    /* Pot / porte anglaise */
    #door-en {
        left: 72%;
        top: 62%;

        width: 24%;
        height: 27%;

        cursor: pointer;
    }

    #saph {
        left: 6%;
        top: 18%;

        width: 43%;
        height: 78%;
    }

    #skinzenitude-mat,
    #skinzenitude-text {
        display: none;
    }

    .door:hover {
        background: transparent;
        box-shadow: none;
    }
}


/* ==========================================================
   FINAL DESKTOP/CELL NORMALIZATION
   ========================================================== */

#scene picture {
    width: 100%;
    height: 100%;
}

#scene picture img {
    display: block;
}

/* ==========================================================
   CELL — image dédiée et zones tactiles
   ========================================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        width: 100dvw;
        height: 100%;
        height: 100dvh;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    #skinzenitude {
        width: 100%;
        width: 100dvw;
        height: 100%;
        height: 100dvh;
        min-width: 0;
        min-height: 0;
    }

    #scene {
        width: 100%;
        width: 100dvw;
        height: 100%;
        height: 100dvh;
        max-width: none;
        max-height: none;
        overflow: hidden;
    }

    #scene picture {
        width: 100%;
        height: 100%;
        display: block;
    }

    #background {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center center;
    }

    #hotspots {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /*
     * Les portes deviennent les deux pots de fleurs du visuel cell.
     * On ne montre aucun halo/hover sur écran tactile.
     */
    #door-fr,
    #door-en {
        cursor: pointer;
        background: transparent;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    #door-fr:hover,
    #door-en:hover,
    #door-fr:focus,
    #door-en:focus {
        background: transparent;
        box-shadow: none;
        outline: none;
    }

    /*
     * Zone tactile Saphyia : suffisamment large pour un doigt,
     * sans recouvrir les deux choix de langue.
     */
    #saph {
        -webkit-tap-highlight-color: transparent;
    }

    #saph:focus {
        outline: none;
    }

    #skinzenitude-mat,
    #skinzenitude-text {
        display: none;
    }
}

/* Très petits téléphones */
@media (max-width: 380px) and (max-height: 800px) {

    #door-fr {
        left: 45%;
        top: 62%;
        width: 25%;
        height: 27%;
    }

    #door-en {
        left: 71%;
        top: 62%;
        width: 25%;
        height: 27%;
    }
}
