/* ========================================
   Mon Compte - Container
   ======================================== */

.mon-compte-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* ========================================
   Navigation des onglets
   ======================================== */

.mon-compte-navigation {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.mon-compte-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mon-compte-tab:hover {
    background: #f9f9f9;
    color: #333;
}

.mon-compte-tab.active {
    background: linear-gradient(135deg, #fff7ec 0%, #fbecd7 100%);
    color: #935601;
    font-weight: 600;
}

.mon-compte-tab .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mon-compte-tab-title {
    flex: 1;
}

/* ========================================
   Contenu
   ======================================== */

.mon-compte-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
}

.mon-compte-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
}

.mon-compte-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
}

/* ========================================
   Header de section
   ======================================== */

.compte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.compte-header h2 {
    margin: 0;
}

.compte-count {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
}

/* ========================================
   Boutons
   ======================================== */

.compte-btn-primary {
    background: linear-gradient(135deg, #fff7ec 0%, #fbecd7 100%) !important;
    border: 2px solid #9f5d02 !important;
    color: #935601 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.compte-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 93, 2, 0.2);
}

.compte-btn-secondary {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.compte-btn-secondary:hover {
    border-color: #9f5d02 !important;
    color: #9f5d02 !important;
}

.compte-btn-danger {
    background: #fff !important;
    border: 2px solid #dc3232 !important;
    color: #dc3232 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.compte-btn-danger:hover {
    background: #dc3232 !important;
    color: #fff !important;
}

.compte-btn-primary .dashicons,
.compte-btn-secondary .dashicons,
.compte-btn-danger .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ========================================
   Tableau de bord
   ======================================== */

.compte-bienvenue {
    background: linear-gradient(135deg, #fff7ec 0%, #fbecd7 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.compte-bienvenue p {
    margin: 0;
    font-size: 1.1em;
}

.compte-statistiques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.compte-stat-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.compte-stat-item .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #9f5d02;
}

.compte-stat-content {
    display: flex;
    flex-direction: column;
}

.compte-stat-nombre {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.compte-stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.compte-actions-rapides {
    margin-bottom: 30px;
}

.compte-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.compte-action-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compte-action-btn:hover {
    border-color: #9f5d02;
    color: #9f5d02;
    transform: translateY(-2px);
}

.compte-action-btn .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* ========================================
   Recettes
   ======================================== */

.compte-recettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.compte-recette-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.compte-recette-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.compte-recette-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.compte-recette-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compte-recette-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.compte-recette-badge.publish {
    background: #46b450;
    color: #fff;
}

.compte-recette-badge.draft {
    background: #ffb900;
    color: #fff;
}

.compte-recette-badge.pending {
    background: #f56e28;
    color: #fff;
}

.compte-recette-body {
    padding: 15px;
}

.compte-recette-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.compte-recette-body h3 a {
    color: #333;
    text-decoration: none;
}

.compte-recette-body h3 a:hover {
    color: #9f5d02;
}

.compte-recette-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.compte-recette-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.compte-recette-author {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 10px;
}

.compte-recette-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compte-category-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #666;
}

.compte-recette-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

/* ========================================
   Liste de recettes (dashboard)
   ======================================== */

.compte-recettes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compte-recette-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.compte-recette-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.compte-recette-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compte-recette-info {
    flex: 1;
}

.compte-recette-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.05em;
}

.compte-recette-info h4 a {
    color: #333;
    text-decoration: none;
}

.compte-recette-info h4 a:hover {
    color: #9f5d02;
}

.compte-recette-statut {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 10px;
}

.compte-recette-statut.publish {
    background: #46b450;
    color: #fff;
}

.compte-recette-statut.draft {
    background: #ffb900;
    color: #fff;
}

.compte-recette-date {
    font-size: 0.85em;
    color: #999;
}

.compte-recette-actions {
    display: flex;
    gap: 8px;
}

.compte-btn-edit {
    background: #fff;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.compte-btn-edit:hover {
    border-color: #9f5d02;
    color: #9f5d02;
}

/* ========================================
   Bouton favori
   ======================================== */

.compte-btn-favori {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.compte-btn-favori .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #dc3232;
}

.compte-btn-favori:hover {
    transform: scale(1.1);
}

/* ========================================
   Plannings
   ======================================== */

.compte-plannings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compte-planning-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.compte-planning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.compte-planning-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.compte-planning-date {
    font-size: 0.85em;
    color: #999;
}

.compte-planning-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.compte-planning-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.compte-planning-info .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #9f5d02;
}

.compte-planning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.compte-planning-actions .compte-btn-primary {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* ========================================
   Paramètres
   ======================================== */

.compte-parametres-form {
    max-width: 600px;
}

.compte-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.compte-section:last-child {
    border-bottom: none;
}

.compte-form-group {
    margin-bottom: 20px;
}

.compte-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.compte-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.compte-input:focus {
    outline: none;
    border-color: #9f5d02;
}

.compte-help-text {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #999;
}

.compte-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.compte-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.compte-form-actions {
    margin-top: 25px;
}

.compte-danger-zone {
    background: #fff5f5;
    border: 1px solid #dc3232;
    padding: 20px;
    border-radius: 8px;
}

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

.compte-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.compte-message .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.compte-message p {
    margin: 0;
}

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

.compte-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ========================================
   État vide
   ======================================== */

.compte-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.compte-empty .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

.compte-empty p {
    font-size: 1.1em;
    margin: 10px 0;
}

/* ========================================
   Pagination
   ======================================== */

.compte-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.compte-pagination a,
.compte-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
}

.compte-pagination a:hover {
    border-color: #9f5d02;
    color: #9f5d02;
}

.compte-pagination .current {
    background: linear-gradient(135deg, #fff7ec 0%, #fbecd7 100%);
    border-color: #9f5d02;
    color: #935601;
    font-weight: 600;
}

/* ========================================
   Formulaire de connexion
   ======================================== */

.mon-compte-login {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mon-compte-login h2 {
    text-align: center;
    margin-bottom: 10px;
}

.mon-compte-login > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.mon-compte-register-link {
    text-align: center;
    margin-top: 20px;
}

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

@media (max-width: 768px) {
    .mon-compte-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mon-compte-navigation {
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .mon-compte-tab {
        flex-shrink: 0;
        margin-right: 5px;
        margin-bottom: 0;
    }

    .mon-compte-tab-title {
        display: none;
    }

    .compte-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .compte-statistiques {
        grid-template-columns: 1fr;
    }

    .compte-recettes-grid {
        grid-template-columns: 1fr;
    }

    .compte-actions-grid {
        grid-template-columns: 1fr;
    }
}
