:root {
  --brand: #5b3fe0;
  --brand-2: #7c5cff;
  --brand-3: #4a2fd6;
  --pink: #ff6b9d;
  --blue: #3b8bff;
  --fg: #0f172a;
  --muted: #5b6478;
  --bg: #ffffff;
  --soft: #f5f3ff;
  --card: #ffffff;
  --line: #e7e4f5;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(46, 26, 140, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ece9ff;
    --muted: #a6a3c2;
    --bg: #0e0b1f;
    --soft: #17132f;
    --card: #1b1636;
    --line: #2a2450;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
html[lang='ar'] body { font-family: 'Noto Kufi Arabic', Inter, system-ui, sans-serif; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre du haut ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.langs { display: flex; gap: 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed='true'] { background: var(--brand); color: #fff; }
.top-cta { text-decoration: none; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } .langs { margin-inline-start: auto; } }
@media (max-width: 520px) { .top-cta { display: none; } }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, var(--brand-2) 0%, var(--brand) 45%, var(--brand-3) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -1px -10%; height: 90px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -0.03em; font-weight: 800; }
html[lang='ar'] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: #ffd1e3; }
.hero p.lead { font-size: 1.2rem; opacity: 0.92; max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #0b0b14; color: #fff; padding-block: 10px; padding-inline: 14px 18px; border-radius: 14px; min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.7rem; opacity: 0.8; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store.soon { background: rgba(255, 255, 255, 0.12); cursor: default; }
.store.soon:hover { transform: none; }
.store.web { background: #fff; color: var(--brand); border-color: #fff; }
.hero .note { margin-top: 14px; font-size: 0.85rem; opacity: 0.85; }
.hero .note a { color: #fff; font-weight: 600; }
.hero-phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 460 / 996;
  background: #0b0b14; border-radius: 40px; padding: 9px;
  box-shadow: 0 30px 60px -20px rgba(10, 5, 50, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: #fff; }
.hero-phones .p1 { inset-inline-start: 4%; top: 30px; transform: rotate(-6deg); z-index: 1; }
.hero-phones .p2 { inset-inline-end: 4%; top: 0; transform: rotate(5deg); z-index: 2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero-phones { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 190px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
html[lang='ar'] .eyebrow { letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #a99bff; } }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 14px; }
html[lang='ar'] h2 { line-height: 1.4; letter-spacing: 0; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0; }
.head { text-align: center; margin-bottom: 48px; }
.head .sub { margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--soft); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Galerie */
.soft { background: var(--soft); }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  max-width: 1120px; margin: 0 auto;
}
.shot { flex: none; width: 230px; scroll-snap-align: center; text-align: center; margin: 0; }
.shot .phone { position: relative; width: 100%; transform: none; }
.shot figcaption { margin-top: 14px; font-weight: 600; font-size: 0.95rem; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--fg); font-size: 1.2rem; cursor: pointer;
}
html[dir='rtl'] .gallery-nav button { transform: scaleX(-1); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* Confiance */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust div { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.trust strong { display: block; font-size: 1.6rem; }
.trust span { color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Appel final */
.cta {
  border-radius: 28px; padding: 56px 28px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}
.cta h2 { margin-top: 0; }
.cta p { opacity: 0.9; margin: 0 auto 26px; max-width: 34em; }
.cta .stores { justify-content: center; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--brand); }
