/* Elements */

.infobox-article {
    display: inline-block;
    float: right;
    clear: right;
    background-color: var(--wikifamille-clr-base-clair-2);
    border-radius: 5px;
    color: var(--wikifamille-clr-base-obscur-2);
    width: 20%;
    min-width: 20rem;
    padding: .5em;
    position: relative;
    margin: .5em 0 .5rem .5em;
}

.infobox-article td {
    border: none;
    padding: 0;
}

.infobox-article .info {
    width: 40%;
}

.infobox-article p {
    padding: .5em 0;
}

.infobox-article .link-red {
    color: var(--clr-utile-rouge-sombre) !important;
}

.infobox-article a {
    color: var(--wikifamille-clr-base-obscur-2) !important;
}

.infobox-ligne-titre {
    font-weight: bold;
    padding-right: 1em;
}

.infobox-article-img {
    width: 100%;
    border-radius: 2px;
}

.infobox-section {
    margin: .25em;
    padding: .25em;
    border-top: 1px solid var(--wikifamille-clr-base-obscur-2);
    border-bottom: 1px solid var(--wikifamille-clr-base-obscur-2);
    margin-top: 2em;
}

.bandeau {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bandeau-corp {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem;
    gap: 0.5rem;
    border-style: solid;
}

.bandeau .bandeau-corp {
    border-width: 2px;
    border-radius: 5px;
    width: 75%;
}

.bandeau-note .bandeau-corp {
    border-bottom-width: 2px;
    max-width: 100%;
    font-size: .75rem;
}

.bandeau-section .bandeau-corp {
    border-width: 2px 0px;
    max-width: 100%;
}

.bandeau-icon {
    width: 5rem;
    border-radius: 3px;
    height: 100%;
}

.bandeau-note .bandeau-icon {
    width: 2rem;
    border-radius: 3px;
    height: 100%;
}

.bandeau-titre {
    font-weight: 600;
    font-size: 1.25rem;
}

.bandeau-note .bandeau-titre {
    font-weight: 500;
    font-size: 1rem;
}

.liste {
    list-style: disc;
    padding-left: 1rem;
    gap: 2rem;
}

.liste-item {
    page-break-inside: avoid;
    break-inside: avoid-column;
}

.visioneuse {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .75);
}

.visioneuse-corp {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
}

.visioneuse-ferme {
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.visioneuse-img {
    border-radius: 10px;
    max-height: 80%;
    max-width: 80%;
}

.galerie-article {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
}

.galerie-ligne {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.galerie-ctn-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.galerie-image {
    border-radius: 5px;
    max-width: 10rem;
}

.result-recherche {
    display: block;
    width: calc(100% - 1.25rem);
    border: 2px solid lightgrey;
    border-radius: 5px;
    padding: 0.5rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: .3s;
}

.result-recherche:hover {
    box-shadow: 5px 5px 5px grey;
    transform: translateY(-5px) translateX(-5px);
}

.title-recherche {
    font-weight: 800;
    color: var(--wikifamille-clr-base);
    font-size: 1.25rem;
}

.desc-recherche {
    font-size: .75rem;
    color: var(--wikifamille-clr-base-obscur-2);
}

.bloc {
    display: flow-root;
    padding: 0.25rem;
    border-radius: 5px;
    border: 2px solid;
    margin: 0.5rem 0;
}

.bloc-titre {
    background-color: var(--wikifamille-clr-base-clair-1);
    padding: 0.25rem;
    border-radius: 2.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--wikifamille-clr-base-obscur-2);
    font-weight: 500;
    margin-bottom: .5rem;
    min-height: 1.25rem;
}

.bloc-tiroir {
    overflow: hidden;
    cursor: pointer;
}

.bloc-off {
    height: 1.75rem;
}

.chrono-article {
    overflow-x: auto;
    display: flex;
    overflow-y: hidden;
    position: relative;
}

.chrono-evenement {
    min-width: fit-content;
    background-color: var(--wikifamille-clr-base);
    border-radius: 5px;
    padding: 1em;
    margin: .5em;
    position: relative;
    margin-bottom: 4em;
    color: var(--clr-utile-blanc);
}

.chrono-evenement:before {
    display: block;
    content: "";
    position: absolute;
    bottom: -15px;
    left: 10px;
    height: 0;
    width: 0;
    border-top: 17px solid var(--wikifamille-clr-base);
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
}

.chrono-evenement:after {
    display: block;
    content: "";
    position: absolute;
    bottom: -3em;
    left: 10px;
    height: .75rem;
    width: .75rem;
    border-radius: 50%;
    background-color: var(--wikifamille-clr-base-obscur-2);
    border: 2px solid var(--clr-utile-blanc);
}

.chrono-evenement .link-article {
    color: var(--clr-utile-blanc) !important;
}

.chrono-timeline {
    position: absolute;
    bottom: 1.35em;
    left: 0;
    width: 100%;
    height: .25em;
    background-color: var(--wikifamille-clr-base-clair-2);
}

.btn {
    border: 2px solid var(--wikifamille-clr-base);
    display: block;
    background-color: var(--wikifamille-clr-base);
    width: fit-content;
    padding: 0.5em 0.75em;
    border-radius: 2.5px;
    box-shadow: none;
    color: var(--clr-utile-blanc);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    cursor: pointer;
    color: var(--wikifamille-clr-base);
    background-color: var(--clr-utile-blanc);
}

.btn-blanc {
    border: 2px solid var(--clr-utile-blanc);
    background-color: transparent;
    color: var(--clr-utile-blanc);
}

.btn-lien {
    border: 2px solid transparent;
    background-color: transparent;
    color: var(--wikifamille-clr-base);
    text-decoration: underline;
    padding-left: 0;
}

.btn-lien:hover {
    text-decoration: none;
}

.btn-blanc-bleu-sombre {
    border: 2px solid var(--clr-utile-blanc);
    background-color: var(--wikifamille-clr-base-obscur-2);
    color: var(--clr-utile-blanc);
}

.btn-blanc-bleu-sombre:hover {
    background-color: var(--clr-utile-blanc);
    color: var(--wikifamille-clr-base-obscur-2);
}

.btn-gris {
    border: 2px solid var(--clr-utile-gris);
    background-color: var(--clr-utile-gris);
    color: var(--clr-utile-blanc);
}

.btn-gris:hover {
    border: 2px solid var(--clr-utile-gris);
    background-color: var(--clr-utile-gris);
    color: var(--clr-utile-blanc);
    cursor: not-allowed;
}

.btn-blanc:hover {
    background-color: var(--clr-utile-blanc);
    color: var(--wikifamille-clr-base);
}

.btn-form {
    align-self: flex-end;
}

.alert {
    position: relative;
    max-width: 100%;
    padding: .75em;
    border-radius: 5px;
    background-color: var(--wikifamille-clr-base);
}

.alert-danger {
    background-color: var(--clr-utile-rouge);
}

.hr-base {
    border-top: 2px solid var(--wikifamille-clr-base);
    margin-bottom: 0.5rem;
}


/* Tailles */

.size-screen {
    width: 100%;
    height: 100vh;
}


/* Conteneurs */

.container {
    width: 100%;
    max-width: 75rem;
}

.ctn-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ctn-right {
    display: flex;
    justify-content: right;
    align-items: center;
}

.link-ctn {
    border-radius: 10px;
    transition: all .3s;
}

.link-article {
    color: var(--wikifamille-clr-base);
    font-weight: bold;
}

.link-article:visited {
    color: var(--wikifamille-clr-base-obscur-2);
    font-weight: bold;
}

.link-article:hover {
    text-decoration: none;
}

.link-red {
    color: var(--clr-utile-rouge);
}

.link-red:visited {
    color: var(--clr-utile-rouge-sombre);
}

.img-article {
    background-color: var(--wikifamille-clr-base-clair-2);
    border-radius: 5px;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    width: 20%;
    min-width: 20rem;
    color: var(--clr-utile-blanc);
}

.img-article-droite {
    float: right;
    clear: right;
    margin: .5rem 0 .5rem .5rem;
}

.img-article-gauche {
    float: left;
    clear: left;
    margin: .5rem .5rem .5rem 0;
}

.img-article>img {
    border-radius: 2.5px;
}

.img-article p {
    margin: 1em 0;
}

.img-article p {
    color: var(--wikifamille-clr-base-obscur-2)!important
}

.img-article a {
    color: var(--wikifamille-clr-base-obscur-2)!important
}

.img-article .link-red {
    color: var(--clr-utile-rouge-sombre)!important
}

.link-ctn:hover {
    cursor: pointer;
    background-color: var(--wikifamille-clr-base-clair-2);
}

.ctn-center-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctn-center-column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ctn-input-text {
    margin: 1em 0;
    display: flex;
    flex-direction: column;
}

.ctn-input-text>input {
    border: 1px solid var(--clr-utile-grisClair);
    border-radius: 50px;
    box-shadow: 4px 4px 4px var(--clr-utile-grisClair);
    height: 2rem;
    padding: 0.25em 1em;
    margin: 0.25em;
}

.ctn-input-text>label {
    margin-left: 1em;
}

.ctn-input-checkbox {
    display: flex;
    align-items: center;
}

.ctn-input-checkbox>input {
    border: 1px solid var(--clr-utile-grisClair);
    border-radius: 75px;
    box-shadow: 4px 4px 4px var(--clr-utile-grisClair);
    height: 2rem;
    width: 2rem;
    accent-color: var(--clr-base-rose);
    cursor: pointer;
}

.ctn-input-bool-article {
    margin-bottom: .5em;
}

.ctn-input-bool-article>label {
    font-weight: 500;
    color: var(--wikifamille-clr-base);
}

.ctn-input-bool-article>input {
    width: auto
}

.ctn-input-article {
    display: flex;
    flex-direction: column;
    margin-bottom: .5em;
}

.ctn-input-article>label {
    font-weight: 500;
    color: var(--wikifamille-clr-base);
}

.ctn-input-article>input {
    width: auto
}

.navbar-base {
    width: -webkit-fill-available;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: right;
}

.navbar-wiki {
    width: 6rem;
    height: calc(100vh - 6rem);
    background-color: var(--wikifamille-clr-base);
    padding: 0.5em;
    margin-right: 0.5em;
    border-radius: 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: sticky;
    top: 0.5em;
    left: 0.5em;
}

.navbar-actions {
    width: 15rem;
    height: calc(100vh - 5rem);
    margin-left: 1em;
    padding-left: 1em;
    flex-direction: column;
    justify-content: space-around;
    position: sticky;
    top: 0.5em;
    left: 0.5em;
    border-left: 2px solid var(--wikifamille-clr-base);
}

.ctn-wiki {
    margin: .5em 0;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    background-color: var(--wikifamille-clr-base-obscur-2);
    border-radius: 5px;
    padding: 0.25em;
    display: flex;
    align-items: center;
    flex-direction: column;
}


/* Formulaires */

.form-recherche {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75%;
    background-color: var(--wikifamille-clr-base);
    position: relative;
    border-radius: 4px;
}

.form-recherche>.input-text {
    background-color: var(--clr-utile-blanc);
    width: 100%;
    height: 2rem;
    border-radius: 2px;
    margin: 2px;
    border: none;
}

.form-recherche>.input-submit {
    height: 2rem;
    width: 3rem;
    border-radius: 2px;
    border: none;
    margin: 2px;
    background-color: var(--wikifamille-clr-base);
    background-image: url("../img/search-white.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.form-recherche>.input-submit:hover {
    cursor: pointer;
    background-color: var(--wikifamille-clr-base-obscur-2);
}


/* Placements */

.on-parent {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.right-top {
    position: absolute;
    right: 0;
    top: 0;
}

.absolute-top-right {
    position: absolute;
    right: 0;
    top: 0;
}

.relative {
    position: relative;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}


/* Custom des éléments de base */

.img-rond-bordure-blanc {
    border-radius: 50px;
    border: 1px solid var(--clr-utile-blanc);
    height: 90%;
}

.h1-big {
    font-size: 4rem;
    color: var(--wikifamille-clr-base);
}


/* Height */

.h-100 {
    height: 100%;
}

.h-75 {
    height: 75%;
}

.h-50 {
    height: 50%;
}

.h-25 {
    height: 25%;
}

.h-1 {
    height: 1rem;
}

.h-2 {
    height: 2rem;
}

.h-3 {
    height: 3rem;
}

.h-4 {
    height: 4rem;
}

.h-5 {
    height: 5rem;
}

.h2-article {
    border-bottom: 1px solid black;
    display: flow-root;
}

.h3-article {
    border-bottom: 1px dotted black;
    display: flow-root;
}


/* Width */

.w-auto {
    width: auto;
}

.w-100 {
    width: 100%;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.w-25 {
    width: 25%;
}

.w-1 {
    width: 1rem;
}

.w-2 {
    width: 2rem;
}

.w-3 {
    width: 3rem;
}

.w-4 {
    width: 4rem;
}

.w-5 {
    width: 5rem;
}


/* Padding */

.p-0-25 {
    padding: .25em;
}

.p-0-5 {
    padding: .5em;
}

.p-0-75 {
    padding: .75em;
}

.p-1 {
    padding: 1em;
}

.p-bottom-3 {
    padding-bottom: 3em;
}

.p-right-0-25 {
    padding-right: .25em;
}

.p-right-0-5 {
    padding-right: .5em;
}

.p-right-0-75 {
    padding-right: .75em;
}

.p-right-1 {
    padding-right: 1em;
}


/* Margin */

.m-right-0-5 {
    margin-right: .5em;
}

.m-bottom-0-25 {
    margin-bottom: .25em;
}

.m-bottom-3 {
    margin-bottom: 3em;
}


/* couleur font */

.font-white {
    font: var(--clr-utile-blanc);
}

.font-blue {
    color: var(--wikifamille-clr-base);
}


/* taille font */

.font-0-75 {
    font-size: .75rem;
}

.font-3 {
    font-size: 3rem;
}

.icon-link {
    height: 1em;
    vertical-align: bottom;
    margin: 0 .125em .125em .125em;
    border-radius: 2px;
}

.desc {
    font-size: .75rem;
}


/* Display */

.none {
    display: none;
}

.mobile {
    display: none;
}


/* PopUp */

.ctn-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.popup {
    background-color: var(--wikifamille-clr-base);
    padding: 1em;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .5);
    width: 75%;
    display: flex;
    flex-direction: column;
}

.popup-titre {
    color: var(--clr-utile-blanc);
    font-weight: bold;
    font-size: 2rem;
    display: block;
}

.popup-input {
    background-color: var(--wikifamille-clr-base-clair-2);
    border: 1px solid var(--clr-utile-blanc);
    color: var(--clr-utile-blanc);
    padding: 0.25em;
    border-radius: 5px;
    width: -webkit-fill-available;
    font-size: 1rem;
    margin: 1em 0;
}

.popup_btn {
    text-align: center;
    align-self: flex-end;
}

.form-control {
    height: 65vh;
}

.diapos-number {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0rem 1rem;
    background-color: var(--clr-utile-blanc);
    margin: .25rem;
    border-radius: 50px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.15rem;
}

@media (max-width: 50em) {
    .ordi {
        display: none;
    }
    .mobile {
        display: block;
    }
}

@media (max-width: 32rem) {
    .infobox-article {
        width: -webkit-fill-available;
        margin: 0 0 .5rem 0;
    }
    .ctn-main {
        background-color: var(--clr-utile-blanc);
        padding: 0.25em;
    }
    .infobox-article {
        width: calc(100% - 1rem);
        float: none;
        min-width: 0;
    }
    .img-article {
        width: calc(100% - 1rem);
        float: none;
        min-width: 0;
        margin: 0;
    }
    h1 {
        text-align: center;
    }
    .form-recherche {
        width: 100%;
    }
    main {
        padding: 0;
    }
    .desc {
        display: block;
        text-align: center;
    }
    .font-3 {
        font-size: 2rem
    }
    .bandeau .bandeau-corp {
        width: 100%;
    }
    .galerie-image {
        max-width: none;
        width: calc(100vw - 2rem);
    }
    .liste {
        column-width: 100vw;
    }
}