:root {
  --bg: #070b0a;
  --surface: rgba(14, 25, 22, 0.7);
  --surface-strong: rgba(18, 33, 29, 0.92);
  --line: rgba(116, 203, 145, 0.18);
  --green: #58b77d;
  --green-bright: #83d69f;
  --green-dark: #0d5d43;
  --text: #f3f7f4;
  --muted: #a8b6ad;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(20, 93, 64, 0.18), transparent 36%),
    linear-gradient(180deg, #050807 0%, #07100d 52%, #050807 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  z-index: -2;
}

.eclair {
  position: fixed;
  inset: 0;
  background: url("eclair.png") no-repeat center top / cover;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: screen;
  transition: opacity .12s ease-out;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .11;
  pointer-events: none;
  z-index: -1;
  background: var(--green);
}
.ambient-one { top: 8%; left: -210px; }
.ambient-two { right: -230px; top: 50%; }

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 1px); }
}
.shake { animation: shake .18s linear; }

.contact-shortcut {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 10;
  color: var(--text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 10, .62);
  backdrop-filter: blur(14px);
  transition: .2s ease;
}
.contact-shortcut:hover { border-color: var(--green); color: var(--green-bright); transform: translateY(-1px); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: min(100svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 0 54px;
}

.logo {
  width: 165px;
  max-width: 52vw;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(86, 184, 124, .22));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-bright);
  font: 600 .78rem/1.3 "Orbitron", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; }

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font: 700 clamp(2.05rem, 4.75vw, 4.15rem)/1.04 "Orbitron", sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 0 26px rgba(255,255,255,.055);
}

.hero-copy {
  max-width: 740px;
  margin: 0 auto 32px;
  color: #c3cec7;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #041109;
  box-shadow: 0 12px 34px rgba(79, 184, 121, .2);
}
.button-primary:hover { box-shadow: 0 16px 42px rgba(79, 184, 121, .3); }
.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.button-secondary:hover { border-color: rgba(131, 214, 159, .55); background: rgba(83, 171, 119, .07); }

.micro-copy { margin-top: 18px; color: #9aaba0; font-size: .84rem; line-height: 1.45; }

.section { padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2, .contact-panel h2 {
  margin-bottom: 15px;
  font: 700 clamp(1.8rem, 4vw, 3.15rem)/1.12 "Orbitron", sans-serif;
  letter-spacing: -.035em;
}
.section-heading > p:last-child, .contact-panel p { color: var(--muted); line-height: 1.75; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  min-height: 275px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 35, 30, .88), rgba(8, 14, 12, .76));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -58px;
  bottom: -64px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(52px);
  opacity: .11;
}
.card:hover { transform: translateY(-5px); border-color: rgba(131, 214, 159, .38); }
.card-number { display: block; color: var(--green-bright); font: 700 .78rem "Orbitron", sans-serif; letter-spacing: .12em; margin-bottom: 42px; }
.card h3 { font: 600 1.2rem/1.35 "Orbitron", sans-serif; margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.68; margin-bottom: 28px; }
.tag { display: inline-block; padding: 7px 10px; border-radius: 999px; color: #a8e5bd; background: rgba(75, 174, 112, .09); border: 1px solid rgba(110, 210, 147, .18); font-size: .75rem; }

.process {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.step > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-bright);
  border: 1px solid rgba(131, 214, 159, .35);
  font: 700 .75rem "Orbitron", sans-serif;
}
.step h3 { font: 600 1rem "Orbitron", sans-serif; margin-bottom: 8px; }
.step p { color: var(--muted); line-height: 1.6; margin: 0; }

.contact-panel {
  margin: 90px 0 42px;
  padding: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
  border: 1px solid rgba(131, 214, 159, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(75, 176, 113, .17), transparent 30%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}
.contact-panel > div { max-width: 680px; }
.contact-panel p { margin-bottom: 0; }
.contact-panel .button { white-space: nowrap; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #718078;
  font-size: .78rem;
}

@media (max-width: 850px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card-number { margin-bottom: 24px; }
  .process { grid-template-columns: 1fr; gap: 15px; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  main, footer { width: min(100% - 28px, 1120px); }
  .contact-shortcut { top: 14px; right: 14px; padding: 9px 13px; font-size: .72rem; }
  .hero { min-height: 94vh; padding-top: 88px; }
  .logo { width: 150px; }
  h1 { font-size: clamp(2rem, 11.5vw, 3.1rem); }
  .hero-copy { line-height: 1.65; }
  .hero-actions { width: 100%; }
  .button { width: 100%; }
  .section { padding: 75px 0; }
  .card { padding: 24px; }
  .contact-panel { margin-top: 55px; padding: 28px 22px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .eclair { display: none; }
}


/* Ajustement des écrans larges mais peu hauts */
@media (min-width: 900px) and (max-height: 780px) {
  .hero {
    min-height: calc(100svh - 8px);
    padding-top: 42px;
    padding-bottom: 40px;
  }

  .logo {
    width: 145px;
    margin-bottom: 8px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    max-width: 800px;
    font-size: clamp(2.4rem, 4.7vw, 3.85rem);
    margin-bottom: 15px;
  }

  .hero-copy {
    max-width: 700px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .micro-copy {
    margin-top: 14px;
  }
}
