/* ================================================================
   OpenMatchCam — feuille de style principale
   Le fichier reste volontairement lisible, commenté et non minifié.
   ================================================================ */

:root {
  --ink: #101514;
  --paper: #f4f1e9;
  --line: #c9c5ba;
  --lime: #b9f23b;
  --blue: #315cff;
  --muted: #5f6662;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* En-tête et navigation */
.site-header {
  max-width: var(--max-width);
  margin: auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  background: none;
}

/* Zone d'introduction */
.hero {
  max-width: var(--max-width);
  min-height: 680px;
  margin: auto;
  padding: 88px 28px 60px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.eyebrow,
.section-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 30px;
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--blue);
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.button {
  padding: 14px 20px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.ghost {
  color: var(--ink);
}

/* Illustration abstraite du terrain, construite uniquement en CSS */
.panorama {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 30px 80px rgb(22 29 24 / 20%);
}

.field {
  position: absolute;
  inset: 21%;
  border: 2px solid var(--lime);
  border-radius: 6px;
  transform: perspective(500px) rotateX(56deg) rotateZ(-13deg);
}

.field::before,
.field::after {
  position: absolute;
  content: "";
}

.field::before {
  inset: 0 50%;
  border-left: 2px solid var(--lime);
}

.field::after {
  top: 24%;
  left: 36%;
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.field span,
.field i {
  position: absolute;
  top: 25%;
  bottom: 25%;
  width: 17%;
  border: 2px solid var(--lime);
}

.field span {
  left: -2px;
}

.field i {
  right: -2px;
}

.lens {
  position: absolute;
  z-index: 2;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 13px solid var(--paper);
  border-radius: 50%;
}

.lens-left {
  left: 8%;
}

.lens-right {
  right: 8%;
}

/* Sections de contenu */
.section {
  max-width: var(--max-width);
  margin: auto;
  padding: 100px 28px;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 40px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.intro > p:last-child {
  grid-column: 2;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border: 1px solid var(--line);
}

.cards article {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.cards article:last-child {
  border-right: 0;
}

.cards strong,
.milestones span {
  color: var(--blue);
}

.cards h3 {
  margin-top: 55px;
  font-size: 1.5rem;
}

.cards p {
  color: var(--muted);
  line-height: 1.6;
}

.split,
.callout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
}

.milestones {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.milestones li {
  display: flex;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.milestones span {
  font-weight: 800;
}

.callout {
  max-width: none;
  padding-left: max(28px, calc((100% - var(--max-width)) / 2 + 28px));
  padding-right: max(28px, calc((100% - var(--max-width)) / 2 + 28px));
  background: var(--lime);
}

.callout p:last-child {
  font-size: 1.15rem;
  line-height: 1.7;
}

footer {
  max-width: var(--max-width);
  margin: auto;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #d77a44;
  content: "";
}

.status.online::before {
  background: #3f9b57;
}

/* Tablettes et petits écrans */
@media (max-width: 800px) {
  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    position: absolute;
    z-index: 5;
    top: 74px;
    right: 28px;
    left: 28px;
    display: none;
    padding: 22px;
    background: var(--ink);
    flex-direction: column;
  }

  nav.open {
    display: flex;
  }

  nav a {
    color: white;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .panorama {
    max-width: 460px;
  }

  .intro,
  .split,
  .callout {
    grid-template-columns: 1fr;
  }

  .intro > p:last-child {
    grid-column: 1;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards article {
    border-bottom: 1px solid var(--line);
  }

  .cards article:nth-child(2) {
    border-right: 0;
  }

  footer {
    flex-direction: column;
    gap: 12px;
  }
}

/* Téléphones */
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cards article {
    border-right: 0;
  }

  .actions {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
