/* Texte du form */

#text-short {
    max-width: calc(800px + var(--pad-m) * 2);
    margin: 0 auto;
    padding: clamp(50px, 3.2vw, 100px) 30px;
}


/* Styles généraux pour le formulaire */

.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Style des labels */
.wpcf7-form label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    color: #979797;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
}

.wpcf7-list-item-label {
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    color: var(--text-dark-color);
}

/* Style des champs de texte */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Placeholder styling */
.wpcf7-form ::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* Style du champ de texte lorsqu'il est focus */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Style de la zone de texte */
.wpcf7-form textarea {
    min-height: 150px;
    resize: none;
}

/* Style submit */

.wpcf7-form .cta-primary {
    margin: var(--pad-m) auto 0;
    font-size: 16px;
    cursor: pointer;
}

.wpcf7-spinner {
    margin: var(--pad-m) auto 0;
}

/* Supprimé pour éviter les conflits */
#bloc-parent-short {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#img-short {
    position: absolute;
}

.page-blog div#text-short {
    margin-top: 5%;
}

#code-short {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#code-short .all_day_program {
    width: 100%;
    margin-top: var(--gap-xl);
    padding: 0 var(--pad-m) 0;
    font: var(--text-size-xl) / var(--text-size-xl) var(--font-family) var(--font-weight-medium);
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .page-blog div#text-short {
        margin-top: 0;
    }

    #bloc-parent-short {

        width: 100%;
    }

    #img-short {

        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .newsletter-form {
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .wpcf7-form {
        max-width: calc(800px + var(--pad-m) * 2);
        margin: 0 auto;
        padding: var(--pad-m);
        width: 100%;
    }

    div#wpcf7-f537-o1 {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #code-short {
        width: 100%;
    }

    .newsletter-form .acceptance-field {
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .newsletter-form h2 {
        margin-top: 50px;
    }
}

/* || Formulaire */

.wpcf7-form>p {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.wpcf7-form br {
    display: none;
}

.wpcf7-form label.half {
    width: calc(50% - 5px);
    display: inline-block;
}