/* ═══════════════════════════════════════════════════════════════
   GUIDES.CSS — feuille partagée par les guides éditoriaux JamRent
   (guide-louer-guitare, guide-sonoriser-evenement,
    guide-louer-batterie, guide-micros-studio)

   Design system JamRent :
     Nunito (titres 700-900) · Inter (corps 400-600)
     #0077b6 principal · #2ecc71 CTA · #1a2e44 dark · #f8fafc fond
   ═══════════════════════════════════════════════════════════════ */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:#f8fafc;color:#1a2e44;overflow-x:hidden}
h1,h2,h3,h4{font-family:'Nunito',system-ui,sans-serif;font-weight:800}

/* ── Navigation ─────────────────────────────────────────────── */
nav{background:#fff;position:sticky;top:0;z-index:100;border-bottom:1px solid #e5e7eb;box-shadow:0 1px 8px rgba(0,0,0,.06)}
.nav-inner{max-width:1280px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:68px}
.logo{font-family:'Nunito',sans-serif;font-size:1.7rem;font-weight:900;text-decoration:none;display:inline-block;background:linear-gradient(90deg,#1a56db 0%,#0077b6 35%,#00968f 65%,#2ecc71 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.nav-links{display:flex;align-items:center;gap:1.8rem}
.nav-links a{color:#6b7280;text-decoration:none;font-size:.9rem;font-weight:500;transition:color .2s}
.nav-links a:hover{color:#0077b6}
.btn-post{background:#2ecc71;color:#fff!important;padding:.52rem 1.2rem;border-radius:8px;font-weight:700;font-size:.88rem;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;transition:background .2s}
.btn-post:hover{background:#27ae60!important}

/* ── Hero de page ───────────────────────────────────────────── */
.page-hero{background:linear-gradient(135deg,#023e8a 0%,#0077b6 55%,#2ecc71 100%);padding:3.5rem 2rem}
.page-hero-inner{max-width:900px;margin:0 auto}
.breadcrumb{display:flex;align-items:center;gap:.5rem;color:rgba(255,255,255,.55);font-size:.8rem;margin-bottom:.9rem;flex-wrap:wrap}
.breadcrumb a{color:rgba(255,255,255,.55);text-decoration:none}
.breadcrumb a:hover{color:#fff}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:900;color:#fff;line-height:1.2}
.page-hero .lede{color:rgba(255,255,255,.78);margin-top:.7rem;font-size:1rem;line-height:1.6;max-width:62ch}
.hero-meta{margin-top:1.1rem;color:rgba(255,255,255,.6);font-size:.78rem}

/* ── Corps de l'article ─────────────────────────────────────── */
.guide-wrap{max-width:900px;margin:0 auto;padding:2.5rem 2rem 3.5rem}
.guide-body{background:#fff;border-radius:16px;padding:2.4rem 2.6rem;border:1px solid #e5e7eb;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.guide-body h2{font-size:1.4rem;margin:2.4rem 0 .9rem;color:#1a2e44;line-height:1.3}
.guide-body h2:first-child{margin-top:0}
.guide-body h3{font-size:1.08rem;margin:1.6rem 0 .55rem;color:#1a2e44;font-weight:700}
.guide-body p{color:#374151;line-height:1.78;font-size:.95rem;margin-bottom:1rem}
.guide-body ul,.guide-body ol{margin:0 0 1.15rem 1.3rem;color:#374151}
.guide-body li{line-height:1.75;font-size:.95rem;margin-bottom:.5rem}
.guide-body strong{color:#1a2e44;font-weight:600}
.guide-body a{color:#0077b6;text-decoration:underline;text-underline-offset:2px}
.guide-body a:hover{color:#023e8a}

/* Sommaire */
.toc{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:1.3rem 1.5rem;margin-bottom:2.2rem}
.toc h2{font-size:.82rem!important;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin:0 0 .7rem!important}
.toc ol{margin:0 0 0 1.15rem}
.toc li{margin-bottom:.35rem;font-size:.9rem}
.toc a{color:#0077b6;text-decoration:none}
.toc a:hover{text-decoration:underline}

/* Encadré conseil */
.tip{background:#dbeafe;border-left:3px solid #0077b6;border-radius:8px;padding:.95rem 1.2rem;margin:1.3rem 0;font-size:.9rem;color:#1e40af;line-height:1.7}
.tip strong{color:#1e3a8a}
/* Encadré vigilance */
.warn{background:#fef3c7;border-left:3px solid #f59e0b;border-radius:8px;padding:.95rem 1.2rem;margin:1.3rem 0;font-size:.9rem;color:#92400e;line-height:1.7}
.warn strong{color:#78350f}

/* Tableau de repères */
.table-wrap{overflow-x:auto;margin:1.3rem 0;-webkit-overflow-scrolling:touch}
.guide-body table{border-collapse:collapse;width:100%;min-width:460px;font-size:.88rem}
.guide-body th,.guide-body td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid #e5e7eb}
.guide-body th{background:#f8fafc;font-family:'Nunito',sans-serif;font-weight:800;color:#1a2e44;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}
.guide-body td{color:#374151}
.guide-body caption{caption-side:bottom;text-align:left;font-size:.78rem;color:#9ca3af;padding-top:.6rem;line-height:1.5}

/* Checklist */
.checklist{list-style:none;margin-left:0!important}
.checklist li{padding-left:1.7rem;position:relative}
.checklist li::before{content:"✓";position:absolute;left:0;top:0;color:#2ecc71;font-weight:800}

/* CTA de fin */
.cta-box{background:#f1f5f9;border:2px solid #e5e7eb;border-radius:14px;padding:1.9rem;text-align:center;margin-top:2.6rem}
.cta-box h2{font-size:1.25rem!important;margin:0 0 .45rem!important}
.cta-box p{color:#6b7280;margin-bottom:1.3rem;font-size:.92rem}
.cta-btns{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}
.btn-primary{display:inline-block;background:#0077b6;color:#fff;padding:.75rem 1.6rem;border-radius:8px;font-family:'Nunito',sans-serif;font-weight:700;text-decoration:none;font-size:.9rem;transition:background .2s}
.btn-primary:hover{background:#0096c7}
.btn-green{display:inline-block;background:#2ecc71;color:#fff;padding:.75rem 1.6rem;border-radius:8px;font-family:'Nunito',sans-serif;font-weight:700;text-decoration:none;font-size:.9rem;transition:background .2s}
.btn-green:hover{background:#27ae60}

/* Guides liés */
.related{margin-top:2.4rem}
.related h2{font-size:1.15rem;margin-bottom:1rem}
.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.9rem}
.related-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.1rem 1.2rem;text-decoration:none;color:inherit;transition:all .2s;display:block}
.related-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.08);border-color:#0077b6}
.related-card strong{display:block;font-family:'Nunito',sans-serif;font-size:.93rem;color:#1a2e44;margin-bottom:.25rem}
.related-card span{font-size:.82rem;color:#6b7280;line-height:1.5}

/* ── Footer ─────────────────────────────────────────────────── */
footer{background:linear-gradient(160deg,#011e3a 0%,#023070 50%,#0a3d2e 100%);padding:4rem 2rem 2rem}
.footer-inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:2rem;margin-bottom:2.5rem}
.footer-logo{font-family:'Nunito',sans-serif;font-size:1.55rem;font-weight:900;text-decoration:none;display:inline-block;background:linear-gradient(90deg,#74b0ff 0%,#5ce4d4 50%,#55efc4 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.8rem}
.footer-desc{color:rgba(255,255,255,.4);font-size:.83rem;line-height:1.6}
footer h2{color:#fff;font-family:'Nunito',sans-serif;font-size:.93rem;margin-bottom:.9rem;font-weight:700}
footer ul{list-style:none}
footer ul li{margin-bottom:.55rem}
footer ul li a{color:rgba(255,255,255,.4);text-decoration:none;font-size:.83rem;transition:color .2s}
footer ul li a:hover{color:#fff}
.footer-social{display:flex;gap:.7rem;margin-bottom:1.1rem}
.footer-social a{width:36px;height:36px;background:rgba(255,255,255,.08);border-radius:8px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.45);text-decoration:none;transition:all .2s}
.footer-social a:hover{background:#0077b6;color:#fff}
.footer-bottom{max-width:1280px;margin:0 auto;border-top:1px solid rgba(255,255,255,.08);padding-top:1.4rem;text-align:center;color:rgba(255,255,255,.22);font-size:.76rem}
.footer-bottom a{color:rgba(255,255,255,.3);text-decoration:none}

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:1024px){.footer-inner{grid-template-columns:1fr 1fr}}
@media(max-width:768px){
  .footer-inner{grid-template-columns:1fr}
  .nav-inner{padding:0 1.1rem}
  .nav-links{gap:.8rem}
  .page-hero{padding:2.4rem 1.1rem}
  .guide-wrap{padding:1.6rem 1.1rem 2.5rem}
  .guide-body{padding:1.5rem 1.3rem;border-radius:13px}
  .guide-body h2{font-size:1.22rem}
  footer{padding:2.6rem 1.1rem 1.6rem}
}
@media(max-width:420px){
  .logo{font-size:1.45rem}
  .cta-btns{flex-direction:column}
  .cta-btns a{width:100%}
}
