/* ADS Logique — V2 */
:root {
  --ink: #0b1520;
  --ink-2: #142433;
  --ink-soft: #3d5163;
  --paper: #eef2f5;
  --paper-2: #e4ebf1;
  --line: rgba(11, 21, 32, 0.12);
  --accent: #0f8a82;
  --accent-deep: #0a5f5a;
  --accent-soft: #7fd4ce;
  --warm: #e8723a;
  --warm-strong: #bd5322;
  --focus-ring: #bd5322;
  --white: #fff;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --wide: min(1140px, calc(100% - 2 * var(--space)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(15, 138, 130, 0.13), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 15%, rgba(232, 114, 58, 0.07), transparent 50%),
    linear-gradient(180deg, #f5f8fb 0%, var(--paper) 45%, #e8eef3 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.55em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Focus clavier visible (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Retire l'outline uniquement quand le focus-visible prend le relais */
:focus:not(:focus-visible) { outline: none; }

/* Le lien d'évitement devient visible dès qu'il reçoit le focus */
.sr-only:focus, .sr-only:focus-visible {
  position: fixed; top: 0.75rem; left: 0.75rem;
  width: auto; height: auto; margin: 0; padding: 0.75rem 1.15rem;
  clip: auto; overflow: visible;
  background: var(--ink); color: var(--white);
  font-weight: 600; border-radius: 4px; z-index: 200;
  outline: 3px solid var(--focus-ring); outline-offset: 2px;
}

/* Nav */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space);
  transition: background 0.35s var(--ease), box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-nav.is-solid {
  background: rgba(238, 242, 245, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav.is-over-hero:not(.is-solid) .nav-logo,
.site-nav.is-over-hero:not(.is-solid) .nav-links a,
.site-nav.is-over-hero:not(.is-solid) .nav-toggle { color: var(--white); }

.nav-logo {
  position: relative; display: block; width: clamp(150px, 14vw, 205px); height: 36px;
  text-decoration: none;
}
.nav-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center;
  transition: opacity 0.25s var(--ease);
}
.nav-logo-light { opacity: 0; }
.site-nav.is-over-hero:not(.is-solid) .nav-logo-dark { opacity: 0; }
.site-nav.is-over-hero:not(.is-solid) .nav-logo-light { opacity: 1; }
.nav-links {
  display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.05rem; background: var(--ink); color: var(--white) !important;
  text-decoration: none !important; font-size: 0.88rem; font-weight: 600; border-radius: 4px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.site-nav.is-over-hero:not(.is-solid) .nav-cta {
  background: var(--white); color: var(--ink) !important;
}
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.6rem; margin: -0.6rem -0.4rem;
  min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 1.4rem; height: 2px; background: currentColor; margin: 5px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(238, 242, 245, 0.97); backdrop-filter: blur(16px);
    padding: 0.5rem var(--space) 1.25rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.85rem 0; color: var(--ink) !important; }
  .nav-cta { margin-top: 0.6rem; width: fit-content; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.95rem 1.45rem; font-family: var(--font-body); font-size: 0.98rem; font-weight: 650;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none !important;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--warm-strong); color: var(--white); }
.btn-primary:hover { background: #a8481c; color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: #fff; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--accent-deep); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; align-items: end; color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 120%; object-fit: cover; object-position: center 35%;
  will-change: transform; transform: translate3d(0,0,0) scale(1.08);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,21,32,0.48) 0%, rgba(11,21,32,0.28) 38%, rgba(11,21,32,0.8) 72%, rgba(11,21,32,0.95) 100%),
    linear-gradient(90deg, rgba(11,21,32,0.58) 0%, rgba(11,21,32,0.12) 62%);
}
.hero-content {
  position: relative; z-index: 2; width: var(--wide); margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 clamp(3.2rem, 7vh, 5rem);
}
.hero-brand {
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
}
.hero-brand-logo {
  display: block; width: min(560px, 88vw); height: auto;
  filter: drop-shadow(0 3px 24px rgba(0,0,0,0.38));
}
.hero-acronym {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
  margin: 0 0 1rem;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.hero-acronym > span:not(.hero-acronym-sep) {
  opacity: 0; transform: translateY(8px);
  animation: acronymIn 0.65s var(--ease) forwards;
}
.hero-acronym > span:nth-child(1) { animation-delay: 0.55s; }
.hero-acronym > span:nth-child(3) { animation-delay: 0.7s; }
.hero-acronym > span:nth-child(5) { animation-delay: 0.85s; }
.hero-acronym-sep {
  width: 1.1rem; height: 1px; background: rgba(127, 212, 206, 0.7);
  display: inline-block;
}
@keyframes acronymIn {
  to { opacity: 1; transform: none; }
}
.hero-headline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem); letter-spacing: -0.03em;
  line-height: 1.25; margin: 0 0 0.65em; max-width: 30ch;
}
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 40ch;
  margin: 0 0 1.5rem; color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-scroll {
  position: absolute; right: var(--space); bottom: 1.5rem; z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7; writing-mode: vertical-rl;
}

.hero .reveal {
  opacity: 0; transform: translateY(28px);
  animation: heroIn 1s var(--ease) forwards;
}
.hero .reveal-delay-1 { animation-delay: 0.2s; }
.hero .reveal-delay-2 { animation-delay: 0.35s; }
.hero .reveal-delay-3 { animation-delay: 0.5s; }
.hero .reveal-delay-4 { animation-delay: 0.65s; }
.hero .hero-scroll.reveal-delay-4 { animation-delay: 0.8s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Sections */
.section { padding: clamp(4.2rem, 9vw, 7rem) 0; position: relative; }
.section-head { width: var(--wide); margin: 0 auto 2.75rem; }
.section-kicker {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 0.7rem;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.35rem); max-width: 18ch; }
.section-lead {
  max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; margin-top: 0.7rem;
}
.wrap { width: var(--wide); margin: 0 auto; }
.section-atmosphere {
  background:
    linear-gradient(180deg, transparent, rgba(197, 212, 224, 0.28)),
    repeating-linear-gradient(-12deg, transparent, transparent 48px, rgba(11,21,32,0.018) 48px, rgba(11,21,32,0.018) 49px);
}

/* Expertise tabs */
.tabs {
  width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(180px, 0.85fr) 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.tab-list {
  display: flex; flex-direction: column; gap: 0.35rem;
  border-top: 1px solid var(--line); padding: 0; margin: 0; list-style: none;
}
.tab-btn {
  appearance: none; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 1.05rem 0.85rem 1.05rem 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink-soft);
  transition: color 0.25s, padding-left 0.25s var(--ease), background 0.25s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] {
  color: var(--ink); padding-left: 0.85rem;
  background: linear-gradient(90deg, rgba(15,138,130,0.1), transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.75rem; }
.tab-panel > p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.point-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.point-list li {
  padding: 0.85rem 0 0.85rem 1.4rem; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-2);
}
.point-list li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: 0.55rem; height: 0.55rem; border-radius: 1px; background: var(--accent);
}

@media (max-width: 780px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; border: 0; }
  .tab-btn {
    border: 1px solid var(--line); border-radius: 4px; padding: 0.8rem 1rem;
    font-size: 0.95rem; width: auto; min-height: 44px;
  }
  .tab-btn[aria-selected="true"] {
    background: var(--ink); color: var(--white); box-shadow: none; padding-left: 0.9rem;
  }
}

/* Deep dive accordion + diagrams */
.deep-list { width: var(--wide); margin: 0 auto; border-top: 1px solid var(--line); }
.deep-item { border-bottom: 1px solid var(--line); }
.deep-trigger {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  text-align: left; background: none; border: 0; padding: 1.4rem 0; cursor: pointer;
  font: inherit; color: inherit;
}
.deep-trigger h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0 0 0.25rem;
  transition: color 0.2s;
}
.deep-trigger:hover h3 { color: var(--accent-deep); }
.deep-sub { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.deep-icon {
  width: 2rem; height: 2rem; border: 1.5px solid var(--line); border-radius: 4px;
  display: grid; place-items: center; transition: transform 0.3s var(--ease), border-color 0.2s;
}
.deep-icon::before {
  content: ""; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-1px, -1px);
}
.deep-item.is-open .deep-icon { transform: rotate(180deg); border-color: var(--accent); }
.deep-panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.4s, padding 0.4s;
  padding: 0;
}
.deep-item.is-open .deep-panel {
  max-height: 900px; opacity: 1; padding: 0 0 1.75rem;
}
.deep-copy h4 {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 0.45rem;
}
.deep-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.diagram-box {
  background: var(--ink); color: var(--white); border-radius: 6px;
  padding: 1.25rem; min-height: 220px; display: grid; place-items: center;
  overflow: hidden;
}
.diagram-box svg { width: 100%; max-width: 360px; height: auto; }
.diagram-box .flow-node {
  fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.45); stroke-width: 1.5;
}
.diagram-box .flow-text { fill: #fff; font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.diagram-box .flow-line { stroke: var(--accent-soft); stroke-width: 2; fill: none; }
.diagram-box .flow-arrow { fill: var(--accent-soft); }
.deep-item.is-open .flow-draw {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawLine 1.1s var(--ease) forwards 0.15s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

@media (max-width: 780px) {
  .deep-panel { grid-template-columns: 1fr; }
  .deep-item.is-open .deep-panel { max-height: 1100px; }
}

/* Clients logos */
.clients-grid {
  width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client-logo {
  display: flex; flex-direction: column; justify-content: center; gap: 0.75rem;
  min-height: 130px; padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: rgba(255,255,255,0.35);
  transition: background 0.3s var(--ease);
}
.client-logo:hover { background: var(--white); }
.client-logo img {
  height: 30px; width: auto; max-width: 100%;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease);
  object-fit: contain; object-position: left center;
  align-self: flex-start;
}
/* Ajustements par logo (proportions différentes) */
.client-logo--axa img { height: 36px; }
.client-logo--econocom img { height: 24px; }
.client-logo--veolia img { height: 26px; }
.client-logo--grdf img { height: 40px; }
.client-logo--inextenso img { height: 22px; }
.client-logo--reactis img { height: 32px; }
.client-logo:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
.client-role { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .clients-grid { grid-template-columns: 1fr; } }

/* Profiles */
.profiles {
  width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.profile {
  padding: 1.6rem 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.3s, color 0.3s;
}
.profile:hover { background: var(--ink); color: var(--white); }
.profile-num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--accent-deep); letter-spacing: 0.08em; margin-bottom: 0.7rem;
}
.profile:hover .profile-num { color: var(--accent-soft); }
.profile h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.profile p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; transition: color 0.3s; }
.profile:hover p { color: rgba(255,255,255,0.72); }

@media (max-width: 860px) { .profiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .profiles { grid-template-columns: 1fr; } }

/* Delivery band */
.delivery {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white); padding: clamp(5rem, 10vw, 8rem) 0;
}
.delivery-media,
.delivery-overlay { position: absolute; inset: 0; z-index: -2; }
.delivery-media img {
  width: 100%; height: 118%; object-fit: cover; object-position: center 48%;
  transform: scale(1.08); filter: saturate(0.7) contrast(1.06);
}
.delivery-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,17,27,0.96) 0%, rgba(7,17,27,0.86) 48%, rgba(7,17,27,0.64) 100%),
    linear-gradient(0deg, rgba(7,17,27,0.72), transparent 55%);
}
.delivery .section-kicker { color: var(--accent-soft); }
.delivery .section-title { color: #fff; max-width: 20ch; }
.delivery .section-lead { color: rgba(255,255,255,0.78); }
.delivery-grid {
  width: var(--wide); margin: 2.5rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.delivery-item {
  padding: 1.6rem 1.2rem 0 0; border-right: 1px solid rgba(255,255,255,0.12);
}
.delivery-item:last-child { border-right: 0; padding-right: 0; }
.delivery-item:not(:first-child) { padding-left: 1.2rem; }
.delivery-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.delivery-item p { color: rgba(255,255,255,0.68); font-size: 0.96rem; margin: 0; }

@media (max-width: 860px) {
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .delivery-item { border-right: 0 !important; padding: 1.25rem 0 !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 560px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-item:last-child { border-bottom: 0; }
  .delivery-overlay {
    background: linear-gradient(90deg, rgba(7,17,27,0.96), rgba(7,17,27,0.76));
  }
}

/* Timeline */
.timeline {
  width: var(--wide); margin: 0 auto; position: relative;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
}
.timeline::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem;
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(15,138,130,0.15));
}
.timeline-item {
  position: relative; padding: 0 0 2.25rem 1.5rem;
}
.timeline-item::before {
  content: ""; position: absolute; left: -1.85rem; top: 0.55rem;
  width: 0.85rem; height: 0.85rem; border-radius: 2px; background: var(--paper);
  border: 2px solid var(--accent); transition: background 0.25s, transform 0.25s;
}
.timeline-item.is-active::before,
.timeline-item:hover::before {
  background: var(--accent); transform: scale(1.15);
}
.timeline-trigger {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.timeline-year {
  display: block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 0.35rem;
}
.timeline-title {
  display: block; font-family: var(--font-display); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 0.4rem;
  transition: color 0.2s;
}
.timeline-trigger:hover .timeline-title { color: var(--accent-deep); }
.timeline-text {
  color: var(--ink-soft); margin: 0; max-width: 54ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s, margin 0.35s;
}
.timeline-item.is-active .timeline-text {
  max-height: 240px; opacity: 1; margin-top: 0.35rem;
}

/* Project strips */
.portfolio { display: flex; flex-direction: column; }
.project-strip {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(68vh, 520px);
  background: var(--ink); color: var(--white);
}
.project-strip:nth-child(even) { direction: rtl; }
.project-strip:nth-child(even) > * { direction: ltr; }
.project-visual { position: relative; overflow: hidden; min-height: 240px; }
.project-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease); will-change: transform;
}
.project-strip:hover .project-visual img { transform: scale(1.06); }
.project-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
}
.project-tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-soft); margin: 0 0 0.9rem;
}
.project-body h3 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); margin: 0 0 0.7rem; }
.project-body p { color: rgba(255,255,255,0.78); max-width: 38ch; margin-bottom: 1.35rem; }
.project-link {
  color: #fff; font-weight: 650; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35); width: fit-content; padding-bottom: 0.15rem;
}
.project-link:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

@media (max-width: 860px) {
  .project-strip, .project-strip:nth-child(even) {
    grid-template-columns: 1fr; direction: ltr; min-height: 0;
  }
  .project-visual { height: 220px; }
}

/* Affiliation pipeline */
.pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 0 auto 1.75rem !important;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.pipeline-step {
  padding: 1.35rem 1.2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, color 0.3s;
}
.pipeline-step:hover { background: var(--ink); color: #fff; }
.pipeline-num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--accent-deep); letter-spacing: 0.08em; margin: 0 0 0.55rem;
}
.pipeline-step:hover .pipeline-num { color: var(--accent-soft); }
.pipeline-step h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.pipeline-step p {
  margin: 0; font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s;
}
.pipeline-step:hover p { color: rgba(255,255,255,0.7); }
.ia-caption {
  color: var(--ink-soft); font-size: 1.02rem; margin: 0 auto 1.75rem !important;
  max-width: var(--wide);
}
@media (max-width: 820px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }

/* IA grid */
.ia-grid {
  width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.ia-item {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem;
  padding: 1.4rem 1.25rem; min-height: 9rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: background 0.3s, color 0.3s;
}
.ia-item:hover { background: var(--ink); color: #fff; }
.ia-item h3 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.ia-item p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; transition: color 0.3s; }
.ia-item:hover p { color: rgba(255,255,255,0.68); }
.ia-arrow { align-self: flex-end; opacity: 0.4; transition: opacity 0.25s, transform 0.25s; }
.ia-item:hover .ia-arrow { opacity: 1; transform: translate(3px, -3px); color: var(--accent-soft); }

@media (max-width: 820px) { .ia-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ia-grid { grid-template-columns: 1fr; } }

/* BIZNET */
.biznet {
  background: linear-gradient(135deg, #0b1520 0%, #123040 48%, #0a3d3a 100%);
  color: #fff; overflow: hidden; position: relative;
}
.biznet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 18%, rgba(15,138,130,0.35), transparent 40%),
    radial-gradient(circle at 12% 82%, rgba(232,114,58,0.16), transparent 35%);
}
.biznet .wrap { position: relative; z-index: 1; }
.biznet .section-kicker { color: var(--accent-soft); }
.biznet .section-title { color: #fff; max-width: 20ch; }
.biznet .section-lead { color: rgba(255,255,255,0.72); max-width: 50ch; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
  margin: 2.75rem 0 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-value {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.4rem;
}
.stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.65); margin: 0; max-width: 16ch; }
.biznet-note {
  color: rgba(255,255,255,0.7); max-width: 52ch; margin: 0 0 1.75rem; font-size: 1.02rem;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Diagnostic */
.diagnostic {
  width: var(--wide); margin: 0 auto;
  border: 1px solid var(--line); border-radius: 6px;
  background: rgba(255,255,255,0.55); padding: clamp(1.5rem, 4vw, 2.25rem);
}
.diag-progress {
  display: flex; gap: 0.4rem; margin-bottom: 1rem;
}
.diag-status {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep);
  margin: 0 0 1.25rem; min-height: 1em;
}
.diag-nav { margin-top: 1.5rem; }
.diag-nav[hidden] { display: none; }
.diag-dot {
  flex: 1; height: 4px; background: var(--paper-2); border-radius: 2px;
  transition: background 0.3s;
}
.diag-dot.is-done { background: var(--accent); }
.diag-dot.is-current { background: var(--warm); }
.diag-question {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin: 0 0 1.25rem;
}
.diag-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.diag-option {
  appearance: none; text-align: left; cursor: pointer;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,0.7); font: inherit; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.diag-option:hover {
  border-color: var(--accent); background: #fff; transform: translateY(-2px);
}
.diag-result { display: none; }
.diag-result.is-visible { display: block; }
.diag-result h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.6rem;
}
.diag-result p { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 48ch; }
.diag-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 640px) { .diag-options { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid {
  width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-details { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-details li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details span {
  display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.25rem;
}
.contact-details a {
  text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px;
}
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,0.65); font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 0.9rem 1rem; border-radius: 4px; font-size: 0.95rem; }
.form-msg.ok { background: rgba(15,138,130,0.12); color: var(--accent-deep); }
.form-msg.err { background: rgba(232,114,58,0.12); color: #a84218; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem; border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
}
.footer-inner {
  width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-end;
}
.footer-brand {
  width: min(230px, 60vw); margin: 0 0 0.75rem;
}
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.footer-links { display: flex; gap: 1rem; font-size: 0.9rem; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem;
}

/* Legal */
.legal-page { padding: calc(var(--nav-h) + 3rem) 0 5rem; }
.legal-page .wrap { max-width: 720px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 1.2rem; }

/* Band */
.band {
  position: relative; min-height: clamp(260px, 40vw, 440px);
  overflow: hidden; color: #fff;
}
.band-media { position: absolute; inset: -12% 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,21,32,0.82) 0%, rgba(11,21,32,0.35) 70%);
}
.band-content {
  position: relative; z-index: 1; width: var(--wide); margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0; max-width: 34rem;
}
.band-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
.band-content .section-kicker { color: var(--accent-soft); }
.method-title {
  display: flex; flex-direction: column; gap: 0.2em;
  margin-bottom: 0.85em !important;
}
.method-line {
  display: block;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}
.method-line em {
  font-style: normal; color: var(--accent-soft);
  margin-right: 0.02em;
}
.method-title.is-in .method-line {
  animation: methodReveal 0.8s var(--ease) both;
}
.method-title.is-in .method-line:nth-child(1) { animation-delay: 0.05s; }
.method-title.is-in .method-line:nth-child(2) { animation-delay: 0.18s; }
.method-title.is-in .method-line:nth-child(3) { animation-delay: 0.3s; }
@keyframes methodReveal {
  from { opacity: 0; transform: translateX(-1.25rem); }
  to { opacity: 1; transform: none; }
}

/* Aides à la conversion */
.diag-hint {
  margin: 1rem 0 0; font-size: 0.88rem; color: var(--ink-soft);
}

/* CTA flottant */
.sticky-cta {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  background: var(--ink); color: var(--white);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateY(0.8rem); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s;
}
.sticky-cta:hover { background: var(--accent-deep); color: var(--white); }
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft);
  animation: ctaPulse 2.2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}
@media (max-width: 640px) {
  .sticky-cta { right: 0.9rem; bottom: 0.9rem; padding: 0.75rem 1.05rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta-dot { animation: none; }
}
