/* Responsive CSS - Afrik Diaspora Invest */

/* Tablettes - Large (1024px) */
@media (max-width: 1024px) {
    /* Navigation */
    nav {
        padding: 0 var(--spacing-lg);
    }

    nav ul {
        gap: 1.5rem;
    }

    /* Sections padding */
    .section {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    /* Typography */
    .section-title {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    /* Hero */
    .slide-content h2 {
        font-size: 3rem;
    }

    /* President section */
    .president-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .president-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .quote-icon {
        position: static;
        margin-bottom: var(--spacing-md);
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* News grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.featured {
        grid-column: span 2;
        flex-direction: column;
    }

    .news-card.featured .news-image {
        width: 100%;
        height: 300px;
        min-height: unset;
    }

    .news-card.featured .news-content {
        width: 100%;
        padding: var(--spacing-lg);
    }

    /* Projects grid */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablettes (768px) */
@media (max-width: 768px) {
    /* Mobile menu activation */
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    /* Header adjustments */
    header {
        padding: 0.8rem 0;
    }

    header.scrolled {
        padding: 0.5rem 0;
    }

    nav {
        padding: 0 var(--spacing-md);
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 500px;
        margin-top: 70px;
    }

    .slide-content {
        padding: var(--spacing-md);
        max-width: 95%;
    }

    .slide-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .slider-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .slider-controls {
        display: none;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    .about-section,
    .services-section,
    .opportunities-section,
    .projects-section,
    .news-section,
    .contact-section,
    .cta-section,
    .president-section {
        padding: var(--spacing-xxl) var(--spacing-md);
    }

    /* Typography mobile */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    /* Grids mobile */
    .services-grid,
    .opportunities-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .news-card.featured {
        grid-column: span 1;
    }

    /* Service cards */
    .service-card {
        height: 350px;
    }

    .service-content {
        padding: var(--spacing-lg);
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    /* Opportunity cards */
    .opportunity-card {
        height: 300px;
    }

    /* Stats section */
    .stats-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    /* Projects */
    .project-image {
        height: 220px;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* President section mobile */
    .president-content h2 {
        font-size: 2rem;
    }

    .president-message {
        font-size: 1rem;
    }

    .president-signature {
        justify-content: center;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .cta-buttons button,
    .cta-buttons a {
        width: 100%;
        padding: 1rem 2rem;
    }

    /* Contact form */
    .contact-info {
        padding: var(--spacing-lg);
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    footer {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-sm);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Mobile Large (480px) */
@media (max-width: 480px) {
    /* Hero Slider */
    .hero-slider {
        height: 400px;
        margin-top: 60px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slider-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Sections padding mobile small */
    .about-section,
    .services-section,
    .opportunities-section,
    .projects-section,
    .news-section,
    .contact-section,
    .cta-section,
    .president-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    /* Typography small mobile */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .about-section p {
        font-size: 1rem;
    }

    /* Service cards */
    .service-card {
        height: 320px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }

    /* Stats mobile small */
    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    /* Projects mobile */
    .project-card {
        margin-bottom: var(--spacing-md);
    }

    .project-content {
        padding: var(--spacing-md);
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    /* News mobile */
    .news-content {
        padding: var(--spacing-md);
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    /* President mobile small */
    .president-content h2 {
        font-size: 1.8rem;
    }

    .president-image {
        max-width: 100%;
    }

    /* CTA mobile small */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons button,
    .cta-buttons a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    /* Contact */
    .contact-info h3 {
        font-size: 1.8rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 1rem;
    }

    /* Footer mobile small */
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-bottom-links a::after {
        display: none;
    }
}

/* Mobile Small (360px) */
@media (max-width: 360px) {
    /* Logo adjustments */
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    /* Hero content */
    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Service grid minimum */
    .services-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .service-card,
    .opportunity-card {
        min-width: 100%;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-slider {
        height: 90vh;
    }

    .slide-content {
        padding: var(--spacing-sm);
    }

    .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .slider-btn {
        padding: 0.6rem 1.5rem;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    /* Optimize images for retina */
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    header,
    footer,
    .mobile-menu,
    .slider-controls,
    .slider-dots,
    .cta-section,
    .social-links,
    .back-to-top {
        display: none !important;
    }

    /* Adjust layout for print */
    .hero-slider {
        height: auto;
        margin-top: 0;
    }

    .slide-content {
        position: static;
        transform: none;
        color: black;
    }

    /* Ensure all content is visible */
    .service-card,
    .opportunity-card,
    .project-card,
    .news-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    /* Reset colors for print */
    body {
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .particle {
        display: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
