/* ───────────────────────────────────────────────────────────────────────────
   logafi — the parent company's site (Vercel project `logafi`, logafi.com).

   One stylesheet for the whole site, because there are now two documents:
   index.html and a-propos.html. They share this file rather than each
   carrying a copy of it — two inline <style> blocks would have been the same
   250 lines maintained twice, and the second copy is the one nobody
   remembers to update. There is still no build step: Vercel serves this
   directory as it is, so what is committed here is byte-for-byte what
   production returns.

   Palette: the ink is the logafi mark itself (#0e1924), and the two logo
   files the pages load are the supplied artwork with the white background cut
   out to alpha (ink version + white version for the dark footer).

   The blues are Snowflake's own tokens, not an approximation of them — this
   firm's practice is Snowflake, so the site reads in the ecosystem's colours
   rather than a generic navy. A nod, not a costume: only the palette is
   borrowed, on logafi's own layout, type and ink.

   Their system, read off snowflake.com's stylesheet, is the part worth
   copying, because the famous #29b5e8 is not their interface blue:

     --ui-01  #249edc  the working blue — filled buttons, ~340 uses
     --ui-02  #11567f  deep blue — the hover of those buttons, and text
     --ui-04  #29b5e8  the logo blue — ~26 uses: icons, rules, one banner
     --ui-11  #76d0f1  the blue that goes on a dark ground
     --text-01 #000    body and headings are black; blue is never the text

   So the mapping here: --accent is #249edc and fills things, --accent-deep
   is #11567f and is what has to be read (7.9:1 on white), --glacier is
   #29b5e8 and stays graphic — the hero wash, a hover border, an icon plate.
   One deliberate departure: Snowflake's own filled button is white on
   #249edc, which is 3.0:1 and short of AA, so the label here is --ink
   instead (5.9:1) and only turns white on the deep hover (7.9:1). The blue
   is theirs; the label is legible. The hero's one blue word keeps #249edc —
   at 34px and up it is large text, where 3.0:1 is the AA bar.

   Bilingual FR/EN with no framework: French is the markup, English lives in
   `data-en` attributes, and site.js swaps textContent. With JS off both pages
   still read correctly — in French, the default for the Québec market (same
   choice as the Dorafi app's i18n, see
   dorafi/admin/src/i18n/LanguageContext.jsx).
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --ink: #0e1924;
  --ink-soft: #1f2b3a;
  --muted: #666666;
  --line: rgba(160, 187, 204, 0.55);
  --line-soft: rgba(160, 187, 204, 0.30);
  --surface: #f6f9fa;
  --white: #ffffff;
  --accent: #249edc;
  --accent-deep: #11567f;
  --glacier: #29b5e8;
  --on-dark: #a0bbcc;
  --on-dark-dim: #98a2b3;
  --on-dark-blue: #76d0f1;
  --sky-bg: #ecf1f5;
  --sky-ink: #11567f;
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3 { font-family: 'Poppins', 'Inter', system-ui, sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* The header is sticky, so an anchor jump has to clear it. */
section[id], #top { scroll-margin-top: 90px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.lead { font-size: 17px; color: var(--muted); max-width: 62ch; }

:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 100; font-size: 14px;
}
.skip:focus { left: 16px; }

/* ── Header ───────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 124px; height: auto; }
nav.main { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
nav.main a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .18s ease, color .18s ease; }
nav.main a:hover { color: var(--ink); border-color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
nav.main + .bar-end { margin-left: 0; }

/* The phone menu's button. Hidden on a wide screen, where the nav is a row
   in the bar; below 780px it is the only way into the nav (see the media
   query at the bottom of this file). */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle .bars { display: block; position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
/* The bars become an X while the panel is open. `aria-expanded` is the state
   a screen reader reads and the state the CSS draws — one source, not two. */
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Read aloud, never drawn — the button is three bars, which name nothing. */
.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;
}

/* The bar's "Nous joindre" does not fit next to four nav items, the language
   toggle and the menu button at 375px, so on a phone it is hidden there and
   this copy, inside the panel, is what the visitor gets. */
.nav-cta { display: none; }

.lang {
  display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; background: var(--white);
}
.lang button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 4px 10px; border-radius: 999px; line-height: 1.4;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--on-dark-blue); }
.btn-outline-light { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 84px 0 64px; background:
    radial-gradient(1100px 480px at 12% -10%, rgba(41,181,232,.16) 0%, rgba(41,181,232,0) 62%),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); max-width: 17ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.fact {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; color: var(--ink-soft);
}
.fact svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent); }

/* ── Generic section ──────────────────────────────────────────────── */
section { padding: 86px 0; }
.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { margin-top: 16px; color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(41,181,232,.55); box-shadow: 0 10px 30px -18px rgba(17,86,127,.42); transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(41,181,232,.10);
  border: 1px solid rgba(41,181,232,.22); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-deep);
}
.card .ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ── Snowflake / certification ────────────────────────────────────── */
.split { display: grid; gap: 48px; grid-template-columns: 1.05fr 0.95fr; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.cert {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px;
  box-shadow: 0 24px 60px -40px rgba(17,86,127,.55);
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--sky-ink);
  background: var(--sky-bg); border-radius: 999px; padding: 6px 13px;
}
.cert-badge svg { width: 14px; height: 14px; }
.cert h3 { font-size: 24px; margin: 18px 0 6px; }
.cert .issuer { font-size: 13.5px; color: var(--muted); }
.cert ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.cert li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; }
.cert li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ── Method ───────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--accent-deep);
  letter-spacing: .1em; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ── Dorafi band ──────────────────────────────────────────────────── */
.band { background: var(--ink); color: #fff; }
.band .eyebrow { color: var(--on-dark-blue); }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.band p { color: var(--on-dark); }
.product { display: grid; gap: 44px; grid-template-columns: 1fr 0.85fr; align-items: center; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 32px; } }
.product .lead { color: var(--on-dark); font-size: 16.5px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(41,181,232,.28);
  border-radius: 20px; padding: 22px;
}
.chat .head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.chat .avatar { width: 34px; height: 34px; border-radius: 11px; background: var(--glacier); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.chat .avatar svg { width: 17px; height: 17px; }
.chat .name { font-size: 14px; font-weight: 600; }
.chat .online { font-size: 11px; color: #7fd7a6; display: flex; align-items: center; gap: 5px; }
.chat .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.chat .msgs { display: grid; gap: 10px; padding-top: 16px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.6; }
.bubble.user { margin-left: auto; background: #fff; color: var(--ink); border-bottom-right-radius: 5px; }
.bubble.bot { background: rgba(255,255,255,.1); color: #ecf1f5; border-bottom-left-radius: 5px; }
.chat .note { font-size: 11px; color: var(--on-dark); text-align: center; margin-top: 16px; }

/* ── Contact ──────────────────────────────────────────────────────── */
.contact { text-align: center; }
.contact h2 { font-size: clamp(26px, 3.6vw, 40px); max-width: 20ch; margin: 0 auto; }
.contact p { margin: 20px auto 0; color: var(--muted); max-width: 56ch; }
.contact .hero-actions { justify-content: center; margin-top: 32px; }
.mailto { font-size: 14px; color: var(--muted); margin-top: 22px; }
.mailto a { color: var(--accent-deep); font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer.site { background: var(--ink); color: var(--on-dark); padding: 56px 0 40px; font-size: 13.5px; }
footer.site img { width: 116px; height: auto; }
.foot-top { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.foot-top p { max-width: 40ch; margin-top: 16px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a { color: #ecf1f5; text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--on-dark);
}
/* Snowflake is named throughout — as the certification's issuer and as what
   the migrations target — and the page is painted in their palette. Neither
   needs permission (nominative use, and a colour is not a work), but saying
   so outright costs one line and removes any question of endorsement. */
.foot-legal { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--on-dark-dim); max-width: 78ch; }

/* ── Inner page head (a-propos.html) ──────────────────────────────── */
/* The home page opens on a full hero; an inner page opens on the same wash
   at two thirds the height, so the two read as one site without the second
   one pretending to be a landing page. */
.page-head { padding: 72px 0 56px; background:
    radial-gradient(1100px 480px at 12% -10%, rgba(41,181,232,.16) 0%, rgba(41,181,232,0) 62%),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: 20ch; }
.page-head .lead { margin-top: 20px; font-size: 18px; }

/* The current page in the header nav. `aria-current="page"` carries it for a
   screen reader; this is the same statement for everyone else. */
nav.main a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* ── People ───────────────────────────────────────────────────────── */
.people { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.person {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
/* Initials, not a portrait: there is no photograph of either of them in this
   repository, and a stock face would be a lie on an about page. */
.person .mono {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--sky-bg); color: var(--sky-ink); border: 1px solid rgba(41,181,232,.28);
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .02em;
  margin-bottom: 20px;
}
.person h3 { font-size: 19px; }
.person .role { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); }
.person .bio { margin-top: 16px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.person .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.person .tag {
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* A band with nothing beside it. The home page's Dorafi band is a two-column
   .product (copy + chat mock-up); this one is copy alone, so it is centred
   instead of left-aligned against an empty half. */
.band-solo { max-width: 62ch; margin: 0 auto; text-align: center; }
.band-solo .product-actions { justify-content: center; }

/* ── Values ───────────────────────────────────────────────────────── */
/* Two columns, fixed rather than auto-fit: there are four of these, and
   auto-fit put three on a row and left the fourth alone next to a gap. */
.values { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value h3 { font-size: 17px; margin-bottom: 10px; }
.value p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.value .ico {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(41,181,232,.10);
  border: 1px solid rgba(41,181,232,.22); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-deep);
}
.value .ico svg { width: 20px; height: 20px; }

/* ── Reveal on scroll (progressive enhancement) ───────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 780px) {
  /* The nav stops being a row in the bar and becomes a panel under the
     header, opened by .menu-toggle. It used to be `display: none` with
     nothing in its place, which left a phone with no navigation at all —
     every section anchor and /a-propos reachable only from the footer.

     Closed is still `display: none` rather than a `hidden` attribute or
     visibility: it keeps the links out of the tab order with no second piece
     of state for the script to keep in sync — the class on the header is the
     whole state. */
  nav.main { display: none; }
  nav.main + .bar-end { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .bar-end .btn-primary { display: none; }

  /* header.site is sticky, which is a positioned value, so it is what the
     panel anchors to. */
  header.site.nav-open nav.main {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px 24px 18px; font-size: 15px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -28px rgba(17, 86, 127, .5);
  }
  /* A rule between the items, drawn on the top edge so the first one and the
     button below it do not each carry a stray line. */
  header.site.nav-open nav.main a:not(.nav-cta) {
    padding: 13px 2px; border-bottom: 0; border-top: 1px solid var(--line-soft);
  }
  header.site.nav-open nav.main a:not(.nav-cta):first-child { border-top: 0; }
  header.site.nav-open nav.main a:not(.nav-cta):hover { border-color: var(--line-soft); }
  header.site.nav-open nav.main a[aria-current="page"] { color: var(--accent-deep); border-color: var(--line-soft); }
  .nav-cta { display: inline-flex; margin-top: 16px; }
  .bar { height: 64px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 64px 0; }
  .card, .step, .cert, .person, .value { padding: 24px; }
  .page-head { padding: 52px 0 44px; }
}
