/*
CTC Separate Stylesheet
Updated: 2025-01-17 16:56:10
*/

/* ===== Cartes "Conseils & Actualités" ===== */
#post-container {
    display: flex;
    gap: 46px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

#post-container .post-item {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 31px);
    background-color: #fff;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(45, 143, 132, .22), 0 0 0 1px rgba(45, 143, 132, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

#post-container .post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(45, 143, 132, .30);
}

/* --- Visuel + pastille catégorie --- */
#post-container .image {
    position: relative;
    line-height: 0;
}

#post-container img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 0;
}

#post-container .image .category {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 2;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: #005D65 !important;
    color: #fff !important;
    font-family: "Montserrat", Sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* --- Contenu --- */
#post-container .content-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

#post-container .subtitle-container:empty {
    display: none;
}

#post-container .post-right {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 26px;
}

#post-container h3 {
    margin: 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    color: #005D65 !important;
}

#post-container h4 {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 300;
}

#post-container hr {
    width: 110px;
    height: 0;
    margin: 14px 0 18px;
    border: 0;
    border-top: 3px solid #005D65 !important;
    background: none;
}

#post-container .exerpt p,
#post-container p {
    margin: 0 0 22px;
    color: #545454;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

#post-container .post-right > a {
    margin-top: auto;
    align-self: flex-start;
    color: #005D65;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

#post-container .post-right > a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#post-container .read-more-arrow {
    width: 56px;
    height: auto;
    flex: 0 0 auto;
    overflow: visible;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .8;
    stroke-linejoin: round;
}

#post-container .post-right > a:hover {
    color: #2D8F84;
    transform: translateX(4px);
}

#post-container button {
    width: 100%;
    padding: 10px 30px;
    font-size: 26px;
}

#post-container a {
    color: #005D65;
}

.sort-filter-container {
    margin-bottom: 50px;
}

.pagination {
    gap: 20px;
    display: flex;
    margin: 20px auto;
    align-items: center;
    justify-content: center;
}

#post-container .custom-select {
    background: transparent;
    color: grey;
    font-size: 18px;
    border: none;
    outline: none;
    /* Supprime l'apparence native de la select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Optionnel : ajouter un padding pour améliorer la lisibilité */
    padding: 5px 10px;
}

.pagination a {
    color: var(--e-global-color-2984a0c);
}

.pagination a:hover {
    color: var(--e-global-color-063af43);
}

.pagination button {
    color: var(--e-global-color-2984a0c);
    border: 1px solid var(--e-global-color-2984a0c) !important;
}

.pagination button:hover, .pagination .number-page-active {
    color: white !important;
    background-color: var(--e-global-color-2984a0c);
}

.ligne-de-tarif-widget {
    display: flex;
    justify-content: space-between;
}

.ligne-de-tarif-widget .ligne-de-tarif-title,
.ligne-de-tarif-widget .ligne-de-tarif-price {
    color: var(--e-global-color-2542029);
    font-size: 20px;
}

.ligne-de-tarif-widget .ligne-de-tarif-button {
    background-color: transparent;
    color: var(--e-global-color-2542029);
    border: 1px solid var(--e-global-color-2542029);
    border-radius: 100px;
    padding: 5px 15px;
}

.ligne-de-tarif-widget .ligne-de-tarif-button:hover {
    background-color: var(--e-global-color-2542029);
    color: white;
    border: 1px solid var(--e-global-color-2542029);
}



.select-menu {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* ajustez si nécessaire */
}

/* Bouton d'affichage du select personnalisé */
.select-menu .select-btn {
    display: flex;
    height: 55px;
    background: transparent;
    /* padding: 10px 20px; */
    font-size: 18px;
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    justify-content: flex-start;
    color: grey;
    font-family: 'Montserrat';
    font-weight: 600;
}

/* Rotation de l'icône lors de l'ouverture */
.select-menu.active .select-btn svg {
    transform: rotate(-180deg);
}

.select-menu .select-btn svg {
    fill: grey;
    width: 20px;
    margin-left: 20px;
}

/* Liste des options */
.select-menu .options {
    position: absolute;
    width: 100%;
    top: 65px;
    left: 0;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: transparent;
    display: none;
    list-style: none;
    z-index: 100;
    background-color: white;
    font-family: 'Montserrat';
}

/* Affichage de la liste lorsque le menu est actif */
.select-menu.active .options {
    display: block;
}

/* Style de chaque option */
.select-menu .options .option {
    padding: 10px 20px;
    cursor: pointer;
    color: grey;
    font-size: 18px;
}

/* Survol d'une option */
.select-menu .options .option:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Style du texte dans l'option */
.select-menu .options .option .option-text {
    display: inline-block;
}

i {
    transition: transform 0.3s ease;
}

/* Classe pour la rotation de 180 degrés */
.rotate {
    transform: rotate(180deg);
}


@media(max-width: 1024px) {
    #post-container .post-item {
        width: calc(50% - 23px);
    }
}

@media(max-width: 768px) {
    #post-container .post-item {
        width: 100%;
    }
}

/* ===== Formulaire de contact (page Contact) ===== */
body.page-id-26 .elementor-form .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 28px;
    row-gap: 0;
    margin: 0;
}

body.page-id-26 .elementor-form .elementor-field-group {
    width: 100%;
    flex: 0 0 auto;
    margin: 0 0 26px;
    padding: 0 !important;
}

/* --- Civilite : Mme / Mr sur une seule ligne --- */
body.page-id-26 .elementor-form .elementor-field-type-radio {
    margin-bottom: 20px;
}

body.page-id-26 .elementor-form .elementor-field-type-radio .elementor-field-subgroup {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 26px;
}

body.page-id-26 .elementor-form .elementor-field-type-radio .elementor-field-option {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
}

body.page-id-26 .elementor-form .elementor-field-type-radio input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #005D65;
}

body.page-id-26 .elementor-form .elementor-field-type-radio label {
    margin: 0;
    color: #005D65;
    font-size: 16px;
    font-weight: 700;
}

/* --- Prenom | Nom  puis  Mail | Telephone --- */
body.page-id-26 .elementor-form .elementor-field-type-text,
body.page-id-26 .elementor-form .elementor-field-type-email,
body.page-id-26 .elementor-form .elementor-field-type-tel {
    width: calc(50% - 14px);
}

/* --- Champs texte : simple filet en bas --- */
body.page-id-26 .elementor-form input.elementor-field-textual {
    height: 40px;
    padding: 0 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #D5D9DA !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #005D65 !important;
    font-size: 15px;
}

body.page-id-26 .elementor-form input.elementor-field-textual:focus {
    border-bottom-color: #005D65 !important;
    outline: none;
}

/* --- Zone de message : bloc arrondi --- */
body.page-id-26 .elementor-form textarea.elementor-field-textual {
    min-height: 130px;
    padding: 16px 20px !important;
    border: 1px solid #D5D9DA !important;
    border-radius: 24px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #005D65 !important;
    resize: vertical;
}

body.page-id-26 .elementor-form textarea.elementor-field-textual:focus {
    border-color: #005D65 !important;
    outline: none;
}

body.page-id-26 .elementor-form ::placeholder {
    color: #9BA3A4;
    opacity: 1;
}

/* --- Bouton + mention RGPD sur la meme ligne --- */
body.page-id-26 .elementor-form .elementor-field-type-submit {
    width: auto;
    order: 9;
    margin-bottom: 0;
    align-self: center;
}

body.page-id-26 .elementor-form .elementor-field-type-submit button {
    width: auto;
    min-width: 150px;
    height: 46px;
    padding: 0 32px !important;
    border-radius: 100px !important;
    background-color: var(--e-global-color-accent, #ED7248) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
}

body.page-id-26 .elementor-form .elementor-field-type-acceptance {
    width: calc(100% - 200px);
    order: 10;
    margin-bottom: 0;
    align-self: center;
}

body.page-id-26 .elementor-form .elementor-field-type-acceptance .elementor-field-subgroup {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body.page-id-26 .elementor-form .elementor-field-type-acceptance label {
    margin: 0;
    color: #7A8385;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 767px) {
    body.page-id-26 .elementor-form .elementor-field-type-text,
    body.page-id-26 .elementor-form .elementor-field-type-email,
    body.page-id-26 .elementor-form .elementor-field-type-tel,
    body.page-id-26 .elementor-form .elementor-field-type-submit,
    body.page-id-26 .elementor-form .elementor-field-type-acceptance {
        width: 100%;
    }

    body.page-id-26 .elementor-form .elementor-field-type-submit {
        margin-bottom: 20px;
    }
}
