/* ============================================================================
   Mes Formulaires - Style moderne minimaliste
   ============================================================================
/* === MARQUEUR DE TEST 12345 === */   
Variables : modifie ces valeurs pour adapter à ta charte.
   Plus tard, ces variables seront pilotables depuis l'admin WordPress.
   ============================================================================ */

.mf-form-wrapper,
div.mf-form-wrapper {
    /* === Palette === */
    --mf-color-text:        #1a1a1a;
    --mf-color-text-soft:   #4a4a4a;
    --mf-color-text-muted:  #888;
    --mf-color-bg:          #ffffff;
    --mf-color-bg-subtle:   #fafafa;
    --mf-color-border:      #e5e5e5;
    --mf-color-border-hov:  #d0d0d0;
    /* 🆕 v6.45 : couleur principale noir (charte sobre) */
    --mf-color-accent:      #1a1a1a;
    --mf-color-accent-hov:  #000000;
    --mf-color-accent-text: #ffffff;
    --mf-color-focus-ring:  rgba(26, 26, 26, 0.15);
    --mf-color-error:       #c82333;
    --mf-color-error-bg:    #fef2f2;
    --mf-color-success:     #166534;
    --mf-color-success-bg:  #f0fdf4;
    --mf-color-info:        #1a1a1a;
    --mf-color-info-bg:     #f5f5f5;

    /* === Typographie === */
    --mf-font:              system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mf-text-sm:           0.8125rem;  /* 13px */
    --mf-text-base:         0.9375rem;  /* 15px */
    --mf-text-lg:           1.0625rem;  /* 17px */

    /* === Espacements === */
    --mf-gap-sm:            0.5rem;
    --mf-gap-md:            0.875rem;
    --mf-gap-lg:            1.25rem;
    --mf-gap-xl:            1.75rem;

    /* === Coins arrondis (4-6px comme demandé) === */
    --mf-radius-sm:         4px;
    --mf-radius-md:         6px;

    /* === Conteneur === */
    /* 🆕 v6.46 : largeur élargie de 680 → 900px pour confort desktop
       (sans casser le mobile qui reste fluide grâce à width:100%) */
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--mf-font);
    color: var(--mf-color-text);
}

/* ============================================================================
   FORMULAIRE
   ============================================================================ */

.mf-form {
    display: flex;
    flex-direction: column;
    gap: var(--mf-gap-lg);
}

/* ============================================================================
   CHAMPS — Layout
   ============================================================================ */

.mf-field-wrapper {
    /* Wrapper externe pour gérer les champs conditionnels */
    transition: opacity 0.2s ease;
}

.mf-field {
    display: flex;
    flex-direction: column;
    gap: var(--mf-gap-sm);
}

/* Layout en 2 colonnes pour les paires logiques (sur desktop) */
@media (min-width: 640px) {
    .mf-field-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--mf-gap-lg);  /* 🆕 v6.57.13 : Plus d'espace entre les colonnes */
    }
}

/* ============================================================================
   LABELS
   ============================================================================ */

.mf-field > label,
.mf-field--radio .mf-radio-group-label {
    font-size: var(--mf-text-sm);
    font-weight: 500;
    color: var(--mf-color-text);
    letter-spacing: -0.005em;
}

.mf-required {
    color: var(--mf-color-error);
    margin-left: 2px;
    font-weight: 400;
}

/* ============================================================================
   INPUTS, TEXTAREA, SELECT
   ============================================================================ */

.mf-field input[type="text"],
.mf-field input[type="email"],
.mf-field input[type="tel"],
.mf-field input[type="url"],
.mf-field input[type="date"],
.mf-field textarea,
.mf-field select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: var(--mf-text-base);
    font-family: inherit;
    color: var(--mf-color-text);
    background: var(--mf-color-bg);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-md);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.mf-field input:hover:not(:focus),
.mf-field textarea:hover:not(:focus),
.mf-field select:hover:not(:focus) {
    border-color: var(--mf-color-border-hov);
}

.mf-field input:focus,
.mf-field textarea:focus,
.mf-field select:focus {
    outline: none;
    border-color: var(--mf-color-accent);
    box-shadow: 0 0 0 3px var(--mf-color-focus-ring);
}

.mf-field textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.5;
}

/* Select : ajoute une icône chevron custom (l'appearance: none l'enlève) */
.mf-field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 4.5l3 3 3-3'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.25rem;
    cursor: pointer;
}

/* État ERREUR */
.mf-field--error input,
.mf-field--error textarea,
.mf-field--error select {
    border-color: var(--mf-color-error);
    background-color: var(--mf-color-error-bg);
}

.mf-field--error input:focus,
.mf-field--error textarea:focus,
.mf-field--error select:focus {
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
}

.mf-error {
    font-size: var(--mf-text-sm);
    color: var(--mf-color-error);
    margin: 0;
}

.mf-help {
    font-size: var(--mf-text-sm);
    color: var(--mf-color-text-muted);
    margin: 0;
}

/* ============================================================================
   🆕 v6.32 — VALIDATION AJAX (loading + erreurs en direct)
   ============================================================================ */

/* Erreur ajoutée en JS au blur */
.mf-error-ajax {
    font-size: var(--mf-text-sm);
    color: var(--mf-color-error);
    margin: 4px 0 0;
}

/* Bouton en mode "Envoi en cours…" */
.mf-form button.mf-loading,
.mf-form input.mf-loading {
    opacity: 0.7;
    cursor: wait;
}

/* Spinner CSS dans le bouton */
.mf-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mf-spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

@keyframes mf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Message d'erreur global (anti-spam, rate limit, etc.) */
.mf-global-error {
    margin: 0 0 1rem;
    padding: 12px 16px;
    background: #fef2f2;
    border-left: 3px solid var(--mf-color-error);
    color: #991b1b;
    border-radius: 4px;
    font-size: var(--mf-text-sm);
}

/* ============================================================================
   BOUTONS RADIO — Style "card" moderne
   ============================================================================ */

.mf-field--radio .mf-radio-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--mf-gap-sm);
}

.mf-radio-label {
    flex: 1 1 auto;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: var(--mf-text-base);
    font-weight: 500;
    color: var(--mf-color-text-soft);
    background: var(--mf-color-bg);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-radio-label:hover {
    border-color: var(--mf-color-border-hov);
    background: var(--mf-color-bg-subtle);
}

.mf-radio-label input[type="radio"] {
    /* On masque le radio natif et on dessine le nôtre */
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--mf-color-border);
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    background: var(--mf-color-bg);
    transition: border-color 0.15s ease;
}

.mf-radio-label input[type="radio"]:checked {
    border-color: var(--mf-color-accent);
    border-width: 5px;
}

/* La card radio quand elle est sélectionnée */
.mf-radio-label:has(input[type="radio"]:checked) {
    border-color: var(--mf-color-accent);
    background: var(--mf-color-bg-subtle);
    color: var(--mf-color-text);
    box-shadow: 0 0 0 1px var(--mf-color-accent);
}

/* Fallback pour navigateurs sans :has() */
.mf-radio-label input[type="radio"]:checked + span {
    color: var(--mf-color-text);
}

/* ============================================================================
   CASES À COCHER (RGPD, etc.)
   ============================================================================ */

.mf-field--checkbox {
    flex-direction: row;
}

.mf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.5rem 0;
}

.mf-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0.125rem 0 0 0;
    border: 1.5px solid var(--mf-color-border);
    border-radius: var(--mf-radius-sm);
    background: var(--mf-color-bg);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.mf-checkbox-label input[type="checkbox"]:hover {
    border-color: var(--mf-color-border-hov);
}

.mf-checkbox-label input[type="checkbox"]:checked {
    background: var(--mf-color-accent);
    border-color: var(--mf-color-accent);
}

.mf-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mf-checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--mf-color-focus-ring);
}

.mf-checkbox-text {
    font-size: var(--mf-text-sm);
    color: var(--mf-color-text-soft);
}

.mf-checkbox-text a {
    color: var(--mf-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mf-field--checkbox.mf-field--error .mf-checkbox-text {
    color: var(--mf-color-error);
}

/* ============================================================================
   UPLOAD DE FICHIER
   ============================================================================ */

.mf-field input[type="file"] {
    width: 100%;
    padding: 0.625rem;
    font-size: var(--mf-text-sm);
    font-family: inherit;
    color: var(--mf-color-text-soft);
    background: var(--mf-color-bg-subtle);
    border: 1.5px dashed var(--mf-color-border);
    border-radius: var(--mf-radius-md);
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.mf-field input[type="file"]:hover {
    border-color: var(--mf-color-accent);
    background: var(--mf-color-bg);
}

/* ============================================================================
   BLOCS INFO CONDITIONNELS
   ============================================================================ */

.mf-info-block {
    background: var(--mf-color-bg-subtle);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius-md);
    padding: 1.25rem 1.5rem;
    margin: var(--mf-gap-sm) 0;
    font-size: var(--mf-text-base);
    line-height: 1.55;
    color: var(--mf-color-text-soft);
    animation: mf-slide-down 0.25s ease;
}

@keyframes mf-slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mf-info-block h3,
.mf-info-block h4 {
    margin: 0 0 0.5rem;
    font-size: var(--mf-text-lg);
    font-weight: 600;
    color: var(--mf-color-text);
    letter-spacing: -0.01em;
}

.mf-info-block p {
    margin: 0 0 0.75rem;
}

.mf-info-block p:last-child {
    margin-bottom: 0;
}

.mf-info-block ol,
.mf-info-block ul {
    margin: 0.5rem 0 0.875rem;
    padding-left: 1.5rem;
}

.mf-info-block ol li,
.mf-info-block ul li {
    margin-bottom: 0.25rem;
}

/* Boutons CTA dans les encarts d'info */
.mf-info-block a.button,
.mf-info-block .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.375rem 0.25rem 0;
    background: var(--mf-color-accent);
    color: var(--mf-color-bg);
    border: 1px solid var(--mf-color-accent);
    border-radius: var(--mf-radius-md);
    font-size: var(--mf-text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-info-block a.button:hover,
.mf-info-block .button:hover {
    background: var(--mf-color-accent-hov);
    border-color: var(--mf-color-accent-hov);
    transform: translateY(-1px);
}

/* ============================================================================
   BOUTON SUBMIT
   ============================================================================ */

/* 🆕 v6.45 : Sélecteurs ultra-spécifiques pour battre les styles d'Elementor.
   Le double sélecteur .mf-form-wrapper .mf-form button.mf-submit
   a une spécificité supérieure à la plupart des thèmes. */
.mf-form-wrapper .mf-form button.mf-submit,
.mf-form-wrapper .mf-form .mf-submit,
.mf-form-wrapper button.mf-submit {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #ffffff !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    letter-spacing: 0.05em !important;
    margin-top: 1rem !important;
    text-transform: uppercase !important;
    text-align: center !important;
    line-height: 1.4 !important;
    align-self: stretch !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.mf-form-wrapper .mf-form button.mf-submit:hover,
.mf-form-wrapper button.mf-submit:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.mf-form-wrapper .mf-form button.mf-submit:active,
.mf-form-wrapper button.mf-submit:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.mf-form-wrapper .mf-form button.mf-submit:focus,
.mf-form-wrapper button.mf-submit:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2) !important;
}

/* ============================================================================
   MESSAGES (succès, erreur global)
   ============================================================================ */

.mf-message {
    padding: 0.875rem 1.125rem;
    border-radius: var(--mf-radius-md);
    margin-bottom: var(--mf-gap-lg);
    font-size: var(--mf-text-base);
    line-height: 1.5;
    border: 1px solid transparent;
}

.mf-message--success {
    background: var(--mf-color-success-bg);
    color: var(--mf-color-success);
    border-color: rgba(22, 101, 52, 0.15);
}

.mf-message--error {
    background: var(--mf-color-error-bg);
    color: var(--mf-color-error);
    border-color: rgba(200, 35, 51, 0.15);
}

/* ============================================================================
   RECAPTCHA NOTICE
   ============================================================================ */

.mf-recaptcha-notice {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    margin: var(--mf-gap-md) 0 0;
    line-height: 1.5;
}

.mf-recaptcha-notice a {
    color: var(--mf-color-text-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================================
   BANDEAU CONTEXTE CLUB (pré-sélection via shortcode)
   ============================================================================ */

.mf-club-context {
    background: var(--mf-color-bg-subtle);
    border: 1px solid var(--mf-color-border);
    border-left: 3px solid var(--mf-color-accent);
    border-radius: var(--mf-radius-md);
    padding: 0.625rem 1rem;
    margin-bottom: var(--mf-gap-lg);
    font-size: var(--mf-text-sm);
    color: var(--mf-color-text-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mf-club-context-label {
    color: var(--mf-color-text-muted);
}

.mf-club-context strong {
    color: var(--mf-color-text);
    font-weight: 600;
}

/* ============================================================================
   HONEYPOT (anti-spam, caché)
   ============================================================================ */

.mf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================================
   GOOGLE reCAPTCHA — Masquage du badge
   ============================================================================
   Le badge "protégé par reCAPTCHA" en bas à droite est masqué visuellement.
   La mention écrite sous le bouton Envoyer assure la conformité avec les CGU
   de Google (la mention textuelle est obligatoire si on cache le badge).
   ============================================================================ */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 480px) {
    .mf-form-wrapper {
        --mf-gap-lg: 1rem;
        --mf-gap-xl: 1.25rem;
    }

    .mf-field--radio .mf-radio-options {
        flex-direction: column;
    }

    .mf-radio-label {
        min-width: 100%;
    }

    .mf-submit {
        width: 100%;
        text-align: center;
    }
}

/* ====================================================================
   🌙 MODE SOMBRE (v6.53)
   Activé via l'admin "Apparence" — classe .mf-form-wrapper--dark
   ==================================================================== */

/* Container : fond noir + s'étend pour couvrir toute la zone */
body .mf-form-wrapper.mf-form-wrapper--dark,
.mf-form-wrapper.mf-form-wrapper--dark {
    background: #0a0a0a !important;
    color: #f5f5f4 !important;
    padding: 40px 28px !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

/* Si tu mets le fond de la PAGE en noir dans Elementor, tu peux désactiver
   le padding/border-radius en ajoutant la classe .mf-fullpage à la page. */
body .mf-fullpage .mf-form-wrapper.mf-form-wrapper--dark {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Labels en blanc */
.mf-form-wrapper--dark label,
.mf-form-wrapper--dark .mf-label,
.mf-form-wrapper--dark .mf-field-label {
    color: #f5f5f4 !important;
    font-weight: 500 !important;
}

/* Astérisque "obligatoire" en vert anis */
.mf-form-wrapper--dark .mf-required,
.mf-form-wrapper--dark label .required,
.mf-form-wrapper--dark label[for] span[style*="color"] {
    color: #b0c41f !important;
}

/* Champs (input, select, textarea) : fond gris clair / texte noir */
.mf-form-wrapper--dark input[type="text"],
.mf-form-wrapper--dark input[type="email"],
.mf-form-wrapper--dark input[type="tel"],
.mf-form-wrapper--dark input[type="url"],
.mf-form-wrapper--dark input[type="number"],
.mf-form-wrapper--dark input[type="password"],
.mf-form-wrapper--dark input[type="date"],
.mf-form-wrapper--dark input[type="time"],
.mf-form-wrapper--dark input[type="search"],
.mf-form-wrapper--dark input[type="file"],
.mf-form-wrapper--dark select,
.mf-form-wrapper--dark textarea {
    background-color: #f5f5f4 !important;
    color: #1a1a1a !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
}

/* Focus : bordure verte anis */
.mf-form-wrapper--dark input:focus,
.mf-form-wrapper--dark select:focus,
.mf-form-wrapper--dark textarea:focus {
    border-color: #b0c41f !important;
    outline: 2px solid rgba(176, 196, 31, 0.3) !important;
    outline-offset: 1px !important;
    background-color: #ffffff !important;
}

/* Placeholders */
.mf-form-wrapper--dark input::placeholder,
.mf-form-wrapper--dark textarea::placeholder {
    color: #888 !important;
}

/* Helper texts (sous les champs) */
.mf-form-wrapper--dark .mf-helper,
.mf-form-wrapper--dark .mf-help,
.mf-form-wrapper--dark .mf-character-count,
.mf-form-wrapper--dark .mf-counter,
.mf-form-wrapper--dark small {
    color: #aaa !important;
}

/* Radio labels — boutons-options stylisés (Je suis adhérent / Je ne suis pas adhérent) */
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label {
    color: #f5f5f4 !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    padding: 14px 18px !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label span {
    color: #f5f5f4 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label:hover {
    background: #222 !important;
    border-color: #b0c41f !important;
}

/* 🐛 FIX v6.57 : Case RGPD (checkbox) — pas de "boîte" noire !
   On garde juste un padding modéré et le texte clair. La case native
   est visible (stylée plus bas). */
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label {
    color: #f5f5f4 !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label span {
    color: #f5f5f4 !important;
}

/* 🆕 v6.54 : Masquer les radios natives dans les mf-radio-label
   (les carrés blancs visibles à gauche). Le label entier sert d'option cliquable.
   🐛 FIX v6.57 : retiré .mf-checkbox-label de cette règle pour que
   la case RGPD reste visible. */
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 🐛 FIX v6.57 : Case RGPD VISIBLE en mode sombre.
   Apparence custom : carré blanc avec bordure verte, coche verte au clic. */
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: inline-block !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0 !important;
    margin: 2px 12px 0 0 !important;
    padding: 0 !important;

    background-color: #f5f5f4 !important;
    border: 2px solid #b0c41f !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    transition: all 0.15s ease !important;
}

.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:hover {
    border-color: #c8df21 !important;
    box-shadow: 0 0 0 3px rgba(176, 196, 31, 0.2) !important;
}

.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:checked {
    background-color: #b0c41f !important;
    border-color: #b0c41f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231a1a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.5 3.5L13 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 75% !important;
}

.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #b0c41f !important;
    outline-offset: 2px !important;
}

/* Radio sélectionné : fond vert très léger + bordure verte
   🐛 FIX v6.57 : règle limitée aux radios uniquement (la checkbox RGPD
   ne doit pas avoir de fond vert sur tout le label, seule la case change). */
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label:has(input[type="radio"]:checked) {
    background: rgba(176, 196, 31, 0.15) !important;
    border-color: #b0c41f !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label:has(input[type="radio"]:checked) span {
    color: #b0c41f !important;
    font-weight: 500 !important;
}

/* Encarts d'info contextuels (info blocks) */
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block {
    background: #1a1a1a !important;
    border-left-color: #b0c41f !important;
    color: #f5f5f4 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block h3,
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block h4,
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block strong {
    color: #b0c41f !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block p,
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block li {
    color: #ddd !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block a {
    color: #b0c41f !important;
}

/* Boutons d'action dans les encarts */
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block .button,
.mf-form-wrapper.mf-form-wrapper--dark .mf-info-block a.button {
    background: #b0c41f !important;
    color: #000 !important;
    border-color: #b0c41f !important;
}

/* 🆕 v6.54 : Bouton submit en VERT ANIS (battre la règle .mf-form-wrapper .mf-form button.mf-submit qui force le noir)
   Sélecteur de spécificité supérieure : .mf-form-wrapper.mf-form-wrapper--dark .mf-form button.mf-submit */
.mf-form-wrapper.mf-form-wrapper--dark .mf-form button.mf-submit,
.mf-form-wrapper.mf-form-wrapper--dark .mf-form .mf-submit,
.mf-form-wrapper.mf-form-wrapper--dark button.mf-submit,
.mf-form-wrapper.mf-form-wrapper--dark .mf-submit,
.mf-form-wrapper.mf-form-wrapper--dark button[type="submit"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="submit"] {
    background: #b0c41f !important;
    background-color: #b0c41f !important;
    color: #000000 !important;
    border: none !important;
    border-color: #b0c41f !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-form button.mf-submit:hover,
.mf-form-wrapper.mf-form-wrapper--dark .mf-form .mf-submit:hover,
.mf-form-wrapper.mf-form-wrapper--dark button.mf-submit:hover,
.mf-form-wrapper.mf-form-wrapper--dark .mf-submit:hover,
.mf-form-wrapper.mf-form-wrapper--dark button[type="submit"]:hover {
    background: #c8dd2c !important;
    background-color: #c8dd2c !important;
    color: #000000 !important;
}

/* Messages d'erreur côté visiteur */
.mf-form-wrapper.mf-form-wrapper--dark .mf-field-error,
.mf-form-wrapper.mf-form-wrapper--dark .mf-error {
    color: #ff6b6b !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-message--error {
    background: rgba(220, 38, 38, 0.15) !important;
    border-left-color: #dc2626 !important;
    color: #fca5a5 !important;
}

/* Mention reCAPTCHA */
.mf-form-wrapper.mf-form-wrapper--dark .mf-recaptcha-notice,
.mf-form-wrapper.mf-form-wrapper--dark .mf-recaptcha-notice * {
    color: #aaa !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-recaptcha-notice a {
    color: #b0c41f !important;
}

/* Champs en erreur : border rouge */
.mf-form-wrapper.mf-form-wrapper--dark .mf-field--error input,
.mf-form-wrapper.mf-form-wrapper--dark .mf-field--error select,
.mf-form-wrapper.mf-form-wrapper--dark .mf-field--error textarea {
    border-color: #dc2626 !important;
    background-color: #fff5f5 !important;
}

/* 🆕 v6.54 : Case RGPD - mise en page propre (label flexbox avec checkbox visible) */
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd,
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper,
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: #1a1a1a !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #333 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd label,
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper label,
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-row label {
    color: #ddd !important;
    text-align: left !important;
    line-height: 1.5 !important;
    font-size: 13px !important;
    flex: 1 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd input[type="checkbox"],
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper input[type="checkbox"],
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-row input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    accent-color: #b0c41f !important;
    flex-shrink: 0 !important;
}
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd a,
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper a {
    color: #b0c41f !important;
    text-decoration: underline !important;
}

/* ====================================================================
   🆕 v6.55 : MODE SOMBRE — Espacement compact + raffinements
   ==================================================================== */

/* Réduire l'espacement entre les champs sur fond noir */
.mf-form-wrapper.mf-form-wrapper--dark .mf-form {
    gap: 18px !important;
}

/* Espacement label-input plus serré */
.mf-form-wrapper.mf-form-wrapper--dark .mf-field {
    gap: 6px !important;
}

/* Hauteur de ligne et padding des champs - plus aérés */
.mf-form-wrapper.mf-form-wrapper--dark input[type="text"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="email"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="tel"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="url"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="number"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="password"],
.mf-form-wrapper.mf-form-wrapper--dark input[type="date"],
.mf-form-wrapper.mf-form-wrapper--dark select {
    padding: 12px 14px !important;
    font-size: 15px !important;
    min-height: 46px !important;
}

.mf-form-wrapper.mf-form-wrapper--dark textarea {
    padding: 12px 14px !important;
    font-size: 15px !important;
    min-height: 110px !important;
}

/* Padding-bottom des champs réduit (les marges fantômes) */
.mf-form-wrapper.mf-form-wrapper--dark .mf-field-wrapper {
    margin: 0 !important;
}

/* Hover des champs sur sombre : légère border verte */
.mf-form-wrapper.mf-form-wrapper--dark input:hover:not(:focus),
.mf-form-wrapper.mf-form-wrapper--dark select:hover:not(:focus),
.mf-form-wrapper.mf-form-wrapper--dark textarea:hover:not(:focus) {
    border-color: #888 !important;
}

/* Hover sur les cards radio */
.mf-form-wrapper.mf-form-wrapper--dark .mf-radio-label {
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Ligne séparatrice subtile entre sections (optionnel) */
.mf-form-wrapper.mf-form-wrapper--dark fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Réduire l'espacement de la grille 2 colonnes (Prénom/Nom etc.) */
@media (min-width: 640px) {
    .mf-form-wrapper.mf-form-wrapper--dark .mf-field-row {
        gap: 16px !important;
    }
}

/* ====================================================================
   🆕 v6.56 : MODE SOMBRE — Lien RGPD bien visible
   ==================================================================== */

/* Lien dans la case RGPD : vert anis bien visible, soulignement marqué */
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd a,
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper a,
.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-row a,
.mf-form-wrapper.mf-form-wrapper--dark label a {
    color: #b0c41f !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
}

.mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-rgpd a:hover,
.mf-form-wrapper.mf-form-wrapper--dark .mf-rgpd-wrapper a:hover,
.mf-form-wrapper.mf-form-wrapper--dark label a:hover {
    color: #c8dd2c !important;
    text-decoration-color: #c8dd2c !important;
}

/* ====================================================================
   🐛 FIX v6.57 — Case RGPD VISIBLE en mode sombre
   --------------------------------------------------------------------
   PROBLÈME : la règle v6.54 (~ligne 750) forçait opacity:0 et
   position:absolute sur les checkboxes en mode sombre, ce qui rendait
   la case RGPD totalement invisible et incliquable à la souris.
   
   APPROCHE : on AJOUTE des règles à la fin avec un sélecteur ULTRA
   spécifique (html body + classes en cascade) pour BATTRE la règle
   v6.54 sans la modifier (elle reste utile pour les radios stylés
   en boutons-options "Je suis adhérent / Je ne suis pas adhérent").
   ==================================================================== */

/* Case RGPD VISIBLE en mode sombre — bat la règle v6.54 */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"] {
    opacity: 1 !important;
    position: static !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: inline-block !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex-shrink: 0 !important;
    margin: 2px 12px 0 0 !important;
    padding: 0 !important;
    background-color: #f5f5f4 !important;
    border: 2px solid #b0c41f !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    transition: all 0.15s ease !important;
}

/* Case cochée : fond vert + coche noire */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:checked {
    background-color: #b0c41f !important;
    border-color: #b0c41f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231a1a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.5 3.5L13 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 75% !important;
}

/* Hover : effet lumineux */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:hover {
    border-color: #c8df21 !important;
    box-shadow: 0 0 0 3px rgba(176, 196, 31, 0.2) !important;
}

/* Focus clavier (accessibilité) */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #b0c41f !important;
    outline-offset: 2px !important;
}

/* Le label parent ne doit pas être stylé comme une "boîte" cliquable
   (sinon : grosse boîte noire autour de la case RGPD comme les radios) */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
}

/* Quand la case est cochée, on ne change que la case elle-même
   (pas de fond vert sur tout le label, qui serait disgracieux) */
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label:has(input[type="checkbox"]:checked) {
    background: transparent !important;
    border: none !important;
}
html body .mf-form-wrapper.mf-form-wrapper--dark .mf-checkbox-label:has(input[type="checkbox"]:checked) span {
    color: #f5f5f4 !important;
    font-weight: 400 !important;
}

/* ============================================
   🆕 v6.57.11 : CTA Simulateur formulaire FRANCHISE
   S'adapte automatiquement aux modes light & dark
   ============================================ */

/* --- Mode CLAIR (par défaut) --- */
.mf-franchise-cta {
    margin: 12px 0 24px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.mf-franchise-cta__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.4;
}

.mf-franchise-cta__btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, #b0c41f, #8fa319);
    color: #000 !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 4px 12px rgba(176, 196, 31, 0.25);
}

.mf-franchise-cta__btn:hover,
.mf-franchise-cta__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(176, 196, 31, 0.4);
    filter: brightness(1.05);
    outline: none;
}

/* --- Mode SOMBRE : CTA simulateur masqué (fond noir, on évite le doublon) --- */
.mf-form-wrapper--dark .mf-franchise-cta {
    display: none !important;
}

/* --- Aussi masquer le bloc info parent quand il contient uniquement le CTA --- */
.mf-form-wrapper--dark .mf-info-block:has(.mf-franchise-cta) {
    display: none !important;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .mf-franchise-cta {
        padding: 16px;
    }
    .mf-franchise-cta__title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .mf-franchise-cta__btn {
        padding: 11px 18px;
        font-size: 14px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   🆕 v6.57.13 : Fix espacement vertical mode CLAIR
   Force l'écart entre les lignes de champs
   ============================================ */

/* Le wrapper des champs doit avoir une marge cohérente */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-field-wrapper {
    margin-bottom: 1.25rem !important;
}

.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-field-wrapper:last-child {
    margin-bottom: 0 !important;
}

/* Force aussi l'espacement label/input */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-field {
    gap: 0.5rem !important;
}

/* Vérification : grid 2 colonnes sur mode clair = bon gap */
@media (min-width: 640px) {
    .mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-field-row {
        gap: 1.25rem !important;
    }
}

/* ============================================
   🆕 v6.57.14 : Fix bordures textarea/inputs MODE CLAIR
   Force une bordure visible sur tous les champs
   ============================================ */

.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="text"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="email"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="tel"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="url"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="number"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="password"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) input[type="date"],
.mf-form-wrapper:not(.mf-form-wrapper--dark) select,
.mf-form-wrapper:not(.mf-form-wrapper--dark) textarea {
    border: 1px solid #d1d5db !important;  /* gris-300 plus visible */
    background-color: #fefcf7 !important;   /* beige clair cohérent */
    border-radius: 8px !important;
}

/* Hover et focus */
.mf-form-wrapper:not(.mf-form-wrapper--dark) input:hover:not(:focus),
.mf-form-wrapper:not(.mf-form-wrapper--dark) select:hover:not(:focus),
.mf-form-wrapper:not(.mf-form-wrapper--dark) textarea:hover:not(:focus) {
    border-color: #9ca3af !important;  /* gris-400 au survol */
}

.mf-form-wrapper:not(.mf-form-wrapper--dark) input:focus,
.mf-form-wrapper:not(.mf-form-wrapper--dark) select:focus,
.mf-form-wrapper:not(.mf-form-wrapper--dark) textarea:focus {
    border-color: #b0c41f !important;  /* vert MagicFit au focus */
    box-shadow: 0 0 0 3px rgba(176, 196, 31, 0.15) !important;
    outline: none !important;
}

/* ============================================
   🆕 v6.57.15 : Radios & Checkboxes MODE CLAIR
   Ajout d'indicateurs visuels (rond vert / ✓)
   ============================================ */

/* --- RADIOS : rond vert rempli au centre quand sélectionné --- */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-radio-label input[type="radio"]:checked {
    border: 2px solid #b0c41f !important;
    border-width: 2px !important;
    background: #fff !important;
}

.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-radio-label input[type="radio"]:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #b0c41f !important;
}

/* --- CHECKBOXES : ✓ blanc sur fond vert quand cochée --- */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-checkbox-label input[type="checkbox"]:checked {
    background: #b0c41f !important;
    border-color: #b0c41f !important;
}

.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-checkbox-label input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
}

/* S'assurer que la checkbox est bien en position relative pour le ::after */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-checkbox-label input[type="checkbox"] {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* Hover de la checkbox */
.mf-form-wrapper:not(.mf-form-wrapper--dark) .mf-checkbox-label input[type="checkbox"]:hover:not(:checked) {
    border-color: #9ca3af !important;
}
