/**
 * Styles Responsive - Eau Naora
 * Adaptation pour tous les écrans
 */

/* ============================================
   TABLETTES (768px et plus)
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* HEADER */
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        order: 3;
        gap: 0.5rem;
        justify-content: space-around;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* HERO */
    .hero {
        padding: 2rem 1rem;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* GRILLES */
    .benefits-grid,
    .articles-grid,
    .conditions-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    /* BLOG */
    .blog-item {
        grid-template-columns: 1fr;
    }

    .blog-item-image {
        height: 200px;
    }

    /* À PROPOS */
    .about-content {
        grid-template-columns: 1fr;
    }

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

    /* FORMULAIRES */
    .form-step {
        padding: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions a {
        width: 100%;
    }
}

/* ============================================
   TÉLÉPHONES (640px et moins)
   ============================================ */

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
    }

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* HEADER */
    .header {
        position: relative;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .logo {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        text-align: center;
    }

    .nav-links .btn-primary {
        margin: 0.5rem 0.5rem 0;
        width: calc(100% - 1rem);
    }

    /* HERO */
    .hero {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* SECTIONS */
    .presentation,
    .contre-indications,
    .bienfaits,
    .blog-preview,
    .cta-final {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* BOÎTES */
    .warning-box,
    .info-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .warning-box h3,
    .info-box h3 {
        font-size: 1rem;
    }

    /* GRILLES */
    .benefits-grid,
    .articles-grid,
    .conditions-grid,
    .experience-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card,
    .article-card,
    .condition-card,
    .experience-card {
        padding: 1rem;
    }

    /* FORMULAIRES */
    .form-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .form-step legend {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
    }

    .form-actions {
        margin-top: 1.5rem;
    }

    /* BOUTONS */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-large {
        padding: 1rem 1.5rem;
    }

    /* BLOG */
    .blog-item {
        grid-template-columns: 1fr;
    }

    .blog-item-content {
        padding: 1rem;
    }

    .blog-item h2 {
        font-size: 1.25rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
    }

    .excerpt {
        font-size: 0.9rem;
    }

    .blog-item-image {
        height: 150px;
    }

    /* ARTICLE DÉTAILLÉ */
    .article-header {
        padding: 1.5rem 0;
    }

    .article-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .featured-image {
        max-height: 300px;
        margin: 1rem 0;
    }

    .content-body {
        font-size: 0.95rem;
    }

    /* À PROPOS */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-content {
        max-width: 100%;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    /* ERREUR 404 */
    .error-code {
        font-size: 4rem;
    }

    .error-content h2 {
        font-size: 1.5rem;
    }

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

    .error-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .error-suggestions {
        text-align: center;
    }

    .error-suggestions ul {
        list-style: none;
        margin: 0;
    }

    /* FOOTER */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1rem;
    }

    /* UTILITAIRES */
    .mt-0 { margin-top: 0; }
    .mt-xs { margin-top: 0.25rem; }
    .mt-sm { margin-top: 0.5rem; }
    .mt-md { margin-top: 1rem; }
    .mt-lg { margin-top: 1.5rem; }
    .mt-xl { margin-top: 2rem; }

    .mb-0 { margin-bottom: 0; }
    .mb-xs { margin-bottom: 0.25rem; }
    .mb-sm { margin-bottom: 0.5rem; }
    .mb-md { margin-bottom: 1rem; }
    .mb-lg { margin-bottom: 1.5rem; }
    .mb-xl { margin-bottom: 2rem; }

    .p-0 { padding: 0; }
    .p-xs { padding: 0.25rem; }
    .p-sm { padding: 0.5rem; }
    .p-md { padding: 1rem; }
    .p-lg { padding: 1.5rem; }
    .p-xl { padding: 2rem; }
}

/* ============================================
   TRÈS PETITS ÉCRANS (320px)
   ============================================ */

@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .error-code {
        font-size: 3rem;
    }

    .article-card h3,
    .benefit-card h3 {
        font-size: 1rem;
    }
}

/* ============================================
   IMPRESSION
   ============================================ */

@media print {
    .header,
    .footer,
    .nav-links,
    .btn-primary,
    .btn-secondary,
    .cta-final {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

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

    .container {
        max-width: 100%;
    }
}

/* ============================================
   ÉCRANS HAUTE RÉSOLUTION
   ============================================ */

@media (min-width: 1920px) {
    :root {
        --font-size-base: 1.1rem;
        --container-width: 1400px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.75rem;
    }
}

/* ============================================
   PRÉFÉRENCE UTILISATEUR - RÉDUIT MOUVEMENT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre désactivé - couleurs fixes */