@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --background-color: #000000;
    --primary-text-color: #d4d4d4;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    --accent-color: #a31f1f;
    --glow-color: rgba(163, 31, 31, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--background-color);
    font-family: var(--body-font);
}

#location-title {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    font-family: var(--header-font);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, rgba(10,10,10,0.7), rgba(120,20,20,0.35));
    box-shadow: 0 0 18px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}
#location-title::before {
    content: "";
    color: rgba(255,255,255,0.55);
}
#location-title:empty {
    display: none;
}

#fullpage {
    position: relative;
    width: 100%;
    height: 100%;
}

table{}
tr{}
td {
    vertical-align: top;
    padding: 20px;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* The transition for the transform property */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    background-size: cover;
    background-position: center;
    /* Positions will be set by JavaScript */
    transform: translateY(100vh); /* Default to bottom out of view */
}

/* Background images are still set here */
/* Active class brings the section on-screen */
.section.active {
    transform: translate(0, 0);
    z-index: 10;
    pointer-events: auto;
}

.banner{
    width: 100%;
    font-size: 1.2rem;
    color: #ccc;
}

.content-box {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(8px);
    padding: 2rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    max-height: 90%;
    animation: fadeIn 1.5s 0.5s ease-in-out both;
    overflow: hidden;
}

h1, h3 {
    font-family: var(--header-font);
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color);
}
h1 { font-size: 4rem; }
h3 { font-size: 2.5rem; margin-bottom: 1rem;}

p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1rem; }
.p0{color:#e7e3ad;font-family: "Old Standard TT", serif;}
.p1{text-align: justify;color:#e7e3ad;font-family: "Old Standard TT", serif;}
.p2{text-align: justify;font-style: italic;color:#c7ba96;font-family: "Old Standard TT", serif;}
.p3 {
    font-style: italic;
    color: #e6dcc2;
    font-family: "Old Standard TT", serif;
    padding-left: 10px;
    text-align: justify;
    font-size: 0.9em;
}
a { color: var(--accent-color); text-decoration: none; font-weight: bold;  font-size:2em; }
a:hover { text-decoration: underline; }

.book-cover-small {
    max-width: 250px;
    border-radius: 5px;
    float: left;
    margin: 0.5rem 1.5rem 0.5rem 0;
}

.quote-block{display: flex;border-left:3px solid #857a5f;}

.spotify-embeds {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin:15px;
}
.spotify-embeds iframe {
    border-radius: 12px;
    width: 100%;
    height: 360px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 14px;
    margin-top: 1.5rem;
}
.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}
.gallery-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.section[data-section^="galerie-"] .content-box {
    overflow: auto;
    padding-right: 1.5rem;
    width: 85vw;
    max-width: 85%;
    max-height: 86%;
}
.section[data-section^="galerie-"] .content-box::-webkit-scrollbar {
    width: 10px;
}
.section[data-section^="galerie-"] .content-box::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.45);
    border-radius: 999px;
}
.section[data-section^="galerie-"] .content-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(163, 31, 31, 0.75), rgba(120, 20, 20, 0.6));
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.4);
}
.section[data-section^="galerie-"] .content-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(163, 31, 31, 0.75) rgba(10, 10, 10, 0.45);
}

/* Button styles for "Acheter Couloirs" */
.buy-button-container {
    margin-top: 2rem;
    text-align: center;
}

.buy-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--body-font);
    font-weight: 700;
}

.buy-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--glow-color);
    text-decoration: none;
}

/* New styles for the contact email link */
.contact-email {
    font-size: 1.4em; /* Slightly larger than default 'a' tag */
    color: var(--primary-text-color); /* Use a subtle color */
    text-decoration: none; /* Remove underline */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); /* Slight background for visibility */
    display: inline-block; /* Allows padding */
    margin-top: 1rem; /* Space from description */
    border: 1px solid transparent;
}

.contact-email:hover {
    color: var(--accent-color);
    text-decoration: none;
    background-color: rgba(163, 31, 31, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color);
}


.arrow {
    position: absolute;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.arrow svg {
    width: 100px;
    height: 100px;
    fill: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}
.arrow:hover svg {
    fill: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--glow-color));
}
.arrow.up   { top: 10px; left: 50%; transform: translateX(-50%); }
.arrow.down { bottom: 10px; left: 50%; transform: translateX(-50%); }
.arrow.left { left: 10px; top: 50%; transform: translateY(-50%); }
.arrow.right{ right: 10px; top: 50%; transform: translateY(-50%); }
.arrow.up,
.arrow.down {
    flex-direction: column;
}
.arrow.right {
    flex-direction: row-reverse;
}

footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.9rem;
    color: #666;
    z-index: 11;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Font for LTRemark */
@font-face {
    font-family: 'LTRemark';
    src: url('../assets/LTRemark-Regular.otf') format('truetype');
}

/* Styling for h4 in psychose section */
.section[data-section="psychose"] h4 {
    font-family: 'LTRemark', sans-serif;
    text-transform: uppercase;
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(163, 31, 31, 0.7);
}

/* Red text class */

.text-red {

    color: var(--accent-color);

    text-shadow: 0 0 8px rgba(163, 31, 31, 0.9);

}



/* --- Media Queries for Responsiveness --- */



/* For tablets and smaller desktops */

@media (max-width: 1024px) {

    .content-box {

        max-width: 90%;

        max-height: 90%;

        margin:10%;

    }



    h1 { font-size: 3.5rem; }

    h3 { font-size: 2.2rem; }

    p { font-size: 1rem; }



    .spotify-embeds {

        flex-direction: column;

        gap: 1.5rem;

    }

}



/* For mobile phones */

@media (max-width: 768px) {

    .content-box {

        max-width: 90%;

        max-height: 90%;

        margin:10%;

        overflow-y: auto; /* Allow scrolling within the box */

    }



    .banner {

        /* Reduce size or hide if too large */

        max-width: 80%;

        margin: 0 auto;

    }



    h1 { font-size: 2.8rem; }

    h3 { font-size: 2rem; margin-bottom: 0.8rem;}

    .section[data-section="psychose"] h4 {

        font-size: 1.8rem;

    }



    p { line-height: 1.6; }

    a { font-size: 1.5em; }



    .book-cover-small {

        float: none;

        display: block;

        margin: 0 auto 1rem;

        max-width: 180px;

    }

    

    /* Stack table cells vertically */

    #playlists td {

        display: block;

        width: 100%;

        padding: 0;

        margin-bottom: 2rem;

    }

    #playlists td:last-child {

        margin-bottom: 0;

    }

    #playlists table, #playlists tbody, #playlists tr {

        display: block;

    }





    .spotify-embeds iframe {

        height: 280px;

    }



    .buy-button {

        padding: 0.7rem 1.5rem;

        font-size: 1rem;

    }



    .contact-email {

        font-size: 1.2em;

        padding: 0.4rem 0.8rem;

    }



    .arrow svg {

        width: 60px;

        height: 60px;

    }

    .arrow.up   { top: 15px; }

    .arrow.down { bottom: 15px; }

    .arrow.left { left: 15px; }

    .arrow.right{ right: 15px; }



    footer {

        font-size: 0.8rem;

        text-align: center;

        width: 100%;

        left: 0;

        bottom: 5px;

    }
    #location-title {
        top: 12px;
        left: 12px;
        font-size: 0.7rem;
        padding: 8px 10px;
        letter-spacing: 0.14em;
    }

}

@media (max-width: 480px) {

    .content-box {

        max-width: 90%;

        max-height: 90%;

        margin:10%;

    }



    h1 { font-size: 2.2rem; }

    h3 { font-size: 1.7rem; }

     .section[data-section="psychose"] h4 {

        font-size: 1.5rem;

    }



    p { font-size: 0.95rem; }



    .arrow svg {

        width: 45px;

        height: 45px;

    }



    .contact-email {

        font-size: 1em;

    }
    #location-title {
        top: 10px;
        left: 10px;
        font-size: 0.65rem;
        padding: 6px 8px;
    }

}
