/* GMA Services : socle commun aux deux pages, puis la page publique. */

:root {
  color-scheme: light dark;

  --navy: #0f2742;
  --teal: #0e7c86;
  --mint: #5eead4;

  --bg: light-dark(#eef4f5, #06131f);
  --bg-2: light-dark(#ffffff, #0b2033);
  --ink: light-dark(#0f2742, #eaf3f5);
  --ink-soft: light-dark(#47607a, #9fb6c6);
  --ink-faint: light-dark(#7890a6, #6b8497);
  --line: light-dark(rgb(15 39 66 / .12), rgb(234 243 245 / .12));
  --line-strong: light-dark(rgb(15 39 66 / .22), rgb(234 243 245 / .24));
  --card: light-dark(rgb(255 255 255 / .86), rgb(13 34 54 / .86));
  --accent: light-dark(#0e7c86, #5eead4);
  --accent-ink: light-dark(#ffffff, #06131f);
  --blob-a: light-dark(rgb(94 234 212 / .55), rgb(14 124 134 / .5));
  --blob-b: light-dark(rgb(14 124 134 / .24), rgb(30 64 140 / .42));
  --shadow: light-dark(0 24px 60px -28px rgb(15 39 66 / .35), 0 24px 60px -28px rgb(0 0 0 / .7));

  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --mx: 0;
  --my: 0;
}

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

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* Fond : deux halos qui dérivent et une grille qui s'efface vers les bords. */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.sky-blob {
  position: absolute;
  width: 62vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}

.sky-blob-a {
  background: radial-gradient(circle, var(--blob-a) 0%, transparent 68%);
  top: -24vmax;
  right: -18vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.sky-blob-b {
  background: radial-gradient(circle, var(--blob-b) 0%, transparent 68%);
  bottom: -30vmax;
  left: -22vmax;
  animation: drift-b 34s ease-in-out infinite alternate;
}

.sky-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
  opacity: .55;
}

@keyframes drift-a { to { transform: translate(-9vmax, 7vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(8vmax, -6vmax) scale(1.08); } }

/* Barre du haut */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 24px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow); }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
}

.brand-name span {
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin-left: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-soft);
}

.pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page publique */

.home { display: grid; grid-template-rows: auto 1fr auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(16px, 4vh, 48px) 0;
}

.hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .34s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal) 0%, var(--mint) 55%, var(--teal) 110%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}

@keyframes sheen { to { background-position: -200% 0; } }

.lead {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 40px -16px rgb(14 124 134 / .8), inset 0 1px 0 rgb(255 255 255 / .22);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}

.cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -16px rgb(14 124 134 / .95), inset 0 1px 0 rgb(255 255 255 / .22); }
.cta:hover svg { transform: translateX(5px); }
.cta:focus-visible, .brand:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }

.cta-note { font-size: 14px; color: var(--ink-faint); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(36px, 6vh, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li { padding: 18px 18px 0 0; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 15px; font-weight: 650; }
.facts span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }

/* Le logo et ses quatre services en orbite */

.orbit {
  justify-self: center;
  width: min(100%, 560px);
  transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -14px));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  animation: bloom 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes bloom {
  from { opacity: 0; scale: .9; }
  to { opacity: 1; scale: 1; }
}

.orbit svg { display: block; width: 100%; height: auto; overflow: visible; }

.orbit-halo { animation: breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scale(1.07); opacity: .8; } }

.ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.ring-dash { stroke-dasharray: 3 9; stroke-linecap: round; }

.spin { transform-box: view-box; transform-origin: 50% 50%; }
.spin-a { animation: turn 28s linear infinite; }
.spin-b { animation: turn 52s linear infinite reverse; }
.spin-c { animation: turn 84s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.link { stroke: var(--accent); stroke-width: 1; opacity: .28; }

.node { stroke: var(--bg); stroke-width: 3; }
.node-1 { fill: #5eead4; }
.node-2 { fill: #8b9cf6; }
.node-3 { fill: #f5b455; }
.node-4 { fill: #f27fa5; }

.node-halo {
  fill: var(--accent);
  opacity: .16;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}

.spin-b .node-halo { animation-delay: -1.1s; }
.spin-c .node-halo { animation-delay: -2.1s; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .05; } }

.core { filter: drop-shadow(0 26px 40px rgb(6 19 31 / .45)); }
.core-dot { animation: wink 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wink { 50% { transform: scale(1.35); } }

/* Pied */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.foot span:first-child { font-family: var(--mono); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .orbit { order: -1; width: min(72vw, 360px); }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 14px 0; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .bar, .hero, .foot { width: calc(100% - 36px); }
  .brand-name span { display: none; }
}

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