/* ==============================================
   RESPONSIVE MOBILE OPTIMISÉ - CyberSecure Sénégal
============================================== */

    .page-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        border-radius: 12px;
        color: white;
    }bles CSS pour cohérence */
:root {
    --mobile-padding: 0.75rem;
    --mobile-gap: 0.75rem;
    --mobile-font-base: 15px;
    --header-height-mobile: 60px;
    --animation-speed: 0.3s;
}

/* ==============================================
   NAVIGATION MOBILE AMÉLIORÉE
============================================== */
@media (max-width: 768px) {
    /* Header fixe optimisé */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(26, 32, 44, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.375rem 0;
    }
    
    .header .container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Logo optimisé mobile */
    .logo {
        flex-shrink: 0;
    }
    
    .logo span {
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Navigation hamburger améliorée */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        transition: all var(--animation-speed) ease;
    }
    
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        background: #fff;
        border-radius: 3px;
        transition: all var(--animation-speed) ease;
    }
    
    .hamburger::before {
        transform: translateY(-8px);
    }
    
    .hamburger::after {
        transform: translateY(5px);
    }
    
    /* Animation hamburger vers X */
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
    }
    
    /* Menu mobile optimisé */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 32, 44, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100vh);
        transition: transform var(--animation-speed) ease;
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    .nav {
        flex-direction: column;
        padding: 0.75rem 0;
        margin: 0;
        list-style: none;
    }
    
    .nav li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem var(--mobile-padding);
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all var(--animation-speed) ease;
        font-weight: 500;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        padding-left: 1.25rem;
    }
}

/* ==============================================
   PAGES ACTUALITÉS MOBILE
============================================== */
@media (max-width: 768px) {
    /* Container principal */
    .news-container {
        padding: 0 var(--mobile-padding);
        margin-top: 0.75rem;
    }
    
    /* En-tête de page */
    .page-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        border-radius: 15px;
        color: white;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.375rem;
        line-height: 1.2;
    }
    
    .page-header p {
        font-size: 0.875rem;
        opacity: 0.9;
        margin: 0;
    }
    
    /* Alerte critique mobile */
    .critical-alert {
        margin: 1rem -var(--mobile-padding);
        border-radius: 0;
        padding: 1.5rem var(--mobile-padding);
    }
    
    .alert-content h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .alert-meta {
        flex-direction: column;
        gap: 0.625rem;
        margin-top: 0.875rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    /* Contrôles et filtres */
    .news-controls {
        background: #f8fafc;
        padding: 0.875rem;
        border-radius: 8px;
        margin-bottom: 1.25rem;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 0.875rem;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
    }
    
    .filter-group select {
        width: 100%;
        padding: 0.625rem;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.95rem;
        background-color: white;
        transition: border-color var(--animation-speed) ease;
    }
    
    .filter-group select:focus {
        border-color: #3b82f6;
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    /* Barre de recherche mobile */
    .search-bar {
        width: 100%;
        position: relative;
        margin-top: 1rem;
    }
    
    .search-bar input {
        width: 100%;
        padding: 0.625rem 2.75rem 0.625rem 0.875rem;
        border: 2px solid #e5e7eb;
        border-radius: 20px;
        font-size: 0.95rem;
        background-color: white;
        transition: all var(--animation-speed) ease;
    }
    
    .search-bar input:focus {
        border-color: #3b82f6;
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .search-bar button {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 50%;
        width: 2.25rem;
        height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color var(--animation-speed) ease;
    }
    
    .search-bar button:hover {
        background: #2563eb;
    }
    
    /* Stats bar mobile */
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .stat-item {
        text-align: center;
        padding: 0.5rem;
        border-radius: 8px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .stat-number {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e40af;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.75rem;
        color: #64748b;
        margin-top: 0.25rem;
        font-weight: 500;
    }
}

/* ==============================================
   GRILLE D'ARTICLES MOBILE
============================================== */
@media (max-width: 768px) {
    .news-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 1.75rem;
    }
    
    .news-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
        transition: all var(--animation-speed) ease;
        position: relative;
    }
    
    .news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    /* Badge d'urgence mobile */
    .urgency-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        padding: 0.25rem 0.625rem;
        border-radius: 16px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
    }
    
    .urgency-badge.critique {
        background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
        color: white;
        animation: pulseUrgent 2s infinite;
    }
    
    .urgency-badge.important {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
    }
    
    .urgency-badge.info {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
    }
    
    @keyframes pulseUrgent {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    /* Contenu de la carte */
    .news-card-content {
        padding: 1.25rem;
    }
    
    .news-card h2 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.675rem;
        color: #1a202c;
        font-weight: 700;
    }
    
    .news-card h2 a {
        color: inherit;
        text-decoration: none;
        transition: color var(--animation-speed) ease;
    }
    
    .news-card h2 a:hover {
        color: #3b82f6;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #64748b;
        margin-bottom: 0.875rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.875rem;
        border-top: 1px solid #e5e7eb;
        font-size: 0.75rem;
        color: #64748b;
    }
    
    .meta-left {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }
    
    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .meta-item i {
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    .source-badge {
        background: #e2e8f0;
        color: #475569;
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 500;
    }
}

/* ==============================================
   ARTICLE DÉTAILLÉ MOBILE
============================================== */
@media (max-width: 768px) {
    .article-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .article-header {
        padding: 1.75rem var(--mobile-padding);
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: white;
        margin-bottom: 0;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .meta-left {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .share-buttons {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
        min-width: auto;
    }
    
    /* Contenu article */
    .article-content {
        padding: 1.75rem var(--mobile-padding);
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .article-content p {
        margin-bottom: 1.5rem;
    }
    
    .article-content h2,
    .article-content h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    /* Actions article */
    .article-actions {
        padding: 1.5rem var(--mobile-padding);
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }
    
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all var(--animation-speed) ease;
    }
    
    .action-btn:hover {
        transform: translateY(-2px);
    }
}

/* ==============================================
   ARTICLES LIÉS MOBILE
============================================== */
@media (max-width: 768px) {
    .related-section {
        padding: 2rem var(--mobile-padding);
        background: white;
    }
    
    .related-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .related-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-card {
        background: #f8fafc;
        border-radius: 10px;
        padding: 1rem;
        border-left: 4px solid #3b82f6;
        transition: all var(--animation-speed) ease;
    }
    
    .related-card:hover {
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .related-card h4 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .related-card h4 a {
        color: #1a202c;
        text-decoration: none;
    }
    
    .related-card h4 a:hover {
        color: #3b82f6;
    }
    
    .related-meta {
        font-size: 0.8rem;
        color: #64748b;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* ==============================================
   COMMENTAIRES MOBILE
============================================== */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.75rem var(--mobile-padding);
        background: white;
        border-top: 1px solid #e5e7eb;
    }
    
    .comments-header {
        margin-bottom: 1.75rem;
        text-align: center;
    }
    
    .comments-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.375rem;
    }
    
    .comments-count {
        color: #64748b;
        font-size: 0.9rem;
    }
    
    /* Formulaire commentaire */
    .comment-form-container {
        background: #f8fafc;
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1.75rem;
    }
    
    .comment-form-container h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        flex: 1;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color var(--animation-speed) ease;
        font-family: inherit;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #3b82f6;
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 120px;
        line-height: 1.5;
    }
    
    .submit-btn {
        width: 100%;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border: none;
        padding: 1rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--animation-speed) ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    }
    
    /* Liste des commentaires */
    .comments-list {
        margin-top: 2rem;
    }
    
    .comment {
        background: white;
        border-radius: 10px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        position: relative;
    }
    
    .comment::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #3b82f6;
        border-radius: 2px 0 0 2px;
    }
    
    .comment-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .comment-author {
        font-weight: 600;
        color: #1a202c;
        font-size: 0.95rem;
    }
    
    .comment-date {
        color: #64748b;
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151;
    }
    
    .comment-pending {
        background: #fef3c7;
        border-color: #f59e0b;
        position: relative;
    }
    
    .comment-pending::before {
        background: #f59e0b;
    }
    
    .pending-notice {
        background: #f59e0b;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.75rem;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-weight: 600;
    }
}

/* ==============================================
   PAGINATION MOBILE
============================================== */
@media (max-width: 768px) {
    .pagination-container {
        margin: 2rem 0;
        display: flex;
        justify-content: center;
    }
    
    .pagination {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.75rem 1rem;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        color: #374151;
        text-decoration: none;
        font-weight: 500;
        transition: all var(--animation-speed) ease;
        min-width: 44px;
        text-align: center;
    }
    
    .page-link:hover,
    .page-link.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: white;
        transform: translateY(-2px);
    }
    
    .page-link.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .page-link.disabled:hover {
        transform: none;
        background: white;
        color: #374151;
    }
}

/* ==============================================
   FOOTER MOBILE MODERNE
============================================== */
@media (max-width: 768px) {
    .modern-footer {
        margin-top: 1rem;
    }
    
    .footer-container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Contenu principal footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0 0.75rem;
        text-align: center;
    }
    
    /* Brand section mobile */
    .footer-brand {
        max-width: 100%;
        order: -1;
    }
    
    .brand-logo-section {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo {
        width: 24px;
        height: 24px;
    }
    
    .brand-info h3 {
        font-size: 0.95rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
    }
    
    .brand-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .security-badges {
        justify-content: center;
        gap: 0.375rem;
    }
    
    .security-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Sections footer mobile */
    .footer-section {
        padding: 0.75rem 0;
    }
    
    .section-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links li {
        margin-bottom: 0.25rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    /* Contact mobile */
    .contact-info {
        margin-bottom: 0.75rem;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 0.375rem;
        font-size: 0.75rem;
    }
    
    /* Social mobile */
    .social-section {
        margin-top: 0.5rem;
    }
    
    .social-title {
        text-align: center;
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.375rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* Newsletter mobile */
    .newsletter-footer {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .newsletter-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-text p {
        font-size: 0.8rem;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .input-group input {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px 8px 0 0;
    }
    
    .input-group button {
        padding: 0.75rem;
        font-size: 0.8rem;
        border-radius: 0 0 8px 8px;
    }
    
    .newsletter-note {
        font-size: 0.7rem;
    }
    
    /* Footer bottom mobile */
    .footer-bottom {
        padding: 0.75rem 0 0.625rem;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .copyright p {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .made-with {
        font-size: 0.75rem;
    }
    
    .footer-meta {
        text-align: center;
    }
    
    .stats-mini {
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .stat {
        font-size: 0.75rem;
    }
    
    .legal-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .legal-link {
        font-size: 0.75rem;
    }
}

/* Footer mobile très petit écran */
@media (max-width: 480px) {
    .footer-content {
        gap: 0.75rem;
        padding: 0.75rem 0 0.5rem;
    }
    
    .brand-description {
        display: none; /* Masque la description sur très petits écrans */
    }
    
    .security-badges {
        display: none; /* Masque les badges sur très petits écrans */
    }
    
    .newsletter-footer {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .newsletter-text h4 {
        font-size: 0.85rem;
    }
    
    .newsletter-text p {
        font-size: 0.75rem;
    }
    
    .stats-mini {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ==============================================
   ANIMATIONS ET TRANSITIONS MOBILES
============================================== */
@media (max-width: 768px) {
    /* Animation d'apparition */
    .fade-in {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Animation de chargement */
    .loading {
        position: relative;
        overflow: hidden;
    }
    
    .loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% { left: -100%; }
        100% { left: 100%; }
    }
}

/* ==============================================
   OPTIMISATIONS PERFORMANCES MOBILES
============================================== */
@media (max-width: 768px) {
    /* Réduction des animations coûteuses */
    * {
        will-change: auto;
    }
    
    /* Optimisation des transformations */
    .transform-gpu {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Lazy loading pour images */
    img {
        loading: lazy;
        decode: async;
    }
}

/* ==============================================
   TRÈS PETITS ÉCRANS (< 480px)
============================================== */
@media (max-width: 480px) {
    :root {
        --mobile-padding: 0.625rem;
        --mobile-gap: 0.625rem;
        --mobile-font-base: 14px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .news-card-content {
        padding: 1rem;
    }
    
    .news-card h2 {
        font-size: 1.1rem;
    }
    
    .article-header {
        padding: 1.25rem var(--mobile-padding);
    }
    
    .article-header h1 {
        font-size: 1.4rem;
    }
    
    .article-content {
        padding: 1.5rem var(--mobile-padding);
        font-size: 0.95rem;
    }
    
    .comment-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}