/**
 * Contact Form Premium - Design élégant, UX optimale
 * Style par défaut : Soft (chaleureux)
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---- Variables & Reset ---- */
.cfp-form-wrapper {
    --cfp-font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cfp-font-display: "DM Sans", sans-serif;
    --cfp-radius: 12px;
    --cfp-radius-sm: 8px;
    --cfp-transition: 0.2s ease;
    font-family: var(--cfp-font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: #2d2d2d;
    max-width: 560px;
}

.cfp-form-wrapper * {
    box-sizing: border-box;
}

/* ---- Style SOFT (défaut) ---- */
.cfp-style-soft .cfp-form {
    background: linear-gradient(145deg, #fefefe 0%, #f8f6f4 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--cfp-radius);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cfp-style-soft .cfp-form-title {
    font-family: var(--cfp-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.cfp-style-soft .cfp-field label {
    color: #4a4a4a;
    font-weight: 500;
    font-size: 0.9rem;
}

.cfp-style-soft input[type="text"],
.cfp-style-soft input[type="email"],
.cfp-style-soft textarea {
    background: #fff;
    border: 1px solid #e5e2dd;
    color: #1a1a1a;
    border-radius: var(--cfp-radius-sm);
}

.cfp-style-soft input:focus,
.cfp-style-soft textarea:focus {
    border-color: #c4a574;
    box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.2);
}

.cfp-style-soft .cfp-submit {
    background: linear-gradient(135deg, #8b7355 0%, #6b5b4a 100%);
    color: #fff;
}

.cfp-style-soft .cfp-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #7a6549 0%, #5c4d3f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.35);
}

/* ---- Style MINIMAL ---- */
.cfp-style-minimal .cfp-form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.cfp-style-minimal .cfp-form-title {
    font-family: var(--cfp-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.75rem;
    letter-spacing: -0.03em;
}

.cfp-style-minimal .cfp-field label {
    color: #333;
    font-weight: 500;
}

.cfp-style-minimal input[type="text"],
.cfp-style-minimal input[type="email"],
.cfp-style-minimal textarea {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: var(--cfp-radius-sm);
    color: #111;
}

.cfp-style-minimal input:focus,
.cfp-style-minimal textarea:focus {
    border-color: #111;
    box-shadow: none;
    outline: none;
}

.cfp-style-minimal .cfp-submit {
    background: #111;
    color: #fff;
}

.cfp-style-minimal .cfp-submit:hover:not(:disabled) {
    background: #333;
}

/* ---- Style BOLD ---- */
.cfp-style-bold .cfp-form {
    background: #1a1a1a;
    border: none;
    border-radius: var(--cfp-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cfp-style-bold .cfp-form-title {
    font-family: var(--cfp-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.5rem;
}

.cfp-style-bold .cfp-field label {
    color: rgba(255, 255, 255, 0.9);
}

.cfp-style-bold input[type="text"],
.cfp-style-bold input[type="email"],
.cfp-style-bold textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cfp-style-bold input::placeholder,
.cfp-style-bold textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cfp-style-bold input:focus,
.cfp-style-bold textarea:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
}

.cfp-style-bold .cfp-submit {
    background: #fff;
    color: #1a1a1a;
}

.cfp-style-bold .cfp-submit:hover:not(:disabled) {
    background: #f0f0f0;
}

.cfp-style-bold .cfp-error {
    color: #fca5a5;
}

/* ---- Structure commune ---- */
.cfp-field-group {
    margin-bottom: 1.25rem;
}

.cfp-field {
    margin-bottom: 1.25rem;
}

.cfp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .cfp-row {
        grid-template-columns: 1fr;
    }
}

.cfp-field label {
    display: block;
    margin-bottom: 0.4rem;
}

.cfp-required {
    color: #c53030;
}

.cfp-field input,
.cfp-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--cfp-transition), box-shadow var(--cfp-transition);
    border-radius: var(--cfp-radius-sm);
}

.cfp-field input::placeholder,
.cfp-field textarea::placeholder {
    color: #9ca3af;
}

.cfp-style-bold .cfp-field input::placeholder,
.cfp-style-bold .cfp-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cfp-field textarea {
    resize: vertical;
    min-height: 120px;
}

.cfp-field-rgpd {
    margin-top: 1rem;
}

.cfp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 400;
}

.cfp-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.cfp-checkbox-label span {
    line-height: 1.4;
}

.cfp-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ---- Erreurs ---- */
.cfp-field.cfp-has-error input,
.cfp-field.cfp-has-error textarea {
    border-color: #dc2626 !important;
}

.cfp-style-bold .cfp-field.cfp-has-error input,
.cfp-style-bold .cfp-field.cfp-has-error textarea {
    border-color: #f87171 !important;
}

.cfp-error {
    display: block;
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

.cfp-style-bold .cfp-error {
    color: #fca5a5;
}

/* ---- Bouton ---- */
.cfp-actions {
    margin-top: 1.5rem;
}

.cfp-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--cfp-radius-sm);
    cursor: pointer;
    transition: background var(--cfp-transition), transform var(--cfp-transition), box-shadow var(--cfp-transition);
}

.cfp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cfp-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cfp-spin 0.7s linear infinite;
}

@keyframes cfp-spin {
    to { transform: rotate(360deg); }
}

.cfp-submit.cfp-loading .cfp-submit-text {
    visibility: hidden;
}

.cfp-submit.cfp-loading .cfp-loader {
    display: block;
    position: absolute;
}

/* ---- Messages feedback ---- */
.cfp-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--cfp-radius-sm);
    font-size: 0.95rem;
}

.cfp-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cfp-style-bold .cfp-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.cfp-error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cfp-style-bold .cfp-error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.cfp-form-wrapper {
    font-display: swap;
}
