/* Responsive Design - Styles additionnels pour mobile */

/* Logo Responsive */
@media (max-width: 768px) {
    .logo-image {
        width: 40px;
        height: 40px;
        max-width: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__background {
        opacity: 0.2;
    }
}

/* Petits écrans */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat__number {
        font-size: 2.5rem;
    }
    
    .mission__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .news__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .donation-amounts {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-amount,
    .donation-custom {
        width: 100%;
        max-width: 200px;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about,
    .contact,
    .faq {
        padding: 2.5rem 0;
    }

    .about__text h1,
    .contact__info h1 {
        font-size: 1.75rem;
    }

    .about__text h2 {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about__text p,
    .contact-method p,
    .contact-method a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .about__sidebar {
        position: static;
        width: 100%;
    }

    .sidebar-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-method {
        flex-direction: column;
        padding: 1rem;
    }

    .form,
    .contact__form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-control {
        font-size: 16px;
    }

    .form .btn {
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    :root {
        --font-size-base: 13px;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
    }
    
    .hero {
        min-height: 70vh;
        margin-top: 70px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__content {
        padding: var(--spacing-lg);
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat {
        padding: var(--spacing-md);
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .mission__card {
        padding: var(--spacing-lg);
    }
    
    .mission__icon {
        font-size: 2.5rem;
    }
    
    .news-card__content {
        padding: var(--spacing-md);
    }
    
    .news-card__title a {
        font-size: 1.125rem;
    }
    
    .donation-cta h2 {
        font-size: 2rem;
    }
    
    .donation-cta p {
        font-size: 1rem;
    }
    
    .donation-btn {
        font-size: 1.125rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Amélioration du menu mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--background-white);
        transition: left 0.3s ease;
        box-shadow: var(--box-shadow-xl);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
        align-items: stretch;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        text-align: left;
        font-size: 1rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link--donate {
        margin-top: var(--spacing-md);
        text-align: center;
        border-radius: var(--border-radius);
    }
    
    .nav-toggle span {
        background: var(--text-dark);
    }
    
    .nav-toggle:hover span {
        background: var(--primary-color);
    }
}

/* Animations et transitions optimisées pour mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero__background::before,
    .donation-cta::before {
        display: none;
    }
}

/* Mode sombre désactivé : le site VOCA reste en thème clair
   (évite un fond noir sur iPhone / Android en mode sombre système) */

/* Hauteur réduite pour mobile en mode paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
    }
    
    .hero__content {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .about__text h1,
    .contact__info h1 {
        font-size: 1.5rem;
    }

    .sidebar-stat__number {
        font-size: 1.35rem;
    }

    .form {
        padding: 1rem;
    }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__content {
        grid-template-columns: 1.5fr 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Grands écrans */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero__title {
        font-size: 4rem;
    }
    
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mission__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Impression */
@media print {
    .header,
    .nav-toggle,
    .hero__actions,
    .donation-cta,
    .footer,
    .flash-messages {
        display: none;
    }
    
    .hero {
        min-height: auto;
        margin-top: 0;
        background: none;
        color: var(--text-dark);
    }
    
    .hero__content {
        padding: 0;
    }
    
    .hero__title {
        color: var(--text-dark);
        text-shadow: none;
    }
    
    .mission__card,
    .news-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .btn {
        background: none !important;
        color: var(--primary-color) !important;
        border: 1px solid var(--primary-color) !important;
    }
}
