/* ============================================================
   HASHCODE — Site vitrine
   Design system
   ============================================================ */

@import url('fonts.css');

:root {
  /* Brand */
  --blue:       #2C75FF;
  --blue-ink:   #1B5AD6;
  --blue-soft:  #EEF3FF;
  --blue-line:  #D5E2FF;

  --ink:        #1A1718;   /* headings / strong text */
  --brand-dark: #231F20;   /* logo dark */
  --body:       #4C4A4D;   /* body text */
  --muted:      #8A888C;   /* captions */

  --bg:         #FFFFFF;
  --bg-soft:    #F6F7F9;
  --bg-ink:     #121012;   /* dark sections */

  --line:       #E8E9ED;
  --line-strong:#D9DBE1;

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans:    'Manrope', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;

  /* Tweakable */
  --logo-h: 42px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  margin-top: 18px;
  letter-spacing: -0.025em;
}
.section-head p { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--body); max-width: 620px; }

.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-soft); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; gap: 28px;
  transition: padding .25s ease;
}
.nav.is-scrolled .nav__inner { padding-top: 7px; padding-bottom: 7px; }
.nav__right .btn, .lang__toggle { transition: padding .25s ease, background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease; }
.nav.is-scrolled .nav__right .btn { padding-top: 8px; padding-bottom: 8px; }
.nav.is-scrolled .lang__toggle { padding-top: 4px; padding-bottom: 4px; }
.nav__logo { flex: none; display: inline-flex; align-items: center; }
.nav__logo img { height: var(--logo-h); width: auto; max-width: none; transition: height .25s ease, width .25s ease; }
.nav.is-scrolled .nav__logo img { height: 50px !important; width: auto !important; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--body);
  position: relative; padding: 4px 0;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang { position: relative; font-family: var(--mono); }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px 9px; cursor: pointer;
  color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.lang__toggle:hover { border-color: var(--ink); }
.lang__code { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.lang__chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s ease; }
.lang[data-open] .lang__chev { transform: rotate(180deg); }
.lang__flag {
  width: 22px; height: 15px; flex: none; display: inline-flex;
  border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
.lang__flag svg { width: 100%; height: 100%; display: block; }
.lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px;
  min-width: 168px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px -12px rgba(16,24,40,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang[data-open] .lang__list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__list button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: transparent; border: 0; cursor: pointer;
  padding: 9px 10px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink); text-align: left;
  transition: background .12s ease;
}
.lang__list button:hover { background: var(--blue-soft); }
.lang__list button[aria-selected="true"] { color: var(--blue-ink); font-weight: 600; }
.lang__list li { margin: 0; }

.nav__burger { display: none; background: none; border: 0; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ============================================================
   HERO (shared) + variants
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__variant { display: none; }
.hero__variant.is-active { display: block; }

/* dotted grid background utility (kept for non-hero use) */
.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(35,31,32,0.06) 1.4px, transparent 0);
  background-size: 26px 26px;
}
body.no-grid .grid-bg { background-image: none; }

/* hero line-grid layer — rotates on cursor move via JS */
.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(35,31,32,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,31,32,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
}
body.no-grid .hero-grid { display: none; }

/* --- Hero A : éditorial --- */
.heroA { padding-block: clamp(56px, 8vw, 104px); }
.heroA__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.heroA h1 {
  font-size: clamp(38px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink);
}
.heroA h1 .accent { color: var(--blue); }
.heroA .lead { margin-top: 26px; max-width: 520px; }
.heroA .hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.heroA .hero__meta { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__meta .stat .n { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--ink); }
.hero__meta .stat .l { font-size: 13.5px; color: var(--muted); }

/* spec card on hero A right */
.spec {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 24px 60px -32px rgba(20,30,60,0.28);
  overflow: hidden;
}
.spec__top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.spec__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.spec__dot:nth-child(2){ background:#e4c64d;} .spec__dot:nth-child(3){ background:#5fc27e;}
.spec__file { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.spec__body { padding: 20px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; }
.spec__line { display: flex; gap: 12px; }
.spec__ln { color: var(--line-strong); user-select: none; width: 18px; text-align: right; flex: none; }
.spec__k { color: var(--blue); }
.spec__s { color: #8a888c; }
.spec__v { color: var(--ink); }

/* --- Hero B : centré --- */
.heroB { padding-block: clamp(72px, 10vw, 140px); text-align: center; position: relative; }
.heroB .wrap { position: relative; z-index: 2; }
.heroB h1 { font-size: clamp(42px, 7.5vw, 88px); letter-spacing: -0.04em; max-width: 12ch; margin: 22px auto 0; line-height: 1; }
.heroB h1 .accent { color: var(--blue); }
.heroB .lead { margin: 26px auto 0; max-width: 600px; }
.heroB .hero__tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.heroB .hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: hsl(var(--c) 38% 50%);
  border: 1px solid hsl(var(--c) 48% 90%);
  border-radius: 999px; padding: 8px 16px;
  background: hsl(var(--c) 66% 97%);
}
/* watermark mark */
.heroB__mark { position: absolute; z-index: 1; pointer-events: none; opacity: .18; will-change: transform; }
.heroB__mark img { width: clamp(120px, 16vw, 220px); height: auto; display: block; filter: grayscale(1); }
.heroB__mark--tr { top: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); }
.heroB__mark--bl { bottom: clamp(24px, 4vw, 56px); left: clamp(24px, 4vw, 56px); }

/* --- Hero C : offre / services --- */
.heroC { padding-block: clamp(56px, 7vw, 96px); }
.heroC__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.heroC h1 { font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -0.035em; color: var(--ink); }
.heroC h1 .accent { color: var(--blue); }
.heroC .lead { margin-top: 24px; max-width: 480px; }
.heroC .hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.heroC__cards { display: grid; gap: 14px; }
.offer {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.offer:hover { border-color: var(--blue-line); box-shadow: 0 18px 40px -28px rgba(20,30,60,0.3); transform: translateY(-2px); }
.offer__ix { font-family: var(--mono); font-size: 12px; color: var(--blue); border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 7px; padding: 6px 9px; flex: none; }
.offer h3 { font-size: 18px; }
.offer p { font-size: 14.5px; margin-top: 4px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--blue-line); box-shadow: 0 22px 50px -34px rgba(20,30,60,0.32); transform: translateY(-3px); }
.card__ico { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 0; flex: none; }
.card__ico svg { width: 23px; height: 23px; stroke: var(--blue); }
.card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.card__head { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.card__head h3 { margin: 0; }
.card h3 { font-size: 21px; margin: 10px 0 0; }
.card p { font-size: 15px; margin-top: 12px; flex: 1; }
.card__list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__list li { font-size: 14px; color: var(--body); display: flex; gap: 9px; align-items: flex-start; }
.card__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 8px; flex: none; }

.card--feature { grid-column: span 1; }
.card.is-highlight { background: linear-gradient(180deg, var(--blue-soft), #fff); border-color: var(--blue-line); }

/* --- Pastel rainbow per service card --- */
.services-grid .card { --c: 222; }
.services-grid .card:nth-child(2) { --c: 192; }
.services-grid .card:nth-child(3) { --c: 150; }
.services-grid .card:nth-child(4) { --c: 40; }
.services-grid .card:nth-child(5) { --c: 350; }
.services-grid .card:nth-child(6) { --c: 280; }
.services-grid .card {
  background: linear-gradient(180deg, hsl(var(--c) 66% 97.5%), #fff 64%);
  border-color: hsl(var(--c) 48% 90%);
}
.services-grid .card__ico { background: hsl(var(--c) 68% 93%); }
.services-grid .card__ico svg { stroke: hsl(var(--c) 58% 44%); }
.services-grid .card__tag { color: hsl(var(--c) 38% 50%); }
.services-grid .card__list li::before { background: hsl(var(--c) 58% 52%); }
.services-grid .card:hover {
  border-color: hsl(var(--c) 56% 78%);
  box-shadow: 0 22px 50px -34px hsl(var(--c) 50% 40% / .38);
}

/* ============================================================
   ENGAGEMENTS / commitments
   ============================================================ */
.commit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background:#fff; }
.commit {
  padding: 34px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.commit:nth-child(2n) { border-right: 0; }
.commit:nth-last-child(-n+2) { border-bottom: 0; }
.commit__n { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.commit h3 { font-size: 20px; margin: 12px 0 8px; }
.commit p { font-size: 15px; }

/* ============================================================
   AI WORKFLOW (dev piloté par l'IA)
   ============================================================ */
.aiw { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; align-items: stretch; }

.aiw__pipe {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 36px 32px 26px; display: flex; flex-direction: column;
}
.pipe { position: relative; flex: 1; }
.pipe__track { position: absolute; top: 27px; left: 10%; right: 10%; height: 3px; background: var(--line-strong); border-radius: 3px; }
.pipe__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .55s cubic-bezier(.4,0,.2,1), height .55s cubic-bezier(.4,0,.2,1); }
.pipe__token {
  position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%);
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); transition: left .55s cubic-bezier(.4,0,.2,1);
}
.pipe__stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; }
.pstage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pstage__ico {
  width: 54px; height: 54px; border-radius: 50%; background: var(--bg-soft);
  border: 2px solid var(--line-strong); display: grid; place-items: center; position: relative; z-index: 1;
  transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.pstage__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s ease; }
.pstage__t { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); margin-top: 14px; }
.pstage__s { font-size: 12px; color: var(--muted); margin-top: 3px; max-width: 16ch; }
.pstage.is-active .pstage__ico { background: var(--blue-soft); border-color: var(--blue); transform: scale(1.07); box-shadow: 0 0 0 6px var(--blue-soft); }
.pstage.is-active .pstage__ico svg { stroke: var(--blue); }
.pstage.is-done .pstage__ico { background: var(--blue); border-color: var(--blue); }
.pstage.is-done .pstage__ico svg { stroke: #fff; }

.aiw__controls { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
#pipeReplay { font-family: var(--mono); font-size: 13px; padding: 9px 16px; }
.aiw__cap { font-size: 12.5px; color: var(--muted); }

.feed { background: var(--bg-ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.feed__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.feed__name { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: #7d808a; }
.feed__lines { padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.feed__line { color: #c7c9d1; display: flex; gap: 9px; align-items: baseline; opacity: 0; transform: translateY(5px); animation: feedIn .35s ease forwards; }
.feed__line .feed__time { color: #565963; flex: none; }
.feed__line .g { color: var(--blue); flex: none; width: 12px; text-align: center; }
.feed__line.ok .g { color: #5fc27e; }
.feed__line .tx { color: #c7c9d1; }
@keyframes feedIn { to { opacity: 1; transform: none; } }

.aiw__benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.benefit { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.benefit__ico { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--blue-soft); display: grid; place-items: center; }
.benefit__ico svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.benefit__l { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.4; }

/* vertical reflow (mobile) */
.pipe.is-vertical .pipe__track { left: 26px; right: auto; top: 27px; bottom: 27px; width: 3px; height: auto; }
.pipe.is-vertical .pipe__fill { width: 100%; height: 0; }
.pipe.is-vertical .pipe__token { display: none; }
.pipe.is-vertical .pipe__stages { grid-template-columns: 1fr; gap: 22px; }
.pipe.is-vertical .pstage { flex-direction: row; text-align: left; gap: 18px; align-items: center; }
.pipe.is-vertical .pstage__t { margin-top: 0; }
.pipe.is-vertical .pstage__s { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .pipe__fill, .pipe__token, .pstage__ico { transition: none; }
  .feed__line { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   EXPERTISE / tech
   ============================================================ */
.tech { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.tech__col h3 { font-family: var(--display); font-size: 14px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  font-family: var(--mono); font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 13px; background: #fff;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-ink); }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { }
.member__photo {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line); position: relative;
}
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(44,117,255,0.06) 0 10px, rgba(44,117,255,0.0) 10px 20px),
    var(--bg-soft);
  display: grid; place-items: center;
}
.ph span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.member__name { font-family: var(--display); font-weight: 600; color: var(--ink); margin-top: 16px; font-size: 17px; }
.member__role { font-size: 14px; color: var(--blue-ink); }

/* founders */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 44px; }
.founder { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background:#fff; }
.founder__photo { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__name { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 19px; }
.founder__role { font-size: 14px; color: var(--blue-ink); }
.founder__bio { font-size: 14px; margin-top: 6px; }
.founder__linkedin { margin-top: 10px; display: inline-block; color: var(--blue-ink); opacity: .7; transition: opacity .15s; }
.founder__linkedin:hover { opacity: 1; }
[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "hashcode" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-social-linkedin:before { content: "g"; }
.flarge { font-size: 2rem; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client {
  aspect-ratio: 16/8; display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.client span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.client__logo { max-width: 70%; max-height: 28px; object-fit: contain; }
@media (min-width: 821px){
  .client:nth-child(4n) { border-right: 0; }
  .client:nth-last-child(-n+4) { border-bottom: 0; }
}

/* ============================================================
   RECRUITMENT (dark band)
   ============================================================ */
.recruit { background: var(--bg-soft); color: var(--body); border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.recruit__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.recruit h2 { color: var(--ink); font-size: clamp(28px, 4vw, 44px); }
.recruit p { margin-top: 16px; color: var(--body); max-width: 460px; }
.recruit__side { display: flex; flex-direction: column; gap: 10px; }
.recruit__role { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; transition: border-color .15s, background .15s; }
.recruit__role:hover { border-color: var(--blue); background: rgba(44,117,255,0.08); }
.recruit__role .r { color: var(--ink); font-weight: 600; font-size: 15px; }
.recruit__role .t { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.recruit__deco { position: absolute; right: -60px; top: -60px; font-family: var(--mono); color: rgba(0,0,0,0.04); font-size: 13px; line-height: 1.8; white-space: pre; z-index: 1; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 64px); }
.contact__info p { font-size: 15.5px; }

/* prominent booking CTA */
.book-cta {
  display: flex; align-items: center; gap: 16px;
  margin-top: 26px; padding: 18px 20px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -22px rgba(44,117,255,0.65);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.book-cta:hover { background: var(--blue-ink); transform: translateY(-2px); box-shadow: 0 24px 50px -22px rgba(44,117,255,0.7); }
.book-cta:active { transform: translateY(0); }
.book-cta__ico {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(255,255,255,0.16); display: grid; place-items: center;
}
.book-cta__ico svg { width: 22px; height: 22px; }
.book-cta__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.book-cta__t { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.book-cta__s { font-size: 13px; color: rgba(255,255,255,0.82); }
.book-cta__arr { font-size: 20px; transition: transform .15s ease; }
.book-cta:hover .book-cta__arr { transform: translateX(3px); }
.contact__block { margin-top: 26px; }
.contact__block .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__block .v { color: var(--ink); font-weight: 500; margin-top: 4px; }
.contact__block .v a:hover { color: var(--blue-ink); }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__foot { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 12.5px; color: var(--muted); max-width: 360px; }
.form__note a { color: inherit; text-decoration: underline; }
.form__ok  { grid-column: 1/-1; display: none; align-items: center; gap: 10px; color: var(--blue-ink); font-weight: 600; background: var(--blue-soft); border:1px solid var(--blue-line); border-radius: 10px; padding: 14px 16px; }
.form__ok.show  { display: flex; }
.form__err { grid-column: 1/-1; display: none; align-items: center; gap: 10px; color: #7b1d1d; font-weight: 600; background: #fef2f2; border:1px solid #fca5a5; border-radius: 10px; padding: 14px 16px; }
.form__err.show { display: flex; }
.form__err a { color: inherit; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo img { height: 28px; }
.footer__tag { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 280px; }
.footer h4 { font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: var(--body); margin-bottom: 9px; transition: color .15s; }
.footer__col a:hover { color: var(--blue-ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.footer__bottom p { font-size: 13px; color: var(--muted); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.footer__social a:hover { border-color: var(--blue); background: var(--blue-soft); }
.footer__social svg { width: 17px; height: 17px; }
.footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__legal a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer__legal a:hover { color: var(--blue-ink); }

/* Legal pages */
.legal-main { padding-top: 60px; padding-bottom: 80px; }
.legal-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.legal-header h1 { font-size: clamp(26px, 4vw, 44px); }
.legal-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-section h2 { font-size: 18px; margin-bottom: 16px; }
.legal-h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--ink); }
.legal-section p { line-height: 1.75; color: var(--body); margin-bottom: 10px; }
.legal-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; }
.legal-dt { color: var(--muted); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.legal-dd { color: var(--body); font-size: 14.5px; margin: 0; }
.legal-section a { color: var(--blue); }
.legal-section a:hover { text-decoration: underline; }
.legal-section code { font-family: var(--mono); font-size: 13px; background: var(--blue-soft); padding: 1px 5px; border-radius: 4px; }
.legal-list { margin: 12px 0 12px 20px; line-height: 2; color: var(--body); font-size: 15px; }
@media (max-width: 600px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dt { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
}

/* ============================================================
   HERO SWITCHER (comparison tool — removable)
   ============================================================ */
.heroswitch {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 4px;
  background: rgba(18,16,18,0.92); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
}
.heroswitch__label { font-family: var(--mono); font-size: 10.5px; color: #8b8d96; padding: 0 8px 0 6px; letter-spacing: .06em; }
.heroswitch button { background: transparent; border: 0; color: #b9bbc4; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 8px; transition: background .15s, color .15s; }
.heroswitch button.is-active { background: var(--blue); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.nav__panel { display: none; }

@media (max-width: 1000px) {
  /* collapse nav into burger menu (the enlarged logo needs the room) */
  .nav__links { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__right .btn { display: none; }
  .nav__panel.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px var(--gut) 22px;
  }
  .nav__panel a { padding: 11px 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__panel .btn { margin-top: 12px; justify-content: center; }
  .nav__panel .btn--primary { color: #fff; border-bottom: 0; }
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .tech, .heroC__grid, .recruit__grid, .contact { grid-template-columns: 1fr; }
  .aiw { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .heroA__grid { grid-template-columns: 1fr; }
  .spec { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .commit-grid { grid-template-columns: 1fr; }
  .commit { border-right: 0 !important; }
  .commit:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { border-right: 1px solid var(--line) !important; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .aiw__benefits { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .heroswitch__label { display: none; }
}

/* ============================================================
   SERVICE CARD AFFORDANCE + DETAIL MODAL
   ============================================================ */
.services-grid .card { cursor: pointer; }
.card__more {
  margin-top: 20px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: hsl(var(--c) 50% 42%);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .85; transition: gap .15s ease, opacity .15s ease;
}
.card__more::after {
  content: "";
  width: 18px; height: 18px; border-radius: 50%;
  background: hsl(var(--c) 55% 52%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 11px no-repeat;
  transition: transform .15s ease;
}
.services-grid .card:hover .card__more { opacity: 1; }
.services-grid .card:hover .card__more::after { transform: translateX(3px); }
.services-grid .card:focus-visible { outline: 2px solid hsl(var(--c) 58% 55%); outline-offset: 3px; }

.svc-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.svc-modal[hidden] { display: none; }
.svc-modal__backdrop {
  position: absolute; inset: 0; background: rgba(16,22,38,.46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s ease;
}
.svc-modal[data-open] .svc-modal__backdrop { opacity: 1; }
.svc-modal__panel {
  --c: 222;
  position: relative; z-index: 1; width: min(620px, 100%);
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 20px;
  border: 1px solid hsl(var(--c) 40% 90%);
  box-shadow: 0 40px 90px -30px rgba(16,22,38,.5);
  padding: 34px 36px 30px;
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}
.svc-modal[data-open] .svc-modal__panel { opacity: 1; transform: none; }
.svc-modal__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 130px; z-index: -1;
  background: linear-gradient(180deg, hsl(var(--c) 70% 96%), #fff);
  border-radius: 20px 20px 0 0;
}
.svc-modal__close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.svc-modal__close:hover { background: #f3f5f9; color: var(--ink); border-color: var(--line-strong); }
.svc-modal__close svg { width: 18px; height: 18px; }
.svc-modal__head { display: flex; align-items: center; gap: 16px; padding-right: 42px; }
.svc-modal__ico {
  width: 54px; height: 54px; flex: none; border-radius: 13px;
  background: hsl(var(--c) 68% 92%); display: grid; place-items: center;
}
.svc-modal__ico svg { width: 27px; height: 27px; stroke: hsl(var(--c) 58% 44%); fill: none; }
.svc-modal__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--c) 38% 50%); }
.svc-modal__head h3 { font-size: 25px; margin: 3px 0 0; letter-spacing: -.02em; }
.svc-modal__intro { margin-top: 20px; font-size: 16px; line-height: 1.55; color: var(--body); }
.svc-modal__exlabel { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.svc-modal__examples { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.svc-ex {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 16px; border-radius: 13px;
  background: hsl(var(--c) 60% 97.5%); border: 1px solid hsl(var(--c) 45% 92%);
}
.svc-ex__n {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: #fff; background: hsl(var(--c) 55% 52%);
}
.svc-ex__body { min-width: 0; flex: 1; }
.svc-ex__body strong { display: block; font-size: 15.5px; color: var(--ink); }
.svc-ex__body p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
/* mini situation → intervention → résultat diagram */
.svc-flow { margin-top: 11px; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.svc-fnode {
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 9px 9px; border-radius: 9px;
  font-size: 12px; line-height: 1.22; font-weight: 500; text-wrap: balance;
  background: #fff; border: 1px solid hsl(var(--c) 40% 88%); color: var(--body);
}
.svc-fnode.is-key {
  background: hsl(var(--c) 55% 50%); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 15px -9px hsl(var(--c) 55% 42% / .9);
}
.svc-fnode.is-out {
  background: hsl(var(--c) 58% 96%); border-color: hsl(var(--c) 45% 84%);
  color: hsl(var(--c) 42% 32%); font-weight: 600;
}
.svc-farr { flex: none; align-self: center; display: grid; place-items: center; color: hsl(var(--c) 48% 62%); }
.svc-farr svg { width: 15px; height: 15px; }
.svc-modal__foot { margin-top: 26px; }
.svc-modal__foot .btn { width: 100%; justify-content: center; }

/* ---- service modal: technical diagram view ---- */
.svc-dia[hidden] { display: none; }
.svc-case__back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: hsl(var(--c) 45% 46%); transition: color .15s ease;
}
.svc-case__back:hover { color: hsl(var(--c) 55% 38%); }
.svc-case__back svg { width: 15px; height: 15px; }

.svc-dia__title {
  margin-top: 16px; font-family: var(--display); font-size: 20px; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); line-height: 1.3; text-wrap: balance;
}
.svc-dia__flow {
  margin-top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 0;
  border-radius: 16px; padding: 22px 20px;
  background:
    radial-gradient(hsl(var(--c) 45% 86%) 1px, transparent 1.4px) 0 0 / 17px 17px,
    hsl(var(--c) 60% 98.5%);
  border: 1px solid hsl(var(--c) 45% 91%);
}
.svc-stage {
  position: relative; border-radius: 13px; padding: 14px 16px 15px 54px;
  background: #fff; border: 1px solid hsl(var(--c) 40% 89%);
  box-shadow: 0 4px 12px -7px hsl(var(--c) 40% 45% / .45);
}
.svc-stage__n {
  position: absolute; left: 15px; top: 14px;
  width: 27px; height: 27px; border-radius: 8px; box-sizing: border-box;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: #fff; background: hsl(var(--c) 55% 52%);
}
.svc-stage__n svg { width: 15px; height: 15px; }
.svc-stage strong { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.svc-stage p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.svc-stage__tech { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tech {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .01em; white-space: nowrap;
  color: hsl(var(--c) 42% 40%); background: hsl(var(--c) 62% 95%);
  border: 1px solid hsl(var(--c) 45% 87%); border-radius: 6px; padding: 3px 8px;
}
/* highlighted core step */
.svc-stage.is-key {
  background: hsl(var(--c) 55% 50%); border-color: transparent;
  box-shadow: 0 10px 26px -12px hsl(var(--c) 55% 42% / .8);
}
.svc-stage.is-key .svc-stage__n { background: rgba(255,255,255,.22); }
.svc-stage.is-key strong { color: #fff; }
.svc-stage.is-key p { color: hsl(var(--c) 75% 93%); }
.svc-stage.is-key .svc-tech {
  color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3);
}
/* cross-cutting / control step */
.svc-stage.is-check {
  background: hsl(var(--c) 58% 98%); border-style: dashed; border-color: hsl(var(--c) 45% 74%);
}
.svc-stage.is-check .svc-stage__n {
  background: none; color: hsl(var(--c) 50% 46%);
  border: 1.5px solid hsl(var(--c) 48% 70%);
}
/* connector between stages */
.svc-conn {
  align-self: center; width: 2px; height: 18px; margin: 0 0 0 -38px;
  background: hsl(var(--c) 48% 78%); position: relative;
}
.svc-conn::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid hsl(var(--c) 48% 70%);
}
.svc-dia__cap {
  margin-top: 18px; padding-left: 14px; border-left: 3px solid hsl(var(--c) 55% 58%);
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
}

@media (max-width: 520px) {
  .svc-dia__flow { padding: 18px 14px; }
  .svc-stage { padding: 13px 14px 14px 50px; }
  .svc-conn { margin-left: -36px; }
  .svc-flow { flex-direction: column; align-items: stretch; gap: 5px; }
  .svc-farr { transform: rotate(90deg); }
  .svc-modal__panel { padding: 26px 22px 24px; border-radius: 18px; }
  .svc-modal__head h3 { font-size: 22px; }
}
