/* =====================================================
   WASHGO - STYLES PROFESSIONNELS (VERSION FINALE CORRIGÉE)
   Nettoyage à domicile Cotonou Bénin
   ===================================================== */

:root {
    --primary-green: #2ecc71;
    --primary-green-dark: #27ae60;
    --primary-blue: #3498db;
    --gold: #fbbf24;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-green: 0 10px 25px -5px rgba(46,204,113,0.25);
    --transition: 0.25s ease;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--gray-50); color: var(--dark); line-height: 1.6; overflow-x: hidden; padding-top: 75px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 576px) { .container { padding: 0 20px; } }
@media (min-width: 992px) { .container { padding: 0 32px; } }

/* ===================================================== */
/* GRILLE - CORRIGÉE POUR HORIZONTAL SUR DESKTOP        */
/* ===================================================== */
.row { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -12px; 
}
.row > * { 
    padding: 0 12px; 
    width: 100%; 
}
.col-12 { width: 100%; }
.col-6 { width: 50%; }

@media (min-width: 576px) { 
    .col-sm-6 { width: 50%; } 
}

@media (min-width: 768px) { 
    .col-md-6 { width: 50%; } 
    .col-md-4 { width: 33.333%; } 
    .col-md-3 { width: 25%; } 
}

@media (min-width: 992px) { 
    .col-lg-7 { width: 58.333%; } 
    .col-lg-6 { width: 50%; } 
    .col-lg-5 { width: 41.667%; } 
    .col-lg-4 { width: 33.333%; } 
    .col-lg-3 { width: 25%; } 
}

/* IMPORTANT : Sur desktop, toutes les .row restent en flex row */
@media (min-width: 992px) {
    .row {
        flex-direction: row !important;
    }
    .row > [class*="col-"] {
        flex: 0 0 auto;
    }
}

/* Sur mobile, on empile */
@media (max-width: 991.98px) {
    .row {
        flex-direction: column !important;
    }
    .row > [class*="col-"] {
        width: 100% !important;
        margin-bottom: 20px;
    }
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* ===================================================== */
/* NAVIGATION                                            */
/* ===================================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: rgba(255,255,255,0.98) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 12px 0 !important; }
.navbar-brand img { height: 36px; width: auto; }
@media (min-width: 768px) { .navbar-brand img { height: 42px; } }
@media (min-width: 992px) { .navbar-brand img { height: 48px; } }
.navbar-toggler { border: 2px solid var(--gray-200) !important; border-radius: var(--radius-md) !important; padding: 8px 12px !important; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(46,204,113,0.15) !important; border-color: var(--primary-green) !important; }
@media (max-width: 991.98px) { .navbar-collapse { background: white; padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-top: 15px; max-height: 80vh; overflow-y: auto; border: 1px solid rgba(46,204,113,0.1); } }
.navbar-nav { gap: 4px; }
@media (min-width: 992px) { .navbar-nav { gap: 6px; align-items: center; } }
.nav-link { font-weight: 600 !important; color: var(--gray-800) !important; padding: 12px 16px !important; font-size: 1rem !important; border-radius: var(--radius-md) !important; transition: var(--transition) !important; }
@media (min-width: 992px) { .nav-link { padding: 8px 14px !important; font-size: 0.95rem !important; border-radius: var(--radius-full) !important; } }
.nav-link:hover { color: var(--primary-green) !important; background: rgba(46,204,113,0.08) !important; }
.nav-link.active { background: linear-gradient(135deg, var(--primary-green), var(--primary-blue)) !important; color: white !important; }
.dropdown-menu { border: none !important; box-shadow: var(--shadow-lg) !important; border-radius: var(--radius-lg) !important; padding: 8px 0 !important; margin-top: 8px !important; }
@media (max-width: 991.98px) { .dropdown-menu { background: var(--gray-50) !important; margin-left: 16px !important; border-left: 3px solid var(--primary-green) !important; box-shadow: none !important; } }
.dropdown-item { padding: 12px 20px !important; font-weight: 500 !important; transition: var(--transition) !important; }
.dropdown-item:hover { background: rgba(46,204,113,0.08) !important; color: var(--primary-green) !important; padding-left: 24px !important; }
.dropdown-item i { width: 22px; color: var(--primary-green); margin-right: 10px; }
.nav-link.btn-primary { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)) !important; color: white !important; padding: 10px 22px !important; margin-top: 8px !important; text-align: center !important; box-shadow: var(--shadow-green) !important; }
@media (min-width: 992px) { .nav-link.btn-primary { margin-top: 0 !important; margin-left: 8px !important; } }
.nav-link.btn-primary:hover { transform: translateY(-2px) !important; box-shadow: 0 15px 30px -8px rgba(46,204,113,0.35) !important; }

/* ===================================================== */
/* HERO SECTION                                          */
/* ===================================================== */
.hero-section { padding: 20px 0 40px; }
@media (min-width: 768px) { .hero-section { padding: 30px 0 50px; } }
@media (min-width: 992px) { .hero-section { padding: 40px 0 60px; } }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; }

/* ===================================================== */
/* TYPOGRAPHIE                                           */
/* ===================================================== */
h1, .h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 700; }
h4, .h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
p { font-size: 0.95rem; margin-bottom: 1rem; }
@media (min-width: 768px) { p { font-size: 1rem; } }
.text-gradient { background: linear-gradient(135deg, var(--primary-green), var(--primary-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }

/* ===================================================== */
/* BOUTONS                                               */
/* ===================================================== */
.btn { display: inline-block; padding: 12px 24px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-full); transition: var(--transition); cursor: pointer; border: 2px solid transparent; text-align: center; }
@media (min-width: 768px) { .btn { padding: 14px 28px; font-size: 1rem; } }
.btn-success { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)); color: white; box-shadow: var(--shadow-green); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -8px rgba(46,204,113,0.4); }
.btn-outline-success { border: 2px solid var(--primary-green); color: var(--primary-green); background: transparent; }
.btn-outline-success:hover { background: var(--primary-green); color: white; }
.btn-outline-light:hover { background: white; color: var(--primary-green) !important; }

/* ===================================================== */
/* SECTIONS                                              */
/* ===================================================== */
section { padding: 40px 0; }
@media (min-width: 768px) { section { padding: 60px 0; } }
@media (min-width: 992px) { section { padding: 70px 0; } }
.bg-white { background: white; }
.bg-light { background: var(--gray-50); }

/* ===================================================== */
/* CARTES                                                */
/* ===================================================== */
.category-main-card, .service-detail-card, .testimonial-card, .calculator-box { background: white; border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); height: 100%; transition: var(--transition); }
@media (min-width: 768px) { .category-main-card, .service-detail-card, .testimonial-card, .calculator-box { padding: 28px; } }
@media (min-width: 992px) { .category-main-card, .service-detail-card, .testimonial-card, .calculator-box { padding: 32px; } }
.category-main-card:hover, .service-detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(46,204,113,0.2); }
.category-icon { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 1.5rem; text-align: center; }
.service-icon-large { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 1.5rem; }
.time-badge { background: #f0fdf4; color: var(--primary-green); padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 10px; }

/* Carte Annuelle */
.annual-card { background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%); border: 2px solid var(--primary-green); border-radius: 24px; padding: 1.5rem; position: relative; box-shadow: 0 25px 40px -12px rgba(46,204,113,0.25); }
.best-deal-badge { position: absolute; top: -15px; right: 20px; background: #e74c3c; color: white; padding: 8px 20px; border-radius: 40px; font-weight: 800; font-size: 0.85rem; }
@media (max-width: 768px) { .best-deal-badge { position: static; display: inline-block; margin-bottom: 15px; } .annual-card { text-align: center; } }

/* Garantie */
.guarantee-banner { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-radius: 20px; padding: 15px 25px; border: 1px solid rgba(46,204,113,0.2); }

/* Flottes */
.fleet-card { background: linear-gradient(145deg, #1e293b, #0f172a); border-radius: 24px; padding: 2rem; color: white; }
.fleet-card .highlight { color: var(--gold); }
.pack-entreprise { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.1); height: 100%; }

/* Calculateur et Abonnement Pro */
.calculator-box { background: white; border-radius: var(--radius-xl); padding: 28px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); height: 100%; }
.abonnement-pro-card { background: linear-gradient(145deg, #1e293b, #0f172a); border-radius: var(--radius-xl); padding: 28px; color: white; height: 100%; box-shadow: var(--shadow-lg); }
.abonnement-pro-card .btn-outline-light { border: 2px solid white; color: white; background: transparent; font-weight: 600; padding: 10px 24px; }

/* ===================================================== */
/* FORMULAIRES                                           */
/* ===================================================== */
.form-control, .form-select { width: 100%; padding: 12px 16px; font-size: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-md); transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(46,204,113,0.12); outline: none; }
.form-label { font-weight: 600; margin-bottom: 6px; display: block; }

/* ===================================================== */
/* FOOTER                                                */
/* ===================================================== */
footer { background: linear-gradient(180deg, #1e293b, #0f172a); color: white; padding: 50px 0 20px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-green), transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 20px; }
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; } }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { height: 42px; width: auto; margin-bottom: 16px; background: white; padding: 6px 10px; border-radius: var(--radius-md); align-self: flex-start; }
.footer-description { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: white; text-transform: uppercase; letter-spacing: 0.3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: all 0.2s; display: inline-block; }
.footer-links a:hover { color: var(--primary-green); transform: translateX(3px); }
.footer-newsletter-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input { padding: 12px 16px; border-radius: var(--radius-full); border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: white; font-size: 0.9rem; outline: none; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: var(--primary-green); background: rgba(255,255,255,0.1); }
.newsletter-btn { padding: 12px 20px; border-radius: var(--radius-full); background: var(--primary-green); color: white; border: none; font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.newsletter-btn:hover { background: var(--primary-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 30px 0 20px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-tags { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.social-links { display: flex; gap: 12px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 50%; color: white; transition: all 0.2s; }
.social-links a:hover { background: var(--primary-green); transform: translateY(-3px); color: white; }

/* ===================================================== */
/* UTILITAIRES                                           */
/* ===================================================== */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.g-4 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.ms-auto { margin-left: auto; }
.ms-lg-2 { margin-left: 0; }
@media (min-width: 992px) { .ms-lg-2 { margin-left: 8px; } }
.p-4 { padding: 24px; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.text-center { text-align: center; }
.text-start { text-align: left; }
@media (min-width: 768px) { .text-md-start { text-align: left; } }
@media (min-width: 992px) { .text-lg-start { text-align: left; } }
.text-white { color: white; }
.text-success { color: var(--primary-green); }
.text-muted { color: var(--gray-600); }
.text-warning { color: var(--gold); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fs-1 { font-size: 2rem; }
.fs-2 { font-size: 1.5rem; }
.fs-4 { font-size: 1.2rem; }
.fs-5 { font-size: 1rem; }
.rounded-pill { border-radius: var(--radius-full); }
.rounded-4 { border-radius: var(--radius-xl); }
.rounded-circle { border-radius: 50%; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.bg-success { background: var(--primary-green) !important; }
.bg-opacity-10 { --bs-bg-opacity: 0.1; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.lead { font-size: 1rem; }
@media (min-width: 768px) { .lead { font-size: 1.15rem; } }
.display-4 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.display-6 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; }

/* ===================================================== */
/* ACCORDION                                             */
/* ===================================================== */
.accordion-button:not(.collapsed) { background: var(--primary-green) !important; color: white !important; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(46,204,113,0.15) !important; border-color: var(--primary-green) !important; }

/* ===================================================== */
/* CORRECTIONS SPÉCIFIQUES POUR L'AFFICHAGE              */
/* ===================================================== */
@media (min-width: 992px) {
    /* S'assurer que les colonnes sont côte à côte */
    .col-lg-6, .col-lg-7, .col-lg-5, .col-lg-4, .col-lg-3 {
        flex: 0 0 auto !important;
    }
    
    /* Alignement vertical centré pour les cartes */
    .align-items-stretch {
        align-items: stretch !important;
    }
}

/* Désactiver le flex column forcé sur mobile pour certaines sections */
@media (max-width: 991.98px) {
    .btn {
        width: 100%;
    }
}