/* Site officiel Uksufy : direction artistique autour de l'onde sonore. */
:root {
  --bg: #08090a; --card: rgba(255,255,255,.045); --card-solid: #141617; --line: rgba(255,255,255,.1);
  --text: #fff; --dim: #a9b0ad; --accent: #3be38f; --accent-2: #0f9f5c; --gold: #e6c47a;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden; }
[dir="rtl"] body { font-family: system-ui, "Noto Sans Arabic", Tahoma, sans-serif; line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: Amiri, "Noto Naskh Arabic", serif; line-height: 1.3; letter-spacing: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: 16px; }

/* Barre de progression */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 10; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* Navigation */
.topbar { position: sticky; top: 0; z-index: 9; background: rgba(8,9,10,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.topbar.scrolled { background: rgba(8,9,10,.86); border-color: var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 10px 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.lang-menu[open] { background: none; }
.lang-menu summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--dim); transition: color .2s, background .2s; }
.lang-menu summary::after { content: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); background: rgba(255,255,255,.1); }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.langs { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px; display: grid; gap: 2px; padding: 6px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: fadeUp .25s var(--ease); }
.langs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--dim); font-size: 15px; font-weight: 600; text-decoration: none; }
.langs a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.langs a[aria-current] { color: var(--text); }
.langs a[aria-current]::after { content: '✓'; color: var(--accent); font-weight: 800; }
.nav { order: 3; width: 100%; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--dim); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* Boutons */
.cta { position: relative; display: inline-block; background: linear-gradient(135deg, #5df0a8, var(--accent) 45%, #17bd72); color: #03210f; font-weight: 800; padding: 17px 34px; border-radius: 999px; text-decoration: none; font-size: 17px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 10px 40px rgba(59,227,143,.35); }
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 60px rgba(59,227,143,.55); }
.cta.big::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(59,227,143,.55); animation: ring 2.6s ease-out infinite; }
.cta.small { padding: 8px 14px; font-size: 14px; white-space: nowrap; box-shadow: none; }
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 22px rgba(59,227,143,0); } }

/* Premier écran */
.hero { position: relative; isolation: isolate; overflow: clip; }
.aurora { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; opacity: .75; will-change: transform; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; inset-inline-start: -22vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(59,227,143,.42), transparent); animation: drift1 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 58vmax; height: 58vmax; inset-inline-end: -18vmax; top: -6vmax; background: radial-gradient(closest-side, rgba(15,159,92,.45), transparent); animation: drift2 20s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 44vmax; height: 44vmax; inset-inline-start: 26%; top: 22vmax; background: radial-gradient(closest-side, rgba(230,196,122,.2), transparent); animation: drift3 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 10vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -8vmax) scale(1.25); } }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(to top, var(--bg), transparent); }
.hero-grid { display: grid; gap: 40px; padding-block: 44px 64px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; color: #dfe7e3; margin-bottom: 20px; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { font-size: clamp(42px, 10.5vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 20px; }
h1 .word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); animation: wordIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
h1 .accent { background: linear-gradient(100deg, #7df7bd, var(--accent) 40%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.lead { color: #c5ccc9; font-size: clamp(17px, 2.3vw, 21px); margin: 0 auto 28px; max-width: 32em; }
.note { color: var(--dim); font-size: 14px; margin: 18px 0 0; }

/* Onde sonore */
.wave { display: flex; align-items: center; justify-content: center; gap: clamp(3px, .7vw, 6px); height: 56px; margin: 0 auto 26px; }
.wave i { flex: none; width: clamp(3px, .6vw, 5px); height: 100%; border-radius: 99px; background: linear-gradient(to top, var(--accent-2), var(--accent)); transform: scaleY(.18); animation: bar 1.25s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -83ms); will-change: transform; }
@keyframes bar { to { transform: scaleY(var(--h, 1)); } }

/* Téléphones */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 14px; perspective: 1400px; }
.stage { transition: transform .5s var(--ease); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; display: flex; justify-content: center; align-items: flex-start; gap: 14px; width: 100%; }
.phone { width: min(47%, 290px); border-radius: 30px; border: 5px solid #2b2e2f; overflow: hidden; background: #000; box-shadow: 0 40px 80px rgba(0,0,0,.65), 0 0 70px rgba(59,227,143,.22); animation: float 7s ease-in-out infinite; }
.phone + .phone { margin-top: 44px; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-16px); } }

/* Chiffres */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: 26px 14px; text-align: center; }
.stat b { display: block; font-size: clamp(36px, 7vw, 60px); font-weight: 800; line-height: 1.05; background: linear-gradient(120deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--dim); font-size: 14px; }

/* Bandeau des récitateurs */
.marquee { overflow: hidden; padding-block: 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { padding-block-start: 0; }
.track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee.back .track { animation-direction: reverse; animation-duration: 75s; }
.track span { font-size: clamp(30px, 6vw, 62px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; padding-inline: .5em; color: rgba(255,255,255,.2); transition: color .3s; }
.track span:hover { color: var(--accent); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .track span { font-family: Amiri, "Noto Naskh Arabic", serif; letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .track { animation-name: slideRtl; }
@keyframes slideRtl { to { transform: translateX(50%); } }

/* Sections */
section { position: relative; padding-block: 64px; }
h2 { font-size: clamp(32px, 6.5vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 30px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.glow { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.glow::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--x, 50%) var(--y, 0%), rgba(59,227,143,.2), transparent 70%); }
.glow:hover { transform: translateY(-5px); border-color: rgba(59,227,143,.45); }
.glow:hover::before { opacity: 1; }
.glow > * { position: relative; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(59,227,143,.28), rgba(59,227,143,.06)); color: var(--accent); }
.icon svg { width: 24px; height: 24px; fill: currentColor; }
.features strong { display: block; font-size: 19px; margin-bottom: 6px; }
.features span { color: var(--dim); }
.install { display: grid; gap: 14px; }
.install h3 { margin: 0 0 12px; font-size: 22px; }
.install ol { list-style: none; counter-reset: s; margin: 0; padding: 0; color: #c5ccc9; }
.install li { counter-increment: s; position: relative; padding-inline-start: 42px; min-height: 30px; }
.install li + li { margin-top: 12px; }
.install li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #03210f; background: var(--accent); }
.install strong { color: var(--text); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; transition: border-color .25s, background .25s; }
details[open] { border-color: rgba(59,227,143,.4); background: rgba(59,227,143,.05); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: #c5ccc9; margin: 12px 0 0; }

/* Appel final */
.end { text-align: center; overflow: clip; isolation: isolate; padding-block: 90px; }
.end::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 100%, rgba(59,227,143,.28), transparent); }
.end img { width: 90px; height: 90px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 0 60px rgba(59,227,143,.4); }

/* Pied de page : il informe et s'efface. Petits corps, gris, aucune animation d'entrée. */
.pied { border-top: 1px solid var(--line); background: #050606; color: var(--dim); font-size: 15px; }
.foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 30px 12px; padding-block: 42px 34px; }
.foot-marque { grid-column: 1 / -1; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot p { margin: 0; max-width: 34ch; font-size: 14.5px; }
.foot h3 { margin: 0 0 14px; font: 400 12px/1.4 ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Consolas, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot a { color: var(--dim); text-decoration: none; transition: color .3s var(--ease); }
.foot a:hover, .foot a:focus-visible { color: #fff; }
.foot nav a { position: relative; display: inline-block; }
.foot nav a::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .42s var(--ease); }
[dir="rtl"] .foot nav a::after { transform-origin: 100% 50%; }
.foot nav a:hover::after, .foot nav a:focus-visible::after { transform: scaleX(1); }

/* Réseaux : gris au repos, couleurs officielles au survol. */
.reseaux { display: flex; gap: 8px; }
.reseaux a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.reseaux a:hover, .reseaux a:focus-visible { border-color: var(--text); }
.reseaux svg { width: 18px; height: 18px; overflow: visible; }
.reseaux path { transition: fill .3s var(--ease), opacity .3s var(--ease); }
.rs-main { fill: var(--dim); }
.rs-cyan, .rs-red, .rs-back { opacity: 0; }
.rs-cyan { fill: #25f4ee; transform: translate(-1.2px, -1px); }
.rs-red { fill: #fe2c55; transform: translate(1.2px, 1px); }
.rs-back { fill: #fff; }
.reseaux a:hover .rs-cyan, .reseaux a:hover .rs-red, .reseaux a:hover .rs-back,
.reseaux a:focus-visible .rs-cyan, .reseaux a:focus-visible .rs-red, .reseaux a:focus-visible .rs-back { opacity: 1; }
.reseaux a:hover .rs-main, .reseaux a:focus-visible .rs-main { fill: #fff; }
.reseaux a:hover .rs-yt, .reseaux a:focus-visible .rs-yt { fill: #f00; }

/* La dernière ligne : le copyright et le lien légal. */
.barre { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 16px 22px; text-align: center; border-top: 1px solid var(--line); font: 400 11.5px/1.6 ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Consolas, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.barre small { font-size: inherit; }
.barre a { color: inherit; text-underline-offset: 2px; transition: color .3s var(--ease); }
.barre a:hover, .barre a:focus-visible { color: #fff; }
/* L'arabe se lie : pas de lettres espacées ni de chasse fixe. */
[dir="rtl"] .foot h3, [dir="rtl"] .barre { font-family: inherit; letter-spacing: 0; text-transform: none; }
[dir="rtl"] .foot h3 { font-size: 14px; }
[dir="rtl"] .barre { font-size: 13px; }

/* Lien d'évitement, visible seulement au clavier, et repère de focus. */
.saut { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 11; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #03210f; font-weight: 700; text-decoration: none; }
.saut:focus { top: 10px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Page d'erreur */
.erreur main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 16px; text-align: center; }
.erreur main img { border-radius: 22px; margin-bottom: 14px; box-shadow: 0 0 60px rgba(59,227,143,.4); }
.erreur h1 { font-size: clamp(30px, 7vw, 46px); margin: 0; }
.erreur p { margin: 0; color: var(--dim); }
.erreur-code { font-size: 15px; letter-spacing: .3em; color: var(--accent) !important; }
.erreur-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Apparitions au défilement (seulement si le JavaScript tourne) */
.js .reveal:not(.in) { opacity: 0; transform: translateY(34px); }
.js .reveal.in { animation: fadeUp .9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
.fade-in { animation: fadeUp 1s var(--ease) backwards; animation-delay: var(--t, .5s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }

@media (max-width: 479px) {
  html { scroll-padding-top: 110px; }
  .topbar .cta.small { display: none; }
  .nav { justify-content: space-between; }
  .nav a { padding: 6px; font-size: 14px; }
  .foot { column-gap: 10px; }
  .foot h3 { letter-spacing: .12em; }
  .hero-grid { padding-block-start: 28px; }
}
@media (min-width: 640px) {
  .features, .install { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; justify-content: normal; gap: 40px; padding-block: 52px 44px; }
  .foot-marque { grid-column: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .foot ul { gap: 0; }
  .foot nav a, .foot-info a, .barre a { display: inline-block; padding-block: 10px; }
  .foot nav a::after { bottom: 8px; }
}
@media (max-width: 359px) {
  .foot h3 { font-size: 11px; letter-spacing: .06em; }
  .foot ul { font-size: 13.5px; }
  .reseaux a { width: 40px; height: 40px; }
}
@media (min-width: 960px) {
  html { scroll-padding-top: 80px; }
  .bar { flex-wrap: nowrap; padding-block: 12px; }
  .nav { order: 0; width: auto; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; align-items: center; text-align: start; min-height: calc(100vh - 64px); padding-block: 40px; gap: 56px; }
  .lead { margin-inline: 0; }
  .wave { justify-content: flex-start; }
  .features { grid-template-columns: repeat(3, 1fr); }
  section { padding-block: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .word, .js .reveal:not(.in) { opacity: 1; transform: none; }
  .wave i { transform: scaleY(var(--h, 1)); }
}
