@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --papier: #f3f3ec;
  --courbe: #e3e4da;
  --foret: #224f32;
  --sapin: #18381f;
  --ardoise: #646665;
  color-scheme: light;
}

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

html { height: 100%; overflow-y: auto; background: var(--papier); }

body {
  margin: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden; /* rogne les cercles décoratifs ; le défilement reste porté par html */
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  background: var(--papier);
  color: var(--ardoise);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  isolation: isolate; /* les cercles restent derrière tout le contenu */
  width: 100%;
  max-width: 56rem;
  text-align: center;
}

/* Logo détouré : les cercles de la page partent de son emblème */
.hero {
  position: relative;
  width: min(62vw, 400px);
  margin: 0 auto;
  font-size: inherit;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Les cercles concentriques du logo se prolongent sur toute la page */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 49.1%;
  top: 44.2%;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero::before {
  width: 260vmax;
  height: 260vmax;
  background: repeating-radial-gradient(circle, transparent 0 calc(2.6vmax - 1px), var(--courbe) calc(2.6vmax - 1px) 2.6vmax);
  -webkit-mask-image: radial-gradient(circle, transparent 8%, #000 11%, #000 20%, transparent 40%);
          mask-image: radial-gradient(circle, transparent 8%, #000 11%, #000 20%, transparent 40%);
}

/* Une seule impulsion au chargement, partie de l'œil du drone */
.hero::after {
  width: 90%;
  aspect-ratio: 1;
  border: 2px solid var(--foret);
  border-radius: 50%;
  opacity: 0;
  animation: balayage 2.6s cubic-bezier(.2, .6, .3, 1) .5s 1 both;
}

@keyframes balayage {
  0%   { opacity: .55; transform: translate(-50%, -50%) scale(.9); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(4.2); }
}

.status {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  color: var(--foret);
  font-weight: 800;
  font-size: clamp(1.35rem, 5.6vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: .16em;
  /* compense l'espacement de la dernière lettre pour un centrage optique */
  padding-left: .16em;
}

.lede {
  margin: .9rem 0 0;
  color: var(--sapin);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.services {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.7;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; display: none; }
}
