/* ==========================================================================
   Mindflurry — styles communs (polices, base, composants, header, footer).
   Les styles propres à une page sont dans la page (section <style>) ou css/pages/*.css.
   ========================================================================== */

/* ---------- Polices (Montserrat variable + Instrument Serif) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Jetons ---------- */
:root {
  --ink: #16110f;
  --ink-2: #3a3330;
  --ink-3: #4a4340;
  --mute: #7a716d;
  --line: rgba(22,17,15,.08);
  --red: #ee2737;
  --red-dark: #d61f2e;
  --orange: #fd9d65;
  --night: #0e0c0c;
  --night-2: #141312;
  --grey-light: #bab6b6;
  --grad: radial-gradient(circle at bottom left, #ee2737 0%, #fd9d65 100%);
  --grad-deep: radial-gradient(circle at bottom left, #c81e2b 0%, #cc4a1e 100%);
  --radius-md: 4px;
  --font: 'Montserrat', sans-serif;
  --serif: 'Instrument Serif', serif;
  --container: 1360px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: #fff; background: var(--night); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Composants ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: var(--radius-md);
  font: 600 15px/1.2 var(--font); white-space: nowrap; cursor: pointer; transition: filter .2s; }
.btn--grad { background: var(--grad); color: #fff; }
.btn--deep { background: var(--grad-deep); color: #fff; }
.btn--grad:hover, .btn--deep:hover { filter: brightness(1.08); color: #fff; }
.btn--sm { padding: 12px 20px; font-size: 14px; gap: 8px; }
.btn--lg { padding: 17px 30px; gap: 12px; }
.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-dark); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(253,157,101,.6); color: var(--orange); }
.serif { font-family: var(--serif); font-weight: 400; }
.serif-quote { font-family: var(--serif); font-style: italic; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 20px; left: clamp(12px,2vw,24px); right: clamp(12px,2vw,24px); max-width: 1312px; margin: 0 auto; z-index: 50;
  border-radius: 20px; background: transparent; border: 1px solid transparent; color: var(--ink);
  transition: background .3s ease, border-color .3s ease, top .3s ease, box-shadow .3s ease; }
.hdr.is-solid { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-color: rgba(22,17,15,.08); box-shadow: 0 20px 40px -24px rgba(22,17,15,.35); }
.hdr.is-scrolled { top: 12px; }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; transition: padding .3s ease; }
.hdr.is-scrolled .hdr__bar { padding: 12px 24px; }
.hdr__logo { flex-shrink: 0; }
.hdr__logo-light { display: none; }   /* logo blanc : utilisé seulement par le header mobile de l’accueil (home.css) */
.hdr__logo img { width: clamp(160px,16vw,230px); }
.hdr__nav { display: flex; align-items: center; gap: clamp(16px,2.6vw,40px); font-size: 15px; white-space: nowrap; }
.hdr__link { color: var(--ink-2); border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.hdr__link:hover, .hdr__link.is-active, .hdr.is-menu .hdr__exp { color: var(--red-dark); }
.hdr__exp svg { transition: transform .3s ease; }
.hdr.is-menu .hdr__exp svg { transform: rotate(180deg); }
.hdr__cta { background: var(--grad); }   /* même dégradé sur toutes les pages */
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(22,17,15,.2); background: rgba(255,255,255,.6);
  color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }

/* Menu Expertises (desktop) */
.mega { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px),1fr));
  gap: 24px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid rgba(22,17,15,.1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .25s ease, transform .35s var(--ease-out), visibility .25s; }
.hdr.is-menu .mega { opacity: 1; transform: translateY(0); visibility: visible; }
/* Pont invisible au-dessus du menu : la souris peut traverser l'espace de 8 px sans le refermer. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mega__list { display: flex; flex-direction: column; gap: 6px; }
.mega__list .kicker { padding-bottom: 6px; }
.mega__item { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 4px 14px; padding: 14px; margin: 0 -14px; border-radius: 12px; color: var(--ink); }
.mega__item:hover { background: rgba(238,39,55,.06); }
.mega__icon { grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(22,17,15,.22);
  display: flex; align-items: center; justify-content: center; color: var(--red); }
.mega__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mega__title:hover { color: var(--ink); }
.mega__desc { font-size: 14px; line-height: 1.5; color: var(--mute); }
.mega__sub { grid-column: 2; position: relative; z-index: 1; display: flex; gap: 20px; flex-wrap: wrap; padding-top: 6px; font-size: 14px; font-weight: 600; }
.mega__sub a { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink); }
.mega__sub a:hover { color: var(--red); }
.mega__bodylink { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px;
  border-radius: 16px; background: var(--night-2); color: #fff; min-height: 260px; }
.mega__bodylink:hover { color: #fff; }
.mega__bodylink::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 100% 100%, rgba(238,39,55,.55), rgba(253,157,101,.15) 45%, transparent 75%); }
.mega__bodylink > * { position: relative; }
.mega__bodylink img { width: clamp(170px,15vw,220px); }
.mega__bodylink .serif-quote { font-size: clamp(20px,1.8vw,26px); line-height: 1.25; color: rgba(255,255,255,.88); max-width: 420px; text-wrap: pretty; }
.mega__bodylink .btn { margin-top: auto; }

/* Menu mobile */
.mnav { display: none; flex-direction: column; padding: 8px 20px 28px; background: #fff; border-top: 1px solid rgba(22,17,15,.08); border-radius: 0 0 20px 20px; }
.hdr.is-nav .mnav { display: flex; }
.mnav__big { font-size: 24px; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid rgba(22,17,15,.08); }
.mnav__big.is-active { color: var(--red-dark); }
.mnav__group { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid rgba(22,17,15,.08); }
.mnav__group .mnav__big { padding: 0 0 6px; border: 0; }
.mnav__item { font-size: 16px; color: var(--ink-3); padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.mnav__item--sub { font-size: 15px; color: var(--mute); padding: 6px 0 6px 16px; }
.mnav__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.mnav__item .dash { width: 10px; height: 1px; background: var(--red); flex-shrink: 0; }
.mnav__cta { margin-top: 20px; padding: 16px; font-size: 16px; background: var(--grad); }

@media (max-width: 819px) {
  .hdr, .hdr.is-scrolled { top: 10px; }
  .hdr__bar, .hdr.is-scrolled .hdr__bar { padding: 12px 16px; }
  .hdr__nav, .hdr__cta, .mega { display: none; }
  .hdr__burger { display: flex; }
}

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.ftr__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 0% 100%, rgba(238,39,55,.35), transparent 70%); }
.ftr__in { position: relative; max-width: var(--container); margin: 0 auto; padding: clamp(64px,7vw,96px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 56px; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.ftr__brand { display: flex; flex-direction: column; gap: 20px; max-width: 340px; }
.ftr__brand img { width: 240px; }
.ftr__brand p { font-size: 14px; line-height: 1.7; color: var(--grey-light); }
.ftr__social { display: flex; gap: 10px; }
.ftr__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: #fff; }
.ftr__social a:hover { border-color: var(--red); color: var(--red); }
.ftr__cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.ftr__col { display: flex; flex-direction: column; gap: 14px; min-width: 150px; }
.ftr__col a { color: var(--grey-light); font-size: 14px; }
.ftr__col a:hover { color: #fff; }
.ftr__title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9b9797; }
.ftr__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.ftr__legal a { color: #9b9797; }
.ftr__legal a:hover { color: #fff; }

/* ---------- Apparition au défilement (site.js ajoute .is-in) ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-line] { transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease-out); }
[data-line].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-line] { opacity: 1; transform: none; transition: none; } }

/* ---------- Titres de section ---------- */
.sec-title { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red-dark); }
.eyebrow > span { width: 44px; height: 1px; background: var(--red); flex-shrink: 0; }
.eyebrow--light { color: var(--orange); }
.h2 { font-family: var(--font); font-weight: 600; font-size: clamp(32px,3.8vw,54px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.link-underline { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; font-weight: 600; color: #fff; padding-bottom: 4px; border-bottom: 1px solid var(--red); }
.link-underline:hover { color: var(--orange); }

/* ---------- Avis ---------- */
.avis { position: relative; overflow: hidden; background: var(--night); }
.avis__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 65% at 50% 100%, rgba(238,39,55,.7) 0%, rgba(253,157,101,.28) 35%, transparent 72%); }
.avis__in { position: relative; max-width: var(--container); margin: 0 auto; padding: clamp(80px,9vw,128px) var(--gutter); display: flex; flex-direction: column; gap: clamp(40px,5vw,56px); }
.avis__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.avis__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 20px; }
.avis__card { margin: 0; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.avis__stars { display: flex; gap: 3px; color: var(--red); }
.avis__card blockquote { margin: 0; font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 1.6; text-wrap: pretty; color: #fff; }
.avis__card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; color: #fff; }
.avis__initial { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.avis__who { display: flex; flex-direction: column; gap: 2px; }
.avis__who span:first-child { font-size: 15px; font-weight: 600; }
.avis__who span:last-child { font-size: 13px; color: var(--grey-light); }

/* ---------- Héros clair (blog, article…) ---------- */
.light-hero { position: relative; overflow: hidden; background: #fff; color: var(--ink); }
.light-hero__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 420px at var(--mx, 20%) var(--my, 30%), rgba(238,39,55,.16) 0%, rgba(253,157,101,.1) 40%, transparent 72%); }
.light-hero__bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 0% 30%, rgba(238,39,55,.2) 0%, rgba(253,157,101,.12) 40%, transparent 72%), radial-gradient(40% 40% at 100% 0%, rgba(253,157,101,.16), transparent 70%); }
.h1 { font-family: var(--font); font-weight: 600; font-size: clamp(38px,4.8vw,72px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.dot-red { color: var(--red); }
.lead { font-size: 17px; line-height: 1.7; color: var(--ink-3); max-width: 600px; text-wrap: pretty; }
.btn--round { border-radius: 12px; padding: 15px 26px; }
.link-underline--dark { color: var(--ink); }
.link-underline--dark:hover { color: var(--red-dark); }
.h2--sm { font-size: clamp(28px,3vw,42px); line-height: 1.1; }

/* ---------- Blog ---------- */
.blog-hero { padding: clamp(120px,14vw,180px) 0 clamp(80px,9vw,120px); }
.blog-hero__in { position: relative; display: flex; flex-direction: column; gap: clamp(40px,5vw,56px); }
.blog-hero__head { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(22,17,15,.18);
  background: #fff; color: var(--ink); white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,320px),1fr)); gap: 48px 28px; }
.post-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; gap: 18px; color: var(--ink); min-width: 0; }
.post-card:hover { color: var(--ink); }
.post-card[hidden] { display: none; }
.post-card__title { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.post-card__more { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red-dark); white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--mute); }
.post-meta__tag { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); white-space: nowrap; }
.post-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(22,17,15,.25); }

/* Visuel d'article */
.cover { position: relative; border-radius: 20px; overflow: hidden; container-type: inline-size; }
.cover > span { position: absolute; }
.cover__dots { inset: 0; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.4px); background-size: 16px 16px; }
.cover__ring { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ring); }
.cover__ring--big { left: -12%; top: 8%; width: 62%; }
.cover__ring--small { left: 4%; top: 24%; width: 30%; }
.cover__box { left: 9%; top: 50%; transform: translateY(-50%); width: clamp(56px,22cqw,104px); aspect-ratio: 1; border-radius: 28%; display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 44px -18px rgba(22,17,15,.6); }
.cover__box img { width: 46%; height: 46%; }
.cover__chip { right: 7%; top: 14%; display: flex; flex-direction: column; gap: 3px; padding: clamp(10px,3.4cqw,16px) clamp(12px,4cqw,20px); border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(22,17,15,.55); transform: rotate(-2deg); }
.cover__chip span:first-child { font-size: clamp(9px,2.6cqw,12px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.grad-text-2 { font-size: clamp(18px,7cqw,32px); font-weight: 700; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg,#fd9d65 0%,#ee2737 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; padding-bottom: 2px; }
.cover__lines { right: 7%; bottom: 12%; width: 30%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--pill-bg); box-shadow: 0 16px 30px -18px rgba(22,17,15,.5); }
.cover__lines span { height: 6px; border-radius: 999px; background: var(--pill-fg); opacity: .3; }
.cover__lines span:nth-child(1) { width: 70%; opacity: .85; } .cover__lines span:nth-child(2) { width: 100%; } .cover__lines span:nth-child(3) { width: 55%; }
.cover__tag { left: 9%; bottom: 10%; max-width: 48%; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-fg); font-size: clamp(9px,2.6cqw,12px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cover__tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* Article */
.article { padding: clamp(120px,13vw,170px) 0 clamp(80px,9vw,120px); }
.article__in { position: relative; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.back-link { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.back-link:hover { color: var(--red-dark); }
.article__head { display: flex; flex-direction: column; gap: 20px; }
.article__head .post-meta { font-size: 13px; }
.article__title { font-weight: 600; font-size: clamp(32px,4vw,54px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.article__intro { font-size: clamp(19px,1.6vw,22px); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.article__section { display: flex; flex-direction: column; gap: 14px; }
.article__section h2 { font-weight: 600; font-size: clamp(22px,2vw,28px); line-height: 1.25; letter-spacing: -.01em; }
.article__section p { font-size: 17px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 28px; border-radius: 24px;
  background: var(--night-2) radial-gradient(80% 120% at 0% 100%, rgba(238,39,55,.6), transparent 70%); color: #fff; }
.article__cta > span { font-size: 20px; font-weight: 600; line-height: 1.3; max-width: 440px; text-wrap: balance; }
.related { background: #f8f4f2; color: var(--ink); }
.related__in { padding-top: clamp(72px,8vw,112px); padding-bottom: clamp(72px,8vw,112px); display: flex; flex-direction: column; gap: clamp(32px,4vw,48px); }
.related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.related .sec-title { gap: 18px; }

/* ---------- Réalisations : grille 3 / 2 / 1 colonnes ---------- */
.page-realisations { --real-cols: repeat(2,minmax(0,1fr)); }
@media (min-width: 1100px) { .page-realisations { --real-cols: repeat(3,minmax(0,1fr)); } }
@media (max-width: 819px) { .page-realisations { --real-cols: 1fr; } }

/* ---------- Carrousel sur une ligne (défilement + flèches : site.js [data-carousel]) ---------- */
.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 clamp(240px, 24vw, 300px); scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; margin-left: auto; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; transition: border-color .2s, color .2s, opacity .2s; }
.carousel__btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__btn[data-carousel-prev] svg { transform: rotate(180deg); }
@media (max-width: 819px) {
  .carousel { gap: 14px; }
  .carousel__item { flex-basis: 68vw; }
  .carousel__nav { display: none; }   /* au doigt sur mobile */
}

/* ---------- Bouton d'accès au back-office (visible seulement une fois connecté) ---------- */
.admin-fab { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(22,17,15,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); font: 600 12px/1 var(--font); }
.admin-fab a { color: #fff; padding: 9px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.admin-fab a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-fab__main { background: var(--grad); }
.admin-fab__main:hover { filter: brightness(1.08); }
@media print { .admin-fab { display: none; } }

/* ---------- Fil d'Ariane (posé dans l'espace libre du haut des héros clairs, sans décaler la page) ---------- */
#main { position: relative; }
.crumbs { position: absolute; top: 108px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.crumbs__in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 0; font-size: 12px; font-weight: 500; color: var(--mute); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: rgba(22,17,15,.35); }
.crumbs a { color: var(--ink-3); pointer-events: auto; }
.crumbs a:hover { color: var(--red-dark); }
.crumbs [aria-current] { color: var(--mute); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 819px) { .crumbs { top: 86px; } .crumbs [aria-current] { max-width: 26ch; } }

/* Défilement des logos clients (agence, bodylink, section clients) */
@keyframes mfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Accès permanent au tiroir « Parlons de votre projet » : languette à droite (desktop), barre en bas (mobile) ---------- */
.mf-tab { position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; border: 0; cursor: pointer; padding: 18px 11px; border-radius: 0 12px 12px 0;
  background: var(--grad); color: #fff; font: 600 13px/1 var(--font); letter-spacing: .06em; box-shadow: 0 10px 30px -10px rgba(238,39,55,.7); transition: opacity .3s, filter .2s; }
.mf-tab svg { rotate: 90deg; }
.mf-tab:hover { filter: brightness(1.08); }
.mf-bar { display: none; }
.mfc-lock .mf-tab { opacity: 0; pointer-events: none; }
@media (max-width: 819px) {
  .mf-tab { display: none; }
  .mf-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(22,17,15,.08);
    transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .is-scrolled .mf-bar { transform: translateY(0); }
  .mfc-lock .mf-bar, body:has(.hdr.is-nav) .mf-bar { transform: translateY(110%); }
  .mf-bar button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border: 0; cursor: pointer;
    border-radius: var(--radius-md, 14px); background: var(--grad); color: #fff; font: 600 15px/1 var(--font); white-space: nowrap; }
  .is-scrolled .admin-fab { bottom: 88px; }
}
@media print { .mf-tab, .mf-bar { display: none; } }

/* ---------- Frise de l'agence : tronc « Produit » + branche « Agence » (desktop), liste verticale (mobile) ---------- */
.tl { --gap: 20px; --row-gap: 56px; position: relative; margin: 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--row-gap); }
.tl__i { position: relative; z-index: 1; grid-column: var(--c); grid-row: var(--r); display: flex; flex-direction: column; gap: 12px; padding-top: 34px; min-width: 0; }
.tl__i::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; background: #fff; border: 3px solid #ee2737; }
.tl__i--a::before { border-color: #fd9d65; }
.tl__i.is-now::before { border: 0; background: var(--grad); box-shadow: 0 0 0 6px rgba(238,39,55,.15); }
.tl__y { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1; background: linear-gradient(90deg, #fd9d65 0%, #ee2737 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl__t { font-size: 15px; line-height: 1.55; color: #4a4340; text-wrap: pretty; }
.tl__t strong { font-weight: 700; }
.tl__i--p .tl__y { background-image: linear-gradient(90deg, #ee2737 0%, #f2504a 100%); }
.tl__i--a .tl__y { background-image: linear-gradient(90deg, #fd9d65 0%, #f9805c 100%); }
.tl__i--a .tl__tag { color: #e9783f; }
.tl__tag { order: -1; margin-bottom: -4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d61f2e; }
/* Tronc produit (ligne du haut) et branche agence (se détache après 2020–21 puis court sous la ligne du haut) */
.tl__trunk { grid-column: 1 / -1; grid-row: 1; align-self: start; margin-top: 8px; height: 2px; background: linear-gradient(90deg, #ee2737, #f2504a 70%, rgba(238,39,55,.2)); }
.tl__branch { grid-column: 6 / -1; grid-row: 1; margin: 9px 0 calc(-1 * var(--row-gap) - 10px) calc(-1 * var(--gap) / 2 - 1px);
  border-left: 2px solid #fd9d65; border-bottom: 2px solid #fd9d65; border-bottom-left-radius: 18px;
  -webkit-mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.25)); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.25)); }
@media (max-width: 819px) {
  .tl { grid-template-columns: 1fr; row-gap: 28px; }
  .tl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #ee2737, #fd9d65 60%, rgba(253,157,101,.2)); }
  .tl__trunk, .tl__branch { display: none; }
  .tl__i { grid-column: 1; grid-row: auto; padding: 0 0 0 36px; gap: 6px; }
}

/* Photo d'équipe (agence) : bandeau 16/7 sur ordinateur, 4/3 sur mobile (le min-height élargissait l'image hors de l'écran) */
.team-photo { width: 100%; aspect-ratio: 16 / 7; }
@media (max-width: 819px) { .team-photo { aspect-ratio: 4 / 3; } }

/* Chiffres clés (agence) : 2 × 2 et plus compacts sur mobile */
@media (max-width: 819px) {
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
  .stats4 > div { padding-left: 12px !important; gap: 4px !important; }
  .stats4 > div > span:first-child { font-size: clamp(28px, 8.5vw, 36px) !important; }
  .stats4 > div > span:last-child { font-size: 13px !important; line-height: 1.4; }
}

/* ---------- Bandeau cookies (assets/js/consent.js) ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 2147482500; max-width: 420px; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px; border-radius: 16px; background: rgba(22,17,15,.96); color: #fff; font: 500 13px/1.55 var(--font);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.consent.is-on { opacity: 1; transform: none; visibility: visible; }
.consent p { margin: 0; color: #d7d3d3; }
.consent a { color: #fd9d65; text-decoration: underline; }
.consent__btns { display: flex; gap: 8px; justify-content: flex-end; }
.consent button { font: 600 13px/1 var(--font); padding: 11px 18px; border-radius: var(--radius-md); cursor: pointer; }
.consent__no { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.consent__yes { background: var(--grad); color: #fff; border: 0; }
.ftr__legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 819px) { .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
@media print { .consent { display: none; } }
