/* ============================================================================
   Signamax · Landing page — feuille de style responsive (mobile-first)
   Tokens étendus depuis colors_and_type.css
   Breakpoints : 0 (mobile) · 640 (tablette) · 960 (desktop) · 1280 (large)
   ========================================================================= */

@import url("./assets/colors_and_type.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-paper);
  color: var(--c-fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.018em; }

/* Container — fluide jusqu'à 1200 px de contenu utile */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) { .container { padding: 0 28px; } }
@media (min-width: 960px) { .container { padding: 0 40px; } }

/* Section padding fluide */
.section { padding: 56px 0; }
@media (min-width: 640px) { .section { padding: 72px 0; } }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-cream { background: var(--c-paper-sunk); }
.section-dark { background: var(--c-forest-900); color: var(--c-on-forest); }
.section-ink { background: var(--c-ink); color: var(--c-on-forest); }

/* ============================================================================
   TOPBAR
   ========================================================================= */
.topbar {
  background: var(--c-forest-900);
  color: var(--c-on-forest);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .topbar { font-size: 11px; }
  .topbar-inner { justify-content: space-between; gap: 20px; }
}
.topbar-item { color: var(--c-on-forest-muted); display: inline-flex; gap: 6px; }
.topbar-item strong { color: var(--c-on-forest); font-weight: 500; }
.topbar-phone { color: var(--c-on-forest); font-weight: 500; }

/* ============================================================================
   NAV (mobile-first, hamburger sur < 960)
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo img { height: 26px; max-width: 70vw; object-fit: contain; }
@media (min-width: 640px) { .nav-logo img { height: 30px; } }
/* Sur mobile, on plafonne la hauteur du logo (le style inline du tweak peut être trop grand) */
@media (max-width: 639px) {
  .nav-logo img { height: 34px !important; max-width: 62vw; }
  .mobile-drawer-head img { height: 34px !important; max-width: 62vw; object-fit: contain; }
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-fg-muted);
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  transition: color 120ms, background 120ms;
}
.nav-link:hover { color: var(--c-fg); background: var(--c-ink-06); }
.nav-link.is-active { color: var(--c-forest-600); }

.nav-cta-desktop { display: none; }
@media (min-width: 640px) { .nav-cta-desktop { display: inline-flex; } }

.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-ink-12);
  border-radius: 8px;
  background: transparent;
  color: var(--c-ink);
}
@media (min-width: 960px) { .nav-hamburger { display: none; } }

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border-soft);
}
.mobile-drawer-head img { height: 26px; }
.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--c-ink-12);
  background: transparent;
  color: var(--c-ink);
  display: grid;
  place-items: center;
}
.mobile-drawer-body {
  flex-grow: 1;
  padding: 24px 20px 80px;
}
.mobile-drawer-section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  margin: 20px 0 8px;
}
.mobile-drawer-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--c-ink-06);
  letter-spacing: -0.01em;
}
.mobile-drawer-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--c-fg-muted);
  padding: 8px 0;
}
.mobile-drawer-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================================
   BUTTONS
   ========================================================================= */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 120ms, color 120ms, box-shadow 120ms;
}
.btn-lg { font-size: 15px; padding: 14px 22px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 8px 14px; border-radius: 8px; }
.btn-primary { background: var(--c-forest-600); color: var(--c-paper); }
.btn-primary:hover { background: var(--c-forest-700); }
.btn-secondary { background: transparent; color: var(--c-forest-600); box-shadow: inset 0 0 0 1px var(--c-forest-600); }
.btn-secondary:hover { background: var(--c-forest-100); }
.btn-on-dark { background: var(--c-paper); color: var(--c-forest-900); }
.btn-ghost-on-dark { background: transparent; color: var(--c-on-forest); box-shadow: inset 0 0 0 1px var(--c-on-forest-line); }
.btn-block { width: 100%; }

/* ============================================================================
   HERO
   ========================================================================= */
.hero { padding: 48px 0 56px; }
@media (min-width: 640px) { .hero { padding: 64px 0 72px; } }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-forest-600);
  background: var(--c-forest-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-forest-600);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--c-ink);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--c-forest-600);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: var(--c-fg-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

.hero-marquee {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  flex-wrap: wrap;
}
.hero-marquee strong { color: var(--c-ink); font-weight: 500; }

.hero-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 960px) {
  .hero-aside { grid-template-columns: 1fr; gap: 0; }
}
.hero-stat {
  padding: 16px 0;
  border-top: 1px solid var(--c-ink-12);
}
@media (max-width: 959px) {
  .hero-stat:first-child, .hero-stat:nth-child(2) { border-top: 0; padding-top: 0; }
}
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.hero-stat-num small {
  font-weight: 500;
  font-size: 0.55em;
  color: var(--c-forest-600);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
  line-height: 1.5;
}

/* Hero showcase strip - hidden on small */
.hero-showcase {
  margin-top: 48px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-ink-12);
  border-bottom: 1px solid var(--c-ink-12);
}
@media (min-width: 768px) {
  .hero-showcase { display: grid; }
}
.showcase-cell {
  aspect-ratio: 4 / 3;
  border-right: 1px solid var(--c-ink-12);
  padding: 16px;
  background: var(--c-paper-sunk);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.showcase-cell:last-child { border-right: 0; }

/* ============================================================================
   SECTION HEADS
   ========================================================================= */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  margin-bottom: 14px;
  display: inline-flex;
  gap: 8px;
}
.section-eyebrow .num { color: var(--c-forest-600); }
.section-dark .section-eyebrow { color: var(--c-on-forest-faint); }
.section-dark .section-eyebrow .num { color: var(--c-forest-100); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--c-ink);
  margin-bottom: 16px;
  max-width: 760px;
}
.section-dark .section-title { color: var(--c-on-forest); }

.section-lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--c-fg-muted);
  max-width: 620px;
}
.section-dark .section-lead { color: var(--c-on-forest-muted); }

.section-head { margin-bottom: 40px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }
.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
}

/* ============================================================================
   TRUST BAND
   ========================================================================= */
.trust {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .trust-inner { grid-template-columns: auto 1fr; gap: 40px; }
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  max-width: 180px;
  line-height: 1.5;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}
@media (min-width: 480px) {
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .trust-logos { grid-template-columns: repeat(6, 1fr); gap: 32px; }
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 15px;
  color: var(--c-ink-55);
  text-align: center;
  padding: 8px 0;
  border-left: 1px solid var(--c-ink-06);
  letter-spacing: -0.01em;
}
.trust-logo:first-child { border-left: 0; }
.trust-logo img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.trust-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@media (max-width: 767px) {
  .trust-logo { border-left: 0; }
  .trust-logo:nth-child(odd) { border-right: 1px solid var(--c-ink-06); padding-right: 8px; }
}

/* ============================================================================
   SOLUTIONS — grille de cartes responsive
   ========================================================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
  .solutions-grid > :nth-child(1),
  .solutions-grid > :nth-child(2) { grid-column: span 6; }
  .solutions-grid > :nth-child(3),
  .solutions-grid > :nth-child(4),
  .solutions-grid > :nth-child(5) { grid-column: span 4; }
}
.solution-card {
  background: var(--c-paper-elev);
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms, transform 150ms;
}
.solution-card:hover { border-color: var(--c-ink-12); transform: translateY(-2px); }
.solution-card-img {
  aspect-ratio: 16 / 10;
  background: var(--c-paper-sunk);
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
/* Carrousel d'images de solution */
.sol-carousel { position: absolute; inset: 0; touch-action: pan-y; }
.sol-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 350ms cubic-bezier(.4, 0, .2, 1);
}
.sol-carousel-slide { flex: 0 0 100%; height: 100%; }
.sol-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}
.sol-carousel-arrow {
  position: absolute; top: 50%;
  width: 34px; height: 34px;
  border-radius: 999px; border: none;
  background: rgba(255,255,255,.92); color: var(--c-ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  opacity: 0; transition: opacity 150ms, background 150ms;
  z-index: 2;
}
.sol-carousel-arrow.prev { left: 10px; transform: translateY(-50%) rotate(180deg); }
.sol-carousel-arrow.next { right: 10px; transform: translateY(-50%); }
.solution-card-img:hover .sol-carousel-arrow { opacity: 1; }
.sol-carousel-arrow:hover { background: #fff; }
.sol-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center; z-index: 2;
}
.sol-carousel-dot {
  width: 6px; height: 6px; border-radius: 999px;
  border: none; background: rgba(255,255,255,.55);
  cursor: pointer; padding: 0;
  transition: background 150ms, width 150ms;
}
.sol-carousel-dot.is-active { background: #fff; width: 18px; }
@media (hover: none) {
  .sol-carousel-arrow { opacity: .9; }
}
.solution-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--c-ink);
}
.solution-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-fg-muted);
  flex-grow: 1;
}
.solution-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-forest-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.solution-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
  padding: 4px 8px;
  background: var(--c-paper-sunk);
  border-radius: 5px;
}

/* ============================================================================
   PROCESS
   ========================================================================= */
.process-steps {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--c-ink-12);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--c-ink-12); }
@media (min-width: 768px) {
  .process-step {
    grid-template-columns: 80px 1fr 1fr 160px;
    column-gap: 40px;
    padding: 32px 0;
  }
}
.process-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-forest-600);
}
@media (min-width: 768px) { .process-step-num { font-size: 56px; } }
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .process-step h3 { font-size: 22px; } }
.process-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-fg-muted);
  grid-column: span 2;
}
@media (min-width: 768px) {
  .process-step p { grid-column: auto; }
}
.process-step-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  grid-column: span 2;
}
@media (min-width: 768px) {
  .process-step-tag {
    grid-column: auto;
    text-align: right;
    padding-top: 6px;
  }
}

/* ============================================================================
   PILLARS — pourquoi nous
   ========================================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--c-forest-600);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-forest-600);
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-fg-muted);
}

/* ============================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.testimonial {
  background: var(--c-paper-elev);
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--c-forest-600);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  flex-grow: 1;
}
.testimonial-meta { display: flex; gap: 12px; align-items: center; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-forest-600);
  color: var(--c-on-forest);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}
.testimonial-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
  margin-top: 2px;
}

/* ============================================================================
   FAQ
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--c-ink-12);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--c-ink-12); }
.faq-item-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}
@media (min-width: 768px) { .faq-item-q { font-size: 19px; } }
.faq-item-a {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-fg-muted);
  margin-top: 12px;
  max-width: 760px;
}

/* ============================================================================
   DEVIS — formulaire inline
   ========================================================================= */
.devis-wrap {
  background: var(--c-paper-elev);
  border: 1px solid var(--c-border-soft);
  border-radius: 20px;
  padding: 28px;
  margin-top: 32px;
}
@media (min-width: 768px) { .devis-wrap { padding: 40px; } }
@media (min-width: 960px) {
  .devis-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
  }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-fg-muted);
}
.input, .select, .textarea {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--c-fg);
  background: var(--c-paper);
  padding: 12px 14px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--c-ink-12);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.input::placeholder { color: var(--c-fg-faint); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c-forest-600);
  box-shadow: 0 0 0 3px rgba(17,84,49,0.12);
}
.textarea { resize: vertical; min-height: 96px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.devis-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 540px) {
  .devis-form-row { grid-template-columns: 1fr 1fr; }
  .devis-form-row.single { grid-template-columns: 1fr; }
}

.devis-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
@media (min-width: 540px) {
  .devis-options { grid-template-columns: repeat(3, 1fr); }
}
.devis-option {
  padding: 12px 14px;
  border: 1px solid var(--c-ink-12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-fg);
  cursor: pointer;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms;
}
.devis-option:hover { border-color: var(--c-ink-35); }
.devis-option.is-active {
  border-color: var(--c-forest-600);
  background: var(--c-forest-100);
  color: var(--c-forest-700);
}
.devis-option-check {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--c-ink-35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.devis-option.is-active .devis-option-check {
  background: var(--c-forest-600);
  border-color: var(--c-forest-600);
  color: var(--c-paper);
}

.devis-side { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
@media (min-width: 960px) { .devis-side { margin-bottom: 0; } }
.devis-side h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.devis-promise {
  background: var(--c-forest-100);
  border-radius: 12px;
  padding: 16px 18px;
}
.devis-promise h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-forest-700);
  margin-bottom: 6px;
}
.devis-promise ul { display: flex; flex-direction: column; gap: 5px; }
.devis-promise li {
  font-size: 13px;
  color: var(--c-forest-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.devis-promise svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Budget */
.devis-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.devis-budget-option {
  padding: 9px 14px;
  border: 1px solid var(--c-ink-12);
  border-radius: 8px;
  background: var(--c-surface, #fff);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: all 120ms;
}
.devis-budget-option:hover { border-color: var(--c-ink-35); }
.devis-budget-option.is-active {
  border-color: var(--c-forest-600);
  background: var(--c-forest-100);
  color: var(--c-forest-700);
}

/* File upload */
.devis-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 22px 16px;
  border: 1.5px dashed var(--c-ink-35);
  border-radius: 10px;
  background: var(--c-forest-100);
  color: var(--c-fg-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.devis-dropzone strong { color: var(--c-ink); font-weight: 600; }
.devis-dropzone:hover { border-color: var(--c-forest-600); }
.devis-dropzone.is-over {
  border-color: var(--c-forest-600);
  background: var(--c-forest-200, var(--c-forest-100));
}
.devis-dropzone svg { color: var(--c-forest-600); transform: rotate(90deg); margin-bottom: 2px; }
.devis-dropzone-hint { font-size: 11px; opacity: 0.75; }
.devis-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.devis-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--c-ink-12);
  border-radius: 8px;
  background: var(--c-surface, #fff);
  font-size: 13px;
}
.devis-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-ink);
  font-weight: 500;
}
.devis-file-size { color: var(--c-fg-muted); font-size: 12px; flex-shrink: 0; }
.devis-file-remove {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 6px;
  background: var(--c-ink-12);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms;
}
.devis-file-remove:hover { background: var(--c-forest-200, var(--c-forest-100)); }

.devis-success {
  text-align: center;
  padding: 40px 24px;
}
.devis-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-forest-100);
  color: var(--c-forest-600);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.devis-success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.devis-success p {
  font-size: 14px;
  color: var(--c-fg-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================================
   ZONE PACA — carte
   ========================================================================= */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .zone-grid { grid-template-columns: 1fr; gap: 56px; }
}
.zone-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  margin-top: 24px;
}
.zone-city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-ink-06);
  font-size: 14px;
  color: var(--c-ink);
  font-weight: 500;
  cursor: pointer;
}
.zone-city-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
}
.zone-map {
  aspect-ratio: 5 / 4;
  background: var(--c-paper-sunk);
  border-radius: 16px;
  border: 1px solid var(--c-border-soft);
  overflow: hidden;
}

/* ============================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--c-ink);
  color: var(--c-on-forest);
  padding: 56px 0 24px;
}
@media (min-width: 768px) { .footer { padding: 80px 0 32px; } }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-on-forest-line);
}
@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
  }
}
.footer-brand .footer-logo {
  display: block;
  margin-bottom: 20px;
}
.footer-brand .footer-logo img {
  height: 28px;
  filter: invert(1) brightness(2);
}
.footer-brand-pitch {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-on-forest);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  max-width: 320px;
}
.footer-brand-address {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-on-forest-muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-on-forest-faint);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--c-on-forest);
  opacity: 0.85;
  cursor: pointer;
}
.footer-col a:hover { opacity: 1; color: var(--c-forest-100); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 24px;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; padding-top: 32px; }
}
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-on-forest-faint);
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-on-forest-faint);
}

/* ============================================================================
   PLACEHOLDER IMAGES
   ========================================================================= */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 24px, rgba(14,19,15,0.025) 24px, rgba(14,19,15,0.025) 25px),
    var(--c-paper-sunk);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  overflow: hidden;
}
.ph-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--c-forest-600);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.18;
}
.ph-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
}
.ph-cap strong { color: var(--c-ink); font-weight: 500; }
.ph-dark {
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 24px, rgba(255,255,255,0.04) 24px, rgba(255,255,255,0.04) 25px),
    var(--c-forest-900);
}
.ph-dark .ph-icon { color: var(--c-forest-100); opacity: 0.22; }
.ph-dark .ph-cap { color: var(--c-on-forest-muted); }
.ph-dark .ph-cap strong { color: var(--c-on-forest); }

/* ============================================================================
   FINAL CTA
   ========================================================================= */
.final-cta { background: var(--c-forest-900); color: var(--c-on-forest); padding: 64px 0; }
@media (min-width: 768px) { .final-cta { padding: 96px 0; } }
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) { .final-cta-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-on-forest);
  margin-bottom: 18px;
}
.final-cta p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--c-on-forest-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 480px) {
  .final-cta-actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
.final-cta-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-on-forest-faint);
  text-align: left;
}
@media (min-width: 960px) { .final-cta-mark { text-align: right; } }
.final-cta-mark .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-on-forest);
  display: block;
  margin: 8px 0;
}

/* ============================================================================
   UTILITY
   ========================================================================= */
.t-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
}
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* Focus rings */
.btn:focus-visible, .nav-link:focus-visible, .devis-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 84, 49, 0.22);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ============================================================================
   TWEAKS — show/hide sections via data-* attributes on <html>
   ========================================================================= */
html[data-show-topbar="false"] .topbar { display: none; }
html[data-show-trust="false"] .trust { display: none; }
html[data-show-solutions="false"] #solutions { display: none; }
html[data-show-process="false"] #process { display: none; }
html[data-show-realisations="false"] #realisations { display: none; }
html[data-show-pillars="false"] .pillars-grid,
html[data-show-pillars="false"] .pillars-section { display: none; }
html[data-show-testimonials="false"] #temoignages { display: none; }
html[data-show-zone="false"] #zone { display: none; }
html[data-show-faq="false"] #faq { display: none; }
html[data-show-devis="false"] #devis { display: none; }
html[data-show-final-cta="false"] .final-cta { display: none; }
html[data-show-hero-tag="false"] .hero-tag { display: none; }
html[data-show-hero-stats="false"] .hero-aside { display: none; }
html[data-show-hero-stats="false"] .hero-grid { grid-template-columns: 1fr !important; }
html[data-show-hero-showcase="false"] .hero-showcase { display: none !important; }
html[data-show-eyebrow-numbers="false"] .section-eyebrow .num { display: none; }
html[data-show-section-eyebrows="false"] .section-eyebrow { display: none; }

/* TWEAKS — radius scale */
html[data-radius="sharp"] {
  --r-card: 0px;
  --r-btn: 4px;
}
html[data-radius="rounded"] {
  --r-card: 16px;
  --r-btn: 10px;
}
html[data-radius="soft"] {
  --r-card: 24px;
  --r-btn: 14px;
}
html[data-radius="pill"] {
  --r-card: 28px;
  --r-btn: 999px;
}
html[data-radius] .btn { border-radius: var(--r-btn, 10px); }
html[data-radius] .btn-lg { border-radius: calc(var(--r-btn, 10px) + 2px); }
html[data-radius] .solution-card,
html[data-radius] .testimonial,
html[data-radius] .devis-wrap,
html[data-radius] .zone-map,
html[data-radius] .devis-promise { border-radius: var(--r-card, 16px) !important; }
html[data-radius] .solution-card-img,
html[data-radius] .hero-tag,
html[data-radius] .input,
html[data-radius] .select,
html[data-radius] .textarea,
html[data-radius] .devis-option,
html[data-radius] .nav-link,
html[data-radius] .nav-hamburger,
html[data-radius] .mobile-drawer-close,
html[data-radius] .tag {
  border-radius: calc(var(--r-btn, 10px) * 0.8) !important;
}

/* TWEAKS — button style */
html[data-button="pill"] .btn { border-radius: 999px; }
html[data-button="sharp"] .btn { border-radius: 4px; }

/* TWEAKS — card style */
html[data-card="flat"] .solution-card,
html[data-card="flat"] .testimonial {
  border-color: transparent;
  background: var(--c-paper-sunk);
}
html[data-card="shadow"] .solution-card,
html[data-card="shadow"] .testimonial {
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 10px 30px -10px rgba(0,0,0,0.08);
}

/* TWEAKS — section density (padding) */
html[data-density="dense"] .section { padding: 40px 0; }
@media (min-width: 640px) { html[data-density="dense"] .section { padding: 52px 0; } }
@media (min-width: 960px) { html[data-density="dense"] .section { padding: 64px 0; } }

html[data-density="airy"] .section { padding: 80px 0; }
@media (min-width: 640px) { html[data-density="airy"] .section { padding: 100px 0; } }
@media (min-width: 960px) { html[data-density="airy"] .section { padding: 140px 0; } }

/* TWEAKS — hero alignment */
html[data-hero-align="center"] .hero-grid {
  grid-template-columns: 1fr !important;
  text-align: center;
}
html[data-hero-align="center"] .hero-aside { display: none; }
html[data-hero-align="center"] .hero-cta,
html[data-hero-align="center"] .hero-marquee {
  justify-content: center;
}
html[data-hero-align="center"] .hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
html[data-hero-align="center"] .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* TWEAKS — footer style */
html[data-footer="forest"] .footer {
  background: var(--c-forest-900);
}
html[data-footer="paper"] .footer {
  background: var(--c-paper-sunk);
  color: var(--c-ink);
}
html[data-footer="paper"] .footer-brand-pitch,
html[data-footer="paper"] .footer-col a,
html[data-footer="paper"] .footer-copyright,
html[data-footer="paper"] .footer-legal,
html[data-footer="paper"] .footer-col h4,
html[data-footer="paper"] .footer-brand-address { color: var(--c-ink) !important; opacity: 0.7; }
html[data-footer="paper"] .footer-brand-pitch { color: var(--c-ink) !important; opacity: 1; }
html[data-footer="paper"] .footer-top { border-bottom-color: var(--c-ink-12); }
html[data-footer="paper"] .footer-brand .footer-logo img { filter: none; }

/* TWEAKS — container width applied via :root --container-max-tw */
html { --container-max-tw: 1200px; }
.container { max-width: var(--container-max-tw, 1200px); }


/* When hero stats aside is hidden inline, hero-grid becomes single column */
.hero-grid:has(> aside[style*="none"]) { grid-template-columns: 1fr; }
/* No aside at all (robot/sign removed) → full-width hero text */
.hero-grid:not(:has(> aside)) { grid-template-columns: 1fr !important; }
.hero-grid:not(:has(> aside)) > div { max-width: 820px; }


/* Hero visual — lettres boitier 3D */
.hero-visual-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 20px 0;
}
.hero-visual {
  width: 100%;
  max-width: 480px;
  background: transparent;
}
@media (min-width: 960px) {
  .hero-visual { max-width: none; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 639px) {
  .hero-visual { max-width: 360px; opacity: 0.95; }
}


/* ============================================================================
   HERO ANIMÉ — mot rotatif (adapté de 21st.dev/tommyjepsen/animated-hero)
   ========================================================================= */
.hero-animated-h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
}
@media (max-width: 639px) {
  .hero-animated-h1 { gap: 2px; }
}
.hero-static-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--c-ink);
}
.hero-rotator {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 1.1em;
  overflow: visible;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1;
  letter-spacing: -0.028em;
}
.hero-rotator-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--c-forest-600);
  font-style: italic;
  transform: translateY(150%);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(0.34, 1.35, 0.64, 1),
    opacity 400ms ease-out;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-rotator-word.is-up {
  transform: translateY(-150%);
  opacity: 0;
}
.hero-rotator-word.is-down {
  transform: translateY(150%);
  opacity: 0;
}
.hero-rotator-word.is-active {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator-word {
    transition: none;
  }
}


/* Élargir le hero : container hero plus large + lignes statiques sur 1 ligne */
.hero .container {
  max-width: min(1400px, calc(100vw - 32px));
}
.hero-static-line,
.hero-rotator-word {
  white-space: nowrap;
}
@media (min-width: 960px) {
  .hero-animated-h1 .hero-static-line { font-size: clamp(48px, 8.5vw, 96px); }
  .hero-rotator { font-size: clamp(48px, 8.5vw, 96px); }
}


/* ============================================================================
   HERO IMAGE — rectangle à droite, modifiable via Tweaks
   ========================================================================= */
.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  background: var(--c-paper-sunk);
  border: 1px solid var(--c-border-soft);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 20px 40px -20px rgba(0,0,0,0.12);
}
.hero-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--c-fg-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 28px, rgba(14,19,15,0.025) 28px, rgba(14,19,15,0.025) 29px),
    var(--c-paper-sunk);
  text-align: center;
}
.hero-image-ph-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-forest-100);
  color: var(--c-forest-600);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.hero-image-ph-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-faint);
  line-height: 1.6;
  padding: 0 24px;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .hero-image { aspect-ratio: 4 / 5; max-height: 560px; }
}
@media (max-width: 959px) {
  .hero-image { aspect-ratio: 16 / 9; max-height: 400px; }
}
html[data-radius="sharp"] .hero-image { border-radius: 0; }
html[data-radius="soft"] .hero-image { border-radius: 28px; }
html[data-radius="pill"] .hero-image { border-radius: 32px; }


/* ============================================================================
   HERO — letter-by-letter intro + video background + overlay (modern)
   ========================================================================= */
.hero { position: relative; overflow: hidden; }

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 78% 12%, rgba(35, 110, 70, 0.55) 0%, rgba(13, 54, 31, 0) 55%),
    radial-gradient(90% 90% at 10% 100%, rgba(9, 40, 23, 0.9) 0%, rgba(13, 54, 31, 0) 60%),
    linear-gradient(160deg, #114a2b 0%, #0d361f 48%, #0a2c19 100%);
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13, 54, 31, 0.78) 0%,
      rgba(13, 54, 31, 0.55) 40%,
      rgba(13, 54, 31, 0.72) 100%),
    linear-gradient(90deg,
      rgba(13, 54, 31, 0.85) 0%,
      rgba(13, 54, 31, 0.40) 60%,
      rgba(13, 54, 31, 0.20) 100%);
}
.hero-video-overlay.hero-image-overlay {
  background:
    linear-gradient(180deg,
      rgba(13, 54, 31, 0.30) 0%,
      rgba(13, 54, 31, 0.12) 42%,
      rgba(13, 54, 31, 0.48) 100%),
    linear-gradient(90deg,
      rgba(13, 54, 31, 0.42) 0%,
      rgba(13, 54, 31, 0.10) 60%,
      rgba(13, 54, 31, 0) 100%);
}
.hero.hero-has-video .container { position: relative; z-index: 1; }
.hero.hero-has-video,
.hero.hero-has-video .hero-tag {
  color: var(--c-on-forest);
}
.hero.hero-has-video .hero-tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero.hero-has-video .hero-tag::before { background: var(--c-forest-100); }
.hero.hero-has-video .hero-static-line,
.hero.hero-has-video .hero-rotator { color: #fff; }
.hero.hero-has-video .hero-rotator-word { color: var(--c-forest-100); mix-blend-mode: screen; }
.hero.hero-has-video .hero-sub { color: rgba(255,255,255,0.86); }
.hero.hero-has-video .hero-marquee strong,
.hero.hero-has-video .hero-marquee { color: rgba(255,255,255,0.78); }
.hero.hero-has-video .btn-secondary {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  background: transparent;
}
.hero.hero-has-video .btn-secondary:hover { background: rgba(255,255,255,0.10); }
.hero.hero-has-video .hero-image,
.hero.hero-has-video .hero-image-placeholder {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Letter-by-letter entrance — pure CSS, triggered by .is-in */
.hero-static-line { display: inline-block; }
.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotateX(35deg);
  transform-origin: center bottom;
  transition:
    opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.hero-letter.is-in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Tag entrance */
.hero-tag {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: 0ms;
}
.hero-tag.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter,
  .hero-tag {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-video-bg video { display: none; }
}


/* ============================================================================
   HERO ROBOT — illustration animée
   ========================================================================= */
.hero-robot {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}
.hero-robot svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes robot-shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.10; }
  50% { transform: scaleX(0.78); opacity: 0.06; }
}
@keyframes robot-eye-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.05); }
}
@keyframes robot-antenna-pulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(2.2); opacity: 0; }
}
@keyframes robot-led-blink {
  0%, 70%, 100% { opacity: 0.3; }
  20%, 50% { opacity: 1; }
}
@keyframes robot-heart-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.08); }
  40% { transform: scale(1); }
}
@keyframes robot-arm-wave {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-18deg); }
  60% { transform: rotate(-12deg); }
}

.robot-float {
  animation: robot-float 4s ease-in-out infinite;
  transform-origin: center center;
}
.robot-shadow {
  animation: robot-shadow-pulse 4s ease-in-out infinite;
  transform-origin: 180px 430px;
}
.robot-eye {
  animation: robot-eye-blink 4.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.robot-antenna-pulse {
  transform-origin: 180px 15px;
  animation: robot-antenna-pulse 1.8s ease-out infinite;
}
.robot-led-1 { animation: robot-led-blink 1.6s ease-in-out infinite; }
.robot-led-2 { animation: robot-led-blink 1.6s ease-in-out infinite 0.25s; }
.robot-led-3 { animation: robot-led-blink 1.6s ease-in-out infinite 0.5s; }
.robot-heart {
  animation: robot-heart-beat 1.2s ease-in-out infinite;
  transform-origin: 180px 265px;
  transform-box: fill-box;
}
.robot-arm-right {
  animation: robot-arm-wave 3s ease-in-out infinite;
  transform-origin: 299px 225px;
  transform-box: fill-box;
}

@media (prefers-reduced-motion: reduce) {
  .robot-float,
  .robot-shadow,
  .robot-eye,
  .robot-antenna-pulse,
  .robot-led-1, .robot-led-2, .robot-led-3,
  .robot-heart,
  .robot-arm-right { animation: none; }
}

/* On video background, soften strokes for contrast */
.hero.hero-has-video .hero-robot svg { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }


/* ============================================================================
   HERO ROBOT — Spline 3D scene wrapper
   ========================================================================= */
.hero-robot-spline {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  overflow: visible;
}
.hero-robot-spline-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: visible;
  background: transparent;
}
.hero-robot-spline-card spline-viewer {
  width: 124% !important;
  height: 124% !important;
  display: block;
  background: transparent !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}
/* Hide the Spline watermark badge */
.hero-robot-spline-card spline-viewer::part(logo),
.hero-robot-spline-card spline-viewer #logo {
  display: none !important;
}
/* Spotlight overlay — animated highlight */
.hero-robot-spotlight { display: none; }
.hero-robot-spline-card::after { content: none; }

/* Mobile: keep aspect ratio reasonable */
@media (max-width: 959px) {
  .hero-robot-spline { aspect-ratio: 16 / 11; max-height: 360px; }
}
@media (min-width: 1200px) {
  .hero-robot-spline { aspect-ratio: 5 / 6; }
}

html[data-radius="sharp"] .hero-robot-spline-card { border-radius: 0; }
html[data-radius="soft"] .hero-robot-spline-card { border-radius: 32px; }
html[data-radius="pill"] .hero-robot-spline-card { border-radius: 40px; }
