/* LinX by Loxbox — site vitrine statique. "Dispatch Terminal" : navy sombre,
   accents vert néon. Polices : Sora (titres), Manrope (texte). */

:root {
  --navy: oklch(0.157 0.031 265.4);
  --surface: oklch(0.215 0.047 261.2);
  --neon: oklch(0.826 0.283 149.6);
  --ink: oklch(0.932 0.015 253.5);
  --bg: var(--navy);
  --card: var(--surface);
  --line: oklch(0.932 0.015 253.5 / 10%);
  --muted: oklch(0.932 0.015 253.5 / 55%);
  --glow: 0 0 40px -8px oklch(0.826 0.283 149.6 / 33%), 0 0 100px -20px oklch(0.826 0.283 149.6 / 20%);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --navy: oklch(1 0 0);
  --surface: oklch(0.972 0.006 253.5);
  --neon: oklch(0.62 0.19 149.6);
  --ink: oklch(0.22 0.035 265.4);
  --bg: oklch(0.988 0.004 253.5);
  --card: oklch(1 0 0);
  --line: oklch(0.22 0.035 265.4 / 12%);
  --muted: oklch(0.22 0.035 265.4 / 62%);
  --glow: 0 12px 40px -16px oklch(0.62 0.19 149.6 / 35%), 0 2px 10px -4px oklch(0.22 0.035 265.4 / 10%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
/* le sélecteur [hidden] doit toujours l'emporter, même sur les icônes Font
   Awesome (leur classe .fa-solid force display:inline-block avec une
   spécificité qui bat sinon l'UA stylesheet). */
[hidden] {
  display: none !important;
}
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  display: block;
  border-radius: 16px;
  animation: preloader-bounce 0.8s ease-in-out infinite alternate;
}
.preloader__bar-track {
  width: 220px;
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.preloader__bar {
  width: 0%;
  height: 100%;
  border-radius: 10px;
  background: var(--neon);
  box-shadow: 0 0 12px -2px var(--neon);
  animation: preloader-fill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes preloader-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}
@keyframes preloader-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo {
    animation: none;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.section__pad {
  padding-top: 96px;
  padding-bottom: 96px;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.neon {
  color: var(--neon);
}

/* ambiance */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: oklch(0.826 0.283 149.6 / 10%);
  filter: blur(120px);
  border-radius: 999px;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    filter 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.btn--primary {
  background: var(--neon);
  color: var(--navy);
  box-shadow: var(--glow);
  border-color: var(--neon);
}
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}
.btn--ghost:hover {
  background: oklch(0.932 0.015 253.5 / 6%);
}
:root[data-theme="light"] .btn--ghost:hover {
  background: oklch(0.22 0.035 265.4 / 5%);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}

/* nav */
.nav {
  position: relative;
  z-index: 10;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: oklch(0.826 0.283 149.6 / 15%);
  box-shadow: inset 0 0 0 1px oklch(0.826 0.283 149.6 / 40%);
  color: var(--neon);
  font-weight: 700;
}
.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  padding: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px oklch(0.826 0.283 149.6 / 35%);
  object-fit: contain;
}
.logo__by {
  color: var(--muted);
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a.is-demo:hover {
  color: var(--neon);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* sélecteur de langue */
.lang-switch {
  position: relative;
}
.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch__btn:hover {
  color: var(--neon);
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--glow), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-switch__menu button,
.lang-switch__menu a {
  display: block;
  text-decoration: none;
  text-align: start;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.lang-switch__menu button:hover,
.lang-switch__menu a:hover {
  background: oklch(0.932 0.015 253.5 / 8%);
}
.lang-switch__menu button.is-active,
.lang-switch__menu a.is-active {
  color: var(--neon);
  font-weight: 600;
  background: oklch(0.826 0.283 149.6 / 10%);
}
html[dir="rtl"] .lang-switch__menu {
  right: auto;
  left: 0;
}

/* RTL — ajustements de base pour l'arabe (mise en page globalement conservée) */
html[dir="rtl"] body {
  direction: rtl;
}
html[dir="rtl"] .nav__inner,
html[dir="rtl"] .nav__links,
html[dir="rtl"] .nav__right,
html[dir="rtl"] .hero__cta,
html[dir="rtl"] .footer__bottom,
html[dir="rtl"] .popup__row {
  direction: rtl;
}
html[dir="rtl"] .feat-item__desc,
html[dir="rtl"] .cgu-content,
html[dir="rtl"] .cgu-content ul {
  text-align: right;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--neon);
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.nav__burger {
  display: none;
}
.nav__overlay {
  position: fixed;
  inset: 78px 0 0 0;
  background: oklch(0.157 0.031 265.4 / 45%);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav__overlay.is-open {
  opacity: 1;
}
html.nav-open {
  overflow: hidden;
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 110px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 26px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 15ch;
}
.hero__lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__fine {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* mockup PC (laptop) */
.mockup {
  position: relative;
}
.mockup__glow {
  position: absolute;
  inset: -14px;
  border-radius: 20px;
  background: oklch(0.826 0.283 149.6 / 6%);
  filter: blur(30px);
  pointer-events: none;
}
.laptop {
  position: relative;
}
.laptop__screen {
  position: relative;
  border: 10px solid #14161c;
  border-bottom-width: 12px;
  border-radius: 16px 16px 6px 6px;
  background: #05070c;
  box-shadow: var(--glow);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
:root[data-theme="light"] .laptop__screen {
  border-color: #2a2d36;
}
.laptop__bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: color-mix(in oklch, var(--card) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.laptop__bar .tl {
  display: flex;
  gap: 6px;
}
.laptop__bar .tl span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: oklch(0.932 0.015 253.5 / 20%);
}
.laptop__bar .tl span:last-child {
  background: oklch(0.826 0.283 149.6 / 50%);
}
.laptop__bar .live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--neon);
  font-weight: 600;
}
.laptop__frame {
  position: absolute;
  inset: 34px 0 0 0;
  overflow: hidden;
  background: #fff;
}
.laptop__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.laptop__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1360px;
  height: 900px;
  border: 0;
  transform-origin: top left;
}
.mockup__scrollhint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  color: var(--neon);
  font-size: 12px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: mockup-hint-bounce 1.5s ease-in-out infinite;
}
.mockup__scrollhint.is-hidden {
  opacity: 0;
}
@keyframes mockup-hint-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mockup__scrollhint {
    animation: none;
  }
}
.laptop__hinge {
  height: 14px;
  margin: 0 -6%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#20232c, #14161c);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] .laptop__hinge {
  background: linear-gradient(#3a3e49, #262932);
}
.laptop__hinge::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 3px auto 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}
.mockup__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.mockup__hint {
  font-size: 12px;
  color: var(--muted);
}

/* mockup smartphone (transporteur) */
.field {
  position: relative;
  z-index: 1;
}
.field__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
}
.field__grid--rev {
  grid-template-columns: 7fr 5fr;
}
/* texte à gauche, ordinateur à droite (même taille que les blocs --rev) */
.field__grid--laptop {
  grid-template-columns: 5fr 7fr;
}
.phone {
  position: relative;
  width: 300px;
  margin: 0 auto;
}
.phone__glow {
  position: absolute;
  inset: -20px;
  border-radius: 48px;
  background: oklch(0.826 0.283 149.6 / 8%);
  filter: blur(34px);
  pointer-events: none;
}
.phone__body {
  position: relative;
  border: 12px solid #14161c;
  border-radius: 44px;
  background: #05070c;
  box-shadow: var(--glow), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  aspect-ratio: 300 / 620;
}
:root[data-theme="light"] .phone__body {
  border-color: #2a2d36;
}
.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #14161c;
  border-radius: 0 0 14px 14px;
  z-index: 4;
}
:root[data-theme="light"] .phone__notch {
  background: #2a2d36;
}
.phone__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}
.phone__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 806px;
  border: 0;
  transform-origin: top left;
}

/* showcase : liste de fonctionnalités (gauche) + mockup PC (droite) */
.showcase {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.showcase__mockup {
  position: relative;
}
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 16px 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.feat-item:hover {
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.feat-item.is-active {
  border-color: oklch(0.826 0.283 149.6 / 55%);
  background: oklch(0.826 0.283 149.6 / 5%);
}
.feat-item__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.feat-item__title i {
  color: var(--neon);
  width: 18px;
  text-align: center;
}
.feat-item__desc {
  display: block;
  margin-top: 6px;
  padding-left: 28px;
  font-size: 13px;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    margin-top 0.3s ease;
}
.feat-item.is-active .feat-item__desc {
  max-height: 5rem;
  opacity: 1;
}
/* barre de progression de l'auto-défilement */
.feat-item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--neon);
  transform-origin: left;
  animation: feat-progress var(--feat-dur, 6s) linear forwards;
}
@keyframes feat-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.feat-item.is-paused::after {
  animation-play-state: paused;
}

/* grille de fonctionnalités */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.feature:hover {
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: oklch(0.826 0.283 149.6 / 12%);
  box-shadow: inset 0 0 0 1px oklch(0.826 0.283 149.6 / 25%);
  color: var(--neon);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14px;
  color: var(--muted);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.head-row h2 {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  max-width: 40ch;
}

/* galerie */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shot {
  min-width: 0;
}
.shot__frame {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.15s ease;
}
.shot__frame:hover {
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.shot__bar .tl {
  display: flex;
  gap: 5px;
}
.shot__bar .tl span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: oklch(0.932 0.015 253.5 / 20%);
}
.shot__scroll {
  min-width: 0;
  overflow-x: auto;
}
.shot__scroll img {
  display: block;
  width: 100%;
  height: auto;
}
.shot__cap {
  margin-top: 16px;
  padding: 0 4px;
}
.shot__cap h3 {
  font-size: 16px;
  font-weight: 500;
}
.shot__cap p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* tarifs */
.currency-switch {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.currency-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 56px;
}
.currency-switch button.is-active {
  background: var(--neon);
  color: var(--navy);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.plans--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
}
.plan__save {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: oklch(0.826 0.283 149.6 / 14%);
  color: var(--neon);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.plan--featured {
  border-color: oklch(0.826 0.283 149.6 / 40%);
  box-shadow: var(--glow);
}
.plan__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 16px;
  font-weight: 500;
}
.plan__price {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.plan__price small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.plan__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.plan ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.plan li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan li i {
  color: var(--neon);
  margin-top: 3px;
}
.plan__cta {
  display: block;
  margin-top: 28px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
}
.plan__cta--primary {
  background: var(--neon);
  color: var(--navy);
  font-weight: 600;
  border-color: var(--neon);
}

/* nos références */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 44px auto 0;
}
.ref-grid--partners {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 24px;
}
.ref-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.ref-cell img {
  max-width: 82%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.ref-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}
.subco-cell {
  color: oklch(0.22 0.035 265.4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
a.subco-cell {
  position: relative;
}
a.subco-cell::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  color: oklch(0.22 0.035 265.4 / 40%);
  opacity: 0;
  transition: opacity 0.15s ease;
}
a.subco-cell:hover::after {
  opacity: 1;
}
.ref-cell:hover img {
  opacity: 1;
}

/* popup annonce */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.popup[hidden] {
  display: none;
}
.popup__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.157 0.031 265.4 / 62%);
  backdrop-filter: blur(4px);
  animation: popup-fade 0.25s ease;
}
.popup__card {
  position: relative;
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    var(--glow),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: popup-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popup-fade {
  from {
    opacity: 0;
  }
}
@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
.popup__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.popup__x:hover {
  color: var(--ink);
}
.popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: oklch(0.826 0.283 149.6 / 12%);
  color: var(--neon);
  font-size: 12px;
  font-weight: 600;
}
.popup__card h3 {
  margin-top: 16px;
  font-size: 22px;
}
.popup__card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.popup__row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.popup__card--wide {
  width: min(920px, 100%);
  max-height: min(680px, 84vh);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.popup__card--wide .popup__x {
  top: 22px;
  right: 22px;
  z-index: 1;
}
.popup__card-head {
  flex-shrink: 0;
  padding: 30px 60px 22px 32px;
  border-bottom: 1px solid var(--line);
}
.popup__card-head .kicker {
  margin-bottom: 8px;
}
.popup__card-head h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}
.popup__features {
  margin: 0;
  padding: 22px 32px 30px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.popup__feature {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.popup__feature:hover {
  border-color: oklch(0.826 0.283 149.6 / 40%);
}
.popup__feature .feature__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 14px;
}
.popup__feature h4 {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.popup__feature p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 760px) {
  .popup__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .popup__features {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .popup__backdrop,
  .popup__card {
    animation: none;
  }
}

/* inscription */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.signup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--glow);
}
.signup-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 10px;
}
.signup-form {
  margin-top: 26px;
}
.signup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.signup-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.signup-field input {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.signup-field input::placeholder {
  color: var(--muted);
}
.signup-field input:focus {
  border-color: oklch(0.826 0.283 149.6 / 55%);
  box-shadow: 0 0 0 3px oklch(0.826 0.283 149.6 / 15%);
}
.signup-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-in-out 0s;
}
.signup-submit {
  width: 100%;
  margin-top: 6px;
  gap: 10px;
}
.signup-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.signup-spinner {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid oklch(0.157 0.031 265.4 / 30%);
  border-top-color: var(--navy);
  animation: signup-spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes signup-spin {
  to {
    transform: rotate(360deg);
  }
}
.signup-fine {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.signup-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.signup-alert--success {
  background: oklch(0.826 0.283 149.6 / 12%);
  color: var(--neon);
  border-color: oklch(0.826 0.283 149.6 / 30%);
}
.signup-alert--danger {
  background: oklch(0.63 0.24 25 / 12%);
  color: oklch(0.63 0.24 25);
  border-color: oklch(0.63 0.24 25 / 30%);
}
.signup-side__title {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-top: 10px;
  max-width: 22ch;
}
.signup-points {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signup-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.signup-points li i {
  color: var(--neon);
  width: 20px;
  text-align: center;
  margin-top: 3px;
}
.signup-side__mockup {
  max-width: 520px;
}

/* page CGU */
.cgu-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.cgu-toc {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.cgu-toc__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 10px;
}
.cgu-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cgu-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.cgu-toc a:hover {
  color: var(--ink);
  background: oklch(0.932 0.015 253.5 / 6%);
}
.cgu-toc a.is-active {
  color: var(--neon);
  font-weight: 600;
  border-left-color: var(--neon);
  background: oklch(0.826 0.283 149.6 / 8%);
}
.cgu-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.cgu-content h2:first-child {
  margin-top: 0;
}
.cgu-content h2.cgu-callout-h {
  background: oklch(0.826 0.283 149.6 / 6%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 10px;
}
.cgu-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  text-align: left;
}
.cgu-content p strong {
  color: var(--ink);
}
.cgu-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cgu-content a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cgu-callout {
  background: oklch(0.826 0.283 149.6 / 6%);
  border-left: 3px solid var(--neon);
  padding: 15px 18px;
  border-radius: 8px;
}

/* landing : récompenses */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 40px auto 0;
}
.awards-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.awards-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* landing : simulateur de pack */
.simulator {
  margin: 40px auto 0;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
}
.simulator__count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.simulator__count strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.simulator__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 16px 30px;
}
.simulator__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--neon);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: grab;
  box-shadow: var(--glow);
  touch-action: none;
  border: 0;
  font-size: 13px;
}
.simulator__thumb:active {
  cursor: grabbing;
}
.simulator__pack-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--neon);
  transition: opacity 0.15s ease;
}
.simulator__rows {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.simulator__rows strong {
  color: var(--ink);
}
.simulator__savings {
  display: none;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: oklch(0.63 0.24 25 / 12%);
  color: oklch(0.63 0.24 25);
  font-size: 12px;
  font-weight: 700;
}

/* landing : emplacements */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.map-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.map-card__label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.map-card iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

/* landing : bloc application sans mockup (points relais) */
.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
}
.app-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: oklch(0.826 0.283 149.6 / 12%);
  box-shadow: inset 0 0 0 1px oklch(0.826 0.283 149.6 / 25%);
  color: var(--neon);
  font-size: 20px;
  margin-bottom: 18px;
}
.app-card__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.app-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.app-card__list li i {
  color: var(--neon);
  margin-top: 3px;
}

/* footer CGU banner */
.footer__cgu {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__cgu:hover {
  color: var(--ink);
}

/* CTA final */
.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  padding: 64px 32px;
  text-align: center;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  max-width: 30ch;
  margin: 0 auto;
}
.cta-box p {
  margin: 16px auto 0;
  max-width: 44ch;
  color: var(--muted);
}
.cta-box__row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
}
.footer__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px 48px;
}
.footer__cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.footer__cols a:hover {
  color: var(--ink);
}
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* responsive */
@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .field__grid,
  .field__grid--rev {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .field__grid--rev > .mockup {
    order: 2;
  }
  .field__grid .mockup,
  .field__grid--rev .mockup {
    width: 100%;
    max-width: 480px;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase__mockup {
    order: -1;
  }
  .signup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .signup-side__mockup {
    max-width: 100%;
  }
  .cgu-layout {
    grid-template-columns: 1fr;
  }
  .cgu-toc {
    display: none;
  }
  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .maps-grid {
    grid-template-columns: 1fr;
  }
  .app-card__list {
    grid-template-columns: 1fr;
  }
  .field__grid .hero__cta {
    justify-content: center;
  }
  .grid-3,
  .plans--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ref-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ref-grid--partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 4px 24px 6px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
    z-index: 20;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__links.is-open {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav__links a:last-child {
    border-bottom: 0;
  }
  .nav__burger {
    display: grid;
  }
}
@media (max-width: 760px) {
  .section__pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .grid-2,
  .grid-3,
  .plans,
  .plans--4 {
    grid-template-columns: 1fr;
  }
  .ref-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .ref-grid--partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* nav-fit : 8 liens de menu sur écrans moyens, sans retour à la ligne */
.nav__links a,.logo span{white-space:nowrap}
@media (min-width:901px) and (max-width:1240px){
  .nav__links{gap:16px;font-size:13px}
  .nav__right{gap:10px}
  .logo__by{display:none}
}

/* CTA compact dans l'en-tête des landing pages isolées */
.nav__cta{padding:8px 14px;font-size:13px}
@media (max-width:900px){.nav__cta{display:none}}
@media (min-width:901px) and (max-width:1100px){.nav__cta{padding:7px 10px;font-size:12px}}

/* suggestion de langue (visiteur dont la langue diffère de la page) */
.lang-suggest{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:10px 48px 10px 16px;position:relative;background:var(--card);border-bottom:1px solid var(--line);font-size:14px;color:var(--ink);text-align:center}
.lang-suggest a{color:var(--neon);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.lang-suggest button{position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:8px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:16px}
.lang-suggest button:hover{background:oklch(0.932 0.015 253.5 / 8%);color:var(--ink)}

/* reCAPTCHA (304 px fixes) : la carte d'inscription ne doit jamais dépasser l'écran sur mobile */
.signup-card { min-width: 0; }
.signup-card .g-recaptcha { max-width: 100%; }
@media (max-width: 520px) {
  .signup-card { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .signup-card .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; height: 70px; }
  html[dir="rtl"] .signup-card .g-recaptcha { transform-origin: 100% 0; }
}

/* nav-wide : 9 liens (Blog inclus) — l'en-tête dispose d'un peu plus de largeur que le contenu */
@media (min-width:1241px){.nav__inner{max-width:1320px}}
/* nav-tight : écrans juste au-dessus du menu burger */
@media (min-width:901px) and (max-width:1060px){.nav__links{gap:11px;font-size:12.5px}.nav__right{gap:8px}.nav__inner{gap:12px}}

/* listes déroulantes des formulaires d'inscription, alignées sur les champs texte */
.signup-field select{font:inherit;font-size:15px;padding:12px 40px 12px 14px;border-radius:10px;border:1px solid var(--line);background-color:var(--bg);color:var(--ink);outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a93a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;transition:border-color .15s ease,box-shadow .15s ease;width:100%}
.signup-field select:focus{border-color:oklch(0.826 0.283 149.6 / 55%);box-shadow:0 0 0 3px oklch(0.826 0.283 149.6 / 15%)}
.signup-field select option{background:var(--card);color:var(--ink)}
html[dir="rtl"] .signup-field select{padding:12px 14px 12px 40px;background-position:left 14px center}
