/* ==========================================================================
   blog.css — Feuille de style du blog Quentin Dulout Courtage
   Copie stricte du CSS inline de index.html (mêmes variables, mêmes polices,
   même palette, même header/footer), complétée en fin de fichier par les
   styles propres au blog (liste d'articles, corps d'article, FAQ, fil d'Ariane).
   Aucun style existant n'est modifié : les ajouts sont additifs.
   ========================================================================== */

:root{
  --bg:#f7fbff; --surface:#ffffff; --ink:#0b1623; --muted:#455468; --muted2:#6b7a90;
  --line:rgba(11,22,35,.10);
  --brand:#0e3a5a; --brand2:#0b2d45; --accent:#c7f255; --btnInk:#ffffff;
  --headerBg:rgba(255,255,255,.86); --panelBg:rgba(255,255,255,.92);
  --shadow:0 18px 45px rgba(15, 35, 55, .10);
  --shadow2:0 10px 24px rgba(15, 35, 55, .10);
  --radius:16px; --radius2:22px; --max:1120px;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --focus: 0 0 0 3px rgba(199,242,85,.45), 0 0 0 6px rgba(14,58,90,.18);
}

body[data-theme="pro"]{
  --bg:#0b1220; --surface:#0f1b2c; --ink:#eef4ff; --muted:#c8d6ea; --muted2:#9fb2cc;
  --line:rgba(255,255,255,.12);
  --brand:#c7f255; --brand2:#b9ea5a; --accent:#c7f255; --btnInk:#0b1623;
  --headerBg:rgba(10,16,26,.72); --panelBg:rgba(10,16,26,.86);
  --shadow:0 18px 45px rgba(0, 0, 0, .32);
  --shadow2:0 10px 24px rgba(0, 0, 0, .28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--ink);background:linear-gradient(180deg, rgba(245,251,255,1), rgba(255,255,255,1) 55%, rgba(247,251,255,1))}
body[data-theme="pro"]{background:radial-gradient(1100px 640px at 20% 0%, rgba(199,242,85,.10), transparent 60%), radial-gradient(1000px 700px at 80% 10%, rgba(14,58,90,.18), transparent 60%), linear-gradient(180deg, #070c16, #0b1220 65%, #070c16)}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 18px}

/* Header */
.header{position:sticky;top:0;z-index:50;background:var(--headerBg);backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px);border-bottom:1px solid var(--line)}
.headerInner{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:84px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;flex:1 1 auto}
.brandText{min-width:0}
.brandLine{display:flex;align-items:center;gap:10px;min-width:0}
.brandLogo{width:34px;height:34px;border-radius:10px;object-fit:contain;background:#fff;padding:3px;border:1px solid rgba(11,22,35,.10);flex:0 0 auto}
body[data-theme="pro"] .brandLogo{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.06)}
.mark{width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,var(--accent), rgba(199,242,85,.25));display:grid;place-items:center;box-shadow:0 10px 22px rgba(14,58,90,.12);flex:0 0 auto}
body[data-theme="pro"] .mark{box-shadow:0 12px 24px rgba(0,0,0,.28)}
.mark svg{width:18px;height:18px}
.brandName{font-weight:750;letter-spacing:-.2px;line-height:1.1;white-space:normal}
.brandSub{display:block;font-size:12px;color:var(--muted2);margin-top:2px}

.nav{display:flex;align-items:center;gap:22px}
.nav a{font-size:14px;color:var(--muted);text-decoration:none;position:relative;padding:10px 2px;outline:none}
.nav a:hover{color:var(--ink)}
.nav a.active{color:var(--ink)}
.nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:6px;height:2px;border-radius:999px;background:rgba(14,58,90,.65)}
body[data-theme="pro"] .nav a.active:after{background:rgba(199,242,85,.65)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:14px;padding:12px 16px;font-weight:700;text-decoration:none;transition:transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;cursor:pointer;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btnPrimary{background:var(--brand);color:var(--btnInk);box-shadow:0 12px 28px rgba(14,58,90,.22)}
body[data-theme="pro"] .btnPrimary{box-shadow:0 12px 28px rgba(0,0,0,.26)}
.btnPrimary:hover{background:var(--brand2)}
.btnGhost{background:rgba(14,58,90,.06);border-color:rgba(14,58,90,.12);color:var(--brand)}
body[data-theme="pro"] .btnGhost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:var(--accent)}
.btnGhost:hover{background:rgba(14,58,90,.10)}
body[data-theme="pro"] .btnGhost:hover{background:rgba(255,255,255,.10)}

.burger{display:none;border:1px solid rgba(11,22,35,.14);background:var(--surface);border-radius:14px;padding:10px 12px;cursor:pointer}
.burger span{display:block;width:22px;height:2px;background:rgba(11,22,35,.70);margin:5px 0;border-radius:999px}
body[data-theme="pro"] .burger span{background:rgba(238,244,255,.78)}

.segHeader{display:inline-flex;gap:8px;background:rgba(11,22,35,.04);border:1px solid var(--line);border-radius:999px;padding:6px;align-items:center}
body[data-theme="pro"] .segHeader{background:rgba(255,255,255,.05)}
.segBtn{border:0;background:transparent;padding:10px 14px;border-radius:999px;font-weight:750;cursor:pointer;color:var(--muted);line-height:1;white-space:nowrap}
.segBtn[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow2);border:1px solid var(--line)}
body[data-theme="pro"] .segBtn[aria-pressed="true"]{background:rgba(255,255,255,.08)}
.segFull{display:inline}
.segShort{display:none}
.headerActions{display:flex;align-items:center;gap:12px;flex:0 0 auto}

/* IMPORTANT : cache le menu mobile en desktop */
.mobilePanel{display:none}
.mobilePanel.open{display:block}

@media (max-width:780px){
  .headerInner{min-height:78px}
  .brandLogo{width:30px;height:30px;border-radius:9px;padding:3px}
}

/* Sections */
section{padding:68px 0}
.sectionTitle{font-family:var(--serif);font-size:46px;letter-spacing:-.5px;line-height:1.1;margin:0}
.sectionIntro{color:var(--muted);line-height:1.7;margin:10px auto 0;max-width:72ch}
.center{text-align:center}

h1{font-family:var(--serif);font-weight:800;letter-spacing:-.6px;line-height:1.06;font-size:54px;margin:10px 0 10px}
.lead{font-size:18px;color:var(--muted);line-height:1.6;margin:0 0 18px;max-width:58ch}

.kicker{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.dot{width:8px;height:8px;border-radius:999px;background:rgba(14,58,90,.75)}
body[data-theme="pro"] .dot{background:rgba(199,242,85,.75)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow2)}
.card h3{font-family:var(--serif);margin:0 0 6px;font-size:24px}
.card p{margin:0;color:var(--muted);line-height:1.65}

/* Contact (bandeau sombre, identique au site) */
.contact{background:linear-gradient(180deg, rgba(14,58,90,.94), rgba(11,22,35,.96));color:#fff}
body[data-theme="pro"] .contact{background:linear-gradient(180deg, rgba(10,16,26,.96), rgba(7,12,22,.98))}
.contactGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin-top:28px}
.contactCard{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px}
.contactCard h3{font-family:var(--serif);margin:0 0 10px;font-size:22px}
.contactLine{display:flex;gap:10px;align-items:flex-start;margin:10px 0;color:rgba(255,255,255,.86)}
.contactLine svg{width:18px;height:18px;flex:0 0 auto;opacity:.9;margin-top:2px}
.contactLine a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(199,242,85,.55)}
.contactLine a:hover{border-bottom-color:rgba(199,242,85,.95)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btnLight{background:#fff;color:#0e3a5a;border:1px solid rgba(255,255,255,.18)}
.btnLight:hover{background:rgba(255,255,255,.92)}
.btnOutline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.28)}
.btnOutline:hover{background:rgba(255,255,255,.08)}

/* Footer */
footer{padding:28px 0;border-top:1px solid rgba(255,255,255,.10)}
.foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:rgba(255,255,255,.78)}
.foot a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(199,242,85,.55)}

/* Accessibilité / SEO : contenu présent dans le DOM pour lecteurs d'écran et crawlers,
   masqué visuellement. Technique sr-only. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* Floating WhatsApp */
.waFloat{position:fixed;right:18px;bottom:18px;z-index:60}
.waBtn{width:62px;height:62px;border-radius:999px;display:grid;place-items:center;background:#fff;box-shadow:0 18px 42px rgba(0,0,0,.22);border:2px solid rgba(11,22,35,.10);text-decoration:none}
body[data-theme="pro"] .waBtn{border-color:rgba(255,255,255,.14)}
.waIcon{width:44px;height:44px;object-fit:contain}

/* Reveal */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .7s ease, transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* Focus */
:focus-visible{outline:none;box-shadow:var(--focus);border-radius:14px}

/* Logo overlay dans les cadres d'images */
.imgLogo{position:absolute;right:14px;bottom:14px;z-index:6;pointer-events:none;opacity:.42}
.imgLogo img{width:64px;height:auto;display:block;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.18))}

/* Responsive (identique au site) */
@media (max-width: 980px){
  h1{font-size:44px}
  .contactGrid{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .segHeader{transform:scale(.98)}
  .segBtn{padding:10px 12px}
}
@media (max-width: 760px){
  .nav{display:none}
  .burger{display:inline-block}
  .headerContact{display:none}

  .mobilePanel{display:none;position:absolute;left:0;right:0;top:78px;background:var(--panelBg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
  .mobilePanel.open{display:block}
  .mobilePanel .wrap{padding:12px 18px 16px}
  .mobilePanel a{display:block;padding:12px 10px;border-radius:14px;text-decoration:none;color:var(--muted)}
  .mobilePanel a:hover{background:rgba(11,22,35,.04);color:var(--ink)}
  body[data-theme="pro"] .mobilePanel a:hover{background:rgba(255,255,255,.06)}

  .sectionTitle{font-size:38px}
  .waBtn{width:58px;height:58px}
  .waIcon{width:36px;height:36px}

  .headerInner{gap:10px}
  .brandSub{display:none}
  .brandName{font-size:14px;max-width:150px}
  .brandLogo{width:20px;height:20px}

  .segHeader{padding:4px;gap:6px}
  .segBtn{padding:8px 9px;font-size:12px}
  .segFull{display:none}
  .segShort{display:inline}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{transition:none}
  .btn{transition:none}
}

/* ==========================================================================
   AJOUTS BLOG — styles propres aux pages /blog/ (aucun style du site modifié)
   ========================================================================== */

/* Fil d'Ariane */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--muted2);margin:0 0 6px;padding:0;list-style:none}
.crumbs li{display:flex;align-items:center;gap:8px}
.crumbs li + li:before{content:"›";opacity:.6}
.crumbs a{text-decoration:none;color:var(--muted)}
.crumbs a:hover{color:var(--ink)}
.crumbs [aria-current="page"]{color:var(--ink);font-weight:650}

/* En-tête de page blog */
.blogHead{padding:40px 0 8px}
.blogHead h1{font-size:46px;margin:8px 0 12px}
.blogHead .lead{max-width:70ch}

/* Liste des articles */
.postGrid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:18px;margin-top:28px}
.postCard{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow2);text-decoration:none;transition:transform .18s ease, box-shadow .18s ease}
.postCard:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.postMeta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:13px;color:var(--muted2)}
.postTag{background:rgba(11,22,35,.04);border:1px solid var(--line);border-radius:999px;padding:6px 11px;color:var(--muted);font-weight:650}
body[data-theme="pro"] .postTag{background:rgba(255,255,255,.06)}
.postCard h2{font-family:var(--serif);font-size:26px;line-height:1.2;margin:0;letter-spacing:-.3px}
.postCard p{margin:0;color:var(--muted);line-height:1.65}
.postMore{margin-top:auto;font-weight:750;color:var(--brand)}
body[data-theme="pro"] .postMore{color:var(--accent)}
@media (max-width:760px){.postGrid{grid-template-columns:1fr}}

/* Corps d'article */
.article{max-width:760px;margin:0 auto;padding:8px 0 20px}
.article > p, .article > ul, .article > ol{color:var(--muted);line-height:1.85;font-size:17px}
.article h2{font-family:var(--serif);font-size:32px;line-height:1.18;letter-spacing:-.3px;margin:42px 0 12px;color:var(--ink)}
.article h3{font-family:var(--serif);font-size:23px;line-height:1.25;margin:28px 0 8px;color:var(--ink)}
.article ul, .article ol{padding-left:22px}
.article li{margin:8px 0;line-height:1.8}
.article strong{color:var(--ink)}
.article a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;font-weight:650}
body[data-theme="pro"] .article a{color:var(--accent)}
.article hr{border:0;border-top:1px solid var(--line);margin:38px 0}

.articleMeta{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;color:var(--muted2);font-size:14px;margin:0 0 22px}
.articleMeta .sep{opacity:.5}

.callout{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:14px;padding:18px 20px;margin:28px 0;box-shadow:var(--shadow2)}
body[data-theme="pro"] .callout{border-left-color:var(--accent)}
.callout p{margin:0;color:var(--muted);line-height:1.75}
.callout p + p{margin-top:10px}

/* FAQ */
.faq{max-width:760px;margin:0 auto}
.faqItem{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px;box-shadow:var(--shadow2);margin-top:14px}
.faqItem h3{font-family:var(--serif);font-size:21px;margin:0 0 8px;color:var(--ink)}
.faqItem p{margin:0;color:var(--muted);line-height:1.8}

/* Bandeau CTA de fin d'article */
.postCta{max-width:760px;margin:38px auto 0;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow);text-align:center}
.postCta h2{font-family:var(--serif);font-size:28px;margin:0 0 10px}
.postCta p{color:var(--muted);line-height:1.7;margin:0 0 18px}
.postCtaBtns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}

@media (max-width:760px){
  .blogHead h1{font-size:34px}
  .article h2{font-size:26px}
  .article h3{font-size:20px}
}
