
/* ========================================
   DESKTOP STYLES
   ======================================== */

/* FRAME INFO */
#frameInfo{
    position: fixed;
    bottom: 3vh;
    z-index: 11;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    display: flex;
    text-transform: uppercase;
    filter: invert(1);
    mix-blend-mode: difference;
}
.frameInfoArrow{
    font-size: 0.7rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}
#frameInfoText{
    height: 1rem;
    justify-content: center;
    align-items: center;
}

/* Section 1 - Axo Animation */
#axo-wrapper {
    height: 300vh; /* Espace de scroll pour l'animation */
    position: relative;
}

.axo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#axoCanvasContainer{
    height: 100vh;
}

#axoCanvas {
    height: 100%;
    max-width: min(750px, 50vw);
    min-width: 400px;
    padding-left: 65px
}

#axoText {
    padding: 2vw;
    height: 100%;
    flex-grow: 1;
    max-width: 550px;
}

.limesFossilTitle {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
}

.limesFossilText{
    text-align:justify;
    text-justify:inter-word;
    font-size: 1rem;
    line-height: 1.1rem;
}

.limesFossilText p{
    padding-bottom: 0.5rem;
}

/* Section 2 - Texture Transition */
#texture-wrapper {
    height: 300vh; /* Espace de scroll pour l'animation */
    position: relative;
}

.texture-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url("../../links/limesFossil_textureBackground.jpg");
    background-size: cover;
}

#textureCanvas {
    display: block;
    width: 1032px; /* 5 colonnes × 200px + 4 gaps × 8px */
    height: 616px; /* 3 lignes × 200px + 2 gaps × 8px */
    flex-shrink: 0;
}

/* Section 3 - Accretion Animation */
#accretion-wrapper {
    height: 300vh; /* Espace de scroll pour l'animation */
    position: relative;
}

.accretion-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    gap: 32px;
    /* background-color: aqua; */
}

#accretionText {
    width: 430px;
    height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    /* background-color: blue; */
}

#accretionCanvas {
    display: block;
    width: 570px;
    height: 570px;
    flex-shrink: 0;
    opacity: 0.5;
    /* background-color: beige; */
}

/* Section 4 - Coupe */
#section-wrapper {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.section-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0 0 50px 0;
    gap: 32px;
}

#sectionImage {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: auto;
    object-fit: cover;
    object-position: left center;
    z-index: 1;
}

#sectionText {
    width: 430px;
    /* background-color: aqua; */
    z-index: 12;
    /* background-color: rgb(219, 2, 2); */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    /* background-color: antiquewhite; */
}

/* Élément invisible pour équilibrer la mise en page (même taille que accretionCanvas) */
.section-frame::after {
    content: '';
    width: 570px;
    height: 570px;
    flex-shrink: 0;
    z-index: 2;
    /* background-color: antiquewhite; */
}

/* Section 5 - Axo Lanvéoc */
#axoLanveoc-wrapper {
    height: 200vh; /* Espace de scroll pour le pin */
    position: relative;
}

.axoLanveoc-frame {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#axoLanveocImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Section 6 - Masse */
#masse-wrapper {
    height: 200vh; /* Espace de scroll pour le pin */
    position: relative;
}

.masse-frame {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#masseImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Section 7 - Section2 (Coupe verticale) */
#section2-wrapper {
    height: 100vh;
    width: 100vw;
    position: absolute;
    overflow: hidden;
}

.section2-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section2Image {
    width: auto;
    height: 100%;
    max-height: 800px;
    object-fit: contain;
    object-position: center center;
}


/* footer */
.footer{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 70px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.8em;
    z-index: 10;
    /* background-color: aqua; */
}
.footerText {
    align-self: center;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.footerLink {
    color: inherit;
    text-decoration: none;
}

.footerAuthors {
    margin-left: 0.2rem;
}
.footerAuthors::before {
    content: ":";
    margin-right: 0.2rem;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

/* Tablette : 150px par image */
@media (max-width: 1200px) {
    /* Section 2 */
    #textureCanvas {
        width: 774px; /* 5 colonnes × 150px + 4 gaps × 6px */
        height: 462px; /* 3 lignes × 150px + 2 gaps × 6px */
    }

    /* Section 3 */
    #accretionText {
        width: 450px;
        height: 450px;
    }

    #accretionCanvas {
        width: 450px;
        height: 450px;
    }
}

/* Mobile (portrait uniquement - en paysage on garde le style desktop) */
@media (max-width: 1000px) and (orientation: portrait) {
    /* Section 1 */
    #axo-wrapper {
        height: auto;
    }

    .axo-frame {
        display: flex;
        flex-direction: column;
        /* justify-content: flex-start;
        align-items: flex-start; */
        align-items: center;
        justify-content: center;
        height: auto;
    }

    #axoCanvasContainer{
        height: 300vh;
    }

    #axoCanvas {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        padding: 0;
    }

    #axoText {
        width: 462px;
        /* width: 100vw; */
        height: auto;
        padding: 2rem;
        padding-left: 0;
        padding-right: 0;
        /* padding-left: 65px;
        padding-right: 65px; */
        position: relative;
        z-index: 1;
    }

    #texture-wrapper {
        margin-top: 0;
        clear: both;
    }

    /* Section 2 */
    #textureCanvas {
        width: 462px; /* 3 colonnes × 150px + 2 gaps × 6px */
        height: 774px; /* 5 lignes × 150px + 4 gaps × 6px */
    }

    /* Section 3 */
    .accretion-frame {
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        gap: 1.5rem;
    }

    #accretionText {
        width: 462px;
        height: auto;
        order: 1;
    }

    #accretionCanvas {
        width: 462px;
        height: 462px;
        order: 2;
    }

    /* Section 4 */
    .section-frame {
        padding: 0 0 50px 0;
    }
    .section-frame::after {
        content: none;
    }

    #sectionText {
        width: 462px;
    }

    /* Section 6 - Masse */
    #masseImage {
        height: 70vh;
        width: auto;
        object-fit: contain;
    }

    /* Section 7 - Section2 */
    #section2Image {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
    .footerText {
        flex-direction: column;
        gap: 0rem;
    }

    .footerAuthors {
        margin-left: 0;
    }
    .footerAuthors::before {
        content: "";
        margin-right: 0;
    }

}

/* Petits écrans (portrait uniquement) */
@media (max-width: 700px) and (orientation: portrait) {
    .axo-frame {
        align-items: center;
        justify-content: center;
    }
    #axoText {
        /* padding-left: 50px;
        padding-right: 50px; */
        padding-left: 0;
        padding-right: 0;
        width: 308px;
    }
    /* Section 2 */

    #textureCanvas {
        width: 308px; /* 3 colonnes × 100px + 2 gaps × 4px */
        height: 516px; /* 5 lignes × 100px + 4 gaps × 4px */
    }

    /* Section 3 */
    #accretionText {
        width: 308px;
    }

    #accretionCanvas {
        width: 308px;
        height: 308px;
    }

    /* Section 4 */
    .section-frame {
        padding: 0 0 50px 0;
    }
    .section-frame::after {
        content: none;
    }

    #sectionImage {
        top: -8vh;
    }

    #sectionText {
        width: 308px;
    }

    /* Section 5 */
    #axoLanveocImage {
        height: 70vh;
        width: auto;
        object-fit: contain;
    }

    /* Section 6 - Masse */
    #masseImage {
        height: 70vh;
        width: auto;
        object-fit: contain;
    }

    /* Section 7 - Section2 */
    #section2Image {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}
