/* ═══════════════════════════════════════════════════════════════════════════
FICHIER  : css/landing.css
RÔLE     : Design system + animations de la landing page unique (index.html).
           Thème sombre, dégradés de marque par app (cartes "apps"), orbes
           de fond animées, reveal-on-scroll, compteurs, nav sticky, menu
           mobile. Footer centré en petit écran (exigence explicite).
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #06080f;
  --surface: #0e1220;
  --surface-2: #131829;
  --border: #212842;
  --text: #eef1f7;
  --text-sec: #8f9ab3;
  --text-mute: #626d88;

  /* Dégradé de marque général (identique aux pages légales, cf. Zyver PDF) */
  --g1: #00f2fe;
  --g2: #0078ff;
  --g3: #4a00e0;

  /* Dégradés d'accent par app, pour différencier les 4 cartes */
  --acc-ultimate-1: #a8edea;
  --acc-ultimate-2: #7fdbda;
  --acc-ultimate-3: #7b2ff7;

  --acc-pdf-1: #00f2fe;
  --acc-pdf-2: #0078ff;
  --acc-pdf-3: #4a00e0;

  --acc-image-1: #4dffd2;
  --acc-image-2: #22c1a0;
  --acc-image-3: #0e8f78;

  --acc-video-1: #7fdbff;
  --acc-video-2: #2b8fff;
  --acc-video-3: #5b3fe8;

  --sp-xs: 4px;
  --sp-s: 8px;
  --sp-m: 16px;
  --sp-l: 24px;
  --sp-xl: 40px;
  --sp-xxl: 80px;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --r-full: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html[dir="rtl"] body {
  direction: rtl;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 100%;
  height: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ── ORBES DE FOND ─────────────────────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite;
}
.orb-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--g2), transparent 70%);
  animation-duration: 22s;
}
.orb-2 {
  width: 380px;
  height: 380px;
  top: 30%;
  right: -140px;
  background: radial-gradient(circle, var(--g3), transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}
.orb-3 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: 20%;
  background: radial-gradient(circle, var(--g1), transparent 70%);
  animation-duration: 20s;
  animation-delay: -12s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-30px, 25px) scale(0.96); }
}

/* ── TOP BANNER ────────────────────────────────────────────────────────── */
.top-banner {
  position: relative;
  z-index: 50;
  background: linear-gradient(90deg, rgba(0, 120, 255, 0.16), rgba(74, 0, 224, 0.16));
  border-bottom: 1px solid var(--border);
}
.top-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--sp-l);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-sec);
  text-align: center;
  flex-wrap: wrap;
}
.tb-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--g1);
}
.top-banner-inner a {
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* ── HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 8, 15, 0.92);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--sp-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-m);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand span {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.main-nav {
  display: flex;
  gap: var(--sp-l);
}
.main-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sec);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-sec);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 11px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #04101f;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface-2);
  align-items: center;
}
.burger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open {
  max-height: 320px;
}
.mobile-nav a {
  padding: 14px var(--sp-l);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover {
  color: var(--text);
}

/* ── COMMON: SECTION HEAD ─────────────────────────────────────────────── */
.section-head {
  max-width: 620px;
  margin: 0 auto var(--sp-xl);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.section-head p {
  font-size: 15px;
  color: var(--text-sec);
}

main {
  position: relative;
  z-index: 1;
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(50px, 9vw, 110px) var(--sp-l) var(--sp-xl);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--sp-xl);
  min-height: 78vh;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--g1);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-l);
}
.hero-title {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin-bottom: var(--sp-l);
}
.grad-text {
  background: linear-gradient(120deg, var(--g1), var(--g2), var(--g3), var(--g1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-sec);
  max-width: 560px;
  margin-bottom: var(--sp-xl);
}

.hero-cta {
  display: flex;
  gap: var(--sp-m);
  flex-wrap: wrap;
  margin-bottom: var(--sp-l);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--r-full);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  color: #04101f;
  box-shadow: 0 8px 30px rgba(0, 120, 255, 0.35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -60%; }
  40%, 100% { left: 130%; }
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 120, 255, 0.5);
}
.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--g2);
  background: var(--surface);
}

.hero-badges {
  display: flex;
  gap: var(--sp-s);
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: var(--r-full);
}
.pill svg {
  width: 13px;
  height: 13px;
  color: var(--g1);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  height: 420px;
}
.hero-orb {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0, 242, 254, 0.28), rgba(74, 0, 224, 0.18) 60%, transparent 75%);
  filter: blur(6px);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}
.float-icon {
  position: absolute;
  width: 62px;
  height: 62px;
  padding: 15px;
  border-radius: var(--r-l);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--g1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: floatIcon 6s ease-in-out infinite;
}
.fi-1 { top: 6%; left: 8%; animation-delay: 0s; color: var(--acc-video-2); }
.fi-2 { top: 58%; left: 2%; animation-delay: -1.6s; color: var(--acc-image-2); }
.fi-3 { top: 10%; right: 4%; animation-delay: -3.2s; color: var(--acc-pdf-2); }
.fi-4 { bottom: 4%; right: 14%; animation-delay: -4.6s; color: var(--acc-ultimate-3); }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

/* ── STATS ─────────────────────────────────────────────────────────────── */
.stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-l) var(--sp-xxl);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-xl) var(--sp-l);
}
.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── FEATURES ──────────────────────────────────────────────────────────── */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--sp-l);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-l);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-l);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 120, 255, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.feature-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(74, 0, 224, 0.15));
  color: var(--g1);
  margin-bottom: var(--sp-m);
}
.feature-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-sec);
}

/* ── APPS ──────────────────────────────────────────────────────────────── */
.apps {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--sp-l);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-l);
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-l);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ag1), var(--ag2), var(--ag3));
}
.app-card[data-accent="ultimate"] { --ag1: var(--acc-ultimate-1); --ag2: var(--acc-ultimate-2); --ag3: var(--acc-ultimate-3); }
.app-card[data-accent="pdf"] { --ag1: var(--acc-pdf-1); --ag2: var(--acc-pdf-2); --ag3: var(--acc-pdf-3); }
.app-card[data-accent="image"] { --ag1: var(--acc-image-1); --ag2: var(--acc-image-2); --ag3: var(--acc-image-3); }
.app-card[data-accent="video"] { --ag1: var(--acc-video-1); --ag2: var(--acc-video-2); --ag3: var(--acc-video-3); }
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.app-icon {
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--ag1), var(--ag2), var(--ag3));
  color: #04101f;
}
.app-card h3 {
  font-size: 16px;
  font-weight: 800;
}
.app-card p {
  font-size: 13px;
  color: var(--text-sec);
  flex: 1;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--r-full);
  margin-top: 6px;
  transition: all 0.25s ease;
  width: 100%;
  justify-content: center;
}
.store-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.store-btn:hover {
  background: linear-gradient(135deg, var(--ag1), var(--ag2));
  color: #04101f;
  border-color: transparent;
}

/* ── ZYVER WEB ─────────────────────────────────────────────────────────── */
.webtools {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--sp-l);
}
.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-l);
  background: linear-gradient(120deg, rgba(0, 242, 254, 0.1), rgba(74, 0, 224, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-xl) var(--sp-l);
  margin-bottom: var(--sp-l);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
  flex-wrap: wrap;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--g2);
}
.hub-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 8px;
}
.hub-card-text h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.hub-card-text p {
  font-size: 13.5px;
  color: var(--text-sec);
}
.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.hub-card-cta svg {
  width: 18px;
  height: 18px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-m);
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: var(--sp-l) var(--sp-m);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.tool-card svg {
  width: 26px;
  height: 26px;
  color: var(--g1);
}
.tool-card span {
  font-size: 13px;
  font-weight: 700;
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--g2);
}

/* ── LANG NOTE ─────────────────────────────────────────────────────────── */
.lang-note {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-l) var(--sp-xxl);
}
.lang-note-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--sp-l);
  max-width: 720px;
  margin: 0 auto;
}
.lang-note-inner svg {
  width: 30px;
  height: 30px;
  color: var(--g1);
  flex-shrink: 0;
}
.lang-note-inner h3 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 6px;
}
.lang-note-inner p {
  font-size: 13px;
  color: var(--text-sec);
}

/* ── FINAL CTA ─────────────────────────────────────────────────────────── */
.final-cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-l) var(--sp-xxl);
}
.final-cta-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(74, 0, 224, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--r-xl, 26px);
  padding: clamp(40px, 6vw, 70px) var(--sp-l);
}
.final-cta-inner h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  margin-bottom: 10px;
}
.final-cta-inner p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: var(--sp-l);
}
.final-cta-inner .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--sp-l) var(--sp-xl);
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--sp-l);
}
.footer-brand img {
  height: 26px;
  margin-bottom: var(--sp-s);
}
.footer-brand p {
  font-size: 12.5px;
  color: var(--text-sec);
  max-width: 240px;
}
.footer-col h3 {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-mute);
  margin-bottom: var(--sp-m);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-sec);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--g1);
}
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-l) var(--sp-l) var(--sp-xl);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}

/* ── REVEAL ON SCROLL ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.apps-grid .reveal:nth-child(1) { transition-delay: 0s; }
.apps-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.apps-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.apps-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.stats-inner .reveal:nth-child(1) { transition-delay: 0s; }
.stats-inner .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-inner .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-inner .reveal:nth-child(4) { transition-delay: 0.3s; }
.tools-grid .reveal:nth-child(1) { transition-delay: 0s; }
.tools-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.tools-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.tools-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .orb, .float-icon, .hero-orb, .grad-text, .btn-primary::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .hero-inner { order: 2; }
  .hero-visual { order: 1; height: 260px; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .features-grid,
  .apps-grid,
  .tools-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .hub-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  html[dir="rtl"] .hub-card {
    align-items: flex-end;
    text-align: right;
  }

  /* Footer centre en petit ecran, exigence explicite */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand,
  .footer-col {
    align-items: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-col {
    display: flex;
    align-items: center;
  }
  .footer-bottom {
    text-align: center;
  }

  .lang-note-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
