/*PROFILE PAGE*/

.swiper-slide, .swiper-slide-active {
    box-shadow: 5px 10px 18px #888888;
    border-radius: 30px;
    width: 70%; margin: auto;
    
}
.sp-pcp-thumb-wrapper {
    grid-area: img;
}
.sp-pcp-title {
    grid-area: title;
}
.sp-pcp-post .sp-pcp-title, .sp-pcp-post .sp-pcp-title a {
    font-size: 20px;
    text-transform: uppercase;
    color: #6bb894;
    font-weight: bold;
    letter-spacing: 1px;
}
.sp-pcp-post-meta {
    grid-area: date;
}
.sp-pcp-post-content {
    grid-area: content;
}
.sp-pcp-post-content p {
    color: #236e69;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
            line-clamp: 3; 
    -webkit-box-orient: vertical;
}
.sp-pcp-post {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto;
    grid-template-areas:
    "date img"
    "title img"
    "content img"
}
.sp-pcp-post .sp-pcp-post-content .sp-pcp-readmore a {
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px !important;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 15px;
}


.login-container {
    text-align: center;
    margin: 100px auto;
}
#loginform .login-submit #wp-submit{
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 1000;
    letter-spacing: 2px;
    font-size: 15px;
    background-color: #236e69;
    color: #ffffff;
    text-transform: uppercase;
}
#loginform .login-submit #wp-submit:hover {
    background-color: #ebf5f6;
    color: #306b67;
}
.error {
    color: red;
    font-size: 14px;
}
.login-username,
.login-password {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-username input,
.login-password input {
    margin: 0 auto;
}
/*PHONE*/
@media only screen and (max-width: 760px) {
    .profile .hero-text {
        top: 250px;
        left: 10%;
        right: 10%;
    }
    .login-username input,
    .login-password input {
        width: 65%;
    }
}
/*TABLET*/
@media only screen and (min-width: 761px) and (max-width: 1200px) {
    .profile .hero-text {
        top: 250px;
        left: 20%;
        right: 20%;
    }
    .login-username input,
    .login-password input {
        width: 50%;
    }
}
/*DESKTOP*/
@media only screen and (min-width: 1201px) {
    .profile .hero-text {
        top: 380px;
        left: 20%;
        right: 20%;
    }
    .login-username input,
    .login-password input {
        width: 30%;
    }
}





/*METIERS*/

.grid-card-inside {
    border-radius: 30px;
    background-color: #d8eceb;
}
.container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0 0 30px 30px;
}
.image {
    display: block;
    border-radius: 0 0 30px 30px;
    object-fit: cover;
}
.background-image-section {
    background-repeat: no-repeat;
    background-size: cover;
}
.card-title {
    padding: 30px 0 10px 30px;
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #d8eceb;
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    border-radius: 0 0 30px 30px;
}
.overlay p {
    font-size: 17px;
}
.container:hover .overlay {
    height: 100%;
}
.text {
    padding: 0 30px;
}



/*PHONE*/
@media only screen and (max-width: 760px) {
    .calendar-grid {
        display: block;
    }
}

/*TABLET*/
@media only screen and (min-width: 761px) and (max-width: 1200px) {
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: auto;
    }
}

/*DESKTOP*/
@media only screen and (min-width: 1201px) {
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(4, 25%);
        grid-template-rows: auto;
    }
}


/*CALENDRIER*/
.calendar-container {
    margin: 30px auto;
    width: 80%;
}
.calendar-card-inside {
    border-bottom: 2px solid #d8eceb;
}
.calendar-card-date {
    font-size: 30px;
    font-weight: bolder;
}
.calendar-card-title {
    text-transform: uppercase;
    font-weight: bold;
    color: #6bb894;
}
.calendar-infos-supp {
    margin: 20px auto;
    background-color: #d8eceb;
    text-align: center;
    padding: 15px;
}
.calendar-infos-supp p {
    padding-bottom: 15px;
}
.calendar-infos-supp a {
    color: #236e69;
    text-decoration: underline;
}
.calendar-infos-supp a:hover {
    text-decoration: none;
}
/*PHONE*/
@media only screen and (max-width: 760px) {
    .calendar-card-inside {
        display: block;
        padding-bottom: 20px;
        text-align: center;
    }
}
/*TABLET*/
@media only screen and (min-width: 761px) and (max-width: 1200px) {
    .calendar-card-inside {
        display: grid;
        grid-template-columns: 35% 65%;
        grid-template-rows: auto;
        align-items: center;
        padding-bottom: 20px;
    }
    .calendar-infos-supp {
        width: 70%;
    }/*
    .calendar-card-button {
        grid-column: 1/-1;
        margin: 0 auto;
    }*/
}

/*DESKTOP*/
@media only screen and (min-width: 1201px) {
    .calendar-card-inside {
        display: grid;
        /*grid-template-columns: 20% 55% 25%;*/
        grid-template-columns: 20% 80%;
        grid-template-rows: auto;
        align-items: center;
    }/*
    .calendar-card-button {
        justify-self: end;
    }*/
    .calendar-infos-supp {
        width: 60%;
    }
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    border-radius: 30px;
    background-color: #fefefe;
    margin: 8% auto; /* 15% from the top and centered */
    border: 1px solid #888;
    text-align: center;
    overflow-y: auto;
}
@media only screen and (min-width: 1201px) {
    .modal-content {
        width: 30%; /* Could be more or less, depending on screen size */
    }
}
/*TABLET*/
@media only screen and (min-width: 761px) and (max-width: 1200px) {
    .modal-content {
        width: 90%; /* Could be more or less, depending on screen size */
    }
}
/*PHONE*/
@media only screen and (max-width: 760px) {
    .modal-content {
        width: 80%; /* Could be more or less, depending on screen size */
    }
}
.modal-text-container {
    padding: 0 50px 30px;
}
.modal-img {
    height: 100px;
    background-size: cover;
    background-repeat: no-repeat;
}
.modal-button-container {
    padding: 20px 0;
}
.modal-button {
    margin: 10px 0;
}
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 20px;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .calendar-modal-img {
    height: 400px;
  }






  .accordion {
    margin-bottom: 20px;
    text-align: center;
    border: none;
    outline: none;
    transition: 0.4s;
  }
  
  /* Style the accordion panel. Note: hidden by default */
  .panel {
    display: none;
  }
