/* ============================================================
   SOLVAIT — Stylesheet partagé
   Palette : ivoire / encre / vert forêt / lime acide
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

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

:root {
  --bg:         #F7F6F2;
  --dark:       #111110;
  --green:      #1B5238;
  --green-mid:  #2A7A4A;
  --lime:       #C3E84A;
  --lime-dark:  #9BBE35;
  --card:       #EEEAE2;
  --border:     #DEDAD2;
  --muted:      #7A7870;
  --white:      #FFFFFF;

  --font-d: 'Space Grotesk', sans-serif;
  --font-b: 'DM Sans', sans-serif;

  --max:   1200px;
  --r:     14px;
  --r-sm:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }

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

.lime    { color: var(--lime); }
.green   { color: var(--green); }
.muted   { color: var(--muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(195,232,74,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.3s, background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(247,246,242,0.94);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--dark);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--lime); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }

.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s;
}

/* mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}
.mobile-menu a:hover { color: var(--green); }

/* ============================================================
   HERO — Page d'accueil
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 150px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Glow décoratif */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(195,232,74,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(27,82,56,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.hero-title { margin-bottom: 28px; }
.hero-title .block2 {
  display: block;
  color: var(--green);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 400;
}

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

.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-num .accent { color: var(--lime); }
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 5px;
}

/* ---- Visuel orbital CSS ---- */
.hero-orbital {
  position: relative;
  width: 380px;
  height: 440px;
  flex-shrink: 0;
}

.orbital-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transform: translate(-50%, -50%);
}
.ring-1 { width: 180px; height: 180px; }
.ring-2 {
  width: 300px; height: 300px;
  border-style: dashed;
  animation: ring-spin 24s linear infinite;
}
.ring-3 {
  width: 400px; height: 400px;
  border-width: 1px;
  opacity: 0.5;
  animation: ring-spin 40s linear infinite reverse;
}

.orbital-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 112px; height: 112px;
  background: var(--green);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 20px 60px rgba(27,82,56,0.35);
}
.orbital-center-label {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
}
.orbital-center-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(195,232,74,0.6);
}

.orbital-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(195,232,74,0.6);
}
.orbital-dot.d1 { animation: orbit-dot 7s linear infinite; }
.orbital-dot.d2 { animation: orbit-dot 7s linear infinite -2.33s; }
.orbital-dot.d3 { animation: orbit-dot 7s linear infinite -4.66s; }

.orbital-node {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.node-1 { top: 14%; right: 0; }
.node-2 { bottom: 14%; left: 0; }
.node-3 { top: 50%; right: -10px; transform: translateY(-50%); }

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-dot {
  0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(150px) rotate(0deg);   }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* ============================================================
   SECTIONS — BASE
   ============================================================ */
.section        { padding: 104px 0; }
.section-alt    { background: var(--card); }
.section-dark   { background: var(--green); color: var(--white); }
.section-ink    { background: var(--dark); color: var(--white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.section-dark .section-label,
.section-ink .section-label { color: var(--lime); }

.section-title { margin-bottom: 20px; }
.section-dark .section-title,
.section-ink .section-title { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}
.section-dark .section-sub,
.section-ink .section-sub { color: rgba(255,255,255,0.55); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.09);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.68; }

/* ============================================================
   POURQUOI — Différenciateurs
   ============================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--lime);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.why-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-body p {
  font-size: 0.875rem;
  color: var(--muted);
}

.metrics-panel {
  background: var(--dark);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 18px 22px;
}
.metric-lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.metric-val {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lime);
}

/* ============================================================
   PROCESSUS
   ============================================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 16px;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: var(--border);
}

.process-step { text-align: center; padding: 0 12px; }

.step-bubble {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(27,82,56,0.3);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================
   TEASER LOCATION
   ============================================================ */
.location-teaser-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.teaser-emoji {
  font-size: 9rem;
  line-height: 1;
  opacity: 0.12;
  user-select: none;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--dark);
  padding: 100px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,0.5); font-size: 1.05rem; margin-bottom: 40px; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 72px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo { color: var(--white); display: block; margin-bottom: 18px; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
  line-height: 1.75;
}

.footer-col h5 {
  font-family: var(--font-d);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime); }

.footer-bottom {
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.28); }

/* ============================================================
   PAGE LOCATION — Hero
   ============================================================ */
.page-hero {
  padding: 160px 0 96px;
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,232,74,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.page-hero-lbl::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--lime);
}

.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
}

/* ============================================================
   CATALOGUE — Équipements
   ============================================================ */
.catalogue { padding: 100px 0; }

.equipment-block { margin-bottom: 88px; }
.equipment-block:last-child { margin-bottom: 0; }

.block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.block-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.block-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.block-title h2 { font-size: 1.9rem; }
.block-title p  { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.09);
  border-color: var(--lime);
}

.product-img {
  background: var(--card);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--lime);
  color: var(--dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-body { padding: 24px 26px; }

.product-name {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-spec {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.65;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.price-amount {
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
}
.price-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

.product-cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================================
   HOW IT WORKS — Location
   ============================================================ */
.how-section {
  padding: 100px 0;
  background: var(--card);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.how-step { text-align: center; padding: 0 8px; }

.how-step-icon {
  width: 68px; height: 68px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.how-step h4 { margin-bottom: 8px; }
.how-step p  { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   AVANTAGES LOCATION
   ============================================================ */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   ANIMATIONS ENTRÉE
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.26s; }
.delay-3 { animation-delay: 0.40s; }
.delay-4 { animation-delay: 0.54s; }

@keyframes fade-up-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout      { grid-template-columns: 1fr; }
  .hero-orbital     { display: none; }
  .why-layout       { grid-template-columns: 1fr; }
  .metrics-panel    { display: none; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .process-track    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-track::before { display: none; }
  .location-teaser-inner { grid-template-columns: 1fr; }
  .teaser-emoji     { display: none; }
  .avantages-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle           { display: flex; }

  .container { padding: 0 20px; }
  .section   { padding: 72px 0; }

  .hero        { padding: 130px 0 72px; }
  .hero-stats  { flex-wrap: wrap; gap: 24px 40px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .services-grid  { grid-template-columns: 1fr; }
  .process-track  { grid-template-columns: 1fr; }
  .how-grid       { grid-template-columns: 1fr 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 10px; text-align: center; }
  .cta-actions    { flex-direction: column; align-items: center; }
  .block-header   { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.8rem; }
  .how-grid { grid-template-columns: 1fr; }
}
