/* =============================================
   AMÉLIORATIONS DESKTOP - Dark Mode & Responsive
   ============================================= */

/* Desktop - Base (1024px+) */
@media (min-width: 1024px) {
    /* Typography améliorée pour desktop */
    body {
        font-size: 18px !important;
        line-height: 1.7;
    }
    
    /* Container optimal pour lecture */
    .container,
    .type-content-wrapper,
    .page-content > div {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem;
    }
    
    /* Titres plus imposants sur desktop */
    h1 {
        font-size: 3rem !important;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 2.25rem !important;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.75rem !important;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    /* Paragraphes optimisés pour lecture desktop */
    p {
        font-size: 1.125rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        max-width: 75ch; /* Largeur optimale de lecture */
    }
    
    /* Navigation desktop */
    .header-main {
        padding: 1.5rem 3rem;
    }
    
    .nav-links a,
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    /* Boutons plus grands et plus clairs */
    .btn,
    button,
    .test-button,
    .cta-button {
        font-size: 1.15rem !important;
        padding: 1.2rem 2.5rem !important;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Cards et sections */
    .type-card,
    .card,
    .content-section {
        padding: 2.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Grilles desktop */
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding: 6rem 3rem;
    }
    
    .hero-title {
        font-size: 4rem !important;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
        margin: 0 auto 3rem;
    }
    
    /* Footer desktop */
    footer {
        padding: 5rem 3rem 3rem;
        font-size: 1rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* Grand écran (1440px+) */
@media (min-width: 1440px) {
    .container,
    .type-content-wrapper {
        max-width: 1400px;
    }
    
    body {
        font-size: 19px !important;
    }
    
    h1 {
        font-size: 3.5rem !important;
    }
    
    .hero-title {
        font-size: 4.5rem !important;
    }
}

/* Très grand écran (1920px+) */
@media (min-width: 1920px) {
    .container,
    .type-content-wrapper {
        max-width: 1600px;
    }
    
    body {
        font-size: 20px !important;
    }
}

/* Dark Mode renforcé pour desktop */
@media (min-width: 1024px) {
    body {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    }
    
    /* Contraste amélioré pour lecture longue */
    .content-section,
    .type-content-wrapper {
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Code blocks desktop */
    pre, code {
        font-size: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Tables desktop */
    table {
        font-size: 1rem;
    }
    
    th, td {
        padding: 1rem 1.5rem;
    }
    
    /* Forms desktop */
    input, textarea, select {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: 10px;
    }
    
    /* Animations desktop uniquement */
    @media (prefers-reduced-motion: no-preference) {
        * {
            transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
        }
        
        .card:hover,
        .type-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
        }
    }
}

/* Fix pour les écrans ultra-wide */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
    }
    
    body {
        font-size: 21px !important;
    }
    
    /* Centrage du contenu principal */
    .page-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}