/* Speedy Flow — styles communs du site (accueil + notes de réunion). */
:root {
  --paper: #FBF8EE;
  --paper-2: #F3EFE2;
  --card: #FFFFFF;
  --ink: #1E1E1B;
  --muted: #66655E;
  --hairline: rgba(30, 30, 20, 0.10);
  --blue: #223CE2;
  --blue-deep: #14228F;
  --blue-night: #0E1440;
  --blue-soft: rgba(34, 60, 226, 0.08);
  --lilac: #E3E7FF;
  --cream: #F5F2E8;
  --orange: #CC6B29;
  --night: #17171A;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Typo éditoriale : romain + italique mêlés dans les titres. */
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
}
.display em { font-style: italic; font-weight: 500; }
.display .accent { color: var(--blue); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); }

/* Navigation flottante */
.topbar { background: var(--blue-night); color: #E6E9FF; text-align: center; font-size: 14px; padding: 9px 16px; }
.topbar a { text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.nav { position: sticky; top: 12px; z-index: 50; padding: 0 16px; margin-top: 12px; }
.nav-inner {
  position: relative; max-width: var(--max); margin: 0 auto; height: 62px; padding: 0 10px 0 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  background: rgba(251, 248, 238, 0.78);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: 0 10px 30px -24px rgba(30, 30, 20, .5);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; justify-self: start; }
.nav-logo img { height: 21px; width: auto; }
.nav-menu { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-menu a { position: relative; z-index: 1; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 10px; white-space: nowrap; transition: color .2s ease; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--ink); }

.nav-menu a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; height: 36px; margin-top: -18px; width: 0; border-radius: 10px; background: rgba(30, 30, 20, .06); opacity: 0; pointer-events: none; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-cta { white-space: nowrap; }
.nav-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--paper-2); cursor: pointer; position: relative; }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.7,0,.2,1); }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 23px; }
.nav.open .nav-burger i:first-child { transform: translateY(3px) rotate(45deg); }
.nav.open .nav-burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-sheet { display: none; }
@media (max-width: 980px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-menu { display: none; }
  .nav-burger { display: block; }
  .nav-sheet { display: grid; position: absolute; left: 8px; right: 8px; top: 100%; max-width: var(--max); margin: 8px auto 0; padding: 8px; background: rgba(251, 248, 238, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(30,30,20,.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
  .nav.open .nav-sheet { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav-sheet a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 500; padding: 14px 14px; border-radius: 12px; }
  .nav-sheet a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-pill { background: var(--lilac); color: var(--blue-deep); border: 1.5px solid var(--blue); box-shadow: 0 3px 0 var(--blue); }
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--blue); }
.btn-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blue); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -12px rgba(34, 60, 226, .8); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-small { padding: 9px 15px; font-size: 14px; border-radius: 11px; }
.btn-small.btn-pill { box-shadow: 0 2px 0 var(--blue); }

/* Héros */
.hero { padding: 92px 0 36px; text-align: center; }
.hero .display { font-size: clamp(54px, 9vw, 112px); }
.hero .lead { max-width: 560px; margin: 26px auto 34px; color: var(--ink); }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Blocs arrondis pleine largeur */
.slab { margin: 0 16px; border-radius: 36px; padding: 104px 0; }
.slab-night { background: var(--night); color: #F1EFE8; }
.slab-blue { background: var(--blue-night); color: #EEF0FF; }
.slab .eyebrow { color: rgba(255, 255, 255, .55); }
.slab .lead { color: rgba(255, 255, 255, .72); }

section { padding: 104px 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.head .display { font-size: clamp(38px, 5.6vw, 66px); }
.head .lead { margin: 18px auto 0; max-width: 620px; }

/* Grilles de cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 21px; height: 21px; }
.slab .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .10); }
.slab .card p { color: rgba(255, 255, 255, .66); }
.slab .card .ico { background: rgba(157, 170, 255, .14); color: #B7C0FF; }

/* Mini-barre Speedy (reprend la barre flottante de l'app) */
.flowpill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px;
  border-radius: 999px; background: rgba(223, 226, 250, .92);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 12px 30px -14px rgba(20, 20, 60, .45);
}
.flowpill .b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.flowpill .x { background: rgba(0, 0, 0, .12); color: #444; }
.flowpill .ok { background: var(--blue); color: var(--cream); }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--blue); }
.wave i { display: block; width: 2.2px; height: 3px; border-radius: 2px; background: var(--cream); }

/* Questions fréquentes */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--hairline); }
details { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: 19px; font-weight: 500; display: flex; justify-content: space-between; gap: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 24px; color: var(--muted); max-width: 680px; }

/* Appel final + pied de page */
.final { text-align: center; padding: 120px 0; }
.final .display { font-size: clamp(44px, 7vw, 88px); }
.final .lead { margin: 22px auto 34px; }
footer { padding: 46px 0 56px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.foot { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot img { height: 18px; width: auto; }
.foot nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Animations (pilotées par GSAP dans site.js ; sans JS, tout reste visible). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .16em .22em .12em; margin: -.04em -.16em -.22em -.12em; }
.w > span { display: inline-block; will-change: transform; }
html.anim { scroll-behavior: auto; }
.nav-inner { transition: height .35s ease, box-shadow .35s ease, background .35s ease; }
.nav.scrolled .nav-inner { height: 54px; background: rgba(251, 248, 238, 0.94); box-shadow: 0 14px 40px -26px rgba(30, 30, 20, .55); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Photos */
.photo { position: relative; overflow: hidden; border-radius: 28px; background: var(--paper-2); }
.photo img { width: 100%; height: 118%; object-fit: cover; position: absolute; inset: -9% 0 0 0; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); pointer-events: none; }
.photo .overlay { position: absolute; z-index: 2; }

/* Interface Speedy Flow posée sur les photos */
.ui-msg { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); font-size: 15px; line-height: 1.55; }
.ui-msg .ui-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ui-msg .ui-dot { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }

@media (max-width: 920px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
  .slab { margin: 0 8px; border-radius: 26px; padding: 76px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 0 8px; }
  .nav-inner { padding: 0 8px 0 14px; gap: 10px; }
  .hero { padding-top: 64px; }
  .hero .btn { width: 100%; }
  .nav-logo img { height: 18px; }
  .nav-cta { padding: 9px 13px; font-size: 13.5px; gap: 6px; }
  .nav-cta svg { width: 15px; height: 15px; }
}

/* Tuiles d'applications (logos officiels) */
.app-tile { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.app-ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.05); }
.app-ico img { width: 28px; height: 28px; object-fit: contain; }
.app-ico i { width: 28px; height: 28px; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.app-tile b { font-weight: 600; font-size: 19px; }

/* ——— Pied de page : une carte nuit, bien détachée de la page ——— */
footer.site-foot { border-top: 0; padding: 80px 12px 12px; color: rgba(255,255,255,.62); }
.foot-card { position: relative; overflow: hidden; overflow: clip; background: var(--blue-night); border-radius: 36px; padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 64px) 26px; max-width: 1400px; margin: 0 auto; }
.foot-card::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; background: radial-gradient(closest-side, rgba(34,60,226,.55), transparent); pointer-events: none; }
.foot-card > * { position: relative; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 40px; }
.foot-kicker { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9DAAFF; }
.foot-title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; color: #fff; letter-spacing: -0.01em; }
.foot-title em { color: #9DAAFF; }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--blue-night); }
.btn-light:hover { background: #E3E7FF; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.foot-cols h4 { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.45); text-transform: uppercase; }
.foot-cols a { display: block; text-decoration: none; color: rgba(255,255,255,.72); font-size: 15px; padding: 4px 0; transition: color .2s ease; }
.foot-cols a:hover { color: #fff; }
.soc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-cols .soc-ico, .soc .soc-ico { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background .25s, transform .25s; }
.soc-ico svg { width: 17px; height: 17px; fill: currentColor; }
.soc-ico:hover { background: var(--blue); transform: translateY(-2px); }
.foot-word { margin: clamp(30px, 5vw, 64px) 0 24px; }
.foot-word .fw { width: 100%; height: auto; display: block; overflow: visible; }
.fw-rest path { fill: rgba(255,255,255,.14); }
.fw-s path { fill: rgba(255,255,255,.14); }
.fw-line { fill: rgba(255,255,255,.22); opacity: 0; }
.foot-bottom { display: flex; gap: 10px 22px; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; font-size: 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }
.foot-bottom a { color: rgba(255,255,255,.62); text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .soc { margin-left: auto; display: flex; gap: 8px; }
.foot-bottom .soc .soc-ico { width: 34px; height: 34px; border-radius: 10px; }
@media (max-width: 920px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-bottom .soc { display: none; } .foot-actions .btn { flex: 1; } footer.site-foot { padding: 60px 8px 8px; } .foot-card { border-radius: 28px; } }

/* ——— FAQ à deux panneaux (grand écran) ——— */
.faq-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--paper-2); border-radius: 30px; padding: 18px; max-width: 1000px; margin: 0 auto; }
.faq-q { background: var(--blue-night); color: #EEF0FF; border-radius: 22px; padding: 22px 16px; max-height: 520px; overflow: auto; }
.faq-q h3, .faq-a h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 22px; margin: 0 0 14px 14px; }
.faq-q button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; font: 500 15.5px/1.45 Inter, sans-serif; padding: 13px 14px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.faq-q button:hover { background: rgba(255,255,255,.06); }
.faq-q button.on { background: rgba(255,255,255,.12); }
.faq-a { padding: 22px 18px; }
.faq-a .asked { text-align: right; color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.faq-a .answer { background: var(--card); border-radius: 18px; padding: 18px 20px; font-size: 15.5px; line-height: 1.6; box-shadow: 0 16px 40px -30px rgba(0,0,0,.4); }
.faq-a .answer p { margin: 0 0 10px; color: var(--ink); max-width: none; }

/* Prix : police sans empattement, bien lisible */
.price { font-family: Inter, -apple-system, sans-serif !important; font-weight: 700; letter-spacing: -0.03em; }

/* Les animations d'entrée (décalages, rotations) ne doivent jamais élargir la page. */
html, body { overflow-x: clip; }


/* ===================== Actualités (liste + article) ===================== */
.blog-hero { padding: 150px 0 34px; text-align: center; }
.blog-hero .display { font-size: clamp(44px, 7vw, 86px); }
.blog-hero .lead { margin: 16px auto 0; max-width: 560px; }
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--blue); background: var(--blue-soft); padding: 4px 11px; border-radius: 999px; }

.post-card { display: flex; flex-direction: column; height: 100%; min-width: 0; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; overflow: hidden; transition: translate .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.post-card:hover { translate: 0 -4px; box-shadow: 0 22px 50px -26px rgba(20, 34, 143, .35); }
.post-card .pc-img { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card .pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .pc-img img { scale: 1.04; }
/* Le corps s'étire : « Lire l'article » reste collé en bas, à la même hauteur sur toute la rangée. */
.post-card .pc-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.post-card .pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.post-card h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.post-card .pc-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.post-card .pc-more span { display: inline-block; transition: translate .25s; }
.post-card:hover .pc-more span { translate: 4px 0; }
/* Article à la une : image et texte côte à côte, hauteur fixée par le texte (pas par la photo). */
.post-card.big { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: auto; margin: 10px 0 44px; }
.post-card.big .pc-img { aspect-ratio: auto; min-height: 400px; height: 100%; }
.post-card.big .pc-body { justify-content: center; padding: 44px 46px; gap: 14px; }
.post-card.big h3 { font-size: clamp(30px, 3.2vw, 42px); -webkit-line-clamp: 4; line-clamp: 4; }
.post-card.big p { font-size: 17px; -webkit-line-clamp: 5; line-clamp: 5; }
.post-card.big .pc-more { margin-top: 8px; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.blog-filters .chip { font: 600 14px Inter, sans-serif; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.blog-filters .chip:hover { border-color: rgba(34, 60, 226, .35); }
.blog-filters .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Grille sur 6 colonnes : 3 cartes par rangée ; une rangée incomplète se répartit en 2 cartes
   larges plutôt que de laisser un trou (fonctionne aussi avec les cartes ajoutées par la console). */
.post-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-bottom: 80px; align-items: stretch; }
.post-grid > .post-card { grid-column: span 2; }
@media (min-width: 981px) {
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(3n+1)) > .post-card:nth-last-child(-n+4),
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(3n+2)) > .post-card:nth-last-child(-n+2) { grid-column: span 3; }
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(3n+1)) > .post-card:nth-last-child(-n+4) .pc-img,
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(3n+2)) > .post-card:nth-last-child(-n+2) .pc-img { aspect-ratio: 2 / 1; }
  .post-grid:not(.two) > .post-card:only-child { grid-column: 2 / span 4; }
}
@media (min-width: 641px) and (max-width: 980px) {
  /* Nombre impair de cartes : la dernière prend toute la largeur, image à gauche. */
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(odd)) > .post-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .post-grid:not(.two):not(:has(> .post-card[hidden])):has(> .post-card:first-child:nth-last-child(odd)) > .post-card:last-child .pc-img { width: 46%; aspect-ratio: auto; }
}
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
.post-grid.two > .post-card { grid-column: auto; }
.post-grid .post-card[hidden] { display: none; }
.blog-empty { text-align: center; color: var(--muted); padding: 0 0 80px; }

/* Article */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #6F86FF); transform-origin: 0 50%; transform: scaleX(0); }
.wrap.narrow { max-width: 820px; }
.post-hero { padding: 140px 0 34px; text-align: center; }
.post-hero .back { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 26px; transition: color .2s; }
.post-hero .back:hover { color: var(--blue); }
.post-hero .tag { display: table; margin: 0 auto 18px; }
.post-hero .display { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.06; }
.post-hero .lead { margin: 20px auto 0; max-width: 640px; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; text-align: left; font-size: 14px; color: var(--muted); line-height: 1.45; }
.byline b { color: var(--ink); font-weight: 600; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.byline .avatar img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.post-cover { max-width: 1160px; margin: 10px auto 0; padding: 0 24px; }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 30px; }
.post-layout { max-width: 1080px; margin: 0 auto; padding: 56px 24px 30px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.post-side { position: sticky; top: 110px; align-self: start; display: grid; gap: 28px; }
.post-toc { display: grid; gap: 2px; }
.post-side b { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-toc a { text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; padding: 7px 12px; border-left: 2px solid var(--hairline); transition: color .2s, border-color .2s; }
.post-toc a:hover { color: var(--ink); }
.post-toc a.on { color: var(--blue); border-left-color: var(--blue); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share b { width: 100%; }
.share-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); font: 700 14px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, translate .2s; }
.share-btn:hover { background: var(--blue); color: #fff; translate: 0 -2px; }
.share-btn.copied { background: var(--blue); color: #fff; }
.post-body { max-width: 68ch; }
.post-body p, .post-body li { font-size: 18.5px; line-height: 1.78; color: #34332E; }
.post-body p { margin: 0 0 22px; }
.post-body p.intro { font-size: 21px; line-height: 1.65; color: var(--ink); }
.post-body p.intro::first-letter { float: left; font-family: "Playfair Display", Georgia, serif; font-size: 78px; line-height: .82; padding: 8px 12px 0 0; color: var(--blue); }
.post-body h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin: 48px 0 16px; scroll-margin-top: 110px; }
.post-body ul { padding-left: 0; list-style: none; margin: 0 0 24px; }
.post-body ul li { position: relative; padding-left: 28px; margin: 8px 0; }
.post-body ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.post-body ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 26px; display: grid; gap: 10px; }
.post-body ol.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; font-size: 17px; }
.post-body ol.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); color: var(--blue); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.post-body blockquote.pull { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--blue); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); }
.post-body .note { margin: 30px 0; padding: 20px 22px; border-radius: 20px; background: var(--blue-soft); border: 1px solid rgba(34, 60, 226, .14); }
.post-body .note b { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.post-body .note p { margin: 0; font-size: 16.5px; }
.post-cta { padding: 30px 0 10px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px; border-radius: 30px; background: var(--blue-night); color: #fff; }
.cta-card h2 { margin: 0 0 6px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(26px, 3vw, 34px); }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .72); }
.related { padding: 60px 0 90px; }
.related-title { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 32px; margin: 0 0 22px; }

@media (max-width: 980px) {
  .post-card.big { grid-template-columns: 1fr; }
  .post-card.big .pc-img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .post-card.big .pc-body { padding: 26px 26px 28px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid > .post-card { grid-column: auto; }
  .post-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .post-side { position: static; }
  .post-toc { display: none; }
}
@media (max-width: 640px) {
  .post-grid, .post-grid.two { grid-template-columns: minmax(0, 1fr); }
  .post-grid > .post-card { grid-column: auto; }
  .blog-hero, .post-hero { padding-top: 120px; }
  .post-cover img { aspect-ratio: 4 / 3; border-radius: 22px; }
  .post-body p, .post-body li { font-size: 17.5px; }
  .post-body p.intro { font-size: 19px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

/* ===================== Parrainage (accueil + parrainage.html) ===================== */
.ref-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; background: var(--blue-night); color: #EEF0FF; border-radius: 36px; padding: 56px; }
.ref-panel::before { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(94, 116, 255, .38), transparent); pointer-events: none; }
.ref-panel > * { position: relative; }
.ref-panel .eyebrow { color: rgba(255, 255, 255, .55); }
.ref-panel h2 { margin: 10px 0 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.02em; color: #fff; }
.ref-panel h2 em { font-style: italic; color: #B7C0FF; }
.ref-panel .lead { margin: 18px 0 0; color: rgba(255, 255, 255, .74); font-size: clamp(17px, 1.7vw, 19px); }
.ref-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ref-fine { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .55); }
.ref-fine a { color: rgba(255, 255, 255, .8); }
.ref-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 14px 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(183, 192, 255, .4); font: 600 15px ui-monospace, "SF Mono", Menlo, monospace; color: #fff; max-width: 100%; overflow-wrap: anywhere; }
.ref-link i { font-style: normal; color: #B7C0FF; }
.ref-link svg { width: 18px; height: 18px; flex: none; color: #B7C0FF; }
.ref-steps { display: grid; gap: 12px; }
.ref-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); }
.ref-step i { font-style: normal; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(157, 170, 255, .16); color: #C9D0FF; font-weight: 700; font-size: 17px; }
.ref-step b { display: block; font-size: 17px; font-weight: 600; color: #fff; margin: 2px 0 4px; }
.ref-step span { color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.55; }
.ref-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ref-gift { border-radius: 20px; padding: 18px 18px 16px; background: #fff; color: var(--ink); }
.ref-gift small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ref-gift b { display: block; margin-top: 8px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1; color: var(--blue); }
.ref-gift span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 920px) {
  .ref-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 28px; border-radius: 28px; }
}
@media (max-width: 560px) {
  .ref-panel { padding: 32px 20px; }
  .ref-gifts { grid-template-columns: minmax(0, 1fr); }
  .ref-step { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .ref-step i { width: 38px; height: 38px; border-radius: 12px; }
}

/* Moyens de paiement (tarifs) : simples étiquettes texte */
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 26px auto 0; font-size: 13.5px; color: var(--muted); }
.pay-row > span:first-child { margin-right: 4px; }
.pay-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--hairline); padding: 6px 12px; border-radius: 999px; }
.pay-chip svg { width: 15px; height: 15px; color: var(--blue); }
.pay-note { margin: 10px auto 0; text-align: center; font-size: 13px; color: var(--muted); max-width: 640px; }
.pay-note a { color: inherit; }

/* Pages légales : tableaux de données (traitements, prestataires, durées) */
.data-table { border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; margin: 6px 0 18px; background: var(--card); max-width: 74ch; }
.data-table .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; color: #3B3A35; border-top: 1px solid var(--hairline); }
.data-table.two .row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); }
.data-table .row.head { border-top: 0; background: var(--paper-2); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.data-table .row > span:first-child { font-weight: 600; color: var(--ink); }
.data-table .row.head > span:first-child { color: var(--muted); }
.legal-body h3 { font-size: 18px; font-weight: 600; margin: 22px 0 8px; color: var(--ink); }
.legal-callout { max-width: 70ch; margin: 6px 0 18px; padding: 16px 20px; border-radius: 18px; background: var(--blue-soft); border: 1px solid rgba(34, 60, 226, .14); }
.legal-callout p { margin: 0 !important; font-size: 15.5px !important; }
.legal-callout b { color: var(--blue) !important; }
@media (max-width: 640px) {
  .data-table .row, .data-table.two .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .data-table .row.head { display: none; }
  .data-table .row > span:not(:first-child) { color: var(--muted); }
}

/* Bandeau d'annonce piloté depuis la console (site_settings.topbar) */
.topbar.tb { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 44px; font-size: 14px; line-height: 1.3; }
.tb.tb-nuit { background: #0E1440; color: #E6E9FF; }
.tb.tb-bleu { background: #223CE2; color: #fff; }
.tb.tb-orange { background: #F26B1D; color: #fff; }
.tb.tb-clair { background: #F3F0E8; color: #1E1E1B; border-bottom: 1px solid rgba(30,30,20,.08); }
.tb.tb-degrade { background: linear-gradient(90deg, #0E1440, #223CE2, #7B5CFF, #0E1440); color: #fff; }
.tb .tb-track { position: relative; width: 100%; max-width: 1100px; height: 38px; }
.tb .tb-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.tb .tb-msg.on { opacity: 1; transform: none; }
.tb .tb-msg.out { opacity: 0; transform: translateY(-100%); }
.tb a.tb-msg:hover .tb-text { text-decoration: underline; text-underline-offset: 3px; }
.tb .tb-text { overflow: hidden; text-overflow: ellipsis; }
.tb .tb-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.16); }
.tb.tb-clair .tb-badge { background: #223CE2; color: #fff; }
.tb .tb-arrow { flex: none; transition: transform .2s ease; }
.tb a.tb-msg:hover .tb-arrow { transform: translateX(3px); }
.tb .tb-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .7; font-size: 17px; line-height: 1; cursor: pointer; }
.tb .tb-close:hover { opacity: 1; background: rgba(255,255,255,.14); }
/* Défilement continu */
.tb.fx-defilement .tb-track { display: flex; overflow: hidden; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tb.fx-defilement .tb-loop { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: tb-marquee var(--tb-dur, 30s) linear infinite; }
.tb.fx-defilement .tb-msg { position: static; opacity: 1; transform: none; flex: none; }
.tb.fx-defilement:hover .tb-loop { animation-play-state: paused; }
@keyframes tb-marquee { to { transform: translateX(-100%); } }
/* Reflet lumineux */
.tb.fx-reflet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: tb-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes tb-shine { 60%, 100% { transform: translateX(100%); } }
/* Dégradé animé */
.tb.fx-degrade { background-size: 300% 100% !important; animation: tb-flow 9s ease-in-out infinite alternate; }
.tb.fx-degrade:not(.tb-degrade) { background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0)); }
@keyframes tb-flow { to { background-position: 100% 0; } }
/* Badge qui pulse */
.tb.fx-pulse .tb-badge { animation: tb-pulse 1.8s ease-out infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.tb.tb-clair.fx-pulse .tb-badge { animation-name: tb-pulse-blue; }
@keyframes tb-pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(34,60,226,.5); } 100% { box-shadow: 0 0 0 9px rgba(34,60,226,0); } }
@media (max-width: 640px) { .topbar.tb { padding: 0 36px 0 12px; font-size: 13px; } .tb .tb-badge { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tb .tb-msg { transition: none; }
  .tb.fx-defilement .tb-loop, .tb.fx-reflet::after, .tb.fx-degrade, .tb.fx-pulse .tb-badge { animation: none; }
}

/* Formulaire de contact : anti-robots et message d’état */
.c-form .cf-turnstile { min-height: 65px; }
.c-form-status { margin: 0; font-size: 14px; color: var(--muted, #66655E); min-height: 1.2em; }

/* Bandeau de consentement (mesure d'audience) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: #fff; color: #1E1E1B; border: 1px solid rgba(30,30,20,.1); border-radius: 18px; box-shadow: 0 18px 50px rgba(20,20,10,.16); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.consent.in { opacity: 1; transform: none; }
.consent.out { opacity: 0; transform: translateY(16px); }
.consent p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: #4A4943; }
.consent p b { display: block; color: #1E1E1B; margin-bottom: 2px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { padding: 9px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
