/* Community Contact — form (uses the theme's accent color if one is set) */
.comct { --c-accent: var(--t-accent, #2563eb); --c-ink: #1b1f24; --c-muted: #6b7280; --c-line: #d1d5db; max-width: 760px; margin: 0 auto; font-size: 16px; color: var(--c-ink); }
.comct *, .comct *::before, .comct *::after { box-sizing: border-box; }
.comct-title { margin: 0 0 18px; }
.comct-form { padding: 28px; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -36px rgba(15, 23, 42, .45); }
.comct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.comct-grid label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 600; font-size: 14.5px; }
.comct-grid .comct-full { grid-column: 1 / -1; }
.comct label b, .comct-note b { color: var(--c-accent); font-weight: 700; }
.comct input[type=text], .comct input[type=email], .comct input[type=tel], .comct select, .comct textarea {
    width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-ink); font: inherit; font-size: 16px; font-weight: 400; box-shadow: none;
}
.comct textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.comct input:focus, .comct select:focus, .comct textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.comct .has-err input, .comct .has-err textarea { border-color: #dc2626; background: #fef2f2; }
.comct-err { color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.comct-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 14.5px; font-weight: 500; color: #4b5563; cursor: pointer; }
.comct-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--c-accent); }
.comct-check.has-err span { color: #b91c1c; }
.comct-check a { color: var(--c-accent); }
.comct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 18px; padding: 13px 28px; border: 0; border-radius: 13px; background: var(--c-accent); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .08s; }
.comct-btn:hover { filter: brightness(.92); }
.comct-btn:active { transform: translateY(1px); }
.comct-note { margin: 12px 0 0; color: var(--c-muted); font-size: 13px; }
.comct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comct-alert { margin-bottom: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-weight: 600; }
.comct-ok { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border: 1px solid #bbf7d0; border-radius: 18px; background: #f0fdf4; color: #14532d; }
.comct-ok svg { flex: none; color: #16a34a; }
.comct-ok strong { display: block; font-size: 18px; margin-bottom: 4px; }
.comct-ok p { margin: 0; }
@media (max-width: 640px) {
    .comct-form { padding: 20px 16px; border-radius: 16px; }
    .comct-grid { grid-template-columns: 1fr; }
    .comct-btn { width: 100%; }
}
/* Menu déroulant blanc */
.comct select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.comct-sel { position: relative; }
.comct-sel-hit { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; opacity: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.comct-sel.is-open select { border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.comct-pop { position: fixed; z-index: 100000; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 18px 40px -14px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06); animation: comct-pop .12s ease-out; font-family: inherit; }
@keyframes comct-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.comct-pop button { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: #1b1f24; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.comct-pop button:hover { background: #f3f4f6; }
.comct-pop button.is-on { background: color-mix(in srgb, var(--t-accent, #e8590c) 10%, #fff); color: var(--t-accent, #e8590c); font-weight: 700; }
