/* Simple Mobile Fix for iPhone 11 and similar screens (414px) */

/* Fix for screens 414px and smaller (iPhone 11) */
@media (max-width: 414px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* HERO SECTION FIXES - CRITICAL */
    .dlm-hero-section {
        min-height: auto !important;
        height: auto !important;
        padding: 2rem 1rem !important;
        overflow: visible !important;
    }
    
    .dlm-hero-content {
        max-width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .dlm-hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .dlm-hero-content h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .dlm-hero-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Hero badges mobile layout */
    .dlm-hero-badges {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .dlm-hero-badge-item {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Hero buttons mobile layout */
    .dlm-hero-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    /* PROOF MESSAGE SECTION FIXES - CRITICAL */
    .dlm-proof-message {
        padding: 1rem !important;
        margin: 1rem 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        overflow: visible !important;
        display: block !important;
        clear: both !important;
        margin-top: 1.5rem !important;
        border: 2px solid #9e3235 !important;
    }
    
    .dlm-proof-message p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        color: #333 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .dlm-proof-cta {
        display: inline-block !important;
        width: 100% !important;
        padding: 12px 16px !important;
        background: #9e3235 !important;
        color: white !important;
        text-decoration: none !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        min-height: 48px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    
    .dlm-proof-cta:hover,
    .dlm-proof-cta:focus {
        color: white !important;
        background: #7a2528 !important;
    }
    
    /* Fix any parent container issues that could cause cutting */
    .dlm-proof-stats,
    .dlm-proof-container,
    .dlm-stats-section {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Ensure hero section is never truncated */
    .dlm-hero-section,
    .dlm-hero-section * {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Force visibility for critical elements */
    .dlm-proof-message,
    .dlm-proof-cta {
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* SOCIAL PROOF SECTION FIXES - CRITICAL */
    .dlm-social-proof {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        background: rgba(248, 249, 250, 0.95) !important;
        border-radius: 8px !important;
        overflow: visible !important;
    }
    
    .dlm-proof-stat {
        display: block !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        padding: 0.75rem !important;
        width: 100% !important;
        background: white !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .dlm-proof-stat strong {
        display: block !important;
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        color: #9e3235 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .dlm-proof-stat span {
        font-size: 0.8rem !important;
        color: #6c757d !important;
        font-weight: 500 !important;
        display: block !important;
        line-height: 1.3 !important;
    }
    
    /* TRUST SECTION FIXES - Ensure parent section displays properly */
    .dlm-trust-section {
        padding: 2rem 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    
    .dlm-trust-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    /* Fix any grid layouts in trust section */
    .dlm-quick-answers {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .dlm-answer-card {
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    /* Header fixes */
    .site-header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        max-width: 60%;
    }
    
    .brand-name {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    .brand-tagline {
        font-size: 0.65rem !important;
        line-height: 1.1;
    }
    
    .header-actions {
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    .action-btn {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Hero section fixes */
    .dlm-hero-section {
        padding: 2rem 1rem !important;
        min-height: 100vh;
    }
    
    .dlm-hero-content {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .dlm-hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .dlm-hero-content h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .dlm-hero-description {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Buttons */
    .dlm-hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .dlm-hero-buttons .btn,
    .dlm-hero-buttons a {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        display: block !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }
    
    /* Stats grid */
    .dlm-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 2rem auto !important;
        max-width: 300px !important;
    }
    
    /* Formations grid */
    .dlm-formations-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .dlm-formation-card {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* General section spacing */
    section {
        padding: 2rem 0 !important;
    }
    
    /* Text sizing */
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    /* Top bar */
    .top-bar-content {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Mobile navigation improvements */
    .mobile-navigation {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .mobile-nav-content {
        padding: 1rem !important;
    }
    
    .mobile-menu-list a {
        padding: 1rem 0 !important;
        font-size: 1.1rem !important;
        display: block !important;
        min-height: 44px !important;
    }
    
    /* Form inputs - prevent zoom on iOS */
    input[type="text"],
    input[type="email"], 
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Even smaller screens (375px - iPhone X/XS) */
@media (max-width: 375px) {
    .dlm-hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    .dlm-hero-content h2 {
        font-size: 1.2rem !important;
    }
    
    .brand-name {
        font-size: 0.85rem !important;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
