/*
Theme Name: 	MFM Digital
Theme URI: 		http://themes.muffingroup.com/betheme
Author: 		MFM Digital
Author URI: 	http://mfmdigital.com.com
Description:	MFM Digital Child Theme
Template:		betheme
Version: 		1.0.0
Text Domain:    xpr

*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* ===== VARIABLES CSS GLOBALES ===== */
:root {
    /* Sidebar Variables */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 60px;
    --sidebar-text: #ffffff;
    --sidebar-accent: #007cba;
    --sidebar-hover: #2c2c2c;
    --sidebar-border: #333333;
    --sidebar-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

    /* Couleurs principales */
    --primary-color: #2563eb;
    --primary-hover: #2260FF;
    --primary-black: #0D0D1B;
    --primary-green : #22BB00;
    --primary-red : #FF0000;
    --primary-light: #eff6ff;
    --primary-shadow: rgba(59, 130, 246, 0.3);
    --primary-focus: rgba(59, 130, 246, 0.1);

    /* Couleurs secondaires */
    --secondary-color: #6b7280;
    --secondary-hover: #4b5563;

    /* Couleurs de succès */
    --success-color: #10b981;
    --success-hover: #059669;
    --success-light: #f0fdf4;
    --success-border: #22c55e;

    /* Couleurs d'erreur/danger */
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fecaca;

    /* Couleurs d'avertissement */
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --warning-border: #f59e0b;

    /* Couleurs neutres */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-800: #1f2937;

    /* Couleurs de fond */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Couleurs de texte */
    --text-primary: var(--gray-800);
    --text-muted: var(--gray-500);
    --text-light: var(--gray-400);

    /* Couleurs de bordure */
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

a:hover{
    color: var(--white);
}

/* Boutons communs */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

/* ===== SYSTÈME DE MODALES ===== */

/* ===== MODAL EMAILS AUTORISÉS ===== */
.emails-container {
    .emails-list {
        margin-bottom: 16px;
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid var(--border-light);
        border-radius: 6px;
        padding: 8px;

        .no-emails {
            text-align: center;
            color: var(--text-muted);
            font-style: italic;
            margin: 16px 0;
        }

        .email-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            background: var(--bg-secondary);
            border-radius: 4px;
            margin-bottom: 4px;

            &:last-child {
                margin-bottom: 0;
            }

            .email-text {
                font-family: monospace;
                color: var(--text-primary);
            }

            .remove-email-btn {
                background: red;
                color: white;
                border: none;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 10px;
                padding: 0;
                line-height: 1;
                transition: all 0.3s ease;

                &:hover {
                    background: darkred;
                    transform: scale(1.1);
                }
            }
        }
    }

    .add-email-section {
        .email-input-group {
            display: flex;
            gap: 8px;
            align-items: flex-end;

            .email-input {
                flex: 1;
                margin-bottom: 0;
                padding: 8px;
                border: 1px solid var(--border-medium);
                border-radius: 4px;
                font-size: 0.875rem;

                &:focus {
                    outline: none;
                    border-color: var(--primary-color);
                    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
                }
            }

            .add-email-btn {
                padding: 8px 12px;
                white-space: nowrap;
            }
        }
    }
}

/* Modal de base */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Contenu de la modal */
.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    /* Contrainte de hauteur + scroll interne */
    max-height: 90vh;
    margin: 5vh auto; /* centré avec marge verticale en vh */
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* En-tête de la modal */
.modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius : 12px 12px 0 0;

}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== FORMULAIRES COMMUNS ===== */

.form-group {
    margin-bottom: 16px;

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #2260FF;
        border-radius: 6px;
        font-size: 1rem;
        background: var(--bg-primary);
        color: var(--text-primary);
        transition: all 0.3s;

        &:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
        }

        &::placeholder {
            color: var(--text-muted);
        }
    }

    select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 8px center;
        background-repeat: no-repeat;
        background-size: 16px 12px;
        padding-right: 20px;
    }
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: var(--text-primary);
}

/* Corps de la modal */
.modal-body {
    overflow-y: auto;  /* Ajoute un scroll interne */
    flex: 1;           /* Prend l'espace restant (max-height - header) */
    padding: 30px;
}

/* Pied de la modal */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

/* ===== INTERFACE D'UPLOAD D'IMAGES ===== */

/* Container d'upload */
.image-upload-container {
    text-align: center;
    padding: 20px;
}

/* Aperçu d'image */
.image-preview {
    margin-bottom: 20px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Boutons d'upload */
.upload-btn {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-right: 12px;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: var(--success-hover);
}

.remove-btn {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: var(--danger-hover);
}



/* ===== OVERLAY DE CHARGEMENT ===== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.loading-spinner span {
    color: var(--text-primary);
    font-size: 1rem;
}

/* ===== MESSAGE DE SUCCÈS ===== */

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    &.error {
        background: var(--danger-color);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);

        
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message i {
    font-size: 1.2rem;
}

/* ===== BOUTONS COMMUNS ===== */

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

/* ===== RESPONSIVE COMMUN ===== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    

    
    .success-message {
        top: 12px;
        right: 12px;
        left: 12px;
    }
}

/* ===== MODAL TEMPLATE PERSONNALISÉ ===== */

/* Ajustements spécifiques pour le modal de template personnalisé */
#customTemplateModal .modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
}

#customTemplateModal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 20px 30px;
}

#customTemplateModal .forminator-form-wrapper {
    margin-bottom: 20px;
}

/* ===== SYSTÈME DE TABS RÉUTILISABLE ===== */
.tabs-container {
    width: 100%;
    margin: 20px 0;
}

.tabs-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    justify-content: space-between; /* Pour répartir l'espace */
    width: 100%;
}

/* Wrapper pour la navigation par flèches */
.tabs-nav-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 30px;
    overflow: visible;
    justify-content: center;
}

.tab-nav-btn {
    display: none;
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.4rem;
    margin-bottom: -2px; 
    padding: 0;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tab-nav-btn:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.tab-nav-btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.tab-nav-btn.disabled i {
    color: #cccccc !important;
}

.tab-nav-btn i {
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tabs-nav-wrapper.has-scroll .tab-nav-btn {
    display: flex;
}

.tabs-nav-wrapper.has-scroll .tabs-buttons {
    padding: 0;
}

.tab-nav-btn.prev {
    margin-right: 10px;
}

.tab-nav-btn.next {
    margin-left: 10px;
}

.tabs-buttons::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrer le contenu du bouton */
    gap: 8px;
    position: relative;
    margin-bottom: -2px;
    border-radius: 0;
    flex: 1; /* Prendre tout l'espace disponible */
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
}

.tab-button:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-button i {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tab-button:hover i,
.tab-button.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.xpr-tab-container {
    display: none !important;
}

.xpr-tab-container.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour les tabs */
@media (max-width: 768px) {
    .tabs-nav-wrapper {
        margin-bottom: 20px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: 1; /* Garder l'expansion sur mobile */
    }
}

/* ===== TOOLTIPS TIPPY.JS GLOBAUX ===== */

/* Styles personnalisés pour les tooltips Tippy.js */
.tippy-box[data-theme~='custom'] {
    background-color: #2260ff;
    color: white;
}

.tippy-box[data-theme~='custom'] .tippy-arrow {
    color: #2260ff;
}

.coins .section_wrapper img{
    height: 250px!important;
    width : 250px!important;
    object-fit: contain!important;
}
.coins .section_wrapper .image_wrapper{
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
}

/* ===== FORMULAIRE D'INSCRIPTION ===== */

.signin_container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--bg-primary);
}

.signin_form_wrapper {
    width: 100%;
}

.signin_title {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
}

.signin_title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.signin_form {
    display: flex;
    flex-direction: column;
}

.signin_form .form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.signin_form .form_group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.signin_form .form_group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.signin_form .form_group .field-note {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
    font-style: italic;
}

.signin_form .form_group input {
    padding: 14px 16px;
    border: 1px solid #2260FF;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.signin_form .form_group input:focus {
    outline: none;
    border-color: #2260ff;
    box-shadow: 0 0 0 3px rgba(34, 96, 255, 0.1);
    transform: translateY(-1px);
}

.signin_form .form_group input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Champs non remplis - couleur grise */
.signin_form .form_group input:not(:focus):not(.touched) {
    border-color: #2260FF;
}

/* Champs valides après interaction - garder la bordure grise */
.signin_form .form_group input.touched:valid {
    border-color: #2260FF;
}

/* Champs invalides après interaction */
.signin_form .form_group input.touched:invalid {
    border-color: var(--danger-color);
}

/* Champ adresse avec autocomplete Google */
.signin_form .form_group input#street {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Champs de mot de passe */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: calc(50% - 12px);
    transform: translateY(-50%);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    opacity: 1;
    visibility: visible;
}
.password-toggle-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

/* Actions du formulaire */
.form_actions {
    display: flex;
    justify-content: center;
}

.signin_submit_btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.signin_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-shadow);
}

.signin_submit_btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.signin_submit_btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages d'erreur */
.signin_form .form_group .error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.signin_form .form_group.error input {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.signin_form .form_group.error .error-message {
    display: block;
}

/* Messages de succès */
.signin_form .success-message {
    background: var(--success-light);
    color: var(--success-color);
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--success-border);
    margin-bottom: 20px;
    display: none;
}

.signin_form .success-message.show {
    display: block;
}

.conectionForm input{
    border: 1px solid #2260FF!important;
    border-radius: 8px!important;
    padding: 14px 16px!important;
}
.conectionForm .forminator-field:not(.forminator-is_active):not(.forminator-is_filled) label:not(.forminator-checkbox) {
    padding-left: 16px!important;
    transform: translateY(37px)!important;
    margin-bottom: 0!important;

}
.conectionForm .forminator-button{
    width: 100%!important;
    border-radius: 8px!important;
}

/* Responsive */
@media (max-width: 768px) {
    .signin_container {
        margin: 20px;
        padding: 24px 16px;
    }
    
    .signin_title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .signin_form .form_row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .signin_form .form_group input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .signin_submit_btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 160px;
    }
}
/* ===== PROFILE COMPLETION ===== */

/* Modale - Structure de base */
.profile-completion-modal {
    position: fixed;
    overflow: hidden;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    max-height: 400px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

/* Adaptation pour écrans de petite hauteur (≤ 800px) */
@media screen and (max-height: 800px) {
    .profile-completion-modal {
        max-height: 250px;
    }
    
    .profile-completion-modal .modal-body {
        overflow-y: auto;
        max-height: 150px;
    }
}

/* Header de la modale */
.profile-completion-modal .modal-header {
    position: relative;
    padding: 60px 15px 0px 15px;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1;
    gap: 5px;
}

/* Bouton close avec logo - centré en haut DANS la modale */
.profile-completion-modal .close-btn-modal-completion {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
    cursor: auto !important;
}
.profile-completion-modal .close-btn-modal-completion img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Titre de la modale */
.profile-completion-modal .modal-header h3 {
    display: block !important;
    color: #0D0D1B;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

/* Sous-titre de la modale */
.profile-completion-modal .modal-header .subtitle {
    display: block !important;
    color: #86868D;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}
/* Container de la barre de progression */
.progress-bar-container {
    position: relative;
    height: 24px;
    background: #f0f0f0;
    overflow: hidden;
    width: 100%;
    z-index: 2;
}

.progress-bar {
    position: relative;
    height: 100%;
    /* Le gradient sera appliqué dynamiquement via JavaScript */
    transition: width 0.6s ease, background 0.6s ease;
    z-index: 3;
}

/* Effet barres verticales (code-barres) */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    white 4px,
    white 8px
);
}
.category-title {
    margin-top: 20px;
    margin-bottom: 0px !important;
}
.profile-completion-modal .category-title {
    color: #000000;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0;
    text-align: left;
   
    padding: 0px 15px 10px 15px !important;
}
/* S'assurer que le modal-body commence juste après le header */
.profile-completion-modal .modal-body {
    padding: 0;
}
/* ===== GROUPES (encadrés) ===== */

.completion-group {
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 1px;
    margin-left: 5px;
    margin-right: 1px;
    overflow: hidden;
}

/* En-tête du groupe (cliquable) */
.group-header {
    display: flex;
    align-items: center;
    padding: 3px 5px 3px 0px;
    cursor: pointer;
    gap: 8px;
    transition: background 0.2s;
}

.group-header:hover {
    background: #F0F0F0;
}
/* Réorganisation des éléments dans le group-header des requérants */
.completion-group[data-item-type="requerent"] .group-header .toggle-icon {
    order: 4;
}

.completion-group[data-item-type="requerent"] .group-header .group-status {
    order: 1;
}

.completion-group[data-item-type="requerent"] .group-header .group-label {
    order: 2;
    flex: 1;
}

.completion-group[data-item-type="requerent"] .group-header .group-progress {
    display: none;
}

/* Icône de statut (✓ ou ○) à gauche */
.group-status {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}



/* Label du groupe */
.group-label {
 flex: 1;
    font-family: Inter, sans-serif;
    font-weight: 400; 
    font-style: normal;
    font-size: 11px; 
    line-height: 14px; 
    letter-spacing: 0;
    vertical-align: middle;
    color: #0D0D1B;
    order: 2;
}

/* Pourcentage à droite */
.group-progress {
    display: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #86868D;
    margin-right: 4px;
}

/* Flèche à droite */
.toggle-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('https://xpr.immo/wp-content/uploads/2025/11/completion_modal_fleche.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
    flex-shrink: 0;
    order: 3;
}

/* Rotation de la flèche quand ouvert */
.completion-group[data-collapsed="false"] .toggle-icon {
    transform: rotate(90deg);
}

/* Liste des sous-champs (cachée par défaut) */
.group-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E5E5;
    padding-left: 5px;
}
/* ===== ITEMS SIMPLES (encadrés comme les groupes) ===== */

.completion-item {
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 1px;
    margin-left: 5px;
    margin-right: 1px;
    padding: 3px 5px 3px 0px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Styles de base pour les conteneurs d'icônes */
.group-status,
.field-status,
.item-status {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles communs pour toutes les icônes (checked et incomplete) */
.icon-check,
.icon-incomplete {
    display: block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Supprimer tout contenu texte des icônes */
.icon-check::before,
.icon-incomplete::before,
.icon-skipped::before {
    content: none !important;
}

/* Icône checked - Image */
.group-status .icon-check,
.field-status .icon-check,
.item-status .icon-check {
    background-image: url('https://xpr.immo/wp-content/uploads/2025/11/completion_modal_checked.png');
}

/* Icône incomplete - Image */
.group-status .icon-incomplete,
.field-status .icon-incomplete,
.item-status .icon-incomplete {
    background-image: url('https://xpr.immo/wp-content/uploads/2025/11/completion_modal_circle.png');
}

/* Icône skipped - Conserver le style actuel */
.item-status .icon-skipped {
    color: #6b7280 !important;
    font-weight: bold;
    opacity: 1 !important;
}

/* Label de l'item simple */
.item-label {
    flex: 1;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #0D0D1B;
}



/* ===== SCROLLBAR DU MODAL ===== */

/* Pour Chrome, Safari, Edge */
.profile-completion-modal .modal-body::-webkit-scrollbar {
    width: 6px; /* Largeur de la scrollbar */
}

.profile-completion-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1; /* Couleur du fond */
    border-radius: 10px;
}

.profile-completion-modal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1; /* Couleur de la barre */
    border-radius: 10px;
}

.profile-completion-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; /* Couleur au survol */
}

/* Pour Firefox */
.profile-completion-modal .modal-body {
    scrollbar-width: thin; /* Largeur fine */
    scrollbar-color: #c1c1c1 #f1f1f1; /* Barre + fond */
}
/* ===== BOUTON IGNORER ===== */

.btn-toggle-skip {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-toggle-skip:hover {
    background: #e74c3c;
    color: #ffffff;
}

/* Bouton "Restaurer" (quand skippé) */
.completion-item.skipped .btn-toggle-skip,
.field-item.skipped .btn-toggle-skip {
    border-color: #95a5a6;
    color: #95a5a6;
}

.completion-item.skipped .btn-toggle-skip:hover,
.field-item.skipped .btn-toggle-skip:hover {
    background: #95a5a6;
    color: #ffffff;
}
/* Style des labels de fields dans les groupes */
.field-label {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0;
    color: #0D0D1B;
}
/* Bouton Ignorer pour les requérants (dans le group-header) */
.btn-skip-requerant {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    order: 3;
}

.btn-skip-requerant:hover {
    background: #e74c3c;
    color: #ffffff;
}
/* ============================================
   FONCTIONNALITÉ 2 : Curseur et hover sur éléments cliquables
   ============================================ */

/* Curseur en forme de main pour les items simples */
.completion-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Effet hover sur les items simples (même que les groupes : fond gris) */
.completion-item:hover {
    background-color: #F0F0F0;
}

/* Curseur en forme de main pour les fields */
.field-item {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 5px 3px 0px;
}

/* Effet hover sur les fields (bordure bleue + fond gris clair) */
.field-item:hover {
    background-color: #f5f5f5;
    border-left: 3px solid #2563eb;
    padding-left: 12px;
}
/* Classe pour cacher les éléments */
.hidden {
    display: none !important;
}
/* ============================================
   NOUVELLE ICÔNE DE COMPLÉTION DE PROFIL
   ============================================ */

.profile-completion-icon-new {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: auto;
    transition: all 0.3s ease;
    margin: 0 auto 0;
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-completion-icon-new img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Couleurs selon le pourcentage - Rouge foncé 0-20% */
.profile-completion-icon-new[data-percentage="0"],
.profile-completion-icon-new[data-percentage="1"],
.profile-completion-icon-new[data-percentage="2"],
.profile-completion-icon-new[data-percentage="3"],
.profile-completion-icon-new[data-percentage="4"],
.profile-completion-icon-new[data-percentage="5"],
.profile-completion-icon-new[data-percentage="6"],
.profile-completion-icon-new[data-percentage="7"],
.profile-completion-icon-new[data-percentage="8"],
.profile-completion-icon-new[data-percentage="9"],
.profile-completion-icon-new[data-percentage="10"],
.profile-completion-icon-new[data-percentage="11"],
.profile-completion-icon-new[data-percentage="12"],
.profile-completion-icon-new[data-percentage="13"],
.profile-completion-icon-new[data-percentage="14"],
.profile-completion-icon-new[data-percentage="15"],
.profile-completion-icon-new[data-percentage="16"],
.profile-completion-icon-new[data-percentage="17"],
.profile-completion-icon-new[data-percentage="18"],
.profile-completion-icon-new[data-percentage="19"],
.profile-completion-icon-new[data-percentage="20"] {
    background-color: #dc2626;
}

/* Orange 21-40% */
.profile-completion-icon-new[data-percentage="21"],
.profile-completion-icon-new[data-percentage="22"],
.profile-completion-icon-new[data-percentage="23"],
.profile-completion-icon-new[data-percentage="24"],
.profile-completion-icon-new[data-percentage="25"],
.profile-completion-icon-new[data-percentage="26"],
.profile-completion-icon-new[data-percentage="27"],
.profile-completion-icon-new[data-percentage="28"],
.profile-completion-icon-new[data-percentage="29"],
.profile-completion-icon-new[data-percentage="30"],
.profile-completion-icon-new[data-percentage="31"],
.profile-completion-icon-new[data-percentage="32"],
.profile-completion-icon-new[data-percentage="33"],
.profile-completion-icon-new[data-percentage="34"],
.profile-completion-icon-new[data-percentage="35"],
.profile-completion-icon-new[data-percentage="36"],
.profile-completion-icon-new[data-percentage="37"],
.profile-completion-icon-new[data-percentage="38"],
.profile-completion-icon-new[data-percentage="39"],
.profile-completion-icon-new[data-percentage="40"] {
    background-color: #f97316;
}

/* Jaune 41-60% */
.profile-completion-icon-new[data-percentage="41"],
.profile-completion-icon-new[data-percentage="42"],
.profile-completion-icon-new[data-percentage="43"],
.profile-completion-icon-new[data-percentage="44"],
.profile-completion-icon-new[data-percentage="45"],
.profile-completion-icon-new[data-percentage="46"],
.profile-completion-icon-new[data-percentage="47"],
.profile-completion-icon-new[data-percentage="48"],
.profile-completion-icon-new[data-percentage="49"],
.profile-completion-icon-new[data-percentage="50"],
.profile-completion-icon-new[data-percentage="51"],
.profile-completion-icon-new[data-percentage="52"],
.profile-completion-icon-new[data-percentage="53"],
.profile-completion-icon-new[data-percentage="54"],
.profile-completion-icon-new[data-percentage="55"],
.profile-completion-icon-new[data-percentage="56"],
.profile-completion-icon-new[data-percentage="57"],
.profile-completion-icon-new[data-percentage="58"],
.profile-completion-icon-new[data-percentage="59"],
.profile-completion-icon-new[data-percentage="60"] {
    background-color: #fbbf24;
}

/* Vert clair 61-80% */
.profile-completion-icon-new[data-percentage="61"],
.profile-completion-icon-new[data-percentage="62"],
.profile-completion-icon-new[data-percentage="63"],
.profile-completion-icon-new[data-percentage="64"],
.profile-completion-icon-new[data-percentage="65"],
.profile-completion-icon-new[data-percentage="66"],
.profile-completion-icon-new[data-percentage="67"],
.profile-completion-icon-new[data-percentage="68"],
.profile-completion-icon-new[data-percentage="69"],
.profile-completion-icon-new[data-percentage="70"],
.profile-completion-icon-new[data-percentage="71"],
.profile-completion-icon-new[data-percentage="72"],
.profile-completion-icon-new[data-percentage="73"],
.profile-completion-icon-new[data-percentage="74"],
.profile-completion-icon-new[data-percentage="75"],
.profile-completion-icon-new[data-percentage="76"],
.profile-completion-icon-new[data-percentage="77"],
.profile-completion-icon-new[data-percentage="78"],
.profile-completion-icon-new[data-percentage="79"],
.profile-completion-icon-new[data-percentage="80"] {
    background-color: #84cc16;
}

/* Vert foncé 81-100% */
.profile-completion-icon-new[data-percentage="81"],
.profile-completion-icon-new[data-percentage="82"],
.profile-completion-icon-new[data-percentage="83"],
.profile-completion-icon-new[data-percentage="84"],
.profile-completion-icon-new[data-percentage="85"],
.profile-completion-icon-new[data-percentage="86"],
.profile-completion-icon-new[data-percentage="87"],
.profile-completion-icon-new[data-percentage="88"],
.profile-completion-icon-new[data-percentage="89"],
.profile-completion-icon-new[data-percentage="90"],
.profile-completion-icon-new[data-percentage="91"],
.profile-completion-icon-new[data-percentage="92"],
.profile-completion-icon-new[data-percentage="93"],
.profile-completion-icon-new[data-percentage="94"],
.profile-completion-icon-new[data-percentage="95"],
.profile-completion-icon-new[data-percentage="96"],
.profile-completion-icon-new[data-percentage="97"],
.profile-completion-icon-new[data-percentage="98"],
.profile-completion-icon-new[data-percentage="99"],
.profile-completion-icon-new[data-percentage="100"] {
    background-color: #22c55e;
}
/* Bouton "Ignoré" désactivé */
.btn-toggle-skip.btn-skipped.btn-disabled {
    background: #27ae60;
    border-color: #27ae60;
    color: #ffffff;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.btn-toggle-skip.btn-skipped.btn-disabled:hover {
    background: #27ae60; /* Reste vert au hover */
    border-color: #27ae60;
    transform: none; /* Pas d'effet au hover */
}
/* Force la couleur grise pour l'icône des champs ignorés */
.profile-completion-modal .field-status .icon-skipped,
.profile-completion-modal .item-status .icon-skipped {
    color: #a9a9a9 !important;
    font-weight: bold !important;
}
/* Masquer le bouton "Ignoré" pour les champs ignorés (l'icône suffit) */
.completion-item.skipped .btn-toggle-skip,
.field-item.skipped .btn-toggle-skip {
    display: none !important;
}
/* Masquer les requérants complétés dans la modale de complétion */
.requerent-completed {
    display: none !important;
}
/* ===== AJUSTEMENTS MOBILE - MODALE DE COMPLÉTION ===== */
@media (max-width: 768px) {
    /* Masquer le titre sur mobile */
    .profile-completion-modal .modal-header h3 {
        display: none !important;
    }
    
    /* Masquer le sous-titre sur mobile */
    .profile-completion-modal .modal-header .subtitle {
        display: none !important;
    }
    
    /* Masquer l'image du bouton de fermeture */
    .profile-completion-modal .close-btn-modal-completion img {
        display: none !important;
    }
    
    /* Réduire le padding du header */
    .profile-completion-modal .modal-header {
        padding: 15px 10px 10px 10px !important;
    }
    
    /* Réduire la hauteur de la barre de progression */
    .profile-completion-modal .progress-bar-container {
        height: 12px !important;
    }
    
    /* Augmenter la hauteur totale de la modale */
.profile-completion-modal {
    height: auto !important;
    min-height: 210px !important;
    max-height: none !important;
}
    
    /* Supprimer le margin-top des titres de catégorie */
    .profile-completion-modal .category-title {
        margin-top: 0px !important;
    }
}

/* ===== AJUSTEMENTS TABLETTE PAYSAGE - MODALE DE COMPLÉTION ===== */
@media (max-height: 730px) {
    /* Masquer le titre sur tablette paysage */
    .profile-completion-modal .modal-header h3 {
        display: none !important;
    }
    
    /* Masquer le sous-titre sur tablette paysage */
    .profile-completion-modal .modal-header .subtitle {
        display: none !important;
    }
    
    /* Masquer l'image du bouton de fermeture */
    .profile-completion-modal .close-btn-modal-completion img {
        display: none !important;
    }
    
    /* Réduire le padding du header */
    .profile-completion-modal .modal-header {
        padding: 15px 10px 10px 10px !important;
    }
    
    /* Réduire la hauteur de la barre de progression */
    .profile-completion-modal .progress-bar-container {
        height: 12px !important;
    }
    
    /* Réduire la hauteur totale de la modale */
    .profile-completion-modal {
        max-height: 150px !important;
    }
    
    /* Supprimer le margin-top des titres de catégorie */
    .profile-completion-modal .category-title {
        margin-top: 0px !important;
    }
}