/**
 * Mampreneures Forms - Styles publics
 *
 * @package Mampreneures_Forms
 * @since 1.0.0
 */

/* ==========================================================================
   Login Form
   ========================================================================== */

.mpf-login-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.mpf-login-form {
    width: 100%;
}

/* Form Groups */
.mpf-form-group {
    margin-bottom: 20px;
}

.mpf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.mpf-btn.mpf-btn-primary {
    background-color: #1C9093 !important;
    border: none !important;
    border-radius: 25px 8px !important;
    color: white;
    display: inline-block;
    font-weight: 600;
    padding: .5rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
    font-size: 15px !important;
}

.mpf-btn.mpf-btn-primary:hover {
    opacity: 0.8;
}

.mpf-form-group input[type="text"],
.mpf-form-group input[type="email"],
.mpf-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.mpf-form-group input[type="text"]:focus,
.mpf-form-group input[type="email"]:focus,
.mpf-form-group input[type="password"]:focus {
    outline: none;
    border-color: #4db6ac;
}

/* Checkbox Remember */
.mpf-remember {
    margin-bottom: 25px;
}

.mpf-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.mpf-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #4db6ac;
}

/* Form Actions - Buttons */
.mpf-form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mpf-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpf-btn-primary {
    background-color: #4db6ac;
    color: #fff;
}

.mpf-btn-primary:hover {
    background-color: #3d9a91;
}

.mpf-btn-secondary {
    background-color: #e0e0e0;
    color: #555;
    border-radius: 25px 8px !important;
    font-size: 15px !important;
    font-weight: 600;
}

.mpf-btn-secondary:hover {
    background-color: #d0d0d0;
    color: #333;
}

/* Lost Password Link */
.mpf-form-links {
    text-align: center;
    margin-top: 15px;
}

.mpf-lost-password {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mpf-lost-password:hover {
    color: #4db6ac;
    text-decoration: underline;
}

/* Messages */
.mpf-message {
    margin-top: 15px;
    padding: 0;
    text-align: center;
    font-size: 14px;
    display: none;
}

.mpf-message.mpf-error {
    display: block;
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px 15px;
    border-radius: 4px;
}

.mpf-message.mpf-success {
    display: block;
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 10px 15px;
    border-radius: 4px;
}

/* Logged In Message */
.mpf-logged-in {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.mpf-logged-in a {
    color: #4db6ac;
}

/* Loading State */
.mpf-btn-primary.mpf-loading {
    opacity: 0.7;
    pointer-events: none;
}

.mpf-btn-primary.mpf-loading::after {
    content: '...';
}

/* ==========================================================================
   Member Area - Espace Adhérent
   ========================================================================== */

.mpf-member-area {
    max-width: 100%;
    margin: 0 auto;
}

/* Header Banner */
.mpf-member-header {
    width: 100%;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.mpf-header-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px !important;
    height: 300px !important;
    object-fit: cover;
}

/* Logo Circle */
.mpf-member-logo {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    margin-bottom: 20px;
}

.mpf-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mpf-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Tabs */
.mpf-member-tabs {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #1C9093;
    border-radius: 25px 0px 25px 0px;
}

.mpf-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px 0px 25px 0px;
    border: 2px solid transparent !important;
    background-color: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpf-tab:hover {
    color: white;
    border: 2px solid #1D4141 !important;
    border-radius: 25px 0px 25px 0px;
    box-shadow: 3px 3px 0px #1D4141;
    background: #1C9093 !important;
}

.mpf-tab.active {
    color: white;
    border: 2px solid #1D4141 !important;
    border-radius: 25px 0px 25px 0px;
    box-shadow: 3px 3px 0px #1D4141;
    background: #1C9093 !important;
    transition: 0.3s;
}

.mpf-tab-icon {
    font-size: 16px;
}

/* Tab Contents */
.mpf-tab-contents {
    padding: 0;
}

.mpf-tab-content {
    display: none;
}

.mpf-tab-content.active {
    display: block;
}

/* Content Cards */
.mpf-content-card {
    background: #1d4141;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    color: white;
}

.mpf-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

/* About Layout */
.mpf-about-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .mpf-about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* About Left Column */
.mpf-about-left {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
}

@media (max-width: 768px) {
    .mpf-about-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 30px;
    }
}

.mpf-user-name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.mpf-btn-edit-profile {
    display: inline-block;
    background-color: #E8706D;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.mpf-btn-edit-profile:hover {
    background-color: #d45f5c;
    color: white;
}

.mpf-social-networks {
    font-size: 14px;
    color: white;
    margin: 0;
}

/* About Right Column */
.mpf-about-right {
    padding-left: 0;
}

.mpf-section-title {
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 10px 0;
    color: white;
}

.mpf-description,
.mpf-competences {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Info Rows */
.mpf-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mpf-info-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.mpf-info-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Badges */
.mpf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mpf-badge-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #81C784;
}

.mpf-badge-neutral {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Toggle Indicator */
.mpf-toggle-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.mpf-toggle-indicator.active::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 22px;
    background-color: #4CAF50;
    border-radius: 11px;
    position: relative;
}

.mpf-toggle-indicator.active::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    margin-left: -22px;
    margin-top: 2px;
}

/* Empty States */
.mpf-empty-state {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Back Button */
.mpf-btn-back {
    display: inline-block;
    margin-top: 10px;
}

.mpf-readonly-value {
    color: white;
}

/* ==========================================================================
   Access Denied
   ========================================================================== */

.mpf-access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
}

.mpf-access-denied-card {
    background: linear-gradient(135deg, #1C5D5F 0%, #2A7D7F 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 450px;
    color: white;
}

.mpf-access-denied-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.mpf-access-denied-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.mpf-access-denied-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.mpf-access-denied-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.mpf-access-denied-actions .mpf-btn {
    min-width: 140px;
}

/* ==========================================================================
   Switch Toggle - Droit à l'image
   ========================================================================== */

.mpf-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0 10px;
    flex-shrink: 0;
}

.mpf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mpf-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 26px;
}

.mpf-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mpf-switch input:checked + .mpf-switch-slider {
    background-color: #4CAF50;
}

.mpf-switch input:checked + .mpf-switch-slider:before {
    transform: translateX(24px);
}

.mpf-switch input:focus + .mpf-switch-slider {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.mpf-switch-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Animation de chargement sur le switch */
.mpf-switch.mpf-loading .mpf-switch-slider {
    opacity: 0.6;
    pointer-events: none;
}

.mpf-switch.mpf-loading .mpf-switch-slider:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: mpf-spin 0.8s linear infinite;
}

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

/* Info row ajustements pour le switcher */
.mpf-info-row .mpf-info-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Profile Modal - Slide from Right
   ========================================================================== */

/* Bouton Modifier mon profil */
.mpf-btn-edit-profile,
button.mpf-btn-edit-profile {
    display: inline-block !important;
    background-color: #E8706D !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
    border: none !important;
    cursor: pointer !important;
}

.mpf-btn-edit-profile:hover,
button.mpf-btn-edit-profile:hover {
    background-color: #d45f5c !important;
    color: white !important;
}

/* Overlay */
.mpf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mpf-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.mpf-profile-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 550px;
    height: 100%;
    background-color: #1d4141;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mpf-profile-modal.active {
    transform: translateX(0);
}

/* Modal Header */
.mpf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mpf-modal-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
}

.mpf-modal-close {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.mpf-modal-close:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.mpf-modal-close svg {
    width: 24px !important;
    height: 24px !important;
}

/* Modal Body */
.mpf-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Form Styles */
.mpf-profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mpf-form-label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: white !important;
    margin-bottom: 8px !important;
}

.mpf-form-hint {
    display: block !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 8px !important;
    font-style: italic !important;
}

.mpf-form-input,
.mpf-form-textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.mpf-form-input::placeholder,
.mpf-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.mpf-form-input:focus,
.mpf-form-textarea:focus {
    outline: none !important;
    border-color: #4db6ac !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.mpf-form-textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Radio Group */
.mpf-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mpf-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mpf-radio-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mpf-radio-item input[type="radio"] {
    accent-color: #4db6ac;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.mpf-radio-item span {
    font-size: 14px !important;
    color: white !important;
    position:relative;
    top:-1px
}

.mpf-radio-item:has(input:checked) {
    background-color: rgba(77, 182, 172, 0.2);
    border-color: #4db6ac;
}

/* Multiselect Container */
.mpf-select-multiple {
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.mpf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mpf-checkbox-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mpf-checkbox-item input[type="checkbox"] {
    accent-color: #4db6ac;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.mpf-checkbox-item span {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.mpf-checkbox-item:has(input:checked) {
    background-color: rgba(77, 182, 172, 0.15);
}

.mpf-checkbox-item:has(input:checked) span {
    color: white !important;
    font-weight: 500 !important;
}

/* Scrollbar styling for select multiple */
.mpf-select-multiple::-webkit-scrollbar {
    width: 6px;
}

.mpf-select-multiple::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mpf-select-multiple::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mpf-select-multiple::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Modal Footer */
.mpf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mpf-modal-footer .mpf-btn {
    min-width: 150px;
}

.mpf-modal-footer .mpf-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.mpf-modal-footer .mpf-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Modal Message */
.mpf-modal-message {
    padding: 0 30px 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.mpf-modal-message.mpf-success {
    display: block;
    color: #81C784;
}

.mpf-modal-message.mpf-error {
    display: block;
    color: #E57373;
}

/* Body scroll lock */
body.mpf-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .mpf-profile-modal {
        max-width: 100%;
    }

    .mpf-modal-header,
    .mpf-modal-body,
    .mpf-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mpf-modal-footer {
        flex-direction: column;
    }

    .mpf-modal-footer .mpf-btn {
        width: 100%;
    }

    .mpf-radio-group {
        flex-direction: column;
    }

    .mpf-radio-item {
        width: 100%;
    }
}

/* ==========================================================================
   Profile Image Upload
   ========================================================================== */

.mpf-upload-section {
    margin-bottom: 10px;
}

.mpf-upload-section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #4db6ac !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mpf-form-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 30px 0;
}

.mpf-upload-zone {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mpf-upload-zone:hover,
.mpf-upload-zone.mpf-drag-over {
    border-color: #4db6ac;
    background-color: rgba(77, 182, 172, 0.1);
}

.mpf-upload-zone-logo {
    max-width: 200px;
}

/* Preview */
.mpf-upload-preview {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.mpf-upload-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-height: 150px;
    object-fit: cover;
}

.mpf-upload-preview-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.mpf-upload-preview-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    object-fit: contain;
    max-height: none;
    background-color: white;
}


/* Remove button */
.mpf-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px !important;
    height: 20px !important;
    background-color: rgba(232, 112, 109, 0.9) !important;
    border: none !important;
    font-size: 15.5px !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.mpf-upload-remove:hover {
    background-color: #E8706D !important;
    transform: scale(1.1);
}

.mpf-upload-remove svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.mpf-upload-preview-logo .mpf-upload-remove {
    top: 0;
    right: 0;
}

/* Upload actions */
.mpf-upload-actions {
    text-align: center;
}

.mpf-btn-upload {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mpf-btn-upload:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.mpf-btn-upload svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Error message */
.mpf-upload-error {
    color: #E57373;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.mpf-upload-error.visible {
    display: block;
}

/* Progress bar */
.mpf-upload-progress {
    margin-top: 15px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.mpf-upload-progress.visible {
    display: block;
}

.mpf-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4db6ac, #1C9093);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Drag over animation */
@keyframes mpf-pulse-border {
    0%, 100% {
        border-color: rgba(77, 182, 172, 0.5);
    }
    50% {
        border-color: #4db6ac;
    }
}

.mpf-upload-zone.mpf-drag-over {
    animation: mpf-pulse-border 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 600px) {
    .mpf-profile-modal {
        max-width: 100%;
    }

    .mpf-modal-header,
    .mpf-modal-body,
    .mpf-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mpf-modal-footer {
        flex-direction: column;
    }

    .mpf-modal-footer .mpf-btn {
        width: 100%;
    }

    .mpf-radio-group {
        flex-direction: column;
    }

    .mpf-radio-item {
        width: 100%;
    }

    .mpf-upload-zone-logo {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Social Links - Réseaux sociaux
   ========================================================================== */

.mpf-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.mpf-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpf-social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.mpf-social-link svg {
    width: 20px;
    height: 20px;
}

/* Couleurs spécifiques au survol */
.mpf-social-facebook:hover {
    background-color: #1877F2;
}

.mpf-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.mpf-social-linkedin:hover {
    background-color: #0A66C2;
}

.mpf-social-website:hover {
    background-color: #4db6ac;
}

/* Message si aucun réseau */
.mpf-no-social {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .mpf-social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   Register Form - Formulaire d'inscription multi-étapes
   ========================================================================== */

.mpf-register-wrapper {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
}

/* Logged In State */
.mpf-register-logged-in {
    text-align: center !important;
    padding: 40px 30px !important;
    background: linear-gradient(135deg, rgba(28, 144, 147, 0.1), rgba(29, 65, 65, 0.1)) !important;
    border-radius: 20px !important;
}

.mpf-register-logged-in p {
    font-size: 16px !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
}

.mpf-register-logged-in a {
    color: #1C9093 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.mpf-register-logged-in a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.mpf-register-progress {
    margin-bottom: 40px !important;
    padding: 0 10px !important;
}

.mpf-progress-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mpf-progress-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
}

.mpf-step-number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: #e9ecef !important;
    color: #999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border: 3px solid transparent !important;
}

.mpf-progress-step.active .mpf-step-number,
.mpf-progress-step.completed .mpf-step-number {
    background-color: #1C9093 !important;
    color: white !important;
    border-color: rgba(28, 144, 147, 0.3) !important;
}

.mpf-progress-step.completed .mpf-step-number {
    background-color: #4CAF50 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

.mpf-step-label {
    margin-top: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s ease !important;
}

.mpf-progress-step.active .mpf-step-label,
.mpf-progress-step.completed .mpf-step-label {
    color: #1C9093 !important;
}

.mpf-progress-line {
    flex: 1 !important;
    height: 3px !important;
    background-color: #e9ecef !important;
    margin: 0 10px !important;
    margin-bottom: 20px !important;
    max-width: 60px !important;
    transition: background-color 0.3s ease !important;
}

.mpf-progress-step.completed + .mpf-progress-line,
.mpf-progress-line.completed {
    background-color: #4CAF50 !important;
}

@media (max-width: 500px) {
    .mpf-step-label {
        display: none !important;
    }

    .mpf-step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    .mpf-progress-line {
        max-width: 40px !important;
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   Step Content
   ========================================================================== */

.mpf-register-step {
    display: none !important;
}

.mpf-register-step.active {
    display: block !important;
    animation: mpfFadeIn 0.3s ease !important;
}

@keyframes mpfFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mpf-step-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1d4141 !important;
    margin: 0 0 25px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #1C9093 !important;
    display: inline-block !important;
    font-style: italic !important;
}

.mpf-step-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    margin: -15px 0 25px 0 !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.mpf-form-row {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.mpf-form-half {
    flex: 1 !important;
    min-width: 200px !important;
}

@media (max-width: 500px) {
    .mpf-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .mpf-form-half {
        min-width: 100% !important;
    }
}

/* Form Groups */
.mpf-register-form .mpf-form-group {
    margin-bottom: 20px !important;
}

.mpf-register-form .mpf-form-group > label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.mpf-required {
    color: #E8706D !important;
}

/* Input Fields */
.mpf-register-form input[type="text"],
.mpf-register-form input[type="email"],
.mpf-register-form input[type="password"],
.mpf-register-form input[type="tel"],
.mpf-register-form input[type="date"],
.mpf-register-form select.mpf-select {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #333 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.mpf-register-form input:focus,
.mpf-register-form select:focus {
    outline: none !important;
    border-color: #1C9093 !important;
    box-shadow: 0 0 0 3px rgba(28, 144, 147, 0.15) !important;
}

.mpf-register-form input.mpf-error,
.mpf-register-form select.mpf-error {
    border-color: #E8706D !important;
    box-shadow: 0 0 0 3px rgba(232, 112, 109, 0.15) !important;
}

/* Select styling */
.mpf-register-form select.mpf-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

/* Password Wrapper */
.mpf-password-wrapper {
    position: relative !important;
}

.mpf-password-wrapper input {
    padding-right: 50px !important;
}

.mpf-password-toggle {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #E8706D !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
}

.mpf-password-toggle:hover {
    background: #d45f5c !important;
}

.mpf-password-toggle svg {
    width: 18px !important;
    height: 18px !important;
}

/* Field Hints & Errors */
.mpf-field-hint {
    display: block !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: black;
}

.mpf-field-error {
    display: none !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #E8706D !important;
    font-weight: 500 !important;
}

.mpf-field-error.visible {
    display: block !important;
}

/* ==========================================================================
   Radio Groups
   ========================================================================== */

.mpf-register-form .mpf-radio-group {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.mpf-register-form .mpf-radio-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 14px 24px !important;
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 25px !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    min-width: 150px !important;
    justify-content: center !important;
}

.mpf-register-form .mpf-radio-item:hover {
    border-color: #1C9093 !important;
    background-color: rgba(28, 144, 147, 0.05) !important;
}

.mpf-register-form .mpf-radio-item input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #1C9093 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.mpf-register-form .mpf-radio-item span {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.mpf-register-form .mpf-radio-item:has(input:checked) {
    background-color: #1C9093 !important;
    border-color: #1C9093 !important;
}

.mpf-register-form .mpf-radio-item:has(input:checked) span {
    color: white !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Checkbox Groups
   ========================================================================== */

.mpf-checkbox-group {
    margin-top: 10px !important;
}

.mpf-register-form .mpf-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 18px 20px !important;
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.mpf-register-form .mpf-checkbox-label:hover {
    border-color: #1C9093 !important;
}

.mpf-register-form .mpf-checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #1C9093 !important;
    cursor: pointer !important;
    border:2px solid rgba(0, 0, 0, 0.58) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    top: 3px;
}

.mpf-register-form input[type="checkbox"]:checked::after {
    top: 0px !important;
    left: 5px !important;
}

.mpf-register-form .mpf-checkbox-label span {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.mpf-register-form .mpf-checkbox-label span a {
    color: #1C9093 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.mpf-register-form .mpf-checkbox-label span a:hover {
    color: #156d6f !important;
}

.mpf-register-form .mpf-checkbox-required {
    border-color: rgba(232, 112, 109, 0.4) !important;
    background-color: rgba(232, 112, 109, 0.03) !important;
}

.mpf-register-form .mpf-checkbox-label:has(input:checked) {
    background-color: rgba(28, 144, 147, 0.1) !important;
    border-color: #1C9093 !important;
}
/* ==========================================================================
   Upload Zone
   ========================================================================== */

.mpf-upload-row {
    margin-top: 15px !important;
    display: flex !important;
    align-items: stretch !important;
}

.mpf-upload-row .mpf-form-half {
    display: flex !important;
    flex-direction: column !important;
}

.mpf-register-form .mpf-upload-zone {
    position: relative !important;
    background-color: #f8f9fa !important;
    border: 2px dashed #ddd !important;
    border-radius: 15px !important;
    padding: 20px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
}

.mpf-register-form .mpf-upload-zone:hover {
    border-color: #1C9093 !important;
    background-color: rgba(28, 144, 147, 0.03) !important;
}

.mpf-register-form .mpf-upload-zone.mpf-drag-over {
    border-color: #1C9093 !important;
    background-color: rgba(28, 144, 147, 0.1) !important;
}

.mpf-register-form .mpf-upload-preview {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 15px !important;
    border-radius: 50% !important;
    overflow: visible !important;
    background-color: #fff !important;
    border: 3px solid #e9ecef !important;
}

.mpf-register-form .mpf-upload-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.mpf-register-form .mpf-cover-preview {
    width: 100% !important;
    height: 100px !important;
    border-radius: 10px !important;
    overflow: visible !important;
}

.mpf-register-form .mpf-cover-preview img {
    border-radius: 8px !important;
}

.mpf-register-form .mpf-upload-zone-cover {
    padding: 15px !important;
}

.mpf-register-form .mpf-upload-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: auto !important;
}

.mpf-register-form .mpf-file-input {
    display: none !important;
}

.mpf-register-form .mpf-upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background-color: #1C9093 !important;
    color: white !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    text-decoration: none !important;
}

.mpf-register-form .mpf-upload-btn:hover {
    background-color: #156d6f !important;
    color: white !important;
}

/* Bouton Supprimer - Positionné SUR l'image preview */
.mpf-register-form .mpf-upload-preview .mpf-upload-remove {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background-color: #E8706D !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
}

.mpf-register-form .mpf-upload-preview .mpf-upload-remove:hover {
    background-color: #d45f5c !important;
    transform: scale(1.1) !important;
}

.mpf-register-form .mpf-upload-preview .mpf-upload-remove svg {
    width: 14px !important;
    height: 14px !important;
    stroke: white !important;
}

/* Position spécifique pour la couverture */
.mpf-register-form .mpf-cover-preview .mpf-upload-remove {
    top: -8px !important;
    right: -8px !important;
}

/* Cacher le bouton remove qui est dans .mpf-upload-actions */
.mpf-register-form .mpf-upload-actions .mpf-upload-remove {
    display: none !important;
}

.mpf-register-form .mpf-upload-error {
    color: #E8706D !important;
    font-size: 12px !important;
    margin-top: 10px !important;
    display: none !important;
    text-align: center !important;
}

.mpf-register-form .mpf-upload-error.visible {
    display: block !important;
}

.mpf-register-form .mpf-upload-progress {
    margin-top: 10px !important;
    height: 4px !important;
    background-color: #e9ecef !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    display: none !important;
}

.mpf-register-form .mpf-upload-progress.visible {
    display: block !important;
}

.mpf-register-form .mpf-upload-progress-bar {
    height: 100% !important;
    background-color: #1C9093 !important;
    border-radius: 2px !important;
    width: 0 !important;
    transition: width 0.3s ease !important;
}

/* Responsive */
@media (max-width: 500px) {
    .mpf-upload-row {
        flex-direction: column !important;
    }
}

/* ==========================================================================
   Step Actions
   ========================================================================== */

.mpf-step-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 35px !important;
    padding-top: 25px !important;
    border-top: 1px solid #eee !important;
    gap: 15px !important;
}

.mpf-step-actions .mpf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 25px 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: none !important;
}

.mpf-step-actions .mpf-btn-primary {
    background-color: #1C9093 !important;
    color: white !important;
    margin-left: auto !important;
}

.mpf-step-actions .mpf-btn-primary:hover {
    background-color: #156d6f !important;
    color: white !important;
}

.mpf-step-actions .mpf-btn-secondary {
    background-color: #f8f9fa !important;
    color: #666 !important;
    border: 2px solid #e9ecef !important;
}

.mpf-step-actions .mpf-btn-secondary:hover {
    background-color: #e9ecef !important;
    color: #333 !important;
}

.mpf-step-actions .mpf-btn-submit {
    min-width: 160px !important;
}

/* Loading state */
.mpf-btn-loader {
    display: none !important;
}

.mpf-btn.mpf-loading .mpf-btn-text {
    display: none !important;
}

.mpf-btn.mpf-loading .mpf-btn-loader {
    display: inline-flex !important;
}

.mpf-btn.mpf-loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
}

/* Spinner Animation */
.mpf-spinner {
    animation: mpfSpin 1s linear infinite !important;
}

@keyframes mpfSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Form Links
   ========================================================================== */

.mpf-register-form .mpf-form-links {
    text-align: center !important;
    margin-top: 25px !important;
}

.mpf-register-form .mpf-form-links p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
}

.mpf-register-form .mpf-form-links a {
    color: #1C9093 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.mpf-register-form .mpf-form-links a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.mpf-register-form .mpf-message {
    margin-top: 20px !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 14px !important;
    display: none !important;
}

.mpf-register-form .mpf-message.mpf-error {
    display: block !important;
    color: #d32f2f !important;
    background-color: #ffebee !important;
    border: 1px solid #ffcdd2 !important;
}

.mpf-register-form .mpf-message.mpf-success {
    display: block !important;
    color: #388e3c !important;
    background-color: #e8f5e9 !important;
    border: 1px solid #c8e6c9 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .mpf-register-wrapper {
        padding: 20px 15px !important;
    }

    .mpf-register-form .mpf-radio-item {
        min-width: 100% !important;
    }

    .mpf-step-actions {
        flex-direction: column !important;
    }

    .mpf-step-actions .mpf-btn {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .mpf-step-actions .mpf-btn-secondary {
        order: 2 !important;
    }

    .mpf-step-actions .mpf-btn-primary {
        order: 1 !important;
    }
}


/* ==========================================================================
   Modal Sélection Antenne (Login)
   ========================================================================== */

/* Overlay - bloque tout en arrière-plan */
.mpf-antenne-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.mpf-antenne-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.mpf-antenne-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background-color: #fff;
    border-radius: 16px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mpf-antenne-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Content */
.mpf-antenne-modal-content {
    display: flex;
    flex-direction: column;
}

/* Header */
.mpf-antenne-modal-header {
    background: linear-gradient(135deg, #1C9093 0%, #1d4141 100%);
    padding: 30px 25px;
    text-align: center;
    color: white;
}

.mpf-antenne-modal-icon {
    margin-bottom: 15px;
}

.mpf-antenne-modal-icon svg {
    color: white;
    opacity: 0.9;
}

.mpf-antenne-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.mpf-antenne-modal-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Body */
.mpf-antenne-modal-body {
    padding: 30px 25px;
}

.mpf-antenne-modal-body .mpf-form-group {
    margin-bottom: 0;
}

.mpf-antenne-modal-body .mpf-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mpf-form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mpf-form-select:focus {
    outline: none;
    border-color: #1C9093;
    box-shadow: 0 0 0 3px rgba(28, 144, 147, 0.15);
}

.mpf-form-select:hover {
    border-color: #1C9093;
}

/* Message d'erreur/succès */
.mpf-antenne-modal-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.mpf-antenne-modal-message.mpf-error {
    display: block;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mpf-antenne-modal-message.mpf-success {
    display: block;
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Footer */
.mpf-antenne-modal-footer {
    padding: 0 25px 25px 25px;
}

.mpf-btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px !important;
    font-size: 15px !important;
}

.mpf-btn-full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mpf-btn-full:disabled:hover {
    opacity: 0.6;
}

/* Spinner animation */
.mpf-antenne-modal .mpf-spinner {
    animation: mpf-spin 1s linear infinite;
}

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

/* État de chargement */
.mpf-antenne-modal .mpf-btn-loading .mpf-btn-text {
    display: none;
}

.mpf-antenne-modal .mpf-btn-loading .mpf-btn-loader {
    display: inline-flex !important;
}

/* Empêcher le scroll du body quand le modal est ouvert */
body.mpf-antenne-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .mpf-antenne-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .mpf-antenne-modal-header {
        padding: 25px 20px;
    }

    .mpf-antenne-modal-title {
        font-size: 20px;
    }

    .mpf-antenne-modal-body {
        padding: 25px 20px;
    }

    .mpf-antenne-modal-footer {
        padding: 0 20px 20px 20px;
    }
}

/* Password Toggle */
.mpf-password-wrapper {
    position: relative !important;
    display: block !important;
}

.mpf-password-wrapper input {
    width: 100% !important;
    padding-right: 45px !important;
}

.mpf-toggle-password {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    color: #666 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mpf-toggle-password:hover {
    color: #1C9093 !important;
}

.mpf-toggle-password svg {
    display: block !important;
}

.mpf-toggle-password .eye-closed {
    display: none !important;
}

.mpf-toggle-password.active .eye-open {
    display: none !important;
}

.mpf-toggle-password.active .eye-closed {
    display: block !important;
}

.mpf-form-group.mpf-remember span {
    color: black;
}

/* Checkbox Se souvenir de moi */
.mpf-login-wrapper .mpf-remember {
    display: block !important;
    margin-bottom: 20px !important;
}

.mpf-login-wrapper .mpf-checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.mpf-login-wrapper .mpf-checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0!important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    accent-color: #1C9093 !important;
    border: 2px solid #1c9093 !important;
}

/* ==========================================================================
   MODAL DROIT À L'IMAGE
   ========================================================================== */

.mpf-image-rights-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.mpf-image-rights-modal.active {
    display: flex !important;
}

/* Overlay */
.mpf-image-rights-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1 !important;
}

/* Container */
.mpf-image-rights-modal-container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6) !important;
    animation: mpf-image-rights-modal-in 0.4s ease !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

@keyframes mpf-image-rights-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Image en haut */
.mpf-image-rights-modal-image {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.mpf-image-rights-modal-image img,
.mpf-image-rights-modal-image picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Header */
.mpf-image-rights-modal-header {
    padding: 20px 25px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
}

.mpf-image-rights-modal-title {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.mpf-image-rights-modal-title svg {
    color: #4db6ac !important;
    flex-shrink: 0 !important;
}

/* Body */
.mpf-image-rights-modal-body {
    padding: 20px 25px !important;
    overflow-y: auto !important;
    flex: 1 !important;
}

.mpf-image-rights-intro,
.mpf-image-rights-usage,
.mpf-image-rights-cta {
    margin: 0 0 15px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.mpf-image-rights-list {
    margin: 0 0 20px 0 !important;
    padding-left: 20px !important;
    list-style: disc !important;
}

.mpf-image-rights-list li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 5px !important;
}

.mpf-image-rights-cta {
    font-weight: 500 !important;
    color: #fff !important;
}

/* Radios droit à l'image */
.mpf-image-rights-radios {
    margin-top: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.mpf-image-rights-radios .mpf-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.mpf-image-rights-radios .mpf-radio-label:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(77, 182, 172, 0.5) !important;
}

.mpf-image-rights-radios input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mpf-image-rights-radios .mpf-radio-custom {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.mpf-image-rights-radios .mpf-radio-custom::after {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #4db6ac !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.mpf-image-rights-radios input[type="radio"]:checked + .mpf-radio-custom {
    border-color: #4db6ac !important;
}

.mpf-image-rights-radios input[type="radio"]:checked + .mpf-radio-custom::after {
    opacity: 1 !important;
}

.mpf-image-rights-radios .mpf-radio-text {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4 !important;
}

/* Checkbox conditions */
.mpf-image-rights-checkbox {
    margin-top: 20px !important;
    padding: 15px !important;
    background: rgba(77, 182, 172, 0.1) !important;
    border: 1px solid rgba(77, 182, 172, 0.3) !important;
    border-radius: 10px !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.mpf-image-rights-checkbox input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-custom {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin-top: 2px !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-custom::after {
    content: '' !important;
    width: 6px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.mpf-image-rights-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom {
    background: #4db6ac !important;
    border-color: #4db6ac !important;
}

.mpf-image-rights-checkbox input[type="checkbox"]:checked + .mpf-checkbox-custom::after {
    opacity: 1 !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-text {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-text a {
    color: #4db6ac !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.mpf-image-rights-checkbox .mpf-checkbox-text a:hover {
    color: #80cbc4 !important;
}

/* Footer */
.mpf-image-rights-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 20px 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.mpf-image-rights-modal-footer .mpf-btn {
    min-width: 120px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mpf-image-rights-modal-footer .mpf-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mpf-image-rights-modal-footer .mpf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.mpf-image-rights-modal-footer .mpf-btn-primary {
    background: linear-gradient(135deg, #4db6ac 0%, #26a69a 100%) !important;
    color: #fff !important;
    border: none !important;
}

.mpf-image-rights-modal-footer .mpf-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5cc4ba 0%, #2eb8aa 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(77, 182, 172, 0.4) !important;
}

.mpf-image-rights-modal-footer .mpf-btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
}

/* Body scroll lock */
body.mpf-image-rights-modal-open {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 600px) {
    .mpf-image-rights-modal {
        padding: 15px !important;
    }

    .mpf-image-rights-modal-container {
        max-height: 95vh !important;
        border-radius: 16px !important;
    }

    .mpf-image-rights-modal-image {
        height: 140px !important;
    }

    .mpf-image-rights-modal-header {
        padding: 15px 20px 12px !important;
    }

    .mpf-image-rights-modal-title {
        font-size: 17px !important;
    }

    .mpf-image-rights-modal-body {
        padding: 15px 20px !important;
    }

    .mpf-image-rights-modal-footer {
        padding: 15px 20px !important;
        flex-direction: column-reverse !important;
    }

    .mpf-image-rights-modal-footer .mpf-btn {
        width: 100% !important;
    }
}



.mpf-toast {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 24px !important;
    background-color: #1d4141 !important;
    border: 1px solid rgba(77, 182, 172, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    z-index: 100002 !important;
    animation: mpf-toast-in 0.3s ease !important;
}

.mpf-toast-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background-color: rgba(76, 175, 80, 0.2) !important;
    border-radius: 50% !important;
    color: #4CAF50 !important;
    flex-shrink: 0 !important;
}

.mpf-toast-message {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
}

.mpf-toast-out {
    animation: mpf-toast-out 0.3s ease forwards !important;
}

@keyframes mpf-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes mpf-toast-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ==========================================================================
   MODAL SMALL (pour les confirmations)
   ========================================================================== */

.mpf-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    display: none !important;
}

.mpf-modal.active {
    display: block !important;
}

.mpf-modal .mpf-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

.mpf-modal .mpf-modal-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #1d4141 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.mpf-modal-small {
    width: 90% !important;
    max-width: 400px !important;
}

.mpf-modal-large {
    width: 95% !important;
    max-width: 800px !important;
}

.mpf-modal .mpf-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mpf-modal .mpf-modal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
}

.mpf-modal .mpf-modal-close {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.mpf-modal .mpf-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.mpf-modal .mpf-modal-body {
    padding: 25px !important;
    overflow-y: auto !important;
}

.mpf-modal .mpf-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 20px 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(0, 0, 0, 0.15) !important;
}

/* Unsubscribe modal specific */
.mpf-unsubscribe-icon {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 20px !important;
    background-color: rgba(232, 112, 109, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #E8706D !important;
}

.mpf-unsubscribe-message {
    font-size: 16px !important;
    color: white !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.5 !important;
}

.mpf-unsubscribe-hint {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Danger button */
.mpf-btn-danger {
    background-color: #E8706D !important;
    color: white !important;
    border: none !important;
}

.mpf-btn-danger:hover {
    background-color: #d45f5c !important;
}

/* Inscription card removing animation */
.mpf-inscription-card.mpf-removing {
    animation: mpf-card-remove 0.4s ease forwards !important;
}

@keyframes mpf-card-remove {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
        height: 0;
        padding: 0;
        margin: 0;
        border: 0;
    }
}