/* RoboEdge — L'Arête — 16 juillet 2026 */
:root {
  --ink: #14171C;
  --forest: #10241E;
  --oat: #F1ECE2;
  --emerald: #12A37B;
  --amber: #E8A13C;
  --grey: #857F74;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max: 1120px;
  --radius: 4px;
  --header-h: 72px;
}

*, *::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-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--oat);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
ul, ol { padding-left: 1.25rem; }
p { margin: 0 0 1rem; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.surface-ink { background: var(--ink); color: var(--oat); }
.surface-oat { background: var(--oat); color: var(--ink); }
.surface-forest { background: var(--forest); color: var(--oat); }
.surface-emerald { background: var(--emerald); color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.75rem;
}
.surface-oat .eyebrow { color: var(--forest); }
.surface-ink .eyebrow,
.surface-forest .eyebrow { color: var(--emerald); }

.accent-emerald { color: var(--emerald); }
.accent-amber { color: var(--amber); }
.muted { color: var(--grey); }
.surface-ink .muted,
.surface-forest .muted { color: rgba(241, 236, 226, 0.68); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Edge signal waveform motif */
.edge-wave {
  position: relative;
  overflow: hidden;
}
.edge-wave::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L20 24 L28 8 L36 40 L44 24 L80 24 L88 16 L96 32 L104 24 L140 24 L148 12 L156 36 L164 24 L200 24 L208 20 L216 28 L224 24 L260 24 L268 10 L276 38 L284 24 L320 24 L328 18 L336 30 L344 24 L380 24 L388 14 L396 34 L400 24' fill='none' stroke='%2312A37B' stroke-width='1.5' opacity='0.35'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 400px 48px;
  pointer-events: none;
  opacity: 0.9;
}
.edge-wave-top::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 16 L16 16 L24 6 L32 26 L40 16 L72 16 L80 10 L88 22 L96 16 L128 16 L136 8 L144 24 L152 16 L184 16 L192 12 L200 20 L208 16 L240 16 L248 4 L256 28 L264 16 L296 16 L304 14 L312 18 L320 16 L352 16 L360 6 L368 26 L376 16 L400 16' fill='none' stroke='%2310271E' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E") repeat-x top;
  background-size: 400px 32px;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
  color: var(--ink);
}
.site-header.is-sticky {
  background: var(--ink);
  color: var(--oat);
  box-shadow: 0 1px 0 rgba(241, 236, 226, 0.08);
}
.site-header.is-sticky .nav-toggle span { background: var(--oat); }
.site-header.is-sticky .nav-cta { color: var(--ink); }

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none !important;
  display: inline-block;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: background 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--ink);
    color: var(--oat);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 8px 24px rgba(20, 23, 28, 0.25);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(241, 236, 226, 0.12);
  }
  .nav-cta { margin-top: 0.75rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--emerald);
  color: var(--ink);
  border-color: var(--emerald);
}
.btn-secondary {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero L'ARÊTE — bright oat */
.hero-arete {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background: var(--oat);
  color: var(--ink);
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-arete { min-height: auto; padding-bottom: 2.5rem; }
}
.hero-baseline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.hero-baseline span::after {
  content: "·";
  margin-left: 1.25rem;
  color: var(--emerald);
}
.hero-baseline span:last-child::after { content: none; margin: 0; }
.hero-arete h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-style: normal;
}
.hero-arete .hero-lead {
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--grey);
  margin-bottom: 1.75rem;
}
.hero-plate {
  margin-top: 2rem;
  border: 1px solid rgba(20, 23, 28, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 23, 28, 0.08);
}
.hero-plate img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.hero-trust {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 23, 28, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.metric {
  padding: 1.25rem 0;
  border-top: 1px solid currentColor;
  opacity: 0.95;
}
.metric strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--emerald);
}
.surface-ink .metric strong,
.surface-forest .metric strong { color: var(--amber); }
.metric span { font-size: 0.9rem; opacity: 0.85; }

.stage {
  padding: 1.5rem 0;
  border-top: 2px solid var(--emerald);
}
.stage .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}
.surface-ink .stage { border-color: var(--amber); }
.surface-ink .stage .num { color: var(--amber); }

.capability {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(20, 23, 28, 0.12);
}
.surface-ink .capability,
.surface-forest .capability {
  border-top-color: rgba(241, 236, 226, 0.15);
}
.capability .re-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-bottom: 0.4rem;
}

.photo-frame { overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(20, 23, 28, 0.1); }
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-frame.portrait img { aspect-ratio: 3 / 4; }
.photo-frame.wide img { aspect-ratio: 16 / 9; }
.photo-caption {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  color: var(--grey);
}

.teaser {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(241, 236, 226, 0.2);
}
.faq-item {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(20, 23, 28, 0.12);
}
.surface-ink .faq-item,
.surface-forest .faq-item {
  border-color: rgba(241, 236, 226, 0.15);
}
.faq-item h3 { margin-bottom: 0.5rem; }

.service-block {
  padding: 2rem 0;
  border-top: 1px solid rgba(20, 23, 28, 0.12);
}
.service-block .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-top: 0.75rem;
}

.case-study {
  padding: 2rem 0;
  border-top: 1px solid rgba(20, 23, 28, 0.12);
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--grey);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(20, 23, 28, 0.1);
}
.surface-ink .disclaimer,
.surface-forest .disclaimer {
  border-color: rgba(241, 236, 226, 0.15);
  color: rgba(241, 236, 226, 0.75);
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 23, 28, 0.2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
}
.consent input { margin-top: 0.25rem; flex-shrink: 0; }
.contact-card { font-size: 0.95rem; }
.contact-card p { margin-bottom: 0.5rem; }
.form-error {
  padding: 0.85rem 1rem;
  background: rgba(232, 161, 60, 0.15);
  border-left: 3px solid var(--amber);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
}
.page-hero h1 { max-width: 24ch; }

.site-footer {
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 236, 226, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}
.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  opacity: 0.8;
  max-width: 56rem;
}

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { margin-bottom: 1rem; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(20, 23, 28, 0.3);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: end;
}
@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; }
}
.cookie-banner p { margin: 0 0 0.5rem; font-size: 0.875rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { font-size: 0.8125rem; padding: 0.65rem 1rem; }
.cookie-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 236, 226, 0.2);
  font-size: 0.875rem;
}
.cookie-panel.is-open { display: block; }
.cookie-panel label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.centered-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.signal-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.signal-strip svg { flex-shrink: 0; }
