/* ==========================================================================
   /blog/assets/style.css — Thème clair (#fff), navbar #e0625c
   ========================================================================== */

/* -------------------- CSS Vars & Base -------------------- */
:root{
  --bg:#ffffff;
  --panel:#f7f8fa;
  --text:#111317;
  --muted:#566074cc;
  --brand:#e0625c;       /* navbar */
  --accent:#175fe6;      /* progress gradient */
  --border:#e6e8ee;
  --radius:12px;
  --content:1100px;      /* largeur colonne article */
  --toc:280px;
  --shadow:0 6px 18px rgba(14,24,51,.08);

  /* Share palette */
  --share-x:#111111;
  --share-fb:#1877f2;
  --share-li:#0a66c2;
  --share-copy:#475569;
  --share-text:#ffffff;
  --share-ring:#33415533;
}

*{box-sizing:border-box}
html,body{
  margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1100px,92%);margin:0 auto} /* +large pour 3 cartes confort */

@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* -------------------- Navbar fixe 56px -------------------- */
.site-header.fixed{
  position:fixed;top:0;left:0;right:0;height:56px;z-index:100;
  background:var(--brand);border-bottom:1px solid rgba(0,0,0,.08);
}
.header-inner{height:56px;display:flex;align-items:center;justify-content:space-between}
.brand img{height:30px;width:auto;margin-top:-5px}
.nav a{color:#fff;opacity:.95;font-weight:600;padding:6px 10px;border-radius:8px}
.nav a:hover{opacity:1;background:rgba(255,255,255,.14)}

/* Décaler le contenu sous la barre */
body{padding-top:56px}

/* Progress bar sous la navbar */
#progressbar{
  position:fixed;top:56px;left:0;height:3px;width:0;z-index:99;
  background:linear-gradient(90deg,#ffffff,#ffd5d3);
}

/* -------------------- Breadcrumb -------------------- */
.breadcrumb{
  font-size:12px;color:var(--muted);margin:18px 0 6px;display:flex;gap:8px;align-items:center
}
.breadcrumb a{color:var(--muted);text-decoration:none;text-underline-offset:2px}
.breadcrumb span{opacity:.85}

/* -------------------- Article : Héro -------------------- */
.post.v2 .hero{max-width:var(--content);margin:24px auto 32px}
.hero-title{font-size:44px;line-height:1.1;margin:12px 0 16px;font-weight:800;letter-spacing:.2px}
@media (max-width:640px){ .hero-title{font-size:34px;margin:10px 0 14px} }
.hero-date{display:inline;color:var(--muted);font-size:12px;font-weight:600;margin-bottom:18px}
.hero-cover{margin:24px 0 0}
.hero-cover img{
  width:100%;height:auto;border-radius:var(--radius);
  max-height:600px;object-fit:cover;
}

/* -------------------- Grille Article (contenu + TOC) -------------------- */
.article-grid{display:block;max-width:var(--content);margin:0 auto}
@media (min-width:1100px){
  .article-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) var(--toc);
    gap:42px;
    max-width:calc(var(--content) + var(--toc) + 42px);
  }
}

/* TOC sticky (desktop) */
.toc{display:none;position:sticky;top:86px;height:calc(100vh - 120px)}
@media (min-width:1100px){ .toc{display:block} }
.toc-title{font-weight:700;margin:8px 0 10px;color:#1e293b}
.toc-nav{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#3f4a5f}
.toc-nav a{opacity:.8}
.toc-nav a:hover{opacity:1;text-decoration:underline}
.toc-nav a.active{opacity:1;text-decoration:underline}

/* -------------------- Contenu (HTML TinyMCE) -------------------- */
.post-content{font-size:18px;line-height:1.75;color:#1e2430}
.post-content p{margin:0 0 16px}
.post-content h2{margin:28px 0 12px;font-size:30px;line-height:1.25}
.post-content h3{margin:22px 0 10px;font-size:22px}
.post-content ul,.post-content ol{padding-left:22px;margin:14px 0}
.post-content li{margin:6px 0}
.post-content a{color:#0f3fbf;text-decoration:underline;text-underline-offset:3px}
.post-content a:hover{color:#0b2d8a}
.post-content blockquote{
  margin:16px 0;padding:10px 14px;border-left:3px solid #d5def0;
  background:#f5f8ff;border-radius:10px;color:#24324a
}
.post-content img{
  border-radius:12px;border:1px solid var(--border);margin:14px 0;box-shadow:0 2px 10px rgba(16,24,40,.06)
}

/* TOC levels (h2 / h3) */
.toc-nav a.lvl-1 { font-weight:600; }
.toc-nav a.lvl-2 {
  padding-left: 14px;
  font-size: 13px;
  opacity: .9;
  position: relative;
}
.toc-nav a.lvl-2::before{
  content:"";
  position:absolute; left:6px; top:.6em; width:6px; height:1px;
  background: currentColor; opacity:.25;
}


/* Tableaux éventuels */
.post-content table{border-collapse:collapse;width:100%;margin:16px 0;background:#fff}
.post-content th,.post-content td{border:1px solid var(--border);padding:8px 10px}
.post-content th{background:#f3f5f9;text-align:left}

/* Code inline / blocks */
.post-content code{background:#f2f4f7;padding:2px 6px;border-radius:6px}
.post-content pre{
  background:#0f1320;color:#e7ecff;border-radius:10px;padding:12px 14px;
  overflow:auto;border:1px solid #1118270f
}

/* -------------------- SHARE — minimal icon buttons -------------------- */
.share--minimal{margin:40px 0 8px}
.share--minimal .share-title{
  margin:0 0 16px;font-size:18px;line-height:1.25;font-weight:700;color:#111317;
}
.share-icons{display:flex;gap:16px;align-items:center}

.icon-btn{
  --size:34px;
  width:var(--size);height:var(--size);
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  background-color:#e0625c; /* brand */
  color:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.06);
  transition:background .15s ease,color .15s ease,transform .06s ease
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn:active{transform:translateY(0)}
.icon-btn:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 3px rgba(20,110,240,.2)}

.icon-btn::before{
  content:"";width:20px;height:20px;display:block;background:#fff;
  -webkit-mask: var(--icon) no-repeat center / contain;
          mask: var(--icon) no-repeat center / contain;
}
.icon--fb{ --icon:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M160 44h28V4h-28c-30.9 0-56 25.1-56 56v24H76v40h28v128h44V124h36l8-40h-44V60c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E"); }
.icon--x { --icon:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M152.4 32h40.8l-49.7 56.8 84.5 135.2h-63.9l-50.1-80.3-57.2 63.6H15.9l58.8-65.4L14 32h65.7l45.5 72.5L152.4 32z'/%3E%3C/svg%3E"); }
.icon--li{ --icon:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 92h44v132H28zM50 76a26 26 0 1 0 0-52 26 26 0 0 0 0 52zM100 92h42v18h1c6-11 21-22 43-22 46 0 54 30 54 69v67h-44v-59c0-14 0-33-20-33s-23 16-23 32v60h-44z'/%3E%3C/svg%3E"); }
.icon--copy{ --icon:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 15.5a3.5 3.5 0 0 1 0-5l3-3a3.5 3.5 0 0 1 5 5l-.8.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15.5 8.5a3.5 3.5 0 0 1 0 5l-3 3a3.5 3.5 0 0 1-5-5l.8-.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

@media (max-width:480px){
  .icon-btn{ --size:40px }
  .icon-btn::before{ width:18px;height:18px }
}

/* -------------------- Badges -------------------- */
.categorie{
  background-color:#e0625c;color:#fff;text-transform:uppercase;
  font-size:12px;font-weight:600;border-radius:12px;padding:2px 6px
}

/* -------------------- CTA "On vous accompagne" -------------------- */
.cta-pro{
  background:#5348ff;color:#fff;border-radius:14px;
  padding:50px 18px;margin:56px 0 16px;
}
.cta-pro__inner{max-width:840px;margin:0 auto;text-align:center}
.cta-pro__media{margin:4px auto 18px;border-radius:24px;overflow:hidden}
.cta-pro__media img{width:80%;height:auto;display:block;border-radius:4px;margin:auto}
.cta-pro__eyebrow{margin:6px 0 6px;font-size:16px;letter-spacing:.12em;text-transform:uppercase;opacity:.8}
.cta-pro__title{margin:0 0 8px;font-size:clamp(26px,2.4vw,40px);line-height:1.15;font-weight:800}
.cta-pro__tagline{margin:0 auto 16px;max-width:720px;font-size:18px;line-height:1.6;color:#d6deea}
.cta-pro__actions{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
.cta-pro__btn{
  display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 18px;border-radius:12px;
  background:#fff;color:#0b0d12;font-weight:700;box-shadow:0 2px 8px rgba(17,24,39,.18)
}
.cta-pro__btn:hover{filter:brightness(.96)}
.cta-pro__icons{display:flex;gap:12px}
.cta-pro .icon-btn{--size:42px;border-color:rgba(255,255,255,.28);color:#fff;background:transparent}
.cta-pro .icon-btn:hover{background:#fff;color:#0b0d12}

@media (max-width:640px){
  .cta-pro{padding:60px 14px}
  .cta-pro__tagline{font-size:16px}
}

/* Full bleed (desktop) */
body{overflow-x:hidden} /* évite scroll horizontal avec -50vw */
.cta-pro--full{
  position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  width:100vw;border-radius:0;border-left:none;border-right:none;margin-top:56px;margin-bottom:16px
}
.cta-pro--full .cta-pro__inner{max-width:840px;margin:0 auto;padding-left:18px;padding-right:18px}
@media (max-width:640px){
  .cta-pro--full .cta-pro__inner{padding-left:14px;padding-right:14px}
}

/* Mobile-only full bleed */
@media (max-width:768px){
  body{overflow-x:hidden}
  .cta-pro--mfull{
    position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
    width:100vw;border-radius:0;border-left:none;border-right:none
  }
  .cta-pro--mfull .cta-pro__inner{max-width:840px;margin:0 auto;padding-left:14px;padding-right:14px}
}
@media (min-width:769px){
  .cta-pro--mfull{left:auto;right:auto;margin-left:0;margin-right:0;width:auto;border-radius:18px}
}

/* -------------------- Hamburger + mobile menu -------------------- */
.hamburger{
  width:44px;height:36px;display:inline-flex;flex-direction:column;justify-content:center;
  align-items:center;gap:5px;background:transparent;border:0;cursor:pointer
}
.hamburger__bar{width:22px;height:2px;background:#fff;border-radius:2px;transition:transform .15s ease,opacity .15s ease}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2){opacity:0}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:98;backdrop-filter:saturate(120%) blur(2px)
}
.mobile-menu{
  position:fixed;top:56px;right:0;height:calc(100vh - 56px);width:min(88vw,380px);
  background:#ffffff;border-left:1px solid var(--border);z-index:99;
  transform:translateX(100%);transition:transform .18s ease;display:flex;flex-direction:column
}
.mobile-menu.open{transform:translateX(0)}
.mobile-menu__head{
  display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);
  font-weight:700;color:#0b0d12
}
.mobile-menu__close{background:transparent;border:0;font-size:28px;line-height:1;cursor:pointer}
.mobile-menu__list{list-style:none;margin:0;padding:8px}
.mobile-menu__list a{display:block;padding:12px 10px;border-radius:10px;color:#0f172a;font-weight:600}
.mobile-menu__list a:hover{background:#f6f8fb}
html.menu-open, body.menu-open{overflow:hidden}

/* -------------------- Home : Grille Cartes (3 par ligne) -------------------- */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  padding:18px 0 40px;
}
@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;transition:transform .15s ease, box-shadow .15s ease;box-shadow:0 2px 6px rgba(16,24,40,.04)
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.cover{width:100%;height:160px;object-fit:cover;display:block}
.card-body{padding:14px}
.card-title{margin:4px 0 6px;font-size:20px;line-height:1.3;font-weight:800}
.card-title a{text-decoration:none}
.card-title a:hover{text-decoration:underline}
.card-date{display:block;color:var(--muted);font-size:12px;margin-bottom:6px;letter-spacing:.2px}
.card-excerpt{color:#3a4252}

/* -------------------- Utilitaires & Boutons -------------------- */
.muted{color:var(--muted)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:40px;padding:0 14px;border-radius:12px;
  background:#ffffff;color:#0f172a;border:1px solid var(--border);font-weight:600;cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.06)
}
.btn:hover{background:#f6f8fb}
.btn.ghost{background:transparent}
.btn.small{height:30px;padding:0 10px;border-radius:8px}

/* -------------------- Footer v2 -------------------- */
.site-footer.v2{
  background:#fff;border-top:1px solid var(--border);margin-top:56px;color:#0f172a;font-size:14px
}
.site-footer.v2 .footer-top{
  display:grid;gap:78px;padding:60px 0;
  grid-template-columns:1.7fr 1fr 1fr; /* Brand / Groupe / Infos */
}
.footer-logo img{display:block;height:28px;width:auto}
.logo_footer{background-color:#000;width:140px;padding:7px;margin-bottom:1rem}
.footer-desc{margin:12px 0 0;color:var(--muted);max-width:520px;line-height:1.6}
.footer-title{margin:0 0 10px;text-transform:uppercase;font-size:14px;font-weight:800;color:#e0625c}
.footer-links{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.footer-links a{color:#0f172a;text-decoration:none}
.footer-links a:hover{text-decoration:underline}

.footer-links.two-cols{
  display:grid;
  column-gap:24px;row-gap:8px
}
.footer-links.two-cols li{break-inside:avoid}

.footer-sep{height:1px;background:var(--border)}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0 22px;gap:16px;flex-wrap:wrap;color:var(--muted)
}
.socials{display:flex;gap:14px}
.social{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  background:#f3f5f9;color:#0f172a;border:1px solid var(--border)
}
.social:hover{background:#eaeef6}

/* -------------------- Helpers responsive -------------------- */
@media (max-width:480px){
  .post-content{font-size:17px}
}

/* -------------------- Spacing tweaks -------------------- */
.breadcrumb{margin:24px 0 10px}
.article-grid{margin-top:12px}


/* ========= Revolut-like Home ========= */

/* Widen the container a bit for roomy cards */
.container{ width:min(1100px,92%); }

/* Page title */
.home-title{
  margin: 70px auto 50px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(38px, 3vw, 56px);
  line-height: 1.05;
}

/* Pills bar */
.home-filters{
  display:flex; justify-content:center; gap:10px;
  margin: 8px 0 40px;
  flex-wrap: wrap;
}
.pill{
  display:inline-flex; align-items:center; height:36px; padding:0 14px;
  border:1px solid var(--border); border-radius:999px;
  background:#fff; color:#0f172a; font-weight:600; font-size:14px;
}
.pill:hover{ background:#f7f8fa }
.pill.active{ background:#111; color:#fff; border-color:#111 }

/* Grid: 2 columns desktop, 1 on mobile */
.rev-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 8px 0 40px;
}
@media (max-width: 900px){
  .rev-grid{ grid-template-columns: 1fr; gap: 20px; }
}

/* Card core */
.rev-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16,24,40,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rev-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16,24,40,.10);
}
.rev-link{ display:block; color:inherit; text-decoration:none; }

/* Media: 16:9 big banner like Revolut */
.rev-media{ margin:0; }
.rev-media img{
  width:100%; height:auto; display:block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Body */
.rev-body{
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
}
.rev-date{
  display:inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.rev-title{
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 800;
}
.rev-excerpt{
  margin: 0;
  color: #3a4252;
  font-size: 15px;
  line-height: 1.55;
}

/* Keep your existing footer/nav/share styles below */
/* --- Home grid: 3-up desktop, 2-up tablet, 1-up mobile --- */
.container{ width:min(1100px,92%); } /* a bit wider to breathe */

.rev-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;                 /* a touch tighter for 3-up */
}

@media (max-width: 1100px){
  .rev-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .rev-grid{ grid-template-columns: 1fr; }
}

