/* =========================================================================
   Fabrovo, Design system
   « Faites parler vos systèmes. »
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --orange: #F44B17;
  --orange-600: #d83d0f;
  --orange-100: #fde6dd;
  --orange-050: #fdf1ec;
  --cream: #FEFBF7;
  --cream-100: #f8f1e8;
  --ink: #2B2A28;
  --ink-soft: #5c5954;
  --ink-mute: #8c877f;
  --line: #ece5db;
  --white: #ffffff;

  /* Status colours */
  --green: #1f8a5b;
  --green-bg: #e6f4ec;
  --blue: #2563a8;
  --blue-bg: #e7f0fa;

  /* Typography */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(43, 42, 40, .05), 0 1px 3px rgba(43, 42, 40, .06);
  --shadow: 0 4px 12px rgba(43, 42, 40, .06), 0 12px 28px rgba(43, 42, 40, .05);
  --shadow-lg: 0 18px 50px rgba(43, 42, 40, .12);
  --ring: 0 0 0 4px var(--orange-100);
  --maxw: 1160px;
  --transition: .2s ease;
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---- Bilingual switch (CSS-driven by <html lang>) --------------------- */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.text-center { text-align: center; }

/* ---- Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.narrow { max-width: 720px; margin-inline: auto; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .9rem; font-size: 1.08rem; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 600px){ .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px){
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px){ .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(244,75,23,.28); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(244,75,23,.34); }
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #ddd2c4; }
.btn-ghost { color: var(--orange); padding-inline: .35rem; }
.btn-ghost:hover { color: var(--orange-600); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.arrow { transition: transform var(--transition); }
.btn:hover .arrow, .card-link:hover .arrow { transform: translateX(3px); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 251, 247, .82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(43,42,40,.04); }
.nav { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { height: 34px; width: auto; }
.brand span { color: var(--ink); }

.nav-links { display: none; align-items: center; gap: .35rem; margin-inline: auto; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--ink-soft);
  padding: .5rem .8rem; border-radius: var(--radius-pill); transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--cream-100); }
.nav-links a.active { color: var(--orange); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  padding: .32rem .62rem; border-radius: var(--radius-pill); color: var(--ink-mute); transition: var(--transition);
}
.lang-switch button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.header-cta { display: none; }
@media (min-width: 1000px){
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
}

/* Mobile menu */
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cream-100); border: 1px solid var(--line); }
.menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1000px){ .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 49;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; padding: .85rem .4rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.active { color: var(--orange); }
.mobile-menu .btn { margin-top: 1.2rem; width: 100%; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow::before { content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(244,75,23,.12), transparent 62%); }
.hero-glow::after { content: ""; position: absolute; bottom: -30%; left: -15%; width: 55vw; height: 55vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle, rgba(244,75,23,.07), transparent 62%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 940px){ .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .hl { color: var(--orange); }
.hero .lead { max-width: 30ch; margin-bottom: 2rem; }
@media (min-width: 940px){ .hero .lead { max-width: 46ch; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero-trust svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--orange-050);
  border: 1px solid var(--orange-100); color: var(--orange-600);
  font-weight: 600; font-size: .85rem; padding: .4rem .85rem; border-radius: var(--radius-pill); margin-bottom: 1.4rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---- Connector visual (hero) ----------------------------------------- */
.flow-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.3rem, 3vw, 2rem);
}
.flow-card .flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.flow-card .flow-head .dots { display: flex; gap: 6px; }
.flow-card .flow-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.flow-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--green); }
.flow-status .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,138,91,.5); animation: blip 2s infinite; }
@keyframes blip { 0%{ box-shadow:0 0 0 0 rgba(31,138,91,.4);} 70%{ box-shadow:0 0 0 8px rgba(31,138,91,0);} 100%{ box-shadow:0 0 0 0 rgba(31,138,91,0);} }

.flow-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; }
.flow-node { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem .8rem; text-align: center; }
.flow-node .logo-chip { width: 50px; height: 50px; border-radius: 13px; margin: 0 auto .6rem; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem; }
.flow-node .logo-chip img { width: 30px; height: 30px; object-fit: contain; }
.flow-node .name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.flow-node .sub { font-size: .76rem; color: var(--ink-mute); }
.flow-arrow { display: grid; place-items: center; color: var(--orange); }
.flow-arrow svg { width: 30px; height: 30px; }
.flow-foot { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: var(--ink-soft); }
.flow-foot svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.chip-woo { background: #7f54b3; }
.chip-qb  { background: #2ca01c; }
.chip-stripe { background: #635bff; }
.chip-shopify { background: #5a863e; }
.chip-orange { background: var(--orange); }

/* ---- Cards ------------------------------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e3d9cc; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-050); color: var(--orange); margin-bottom: 1.1rem;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .98rem; }

/* ---- Connector product card ------------------------------------------ */
.connector-card { display: flex; flex-direction: column; }
.connector-card .systems { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.sys-chip {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
}
.sys-chip img { max-width: 82%; max-height: 28px; width: auto; height: auto; object-fit: contain; }
.connector-card .sys-arrow { color: var(--orange); flex: none; }
.connector-card .sys-arrow svg { width: 22px; height: 22px; }
.connector-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.connector-card p { font-size: .96rem; flex-grow: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: .94rem; color: var(--orange); }
.card-link:hover { color: var(--orange-600); }
.card-link svg { width: 16px; height: 16px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .02em; padding: .32rem .7rem; border-radius: var(--radius-pill); }
.badge-soon { background: var(--blue-bg); color: var(--blue); }
.badge-custom { background: var(--orange-050); color: var(--orange-600); }
.badge-live { background: var(--green-bg); color: var(--green); }
.badge-dev { background: #fdf0e2; color: #b4690e; }
.badge-roadmap { background: #eef0f4; color: #5b6573; }
.badge .b-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Custom connector card (accent) */
.card-accent { background: linear-gradient(160deg, var(--ink) 0%, #3a3733 100%); color: var(--cream); border: none; }
.card-accent h3, .card-accent .sys-chip { color: #fff; }
.card-accent p { color: rgba(254,251,247,.78); }
.card-accent .sys-dashed { width: 44px; height: 44px; border-radius: 12px; border: 2px dashed rgba(254,251,247,.4); display: grid; place-items: center; color: var(--orange); }
.card-accent .card-link { color: var(--orange); }

/* ---- Steps ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
@media (min-width: 820px){ .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .98rem; }
.steps-detailed .step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.steps-detailed { counter-reset: step; display: grid; gap: 1.2rem; }
.step-tag { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--orange); letter-spacing: .04em; text-transform: uppercase; }
.step ul.ticks { margin-top: 1rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-size: .97rem; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .42rem; width: 8px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); }
.cta-inner h2 { color: #fff; position: relative; }
.cta-inner p { color: rgba(255,255,255,.9); position: relative; margin: 1rem auto 1.8rem; max-width: 48ch; font-size: 1.1rem; }
.cta-inner .btn-primary { background: #fff; color: var(--orange-600); box-shadow: 0 10px 30px rgba(0,0,0,.18); position: relative; }
.cta-inner .btn-primary:hover { background: var(--cream); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; position: relative; }
.cta-inner .btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.cta-inner .btn-line:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---- Pricing ---------------------------------------------------------- */
.price-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px){ .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); position: relative; }
.price-card .price-kicker { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 2.8rem); color: var(--ink); margin: .5rem 0 .2rem; letter-spacing: -.03em; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-mute); }
.price-card .price-note { font-size: .9rem; color: var(--ink-mute); margin-bottom: 1.3rem; }
.price-card ul.ticks { display: grid; gap: .65rem; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; max-width: 780px; margin-inline: auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 22px; height: 22px; color: var(--orange); transition: transform var(--transition); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; }
.faq-item .faq-body p { font-size: .98rem; }
.faq-item .faq-body p + p { margin-top: .7rem; }

/* ---- Comparison (Zapier / DIY) --------------------------------------- */
.compare { display: grid; gap: var(--gap); }
@media (min-width: 760px){ .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); }
.compare-them { background: var(--white); border: 1px solid var(--line); }
.compare-us { background: var(--ink); color: var(--cream); }
.compare-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.compare-us h3 { color: #fff; }
.compare-card .tag { font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: var(--radius-pill); }
.compare-them .tag { background: var(--cream-100); color: var(--ink-mute); }
.compare-us .tag { background: rgba(244,75,23,.25); color: #ffd3c4; }
.compare-list { display: grid; gap: .85rem; }
.compare-list li { position: relative; padding-left: 2rem; font-size: .98rem; }
.compare-them .compare-list li { color: var(--ink-soft); }
.compare-us .compare-list li { color: rgba(254,251,247,.85); }
.compare-list li .ci { position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; }
.compare-them .ci { color: #c9928a; }
.compare-us .ci { color: #6fce9e; }

/* ---- Blog ------------------------------------------------------------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.chip-filter {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem; padding: .5rem 1rem;
  border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); transition: var(--transition);
}
.chip-filter:hover { border-color: #ddd2c4; color: var(--ink); }
.chip-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.blog-grid { display: grid; gap: clamp(1.4rem, 3vw, 2rem); }
@media (min-width: 680px){ .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-thumb svg { width: 64px; height: 64px; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.thumb-1 { background: linear-gradient(135deg, #F44B17, #d83d0f); }
.thumb-2 { background: linear-gradient(135deg, #2b2a28, #4a463f); }
.thumb-3 { background: linear-gradient(135deg, #7f54b3, #5a3a8a); }
.thumb-4 { background: linear-gradient(135deg, #2ca01c, #1f7a14); }
.post-thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.5px); background-size: 18px 18px; opacity: .5; }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: .82rem; color: var(--ink-mute); }
.post-cat { font-family: var(--font-display); font-weight: 600; color: var(--orange); }
.post-body h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.post-body p { font-size: .95rem; flex-grow: 1; }
.post-body .card-link { margin-top: 1.1rem; }

/* ---- Article ---------------------------------------------------------- */
.article-head { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem); }
.article-head .post-meta { font-size: .9rem; margin-bottom: 1.2rem; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18ch; }
.article-hero { aspect-ratio: 21 / 8; border-radius: var(--radius-lg); display: grid; place-items: center; margin-bottom: clamp(2rem,4vw,3rem); position: relative; overflow: hidden; }
.article-hero svg { width: 90px; height: 90px; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.article-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px); background-size: 22px 22px; opacity: .5; }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose p { color: var(--ink-soft); }
.prose ul { display: grid; gap: .6rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: .1rem; top: .62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose blockquote { border-left: 3px solid var(--orange); padding: .4rem 0 .4rem 1.4rem; font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: var(--ink); font-style: normal; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--orange-050); border: 1px solid var(--orange-100); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.callout p { color: var(--ink); margin: 0; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 880px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: none; }
.contact-method .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-050); color: var(--orange); display: grid; place-items: center; flex: none; }
.contact-method .ic svg { width: 22px; height: 22px; }
.contact-method h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.contact-method p, .contact-method a { font-size: .96rem; color: var(--ink-soft); }
.contact-method a.mail { color: var(--orange); font-weight: 600; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream); color: var(--ink); transition: var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); background: #fff; }
.form-note { font-size: .85rem; color: var(--ink-mute); margin-top: .4rem; }

/* ---- Breadcrumb ------------------------------------------------------- */
.crumb { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.5rem; flex-wrap: wrap; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--orange); }
.crumb svg { width: 15px; height: 15px; }

/* ---- Logo strip / stats ---------------------------------------------- */
.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px){ .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.2rem .5rem; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--orange); letter-spacing: -.02em; }
.stat .l { font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---- Systems logo directory ------------------------------------------ */
.logo-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px){ .logo-grid { grid-template-columns: repeat(3, 1fr); gap: .85rem; } }
@media (min-width: 720px){ .logo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 980px){ .logo-grid { grid-template-columns: repeat(6, 1fr); } }
.logo-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem .6rem .7rem; display: flex; flex-direction: column; align-items: center; gap: .55rem;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e3d9cc; }
.logo-tile .lz { height: 40px; width: 100%; display: grid; place-items: center; }
.logo-tile .lz img { max-height: 38px; max-width: 90%; width: auto; height: auto; object-fit: contain; }
.logo-tile span { font-size: .78rem; color: var(--ink-soft); font-weight: 500; text-align: center; line-height: 1.2; }
.logo-more { text-decoration: none; }
.logo-more .lz { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--orange); }
.logo-more span:last-child { color: var(--orange-600); font-weight: 600; }

/* Compact roadmap connector pills ("Connecteurs en route") */
.route-list { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 0; }
.route-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5rem 1rem .5rem .6rem; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.route-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #e3d9cc; }
.route-pill .rp-logos { display: inline-flex; align-items: center; gap: .35rem; }
.route-pill .rp-logos img { height: 20px; max-width: 30px; width: auto; object-fit: contain; }
.route-pill .rp-name { white-space: nowrap; }

/* ---- Section background variants -------------------------------------- */
.bg-cream2 { background: var(--cream-100); }
.bg-white { background: var(--white); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: var(--section-y); }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 760px){ .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand span { color: #fff; }
.footer-brand p { color: rgba(254,251,247,.65); font-size: .95rem; margin-top: 1rem; max-width: 32ch; }
.footer-slogan { font-family: var(--font-display); color: var(--orange); font-weight: 600; margin-top: 1.2rem; }
.footer-col h4 { font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(254,251,247,.5); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: rgba(254,251,247,.78); padding: .35rem 0; font-size: .96rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(254,251,247,.12); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-bottom p { color: rgba(254,251,247,.55); font-size: .88rem; }
.footer-bottom a { color: rgba(254,251,247,.7); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: .45rem; }
.footer-bottom .made svg { width: 16px; height: 16px; color: var(--orange); }

/* ---- Reveal animation ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ---- Utilities -------------------------------------------------------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--line); border: none; margin-block: var(--section-y); }
