/* Reset et base */
:root {
    /* Palette de couleurs unifiée */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Couleurs neutres */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* Typographie unifiée */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-md: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    letter-spacing: -1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.logo-circle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.logo-circle:hover::before {
    left: 100%;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

/* Hero section */
.hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Formulaire d'analyse */
.analysis-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.url-input {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.analyze-btn {
    padding: 15px 30px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.analyze-btn:hover {
    background: #059669;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    /* backdrop-filter supprimé - non supporté par tous les navigateurs */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Results */
.results-container {
    padding: 60px 0;
    background: white;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Auth pages */
.auth-container {
    margin-top: 70px;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2563eb;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: #1d4ed8;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
}

/* Pricing page */
.pricing-container {
    margin-top: 70px;
    padding: 80px 0;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: #666;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #2563eb;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-btn.primary {
    background: #2563eb;
    color: white;
}

.pricing-btn.primary-outline {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.pricing-btn.primary-outline:hover {
    background: #2563eb;
    color: white;
}

.pricing-btn:hover {
    background: #2563eb;
    color: white;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.billing-option {
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.billing-option.active {
    color: #2563eb;
    font-weight: 600;
}

.save-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #2563eb;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* Plan Description */
.plan-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
}

/* Price Styling */
.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
}

.price .period {
    font-size: 1rem;
    color: #666;
}

/* Pricing Grid 4 columns */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comparison-table table {
    min-width: 600px;
}

.comparison-table th {
    font-weight: 600;
    color: #333;
}

.comparison-table td {
    color: #666;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* ===========================================
   MENU HAMBURGER MOBILE
   =========================================== */

/* Bouton hamburger - caché par défaut sur desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation hamburger -> X */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay pour fermer le menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===========================================
   RESPONSIVE - TABLETTES ET MOBILES
   =========================================== */

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Reset du style Premium sur mobile */
    .nav-menu .nav-link[href="/advanced-features"] {
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        color: white !important;
        padding: 15px 20px !important;
        border-radius: 8px !important;
        text-align: center;
        margin-top: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .analysis-form {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    
    .url-input {
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .analyze-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .logo-circle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid-home {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .section-subtitle {
        padding: 0 15px;
        font-size: 1rem;
    }
    
    /* Footer responsive */
    footer .container > div {
        flex-direction: column;
        text-align: center;
    }
    
    footer ul {
        justify-content: center;
    }
}

/* Responsive - Petits mobiles */
@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Badges responsive */
    .hero img[alt*="RGPD"],
    .hero img[alt*="Note"] {
        max-width: 100%;
        height: auto;
    }
}

/* Section outils page d'accueil */
.tools-showcase {
    padding: 80px 0;
    background: #f8f9fa;
}

.tools-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.tools-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-card-home {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.tool-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.tool-card-home .tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-card-home h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tool-card-home p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tool-features span {
    background: #eef2ff;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-btn-home {
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.tool-btn-home:hover {
    background: #1d4ed8;
}

/* Section CTA */
.cta-section {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.cta-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn.primary {
    background: #2563eb;
    color: white;
}

.cta-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.cta-btn.secondary:hover {
    background: #2563eb;
    color: white;
}

/* Section statistiques */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* Amélioration responsive */
@media (max-width: 768px) {
    .tools-grid-home {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Spinner de chargement */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Publicités discrètes */
.ad-container {
    margin: 30px 0;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.ad-container:hover {
    opacity: 1;
}

.ad-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.ad-banner::before {
    content: 'Publicité';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-banner h3 {
    font-size: 1.1rem;
    color: #495057;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ad-banner p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.ad-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ad-sidebar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.ad-sidebar-label {
    display: block;
    font-size: 0.7rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.ad-sidebar-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 16px;
    border-radius: 6px;
    color: white;
    text-align: center;
}

.ad-sidebar-content h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.ad-sidebar-content p {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    opacity: 0.95;
}

.ad-free-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Masquer les pubs pour les utilisateurs premium */
.user-premium .ad-container,
.user-premium [data-ad-slot] {
    display: none !important;
}

/* Responsive ads */
@media (max-width: 768px) {
    .ad-banner {
        padding: 16px;
    }
    
    .ad-banner h3 {
        font-size: 1rem;
    }
    
    .ad-banner p {
        font-size: 0.85rem;
    }
    
    .ad-cta {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}
