/* Responsive CSS - Media queries et adaptabilité mobile pour Photos-Book */

/* === BREAKPOINTS === */
/* 
  xs: 0px
  sm: 640px
  md: 768px
  lg: 1024px
  xl: 1280px
  2xl: 1536px
*/

/* === MOBILE FIRST - PETITS ÉCRANS === */

@media (max-width: 480px) {
    /* Container très petit écran */
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Header mobile */
    .header-container {
        padding: var(--space-2) var(--space-3);
    }
    
    .logo-img {
        height: 28px;
    }
    
    .footer-logo-img {
        height: 24px;
    }
    
    .header-contact-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    /* Hero très petit écran */
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Sections */
    .section {
        padding: var(--space-8) 0;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Cartes très petites */
    .card {
        margin: 0 var(--space-1);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .step-card,
    .advantage-card {
        padding: var(--space-4) var(--space-3);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    /* Footer mobile */
    .footer-grid {
        gap: var(--space-4);
    }
    
    .footer-column h3 {
        font-size: var(--font-size-base);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        font-size: var(--font-size-sm);
    }
    
    /* Formulaires */
    .form-input,
    .form-textarea {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
    }
}

/* === TABLETTES PORTRAIT === */

@media (min-width: 481px) and (max-width: 767px) {
    /* Grilles tablette */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    /* Hero tablette */
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Navigation mobile améliorée */
    .mobile-nav {
        padding: var(--space-6);
    }
    
    .mobile-nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    /* Footer tablette */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* === TABLETTES PAYSAGE === */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Navigation intermédiaire */
    .main-nav {
        gap: var(--space-4);
    }
    
    .nav-link {
        padding: var(--space-2);
        font-size: var(--font-size-sm);
    }
    
    /* Grilles tablette paysage */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero tablette paysage */
    .hero {
        padding: var(--space-20) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    /* Cartes tablette */
    .testimonial-card {
        padding: var(--space-6);
    }
    
    /* Footer tablette paysage */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
    }
}

/* === ÉCRANS MOYENS === */

@media (min-width: 1024px) {
    /* Retour navigation complète */
    .mobile-menu-btn {
        display: none;
    }
    
    .main-nav {
        display: flex;
    }
    
    /* Grilles desktop */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hero desktop */
    .hero {
        padding: var(--space-24) 0;
    }
    
    /* Hover states desktop */
    .card:hover {
        transform: translateY(-4px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    /* FAQ desktop */
    .faq-item {
        padding: var(--space-8) 0;
    }
    
    .faq-answer {
        padding-left: var(--space-6);
    }
}

/* === GRANDS ÉCRANS === */

@media (min-width: 1280px) {
    /* Container plus large */
    .container {
        max-width: var(--container-xl);
    }
    
    /* Hero grands écrans */
    .hero-content {
        max-width: 900px;
    }
    
    /* Sections plus espacées */
    .section {
        padding: var(--space-20) 0;
    }
    
    /* Grilles avec plus d'espace */
    .grid-2 {
        gap: var(--space-10);
    }
    
    .grid-3 {
        gap: var(--space-8);
    }
    
    .grid-4 {
        gap: var(--space-6);
    }
    
    /* Cartes plus grandes */
    .step-card,
    .advantage-card {
        padding: var(--space-10) var(--space-8);
    }
    
    .testimonial-card {
        padding: var(--space-10);
    }
    
    /* Footer plus espacé */
    .footer-main {
        padding: var(--space-20) 0 var(--space-10);
    }
}

/* === TRÈS GRANDS ÉCRANS === */

@media (min-width: 1536px) {
    /* Container maximum */
    .container {
        max-width: var(--container-2xl);
    }
    
    /* Hero très grands écrans */
    .hero {
        padding: var(--space-24) 0 var(--space-20);
    }
    
    .hero-title {
        font-size: clamp(var(--font-size-4xl), 6vw, 4rem);
    }
    
    /* Sections très grandes */
    .section {
        padding: var(--space-24) 0;
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

/* === ORIENTATION PAYSAGE MOBILE === */

@media (max-width: 926px) and (orientation: landscape) {
    .hero {
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-4);
    }
    
    .section {
        padding: var(--space-6) 0;
    }
    
    /* Navigation mobile paysage */
    .mobile-nav-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
    }
}

/* === PRINT STYLES === */

@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .header,
    .footer,
    .hero,
    .contact-quick,
    .btn,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 11pt;
        color: #666;
    }
}

/* === PRÉFÉRENCES UTILISATEUR === */

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* === ACCESSIBILITÉ === */

/* Focus visible amélioré */
@media (prefers-reduced-motion: no-preference) {
    :focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: var(--border-radius-sm);
    }
}

/* Contraste élevé */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --gray-600: #333333;
        --gray-700: #222222;
    }
    
    .btn-primary {
        background: var(--primary-color);
        border: 2px solid var(--primary-dark);
    }
    
    .card {
        border: 1px solid var(--gray-300);
    }
}