html {
    height: 100%;
    overflow-y: scroll;
    overflow-x: auto;
}
body {
    color: #2e2e2e;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    margin: 0;
    padding: 0;
    background-color: black;
    font-size: 95%;
    height: 100%;
}
#page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: black;
}
.entete .item_titre {
    text-align: right;
    text-transform: uppercase;
}
.entete .item_titre h1 {
    margin-top: 5px;
}
.entete img {
    max-width: 220px;
    /*max-width: 100%;    */
    max-height: 70px;
}
.contenu_page {
    background-color: white;
    margin: auto;
    position: relative;
    padding: 10px;
    width: 100%;
    height: 100%;
}
.item_logo a {
    display: block;
}
.item_logo img {
    max-width: 120px;
    background-color: #9b9b9b;
}
.item_info_titre {
    margin-bottom: 1em;
    font-size: 1.2em;
}
.item_info_titre .nom_famille {
    text-transform: uppercase;
}
.item_info_titre .prenom {}
.item_info .date_validite {
    line-height: 2;
}
.item_content.ok .item_info_titre,
.item_content.ok .date_validite .date {
    color: #6ea75f;
}
.item_content.echu .item_info_titre,
.item_content.propect .item_info_titre,
.item_content.echu .date_validite,
.item_content.propect .date_validite,
.item_content.echu .date_validite {
    color: #ff4b4b;
}
.item_info .date_validite .date {
    font-weight: 700;
}
.admin.carte_adherent #header,
.admin.carte_adherent #page {
    margin: 0;
}
.item_content .item_qrcode {
    width: 190px;
}
.item_content .item_qrcode.thumbs img {
    width: 100px;
}
.item_content.echu .item_qrcode,
.item_content.prospect .item_qrcode,
.item_content.relance .item_qrcode {
    color: #ff4b4b;
}


.pied_page{
    font-size: 0.8em;
    color: #ccf;
}
@media screen and (orientation:portrait) {
    .contenu_page {
        min-width: 280px;
        min-height: 580px;
        max-width: 350px;
        max-height: 600px;
    }
    .entete {
        display: block;
        width: 100%;
        text-align: center;
    }
    .entete > div {
        display: block;
        width: 100%;
        text-align: center;
    }
    .entete .item_titre {
        text-align: center;
    }
    .item_content .item_logo {
        width: 100px;
        min-width: unset;
        float: right;
    }
    .item_content .item_logo img {
        max-width: 90px;
        margin: 10px 5px 10px 0;
        padding: 0;
    }
    .item_qrcode {
        width: auto;
        text-align: center;
        padding: 0;
        height: 190px;
        margin: 30px auto 0 auto;
    }
}

@media screen and (orientation:landscape) {
    .contenu_page {
        width: 580px;
        height: 280px;
    }
    .entete {
        display: table;
        width: 100%;
    }
    .entete > div {
        display: table-cell;
        vertical-align: middle;
    }
    .entete .item_titre,
    .entete .item_titre h1 {
        text-align: left;
        padding: 0 0;
        margin: 0;
    }
    .entete .logo_site {
        text-align: left;
        width: 200px;
        padding-right: 20px;
    }
    .item_content {
        display: table;
        width: 100%;
    }
    .item_content > div {
        display: table-cell;
        vertical-align: middle;
    }
    .item_content .item_logo {
        display: table-cell;
        width: 140px;
        min-width: 140px;
        vertical-align: middle;
    }
    .item_content .item_info {
        display: table-cell;
        width: auto;
        vertical-align: middle;
    }
    .item_qrcode {
        text-align: center;
        padding: 0;
    }
}