/* WFX - Page contact : cartes « Avant de nous écrire » et formulaire CF7, dans la DA des pages institutionnelles
 * (.wfx-page .wfx-prose, tokens --wfx-*). La typo de .wfx-prose est en !important : on la surcharge avec des sélecteurs plus précis. */

/* ---------- Cartes « Avant de nous écrire » ---------- */
.wfx-prose .wfx-motifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0 8px; }
.wfx-prose .wfx-motif { border: 1px solid var(--wfx-line, #E0E3E6); border-radius: 14px; background: #fff; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wfx-prose .wfx-motif--non { background: var(--wfx-panel, #F4F6F7); }
.wfx-prose .wfx-motif__tete { display: flex; align-items: center; gap: 10px; }
.wfx-prose .wfx-motif .ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--wfx-cta, #2E96C4); display: flex; align-items: center; justify-content: center; }
.wfx-prose .wfx-motif--non .ic { background: #9AA3AB; }
.wfx-prose .wfx-motif .ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wfx-prose .wfx-motif h3 { margin: 0 !important; font: 700 16px/1.3 'Roboto Slab', serif !important; color: var(--wfx-ink, #54595F) !important; }
.wfx-prose .wfx-motif p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.6 !important; }
.wfx-prose .wfx-motif__tag { align-self: flex-start; font: 700 10.5px/1 Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 20px; }
.wfx-prose .wfx-motif--ok .wfx-motif__tag { color: var(--wfx-cta, #2E96C4); background: var(--wfx-blue-soft, #E8F4FB); }
.wfx-prose .wfx-motif--non .wfx-motif__tag { color: #6B737B; background: #ECEFF1; }

/* ---------- Formulaire ---------- */
.wfx-prose .wpcf7 { margin: 6px 0 0; }
.wfx-prose .wfx-cf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; border: 1px solid var(--wfx-line, #E0E3E6); border-radius: 14px; background: #fff; padding: 24px 24px 22px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(84, 89, 95, .06), 0 8px 24px rgba(46, 150, 196, .07); }
.wfx-prose .wfx-cf::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--wfx-cta, #2E96C4), #57B6DE); }
.wfx-prose .wfx-cf__champ { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.wfx-prose .wfx-cf__champ--large { grid-column: 1 / -1; }
.wfx-prose .wfx-cf label { font: 600 14px/1.35 Roboto, sans-serif; color: var(--wfx-ink, #54595F); }
.wfx-prose .wfx-cf .wpcf7-form-control-wrap { display: block; }
.wfx-prose .wfx-cf input[type="text"], .wfx-prose .wfx-cf input[type="email"], .wfx-prose .wfx-cf input[type="url"], .wfx-prose .wfx-cf select, .wfx-prose .wfx-cf textarea {
	width: 100%; box-sizing: border-box; margin: 0; padding: 0 14px; height: 48px; border: 1px solid #C9CED3; border-radius: 10px; background: #fff;
	font: 400 16px/1.4 Roboto, sans-serif; color: var(--wfx-ink, #54595F); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.wfx-prose .wfx-cf select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354595F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.wfx-prose .wfx-cf textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; }
.wfx-prose .wfx-cf input:focus, .wfx-prose .wfx-cf select:focus, .wfx-prose .wfx-cf textarea:focus { outline: none; border-color: var(--wfx-cta, #2E96C4); box-shadow: 0 0 0 3px rgba(46, 150, 196, .18); }
.wfx-prose .wfx-cf .wpcf7-not-valid { border-color: #C2410C; }
.wfx-prose .wfx-cf .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 500; color: #C2410C; }
.wfx-prose .wfx-cf ::placeholder { color: #9AA3AB; }

/* Case d'accord */
.wfx-prose .wfx-cf__accord .wpcf7-list-item { margin: 0; display: block; }
.wfx-prose .wfx-cf__accord label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--wfx-text, #7A7A7A); cursor: pointer; }
.wfx-prose .wfx-cf__accord input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wfx-cta, #2E96C4); }

/* Envoi */
.wfx-prose .wfx-cf__envoi { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wfx-prose .wfx-cf input[type="submit"].wfx-cf__btn, .wfx-prose .wfx-cf .wfx-cf__btn { height: 50px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--wfx-cta, #2E96C4); color: #fff !important;
	font: 700 16px/1 Roboto, sans-serif; cursor: pointer; box-shadow: 0 6px 16px rgba(46, 150, 196, .28); transition: background .15s, transform .15s; }
.wfx-prose .wfx-cf .wfx-cf__btn:hover { background: #2584AE; }
.wfx-prose .wfx-cf .wfx-cf__btn:active { transform: translateY(1px); }
.wfx-prose .wfx-cf .wfx-cf__btn:focus-visible { outline: 3px solid rgba(46, 150, 196, .45); outline-offset: 3px; }
.wfx-prose .wfx-cf .wpcf7-spinner { margin: 0; }

/* Message de retour de CF7 */
.wfx-prose .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 12px 16px; border: 0; border-left: 3px solid var(--wfx-cta, #2E96C4); border-radius: 0 10px 10px 0; background: var(--wfx-panel, #F4F6F7); font-size: 14.5px; color: var(--wfx-ink, #54595F); }
.wfx-prose .wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--wfx-green-deep, #3FB050); background: var(--wfx-green-soft, #E9F7EC); }
.wfx-prose .wpcf7 form.invalid .wpcf7-response-output, .wfx-prose .wpcf7 form.failed .wpcf7-response-output, .wfx-prose .wpcf7 form.spam .wpcf7-response-output { border-left-color: #D97706; background: #FFF7EB; }

.wfx-prose .wfx-contact-note { font-size: 14px !important; color: #8A9199 !important; margin-top: 14px !important; }

/* ---------- Mobile (en dernier) ---------- */
@media (max-width: 640px) {
	.wfx-prose .wfx-motifs { grid-template-columns: 1fr; }
	.wfx-prose .wfx-cf { grid-template-columns: 1fr; padding: 22px 16px 18px; }
	.wfx-prose .wfx-cf .wfx-cf__btn { width: 100%; }
}
