/* ==========================================
   1. MODULE CRM : CONNEXION & AUTHENTIFICATION
   ========================================== */
#clubtir_login_form p, 
#clubtir_login_form_mail p { 
    margin-bottom: 20px; 
}

#clubtir_login_form label, 
#clubtir_login_form_mail label { 
    display: block; 
    font-weight: 600; 
    color: #374151; 
    font-size: 13px; 
    margin-bottom: 6px; 
}

#clubtir_login_form input[type="text"], 
#clubtir_login_form input[type="password"],
#clubtir_login_form_mail input[type="text"], 
#clubtir_login_form_mail input[type="password"] { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    box-sizing: border-box; 
    font-size: 14px; 
    background: #fff; 
    outline: none; 
    transition: all 0.2s ease; 
}

#clubtir_login_form input[type="text"]:focus, 
#clubtir_login_form input[type="password"]:focus,
#clubtir_login_form_mail input[type="text"]:focus, 
#clubtir_login_form_mail input[type="password"]:focus { 
    border-color: #3498db; 
}

#clubtir_login_form input[type="submit"],
#clubtir_login_form_mail input[type="submit"] { 
    width: 100%; 
    background: #111827; 
    color: #fff; 
    border: none; 
    padding: 12px; 
    font-size: 14px; 
    font-weight: 600; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background 0.2s ease; 
}

#clubtir_login_form input[type="submit"]:hover,
#clubtir_login_form_mail input[type="submit"]:hover { 
    background: #1f2937; 
}

#clubtir_login_form .forgetmenot,
#clubtir_login_form_mail .forgetmenot { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: normal; 
    color: #6b7280; 
}

#clubtir_login_form .forgetmenot input[type="checkbox"],
#clubtir_login_form_mail .forgetmenot input[type="checkbox"] { 
    margin: 0; 
    width: 16px; 
    height: 16px; 
    cursor: pointer; 
}

/* Remplacement des labels par défaut de WP par des pseudo-éléments plus modernes */
.login-username label, 
.login-password label { 
    font-size: 0 !important; 
}
.login-username label::before { content: "Identifiant ou E-mail"; font-size: 13px; }
.login-password label::before { content: "Mot de passe"; font-size: 13px; }


/* ==========================================
   2. MODULE CRM : MENU DE NAVIGATION
   ========================================== */
.ct-nav-container { 
    background: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 25px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px 25px; 
    align-items: flex-start; /* Empêche l'étirement vertical sur le thème public */
    align-content: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.ct-nav-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    flex: 1 1 auto; 
    min-width: 220px; 
}

.ct-nav-label { 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #6b7280; 
    font-weight: 700; 
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6; 
    margin: 0 0 4px 0;
}

.ct-nav-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
}

.ct-nav-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none; 
    padding: 8px 12px; 
    font-size: 13px; 
    font-weight: 600; 
    border-radius: 6px; 
    color: #374151; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease; 
    line-height: 1;
    margin: 0;
}
.ct-nav-item svg.menu-icon { opacity: 0.7; transition: 0.2s; }
.ct-nav-item:hover { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }
.ct-nav-item:hover svg.menu-icon { opacity: 1; }

.ct-nav-item.active { 
    background: #111827; 
    color: #ffffff; 
    border-color: #111827; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.ct-nav-item.active svg.menu-icon { opacity: 1; }

/* Boutons verrouillés (Pro) */
.ct-nav-locked { 
    opacity: 0.6; 
    background: #fff !important; 
    border: 1px dashed #cbd5e1 !important; 
    color: #94a3b8 !important; 
}
.ct-nav-locked:hover { 
    background: #fef2f2 !important; 
    color: #991b1b !important; 
    border-color: #fca5a5 !important; 
    opacity: 1; 
}
.ct-nav-locked:hover svg.menu-icon { opacity: 0.9; }


/* ==========================================
   3. MODULE CRM : GRILLES ET FORMULAIRES
   ========================================== */
.ct-settings-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 25px; 
    margin-bottom: 25px; 
    align-items: start;
}

.ct-settings-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid #e5e7eb; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
}

.ct-settings-title { 
    color: #111827; 
    margin-top: 0; 
    font-size: 16px; 
    font-weight: 600; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 12px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.ct-s-group { margin-bottom: 15px; }

.ct-s-label { 
    display: block; 
    font-weight: 500; 
    font-size: 13px; 
    color: #4b5563; 
    margin-bottom: 6px; 
}

.ct-s-input { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-size: 13px; 
    box-sizing: border-box; 
    font-family: inherit; 
}

.ct-s-desc { 
    font-size: 11px; 
    color: #6b7280; 
    margin-top: 4px; 
    margin-bottom: 0; 
    display: block; 
    line-height: 1.4;
}

.ct-btn-export { 
    background: #111827; 
    color: #fff; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none; 
    font-size: 13px; 
    transition: 0.2s; 
}

.ct-btn-export:hover { 
    background: #1f2937; 
}

/* ==========================================================================
   BOUCLIER ANTI-THÈME (Force le design contre Elementor/Divi/Astra)
   ========================================================================== */
.ct-nav-container {
    align-items: flex-start !important;
    height: auto !important;
}

.ct-nav-group {
    height: max-content !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
}

.ct-nav-item {
    height: auto !important;
    line-height: normal !important;
    margin-bottom: 0 !important;
}

.ct-nav-item svg {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* Force les boîtes de statistiques du dashboard à ne pas s'étirer à l'infini */
.ct-dash-top {
    align-items: flex-start !important;
}
.ct-dash-black, .ct-geo-list-card {
    height: max-content !important;
}