/* ═══════════════════════════════════════════════
   pages.css — Styles partagés blog.php / demo.php
   ═══════════════════════════════════════════════ */

/* ── Page hero générique ── */
.page-hero{background:linear-gradient(135deg,#0d1b4b 0%,#1565c0 60%,#00b89c 100%);padding:3.5rem 1.5rem 3rem;text-align:center;color:#fff;}
.page-hero-badge{display:inline-block;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:.35rem 1.1rem;font-size:.78rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-bottom:1rem;}
.page-hero h1{font-family:'Montserrat',sans-serif;font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:900;line-height:1.25;margin-bottom:.75rem;}
.page-hero h1 span{color:#00e5b0;}
.page-hero p{font-size:1rem;opacity:.88;max-width:600px;margin:0 auto;line-height:1.7;}

/* ── Container pages internes ── */
.page-container{max-width:1060px;margin:3rem auto;padding:0 1.5rem 4rem;}

/* ══════════════════
   BLOG
══════════════════ */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1.75rem;margin-bottom:3rem;}
.blog-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.07);border:1px solid #e8ecf0;transition:box-shadow .2s,transform .2s;text-decoration:none;color:inherit;display:flex;flex-direction:column;}
.blog-card:hover{box-shadow:0 8px 32px rgba(0,0,0,.12);transform:translateY(-3px);}
.blog-card-top{background:linear-gradient(135deg,#1565c0,#00b89c);padding:2rem;text-align:center;font-size:3rem;}
.blog-card-body{padding:1.5rem;flex:1;display:flex;flex-direction:column;gap:.75rem;}
.blog-tag{display:inline-block;background:#e3ecfa;color:#1565c0;font-size:.75rem;font-weight:700;padding:.25rem .75rem;border-radius:999px;}
.blog-card-title{font-family:'Montserrat',sans-serif;font-size:1rem;font-weight:800;color:#1a2340;line-height:1.4;}
.blog-card-intro{font-size:.87rem;color:#666;line-height:1.6;flex:1;}
.blog-card-footer{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:#aaa;margin-top:.5rem;}
.blog-read-more{color:#1565c0;font-weight:700;font-size:.85rem;}

/* ── Article detail ── */
.article-back{display:inline-flex;align-items:center;gap:.5rem;color:#1565c0;font-weight:700;font-size:.9rem;text-decoration:none;margin-bottom:2rem;padding:.5rem 1rem;background:#e3ecfa;border-radius:8px;transition:background .2s;}
.article-back:hover{background:#d0e4f7;}
.article-header{margin-bottom:2.5rem;}
.article-tag{display:inline-block;background:#e3ecfa;color:#1565c0;font-size:.8rem;font-weight:700;padding:.3rem .9rem;border-radius:999px;margin-bottom:1rem;}
.article-title{font-family:'Montserrat',sans-serif;font-size:clamp(1.5rem,3vw,2rem);font-weight:900;color:#1a2340;line-height:1.3;margin-bottom:.75rem;}
.article-date{font-size:.82rem;color:#aaa;}
.article-intro{font-size:1.05rem;color:#444;line-height:1.75;padding:1.25rem 1.5rem;background:#fff;border-left:4px solid #1565c0;border-radius:0 10px 10px 0;margin-bottom:2rem;box-shadow:0 2px 8px rgba(0,0,0,.05);}
.article-section{margin-bottom:2rem;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px rgba(0,0,0,.05);}
.article-section h2{font-family:'Montserrat',sans-serif;font-size:1.1rem;font-weight:800;color:#1565c0;margin-bottom:.75rem;display:flex;align-items:center;gap:.6rem;}
.article-section h2::before{content:'';display:inline-block;width:4px;height:1rem;background:linear-gradient(#1565c0,#00b89c);border-radius:2px;flex-shrink:0;}
.article-section p{font-size:.97rem;color:#444;line-height:1.8;}
.article-cta-box{background:#fff;border:2px solid #1565c0;border-radius:16px;padding:1.5rem;margin:2.5rem 0;text-align:center;}
.article-cta-box h3{font-family:'Montserrat',sans-serif;font-size:1rem;font-weight:800;color:#1a2340;margin-bottom:.5rem;}
.article-cta-box p{font-size:.85rem;color:#666;margin-bottom:1rem;}
.article-cta-box a{display:inline-block;background:linear-gradient(135deg,#1565c0,#00b89c);color:#fff;font-weight:700;padding:.65rem 1.5rem;border-radius:8px;text-decoration:none;font-size:.9rem;}
.article-conclusion{background:linear-gradient(135deg,#0d1b4b,#1565c0);color:#fff;border-radius:16px;padding:2rem;margin-top:3rem;text-align:center;}
.article-conclusion p{font-size:1rem;line-height:1.7;opacity:.9;margin-bottom:1.25rem;}
.article-conclusion a{display:inline-block;background:#fff;color:#1565c0;font-weight:800;padding:.75rem 2rem;border-radius:8px;text-decoration:none;font-family:'Montserrat',sans-serif;}
.article-conclusion a:hover{background:#00e5b0;}
.article-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1.25rem;}

/* ══════════════════
   DEMO PAGE
══════════════════ */
.demo-main{max-width:1100px;margin:0 auto;padding:3rem 1.5rem;display:grid;grid-template-columns:1fr 420px;gap:3rem;align-items:start;}
@media(max-width:820px){.demo-main{grid-template-columns:1fr;}}
.demo-features h2{font-family:'Montserrat',sans-serif;font-size:1.5rem;font-weight:800;color:#1a2340;margin-bottom:.5rem;}
.demo-features p{color:#555;margin-bottom:2rem;line-height:1.6;}
.feature-list{display:flex;flex-direction:column;gap:1rem;margin-bottom:2.5rem;}
.feature-item{display:flex;align-items:flex-start;gap:1rem;background:#fff;border-radius:12px;padding:1.1rem 1.25rem;box-shadow:0 2px 8px rgba(0,0,0,.06);border-left:4px solid #1565c0;transition:box-shadow .2s;}
.feature-item:hover{box-shadow:0 4px 16px rgba(0,0,0,.1);}
.feature-icon{font-size:1.8rem;flex-shrink:0;width:44px;text-align:center;}
.feature-text strong{display:block;font-weight:700;color:#1a2340;margin-bottom:.2rem;}
.feature-text span{font-size:.88rem;color:#666;line-height:1.5;}
.demo-testi h3{font-family:'Montserrat',sans-serif;font-size:1.1rem;font-weight:800;margin-bottom:1rem;color:#1a2340;}
.testi-mini{background:#fff;border-radius:12px;padding:1.1rem 1.25rem;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:.9rem;border-left:4px solid #00b89c;}
.testi-mini p{font-size:.88rem;color:#444;font-style:italic;line-height:1.55;margin-bottom:.6rem;}
.testi-mini-author{font-size:.8rem;font-weight:700;color:#1565c0;}

/* ── Formulaire démo ── */
.demo-form-card{background:#fff;border-radius:20px;padding:2rem 1.75rem;box-shadow:0 8px 40px rgba(21,101,192,.15);border:2px solid #e8ecf0;position:sticky;top:90px;}
.demo-form-title{font-family:'Montserrat',sans-serif;font-size:1.3rem;font-weight:900;color:#1a2340;margin-bottom:.3rem;}
.demo-form-sub{font-size:.85rem;color:#888;margin-bottom:1.5rem;line-height:1.5;}
.demo-form-sub strong{color:#e53935;}
.form-group{margin-bottom:1rem;}
.form-group label{display:block;font-size:.82rem;font-weight:700;color:#444;margin-bottom:.35rem;}
.form-group input,.form-group select{width:100%;padding:.7rem .9rem;border:1.5px solid #dde1e9;border-radius:8px;font-size:.95rem;font-family:inherit;transition:border-color .2s;background:#fafbfc;}
.form-group input:focus,.form-group select:focus{outline:none;border-color:#1565c0;background:#fff;}
.demo-submit{width:100%;padding:1rem;background:linear-gradient(135deg,#1565c0,#00b89c);color:#fff;border:none;border-radius:10px;font-size:1.05rem;font-weight:800;font-family:'Montserrat',sans-serif;cursor:pointer;transition:opacity .2s,transform .1s;margin-top:.5rem;}
.demo-submit:hover{opacity:.92;transform:translateY(-1px);}
.form-guarantee{display:flex;align-items:center;gap:.5rem;font-size:.78rem;color:#888;margin-top:.75rem;text-align:center;justify-content:center;}
.alert-success{background:#e8f5e9;border:1px solid #a5d6a7;color:#2e7d32;border-radius:8px;padding:.9rem 1rem;font-size:.9rem;margin-bottom:1rem;font-weight:600;}
.alert-error{background:#ffebee;border:1px solid #ef9a9a;color:#c62828;border-radius:8px;padding:.9rem 1rem;font-size:.9rem;margin-bottom:1rem;}

/* ── Hero stats ── */
.page-hero-stats{display:flex;justify-content:center;gap:2.5rem;flex-wrap:wrap;margin-top:2rem;}
.page-hero-stat strong{display:block;font-family:'Montserrat',sans-serif;font-size:2rem;font-weight:900;color:#00e5b0;}
.page-hero-stat span{font-size:.78rem;opacity:.85;text-transform:uppercase;letter-spacing:.5px;}

/* ── Social proof ── */
.proof-bar{background:#fff;border-top:1px solid #e8ecf0;padding:2rem 1.5rem;text-align:center;}
.proof-bar p{font-size:.82rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;margin-bottom:1.25rem;font-weight:600;}
.proof-items{display:flex;justify-content:center;align-items:center;gap:2.5rem;flex-wrap:wrap;}
.proof-item{font-family:'Montserrat',sans-serif;font-weight:800;font-size:.95rem;color:#bbb;}

/* ── CTA band partagé ── */
.cta-band-page{background:linear-gradient(135deg,#0d1b4b,#1565c0);border-radius:20px;padding:2.5rem;text-align:center;color:#fff;margin:2rem 0;}
.cta-band-page h2{font-family:'Montserrat',sans-serif;font-size:1.5rem;font-weight:900;margin-bottom:.75rem;}
.cta-band-page p{opacity:.85;margin-bottom:1.5rem;font-size:.95rem;}
.cta-band-page a{display:inline-block;background:#fff;color:#1565c0;font-weight:800;padding:.85rem 2.5rem;border-radius:10px;text-decoration:none;font-family:'Montserrat',sans-serif;transition:background .2s;}
.cta-band-page a:hover{background:#00e5b0;}
