/* Custom styles */

body {
    overflow-x: hidden;
    margin: 0;
    font-family: "Lexend Peta", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    background: rgb(0, 0, 0);
}

.inner {
    max-width: 800px;
    flex-grow: 1;
}

h1 {
    margin: 0;
    text-transform: uppercase;
    font-size: 4rem;
}

p {
    color: #BC7FB3;
    text-transform: uppercase;
}

/* Loading */
#loader {
    overflow: hidden;
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .5s ease;
}

#loader img {
    width: 120px;
}

/* Colonnes */
.row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0;
}

.column {
    width: 300px;
}

/* Colonne 1 */
.blue-violet {
    margin-top: 0;
    width: 300px;
    height: 1120px;
    background: linear-gradient(#BC7FB3, #D7CFFF);
}

/* Colonne 2 */
.noir-violet {
    margin-top: 0;
    width: 300px;
    height: 1250px;
    background: linear-gradient(#000000, #BC7FB3, #000000);
}

.logo {
    width: 300px;
}

.noir-violet-petite {
    margin-top: 0;
    width: 300px;
    height: 550px;
    background: linear-gradient(#000000, #BC7FB3);
}

/* Colonne 3 */
.violet {
    width: 300px;
    height: 160px;
    margin: 0;
    background: linear-gradient(#000000, #BC7FB3);
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: end;
}

.violet-petite {
    width: 300px;
    height: 15px;
    margin: 0;
    background-color: #BC7FB3;
}

.violet-grand {
    width: 300px;
    height: 600px;
    margin: 0;
    background: linear-gradient(#000000, #BC7FB3);
}

/* CTA */
.cta {
    margin-top: 10px;
    width: 268px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #BC7FB3;
    padding: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.cta a {
    text-decoration: none;
    font-family: "Lexend Peta", sans-serif;
    text-transform: uppercase;
    color: #BC7FB3;
}

.cta:hover {
    border: 1px solid #D7CFFF;
    background-color: #BC7FB3;
    transform: scale(1.02);
}

.cta:hover button a {
    color: #D7CFFF;
}

.cta:hover svg path {
    stroke: #D7CFFF;
}

.fleche {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    stroke: #BC7FB3;
}

.cta:hover .cta-fleche {
    transform: translateX(5px);
}

/* Albums */
.album-card {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 10px;
}

.album-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.album-card:hover .album-inner {
    transform: rotateY(180deg);
}

.album-face,
.album-dos {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.album-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-dos {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-bg {
    position: absolute;
    inset: 0;
    background-color: #BC7FB3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-bg h3 {
    color: #000;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.animatedText {
    position: relative;
    z-index: 999;
    pointer-events: auto;
    background: transparent;
    opacity: 0;
}

/* Footer */
footer {
    position: absolute;
    background: #BC7FB3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

.footer-row {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 920px;
    /* Desktop */
}

footer p {
    font-size: 0.8rem;
    color: black;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.reseau-sociaux {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.reseau-sociaux img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.reseau-sociaux img:hover {
    transform: scale(1.1);
}

/* Responsive – Inversion colonnes et footer */
@media (max-width: 768px) {

    .column {
        width: 90%;
        max-width: 300px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .column:nth-child(1) {
        order: 3;
    }

    .column:nth-child(2) {
        order: 2;
    }

    .column:nth-child(3) {
        order: 1;
    }

    .blue-violet,
    .noir-violet,
    .noir-violet-petite,
    .violet,
    .violet-petite,
    .violet-grand {
        width: 100%;
        height: auto;
        min-height: 120px;
    }

    .violet-grand {
        min-height: 300px;
    }

    #section2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-top: 40px;
    }

    .album-card {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .album-face img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .album-inner {
        transform-style: preserve-3d;
        width: 100%;
        height: 100%;
    }

    p {
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.5rem;
    }

    h1 {
        font-size: 2.6rem;
        text-align: center;
    }

    .cta {
        width: 90%;
        max-width: 300px;
    }

    /* Footer mobile */
    footer {
        width: 100%;
        position: relative;
    }

    .footer-row {
        width: 300px;
        /* Mobile */
        flex-direction: column;
        gap: 1rem;
    }

    #bg-canvas {
        z-index: 0;
    }
}