@font-face {
    font-family: "journalregular";
    src: url("/assets/journal-webfont-bd356cf2.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

footer {
    background-color: rgba(0, 0, 0, 0.5);
}

.space {
    flex: 1;
}

.barre_cookies {
    z-index: 99;
    font-size: 14px;
    background-color: #fff;
    position: fixed;
    left: 5%;
    right: 5%;
    bottom: 50px;
    border-radius: 10px;
    padding: 15px 20px 0 20px;
    box-shadow: 1px 1px 10px black;

    .txt {
        float: left;

        p, a {
            color: #1D2D35;
        }
    }

    .accepter, .refuser {
        font-size: 14px;
    }
}

@media (min-width: 720px) {
    .barre_cookies {
        width: 680px;
    }
}

body {
    --bs-body-bg: rgb(36, 32, 34);
    --bs-body-color: rgba(255, 255, 255, 0.8);
    background-image: url("/assets/fond-64097cc6.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;

    .invalid-feedback {
        text-shadow: 1px 1px 3px black;
    }

    .modal-content {
        background-color: rgba(55, 50, 50, 0.95);
    }

    .toast {
        color: black;
    }

    a {
        color: rgba(255, 255, 255, 0.8);

        &:hover {
            color: white;
        }
    }

    label {
        user-select: none;
    }

    .form-control {
        background-color: rgba(255, 255, 255, 0.8);
        color: black;
    }

    .handwrite {
        font-family: "journalregular";
        text-shadow: 1px 1px 4px black;
    }

    .card {
        user-select: none;
        background-color: white;
        color: black;

        th, td {
            background-color: transparent;
        }
    }

    .navbar.bg-dark {
        background-color: rgba(26, 27, 32, 0.7) !important;

        .navbar-brand .titre {
            font-family: "journalregular";
            font-size: 50px;
            line-height: 30px;
        }
    }

    &.login, &.register, &.mot_de_passe_oublie, &.changer_mot_de_passe {
        .infoscoord {
            overflow: hidden;
            width: 1px;
            height: 1px;
        }

        .nav-accueil {
            color: transparent;
        }

        .titre-page {
            text-align: center;
            font-size: 60px;
            font-family: "journalregular";
            text-shadow: 1px 1px 4px black;
        }

        .text-muted {
            color: #acb5bd !important;
        }

        .btn-primary {
            background-color: rgba(50, 50, 50, 0.4);
            border: 2px solid white;
            color: white;
            font-family: "journalregular";
            font-size: 32px;
            line-height: 30px;
            border-radius: 0 10px 0 10px;
        }

        .section-login {
            padding-left: 8px;
        }
    }

    .mentions-legales, .fonctionnement, .accueil {
        &, a, a:hover {
            color: black;
        }
    }

    .page-de-connaissances {
        color: black;

        a {
            color: black;

            &:hover {
                color: black;
            }
        }

        h5 {
            color: #9962c3;
        }

        .achete {
            text-decoration: line-through;
        }

        .icone {
            display: none;
        }

        .info_publique {
            display: inline;
        }

        .info_confidentielle {
            display: none;
        }

        .cadeau-connaissance {
            .afficher-si-ouvert {
                display: none;
            }

            &.ouverte .afficher-si-ouvert {
                display: unset;
            }
        }

        .afficher-visibilite {
            .info_publique {
                display: none;
            }

            .info_confidentielle {
                display: inline;
            }

            /* libre */

            .statut-0 .icone-0 {
                display: inline;
            }

            /* acheté par autre */

            .statut-1 {
                text-decoration: line-through;

                .icone-1 {
                    display: inline;
                }
            }

            /* acheté par moi */

            .statut-2 {
                text-decoration: line-through;

                .icone-2 {
                    display: inline;
                }
            }

            /* inconnu */

            .statut-3 .icone-3 {
                display: inline;
            }
        }
    }

    .illustration-cadeau {
        position: relative;
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
        margin-right: 4px;

        .illustration-miniature {
            height: 24px;
            width: 24px;
            object-fit: cover;
            border-radius: 3px;
            cursor: pointer;
            display: block;
        }

        .illustration-zoom {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            max-width: 250px;
            max-height: 250px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            z-index: 100;
            margin-bottom: 6px;
        }

        &:hover .illustration-zoom {
            display: block;
        }
    }
}
