﻿@import url('https://fonts.cdnfonts.com/css/arctik-15');
@import url('https://fonts.cdnfonts.com/css/gill-sans-mt-2');
@import url('https://www.cdnfonts.com/andrea-canolli-01.font');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* overflow: hidden; */
    overflow-x: hidden;
    background: black;
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    font-family: 'Arctik 1', sans-serif;
}
body.home-background{
    background-image: url(background.png);
}
a{
    text-decoration: none;
    color: inherit;
}

.content {
    text-align: center;
    width: 100%;
    padding: 20px;
    color: white;
}

.buttons {
    text-transform: uppercase;
    margin-top: 15px;
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: space-around;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 7.3px;
    position: relative;
}
.menu .hover-loz{
    display: none;
    font-size: 35px;
}
.menu a:hover .hover-loz{
    display: block;
    margin-right: 5px;
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
}

.logo {
    width: 65%;
    max-width: 1650px;
    display: block;
    margin: 0 auto;
    font-family: 'gill-sans-mt-condensed-regular', sans-serif;
    position: fixed;
    left: 2%;
    top: 100px;
}

.new::after{
    position: absolute;
    content: '(New !)';
    right: -80px;
    bottom: -8px;
    width: 100%;
    height: 100%;
    font-size: 12px;
}
.update::after{
    position: absolute;
    content: '(Update !)';
    right: -80px;
    bottom: -8px;
    width: 100%;
    height: 100%;
    font-size: 12px;
}

/* READ */
.chapters-list{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: white;
    text-align: center;
    margin-top: 60px;
}
.chapters-list-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    font-size: 23px;
    margin-bottom: 70px;
}
.chapter-name{
    text-transform: uppercase;
    transition: all 0.5s;
    color: white;
    position: relative;
}
.chapter-name:hover{
    transform: translateX(30px);
    color: #8ac6fb;
}
.chapter-logo{
    width: 50%;
    cursor: pointer;
}

/* CHAPTERS */

h1 {
    text-transform: uppercase;
    font-size: 20px;
    color: white;
    font-family: 'Arctik 1', sans-serif;
    font-weight: lighter;
    align-items: center;
    justify-content: center;
    margin-block-start: 0.17em;
    margin-block-end: 0.17em;
}

/* --- Barre de navigation globale --- */

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    padding: 10px;
    font-family: 'Arctik 1', sans-serif;
}

.chapter-content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}
.img-container{
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 0 auto;
}
.img-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-container.drawn{
    display: flex;
    justify-content: center;
}
.img-container.drawn img{
    width: 50%;
}
.img-container:not(.drawn){
    display: flex;
    justify-content: center;
}
.img-container:not(.drawn) img{
    max-width: 90%;
    margin: 0 auto;
}
.next-prev-btn {
    text-transform: uppercase;
    font-size: 30px;
    color: gray;
    position: relative;
    margin: 1em;
    margin-bottom: 5px;
    margin-top: 5px;
}
.navigation {
    display: flex;
    justify-content: start;
    align-items: center;
}

/* --- Boutons précédent/suivant de chapitre --- */

.next-prev-chap-btn.next-prev-btn {
    background-color: black;
    border: none;
    cursor: pointer;
    font-size: 20px;
    position: relative;
    color: gray;
}

.next-prev-btn::after {
    content: '';
    background-color: white;
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.5s ease-in-out;
}

.next-prev-btn:hover::after {
    width: 100%;
}
.next-prev-btn:hover {
    color: white;
    border-color: black;
    background-color: transparent;
}

#page-number {
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
}

/* Conteneur du bouton FR */
.lang-toggle {
    position: absolute;
    top: 6em;
    right: 7em;
    z-index: 2;
}

/* Bouton FR principal */
#toggleTooltipBtn {
    padding: 4px 10px;
    background-color: black;
    border: 1px solid black;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: gray;
    font-size: 24px;
    position: fixed;
    transition: color 0.3s ease, border-color 0.3s ease;
}

    /* Effet de survol */
    #toggleTooltipBtn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: white;
        transition: width 0.5s ease-in-out;
    }

    #toggleTooltipBtn:hover::after {
        width: 100%;
    }

    #toggleTooltipBtn:hover {
        color: white;
        border-color: black;
        background-color: transparent;
    }

    #toggleTooltipBtn.active {
        color: white;
        border-color: black;
    }

.subtitle-band {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5vh 16px;
    font-family: 'andrea-canolli-01', sans-serif;
    font-size: 3vh;
    line-height: 1.4;
    text-align: center;
    display: none;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

    .subtitle-band.visible {
        display: block;
    }

.test-page .arr-chapter,
.test-page .btf-chapter,
.test-page .hw-chapter,
.test-page .sb-chapter,
.test-page .shb-chapter,
.test-page .ew-chapter {
    display: none;
}

@media all and (display-mode: fullscreen) {
    .img-container:not(.drawn) img{
        max-width: 100%;
        margin: 0 auto;
    }
  }

/* === Conteneurs des menus === */
.page-selector-container,
.chapter-selector-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* === Styles de base des select === */
#pageSelector,
#chapterSelector {
    background-color: black;
    color: white;
    border: 1px solid black;
    font-size: 16px;
    padding: 3px 8px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

    /* === Styles des options === */
    #pageSelector option,
    #chapterSelector option {
        background-color: black;
        color: #f0f0f0;
    }

/* === Bordure quand menu ouvert === */
.page-selector-container.open #pageSelector,
.chapter-selector-container.open #chapterSelector {
    border-color: white;
}

/* === Bordure animée au hover === */
.page-selector-container::after,
.chapter-selector-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: white;
    transition: width 0.5s ease-in-out;
    z-index: 0;
}

.page-selector-container:hover::after,
.chapter-selector-container:hover::after {
    width: 100%;
}

/* === Styles au hover du select === */
#pageSelector:hover,
#chapterSelector:hover {
    color: white;
    border-color: black;
    background-color: transparent;
}

/* === Retirer outline natif et focus styling === */
#pageSelector:focus,
#chapterSelector:focus {
    outline: none;
    border-color: black;
    background: black;
}


