:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d8;
  --fg: #211d17;
  --muted: #756e60;
  --accent: #a9752f;
  --accent-soft: rgba(169, 117, 47, 0.12);
  --line: rgba(33, 29, 23, 0.12);
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(169, 117, 47, 0.5);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.hovered {
  width: 60px; height: 60px;
  background: var(--accent-soft);
  border-color: var(--accent);
}
@media (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9997;
  width: 0%;
  transition: width .1s linear;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  z-index: 500;
  color: var(--fg);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.nav-logo-mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav-logo-mark span { color: var(--accent); }
.nav-logo-full {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 40px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--fg);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; background: var(--accent); }

.has-dropdown { display: flex; align-items: center; gap: 4px; }
.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute;
  top: 28px; left: -16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 24px 48px rgba(33,29,23,0.12);
}
.dropdown-wrap:hover .dropdown,
.dropdown-wrap:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-cta {
  border: 1px solid var(--fg);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav { padding: 20px 24px; background: rgba(246,241,231,0.8); backdrop-filter: blur(8px); }
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 600;
  }
  .nav-burger span {
    width: 24px; height: 1px;
    background: var(--fg);
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-family: var(--serif);
  font-size: 32px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open { transform: translateY(0); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 48px 60px;
}
.hero-bg-number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 42vw;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(33,29,23,0.07);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: 1000px; }
.hero-eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .reveal-line { display: inline-block; }
.hero-sub {
  margin-top: 32px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 16px 34px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.btn-ghost {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg); }

.hero-chart {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-58%);
  width: 400px;
  z-index: 1;
  pointer-events: none;
}
.hero-chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-area {
  fill: url(#none);
  fill: rgba(201, 161, 90, 0.08);
  stroke: none;
  opacity: 0;
  transition: opacity 1s ease;
  transition-delay: .6s;
}
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
}
.chart-dot {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .4s ease;
  transition-delay: 1.9s;
}
.hero.in-view .chart-dot { animation: pulse-dot 2s ease-in-out 2.1s infinite; }
@keyframes pulse-dot {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 7; opacity: .6; }
}

/* OEC membership badge */
.oec-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 360px;
  width: fit-content;
}
.oec-badge-logo {
  height: 26px;
  width: auto;
  border-radius: 3px;
  flex-shrink: 0;
}
.oec-badge-top {
  margin-top: 0;
  margin-bottom: 28px;
  padding: 8px 14px;
}
.oec-badge-top .oec-badge-logo { height: 20px; }
.oec-badge-top span { font-size: 11px; }
.oec-badge span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* Rotating brand badge */
.hero-badge {
  position: relative;
  width: 110px;
  height: 110px;
  margin-top: 56px;
}
.badge-spin {
  width: 100%;
  height: 100%;
  animation: badge-rotate 24s linear infinite;
}
@keyframes badge-rotate {
  to { transform: rotate(360deg); }
}
.badge-spin text { fill: var(--muted); }
.badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-center svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 700px) {
  .hero-badge { display: none; }
}

/* Circular stat ring */
.ring-wrap { position: relative; width: 92px; height: 92px; margin-bottom: 18px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
}
.stat.in-view .ring-fg {
  stroke-dashoffset: calc(264 - (264 * var(--pct)) / 100);
}
.ring-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--accent);
}
.hero.in-view .chart-line { stroke-dashoffset: 0; transition-delay: .5s; }
.hero.in-view .chart-area { opacity: 1; }
.hero.in-view .chart-dot { opacity: 1; }
/* Hero title row — title next to the digit tube */
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-title-row .hero-title { flex: 0 1 auto; }

/* Digit tube — random numbers tumbling in 3D, at different depths */
.digit-tube {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  overflow: hidden;
  perspective: 650px;
}
.tube-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.tube-repel {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.tube-digit {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-weight: 600;
  white-space: nowrap;
  backface-visibility: hidden;
  text-shadow: 0 2px 6px rgba(33,29,23,0.12);
}
@media (max-width: 860px) {
  .digit-tube { display: none; }
}
.chart-label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 1180px) {
  .hero-chart { display: none; }
}

.hero-ticker {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.ticker-track span::after { content: '/'; margin-left: 48px; color: var(--line); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Secondary page hero */
.page-hero {
  padding: 160px 48px 90px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-bg-number { font-size: 24vw; }
.page-hero-content { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 20px;
}
.page-hero-sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* Fact grid (cabinet page) */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 90px;
}
.fact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.fact-card .fact-label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fact-card p { font-size: 15px; line-height: 1.6; }
.fact-card strong { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 6px; }
@media (max-width: 860px) {
  .fact-grid { grid-template-columns: 1fr; }
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--fg); font-weight: 500; }

/* Values / advantages grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.value-card {
  background: var(--bg);
  padding: 40px;
}
.value-card .value-index {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
  display: block;
}
.value-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.value-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* CTA banner (used on multiple pages) */
.cta-banner {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 48px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-actions { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* Devis / contact form choice groups */
.field-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.choice-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.choice {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 12px 20px;
  border-radius: 40px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.choice:hover { border-color: var(--accent); }
.choice.selected { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.contact-methods { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-method svg { width: 22px; height: 22px; stroke: var(--accent); flex-shrink: 0; }
.contact-method div strong { display: block; font-family: var(--serif); font-size: 16px; }
.contact-method div span { color: var(--muted); font-size: 13px; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.blog-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Section shared */
section { padding: 140px 48px; position: relative; }
.section-head { max-width: 700px; margin-bottom: 80px; }
.tag {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2, .contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Chiffres */
.chiffres { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.stat p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 180px;
  margin-top: 90px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.growth-chart .bar {
  flex: 1;
  height: 0;
  background: linear-gradient(180deg, var(--accent), rgba(201, 161, 90, 0.1));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 1.1s cubic-bezier(.16,1,.3,1);
}
.growth-chart.in-view .bar { height: var(--h); }
.growth-chart .bar:nth-child(1) { transition-delay: .05s; }
.growth-chart .bar:nth-child(2) { transition-delay: .12s; }
.growth-chart .bar:nth-child(3) { transition-delay: .19s; }
.growth-chart .bar:nth-child(4) { transition-delay: .26s; }
.growth-chart .bar:nth-child(5) { transition-delay: .33s; }
.growth-chart .bar:nth-child(6) { transition-delay: .40s; }
.growth-chart .bar span {
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.chart-caption {
  margin-top: 44px;
  font-size: 13px;
  color: var(--muted);
}

/* Services */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 52px 60px 320px 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s cubic-bezier(.16,1,.3,1), background .4s ease;
}
.service-row:hover {
  padding-left: 24px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.service-row:hover .service-icon svg { stroke: var(--accent); transform: scale(1.08); }
.service-icon svg {
  width: 32px; height: 32px;
  stroke: var(--fg);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease, transform .3s ease;
}
.service-index {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 15px;
}
.service-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
}
.service-row p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 480px; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease;
}
.team-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.team-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 24px;
}
.team-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.team-card p { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Contact */
.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner { max-width: 1100px; margin: 0 auto; }
.contact h2 { margin-bottom: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-link { font-size: 20px; font-family: var(--serif); border-bottom: 1px solid var(--line); width: fit-content; padding-bottom: 4px; }
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-addr { color: var(--muted); margin-top: 20px; line-height: 1.6; }

.contact-form { display: flex; flex-direction: column; gap: 28px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  resize: none;
}
.field label {
  position: absolute;
  left: 0; top: 8px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transition: transform .25s ease, font-size .25s ease, color .25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field.filled label {
  transform: translateY(-20px);
  font-size: 12px;
  color: var(--accent);
}
.contact-form .btn-primary { align-self: flex-start; border: none; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 90px 24px; }
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 48px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .footer { flex-direction: column; gap: 8px; padding: 24px; }
}

/* Reveal animations */
.reveal-line, .reveal-word {
  transform: translateY(110%);
  opacity: 0;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .9s ease;
}
.reveal-word { display: inline-block; }
.hero.in-view .reveal-line,
.hero.in-view .reveal-word { transform: translateY(0); opacity: 1; }

.hero-title .line:nth-child(1) .reveal-line { transition-delay: .1s; }
.hero-title .line:nth-child(2) .reveal-line { transition-delay: .22s; }
.hero-title .line:nth-child(3) .reveal-line { transition-delay: .34s; }

.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal-fade.in-view { opacity: 1; transform: translateY(0); }

/* Assistant comptable — FAQ widget */
.faq-widget { position: fixed; right: 28px; bottom: 28px; z-index: 700; cursor: auto; }
.faq-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(33,29,23,0.25);
  transition: transform .25s ease;
}
.faq-toggle:hover { transform: scale(1.06); }
.faq-toggle svg { width: 24px; height: 24px; }

.faq-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: 70vh;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(33,29,23,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.faq-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.faq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.faq-panel-header strong { display: block; font-family: var(--serif); font-size: 15px; }
.faq-panel-header span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.faq-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.faq-close:hover { color: var(--fg); }

.faq-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.faq-msg a { color: inherit; text-decoration: underline; }
.faq-msg-bot {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.faq-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.faq-typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.faq-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: faq-bounce 1.1s ease-in-out infinite;
}
.faq-typing span:nth-child(2) { animation-delay: .15s; }
.faq-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes faq-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.faq-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.faq-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
}
.faq-input-row input:focus { border-color: var(--accent); }
.faq-input-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.faq-input-row button svg { width: 17px; height: 17px; }

@media (max-width: 480px) {
  .faq-widget { right: 16px; bottom: 16px; }
  .faq-panel { width: calc(100vw - 32px); bottom: 72px; }
}
