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

:root {
  color-scheme: dark;
  --background: #04070D;
  --foreground: #F5F7FA;
  --muted: #A9B4C2;
  --green: #4ADE80;
  --blue: #38BDF8;
  --line: #243040;
  --width: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: "Inter", sans-serif;
}

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

html {
  min-width: 280px;
  overflow-x: clip; /* les anneaux décoratifs peuvent déborder d'un pixel : jamais de défilement horizontal */
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 9% 13%, rgb(245 247 250 / 30%) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 88% 8%, rgb(169 180 194 / 32%) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 45% 29%, rgb(245 247 250 / 23%) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 96% 42%, rgb(56 189 248 / 28%) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 5% 56%, rgb(169 180 194 / 30%) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 73% 64%, rgb(245 247 250 / 20%) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 19% 78%, rgb(56 189 248 / 24%) 0 0.8px, transparent 1.4px);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

svg,
img {
  display: block;
}

.container {
  width: min(var(--width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  gap: 16px;
  padding-block: 68px 48px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

h1 {
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

.hero-signature {
  margin-top: 20px;
  font-size: clamp(1.5rem, 4.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.accent {
  color: var(--green);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .accent {
    background-image: linear-gradient(100deg, var(--green), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-description {
  max-width: 460px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  text-wrap: pretty;
}

/* Contact : renvoie vers le formulaire de kutuk.fr (pas d'e-mail affiché, pas de second formulaire). */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
}

.contact-bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--background), var(--background)) padding-box,
    linear-gradient(90deg, var(--green), var(--blue)) border-box;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 24px rgb(74 222 128 / 14%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-bouton:hover {
  box-shadow: 0 0 32px rgb(56 189 248 / 30%);
  transform: translateY(-1px);
}

.contact-lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.contact-lien:hover {
  color: var(--foreground);
  text-decoration-color: currentColor;
}

.orbite {
  position: relative;
  isolation: isolate;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbite::before {
  position: absolute;
  z-index: -1;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(56 189 248 / 12%), rgb(56 189 248 / 3%) 48%, transparent 72%);
  content: "";
}

.orbite img {
  position: absolute;
  z-index: 1;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(#000 75%, transparent 98%);
  mask-image: linear-gradient(#000 75%, transparent 98%);
}

.orbital {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  overflow: visible;
  pointer-events: none;
}

.orbital-back {
  z-index: 0;
}

.orbital-front {
  z-index: 2;
}

.orbit-line,
.orbit-front-line {
  stroke: #57829B;
  stroke-width: 1;
  opacity: 0.38;
}

.orbit-faint {
  opacity: 0.2;
}

.orbit-front-line {
  opacity: 0.5;
}

.orbit-light {
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
}


.orbit-green {
  stroke: var(--green);
  filter: drop-shadow(0 0 5px rgb(74 222 128 / 45%));
}

.orbit-blue {
  stroke: var(--blue);
  filter: drop-shadow(0 0 5px rgb(56 189 248 / 45%));
}

.dot-green {
  fill: var(--green);
  color: var(--green);
}

.dot-blue {
  fill: var(--blue);
  color: var(--blue);
}



/* Mouvement des orbites : arcs et sphères parcourent leur ellipse (pathLength = 100). */
@keyframes orbite-parcours {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -100;
  }
}

.orbit-arc {
  animation: orbite-parcours 18s linear infinite;
}

.arc-b {
  animation-duration: 23s;
  animation-delay: -9s;
}

.orbit-particle {
  fill: none; /* sinon .dot-green/.dot-blue remplissent toute l'ellipse */
  stroke-width: 9;
  stroke-linecap: round;
  animation: orbite-parcours 18s linear infinite;
}

.orbit-particle.petite {
  stroke-width: 6;
}

.orbit-particle.dot-green {
  stroke: var(--green);
  filter: drop-shadow(0 0 6px rgb(74 222 128 / 80%));
}

.orbit-particle.dot-blue {
  stroke: var(--blue);
  filter: drop-shadow(0 0 6px rgb(56 189 248 / 80%));
}

/* stroke-dashoffset = position de repos (animations réduites), égale au départ de l'animation. */
.p-a { stroke-dashoffset: -16.7; animation-delay: -3s; }
.p-b { stroke-dashoffset: -66.7; animation-duration: 18s; animation-delay: -12s; }
.p-c { stroke-dashoffset: -26.1; animation-duration: 23s; animation-delay: -6s; }
.p-d { stroke-dashoffset: -73.9; animation-duration: 23s; animation-delay: -17s; }
.p-e { stroke-dashoffset: -64.5; animation-duration: 31s; animation-delay: -20s; }


.section-title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-align: center;
}

.section-title::before,
.section-title::after {
  flex: 1 0 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0.42;
  content: "";
}

.services {
  padding-block: 18px 60px;
}

.services-grid {
  display: grid;
  gap: 30px;
  margin-top: 36px;
}

.service {
  min-width: 0;
  padding-inline: 20px;
  text-align: center;
}

.service + .service {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.icon-circle {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 19px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0, rgb(56 189 248 / 5%), transparent 75%);
}

.icon-circle svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-green {
  stroke: var(--green);
}

.icon-blue {
  stroke: var(--blue);
}

.service h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.service p {
  max-width: 280px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.numbers {
  padding-block: 12px 28px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 28px;
  margin-top: 38px;
}

.stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  text-align: center;
}

.stat:nth-child(even) {
  border-left: 1px solid var(--line);
}

.stat dt {
  margin-top: 10px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.stat dd {
  order: -1;
  max-width: 100%;
  color: var(--green);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgb(74 222 128 / 16%);
}

.stat:nth-child(even) dd {
  color: var(--blue);
  text-shadow: 0 0 24px rgb(56 189 248 / 16%);
}

.numbers-note {
  max-width: 740px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}

/* Formulaire de contact */
.ecrire {
  padding-top: clamp(56px, 8vw, 96px);
}

.formulaire {
  display: grid;
  gap: 4px 24px;
  max-width: 760px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}

.formulaire[hidden] {
  display: none; /* sinon display: grid l'emporterait sur l'attribut hidden */
}

@media (min-width: 720px) {
  .formulaire {
    grid-template-columns: 1fr 1fr;
  }

  .champ-large {
    grid-column: 1 / -1;
  }
}

.champ label {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

.facultatif {
  color: var(--muted);
  font-weight: 400;
}

.champ input,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
  color: var(--foreground);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.champ textarea {
  resize: vertical;
}

.champ input:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(56 189 248 / 25%);
}

.champ [aria-invalid="true"] {
  border-color: #F87171;
}

.champ-erreur {
  min-height: 1.4em;
  margin-top: 6px;
  color: #FCA5A5;
  font-size: 0.85rem;
}

/* Piège à robots : hors écran, jamais vu ni atteint au clavier. */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
}

.formulaire-pied .contact-bouton {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.formulaire-pied .contact-bouton:disabled {
  cursor: progress;
  opacity: 0.6;
}

.formulaire-statut {
  color: var(--muted);
}

.formulaire[data-etat="succes"] .formulaire-statut {
  color: var(--green);
}

.formulaire[data-etat="erreur"] .formulaire-statut,
.formulaire[data-etat="trop"] .formulaire-statut {
  color: #FCA5A5;
}

.formulaire-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.formulaire-note a {
  color: var(--foreground);
  text-underline-offset: 4px;
}

.contact-bouton:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.earth {
  height: clamp(180px, 30vw, 420px);
  margin-top: 8px;
  background-color: var(--background);
  background-image:
    linear-gradient(to bottom, #04070D 0%, rgb(4 7 13 / 70%) 12%, rgb(4 7 13 / 12%) 40%, transparent 65%, rgb(4 7 13 / 35%) 100%),
    url("terre.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--background);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.footer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.footer p + p a {
  color: var(--blue);
}

.footer a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  text-decoration-color: currentColor;
}

::selection {
  background: var(--green);
  color: var(--background);
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
  }

  .service {
    padding-inline: 24px;
  }

  .service + .service {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 0;
  }

  .services {
    padding-bottom: 72px;
  }

  .numbers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 44px;
  }

  .stat + .stat {
    border-left: 1px solid var(--line);
  }

  .footer-content {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding-block: 30px;
  }

  .footer-content p + p {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 640px;
    padding-block: 64px 92px;
  }

  .hero-copy {
    padding-bottom: 35px;
  }

  .orbite {
    width: 108%;
    max-width: 600px;
    justify-self: center;
  }


  .numbers-note {
    margin-top: 36px;
  }

  .earth {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
