/* =========================================================
   VISTELYS : Beyond what you see
   Thèmes : [data-theme="dark"] (défaut) et [data-theme="light"]
   ========================================================= */
:root,
:root[data-theme="dark"] {
  --bg: #06080c;
  --bg-2: #0a0e14;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f6;
  --muted: #8e99a5;
  --accent: #6fd8f2;
  --accent-2: #9d8cff;
  --accent-soft: rgba(111, 216, 242, 0.1);
  --nav-bg: rgba(6, 8, 12, 0.7);
  --btn-bg: #eef2f6;
  --btn-text: #06080c;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: rgba(64, 82, 94, 0.45);
  --grid-line: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #eef1f4;
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --border: rgba(16, 28, 38, 0.08);
  --border-strong: rgba(16, 28, 38, 0.18);
  --text: #0f1922;
  --muted: #5a6773;
  --accent: #0b84a5;
  --accent-2: #5b4fd6;
  --accent-soft: rgba(11, 132, 165, 0.08);
  --nav-bg: rgba(246, 247, 249, 0.78);
  --btn-bg: #0f1922;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(16, 28, 38, 0.04), 0 18px 40px -24px rgba(16, 28, 38, 0.22);
  --glow: rgba(111, 216, 242, 0.22);
  --grid-line: rgba(16, 28, 38, 0.05);
  color-scheme: light;
}
:root {
  --slate: #40525e;   /* couleur du logo */
  --spectrum: linear-gradient(90deg, #9d8cff, #6fd8f2 40%, #7ee8b4 65%, #ffd27a 82%, #ff8fca);
  --radius: 20px;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; margin: 0; font-weight: 600; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Logos selon le thème */
[data-theme="dark"] .logo-on-light,
[data-theme="light"] .logo-on-dark { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .4s, height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 76px;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-color: var(--border);
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { width: 48px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.04); }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .26em; font-size: 19px; }

.nav-links {
  display: flex; align-items: center; gap: 4px; font-size: 15.5px; font-weight: 500;
  padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}
.nav-links a { color: var(--muted); padding: 9px 18px; border-radius: 999px; transition: color .25s, background .25s, box-shadow .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.mobile-only { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch { display: flex; height: 44px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface); }
.lang-switch button {
  height: 34px; background: none; border: 0; color: var(--muted); font: 600 13px var(--font-display);
  padding: 0 13px; border-radius: 999px; cursor: pointer; letter-spacing: .08em; transition: .25s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--btn-bg); color: var(--btn-text); }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; display: grid; place-items: center; position: relative; overflow: hidden; transition: border-color .25s;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle svg {
  position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease), opacity .4s;
}
[data-theme="dark"] .icon-moon { transform: translateY(140%) rotate(-60deg); opacity: 0; }
[data-theme="light"] .icon-sun { transform: translateY(-140%) rotate(60deg); opacity: 0; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px; font: 500 15.5px var(--font-display); letter-spacing: -0.005em;
  cursor: pointer; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px var(--accent-soft), 0 14px 34px -14px var(--accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 128px; overflow: hidden; isolation: isolate;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
}
.hero::after { /* fondu vers la section suivante */
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-content { max-width: 1040px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 32px;
  padding: 8px 18px 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); background: var(--surface);
  backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-title { font-size: clamp(52px, 10.5vw, 140px); line-height: .94; letter-spacing: -0.04em; font-weight: 600; }
.hero-title span { display: block; }
.gradient-text {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 45%, var(--accent-2) 75%, var(--text) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 10s ease-in-out infinite alternate;
  padding-bottom: .06em;
}
@keyframes shine { to { background-position: 100% center; } }
.hero-tagline {
  margin: 26px 0 0;
  font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--muted);
}
.hero-sub { max-width: 660px; margin: 34px auto 44px; color: var(--muted); font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--border-strong); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scroll 2s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border); overflow: hidden; padding: 26px 0; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 60s linear infinite; font: 500 clamp(17px, 2vw, 22px) var(--font-display); letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: .55em; align-self: center; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Option B : pastilles de mots-clés en bas du hero ---------- */
.hero-pills {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: min(980px, calc(100% - 2 * var(--gutter))); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero-pills-track { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 10px; width: max-content; animation: marquee 55s linear infinite; }
.hero-pills:hover .hero-pills-track { animation-play-state: paused; }
.hero-pills-track li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .25s, border-color .25s;
}
.hero-pills-track li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }
.hero-pills-track li:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 12vw, 160px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.section-alt {
  max-width: none; background: var(--bg-2); border-block: 1px solid var(--border);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.section-head { max-width: 780px; margin-bottom: 72px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: 18.5px; margin: 24px 0 0; max-width: 620px; }
.lead em { color: var(--text); font-style: normal; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 36px 34px 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
}
.card::after { /* fine ligne lumineuse en haut */
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 28px; background: var(--accent-soft); border: 1px solid var(--border); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.25; }
.card p { color: var(--muted); margin: 0 0 24px; font-size: 15.5px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--bg); }

/* ---------- Pipeline ---------- */
.pipeline { list-style: none; padding: 0; margin: 0 0 88px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.pipeline::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: var(--spectrum); opacity: .55; }
.step { padding: 0 24px 0 0; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-strong); font: 600 13px var(--font-display); color: var(--accent);
  margin-bottom: 26px; position: relative; transition: .3s;
}
.step:hover .step-num { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.stat-num, .stat-unit { font: 600 clamp(44px, 5vw, 60px) var(--font-display); letter-spacing: -0.04em; color: var(--text); }
.stat-unit { font-size: clamp(20px, 2.4vw, 28px); margin-left: 4px; color: var(--accent); letter-spacing: -0.01em; }
.stat p { color: var(--muted); margin: 8px 0 0; font-size: 14.5px; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sector { padding: 40px 36px; background: var(--bg); transition: background .35s; position: relative; }
.sector:hover { background: var(--surface-hover); }
.sector h3 { font-size: 20px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sector h3::after { content: "↗"; font-size: 17px; color: var(--muted); transition: transform .35s var(--ease), color .35s; }
.sector:hover h3::after { transform: translate(3px, -3px); color: var(--accent); }
.sector p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.about-visual { display: grid; place-items: center; }
.lens {
  width: min(440px, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 32% 28%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(157, 140, 255, .12), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 140px var(--glow);
}
.lens::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, #9d8cff, #6fd8f2, #7ee8b4, #ffd27a, #ff8fca, #9d8cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 14s linear infinite;
}
.lens::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.lens img { width: 50%; animation: float 7s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about-text p { color: var(--muted); font-size: 17.5px; }
.about-text h2 { margin-bottom: 28px; }
blockquote { margin: 36px 0 0; padding: 22px 26px; border-radius: 14px; border: 1px solid var(--border); border-left: 2px solid var(--accent); background: var(--surface); font: 600 22px var(--font-display); letter-spacing: -0.02em; }
blockquote span { color: var(--muted); font-weight: 400; font-size: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); }
.contact-list { list-style: none; padding: 0; margin: 44px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.contact-list li:first-child { border-top: 1px solid var(--border); }
.contact-list span { color: var(--muted); font-size: 14px; }
.contact-list a { font-weight: 500; transition: color .25s; }
.contact-list a:hover { color: var(--accent); }
.contact-form { padding: 40px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 18px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; font: 15.5px var(--font-body); resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field input:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field label { position: absolute; left: 18px; top: 17px; color: var(--muted); font-size: 15.5px; pointer-events: none; transition: .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; color: var(--accent); letter-spacing: .03em; font-weight: 500; }
.form-status { margin: 0; font-size: 14px; color: var(--accent); min-height: 1.2em; }
.form-status.is-error { color: #e5484d; }
.form-status.is-success { color: #1fa971; }
.contact-form button[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px var(--gutter); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 46px; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: .24em; font-weight: 600; font-size: 16px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: .25s; }
.socials a:hover { color: var(--btn-text); background: var(--btn-bg); border-color: var(--btn-bg); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.copy { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-btn { display: none; }
  .nav-links a { padding: 9px 14px; }
}
@media (max-width: 980px) {
  .cards, .sectors { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; gap: 30px; padding-left: 70px; }
  .pipeline::before { top: 0; bottom: 0; left: 23px; right: auto; width: 1px; height: auto; background: linear-gradient(#9d8cff, #6fd8f2, #ff8fca); }
  .step-num { position: absolute; left: -70px; top: -8px; margin: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 76px; }
  .burger { display: block; }
  .brand-logo { width: 42px; }
  .brand-name { font-size: 17px; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--bg); border: 0; border-radius: 0; padding: 0;
    font-size: 26px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
    opacity: 0; pointer-events: none; transition: opacity .35s; z-index: -1;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  /* Menu ouvert : on retire le flou de la barre (sinon le menu plein écran est coupé) */
  .nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav-links { overscroll-behavior: contain; touch-action: none; }
  .nav-links a { color: var(--text); padding: 10px 24px; }
  .nav-links a.active { box-shadow: none; background: none; color: var(--accent); }
  .mobile-only { display: inline-block; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; letter-spacing: .2em; }
  .brand { gap: 10px; }
  .brand-logo { width: 38px; }
  .nav-right { gap: 6px; }
  .lang-switch button { padding: 0 10px; }
}
@media (max-width: 640px) {
  .hero-pills { bottom: 24px; }
  .hero-pills-track li { font-size: 12.5px; padding: 7px 13px; }
  .cards, .sectors, .stats { grid-template-columns: 1fr; }
  .card, .contact-form { padding: 28px; }
  .sector { padding: 30px 26px; }
}
/* ---------- Bouton « remonter en haut » (ordinateur / tablette) ---------- */
.totop {
  position: fixed; right: 28px; bottom: 28px; z-index: 55; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45), 0 0 0 5px var(--accent-soft);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-2px); }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   TÉLÉPHONE : mode « application » (≤ 760 px)
   L'affichage ordinateur et tablette n'est pas concerné.
   ========================================================= */
/* =========================================================
   CONTENU : chiffres clés, réalisations, équipe, contact
   ========================================================= */
:root, :root[data-theme="dark"] { --c-photon: #9d8cff; --c-ai: #6fd8f2; --c-edge: #7ee8b4; }
:root[data-theme="light"] { --c-photon: #6a56e0; --c-ai: #0b84a5; --c-edge: #1f9f6e; }

/* ---------- Bande de chiffres clés ---------- */
.proof { border-block: 1px solid var(--border); background: var(--bg-2); }
.proof-inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.proof-item { padding-left: 18px; border-left: 2px solid; border-image: linear-gradient(var(--c-ai), var(--c-photon)) 1; }
.proof-num { display: block; font: 600 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.proof-item p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- « Détail technique » dépliable (cartes et réalisations) ---------- */
details.tech { margin: 2px 0 18px; border-top: 1px solid var(--border); }
details.tech summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 0 3px; font: 600 12.5px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
details.tech[open] summary svg { transform: rotate(180deg); }
details.tech p { margin: 10px 0 0 !important; font-size: 14px !important; line-height: 1.62; color: var(--muted); }
.card .card-benefit { color: var(--text); opacity: .88; margin-bottom: 18px; }

/* ---------- Réalisations ---------- */
#projects .section-head { margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 500 14px var(--font-body);
  cursor: pointer; transition: color .25s, background .25s, border-color .25s; -webkit-tap-highlight-color: transparent;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.cat-photon { background: var(--c-photon); } .cat-ai { background: var(--c-ai); } .cat-edge { background: var(--c-edge); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .4s;
}
.project:hover { border-color: var(--border-strong); }
.project.is-hidden { display: none !important; }
.project-cat { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.22; margin-bottom: 20px; }
.project-lines { margin: 0 0 22px; display: grid; gap: 12px; }
.project-lines div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
.project-lines dt { font: 600 11.5px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.project-lines dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { padding: 14px 14px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.kpi-n { display: block; font: 600 clamp(19px, 1.9vw, 24px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.kpi-l { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.benefit { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.5; }
.benefit svg, .commit svg, .contact-points svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.benefit strong { font-weight: 600; }
.project .tags { margin-top: auto; }
.project-cta { justify-content: center; align-items: flex-start; background: transparent; border: 1.5px dashed var(--border-strong); box-shadow: none; }
.cta-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; font: 500 30px/1 var(--font-display); color: var(--accent); background: var(--accent-soft); }
.project-cta p { margin: 0 0 22px; color: var(--muted); }

/* ---------- Secteurs : icône ---------- */
.sector-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); margin-bottom: 18px; }
.sector-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- À propos : équipe, engagements, outils ---------- */
.team { display: grid; gap: 12px; margin-top: 26px; }
.team-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.team-ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.team-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-card h4, .commit h4 { margin: 0 0 4px; font: 600 16px var(--font-display); letter-spacing: -.01em; }
.about-text .team-card p { margin: 0; font-size: 14.5px; }
.about-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 64px; }
@media (min-width: 761px) {
  .about-more .commits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .about-more .commits h3 { grid-column: 1 / -1; }
  .about-more .commit { border-top: 0; padding: 0; }
}
.about-more > *, .about > *, .founders > *, .tech-group { min-width: 0; }
.commits, .toolbox { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.commits h3, .toolbox h3 { font-size: 20px; margin-bottom: 18px; }
.commit { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.commit:first-of-type { border-top: 0; padding-top: 0; }
.commit p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tech-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-group h4 { margin: 0 0 12px; font: 600 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }

/* ---------- Contact : points de réassurance et accès directs ---------- */
.contact-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.contact-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact-quick a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: 500 14.5px var(--font-display); transition: border-color .25s;
}
.contact-quick a:hover { border-color: var(--text); }
.contact-quick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-quick svg.fill { fill: currentColor; stroke: none; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 980px) {
  .projects { grid-template-columns: 1fr; }
  .about-more { grid-template-columns: minmax(0, 1fr); }
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
  .tech-groups { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.tabbar, .carousel-dots { display: none; }

@media (max-width: 760px) {
  :root { --nav-h: 64px; --tab-h: 64px; --gutter: 18px; --radius: 22px; }

  /* --- Barre du haut : logo + thème + langue --- */
  .nav, .nav.scrolled { height: var(--nav-h); }
  .burger, .nav-links, .nav-btn { display: none !important; }
  .brand-logo { width: 34px; }
  .brand-name { display: inline; font-size: 15px; letter-spacing: .22em; }
  .theme-toggle { width: 38px; height: 38px; }
  .lang-switch { height: 38px; padding: 3px; }
  .lang-switch button { height: 30px; padding: 0 10px; font-size: 12px; }

  /* --- Barre du bas façon application --- */
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr) 0px;
    transition: grid-template-columns .4s var(--ease);
    position: fixed; z-index: 60; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: var(--tab-h); padding: 6px; border-radius: 22px;
    background: var(--nav-bg); border: 1px solid var(--border);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 16px; color: var(--muted); font: 500 11px var(--font-body); letter-spacing: .01em;
    transition: color .25s, background .25s; -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--accent); background: var(--accent-soft); }
  /* Case « ↑ Haut » : apparaît dans la barre après défilement */
  .totop { display: none; }
  .tabbar.has-top { grid-template-columns: repeat(4, 1fr) 58px; }
  .tabbar.has-top a span { font-size: 10.5px; }
  .tabbar .tab-top {
    overflow: hidden; min-width: 0; opacity: 0; transform: scale(.8); pointer-events: none;
    background: var(--btn-bg); color: var(--btn-text); font-weight: 600;
    transition: opacity .3s var(--ease), transform .4s var(--ease), margin .4s var(--ease);
  }
  .tabbar.has-top .tab-top { opacity: 1; transform: none; pointer-events: auto; margin-left: 4px; }
  .tabbar .tab-top.active { color: var(--btn-text); background: var(--btn-bg); }
  body { padding-bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); }

  /* --- Rythme général : moins d'espace, titres plus compacts --- */
  .section { padding: 56px var(--gutter); }
  .section-alt { padding-inline: var(--gutter); }
  .section-head { margin-bottom: 28px; }
  .kicker { font-size: 11.5px; margin-bottom: 14px; }
  .section h2 { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.08; }
  .lead { font-size: 16px; margin-top: 14px; }

  /* --- Hero : tient dans l'écran au-dessus de la barre du bas --- */
  .hero { min-height: calc(100svh - var(--tab-h) - 20px); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; }
  .hero-title { font-size: clamp(46px, 14vw, 64px); }
  .hero-tagline { font-size: 21px; margin-top: 16px; }
  .hero-sub { font-size: 15.5px; margin: 20px auto 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { height: 50px; }
  .eyebrow { margin-bottom: 22px; font-size: 12.5px; }
  .hero { flex-direction: column; justify-content: center; }
  .hero-actions .btn-ghost { display: none; }   /* la barre du bas mène déjà aux expertises */
  .hero-scroll { display: none; }
  .hero-pills { position: relative; left: auto; bottom: auto; transform: none; width: calc(100% + 2 * var(--gutter)); margin: 34px calc(-1 * var(--gutter)) 0; }

  /* --- Carrousels (Expertises, Méthode) --- */
  [data-carousel] {
    display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: start; }
  [data-carousel] > .reveal { opacity: 1; transform: none; transition-delay: 0s !important; }
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--border-strong); cursor: pointer; transition: width .3s var(--ease), background .3s; }
  .carousel-dots button.active { width: 22px; background: var(--accent); }

  .card {
    padding: 26px 22px; border: 0; box-shadow: none;
    background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface);
    outline: 1px solid var(--border); outline-offset: -1px;
  }
  .card:hover { transform: none; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 18px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 15px; margin-bottom: 18px; }

  .pipeline { margin-bottom: 0; }
  .pipeline::before { display: none; }
  .pipeline > .step { flex-basis: 72%; padding: 20px; border-radius: 20px; background: var(--surface); outline: 1px solid var(--border); outline-offset: -1px; }
  .step-num { position: static; margin: 0 0 14px; width: 38px; height: 38px; }
  .step h3 { font-size: 17px; }

  /* --- Chiffres en grille 2 × 2 --- */
  .stats { grid-template-columns: 1fr 1fr !important; gap: 10px; margin-top: 28px; }
  .stat { padding: 18px 16px; border-radius: 18px; box-shadow: none; }
  .stat-num { font-size: 34px; }
  .stat-unit { font-size: 18px; }
  .stat p { font-size: 13px; line-height: 1.4; }

  /* --- Secteurs : pastilles 2 colonnes, dépliables --- */
  .sectors { grid-auto-flow: row dense; grid-template-columns: 1fr 1fr !important; gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .sector {
    padding: 16px; border-radius: 18px; background: var(--surface); outline: 1px solid var(--border); outline-offset: -1px;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .3s, outline-color .3s;
  }
  .sector-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 12px; }
  .sector-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sector h3 { font-size: 14.5px; line-height: 1.3; margin: 0; align-items: flex-start; }
  .sector h3::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .35s var(--ease); }
  .sector:hover h3::after { transform: none; }
  .sector p { font-size: 14px; max-height: 0; overflow: hidden; opacity: 0; margin: 0; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
  .sector.open { grid-column: 1 / -1; outline-color: var(--accent); }
  .sector.open h3::after { transform: rotate(45deg); color: var(--accent); }
  .sector.open p { max-height: 160px; opacity: 1; margin-top: 8px; }

  /* --- À propos : plus court --- */
  .about { gap: 24px; }
  .lens { width: 150px; box-shadow: 0 0 60px var(--glow); }
  .lens::after { display: none; }
  .about-text h2 { margin-bottom: 16px; }
  .about-text p { font-size: 15.5px; }
  blockquote { margin-top: 20px; padding: 0; border: 0; background: none; font-size: 20px; }
  blockquote span { display: block; margin-top: 4px; }

  /* --- Contact : boutons directs --- */
  .contact { gap: 24px; }
  .contact-list { display: none; }
  .contact-quick { display: flex; gap: 10px; margin-top: 22px; }
  .contact-quick a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
    border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: 500 14.5px var(--font-display);
  }
  .contact-quick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .contact-quick svg.fill { fill: currentColor; stroke: none; }
  .contact-form { padding: 20px; border-radius: 22px; gap: 12px; box-shadow: none; }

  /* --- Pied de page compact --- */
  .footer { padding: 32px var(--gutter); }
  .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
}


/* ---------- Téléphone : nouveaux blocs de contenu ---------- */
@media (max-width: 760px) {
  .proof-inner { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 26px var(--gutter); }
  .proof-item { padding-left: 12px; }
  .proof-num { font-size: 28px; }
  .proof-item p { font-size: 12.5px; margin-top: 6px; }

  .card .card-benefit { margin-bottom: 12px; }
  details.tech { margin-bottom: 14px; }

  #projects .section-head { margin-bottom: 20px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; height: 36px; padding: 0 14px; font-size: 13px; }
  .projects > .project { flex-basis: 88%; padding: 22px 20px; border: 0; outline: 1px solid var(--border); outline-offset: -1px; box-shadow: none; }
  .projects > .project-cta { outline: 1.5px dashed var(--border-strong); }
  .project h3 { font-size: 19px; margin-bottom: 14px; }
  .project-lines { gap: 10px; margin-bottom: 16px; }
  .project-lines div { grid-template-columns: 1fr; gap: 2px; }
  .project-lines dd { font-size: 14.5px; }
  .kpis { gap: 7px; margin-bottom: 14px; }
  .kpi { padding: 10px 9px 9px; border-radius: 12px; }
  .kpi-n { font-size: 17px; }
  .kpi-l { font-size: 11.5px; }
  .benefit { font-size: 14px; padding: 12px 13px; }

  .sector-icon { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; }
  .sector-icon svg { width: 20px; height: 20px; }

  .about-text .team-card p { font-size: 14px; }
  .team { margin-top: 18px; gap: 10px; }
  .team-card { padding: 14px; }
  .about-more { margin-top: 28px; gap: 12px; }
  .commits, .toolbox { padding: 20px; box-shadow: none; }
  .commits h3, .toolbox h3 { font-size: 18px; margin-bottom: 14px; }
  .tech-groups { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .commit { padding: 9px 0; }
  .commit p { display: none; }
  .commit h4 { margin: 0; font-size: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: 0 0 auto; }
  .project .tags { margin-top: 0; }

  .contact-points { margin-top: 20px; gap: 10px; }
  .contact-points li { font-size: 14.5px; }
  .contact-quick { margin-top: 20px; }
  .contact-quick a { flex: 1 1 auto; }
}

/* =========================================================
   STRUCTURE EN 3 CHAPITRES
   01 Expertises & méthode · 02 Réalisations & secteurs · 03 À propos (fondateurs) · 04 Contact
   ========================================================= */

/* ---------- 01 : méthode (colonne) + expertises ---------- */
.xm { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.method { position: sticky; top: 96px; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.method h3 { font-size: 20px; margin: 0; }
.method-lead { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; }
.step2 { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.step2:last-child { padding-bottom: 0; }
.step2::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 1px; background: linear-gradient(var(--c-ai), var(--c-photon)); opacity: .5; }
.step2:last-child::before { display: none; }
.step2 .step-num { flex: 0 0 38px; width: 38px; height: 38px; margin: 0; font-size: 12px; background: var(--bg); }
.step2 h4 { margin: 7px 0 3px; font: 600 15.5px var(--font-display); letter-spacing: -.01em; }
.step2 p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.xm .cards { grid-template-columns: repeat(2, 1fr); }
#expertise .toolbox { margin-top: 24px; }

/* ---------- 02 : bande des secteurs ---------- */
.sector-strip-wrap { margin: 0 0 34px; }
.strip-label { margin: 0 0 12px; font: 600 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sector-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sector-tile { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.sector-tile:hover { border-color: var(--border-strong); }
.sector-tile .sector-icon { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 12px; }
.sector-tile .sector-icon svg { width: 18px; height: 18px; }
.sector-tile h4 { margin: 0 0 6px; font: 600 14.5px/1.25 var(--font-display); letter-spacing: -.01em; }
.sector-tile p { margin: 0; font-size: 12.5px; line-height: 1.42; color: var(--muted); }

/* ---------- 03 : fondateurs (dans À propos) ---------- */
.about-text .founders { display: grid; gap: 12px; margin-top: 26px; }
.founder {
  display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "photo id" "photo quote" "photo chips";
  column-gap: 22px; align-items: start; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.founder-photo { grid-area: photo; width: 112px; height: 112px; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 200deg, #9d8cff, #6fd8f2, #7ee8b4, #ffd27a, #ff8fca, #9d8cff); }
.founder-photo img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-solid, var(--bg)); }
.founder-id { grid-area: id; }
.founders .founder-id h3 { margin: 4px 0 0; font-size: 20px; }
.founders .founder-role { margin: 3px 0 0; font: 600 13px var(--font-display); color: var(--accent); }
.founders .founder-quote { grid-area: quote; margin: 10px 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.founders .founder .chips { grid-area: chips; }
.founders .founder .chips li { font-size: 12.5px; }

@media (max-width: 1180px) {
  .sector-strip { grid-template-columns: repeat(3, 1fr); }
  .xm { grid-template-columns: 290px 1fr; }
}
@media (max-width: 980px) {
  .xm { grid-template-columns: minmax(0, 1fr); }
  .method { position: static; }
  .xm .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .xm { gap: 22px; }
  .method { padding: 0; background: none; border: 0; box-shadow: none; }
  .method h3 { font-size: 17px; }
  .method-lead { font-size: 13.5px; }
  .steps { margin-top: 14px; }
  .steps > .step2 { flex: 0 0 70% !important; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); outline: 1px solid var(--border); outline-offset: -1px; }
  .step2::before { display: none; }
  .step2 h4 { margin: 0 0 3px; }
  .sector-strip-wrap { margin-bottom: 22px; }
  .sector-strip { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .sector-strip::-webkit-scrollbar { display: none; }
  .sector-tile { flex: 0 0 152px; padding: 14px; }
  .founder { grid-template-columns: 72px 1fr; grid-template-areas: "photo id" "quote quote" "chips chips"; column-gap: 14px; align-items: center; padding: 18px; box-shadow: none; }
  .founder-photo { width: 72px; height: 72px; padding: 2px; }
  .founders .founder-id h3 { font-size: 18px; margin: 0; }
  .founders .founder-role { font-size: 12.5px; }
  .founders .founder-quote { margin: 12px 0 10px; font-size: 14px; }
  .founders .founder .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
  .founder .chips::-webkit-scrollbar { display: none; }
}


/* =========================================================
   À PROPOS : Fondateurs, style « Couverture » (magazine)
   ========================================================= */
:root { --serif: "Fraunces", "Iowan Old Style", Georgia, serif; }
.ed-c { margin-top: 72px; }
.ed-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; font: 600 12px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ed-head::before, .ed-head::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.ed-fig { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.ed-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.ed-fig:hover img { transform: scale(1.03); }
.ed-fig::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(4, 8, 12, .84)); pointer-events: none; }
.ed-fig figcaption { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ed-rubric { font: 600 11.5px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: #9be6f7; }
.ed-name { font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--serif); letter-spacing: -.01em; color: #fff; }
.ed-col { padding: 30px 34px 0; }
.ed-col.f1 { padding-left: 0; border-right: 1px solid var(--border); }
.ed-col.f2 { padding-right: 0; }
.ed-quote { position: relative; margin: 0 0 18px; padding: 0; border: 0; background: none; font: italic 400 24px/1.36 var(--serif); letter-spacing: -.005em; color: var(--text); }
.ed-quote::before { content: "“"; margin-right: 4px; font: 600 70px/0 var(--serif); color: var(--accent); vertical-align: -30px; }
.ed-bio { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.ed-col .chips li { font-size: 12.5px; }

@media (max-width: 980px) {
  .ed-quote { font-size: 21px; }
  .ed-col { padding: 26px 22px 0; }
}
@media (max-width: 760px) {
  .ed-c { margin-top: 44px; }
  .ed-head { margin-bottom: 22px; }
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  /* Téléphone : chaque texte sous sa photo */
  .ed-fig.f1 { order: 1; } .ed-col.f1 { order: 2; } .ed-fig.f2 { order: 3; } .ed-col.f2 { order: 4; }
  .ed-fig { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .ed-fig figcaption { left: var(--gutter); right: var(--gutter); bottom: 16px; }
  .ed-name { font-size: 32px; }
  .ed-col, .ed-col.f1, .ed-col.f2 { padding: 18px 0 32px; border-right: 0; }
  .ed-quote { font-size: 21px; }
  .ed-quote::before { font-size: 60px; vertical-align: -26px; }
  .ed-bio { font-size: 15px; }
  .ed-col .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Méthode : livrables inclus + hauteur alignée sur les cartes ============ */
.kicker .kn { color: var(--text); opacity: .4; margin-right: 6px; }
.dlv { padding-top: 26px; }
.dlv h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 11.5px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dlv h4::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dlv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dlv li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.dlv svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dlv b { display: block; font: 600 14.5px var(--font-display); letter-spacing: -.01em; }
.dlv span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (min-width: 981px) {
  .xm { align-items: stretch; }
  .method { position: static; display: flex; flex-direction: column; }
  .method .steps { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
  .dlv { margin-top: auto; }
}
@media (max-width: 760px) {
  .dlv { padding-top: 20px; }
  .dlv ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .dlv li { align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--surface); }
  .dlv svg { flex-basis: 15px; width: 15px; height: 15px; margin: 0; }
  .dlv b { font-size: 13px; }
  .dlv span { display: none; }
}

/* ============ Documents à télécharger (contact + pied de page) ============ */
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.doc-card { flex: 1 1 320px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .25s, transform .25s; }
.doc-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.doc-ic { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); color: var(--accent); }
.doc-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc-tx b { font: 600 15px var(--font-display); color: var(--text); }
.doc-tx small { font-size: 12.5px; color: var(--muted); }
.doc-dl { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); }
.docs svg, .foot-doc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-dl svg { width: 18px; height: 18px; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--font-display); color: var(--muted); }
.doc-link:hover { color: var(--text); }
.doc-link svg { width: 16px; height: 16px; }
.foot-doc { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-doc:hover { color: var(--text); }
@media (max-width: 760px) { .docs { margin-top: 16px; } .doc-card { flex-basis: 100%; } }

/* ============ CEM : catégorie, secteurs ×10, fondateurs ×3, bandeau des domaines ============ */
:root, :root[data-theme="dark"] { --c-emc: #f5b544; }
:root[data-theme="light"] { --c-emc: #b7791f; }
.cat-emc { background: var(--c-emc); }
.sector-strip { grid-template-columns: repeat(5, 1fr); }
.ed-grid.ed-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid.ed-3 .ed-col { padding: 26px 26px 0; border-right: 1px solid var(--border); }
.ed-grid.ed-3 .ed-col.f1 { padding-left: 0; }
.ed-grid.ed-3 .ed-col.f2 { padding-right: 26px; }
.ed-grid.ed-3 .ed-col.f3 { padding-right: 0; border-right: 0; }
.ed-grid.ed-3 .ed-quote { font-size: 20px; }
.ed-grid.ed-3 .ed-name { font-size: clamp(24px, 2.3vw, 34px); }
.domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
.dom { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.dom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.dom:hover img { transform: scale(1.04); }
.dom::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(4, 8, 12, .86)); }
.dom figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: grid; gap: 4px; color: #fff; }
.dom b { font: 600 18px var(--font-display); letter-spacing: -.01em; }
.dom span { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
@media (max-width: 980px) { .sector-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ed-grid.ed-3 { grid-template-columns: minmax(0, 1fr); }
  .ed-grid.ed-3 .ed-fig.f3 { order: 5; } .ed-grid.ed-3 .ed-col.f3 { order: 6; }
  .ed-grid.ed-3 .ed-col, .ed-grid.ed-3 .ed-col.f1, .ed-grid.ed-3 .ed-col.f2, .ed-grid.ed-3 .ed-col.f3 { padding: 18px 0 32px; border-right: 0; }
  .domains { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--gutter)) 22px; padding: 0 var(--gutter); scrollbar-width: none; }
  .domains::-webkit-scrollbar { display: none; }
  .dom { flex: 0 0 82%; scroll-snap-align: start; }
}
