/* ============================================================
   EXTEND by LeCoach — Landing page styles
   Cairo (arabe) + Montserrat (latin)
   Bootstrap 5 utilisé pour la grille / les utilitaires
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --purple-50:  #F4EEFF;
  --purple-300: #B59BFF;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --purple-700: #6D28D9;
  --ink-900:    #0B0E22;
  --ink-800:    #131634;
  --card-grad-1:#1A0B2E;
  --card-grad-2:#2A1148;
  --card-grad-3:#3D1F5C;
  --bg-page:    #F8F6FB;
  --text-900:   #1A1A2E;
  --text-700:   #2E2E48;
  --text-500:   #6B7280;
  --text-400:   #9AA0B4;
  --border-c:   #E7E4F0;
  --white:      #ffffff;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Cairo', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  margin: 0;
}

/* Conteneur custom (override de .container Bootstrap si nécessaire) */
.ext-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--ink-900);
  color: #fff;
  padding: 22px 0;
  position: relative;
}
.site-header .ext-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  direction: ltr;
}
.header-url {
  color: var(--purple-300);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2px;
  font-family: 'Montserrat', sans-serif;
  justify-self: start;
}
.header-logo { justify-self: center; }
.header-cta-wrap { justify-self: end; }

.btn-join {
  background: var(--purple-600);
  color: #fff;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  display: inline-block;
  transition: background .15s ease;
}
.btn-join:hover { background: var(--purple-700); color: #fff; }

.logo-extend {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--white);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  direction: ltr;
}
.hero-text {
  direction: ltr;
  text-align: left;
}
.hero-logo {
  height: 88px;
  width: auto;
  display: block;
  margin-bottom: 22px;
  image-rendering: -webkit-optimize-contrast;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 1.05;
  color: var(--purple-600);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  text-align: left;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-700);
  line-height: 1.85;
  max-width: 480px;
  margin: 0 0 30px;
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary-x {
  background: var(--purple-600);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  display: inline-block;
  transition: background .15s ease;
}
.btn-primary-x:hover { background: var(--purple-700); color: #fff; }

.btn-outline-x {
  background: #fff;
  color: var(--text-900);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--border-c);
  display: inline-block;
  transition: border-color .15s ease, color .15s ease;
}
.btn-outline-x:hover { border-color: var(--purple-500); color: var(--purple-600); }

.hero-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: #ddd;
  box-shadow: 0 30px 60px -20px rgba(15, 8, 45, .25);
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- FEATURES STRIP (bandeau sombre) ---------- */
.features { padding: 0 0 40px; background: var(--white); }
.features-card {
  position: relative;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(124,58,237,.35) 0%, transparent 60%),
    radial-gradient(60% 80% at 85% 100%, rgba(124,58,237,.28) 0%, transparent 60%),
    linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 55%, var(--card-grad-3) 100%);
  border-radius: 28px;
  padding: 44px 36px;
  color: #fff;
  overflow: hidden;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.feature-item { padding: 6px 8px; }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 48px; height: 48px; stroke: #C4B5FD; fill: none; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-sub   { font-size: 13.5px; color: #C9C2DC; line-height: 1.7; white-space: pre-line; }
.feature-item + .feature-item {
  border-right: 1px solid rgba(255,255,255,.08);
  padding-right: 18px;
}

/* ---------- WHY EXTEND ---------- */
.why { padding: 64px 0 40px; }
.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--text-900);
  margin: 0 0 36px;
}
.section-title .accent { color: var(--purple-600); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border-c);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(124,58,237,.25);
}
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.why-icon svg { width: 52px; height: 52px; stroke: var(--purple-600); fill: none; }
.why-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--purple-600);
  margin-bottom: 10px;
  direction: ltr;
}
.why-title { font-size: 16px; font-weight: 700; color: var(--text-900); margin-bottom: 6px; }
.why-sub   { font-size: 13.5px; color: var(--text-500); line-height: 1.7; white-space: pre-line; }

/* ---------- PRODUCTS ---------- */
.products { padding: 36px 0 40px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 18px 40px -22px rgba(15, 8, 45, .35);
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(20,10,40,0) 0%, rgba(20,10,40,.78) 45%, rgba(20,10,40,.92) 100%);
  color: #fff;
  padding: 20px 22px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 38%;
}
.product-text { flex: 1; }
.product-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-sub   { font-size: 13px; color: #D1C9E6; line-height: 1.6; white-space: pre-line; }
.product-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.product-badge svg { width: 22px; height: 22px; stroke: #fff; fill: none; }

/* ---------- FINAL CTA ---------- */
.final-cta { padding: 16px 0 64px; }
.cta-card {
  position: relative;
  background:
    radial-gradient(60% 100% at 10% 50%, rgba(139,92,246,.35) 0%, transparent 55%),
    radial-gradient(60% 100% at 90% 50%, rgba(124,58,237,.28) 0%, transparent 55%),
    linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 55%, var(--card-grad-3) 100%);
  border-radius: 24px;
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.cta-text  { text-align: center; }
.cta-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.cta-sub   { font-size: 14.5px; color: #CDC5E4; line-height: 1.7; }
.cta-badge {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-600), var(--purple-700));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -8px rgba(124,58,237,.55);
}
.cta-badge svg { width: 38px; height: 38px; stroke: #fff; fill: none; stroke-width: 2.2; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .hero-grid     { grid-template-columns: 1fr; }
  .hero-img      { aspect-ratio: 16/10; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .feature-item + .feature-item { border: 0; padding-right: 0; }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .hero-title    { font-size: 36px; }
  .cta-card      { grid-template-columns: auto 1fr; padding: 28px 20px; }
  .cta-card > [aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
  .site-header .ext-container { grid-template-columns: 1fr auto; }
  .header-url    { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .hero-title    { font-size: 30px; }
}
