:root {
  --bg: #06101d;
  --bg-2: #0b1628;
  --bg-3: #07111f;

  --ink: #f7fdff;
  --ink-soft: rgba(247, 253, 255, .86);
  --muted: rgba(247, 253, 255, .70);
  --muted-2: rgba(247, 253, 255, .56);

  --opal-aqua: #8ff7ff;
  --opal-mint: #b8ffe3;
  --opal-blue: #8eb8ff;
  --opal-lilac: #d7b7ff;
  --opal-pink: #ffd2f5;
  --opal-ink: #101827;

  --line: rgba(143, 247, 255, .22);
  --line-strong: rgba(143, 247, 255, .36);
  --glass: rgba(255, 255, 255, .075);
  --glass-strong: rgba(255, 255, 255, .115);

  --shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --glow: 0 24px 80px rgba(143, 247, 255, .18);

  --radius: 28px;
  --radius-lg: 36px;
  --max: 1160px;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(143, 247, 255, .24), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(215, 183, 255, .20), transparent 28rem),
    radial-gradient(circle at 52% 108%, rgba(184, 255, 227, .16), transparent 32rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 44%, var(--bg-3) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .28;
  background:
    linear-gradient(90deg, rgba(143, 247, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(143, 247, 255, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 82%);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  isolation: isolate;
}

.page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -22rem auto auto -18rem;
  width: 44rem;
  height: 44rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 247, 255, .23), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  animation: opalFloat 12s ease-in-out infinite alternate;
}

.page::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: auto -18rem -24rem auto;
  width: 46rem;
  height: 46rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 183, 255, .19), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: opalFloatReverse 14s ease-in-out infinite alternate;
}

@keyframes opalFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(32px, 26px, 0) scale(1.06);
  }
}

@keyframes opalFloatReverse {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }

  to {
    transform: translate3d(-28px, -22px, 0) scale(1);
  }
}

.wrap {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #07111f;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .72), transparent 36%),
    linear-gradient(135deg, var(--opal-aqua), var(--opal-mint) 52%, var(--opal-lilac));
  box-shadow:
    0 18px 44px rgba(143, 247, 255, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .42);
  font-weight: 950;
  letter-spacing: -.07em;
}

.brand-name {
  display: block;
  font-size: 18px;
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.055em;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
}

.nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(143, 247, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(143, 247, 255, .10);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 44px;
  padding: 54px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -32px -18px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 32px;
  border: 1px solid rgba(143, 247, 255, .20);
  background:
    linear-gradient(90deg, rgba(143, 247, 255, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(143, 247, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .42;
  transform: rotate(8deg);
  pointer-events: none;
  animation: opalGridDrift 10s ease-in-out infinite alternate;
}

@keyframes opalGridDrift {
  from {
    transform: rotate(8deg) translateY(0);
  }

  to {
    transform: rotate(8deg) translateY(18px);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: opalFadeUp .65s ease both;
}

.kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 9px 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 247, 255, .32);
  border-radius: 999px;
  color: var(--opal-aqua);
  background: rgba(143, 247, 255, .08);
  box-shadow: 0 14px 42px rgba(143, 247, 255, .10);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--opal-aqua);
  box-shadow: 0 0 0 7px rgba(143, 247, 255, .12);
}

.kicker::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(143, 247, 255, .32), transparent);
  opacity: 0;
  pointer-events: none;
  animation: opalPulse 3.4s ease-in-out infinite;
}

@keyframes opalPulse {
  0%, 100% {
    opacity: 0;
    transform: translateX(-14px);
  }

  50% {
    opacity: .55;
    transform: translateX(14px);
  }
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 18px;
  max-width: 850px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #ffffff 0%, var(--opal-aqua) 34%, var(--opal-mint) 62%, var(--opal-lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 28px 90px rgba(143, 247, 255, .14);
}

.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.btn-primary {
  border: 1px solid rgba(143, 247, 255, .28);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .75), transparent 32%),
    linear-gradient(135deg, var(--opal-aqua), var(--opal-mint));
  color: #07111f;
  box-shadow: 0 20px 60px rgba(143, 247, 255, .22);
}

.btn-secondary {
  border: 1px solid rgba(143, 247, 255, .24);
  background: rgba(255, 255, 255, .07);
  color: #f7fdff;
  backdrop-filter: blur(16px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  transition: transform .58s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.software-board {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(143, 247, 255, .22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 247, 255, .16), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(215, 183, 255, .14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)),
    rgba(255, 255, 255, .06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: opalFadeUp .65s ease .08s both;
}

.software-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--opal-aqua), var(--opal-mint), var(--opal-lilac), transparent);
}

.software-board::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -112px;
  top: -122px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 247, 255, .18), transparent 70%);
  pointer-events: none;
  animation: opalOrb 8s ease-in-out infinite alternate;
}

@keyframes opalOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-18px, 14px, 0) scale(1.08);
  }
}

.board-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.board-top span {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -.07em;
}

.board-top small {
  color: var(--muted);
  font-weight: 750;
}

.board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.board-grid span,
.board-grid strong {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(143, 247, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .065);
}

.board-grid span {
  color: rgba(247, 253, 255, .66);
}

.board-grid strong {
  color: var(--opal-mint);
}

.software-board p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 34px 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: 22px;
}

.section-head h2,
.side-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.section-head p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.rank-card,
.content-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 247, 255, .20);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 247, 255, .12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .055)),
    rgba(255, 255, 255, .06);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
  animation: opalFadeUp .65s ease both;
}

.tool-card::before,
.rank-card::before,
.content-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--opal-aqua), var(--opal-mint), var(--opal-lilac), transparent);
  opacity: .80;
  pointer-events: none;
}

.tool-card::after,
.rank-card::after,
.content-card::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 220px;
  height: 220px;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 183, 255, .10), transparent 70%);
  pointer-events: none;
}

.tool-card > *,
.rank-card > *,
.content-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover,
.rank-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 247, 255, .38);
  box-shadow: 0 28px 90px rgba(143, 247, 255, .16), 0 18px 60px rgba(0, 0, 0, .24);
}

.tool-card {
  padding: 24px;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(143, 247, 255, .24), 0 14px 38px rgba(143, 247, 255, .10);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .32), transparent 42%),
    linear-gradient(135deg, rgba(143, 247, 255, .16), rgba(215, 183, 255, .12));
}

.tool-card h3,
.rank-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.tool-card p,
.rank-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.soft-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--opal-aqua);
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(143, 247, 255, .38);
  text-underline-offset: 4px;
  cursor: pointer;
}

.soft-button:hover {
  color: var(--opal-mint);
  text-decoration-color: rgba(184, 255, 227, .72);
}

.content-card {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 30px;
  padding: clamp(26px, 5vw, 46px);
}

.content-card--soft {
  background:
    radial-gradient(circle at 14% 12%, rgba(184, 255, 227, .14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(143, 247, 255, .10), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .125), rgba(255, 255, 255, .060)),
    rgba(255, 255, 255, .065);
}

.side-title,
.rich-text {
  min-width: 0;
}

.rich-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 17px;
}

.rich-text p + p {
  margin-top: 16px;
}

.text-link,
.resource-link {
  color: var(--opal-aqua);
  text-decoration-color: rgba(143, 247, 255, .42);
  text-underline-offset: 4px;
  font-weight: 850;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.text-link:hover,
.resource-link:hover {
  color: var(--opal-mint);
  text-decoration-color: rgba(184, 255, 227, .74);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  padding: 24px;
}

.rank-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(143, 247, 255, .22);
  border-radius: 999px;
  color: var(--opal-aqua);
  background: rgba(143, 247, 255, .09);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rank-card ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: rgba(247, 253, 255, .86);
  line-height: 1.8;
}

.rank-card li::marker {
  color: var(--opal-aqua);
  font-weight: 950;
}

.footer {
  padding: 44px 0 34px;
  color: rgba(247, 253, 255, .58);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(143, 247, 255, .16);
  padding-top: 22px;
}

.footer-contact {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(143, 247, 255, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(247, 253, 255, .72);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.footer-contact:hover {
  color: var(--opal-aqua);
  border-color: rgba(143, 247, 255, .36);
  background: rgba(143, 247, 255, .08);
}

.error-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 680px);
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgba(143, 247, 255, .20);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 10%, rgba(143, 247, 255, .14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.error-code {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.70), transparent 34%),
    linear-gradient(135deg, var(--opal-aqua), var(--opal-mint));
  color: #07111f;
  font-weight: 950;
  font-size: 24px;
}

.error-card h1 {
  margin-bottom: 14px;
}

.error-card p {
  color: var(--muted);
  line-height: 1.7;
}

@keyframes opalFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cards-grid > *:nth-child(2),
.rank-grid > *:nth-child(2) {
  animation-delay: .08s;
}

.cards-grid > *:nth-child(3),
.rank-grid > *:nth-child(3) {
  animation-delay: .16s;
}

.cards-grid > *:nth-child(4) {
  animation-delay: .20s;
}

.cards-grid > *:nth-child(5) {
  animation-delay: .24s;
}

.cards-grid > *:nth-child(6) {
  animation-delay: .28s;
}

@media (max-width: 980px) {
  .hero,
  .content-card {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .software-board {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 26px, var(--max));
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 30px;
    gap: 30px;
  }

  .hero::before {
    right: -120px;
    top: -96px;
    width: 210px;
    height: 210px;
    opacity: .24;
  }

  .kicker {
    font-size: 11px;
    letter-spacing: .035em;
  }

  h1 {
    font-size: clamp(40px, 14vw, 58px);
    line-height: .98;
    letter-spacing: -.06em;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .content-card {
    padding: 24px;
  }

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

  .page::before,
  .page::after {
    opacity: .28;
  }

  .tool-card:hover,
  .rank-card:hover,
  .btn:hover {
    transform: none;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: min(100% - 22px, var(--max));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 16px;
  }

  .software-board,
  .tool-card,
  .rank-card,
  .content-card {
    border-radius: 22px;
  }

  .software-board {
    padding: 20px;
  }

  .tool-card,
  .rank-card {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Grid 4 cards : 2 colonnes au lieu de 3 */
.cards-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .cards-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }
}