/* ==========================================================================
   Gestion Hébergements WooCommerce - Frontend Styles
   ========================================================================== */

.whm-my-hostings {
    max-width: 1200px;
    margin: 0 auto;
}

.whm-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.whm-header-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.whm-server-location-client {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0 0;
}

.whm-server-location-client svg {
    color: #667eea;
    flex-shrink: 0;
}

/* Empty State */
.whm-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.whm-empty-icon {
    margin-bottom: 24px;
}

.whm-empty-icon svg {
    opacity: 0.9;
}

.whm-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: white;
}

.whm-empty-state p {
    font-size: 16px;
    margin: 0 0 32px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Boutons */
.whm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whm-btn-primary {
    background: white;
    color: #667eea;
}

.whm-btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

.whm-btn-full {
    width: 100%;
    justify-content: center;
}

/* Grid d'hébergements */
.whm-hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Carte d'hébergement */
.whm-hosting-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.whm-hosting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Bordures colorées selon le statut */
.whm-card-status-active {
    border-color: #10b981;
}

.whm-card-status-pending {
    border-color: #f59e0b;
}

.whm-card-status-processing {
    border-color: #3b82f6;
}

.whm-card-status-suspended {
    border-color: #ef4444;
}

.whm-card-status-cancelled {
    border-color: #6b7280;
}

/* Header de la carte */
.whm-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
}

.whm-card-status-pending .whm-card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.whm-card-status-processing .whm-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.whm-card-status-active .whm-card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.whm-card-status-suspended .whm-card-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.whm-card-status-cancelled .whm-card-header {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.whm-card-title h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.whm-server-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.whm-server-name svg {
    width: 14px;
    height: 14px;
}

.whm-card-status {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.whm-card-status svg {
    width: 20px;
    height: 20px;
}

.whm-card-status span {
    font-size: 14px;
    font-weight: 600;
}

/* Corps de la carte */
.whm-card-body {
    padding: 24px;
}

.whm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.whm-info-row:last-child {
    border-bottom: none;
}

.whm-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.whm-info-label svg {
    color: #9ca3af;
}

.whm-info-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.whm-info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.whm-info-value a:hover {
    color: #764ba2;
}

/* Credentials */
.whm-credentials {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.whm-credentials-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.whm-credentials-header svg {
    color: #667eea;
}

.whm-credentials-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.whm-credential-item {
    margin-bottom: 16px;
}

.whm-credential-item:last-child {
    margin-bottom: 0;
}

.whm-credential-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.whm-credential-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whm-credential-value code {
    flex: 1;
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #1f2937;
}

.whm-password {
    user-select: none;
}

.whm-copy-btn,
.whm-toggle-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: #6b7280;
}

.whm-copy-btn:hover,
.whm-toggle-password:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.whm-copy-btn.whm-copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.whm-toggle-password.whm-password-visible {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Messages de statut */
.whm-status-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.whm-status-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.whm-status-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.whm-message-pending {
    background: #fef3c7;
    color: #92400e;
}

.whm-message-processing {
    background: #dbeafe;
    color: #1e40af;
}

.whm-message-suspended {
    background: #fee2e2;
    color: #991b1b;
}

.whm-message-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

/* Footer de la carte */
.whm-card-footer {
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.whm-card-footer .whm-btn {
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .whm-hosting-grid {
        grid-template-columns: 1fr;
    }
    
    .whm-section-title {
        font-size: 24px;
    }
    
    .whm-card-header {
        padding: 20px;
    }
    
    .whm-card-body {
        padding: 20px;
    }
    
    .whm-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .whm-credential-value {
        flex-direction: column;
        align-items: stretch;
    }
    
    .whm-credential-value code {
        text-align: center;
    }
    
    .whm-copy-btn,
    .whm-toggle-password {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .whm-empty-state {
        padding: 60px 20px;
    }
    
    .whm-empty-state h3 {
        font-size: 20px;
    }
    
    .whm-empty-state p {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whm-hosting-card {
    animation: fadeIn 0.5s ease-out;
}

.whm-hosting-card:nth-child(1) {
    animation-delay: 0.1s;
}

.whm-hosting-card:nth-child(2) {
    animation-delay: 0.2s;
}

.whm-hosting-card:nth-child(3) {
    animation-delay: 0.3s;
}

.whm-hosting-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    .whm-my-hostings {
        color: #f9fafb;
    }
    
    .whm-section-title {
        color: #f9fafb;
        border-bottom-color: #374151;
    }
    
    .whm-hosting-card {
        background: #1f2937;
    }
    
    .whm-info-value {
        color: #f9fafb;
    }
    
    .whm-credential-value code {
        background: #111827;
        color: #f9fafb;
        border-color: #374151;
    }
}

/* ==========================================================================
   Page Noms de domaine & E-mails
   ========================================================================== */

.whm-domains-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.whm-domains-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.whm-domains-hero-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
}

.whm-domains-hero-content p {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
}

.whm-domains-hero-icon {
    opacity: 0.2;
}

/* Section Netim */
.whm-netim-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.whm-netim-logo {
    text-align: center;
    margin-bottom: 40px;
}

.whm-netim-logo h2 {
    font-size: 48px;
    font-weight: 800;
    color: #667eea;
    margin: 0 0 8px;
    letter-spacing: -1px;
}

.whm-netim-tagline {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.whm-netim-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.whm-feature-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.whm-feature-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(102, 126, 234, 0.2);
}

.whm-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.whm-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1f2937;
}

.whm-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Section E-mails */
.whm-email-section {
    background: #f0f4ff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.whm-email-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1f2937;
}

.whm-email-section > p {
    font-size: 16px;
    color: #4b5563;
    margin: 0 0 24px;
}

.whm-email-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.whm-email-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.whm-check-icon {
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.whm-email-benefit span:last-child {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* Section Prix */
.whm-pricing-section {
    margin-bottom: 40px;
}

.whm-pricing-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    text-align: center;
    color: #1f2937;
}

.whm-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.whm-pricing-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.whm-pricing-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(102, 126, 234, 0.2);
}

.whm-pricing-featured {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.whm-pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.whm-pricing-header h4 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1f2937;
}

.whm-pricing-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.whm-pricing-price {
    text-align: center;
}

.whm-price-amount {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.whm-price-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.whm-price-period {
    font-size: 14px;
    color: #6b7280;
}

.whm-pricing-note {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* Call to Action */
.whm-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.whm-cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
}

.whm-cta-section p {
    font-size: 16px;
    margin: 0 0 32px;
    opacity: 0.95;
}

.whm-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whm-cta-button:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

/* FAQ Section */
.whm-faq-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.whm-faq-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    color: #1f2937;
}

.whm-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.whm-faq-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
}

.whm-faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1f2937;
}

.whm-faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .whm-domains-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    
    .whm-domains-hero-icon {
        display: none;
    }
    
    .whm-domains-hero-content h3 {
        font-size: 24px;
    }
    
    .whm-netim-section {
        padding: 24px;
    }
    
    .whm-netim-features {
        grid-template-columns: 1fr;
    }
    
    .whm-email-benefits {
        grid-template-columns: 1fr;
    }
    
    .whm-pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .whm-faq-grid {
        grid-template-columns: 1fr;
    }
}