
/*
 * KÉPIOU.FR
 * Galerie des planches BD
 * © AREDIUS ART PRODUCTION
 */

/* PAGE BD */

.bd-page {
    width: 100%;
    color: #ffffff;
}

.bd-page * {
    box-sizing: border-box;
}

/* BANDEAU DE PRÉSENTATION */

.bd-bandeau {
    padding: 26px 30px;
    text-align: center;
    background: linear-gradient(
        110deg,
        #081f42,
        #1554ae 68%,
        #2875c7
    );
    border: 2px solid #c9b693;
    border-radius: 12px;
}

.bd-surtitre {
    margin: 0 0 8px;
    color: #e5d8bd;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.bd-bandeau h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
}

.bd-bandeau > p:last-child {
    max-width: 850px;
    margin: 0 auto;
    color: #ecf4ff;
    line-height: 1.65;
}

/* CATALOGUE */

.bd-catalogue {
    margin-top: 18px;
    background: #102d59;
    border: 2px solid #c9b693;
    border-radius: 12px;
    overflow: hidden;
}

.bd-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: #1554ae;
    border-bottom: 2px solid #c9b693;
}

.bd-entete h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.bd-entete span {
    color: #e5d8bd;
    font-size: 14px;
}

/* PRÉSENTATION DES PREMIÈRES BD */

.bd-presentation {
    padding: 18px 22px;
    background: #173f78;
    color: #ffffff;
    border-bottom: 1px solid #c9b693;
}

.bd-presentation h3 {
    margin: 0 0 10px;
    color: #e5d8bd;
    font-size: 18px;
}

.bd-presentation p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.bd-presentation p:last-child {
    margin-bottom: 0;
}

/* GRILLE DES PLANCHES */

/*
 * Quatre colonnes de largeur égale.
 * Occupation de toute la largeur du catalogue.
 */

.bd-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100%;
    padding: 20px;
}

/* CARTES */

.bd-carte {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(
        150deg,
        #2463ab,
        #153b73
    );
    border: 1px solid #c9b693;
    border-radius: 10px;
}

/* MINIATURES */

.bd-ouvrir {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 350px;
    padding: 12px;
    border: 0;
    background: #071e40;
    cursor: zoom-in;
}

.bd-ouvrir img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bd-loupe {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #c9b693;
    border-radius: 50%;
    background: rgba(8, 31, 66, 0.85);
    color: #ffffff;
    font-size: 23px;
}

.bd-ouvrir:hover .bd-loupe,
.bd-ouvrir:focus-visible .bd-loupe {
    color: #ffe08a;
    border-color: #ffe08a;
}

/* INFORMATIONS DES PLANCHES */

.bd-infos {
    flex: 1;
    padding: 16px 18px;
}

.bd-numero {
    margin: 0 0 5px !important;
    color: #e5d8bd !important;
    font-size: 13px;
    font-weight: bold;
}

.bd-infos h3 {
    margin: 5px 0;
    color: #ffffff;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.bd-infos p {
    margin: 8px 0 0;
    color: #eaf3ff;
    font-size: 14px;
    line-height: 1.6;
}

/* MENTION */

.bd-mention {
    margin: 14px auto;
    color: #102d59;
    font-size: 12px;
    text-align: center;
}

/* VISIONNEUSE AGRANDIE */

.bd-modal[hidden] {
    display: none;
}

.bd-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(2, 12, 30, 0.9);
}

.bd-visionneuse {
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    max-height: 96dvh;
    overflow: hidden;
    background: #102d59;
    border: 2px solid #c9b693;
    border-radius: 10px;
}

.bd-modal-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    background: #1554ae;
    border-bottom: 1px solid #c9b693;
}

.bd-modal-entete h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.bd-fermer {
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
}

.bd-fermer:hover,
.bd-fermer:focus-visible {
    color: #ffe08a;
}

.bd-image-conteneur {
    min-height: 0;
    overflow: auto;
    padding: 10px;
    text-align: center;
}

.bd-image-conteneur img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(96dvh - 85px);
    margin: auto;
    object-fit: contain;
}

body.bd-modal-ouvert {
    overflow: hidden;
}

/* ORDINATEURS PLUS ÉTROITS ET TABLETTES */

@media (max-width: 1000px) {

    .bd-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .bd-ouvrir {
        height: 350px;
    }
}

/* SMARTPHONES */

@media (max-width: 600px) {

    .bd-bandeau {
        padding: 22px 15px;
    }

    .bd-entete {
        padding: 12px 14px;
    }

    .bd-entete h2 {
        font-size: 18px;
    }

    .bd-presentation {
        padding: 15px;
    }

    .bd-grille {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
    }

    .bd-ouvrir {
        height: 360px;
    }

    .bd-infos {
        padding: 14px;
    }

    .bd-modal {
        padding: 6px;
    }

    .bd-modal-entete h2 {
        font-size: 15px;
    }
}
