.bcrm-front { max-width:700px; margin:0 auto; font-family:inherit; }
.bcrm-front-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.bcrm-status-badge { padding:5px 14px; border-radius:20px; font-size:13px; font-weight:700; }
.bcrm-status-badge.ok   { background:#d1fae5; color:#065f46; }
.bcrm-status-badge.warn { background:#fef3c7; color:#92400e; }
.bcrm-ok { background:#d1fae5; color:#065f46; padding:10px 14px; border-radius:4px; }
.bcrm-front-table { width:100%; border-collapse:collapse; margin-bottom:20px; }
.bcrm-front-table th, .bcrm-front-table td { padding:8px 10px; border-bottom:1px solid #eee; text-align:left; }
.bcrm-front-table th { background:#f9fafb; }
.bcrm-btn { background:#0073aa; color:#fff; border:none; padding:8px 18px; border-radius:4px; cursor:pointer; font-size:14px; }
.bcrm-btn-sm { padding:4px 10px; font-size:12px; }
.bcrm-event-card { padding:12px 16px; border:1px solid #e0e0e0; border-radius:6px; margin-bottom:10px; }

/* ════════════════════════════════════════════════
   BIRDY CRM — Formulaire public (shortcode)
   Conçu pour s'intégrer dans Divi sans conflit
════════════════════════════════════════════════ */

.bcrm-public-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}
.bcrm-public-form-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 1.2em;
    color: inherit;
}

/* Grille de champs */
.bcrm-pf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}
.bcrm-pf-col       { flex: 1 1 180px; min-width: 0; }
.bcrm-pf-col-sm    { flex: 0 1 120px; }
.bcrm-pf-full      { flex: 1 1 100%; }

/* Labels */
.bcrm-public-form label,
.bcrm-pf-col > label,
.bcrm-pf-full > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: inherit;
}
.bcrm-required { color: #c50f1f; }

/* Champs */
.bcrm-public-form input[type="text"],
.bcrm-public-form input[type="email"],
.bcrm-public-form input[type="tel"],
.bcrm-public-form select,
.bcrm-public-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.bcrm-public-form input:focus,
.bcrm-public-form select:focus,
.bcrm-public-form textarea:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0,120,212,.12);
    outline: none;
}
.bcrm-public-form input:invalid:not(:placeholder-shown),
.bcrm-public-form input:user-invalid {
    border-color: #c50f1f;
}
.bcrm-public-form textarea {
    resize: vertical;
    min-height: 100px;
}
.bcrm-public-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M7 7l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 32px;
}

/* Honeypot — invisible */
.bcrm-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* RGPD */
.bcrm-pf-rgpd { margin: 16px 0; }
.bcrm-pf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1.5;
}
.bcrm-pf-check-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Bouton soumettre */
.bcrm-pf-submit { margin-top: 8px; }
.bcrm-pf-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.bcrm-pf-btn:hover  { background: #005a9e; }
.bcrm-pf-btn:active { transform: scale(.98); }

/* Messages de confirmation/erreur */
.bcrm-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 680px;
}
.bcrm-form-success {
    background: #d9f2e6;
    color: #0e5e3a;
    border: 1px solid #a3d9b8;
}
.bcrm-form-warning {
    background: #fff4cc;
    color: #7a4f00;
    border: 1px solid #f5d77e;
}
.bcrm-form-error {
    background: #fde7e9;
    color: #c50f1f;
    border: 1px solid #f5b8be;
}
.bcrm-form-success-icon { font-size: 20px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 600px) {
    .bcrm-pf-col, .bcrm-pf-col-sm { flex: 1 1 100%; }
    .bcrm-pf-btn { width: 100%; text-align: center; }
}
