* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Empêcher le scroll horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    /* Couleurs Vraivex */
    --primary: #1A5DC9;
    --primary-dark: #0f4299;
    --primary-light: #3d7edb;
    --secondary: #1A5DC9;
    --success: #34A853;
    --warning: #FBBC05;
    --danger: #EA4335;
    --dark: #202124;
    --gray: #5f6368;
    --light-gray: #f8f9fa;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 8px 10px 1px rgba(60, 64, 67, 0.15), 0 3px 14px 2px rgba(60, 64, 67, 0.12);
}

/* Bouton Export CSV */
.btn-export-csv {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-export-csv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-export-csv:active {
    transform: translateY(0);
}

/* Bouton Connexion Google Search Console */
.btn-connect-gsc {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 133, 244, 0.2);
}

.btn-connect-gsc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 133, 244, 0.3);
}

.badge-gsc-connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

/* Section Trafic */
.traffic-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.traffic-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.traffic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.traffic-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.traffic-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.traffic-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Top Queries Table */
.top-queries {
    margin-top: 24px;
}

.top-queries h4 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 18px;
}

.queries-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.queries-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.queries-table th,
.queries-table td {
    padding: 12px 16px;
    text-align: left;
}

.queries-table th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.queries-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.queries-table tbody tr:hover {
    background: #f8f9fa;
}

.queries-table tbody tr:last-child {
    border-bottom: none;
}

.queries-table td {
    font-size: 14px;
    color: #4b5563;
}

.queries-table td:nth-child(2),
.queries-table td:nth-child(3),
.queries-table td:nth-child(4),
.queries-table td:nth-child(5) {
    text-align: center;
    font-weight: 600;
}

/* Types de Pages */
.page-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.page-type-item {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.page-type-item:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.page-type-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.page-type-count {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.page-type-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .page-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app {
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header .container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.header-left {
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-right {
    justify-self: end;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.header-stats {
    display: flex;
    gap: 2rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.user-info {
    padding: 1.5rem;
}

.user-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.user-email {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.user-plan {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--light-gray);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Websites Grid */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.website-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.website-card.analyzing-highlight {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        border-color: #6366f1;
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.website-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.website-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.website-url {
    font-size: 0.875rem;
    color: var(--gray);
    word-break: break-all;
}

.website-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: var(--light-gray);
    color: var(--gray);
}

.status-analyzing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.website-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
}

.stat-box-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.stat-box-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.seo-score {
    text-align: center;
    margin: 1rem 0;
}

.seo-score-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.seo-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.score-excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.score-good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
}

.score-average {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.score-poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.website-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.website-actions .btn {
    flex: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-large .modal-content {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Pages Table */
.pages-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.pages-table th {
    background: var(--light-gray);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
}

.pages-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.pages-table tr:hover {
    background: var(--light-gray);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.issues-list {
    margin-top: 1rem;
}

.issue-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.issue-critical {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.issue-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 1rem;
    color: var(--gray);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .actions-bar {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.summary-stat {
    text-align: center;
}

.summary-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Override pour le body quand le dashboard utilise le header de landing */
body {
    background: #f9fafb !important;
    min-height: auto !important;
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.mode-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.mode-btn:hover {
    color: var(--primary);
}

.mode-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Bulk Add Form */
#bulk-urls {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

.form-help code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Summary Grid Enhanced */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.big-score {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: 1rem 0;
}

.score-label {
    text-align: center;
    opacity: 0.9;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.problem-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

.problem-item.critical {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
}

.problem-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
}

.problem-item.info {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #3b82f6;
}

.problem-count {
    font-size: 2rem;
    font-weight: 700;
}

.problem-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.total-issues {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--gray);
}

/* Metrics Cards */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-title {
    font-weight: 600;
    color: var(--dark);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-inline {
    flex: 1;
    height: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-inline {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.metric-percent {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.metric-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 1rem 0;
}

.metric-label {
    text-align: center;
    color: var(--gray);
}

/* Top Issues */
.top-issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-issue-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.issue-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
}

.issue-info {
    flex: 1;
    z-index: 1;
}

.issue-type {
    font-weight: 600;
    color: var(--dark);
}

.issue-count {
    font-size: 0.875rem;
    color: var(--gray);
}

.issue-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 8px;
}

/* Pages Grid View */
.pages-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.page-detail-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.page-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-bottom: 2px solid var(--border);
}

.page-url {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.page-url:hover {
    text-decoration: underline;
}

.page-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.page-card-body {
    padding: 1.5rem;
}

.page-field {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.field-icon {
    font-size: 1.5rem;
}

.field-content {
    flex: 1;
}

.field-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.field-value {
    color: var(--dark);
    line-height: 1.4;
}

.field-meta {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.page-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-value.good {
    color: #10b981;
}

.stat-value.warning {
    color: #f59e0b;
}

.stat-value.bad {
    color: #ef4444;
}

.btn-block {
    width: 100%;
}

/* Issue Groups */
.issue-group {
    margin-bottom: 1.5rem;
}

.issue-group-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.issue-group-title.critical {
    color: #ef4444;
    border-color: #ef4444;
}

.issue-group-title.warning {
    color: #f59e0b;
    border-color: #f59e0b;
}

.issue-group-title.info {
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Styles compatibles avec landing.css */
.header {
    display: none !important; /* Cacher l'ancien header */
}

.app {
    min-height: auto;
}

/* Ajuster le main-content pour travailler avec navbar fixe */
.dashboard-section {
    padding-top: 6rem;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    /* Container responsive */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* Grilles responsive */
    .page-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    /* Cards responsive */
    .website-card {
        padding: 1rem;
    }
    
    .website-card h3 {
        font-size: 1rem;
        word-break: break-word;
    }
    
    /* Boutons en colonnes sur mobile */
    .card-actions,
    .btn-group {
        flex-direction: column !important;
        width: 100%;
    }
    
    .card-actions button,
    .btn-group button {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    
    /* Issue groups responsive */
    .issue-group {
        padding: 0.5rem;
    }
    
    /* Modal responsive */
    .modal-overlay .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto !important;
        padding: 15px !important;
    }
    
    /* Stat values responsive */
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Score display responsive */
    .score-display {
        transform: scale(0.85);
    }
    
    /* Traffic section responsive */
    .traffic-section {
        padding: 1rem;
    }
    
    .traffic-section .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Export buttons responsive */
    .btn-export-csv,
    .btn-connect-gsc {
        width: 100%;
        margin: 5px 0;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .page-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
}

