/* ============================================
   BOUTON FLOTTANT MOBILE - Démarrer un projet
   À ajouter dans ton fichier css/style.css
   ============================================ */

/* Empêcher le bouton nav de passer à la ligne */
.nav-cta {
    white-space: nowrap;
}

/* Cacher le bouton "Démarrer un projet" dans la nav quand l'écran est trop petit */
@media (max-width: 1100px) {
    .nav-cta {
        display: none;
    }
}

/* Bouton flottant - visible quand le bouton nav est caché */
.mobile-floating-cta {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-floating-cta {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #f97316, #f43f5e);
        color: white;
        padding: 16px 32px;
        border-radius: 50px;
        font-family: 'Outfit', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
        z-index: 9999;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-floating-cta:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
    }

    .mobile-floating-cta:active {
        transform: translateX(-50%) translateY(0);
    }

    /* Ajouter un peu de padding en bas du body pour que le bouton ne cache pas le contenu */
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   BADGE DÉMO pour projets fictifs
   ============================================ */
.demo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   CORRECTIONS ACCESSIBILITÉ - CONTRASTE
   ============================================ */

/* Texte muted plus lisible */
.pricing-note {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer plus lisible */
footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Boutons avec meilleur contraste */
.btn-primary,
.contact-form button[type="submit"],
.mobile-floating-cta {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Styles h3 pour cartes (remplace h4 pour accessibilité) */
.benefit-card h3,
.advantage-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ============================================
   GRILLES COMPACTES MOBILE
   WordPress, Portfolio, Avantages
   ============================================ */

@media (max-width: 768px) {
    
    /* ---------- FIX HERO : supprimer l'espace vide ---------- */
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }
    
    .hero-photo {
        margin-bottom: 24px !important;
    }
    
    .hero-photo img {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* ---------- ÉCONOMIES : 3 colonnes compactes ---------- */
    #pricing {
        overflow-x: hidden !important;
    }
    
    .pricing-comparison {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }
    
    .pricing-item {
        padding: 12px 8px !important;
        text-align: center;
        min-width: 0 !important;  /* IMPORTANT: annule le min-width du CSS principal */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .pricing-item .icon {
        font-size: 1.2rem !important;
        margin-bottom: 4px;
    }
    
    .pricing-item .label {
        font-size: 0.65rem !important;
        margin-bottom: 4px;
    }
    
    .pricing-item .value {
        font-size: 0.8rem !important;
    }
    
    /* ---------- WORDPRESS : 3 colonnes compactes ---------- */
    .wordpress-benefits {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .wordpress-benefits .benefit-card {
        padding: 16px 8px !important;
        text-align: center;
    }
    
    .wordpress-benefits .benefit-icon {
        margin-bottom: 8px;
    }
    
    .wordpress-benefits .benefit-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .wordpress-benefits .benefit-card h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2;
    }
    
    /* Cacher les descriptions sur mobile */
    .wordpress-benefits .benefit-card p {
        display: none !important;
    }
    
    /* ---------- PORTFOLIO : grille 3 colonnes compacte ---------- */
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .portfolio-item {
        aspect-ratio: 1 !important;
        min-height: unset !important;
    }
    
    .portfolio-preview-text {
        font-size: 0.7rem !important;
    }
    
    .wip-badge {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
    }
    
    .portfolio-overlay {
        padding: 8px !important;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }
    
    .portfolio-overlay p {
        display: none !important;
    }
    
    .real-client-badge,
    .demo-badge {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
        margin-bottom: 4px !important;
    }
    
    /* ---------- AVANTAGES : grille 2x2 compacte ---------- */
    .advantages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .advantage-card {
        padding: 16px 12px !important;
        text-align: center;
    }
    
    .advantage-icon {
        margin-bottom: 8px;
    }
    
    .advantage-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .advantage-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Cacher les descriptions sur mobile */
    .advantage-card p {
        display: none !important;
    }
}

/* ============================================
   TRÈS PETITS ÉCRANS (<400px) - iPhone SE, etc.
   ============================================ */
@media (max-width: 400px) {
    
    /* Économies : réduire encore */
    .pricing-comparison {
        gap: 6px !important;
        padding: 0 5px !important;
    }
    
    .pricing-item {
        padding: 10px 4px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .pricing-item .icon {
        font-size: 1rem !important;
    }
    
    .pricing-item .label {
        font-size: 0.55rem !important;
        line-height: 1.2;
    }
    
    .pricing-item .value {
        font-size: 0.7rem !important;
    }
    
    /* Portfolio : 2 colonnes au lieu de 3 */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* WordPress : plus compact */
    .wordpress-benefits {
        gap: 8px !important;
    }
    
    .wordpress-benefits .benefit-card h3 {
        font-size: 0.65rem !important;
    }
}
