/* ===========================
   Variables & Reset
   =========================== */

:root {
  --primary: #8B7AE8;
  --primary-soft: rgba(139, 122, 232, 0.1);
  --grad-start: #8B7AE8;
  --grad-end: #C4A8FF;

  --bg: #FFFFFF;
  --surface: #F6F4EF;
  --text: #1A1A2E;
  --text-mid: #6B6B80;
  --text-light: #A0A0B0;

  --white: #FFFFFF;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   Navigation
   =========================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo__icon {
  width: 34px;
  height: 34px;
}

.nav-logo__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===========================
   Language switch
   =========================== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 122, 232, 0.1);
  color: var(--primary);
  transition: background 0.2s, transform 0.2s;
}

.nav-social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-contact {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-contact:hover {
  color: var(--primary);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0.3rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-dropdown__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-dropdown__chevron {
  transition: transform 0.2s;
  color: var(--text-mid);
}

.lang-dropdown.open .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
  min-width: 150px;
  z-index: 100;
}

.lang-dropdown.open .lang-dropdown__menu {
  display: block;
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
  background: none;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}

.lang-dropdown__item:hover {
  background: rgba(139, 122, 232, 0.08);
}

/* ===========================
   Hero
   =========================== */

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 55%, rgba(196, 168, 255, 0.04) 80%, rgba(139, 122, 232, 0.08) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-glow {
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

.hero-highlight {
  font-weight: 600;
  color: var(--text);
}

.hero-cta-rainbow {
  background: linear-gradient(
    90deg,
    #6C5CE7,
    #8B7AE8,
    #C4A8FF,
    #8B7AE8,
    #6C5CE7
  );
  background-size: 400% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbow-slide 6s linear infinite;
  font-weight: 700;
}

@keyframes rainbow-slide {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.store-badge svg {
  display: block;
  height: 54px;
  width: auto;
}

.store-badge:hover {
  transform: scale(1.03);
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-frame {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 122, 232, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: var(--white);
}

.btn-store {
  background: var(--text);
  color: var(--white);
  margin: 0.5rem;
}

/* ===========================
   Showcase
   =========================== */

.showcase {
  padding: 2.5rem 1.5rem;
  background: linear-gradient(to bottom, rgba(139, 122, 232, 0.08) 0%, rgba(139, 122, 232, 0.14) 50%, rgba(139, 122, 232, 0.08) 100%);
}

.showcase__container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.showcase__layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.showcase__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.showcase__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.showcase__subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.showcase__badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  margin: 0;
  padding: 0;
}

.showcase__badges--left { align-items: flex-start; }
.showcase__badges--right { align-items: flex-end; }

.showcase__badges--left .showcase__badge--zig-out { margin-left: 0; }
.showcase__badges--left .showcase__badge--zig-in { margin-left: 2rem; }
.showcase__badges--right .showcase__badge--zig-out { margin-right: 0; }
.showcase__badges--right .showcase__badge--zig-in { margin-right: 2rem; }

.showcase__badge {
  position: relative;
  max-width: 300px;
  will-change: transform;
}

/* Parallax : translation subtile gérée par le JS */

.showcase__badge-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.7rem 1.5rem;
  background: #FBF8F2;
  border-radius: 28px;
  box-shadow: 0 10px 30px -20px rgba(60, 40, 120, 0.15);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}



.showcase__badge:hover .showcase__badge-card {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -18px rgba(60, 40, 120, 0.2);
}

.showcase__bubble-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
}

.showcase__dialog--right .showcase__bubble-row {
  flex-direction: row-reverse;
}

.showcase__audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(60, 40, 120, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.showcase__audio-btn:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -4px rgba(139, 122, 232, 0.45);
}

.showcase__audio-btn:active {
  transform: scale(0.95);
}



.showcase__badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.showcase__badge-kicker { display: none; }

.showcase__badge-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.showcase__badge-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.showcase__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  isolation: isolate;
}

.showcase__center::before {
  content: "";
  position: absolute;
  top: -3rem;
  bottom: -3rem;
  left: -35%;
  right: -35%;
  background: linear-gradient(to right, transparent 0%, #FFFFFF 32%, #FFFFFF 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.showcase__stage {
  position: relative;
  display: grid;
  width: 100%;
}

.showcase__story {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.showcase__story--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.showcase__story[data-mode="arabic"] .showcase__dialog {
  align-self: flex-end;
  align-items: flex-end;
}

.showcase__story[data-mode="arabic"] .showcase__dialog--right {
  align-self: flex-start;
  align-items: flex-start;
}

.showcase__story[data-mode="arabic"] .showcase__bubble--left {
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 6px;
}

.showcase__story[data-mode="arabic"] .showcase__bubble--right {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 22px;
}

.showcase__story[data-mode="arabic"] .showcase__dialog:not(.showcase__dialog--right) .showcase__bubble-row {
  flex-direction: row-reverse;
}

.showcase__story[data-mode="arabic"] .showcase__dialog--right .showcase__bubble-row {
  flex-direction: row;
}

.showcase__dialog {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  gap: 0.35rem;
}

.showcase__dialog--right {
  align-self: flex-end;
  align-items: flex-end;
}

.showcase__speaker {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0 1rem;
}

.showcase__bubble {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  padding: 0.95rem 1.25rem;
  border-radius: 22px;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px -14px rgba(60, 40, 120, 0.2);
  white-space: nowrap;
}

.showcase__bubble--left {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 6px;
}

.showcase__bubble--right {
  background: var(--primary-soft);
  border-color: rgba(139, 122, 232, 0.2);
  border-bottom-right-radius: 6px;
}

.showcase__bubble--rtl {
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.35rem;
}

.showcase__word {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1.5px dashed rgba(139, 122, 232, 0.45);
  padding: 1px 4px;
  margin: 0 -4px;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.showcase__word:hover {
  background: rgba(139, 122, 232, 0.15);
  border-bottom-color: var(--primary);
}

.showcase__bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mid);
  opacity: 0.4;
  animation: showcase-typing 1.4s infinite ease-in-out;
}

.showcase__dot:nth-child(2) { animation-delay: 0.2s; }
.showcase__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes showcase-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.showcase__switch {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.showcase__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.showcase__toggle-glyph {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: #F3F1FA;
  border-radius: 16px;
  box-shadow: 0 5px 14px -6px rgba(60, 40, 120, 0.18), inset 0 -2px 0 rgba(60, 40, 120, 0.08);
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.showcase__toggle-glyph--arabic {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.7rem;
}

.showcase__toggle:hover .showcase__toggle-glyph {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(60, 40, 120, 0.28), inset 0 -3px 0 rgba(60, 40, 120, 0.08);
}

.showcase__toggle:active .showcase__toggle-glyph {
  transform: translateY(1px);
  box-shadow: 0 3px 8px -3px rgba(60, 40, 120, 0.25), inset 0 2px 4px rgba(60, 40, 120, 0.15);
}

.showcase__toggle--active .showcase__toggle-glyph {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(139, 122, 232, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.showcase__toggle--active:hover .showcase__toggle-glyph {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -8px rgba(139, 122, 232, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.showcase__toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.25s ease;
}

.showcase__toggle--active .showcase__toggle-label {
  color: var(--primary);
}

/* ===========================
   Features (accordion + device)
   =========================== */

.features {
  padding: 4rem 1.5rem;
  background: var(--bg);
}

.features > .features__title {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.features__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.features__left {
  order: 1;
}

.features__right {
  order: 2;
  align-self: stretch;
}

.features__device {
  position: sticky;
  top: 100px;
}

.features__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}

.features__title-highlight {
  color: var(--primary);
}

.features__iphone {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.features__screen-img {
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.features__screen-img--active {
  opacity: 1;
}

/* Accordion */

.features__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.features__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.features__item:hover {
  border-color: rgba(139, 122, 232, 0.3);
}

.features__item--active {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -8px rgba(139, 122, 232, 0.2);
  background: #FDFBFF;
}

.features__item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.features__item-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features__item--active .features__item-number {
  background: var(--primary);
  color: var(--white);
}

.features__item-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.features__item-chevron {
  flex-shrink: 0;
  color: var(--text-mid);
  transition: transform 0.3s ease;
}

.features__item--active .features__item-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.features__item-body {
  overflow: hidden;
  height: 0;
  margin-top: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.features__item--active .features__item-body {
  margin-top: 0.75rem;
}

.features__item-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
  padding-left: calc(32px + 1rem);
}

/* ===========================
   Reviews
   =========================== */

.reviews {
  padding: 4rem 1.5rem;
  background: linear-gradient(to bottom, rgba(139, 122, 232, 0.06) 0%, rgba(139, 122, 232, 0.12) 50%, rgba(139, 122, 232, 0.06) 100%);
}

.reviews__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.reviews__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviews__avatars {
  display: flex;
}

.reviews__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  border: 2.5px solid #fff;
  margin-right: -10px;
}

.reviews__avatar:last-child {
  margin-right: 0;
}

.reviews__avatar--1 { background: #8B7AE8; }
.reviews__avatar--2 { background: #F59E0B; }
.reviews__avatar--3 { background: #43a047; }
.reviews__avatar--4 { background: #E53935; }

.reviews__rating {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reviews__stars {
  display: flex;
  gap: 2px;
}

.reviews__score {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
}

.reviews__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
}

.reviews__title-highlight {
  color: var(--primary);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
}

.reviews__card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 8px 32px -12px rgba(60, 40, 120, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.reviews__text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.reviews__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reviews__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.reviews__author-avatar--1 { background: #8B7AE8; }
.reviews__author-avatar--2 { background: #F59E0B; }
.reviews__author-avatar--3 { background: #43a047; }
.reviews__author-avatar--4 { background: #E53935; }

.reviews__author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.reviews__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.reviews__cta-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.reviews__cta-stores {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 900px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .reviews {
    padding: 4rem 1.5rem;
  }

  .reviews__title {
    font-size: 1.8rem;
  }

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

/* ===========================
   Footer
   =========================== */

.footer {
  background: linear-gradient(to bottom, rgba(139, 122, 232, 0.06) 0%, rgba(139, 122, 232, 0.12) 100%);
  border-top: 1px solid rgba(139, 122, 232, 0.12);
  padding: 3.5rem 2rem 1.5rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 2rem;
  align-items: flex-start;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.footer__column--socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.footer__links--inline li + li {
  position: relative;
  padding-left: 1.25rem;
}

.footer__links--inline li + li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

.footer__links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__socials-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer__socials-icons {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(139, 122, 232, 0.1);
  color: var(--primary);
  transition: background 0.2s, transform 0.2s;
}

.footer__social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

.footer__right {
  display: flex;
  align-items: center;
}

.footer__icon {
  width: 88px;
  height: 88px;
  transition: transform 0.3s ease;
}

.footer__icon:hover {
  transform: scale(1.05);
}

.footer__bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 122, 232, 0.1);
  text-align: center;
}

.footer__copy {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 700px) {
  .footer__container {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
  }

  .footer__column {
    align-items: center;
  }

  .footer__right {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
  }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-device {
    width: 100%;
    justify-content: center;
  }

  .iphone-frame {
    max-width: 320px;
  }

  .nav-links {
    gap: 1rem;
  }

  .features {
    padding: 4rem 1.5rem;
  }

  .features__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features > .features__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .features__device {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .features__iphone {
    max-width: 280px;
  }

  .showcase {
    padding: 4rem 1.5rem;
  }

  .showcase__container {
    gap: 3rem;
  }

  .showcase__title {
    font-size: 1.8rem;
  }

  .showcase__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase__badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .showcase__badges--left,
  .showcase__badges--right { align-items: stretch; }

  .showcase__badges--left .showcase__badge--zig-in,
  .showcase__badges--right .showcase__badge--zig-in { margin: 0; }

  .showcase__badge { max-width: none; flex: 1 1 240px; }


  .showcase__bubble {
    font-size: 1rem;
    padding: 0.8rem 1.05rem;
  }

  .showcase__bubble--rtl {
    font-size: 1.15rem;
  }

  .showcase__toggle-glyph {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
}

@media (max-width: 520px) {
  .showcase__badges {
    flex-direction: column;
  }
}

/* ==========================================================================
   Block: word-panel (popover ancré avec flèche)
   ========================================================================== */
@keyframes word-panel-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  50%  { opacity: 1; transform: scale(1.1); }
  70%  { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.word-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 300px;
  max-width: calc(100vw - 16px);
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 14px 34px rgba(26, 26, 46, 0.2), 0 3px 10px rgba(26, 26, 46, 0.08);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.word-panel--open {
  animation: word-panel-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
}

.word-panel__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 122, 232, 0.1);
  color: #1A1A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.word-panel__close:hover {
  background: rgba(139, 122, 232, 0.2);
  transform: scale(1.05);
}

.word-panel__word {
  margin: 2px 0 3px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8B7AE8;
  line-height: 1.2;
  padding: 0 18px;
}

.word-panel__word--rtl {
  direction: rtl;
}

.word-panel__translation {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #4B4B63;
}

.word-panel__audio-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.word-panel__audio {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #8B7AE8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.word-panel__audio:hover {
  transform: scale(1.08);
}

.word-panel__divider {
  height: 1px;
  background: rgba(26, 26, 46, 0.08);
  margin: 10px 0 12px;
}

.word-panel__section {
  margin-bottom: 10px;
}

.word-panel__section:last-child {
  margin-bottom: 0;
}

.word-panel__section {
  margin-bottom: 12px;
}

.word-panel__section:last-child {
  margin-bottom: 0;
}

.word-panel__section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.word-panel__section-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1A1A2E;
}

.word-panel__section-body {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #1A1A2E;
}

.word-panel__section-body p {
  margin: 0;
}

.word-panel__section-body--info {
  background: rgba(139, 122, 232, 0.1);
}

.word-panel__section-body--tip {
  background: rgba(245, 158, 11, 0.1);
}

.word-panel__section-body--example {
  background: rgba(168, 85, 247, 0.1);
}

.word-panel__example-darija {
  font-weight: 600;
  color: #8B7AE8;
  margin-bottom: 6px !important;
}

.word-panel__example-darija--rtl {
  direction: rtl;
}

.word-panel__example-translation {
  color: #4B4B63;
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .word-panel {
    width: calc(100vw - 24px);
    max-width: 320px;
  }
}

/* =========================
   Bandeau cookies
   ========================= */
.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid rgba(139, 122, 232, 0.2);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(30, 20, 80, 0.18);
  padding: 20px 28px;
  animation: cookie-banner-in 0.4s ease-out;
}

@keyframes cookie-banner-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 360px;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1533;
}

.cookie-banner__desc {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4b4b63;
}

.cookie-banner__link {
  font-size: 0.82rem;
  color: #8B7AE8;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cookie-banner__btn--refuse {
  background: transparent;
  color: #4b4b63;
  border: 1px solid rgba(75, 75, 99, 0.3);
}

.cookie-banner__btn--refuse:hover {
  background: rgba(75, 75, 99, 0.06);
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, #8B7AE8, #6B5FD6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 122, 232, 0.35);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(139, 122, 232, 0.45);
}

@media (max-width: 640px) {
  .cookie-banner {
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 16px 18px;
    border-radius: 20px;
  }
  .cookie-banner__inner {
    gap: 14px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner__btn {
    flex: 1;
  }
}
