/* RoboFlowCo — Le Flux · 16 juillet 2026 */
:root {
  --ink: #14191C;
  --concrete: #ECE7DE;
  --charcoal: #1B2622;
  --teal: #2E9E86;
  --amber: #E0A13A;
  --warm-grey: #8A857C;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --pad-section: clamp(3.25rem, 5.5vw, 5rem);
  --pad-section-tight: clamp(2rem, 3.5vw, 3rem);
  --pad-inline: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
  --hairline: 1px solid currentColor;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*, *::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;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--concrete);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { opacity: 0.82; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

.surface-ink { background: var(--ink); color: var(--concrete); }
.surface-concrete { background: var(--concrete); color: var(--ink); }
.surface-charcoal { background: var(--charcoal); color: var(--concrete); }
.surface-teal { background: var(--teal); color: var(--concrete); }

.flow-faint { position: relative; }
.flow-faint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 18% 28%, var(--teal) 1.5px, transparent 1.6px),
    radial-gradient(circle at 72% 62%, var(--amber) 1px, transparent 1.1px);
  background-size: 52px 52px, 38px 38px;
  z-index: 0;
}
.flow-faint > * { position: relative; z-index: 1; }

.wrap {
  width: min(100% - (var(--pad-inline) * 2), var(--max));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - (var(--pad-inline) * 2), 42rem);
  margin-inline: auto;
}
.section { padding-block: var(--pad-section); }
.section.section-continue { padding-top: var(--pad-section-tight); }
.section.section-end { padding-bottom: var(--pad-section-tight); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.surface-ink .eyebrow,
.surface-charcoal .eyebrow,
.surface-teal .eyebrow { color: var(--concrete); opacity: 0.9; }
.surface-concrete .eyebrow { color: var(--teal); }

.lead { font-size: 1.125rem; max-width: 38rem; opacity: 0.88; }
.accent { color: var(--teal); }
.accent-amber { color: var(--amber); }
.muted { color: var(--warm-grey); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.75rem 0 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { opacity: 1; filter: brightness(1.06); box-shadow: 0 8px 24px rgba(20, 25, 28, 0.12); }
.btn-primary { background: var(--teal); color: var(--concrete); border-color: var(--teal); }
.btn-secondary { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost { background: transparent; border-color: transparent; text-decoration: underline; padding-inline: 0.25rem; color: inherit; }

.cookie-banner .btn { color: var(--concrete); }
.cookie-banner .btn-primary { color: var(--concrete); background: var(--teal); border-color: var(--teal); }
.cookie-banner .btn-secondary { color: var(--concrete); border-color: rgba(236, 231, 222, 0.55); }
.cookie-banner .btn-ghost {
  color: var(--concrete);
  border: 1px solid rgba(236, 231, 222, 0.45);
  text-decoration: none;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}
.cookie-banner .btn-ghost:hover {
  border-color: var(--concrete);
  background: rgba(236, 231, 222, 0.1);
}

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-sticky {
  position: fixed;
  background: var(--ink);
  color: var(--concrete);
  box-shadow: 0 1px 0 rgba(236, 231, 222, 0.08);
}
.site-header.is-sticky .nav-toggle span { background: var(--concrete); }
.site-header.is-sticky .logo span { color: #5CB8AD; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - (var(--pad-inline) * 2), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--teal); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.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 {
  background: var(--teal);
  color: var(--concrete) !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.8125rem !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.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: 900px) {
  .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(--concrete);
    color: var(--ink);
    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, 25, 28, 0.12);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(20, 25, 28, 0.08); }
  .nav-cta { margin-top: 0.75rem; text-align: center; }
}

main { padding-top: 0; }

.hero-flux {
  min-height: auto;
  padding: 6.5rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (max-width: 720px) {
  .hero-flux { padding: 5.5rem 0 2.25rem; }
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 1rem;
}
.hero-rule {
  width: 100%;
  max-width: 12rem;
  height: 2px;
  background: var(--teal);
  margin-bottom: 1.5rem;
}
.hero-flux h1 .accent { color: var(--teal); }
.hero-standfirst { max-width: 36rem; opacity: 0.84; margin-top: 0.5rem; }

.flow-line {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
  position: relative;
}
.flow-line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
  opacity: 0.85;
}
.flow-tick {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.flow-tick::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--concrete);
}

.framed-plate {
  margin: 1.75rem 0 1.25rem;
  position: relative;
  border: 1px solid rgba(20, 25, 28, 0.45);
  padding: 0.55rem;
  background: var(--concrete);
}
.framed-plate::before,
.framed-plate::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  z-index: 2;
  box-shadow: 0 0 0 3px var(--concrete);
}
.framed-plate::before { top: -5px; left: -5px; }
.framed-plate::after { bottom: -5px; right: -5px; background: var(--amber); }
.framed-plate .plate-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #ddd8cf;
}
@media (max-width: 720px) {
  .framed-plate .plate-inner { aspect-ratio: 16 / 10; }
}
.framed-plate img { width: 100%; height: 100%; object-fit: cover; }

.trust-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--warm-grey);
  margin-top: 0.5rem;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
.split-media > div:first-child p {
  margin-bottom: 0.75rem;
  line-height: 1.55;
}
.split-media > div:first-child p:last-child { margin-bottom: 0; }
#declaration { padding-top: var(--pad-section-tight); }
#declaration .eyebrow { margin-bottom: 0.65rem; }
#declaration h2 {
  max-width: 28rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (max-width: 820px) { .split-media { grid-template-columns: 1fr; } }

.media-frame {
  border: 1px solid rgba(20, 25, 28, 0.18);
  padding: 0.35rem;
  background: var(--concrete);
}
.media-frame img { width: 100%; }

.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 720px) { .metric-trio { grid-template-columns: 1fr; } }
.metric {
  border-top: 2px solid var(--teal);
  padding-top: 1rem;
}
.metric .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 720px) { .stage-grid { grid-template-columns: 1fr; } }
.stage-card {
  border: var(--hairline);
  border-color: rgba(20, 25, 28, 0.15);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.35);
}
.stage-card .n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr; } }

.page-hero { padding: 7rem 0 2.5rem; }
.page-hero h1 { max-width: 42rem; }

.service-block {
  border-top: var(--hairline);
  border-color: rgba(20, 25, 28, 0.12);
  padding-top: 2rem;
  margin-top: 2rem;
}
.service-block .price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  margin-top: 0.75rem;
}

.case-card {
  border: var(--hairline);
  border-color: rgba(20, 25, 28, 0.14);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.28);
}

.faq-list details {
  border-bottom: var(--hairline);
  border-color: rgba(20, 25, 28, 0.12);
  padding: 1rem 0;
}
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }

.legal-prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal-prose h3 { margin-top: 1.25rem; font-size: 1.1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid rgba(20, 25, 28, 0.22);
  border-radius: var(--radius);
  background: #fff;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.875rem;
}
.form .check input { width: auto; margin-top: 0.25rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.error-page,
.thanks-page {
  min-height: 60vh;
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
}

.site-footer { padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; font-size: 0.9375rem; opacity: 0.88; }
.footer-meta { font-size: 0.875rem; opacity: 0.78; line-height: 1.55; }
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.55;
  opacity: 0.65;
  border-top: var(--hairline);
  border-color: rgba(236, 231, 222, 0.15);
  padding-top: 1.25rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { max-width: 52rem; font-size: 0.9rem; margin-bottom: 0.85rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 0.5rem; }
.cookie-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}
.cookie-panel.is-open { display: flex; }
.cookie-panel label { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; }

.faq-list summary::-webkit-details-marker { display: none; }

.service-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}
.service-rail::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 1.65rem;
  height: 2px;
  background: var(--teal);
  opacity: 0.4;
  z-index: 0;
}
.service-rail > * { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .service-rail { grid-template-columns: 1fr; }
  .service-rail::before { display: none; }
}
.service-card, .work-card {
  border: 1px solid rgba(20, 25, 28, 0.28);
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
}
.service-card::before, .work-card::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--concrete);
}
.service-card .n {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  opacity: 0.14;
  position: absolute;
  right: 0.75rem; top: 0.35rem;
  line-height: 1;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.disclaimer {
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.78;
  border-left: 2px solid var(--teal);
  padding: 0.5rem 0 0.5rem 1.1rem;
  margin: 2rem 0 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }

.reveal { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
