/**
 * Styles Responsive - Photos-Book.fr
 * Media queries pour optimisation mobile et tablette
 */

/* ===== BREAKPOINTS ===== */
/* Desktop: 1200px+ (défaut) */
/* Laptop: 992px - 1199px */
/* Tablet: 768px - 991px */
/* Mobile: 320px - 767px */

/* ===== LAPTOP (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .container,
    .hero-container,
    .features-container,
    .nav-container,
    .footer-container {
        max-width: 960px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .hero-content {
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .feature-main {
        grid-column: span 2;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
    .container,
    .hero-container,
    .features-container,
    .nav-container,
    .footer-container {
        max-width: 720px;
        padding: 0 1.5rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .floating-qr {
        top: 10px;
        right: 10px;
    }

    .floating-notification {
        bottom: 10px;
        left: 10px;
    }

    .floating-photos {
        display: none;
    }

    /* Features */
    .feature-main {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: span 2;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
}

/* ===== MOBILE (320px - 767px) ===== */
@media (max-width: 767px) {
    .container,
    .hero-container,
    .features-container,
    .nav-container,
    .footer-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Typography */
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1.5rem;
    }

    .nav-overlay {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .navbar {
        padding: 0;
    }

    .main-content {
        margin-top: 60px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-xl {
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
    }

    .hero-features {
        margin-bottom: 2rem;
    }

    .feature-item {
        justify-content: center;
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-image-container {
        border-radius: 15px;
    }

    .qr-card {
        padding: 0.75rem;
    }

    .qr-image {
        width: 60px;
        height: 60px;
    }

    .notification-card {
        padding: 0.75rem;
        min-width: 180px;
    }

    .notification-avatar img {
        width: 32px;
        height: 32px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon-wrapper {
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-stats {
        gap: 1rem;
    }

    .features-cta {
        padding: 2rem;
        border-radius: 15px;
        margin-top: 3rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    /* Badges and Tags */
    .section-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }

    .highlight-badge,
    .auto-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column:first-child {
        grid-column: span 1;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin: 0 auto 3rem;
    }

    /* Animations - Réduites sur mobile */
    .hero-shapes {
        display: none;
    }

    .features-decoration {
        display: none;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 1rem;
    }
}

/* ===== MOBILE TRÈS PETIT (320px - 479px) ===== */
@media (max-width: 479px) {
    .container,
    .hero-container,
    .features-container,
    .nav-container,
    .footer-container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-xl {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .qr-card {
        padding: 0.5rem;
    }

    .qr-image {
        width: 50px;
        height: 50px;
    }

    .notification-card {
        padding: 0.5rem;
        min-width: 160px;
        font-size: 0.8rem;
    }

    .features-cta {
        padding: 1.5rem;
    }

    .section-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-stats {
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }

    .nav-overlay {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* ===== ACCESSIBILITÉ ET PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-arrow {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .nav-toggle,
    .hero-actions,
    .cta-actions,
    .footer-social,
    .floating-qr,
    .floating-notification,
    .floating-photos,
    .hero-shapes,
    .features-decoration {
        display: none !important;
    }

    .main-content {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .hero-section,
    .features-section {
        background: white !important;
    }

    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}