/*
Theme Name: LeBonDevis
Theme URI: https://lebondevis.com/
Author: lebondevis.com
Description: Thème WordPress pour lebondevis.com — intégration du widget ViteUnDevis (viteundevis.com) et section blog intégrée. Design responsive, optimisé SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lebondevis
*/

:root{
  --lbd-primary:#0d8de3;
  --lbd-primary-dark:#0a6db3;
  --lbd-accent:#1aa7f0;
  --lbd-text:#2b3440;
  --lbd-muted:#6b7683;
  --lbd-light:#f4f8fb;
  --lbd-border:#e2e9f0;
  --lbd-radius:12px;
  --lbd-shadow:0 6px 24px rgba(13,141,227,.12);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:var(--lbd-text);line-height:1.6;background:#fff}
img{max-width:100%;height:auto}
a{color:var(--lbd-primary);text-decoration:none}
a:hover{color:var(--lbd-primary-dark)}
.container{width:min(1140px,92%);margin:0 auto}

/* ===== Header ===== */
.lbd-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.07)}
.lbd-header .container{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:1rem}
.lbd-logo{font-size:1.4rem;font-weight:800;color:var(--lbd-text)}
.lbd-logo span{color:var(--lbd-primary)}
.lbd-logo img{max-height:46px;width:auto}
.lbd-nav ul{display:flex;gap:1.6rem;list-style:none;margin:0;padding:0}
.lbd-nav a{font-weight:600;color:var(--lbd-text);font-size:.98rem}
.lbd-nav a:hover{color:var(--lbd-primary)}
.lbd-nav .current-menu-item>a{color:var(--lbd-primary)}
.lbd-cta{display:inline-block;background:var(--lbd-primary);color:#fff!important;padding:.6rem 1.3rem;border-radius:50px;font-weight:700;transition:background .2s}
.lbd-cta:hover{background:var(--lbd-primary-dark)}
.lbd-burger{display:none;background:none;border:0;cursor:pointer;padding:.5rem}
.lbd-burger span{display:block;width:26px;height:3px;background:var(--lbd-text);margin:5px 0;border-radius:2px}

/* ===== Hero ===== */
.lbd-hero{position:relative;min-height:520px;display:flex;align-items:center;color:#fff;
  background:linear-gradient(rgba(8,42,70,.62),rgba(8,42,70,.62)),var(--lbd-hero-bg,linear-gradient(135deg,#0a6db3,#0d8de3));
  background-size:cover;background-position:center}
.lbd-hero h1{font-size:clamp(1.7rem,4vw,2.8rem);line-height:1.25;margin:0 0 1rem;font-weight:800}
.lbd-hero p{font-size:clamp(1rem,2vw,1.25rem);margin:0 0 1.8rem;max-width:640px}
.lbd-hero .lbd-cta{font-size:1.05rem;padding:.85rem 2rem}

/* ===== Sections ===== */
.lbd-section{padding:72px 0}
.lbd-section--alt{background:var(--lbd-light)}
.lbd-section-title{text-align:center;font-size:clamp(1.5rem,3vw,2.1rem);margin:0 0 .5rem;font-weight:800}
.lbd-section-sub{text-align:center;color:var(--lbd-muted);margin:0 auto 3rem;max-width:640px}

/* ===== Steps ===== */
.lbd-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.lbd-step{background:#fff;border:1px solid var(--lbd-border);border-radius:var(--lbd-radius);padding:2.2rem 1.6rem;text-align:center;box-shadow:var(--lbd-shadow)}
.lbd-step-icon{width:88px;height:88px;border-radius:50%;background:var(--lbd-primary);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 1.2rem}
.lbd-step-icon svg{width:44px;height:44px}
.lbd-step h3{margin:0 0 .5rem;font-size:1.15rem}
.lbd-step p{margin:0;color:var(--lbd-muted);font-size:.95rem}

/* ===== Widget devis ===== */
.lbd-widget-wrap{background:#fff;border:1px solid var(--lbd-border);border-radius:var(--lbd-radius);box-shadow:var(--lbd-shadow);padding:2rem;max-width:860px;margin:0 auto}

/* ===== Blog cards ===== */
.lbd-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.lbd-card{background:#fff;border:1px solid var(--lbd-border);border-radius:var(--lbd-radius);overflow:hidden;box-shadow:var(--lbd-shadow);display:flex;flex-direction:column;transition:transform .2s}
.lbd-card:hover{transform:translateY(-4px)}
.lbd-card-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--lbd-light)}
.lbd-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.lbd-card:hover .lbd-card-thumb img{transform:scale(1.05)}
.lbd-card-body{padding:1.4rem;display:flex;flex-direction:column;flex:1}
.lbd-card-cat{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--lbd-primary)}
.lbd-card-title{font-size:1.1rem;margin:.4rem 0 .6rem;line-height:1.35}
.lbd-card-title a{color:var(--lbd-text)}
.lbd-card-title a:hover{color:var(--lbd-primary)}
.lbd-card-excerpt{color:var(--lbd-muted);font-size:.93rem;flex:1}
.lbd-card-meta{margin-top:1rem;font-size:.82rem;color:var(--lbd-muted)}

/* ===== Archive / listing ===== */
.lbd-page-header{background:var(--lbd-light);padding:56px 0;border-bottom:1px solid var(--lbd-border)}
.lbd-page-header h1{margin:0;font-size:clamp(1.6rem,3vw,2.2rem)}
.lbd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin:3rem 0}
.lbd-pagination{margin:2rem 0 4rem;text-align:center}
.lbd-pagination .page-numbers{display:inline-block;padding:.5rem .95rem;border:1px solid var(--lbd-border);border-radius:8px;margin:0 .2rem;color:var(--lbd-text)}
.lbd-pagination .page-numbers.current{background:var(--lbd-primary);color:#fff;border-color:var(--lbd-primary)}

/* ===== Single article ===== */
.lbd-single{max-width:780px;margin:0 auto;padding:48px 0 72px}
.lbd-single h1{font-size:clamp(1.6rem,3.5vw,2.3rem);line-height:1.3;margin:.6rem 0 1rem}
.lbd-single-meta{color:var(--lbd-muted);font-size:.9rem;margin-bottom:1.6rem}
.lbd-single-content{font-size:1.05rem}
.lbd-single-content h2{margin-top:2.2rem}
.lbd-single-content img{border-radius:var(--lbd-radius)}
.lbd-back{display:inline-block;margin-bottom:1.4rem;font-weight:600}
.lbd-article-cta{margin:3rem 0 0;background:var(--lbd-light);border-left:4px solid var(--lbd-primary);border-radius:0 var(--lbd-radius) var(--lbd-radius) 0;padding:1.6rem 2rem}
.lbd-article-cta h3{margin:0 0 .4rem}

/* ===== Footer ===== */
.lbd-footer{background:#0b2337;color:#c7d5e2;padding:52px 0 24px;margin-top:0}
.lbd-footer a{color:#c7d5e2}
.lbd-footer a:hover{color:#fff}
.lbd-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem}
.lbd-footer h4{color:#fff;margin:0 0 1rem;font-size:1.05rem}
.lbd-footer ul{list-style:none;margin:0;padding:0}
.lbd-footer ul li{margin:.45rem 0}
.lbd-footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:2.5rem;padding-top:1.4rem;text-align:center;font-size:.85rem;color:#8fa4b5}

/* ===== Responsive ===== */
@media (max-width:900px){
  .lbd-steps,.lbd-posts,.lbd-grid{grid-template-columns:repeat(2,1fr)}
  .lbd-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .lbd-steps,.lbd-posts,.lbd-grid,.lbd-footer-grid{grid-template-columns:1fr}
  .lbd-nav{position:absolute;top:68px;left:0;right:0;background:#fff;display:none;box-shadow:0 10px 20px rgba(0,0,0,.1)}
  .lbd-nav.open{display:block}
  .lbd-nav ul{flex-direction:column;padding:1rem 4%}
  .lbd-burger{display:block}
  .lbd-header .lbd-cta{display:none}
}
