:root {
    --primary: #0077B6;
    --secondary: #90E0EF;
    --dark: #023E8A;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --light: #f5f5f7;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-full: 50px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    background: var(--white); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.2s ease; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--dark); font-size: 1.3rem; font-weight: 700; }
.logo i { color: var(--primary); width: 28px; height: 28px; }
.logo strong { color: var(--primary); font-weight: 800; }

.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a:not(.btn-primary-outline) { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.desktop-nav a:not(.btn-primary-outline):hover { color: var(--primary); }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--dark); box-shadow: 0 8px 20px rgba(0, 119, 182, 0.25); }

.btn-primary-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}
.btn-primary-outline:hover { background: var(--primary); color: var(--white) !important; }

/* Breadcrumb */
.breadcrumb { margin: 0 0 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.85rem; }
.breadcrumb li { color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.breadcrumb li::after { content: '/'; color: #ccc; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* Main layout */
main { display: block; width: 100%; min-height: 600px; }

/* Hero */
.hero { padding: 120px 0 80px; text-align: center; background: radial-gradient(circle at top right, #e3f2fd 0%, #ffffff 70%); }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; color: var(--dark); letter-spacing: -0.02em; }
.hero h1 strong { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 40px; }
.hero-small { padding: 80px 0 40px; text-align: left; }
.hero-small h1 { font-size: 2.8rem; margin-bottom: 15px; }
.hero-small p { margin: 0 0 30px; font-size: 1.1rem; }

/* Widget Wrapper */
.widget-wrapper { margin: -40px 0 80px; position: relative; z-index: 10; width: 100%; }
.widget-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
}
.widget-card h2 { font-size: 2rem; color: var(--dark); margin-bottom: 30px; }

/* Grids & Cards */
.section-title { font-size: 2.2rem; color: var(--dark); margin-bottom: 40px; text-align: center; }
.data-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    margin: 40px 0; 
    width: 100%;
}
.card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.3s ease;
    min-height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.card h3 { color: var(--dark); font-size: 1.4rem; line-height: 1.3; margin: 0; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.link-arrow { color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-top: auto; }

/* Simulator */
.simulator-card {
    background: #f8fbfe;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e1e8f0;
    margin: 60px 0;
}
.sim-group { margin-bottom: 25px; }
.sim-group label { display: block; margin-bottom: 12px; font-weight: 600; color: var(--dark); }
input[type="range"] { width: 100%; height: 6px; background: #e0e0e0; border-radius: 5px; appearance: none; outline: none; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; background: var(--primary); border-radius: 50%; cursor: pointer; border: 3px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.sim-result { background: var(--white); padding: 30px; border-radius: 16px; margin-top: 30px; text-align: center; border: 2px solid var(--secondary); }
.sim-result h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 10px; }
.sim-price { color: var(--primary); font-size: 3rem; font-weight: 800; display: block; }

/* FAQ */
.faq-section { margin: 80px 0; }
.faq-item { background: var(--white); border-radius: 12px; border: 1px solid #eee; margin-bottom: 15px; overflow: hidden; width: 100%; }
.faq-question { width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font-size: 1.1rem; font-weight: 700; color: var(--dark); text-align: left; cursor: pointer; transition: 0.2s; }
.faq-question:hover { background: #fafafa; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 25px; }
.faq-item.active i { transform: rotate(180deg); }

/* Testimonials */
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin: 40px 0; 
}
.testimonial-card { background: #fff; padding: 35px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid #f8f9fa; }
.stars { color: #FFB703; margin-bottom: 15px; display: flex; gap: 4px; }
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 20px; font-size: 1rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--dark); font-size: 1.1rem; }
.author-info h4 { font-size: 1rem; color: var(--dark); margin-bottom: 2px; }
.author-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Data Box */
.data-box {
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
    color: white;
    padding: 40px;
    border-radius: 24px;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.data-item h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; margin-bottom: 10px; }
.data-item .value { font-size: 2rem; font-weight: 800; display: block; }

/* Footer */
.main-footer {
    background: #011627;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 100px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { color: #fff; margin-bottom: 25px; }
.footer-brand p { color: #94a3b8; max-width: 400px; line-height: 1.8; }
.footer-links h4, .footer-legal h4 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; }
.footer-links ul li, .footer-legal ul li { margin-bottom: 12px; }
.footer-links ul li a, .footer-legal ul li a { color: #94a3b8; font-size: 0.95rem; transition: 0.2s; }
.footer-links ul li a:hover, .footer-legal ul li a:hover { color: var(--secondary); padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* Utilities */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

.cta-banner {
    background: var(--dark);
    color: white;
    padding: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 10px; color: white; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3rem; }
    .hero-small h1 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
    .hero h1 { font-size: 2.8rem; }
    .cta-banner h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .mobile-hide { display: none; }
    .hero { padding: 80px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .hero-small { text-align: center; }
    .cta-banner { flex-direction: column; text-align: center; padding: 40px; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { grid-column: span 1; }
    .desktop-nav { display: none; }
    .widget-card { padding: 30px 20px; }
    .section-title { font-size: 1.8rem; }
    .data-grid { grid-template-columns: 1fr; }
    .data-box { grid-template-columns: 1fr; }
    body { padding-bottom: 80px; }
    .mobile-sticky-bar { display: flex; }
}

/* Mobile Sticky CTA */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 3000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.mobile-sticky-bar a {
    flex: 1;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

/* === Mobile UX base (responsive audit 2026-05-05) === */
@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }
    a.btn, button, .btn, input[type=submit], input[type=button] {
        min-height: 48px;
    }
    input, textarea, select {
        font-size: 16px;
    }
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}


/* === RESPONSIVE-MOBILE-PATCH v1 — 2026-05-12 (v3 spec-boost) ===
   Master mobile-first patch for the 100+ aprod-* portfolio.
   v3 : selectors prefixed with body/html body to win cascade against
   inline <style> blocks (vitrier-urgence, serrurier-flash, etc.).
   Rollback : strip the block between markers.
   Targets : tap targets 44px, hero compact, form above-fold, no iOS zoom,
             no horizontal scroll, fluid imgs, single-column cards,
             readable RGPD banner. !important used to override theme CSS.
   ============================================================ */

/* --- Universal safety (all viewports) --- */
img, video, iframe { max-width: 100%; height: auto; }
*, *::before, *::after { box-sizing: border-box; }

/* --- A11y color-contrast overrides for known portfolio inline colors ---
   Each inline `style="color:#xxx"` from helpers (temoignages, cro_pack) failed
   WCAG 4.5:1 ratio on white/light bg. CSS overrides via attribute selectors win
   because inline colors are NOT !important — our !important beats them.
   ============================================================ */
[style*="color:#f59e0b"] { color: #b45309 !important; } /* amber → darker amber 5.21:1 */
[style*="color: #f59e0b"] { color: #b45309 !important; }
[style*="color:#f6b952"] { color: #b45309 !important; } /* yellow → darker amber */
[style*="color: #f6b952"] { color: #b45309 !important; }
[style*="color:#cba3a3"] { color: #7f1d1d !important; } /* pink → dark red 8.5:1 */
[style*="color: #cba3a3"] { color: #7f1d1d !important; }
[style*="color:#9ca3af"] { color: #4b5563 !important; } /* light gray → medium gray 7.56:1 */
[style*="color: #9ca3af"] { color: #4b5563 !important; }
[style*="color:#6b7280"] { color: #374151 !important; } /* medium gray → darker 11.6:1 */
[style*="color: #6b7280"] { color: #374151 !important; }
[style*="color:#d1d5db"] { color: #4b5563 !important; } /* lighter gray → medium */
[style*="color:#e5e7eb"] { color: #4b5563 !important; } /* very light gray */
/* btn-urgent : pink on yellow disaster fix */
.btn-urgent, a.btn-urgent { color: #fff !important; background: #dc2626 !important; }
/* small star/rating amber on near-white bg */
.temoignages-block [style*="color:#f59e0b"],
.temoignages-block [style*="color: #f59e0b"] { color: #b45309 !important; }

/* --- Mobile (<= 767px) --- */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }

  /* Typography & spacing */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  section { padding: 28px 0 !important; }
  section h2, h2 { font-size: 1.45rem !important; line-height: 1.25 !important; margin: 0 0 14px !important; }
  h3 { font-size: 1.1rem !important; }
  p, li { font-size: .95rem; line-height: 1.55; }

  /* Hero compact (push form above the fold on most pages) */
  .hero, .hero-section, [class*="hero-"] { padding: 22px 0 18px !important; }
  /* h1 + Bootstrap display-* classes (override BS .display-1..6 responsive sizing) */
  .hero h1, h1,
  h1.display-1, h1.display-2, h1.display-3, h1.display-4, h1.display-5, h1.display-6,
  .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
    margin: 0 0 10px !important;
    font-weight: 800 !important;
  }
  .hero p, .hero .subtitle, .hero-subtitle, p.lead, .lead { font-size: .95rem !important; line-height: 1.5 !important; margin: 0 auto 14px !important; max-width: 100% !important; }
  .badge-pill, .hero .badge, .badge { font-size: .75rem !important; padding: 4px 12px !important; margin-bottom: 12px !important; }

  /* Bootstrap container & spacing tightening on mobile */
  .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
    padding-left: 14px !important; padding-right: 14px !important;
  }
  .py-5, [class*="py-"] { padding-top: 28px !important; padding-bottom: 28px !important; }
  .my-5, [class*="my-"] { margin-top: 20px !important; margin-bottom: 20px !important; }
  .mt-5, .mt-4 { margin-top: 16px !important; }
  .mb-5, .mb-4 { margin-bottom: 16px !important; }

  /* Bootstrap row/col stacking (defensive) */
  .row > [class^="col-"], .row > [class*=" col-"] { margin-bottom: 10px; }

  /* Header / nav */
  header { padding: 10px 0 !important; }
  header nav { flex-wrap: wrap; gap: 8px !important; }
  header nav a, header nav .logo {
    padding: 10px 8px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
  }
  header .logo { font-size: 1.1rem !important; padding-left: 0 !important; }

  /* Buttons & CTAs : enforce 44px tap target */
  .btn-cta, .btn, button, input[type="submit"], input[type="button"], [role="button"], a.btn {
    min-height: 44px !important;
    padding: 12px 18px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-cta { padding: 14px 22px !important; font-weight: 700 !important; }
  a.read-more, a.lire-suite, a[class*="text-decoration"] { min-height: 40px; padding: 8px 4px; display: inline-block; }

  /* Forms : 16px font (no iOS zoom) + 44px controls */
  input, textarea, select, button { font-size: 16px !important; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  textarea, select {
    min-height: 44px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box !important;
  }
  label { font-size: .9rem; }
  form { max-width: 100% !important; }

  /* Card grids : stack 1 col */
  .cards-grid, .grid, .row-cards, [class*="cards-"] { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card { padding: 18px !important; }
  .card h3 { font-size: 1.1rem !important; margin: 0 0 8px !important; }

  /* Footer */
  footer { padding: 32px 0 16px !important; margin-top: 24px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* RGPD banner safety (don't cover form/CTA) */
  .rgpd-banner, .cookie-banner, [class*="cookie"] {
    bottom: 12px !important; left: 12px !important; right: 12px !important;
    max-width: calc(100vw - 24px) !important; font-size: .85rem;
  }

  /* MediaBuyer / VUD banner : keep responsive */
  .vud-banner-autopromo img, .mb-banner img, .autopromo img { max-width: 100% !important; height: auto !important; }
  .mb-urgent-banner {
    margin: 14px 12px !important;
    padding: 12px 14px !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 10px !important;
  }
  .mb-urgent-banner > div:nth-child(2) { font-size: .95rem !important; }
  .mb-urgent-banner > div:nth-child(3) { font-size: .8rem !important; }
  .mb-urgent-banner a {
    display: inline-block !important;
    min-height: 36px !important;
    padding: 6px 4px !important;
    line-height: 1.4 !important;
  }

  /* Real artisans cards SIRENE (.real-artisans-block / .ra-grid / .ra-card) */
  .real-artisans-block { margin: 24px 8px !important; padding: 18px 12px !important; border-radius: 10px !important; }
  .real-artisans-block h2 { font-size: 1.15rem !important; margin: 0 0 4px !important; line-height: 1.3 !important; }
  .real-artisans-block .ra-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .real-artisans-block .ra-card { padding: 14px !important; }
  .real-artisans-block .ra-card h3 { font-size: .95rem !important; line-height: 1.3 !important; }
  .real-artisans-block .ra-card a { min-height: 40px !important; padding: 8px 10px !important; }
  /* Legacy selectors keep working */
  .real-artisans, .ra-cards, [class*="artisan-card"]:not(.ra-card) { display: flex !important; flex-direction: column !important; gap: 10px !important; }

  /* Sticky bottom CTA bar (helper sticky-cta.php) */
  .sticky-cta-bar { z-index: 9999; }
  .sticky-cta-btn { min-height: 56px !important; padding: 14px 8px !important; font-size: .92rem !important; }
  /* Ensure form/page bottom isn't covered by sticky CTA */
  body:has(.sticky-cta-bar) { padding-bottom: 76px !important; }

  /* Tables : scrollable */
  table { display: block; overflow-x: auto; max-width: 100%; }

  /* Touch-friendly spacing for footer / inline links */
  footer a, .footer-links a { padding: 6px 4px; display: inline-block; min-height: 32px; }
}

/* --- Small mobile (<= 380px iPhone SE / Pixel 3a) --- */
@media (max-width: 380px) {
  .hero h1, h1 { font-size: 1.4rem !important; }
  .btn-cta { padding: 12px 16px !important; font-size: .95rem !important; }
  .container { padding-left: 10px !important; padding-right: 10px !important; }
}

/* --- Reduced motion respect --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Print safety (don't break print layout) --- */
@media print {
  header, footer, .rgpd-banner, .cookie-banner, .vud-banner-autopromo { display: none !important; }
}
/* === RESPONSIVE-MOBILE-PATCH-END === */
