/* ═══ Mon CRM Production — Frontend CSS ═══ */

/* Container principal */
.mcp-timeline-container {
    margin: 30px 0;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}
.mcp-timeline-container h3 {
    margin: 0 0 25px;
    font-size: 1.4rem;
    color: #111827;
    font-weight: 700;
}
.mcp-timeline-container h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #374151;
    font-weight: 600;
}

/* ─── Barre de Progression Dynamique ─── */
.mcp-progress-bar-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 10px;
}
.mcp-pb-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.mcp-pb-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    transition: all .3s;
}
.mcp-pb-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
}
.mcp-pb-done .mcp-pb-dot {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}
.mcp-pb-done .mcp-pb-label { color: #065f46; font-weight: 600; }

.mcp-pb-active .mcp-pb-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
    animation: mcp-pulse 2s infinite;
}
.mcp-pb-active .mcp-pb-label { color: #1d4ed8; font-weight: 700; }

.mcp-pb-pending .mcp-pb-dot { background: #e5e7eb; }
.mcp-pb-pending .mcp-pb-label { color: #9ca3af; }

/* Ligne de fond */
.mcp-pb-line {
    position: absolute;
    top: 14px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}
.mcp-pb-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
    transition: width .6s ease;
}

@keyframes mcp-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
    50%      { box-shadow: 0 0 0 8px rgba(59,130,246,0.1); }
}

/* ─── Bloc Dernières Nouvelles ─── */
.mcp-news-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #3b82f6;
}
.mcp-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.mcp-news-icon {
    font-size: 22px;
}
.mcp-news-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}
.mcp-news-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

/* ─── Galerie Photos/Vidéos ─── */
.mcp-gallery-grid {
    margin-bottom: 24px;
}
.mcp-gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.mcp-gallery-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform .2s;
}
.mcp-gallery-card:hover { transform: scale(1.03); }
.mcp-gallery-card img,
.mcp-gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mcp-gallery-file {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mcp-gallery-file a {
    text-decoration: none;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* ─── Bouton WhatsApp Client ─── */
.mcp-wa-client-block {
    margin-bottom: 24px;
    text-align: center;
}
.mcp-wa-client-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: all .2s;
}
.mcp-wa-client-btn:hover {
    background: #1fb855;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}

/* ─── Audio ─── */
.mcp-audio-block {
    margin-bottom: 24px;
    background: #fefce8;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #fef3c7;
}

/* ─── Timeline détaillée ─── */
.mcp-timeline {
    position: relative;
    padding-left: 35px;
    margin-top: 10px;
}
.mcp-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: #e5e7eb;
}

.mcp-step {
    position: relative;
    padding-bottom: 24px;
}
.mcp-step:last-child { padding-bottom: 0; }

.mcp-step-icon {
    position: absolute;
    left: -35px;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 3px solid #fff;
    font-size: 13px;
}
.mcp-step-emoji { line-height: 1; }

.mcp-passed .mcp-step-icon { background: #dcfce7; }
.mcp-current .mcp-step-icon { background: #dbeafe; }
.mcp-pending .mcp-step-icon { background: #f3f4f6; }

.mcp-step-content {
    background: #f9fafb;
    padding: 14px 18px;
    border-radius: 10px;
    margin-left: 8px;
    border: 1px solid #f3f4f6;
}
.mcp-step-content strong {
    font-size: 14px;
    color: #1f2937;
}
.mcp-passed .mcp-step-content { border-left: 3px solid #10b981; }
.mcp-current .mcp-step-content { border-left: 3px solid #3b82f6; background: #eff6ff; }

.mcp-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
}
.mcp-media-btn:hover { background: #e5e7eb; color: #111827; }

/* ═══════════════════════════════════════════
   ESPACE CLIENT — Mon Compte
═══════════════════════════════════════════ */

/* ─── Navigation Mon Compte ─── */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all .2s;
}
.woocommerce-MyAccount-navigation li a:hover {
    background: #f3f4f6;
    color: #111827;
}
.woocommerce-MyAccount-navigation li.is-active a {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* ─── Dashboard Client ─── */
.mcp-client-dashboard {
    padding: 5px 0;
}
.mcp-client-welcome {
    margin-bottom: 24px;
}
.mcp-client-welcome h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.mcp-client-welcome p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.mcp-client-section {
    margin-bottom: 24px;
}
.mcp-client-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 14px;
}

/* Order cards */
.mcp-client-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mcp-client-order-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.mcp-client-order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59,130,246,0.1);
    transform: translateY(-2px);
}
.mcp-client-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mcp-client-order-num {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}
.mcp-client-order-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Mini progress bar in card */
.mcp-client-mini-progress {
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.mcp-client-mini-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}

.mcp-client-order-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.5;
}
.mcp-client-order-cta {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

/* Empty state */
.mcp-client-empty {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 20px;
}
.mcp-client-empty p {
    color: #9ca3af;
    font-size: 15px;
    margin: 0;
}

/* Quick actions */
.mcp-client-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mcp-client-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    transition: all .2s;
    border: 1px solid #e5e7eb;
}
.mcp-client-action-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}
.mcp-client-wa-btn {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}
.mcp-client-wa-btn:hover {
    background: #1fb855;
    color: #fff;
}

/* Badge in orders table */
.mcp-client-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ─── WooCommerce table cleanup ─── */
.woocommerce-orders-table {
    border-collapse: separate;
    border-spacing: 0 6px;
}
.woocommerce-orders-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    padding: 8px 12px;
    border: none;
}
.woocommerce-orders-table td {
    padding: 14px 12px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    vertical-align: middle;
}
.woocommerce-orders-table td:first-child {
    border-left: 1px solid #f3f4f6;
    border-radius: 10px 0 0 10px;
}
.woocommerce-orders-table td:last-child {
    border-right: 1px solid #f3f4f6;
    border-radius: 0 10px 10px 0;
}
.woocommerce-orders-table .woocommerce-button {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ─── Product Badges (Production / Direct Sale) ─── */
.mcp-product-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.mcp-product-badge-single {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 10px;
    font-size: 12px;
    padding: 6px 16px;
}
.mcp-badge-production {
    background: #E0F2FE;
    color: #0284C7;
}
.mcp-badge-direct {
    background: #DCFCE7;
    color: #15803D;
}

/* Ensure product card has relative position for badge */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* Production product "Request a quote" button style */
.woocommerce ul.products li.product .button.add_to_cart_button {
    transition: all .2s;
}

/* ═══ Contact Form (Shortcode) ═══ */
.mcp-contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}
.mcp-cf-field {
    margin-bottom: 18px;
}
.mcp-cf-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.mcp-cf-field input,
.mcp-cf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.mcp-cf-field input:focus,
.mcp-cf-field textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.mcp-cf-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.mcp-cf-submit:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.mcp-form-success {
    text-align: center;
    padding: 30px;
    background: #f0fdf4;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
}
.mcp-form-success p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #15803d;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .mcp-timeline-container { padding: 18px; }
    .mcp-pb-label { font-size: 9px; max-width: 60px; }
    .mcp-pb-dot { width: 22px; height: 22px; }
    .mcp-gallery-items { grid-template-columns: repeat(2, 1fr); }
    .mcp-client-quick-actions { flex-direction: column; }
    .mcp-client-order-header { flex-direction: column; gap: 6px; align-items: flex-start; }
    .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .woocommerce-MyAccount-navigation li a { padding: 8px 14px; font-size: 13px; }
}
