/*
Theme Name: Miniva Enfant
Template: miniva
*/



/* Style pour la page de gestion des abonnés */
.wrap.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-abonne {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.form-table th {
    width: 150px;
    text-align: left;
    padding: 10px;
}

.form-table td {
    padding: 10px;
}

.wp-list-table {
    width: 100%;
    margin-top: 20px;
}

.notice {
    padding: 10px;
    margin: 20px 0;
    border-radius: 3px;
}

.notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ============================================
   STYLE PAGE MON COMPTE - AMÉLIORÉ
   ============================================ */

/* Largeur maximale et centrage */
.site-main .entrenous-compte-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Titre amélioré */
.entrenous-compte-title {
    color: #2c3e50;
    font-size: 2rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.entrenous-compte-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

/* Bloc info email */
.entrenous-compte-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.entrenous-compte-email {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.entrenous-compte-email strong {
    color: #3498db;
}

.entrenous-compte-astuce {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Formulaire amélioré */
.entrenous-form-compte {
    max-width: 800px;
    margin: 0 auto;
}

.entrenous-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.entrenous-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.entrenous-form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.entrenous-form-group input[type="text"],
.entrenous-form-group input[type="email"],
.entrenous-form-group input[type="password"],
.entrenous-form-group input[type="date"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.entrenous-form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #f8fafc;
}

/* ============================================
   CHAMP DATE DE NAISSANCE AVEC BOUTON OPTIONNEL
   ============================================ */

/* Conteneur pour le champ + bouton */
.entrenous-date-group {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.entrenous-date-group input {
    flex: 1;
    min-width: 200px;
}

/* Bouton calendrier */
.datepicker-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: calc(1rem * 2 + 1rem * 2); /* Même hauteur que l'input */
    box-sizing: border-box;
}

.datepicker-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c5d8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.datepicker-button:active {
    transform: translateY(0);
}

/* Champ date normal (sans icône intégrée) */
#date_naissance {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

#date_naissance:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #f8fafc;
}

/* Style pour le datepicker popup */
#datepicker-popup {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 10000 !important;
}

#datepicker-popup .ui-datepicker-header {
    background: #3498db;
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 0.5rem;
    border: none;
}

#datepicker-popup .ui-datepicker-title {
    font-weight: 600;
    color: white;
}

#datepicker-popup .ui-datepicker-calendar th {
    color: #3498db;
    font-weight: 600;
    padding: 0.5rem;
    border: none;
}

#datepicker-popup .ui-datepicker-calendar td {
    border: none;
    padding: 2px;
}

#datepicker-popup .ui-datepicker-calendar td a {
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: #f8f9fa;
}

#datepicker-popup .ui-datepicker-calendar td a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

#datepicker-popup .ui-datepicker-current-day a {
    background: #2980b9 !important;
    color: white !important;
    border-color: #2980b9 !important;
}

#datepicker-popup .ui-state-default {
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .entrenous-date-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .entrenous-date-group input {
        min-width: 100%;
    }
    
    .datepicker-button {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}
/* Help text sous les champs */
.entrenous-form-help {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Checkbox améliorée */
.entrenous-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.entrenous-checkbox-label:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.entrenous-checkbox-label input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.entrenous-checkbox-label span {
    font-weight: normal;
    color: #495057;
}

/* Boutons */
.entrenous-form-submit {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.entrenous-form-submit .button {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    min-width: 180px;
}

.entrenous-form-submit .button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.entrenous-form-submit .button-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c5d8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.entrenous-form-submit .button {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #6c757d;
}

.entrenous-form-submit .button:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .site-main .entrenous-compte-wrapper {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .entrenous-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .entrenous-form-submit {
        flex-direction: column;
    }
    
    .entrenous-form-submit .button {
        width: 100%;
    }
}