/* GENERAL */
/***********/
body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Ubuntu', sans-serif;
    box-sizing: content-box;
    background-image: url("../img/bg-blue-dots.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover,
a:focus {
    text-decoration: none;
}

.container {
    padding: 100px;
    max-width: 900px;
    margin: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 40s ease-in-out;
}

.modal.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 40s ease-in-out;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    padding: 1rem 2rem 2rem 2rem;
    border: 1px solid #888;
    width: 70%;
}

@media (min-width: 383px) {
    .modal-content {
        width: 75%;
    }
}

@media (min-width: 662px) {
    .modal-content {
        width: 75%;
    }
}

@media (min-width: 662px) {
    .modal-content {
        width: 50%;
    }
}

@media (min-width: 1234px) {
    .modal-content {
        width: 40%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ENTETE */
/***********/
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
    background: #068;
    text-shadow: 2px 2px 7px #000;
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#header img {
    width: 3.5rem;
    margin-right: 10px;
    border-radius: 50%;
    border: 1px solid rgb(1, 84, 112);
}

/* ELEMENTS DE PORTAIL  */
/************************/
.portails {
    text-align: center;
    overflow-y: auto;
}

.portails a {
    color: #000
}

.portails ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.portails ul a:hover {
    opacity: 1;
}

.portails .list_portails {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.portails .list_portails .portail {
    margin: 1.5rem;
}

.portails .list_portails a {
    transition: all .5s ease;
    text-decoration: none;
    font-size: larger;
}

.portails .list_portails .link_portail {
    display: block;
    background-color: #ffffff84;
    padding: 0.5rem;
}

.portails .list_portails .pweb {
    display: flex;
    align-items: end;
    width: 400px;
    height: 300px;
    background: rgb(25, 110, 138) center no-repeat;
    background-size: cover;
    border: 1px solid #068;
    cursor: pointer;
}

.portails .list_portails .pweb>span {
    display: block;
    text-align: start;
    width: 100%;
    padding: 2.4rem 1rem 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.347);
    font-size: larger;
    color: white;
}

.portails .list_portails .pweb:hover {
    box-shadow: 0px 0px 2px #101010;
}

.portails .list_portails .pweb:hover>span {
    transition: all ease-in-out 0.5s;
    font-size: xx-large;
}

.portails .list_portails .pweb.admin {
    background-image: url("../img/admin2.jpg");
}

.portails .list_portails .pweb.services {
    background-image: url("../img/services.jpg");
}

.portails .list_portails .pweb.user {
    background-image: url("../img/user.jpg");
}

.portails .list_portails .pweb.connexion {
    background-image: url("../img/admin.png");
}

.portails .modals {
    text-align: left;
}

.portails .modals a:hover,
.portails .modals a:focus {
    text-align: left;
    color: #068;
}

.portails .modals a::before {
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url("../img/link.png");
    background-size: contain;
}

.portails .modals h2 {
    color: rgb(0, 48, 62);
}

/*.portails .modals h2 a{
    font-size: small;
    color: #068;
}*/
.portails .modals h2::before {
    content: "";
}

.portails .modals h2::after {
    background-color: #068;
    display: block;
    content: "";
    border-radius: 10px;
    width: 25%;
    height: 5px;
}



/* PIED DE PAGE*/
/***************/
#footer {
    position: fixed;
    bottom: 0;
    z-index: 2;
    background: #068;
    min-height: 50px;
    line-height: 50px;
    width: 100%;
    text-align: center;
    color: #fefefe;
}