@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap');

@font-face {
    font-family: 'Sato';
    src: url('Sato-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: auto;
}


* {
    box-sizing: border-box;
    font-family: 'Red Hat Display', sans-serif;
    --main-color: #081158;
}

body {
    margin: 0;
    padding: 0;
    color: #081158;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

h1 {
    text-align: center;
}

main {
    max-width: 100%;
    width: 100%;
}

footer {
    /*height: 150px;*/
    max-height: 300px;
    width: 100%;
    background: #081158;
    color: white;
    /*display: flex;*/
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    padding-bottom: 15px;
}

#logos-footer{
    display: flex;
    justify-content: center;
    width: 100%;
}

#logos-footer a{
    display: block;
    height: 60px;
}

#logos-footer img{
    height: 100%;
}

#menu {
    height: fit-content;
    background: rgba(255, 255, 255, 1);
    padding: 5px 30px 5px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 11;
}

#menu-logo {
    height: 120px;
    min-height: 80px;
    max-height: 120px;
    width: auto;
}

#menu, #menu-links {
    transition: background-color 1s;
}

#menu-links {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#logos {
    margin: 0 0 0 7px;
    padding: 0 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #081158;
    border-radius: 8px;
}

#menu-logo {
    transition: 0.6s;
}


a {
    color: #081158;
    text-decoration: none;
    padding: 10px 17px;
    font-weight: 500;
}

a:hover {
    opacity: .8;
}

#login-logo svg, #admin-logo svg {
    height: 30px;
    fill: white;
}

#logout-logo svg {
    height: 30px;
}

#login-logo:hover {
    cursor: pointer;
}

#initiale {
    color: white;
    font-weight: bold;
}

#initiale div {
    display: flex;
    align-content: center;
    justify-content: center;
    border: solid 2px white;
    border-radius: 50%;
    padding: 6px;
}

#admin-logo, #logout-logo, #login-logo {
    margin-top: 6px;
}

#login-logo {
    margin-right: 8px;
}

.alert {
    margin: 0 auto;
    border: solid 0px;
    border-radius: 15px;
    width: 40%;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 25px;
}

.success {
    background: #53a73c;
}

.danger {
    background: #cb3739;
}

#presentation {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 75%;
    height: fit-content;
    margin: 35px auto 35px auto;
}

#geriatrie-img {
    height: 500px;
    width: auto;
    border-radius: 7px;
    margin: 230px auto 50px auto;
    display: block;
}

#texte-presentation {
    margin: 30px;
    font-size: 23px;
}

#texte-presentation h2 {
    margin-bottom: 20px;
    font-size: 50px;
}

#partenaire {
    width: 101%;
    /*height: 100px;*/
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #081158;
    color: white;
    padding: 90px 0 30px 0;
    position: relative;
    /*clip-path: polygon(0 0, 100% 32%, 99% 107%, 0 77%);*/
}

#numbers div {
    text-align: center;
    z-index: 1;
}

#numbers .number {
    font-weight: bold;
    font-size: 40px;
    margin: 0;
}

#numbers .description {
    font-size: 20px;
    margin: 0;
}

.barre {
    background: #081158;
    width: 105%;
    height: 170px;
    position: absolute;
    /*transform: rotate(-2deg);*/
    z-index: 0 !important;
    /*margin-bottom: 120px;*/
}


.wave {
    z-index: -5;
    width: 101%;
}

#top-section + .wave {
    transform: translateY(250px) scaleY(-1) scaleX(-1);
    clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
}

#numbers + .wave {
    transform: translateY(-250px);
    clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
}


.barre:first-child {
    transform: translateY(20px) rotate(-2deg)
}

.barre:last-child {
    transform: translateY(-20px) rotate(-2deg)
}

#top-section {
    z-index: -2;
}

#bottom-section {
    background: #eef0f4;
    padding-bottom: 150px;
    /*z-index: -2;*/
    position: relative;
    overflow: hidden;
}

#middle-section {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}


#bottom-section h2 {
    text-align: center;
    font-size: 45px;
    margin: 150px 0 0 0;
    /*padding-top: 180px;*/

}


#last-articles {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;

}

#last-articles div {
    background: white;
    min-height: 200px;
    height: fit-content;
    width: 25%;
    margin: 8px 20px;
    border-radius: 8px;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 500;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.last-article-titre {
    font-size: 28px;
    margin: 0 0 3px 0;
    font-weight: bold;
}

.last-article-date {
    font-size: 15px;
    margin: 0 0 15px 0;
    font-style: italic;
}

.last-article-lire {
    font-size: 13px;
    margin: 15px 0 0 0;
    padding: 0;
}

.last-article-lire:before {
    content: " > ";
}


#newsletter-section {
    background-image: url("../img/medecine.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 600px;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsletter-section div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #cfddee;
    height: 55%;
    width: 70%;
    border-radius: 8px;
}

#newsletter-section div h1 {
    font-size: 50px;
    text-align: center;
    margin: 0;
}

#newsletter-section div p {
    text-align: center;
    margin: 15px 0 0 0;
}

/*#newsletter-section div form {*/
/*    margin-top: 40px;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

#newsletter-section div form input {
    width: 40%;
}

#subscribe_button {
    height: auto !important;
    padding: 10px 40px !important;
    margin: 15px 0 0 20px !important;
    /*width: 40%;*/
}

/*#newsletter-section div form input::placeholder {*/
/*    color: #081158;*/
/*}*/

#hamburger-btn {
    display: none;
}


#articles-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 150px;
    padding: 20px 60px;
    align-items: center;
    justify-content: center;
}

#articles-preview {
    background: white;
    min-height: 200px;
    height: fit-content;
    margin: 30px;
    border-radius: 8px;
    padding: 40px 60px;
    flex: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-weight: 500;
}

form {
    display: flex;
    margin: 0 auto 100px auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    font-size: 20px;
    width: 90%;
    background: #cfddee;
    border-radius: 10px;
}

.form-line {
    flex: 45%;
    margin: 30px 20px;
}

.form-line div {
    display: flex;
    flex-direction: column;
}

form > h2, form > p, .submit-line {
    flex: 100%;
    text-align: center;
}


form textarea {
    resize: vertical;
    min-height: 150px;
}


.form-error {
    color: red;
    font-style: italic;
}

.form-error ul {
    list-style: none;
    padding: 0;
}

.flex-100 {
    flex: 100%;
}

form input, form select, form textarea {
    font-size: 20px;
    padding: 10px 15px;
    /*width: 35%;*/
    border-radius: 5px;
    border: none;
    background-color: rgba(32, 52, 146, 0.1);
    margin: 10px 0;
    color: #081158;
    transition: border 0.2s;

}

form input:focus, form select:focus, form textarea:focus {
    border: #081158 solid 2px;
    outline: none;
}


form button, .admin-button, #size-buttons button, #subscribe_button {
    font-size: 20px;
    color: white;
    background: #081158;
    border-radius: 5px;
    height: auto;
    padding: 15px 120px;
    margin: 0 auto;
    border: none;
    width: fit-content;
    font-weight: bold;
}


#form-adhesion, #form-contact {
    margin-bottom: 100px;
}

#other-contact {
    margin: 20px 0;
}

button {
    transition: 0.6s;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

form input::placeholder {
    color: #081158;
}

form label {
    margin-left: 4px;
    font-weight: bold;
}

.required-input:after {
    content: " *";
    color: red;
}

.required-sign {
    color: red;
}

.description-text {
    margin: 0 0 0 4px;
    font-size: 15px;
    font-style: italic;

}

#address-result {
    margin: 0;
    font-style: italic;
    font-size: 15px;
}

.red {
    color: red;
    text-align: center;
}

#error_404 {
    display: flex;
    width: 80%;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin: 20px auto 100px auto;
}

#error_404 img {
    height: 650px;
    width: auto;
}

#error_404 p {
    text-align: center;
    padding: 20px;
}

#CA {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.ca-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.ca-member {
    text-align: center;
    background: white;
    height: fit-content;
    margin: 15px 20px;
    border-radius: 8px;
    display: flex;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    font-weight: 500;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 500px;
    min-width: 300px;
}

.ca-member h5 {
    font-size: 22px;
    font-weight: bold;
}

.ca-member h5, .ca-member p {
    margin: 0;
    padding: 10px 0;
}

.ca-member p {
    font-style: italic;
}

.ca-categorie {
    margin: 20px;
    width: 100%;
}

#CA h3, #CA h2 {
    text-decoration: underline;
}


#article-title {
    margin: 15px auto 0 auto;
    text-align: center;
    font-size: 40px;
    width: 80%;
}

#article-content {
    width: 85%;
    color: black;
    margin: 0 auto 150px auto;
}

#article-date {
    margin: 0;
    font-style: italic;
    text-align: center;
}

#size-buttons {
    text-align: center;
    transform: translateY(25px);
}

#size-buttons button {
    font-size: 13px;
    padding: 10px 15px;
    margin: 0 5px;
}

.hr {
    margin: 90px auto;
    text-align: center;
    background: black;
    width: 50%;
    height: 1px;
    opacity: 0.15;
}

.send-button {
    margin: 0 auto;
}

#profil {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px;
}

#profil div {
    background: white;
    min-height: 200px;
    width: 35%;
    height: 140px;
    margin: 8px 20px;
    border-radius: 8px;
    padding: 90px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-size: 21px;
}

#profil div img {
    transform: scale(1.35);
    margin-bottom: 30px;
    margin-top: 30px;
}

#profil-member {
    margin-top: 50px;
    text-align: center;
    font-size: 25px !important;
}

/*---------------------------------- ADMIN ------------------------*/


table {
    text-align: left;
    margin: 75px auto 100px auto;
    width: 90%;
    font-size: 18px;
    padding: 0;
    border-collapse: collapse;
}

.dynamicTable tr, .dynamicTable th, .dynamicTable td {
    display: inline-block;
}

tr {
    width: 100%;
}


/*table tbody {*/
.dynamicTable tbody {
    max-height: calc(78px * 8); /* Affiche 7 élements du tableau */
    display: block;
    overflow-y: scroll;
    color: rgba(0, 0, 0, 0.75);
    width: 100%;
}

/*table thead {*/
.dynamicTable thead {
    background: var(--main-color);
    display: block;
    border-radius: 15px 15px 0 0;
    color: white;
    width: 100%;
}

table tbody tr:nth-child(even) {
    background: #EBEBEB;
}


table tbody tr:last-child td:last-child {
    border-radius: 0 0 15px 0;
}

table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 15px;
}

td, th {
    padding: 25px 10px 25px 25px;
    text-align: left;
}

.action {
    padding: 0 50px 0 0;
}

.action:hover {
    text-decoration: underline;
}

.count-demande {
    background: red;
    font-size: 14px;
    border-radius: 50%;
    text-align: center;
    width: 22px;
    height: 22px;
    padding: 1px;
    line-height: 22px;
    margin-left: 8px;
    font-weight: bolder;
    color: white;
    display: inline-block;
}


#admin-nav {
    border: 1px solid #dddddd;
    border-radius: 10px;
    margin: 50px auto 120px auto;
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    width: 90%;
    font-size: 20px;
}

#admin-nav a {
    text-decoration: none;
    font-weight: bolder;
    transition: 0.4s;
    padding: 10px 0;
    margin: 0;
    cursor: pointer;
}

#admin-nav a:hover {
    color: red;
}

.admin-button {
    padding: 10px 25px;
    font-size: 15px;
    margin: 20px 10px;
}

#article-editor {
    display: block !important;
}

.editor-line {
    margin-bottom: 30px;
}

.editor-line label {
    margin-bottom: 10px;
    display: block;
}

#cke_1_contents, #cke_2_contents {
    min-height: 350px;
    /*max-height: 500px;*/
}

/*iframe html {*/
/*    overflow-y: scroll !important;*/
/*}*/


/* ---------------------------- TABLE DES ARTICLES -------------------------*/


.article-table-list tr td:nth-child(1), .article-table-list tr th:nth-child(1) {
    /*width: 550px;*/
    width: 35%;
}

.article-table-list tr td:nth-child(2), .article-table-list tr th:nth-child(2) {
    /*width: 350px;*/
    width: 25%;
}


.article-table-list tr td:nth-child(3), .article-table-list tr th:nth-child(3) {
    /*width: 200px;*/
    width: 15%;
}

.article-table-list tr td:nth-child(4), .article-table-list tr th:nth-child(4) {
    /*width: 375px;*/
    width: 23%;
}


/* ---------------------------- TABLE DES MEMBRES -------------------------*/


.member-table-list tr td:nth-child(1), .member-table-list tr th:nth-child(1) {
    /*width: 350px;*/
    width: 25%;
}

.member-table-list tr td:nth-child(2), .member-table-list tr th:nth-child(2) {
    /*width: 400px;*/
    width: 30%;
}

.member-table-list tr td:nth-child(3), .member-table-list tr th:nth-child(3) {
    /*width: 250px;*/
    width: 13%;
}

.member-table-list tr td:nth-child(4), .member-table-list tr th:nth-child(4) {
    /*width: 475px;*/
    width: 30%;
}


/* ---------------------------- TABLE DES NEWSLETTER -------------------------*/


.newsletter-table-list tr td:nth-child(1), .newsletter-table-list tr th:nth-child(1) {
    width: 49%;
}

.newsletter-table-list tr td:nth-child(2), .newsletter-table-list tr th:nth-child(2) {
    width: 49%;
}


/* ---------------------------- TABLE DES FICHIERS IMAGES -------------------------*/


.table-image-manager tr td:nth-child(1), .table-image-manager tr th:nth-child(1) {
    width: 15%;
}

.table-image-manager tr td:nth-child(2), .table-image-manager tr th:nth-child(2) {
    width: 65%;
}

/*.table-image-manager tr td:nth-child(3), .table-image-manager tr th:nth-child(3) {*/
/*    width: 45%;*/
/*}*/
.table-image-manager tr td:nth-child(3), .table-image-manager tr th:nth-child(3) {
    width: 15%;
}

/* ---------------------------- TABLE DES FICHIERS FICHIERS -------------------------*/


.table-file-manager tr td:nth-child(1), .table-file-manager tr th:nth-child(1) {
    width: 70%;
}

/*.table-file-manager tr td:nth-child(2), .table-file-manager tr th:nth-child(2) {*/
/*    width: 65%;*/
/*}*/
.table-file-manager tr td:nth-child(2), .table-file-manager tr th:nth-child(2) {
    width: 15%;
}


.new-file {
    width: 45%;
    margin: 30px auto;
    border: solid 1px #cccccc;
    border-radius: 10px;
    padding: 40px;
}

.new-file form {
    margin: 0 auto;
}

.table-image-manager, .table-file-manager {
    width: 100%;
}


.table-image-manager tr td img {
    width: 100px;
    height: 100px;
}

.add-newsletter .form-line input {
    width: 20%;
    display: inline-block;
    margin-right: 15px;
}

#searchbar {
    margin: 0 auto;
    text-align: center;
    transform: translateY(60px);
}

#searchbar input {
    font-size: 16px;
    border-radius: 7px;
    padding: 7px;
    border: solid 1px lightgray;
}

#searchbar input:focus {
    outline: none;
}


.dynamicTable h1 {
    text-align: center;
    margin: 0 0 20px 0;
}

div[active=false] {
    display: none !important;
}

.add-newsletter {
    text-align: center;
}

.blue {
    color: var(--main-color);
}

.green {
    color: green;
}

.red {
    color: red;
}

.center {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}


/* -------------------------------- ALL LOADERS  ---------------------*/
.loader {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: relative;
    margin: 15px auto 0 auto;
}

/* LOADER 1 */
#loader-1:before, #loader-1:after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    border-top-color: var(--main-color);
}

#loader-1:before {
    z-index: 50;
    animation: spin 1s infinite;
}

#loader-1:after {
    border: 10px solid #ccc;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}