/* Redéfinition du container */
.container {
    max-width: 1170px;
    margin: auto;
    width: 100%;
}

body:not(.logged-in) header nav {
    pointer-events: none;
}

body:not(.page-template-tpl-home) main {
    padding-top: 50px;
}

/* Formulaire */
form label {
    text-align: right;
    margin-bottom: 0;
    margin-top: 5px;
}

.disabled_data {
    display: block;
    margin-top: 5px;
}

/* Accueil de l'espace client */
.navigation-hub {
    margin-bottom: 6rem;
}

.navigation-hub a {
    font-size: 24px;
}

.navigation-hub i {
    margin-right: 10px;;
}

/* AVANTAGES */

.post-type-archive-avantage .post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 4rem;
}

.post-type-archive-avantage .post-list.container:before {
    display: none;
}

.post-type-archive-avantage .entry-header {
    background: transparent;
    margin-bottom: 1rem;
    height: 218px;
    line-height: 218px;
}

.post-type-archive-avantage .entry-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-type-archive-avantage .post-list .avantage {
    margin-bottom: 2rem;
}

.post-type-archive-avantage .post-list .avantage p {
    margin-bottom: 0;
}

.entry-reduction {
    font-family: sans-serif;
}

.post-type-archive-avantage .post-list .avantage .entry-title {
    font-weight: normal;
}

.post-type-archive-avantage .post-list .avantage .btn-classic {
    margin-left: auto;
    margin-right: auto;
}

.advantage-actions {
    display: flex;
    justify-content: center;
    margin: 30px auto;
}

/* FIGURE */

.figure img {
    max-width: 100%;
    height: auto;
}

/* POST LIST HORS AVANTAGE */

.post-list-default article {
    padding-bottom: 32px;
    margin-bottom: 39px;
    border-bottom: 1px solid #85153d;
    display: flex;
    flex-flow: column;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.post-list-default article .btn-classic {
    margin-left: auto;
    margin-right: auto;
}

.post-list-default article .ctnt {
    flex-grow: 1;
    flex-shrink: 1;
}

.post-list-default article .cat {
    font-family: 'raleway';
    text-transform: uppercase;
    color: #85153d;
    margin-bottom: 5px;
}

.post-list-default article h3 {
    font-family: 'raleway';
    font-size: 24px;
    line-height: 26px;
}

.post-list-default article p {
    margin-top: 17px;
    font-size: 16px;
    line-height: 20px;
    font-weight: bold;
}

/* TOP HOME */

.top-home-block {
    position:relative;
    margin:43px auto 43px auto;
    background:#f5f6f7;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.top-home-block figure {
    flex-grow: 1;
}

.top-home-block figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.content-top-home-block {
    text-align: center;
    padding: 2rem;
}

.content-top-home-block h3 {
    font-family: 'raleway';
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 21px;
}

/* PAGINATION */

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
}

.page-numbers {
    border-radius: 50%;
    background: #85153d;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-weight: 600;
    color: #fff;
    transition: all 400ms cubic-bezier(0.32, 1.25, 0.1, 1.47) 0s;
}

.page-numbers:not(.current):not(.dots):hover {
    background: #991C4C;
    color: #fff;
}

.page-numbers.current {
    opacity: 0.5;
}

/* CF7 */ 

.wpcf7 .form-group p {
    margin-bottom: 0;
}

.wpcf7 form .wpcf7-response-output {
    border-radius: 10px;
    background: #00a0d2;
    color: #fff;
    font-weight: bold;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #46b450; 
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	background: #dc3232; 
}

.wpcf7 form.spam .wpcf7-response-output {
	background: #f56e28;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	background: #ffb900;
}

/* STRENGTH METER */

#strength-meter {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
}

#strength-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ff4b5c, #ffa64b, #a3e635, #4caf50);
    transition: width 0.3s ease;
}

#strength-rules {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}

#strength-rules li {
    font-size: 0.9em;
    margin-bottom: 3px;
}

#strength-rules .valid {
    color: #4caf50;
}

#strength-rules .invalid {
    color: #ff4b5c;
}

.buttonPurple:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SUBTITLE */

.subtitle {
    color: #444;
    font-style: italic;
    font-size: 14px;
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
    .post-type-archive-avantage .post-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .post-list-default article {
        flex-flow: row;
        text-align: left;
    }
    .post-list-default figure {
        flex-basis: 25%;
        flex-grow: 0;
        flex-shrink: 0;
    }
    .post-list-default figure img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .post-list-default article .btn-classic {
        margin-left: 0;
    }
    .top-home-block {
        /*min-height: 423px;*/
        flex-flow: row;
        align-items: flex-start;
    }
    .content-top-home-block {
        flex-basis: 45%;
        flex-grow: 0;
        flex-shrink: 0;
    }
    .top-home-block figure {
        order: 1;
        /*height: 423px;*/
    }
    .content-top-home-block {
        text-align: left;
    }
}

