/* LS Solutions — page « Bientôt en ligne » / "Coming soon"
   Palette : vert profond & or (déclinaison de Forêt & ocre — trousse de marque) */
:root {
  /* Marque */
  --ls-foret: #1E3A2B;
  --ls-creme: #F6F1E7;

  /* Déclinaison web : vert plus dense, or au lieu de l'ocre */
  --vert-nuit: #0C1D15;      /* bords, vignette */
  --vert-profond: #11261B;   /* fond principal */
  --or: #C9A65E;             /* filets, pastilles, accents */
  --or-clair: #DFC690;       /* petit texte doré sur fond vert */

  --creme-80: rgb(246 241 231 / 0.8);
  --creme-60: rgb(246 241 231 / 0.6);
  --creme-45: rgb(246 241 231 / 0.45);
  --or-30: rgb(201 166 94 / 0.3);
  --or-18: rgb(201 166 94 / 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  background: var(--vert-profond);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: var(--sans);
  color: var(--ls-creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--or-clair);
  outline-offset: 3px;
}

/* ---------- Fond : vert dense, halo Forêt au centre, vignette, courbes de niveau ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 30%, rgb(30 58 43 / 0.75), transparent 70%),
    radial-gradient(130% 100% at 50% 40%, transparent 50%, var(--vert-nuit));
}
.bg::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: url("/assets/contours.svg?v=3eac444c") center / cover no-repeat;
  animation: drift 45s ease-in-out infinite alternate;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
}

/* Cadre or très fin, en retrait des bords */
.frame {
  position: fixed;
  inset: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--or-18);
  pointer-events: none;
  z-index: 0;
}

/* ---------- En-tête : choix de langue ---------- */
.top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3.25rem);
}
.lang {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--or-30);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lang a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--creme-80);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover:not([aria-current]) {
  color: var(--ls-creme);
  background: rgb(201 166 94 / 0.1);
}
.lang a[aria-current] {
  color: var(--vert-profond);
  background: var(--or-clair);
}

/* ---------- Contenu principal ---------- */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(5rem, 11vh, 6.5rem) clamp(1.5rem, 5vw, 3rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Monogramme « tracé à la plume » : le contour se dessine, puis l'encre remplit */
.mono {
  width: clamp(130px, 19vw, 180px);
  height: auto;
  overflow: visible;
  margin-bottom: 0.8rem;
}
.mono path {
  fill: var(--ls-creme);
  fill-opacity: 0;
  stroke: var(--ls-creme);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation:
    draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards,
    ink 0.7s ease-out 1.25s forwards;
}
.mono .s { animation-delay: 0.35s, 1.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink  { to { fill-opacity: 1; stroke-opacity: 0; } }

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.tagline {
  margin-top: 0.4rem;
  color: var(--or-clair);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Filet or « flux d'automatisation » : trois étapes, une impulsion qui circule */
.flow {
  position: relative;
  width: min(14rem, 60%);
  height: 10px;
  margin: clamp(1.75rem, 4.5vh, 2.75rem) 0 clamp(1.5rem, 4vh, 2.25rem);
}
.flow::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or) 20%, var(--or) 80%, transparent);
  opacity: 0.8;
}
.flow i {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--or);
  background: var(--vert-profond);
  transform: translate(-50%, -50%) rotate(45deg);
}
.flow i:nth-child(1) { left: 20%; }
.flow i:nth-child(2) { left: 50%; }
.flow i:nth-child(3) { left: 80%; }
.flow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--or-clair);
  box-shadow: 0 0 8px 2px rgb(223 198 144 / 0.45);
  transform: translate(-50%, -50%);
  animation: pulse 3.6s cubic-bezier(0.45, 0, 0.55, 1) 2.4s infinite;
  opacity: 0;
}
@keyframes pulse {
  0%   { left: 20%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 80%; opacity: 0; }
}

/* Pastille d'état */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--or-30);
  border-radius: 999px;
  color: var(--or-clair);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  flex: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--or);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: 0.6; }
  to   { transform: scale(3); opacity: 0; }
}

.headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.headline .accent { color: var(--or-clair); }

.lead {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Ligne 1 : les trois services, séparés par de petits losanges or */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 0.35rem;
  color: var(--ls-creme);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.services span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.services span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 0.9rem;
  border: 1px solid var(--or);
  transform: rotate(45deg);
  flex: none;
}

/* Ligne 2 : le bénéfice */
.benefit {
  max-width: 34rem;
  color: var(--creme-60);
  font-size: clamp(0.95rem, 1.3vw, 1.02rem);
  line-height: 1.65;
  text-wrap: balance;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.values li {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--or-30);
  border-radius: 999px;
  color: var(--creme-80);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem) 2rem;
  text-align: center;
  color: var(--creme-45);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* Apparition en cascade, après le tracé du monogramme */
.reveal {
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .frame { display: none; }
  .services { flex-direction: column; row-gap: 0.4rem; }
  .services span + span::before { display: none; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.14em; gap: 0.5rem; padding: 0.45rem 0.8rem; }
}

@media (max-height: 960px) and (min-width: 600px) {
  .hero { padding-top: 4.5rem; }
  .mono { width: 160px; }
  .flow { margin: 2rem 0 1.75rem; }
  .foot { padding-bottom: 1.6rem; }
}
@media (max-height: 800px) and (min-width: 600px) {
  .mono { width: 115px; }
  .headline { font-size: clamp(2.2rem, 7.5vh, 3.6rem); }
}

/* Respect des préférences : aucun mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  .mono path { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .flow::after { display: none; }
}
