/* ==========================================================================
   PureFlow — feuille de styles
   ========================================================================== */

:root {
  --green-dark: #4C7A2E;
  --green: #7FA84D;
  --green-mid: #93B863;
  --green-light: #C3D9A0;
  --yellow: #E9DE8E;
  --yellow-light: #F5F1D0;
  --ink: #1A1B16;
  --ink-soft: #4A4B42;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF5;
  --bg-card: #F5F4EC;
  --line: #E7E5D8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(26, 27, 22, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(26, 27, 22, 0.12);
  --ff: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--yellow-light);
  border: 1px solid var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
}

h1, h2, h3, h4 {
  font-family: var(--ff);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section { padding: 96px 0; }

.bg-soft { background: var(--bg-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--yellow-light); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(0,0,0,0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand .logo-mark { width: 36px; height: 36px; }
.brand span.flow { color: var(--green-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 28px 22px;
}
.mobile-panel a {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.mobile-panel .btn { margin-top: 14px; width: 100%; }

body.nav-open .mobile-panel { display: flex; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(233, 222, 142, 0.55), transparent 60%),
    radial-gradient(45% 45% at 100% 45%, rgba(127, 168, 77, 0.16), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 20px 0 20px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green-dark);
  position: relative;
}

.hero-copy p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.3rem; color: var(--ink); }
.hero-trust span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-visual .float-card.top { top: 6%; left: -4%; animation: floaty 6s ease-in-out infinite; }
.hero-visual .float-card.bottom { bottom: 8%; right: -6%; animation: floaty 6s ease-in-out infinite 1.5s; }
.hero-visual .float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee / logos strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Services / Pro ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-light);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--yellow-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--green-dark); }

.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
}
.process-step .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-light);
  margin-bottom: 10px;
  display: block;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Matériaux ---------- */
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.material-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.material-chip .swatch { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Portfolio / Réalisations ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.work-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-visual svg { width: 62%; height: 62%; }

.work-body { padding: 18px 20px 22px; }
.work-body .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.work-body h4 { margin: 6px 0 4px; font-size: 1.05rem; }
.work-body p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, var(--yellow-light), var(--green-light) 70%);
  display: flex; align-items: center; justify-content: center;
}
.about-visual svg { width: 55%; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item .dot-icon {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.value-item .dot-icon svg { width: 18px; height: 18px; stroke: var(--green-dark); }
.value-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.value-item p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* ---------- Chiffres ---------- */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--yellow);
  font-weight: 800;
}
.stats-grid span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---------- Témoignages ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.testimonial-card .stars { color: var(--green-dark); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-card p { font-size: 0.95rem; color: var(--ink); margin: 0 0 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.author .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.author strong { display: block; font-size: 0.88rem; }
.author span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}
.faq-q .plus {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-q .plus::before { width: 9px; height: 1.4px; }
.faq-q .plus::after { width: 1.4px; height: 9px; transition: transform 0.25s ease; }
.faq-item.open .plus { background: var(--green); border-color: var(--green); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: #fff; }
.faq-item.open .plus::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; max-width: 640px; }

/* ---------- Contact / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 28px;
  padding: 60px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; max-width: 420px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  margin-top: 70px;
}

.contact-info h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 26px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-item .dot-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .dot-icon svg { width: 18px; height: 18px; stroke: var(--green-dark); }
.contact-item strong { display: block; font-size: 0.92rem; }
.contact-item span { font-size: 0.88rem; color: var(--ink-soft); }

.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.socials svg { width: 16px; height: 16px; }

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--ff);
  font-size: 0.92rem;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(127,168,77,0.15);
}
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--yellow-light);
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  color: rgba(255,255,255,0.68);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 70px 0; }
  .hero { padding-top: 140px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .cta-band .actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual .float-card { display: none; }
}
