/* ═══════════════════════════════════════════════════════════
   MAALEM — Landing v2 (Premium Enterprise)
   Identité : Vert émeraude + Or marocain + Zellige
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

:root {
  /* Palette officielle Maalem */
  --green: #1B6B3A;
  --green-light: #2D8A4E;
  --green-dark: #124D2B;
  --green-deep: #0C3A1F;
  --gold: #C5973A;
  --gold-light: #E0B55A;
  --gold-soft: rgba(197, 151, 58, 0.15);
  --gold-bright: #F5C76C;
  --ivory: #F5F0E8;
  --ivory-light: #FAF6EF;
  --ivory-dark: #E8E0CC;
  --white: #FFFFFF;
  --text: #1A3A2A;
  --text-light: #4A6A5A;
  --text-soft: #7A8A7E;
  --brown: #3D1F06;
  --brown-light: #7A4A10;

  /* Typo */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', 'Noto Sans Arabic', 'Tahoma', serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 58, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 58, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(26, 58, 42, 0.14);
  --shadow-xl: 0 24px 64px rgba(26, 58, 42, 0.18);

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="ar"] main {
  font-family: var(--font-arabic);
}

/* ─── HEADER ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(197, 151, 58, 0.15);
  transition: all 0.3s;
}

.header.scrolled {
  background: rgba(245, 240, 232, 0.95);
  box-shadow: 0 4px 20px rgba(26, 58, 42, 0.06);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  direction: ltr;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: transform 0.2s;
}

.logo:hover { transform: scale(1.02); }

.logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

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

.nav a.cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(27, 107, 58, 0.25);
}

.nav a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 107, 58, 0.35);
}

.lang-switch {
  display: flex;
  background: var(--ivory-dark);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(197, 151, 58, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ─── HERO PREMIUM ───────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 32px 80px;
  background:
    radial-gradient(ellipse at top right, rgba(197, 151, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27, 107, 58, 0.05) 0%, transparent 50%),
    var(--ivory);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Motif zellige discret en background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(197, 151, 58, 0.03) 60px, rgba(197, 151, 58, 0.03) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(27, 107, 58, 0.03) 60px, rgba(27, 107, 58, 0.03) 61px);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(197, 151, 58, 0.15) 0%, rgba(197, 151, 58, 0.08) 100%);
  border: 1px solid rgba(197, 151, 58, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(27, 107, 58, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero h1 .accent {
  color: var(--green);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gold);
  opacity: 0.3;
  z-index: -1;
  transform: skewX(-15deg);
}

.hero-tagline {
  font-size: 19px;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(27, 107, 58, 0.25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27, 107, 58, 0.35);
}

.btn-primary-icon {
  display: flex;
  align-items: center;
}

.btn-primary-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.btn-primary-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 8px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--green); }

.btn-secondary svg {
  transition: transform 0.2s;
}

.btn-secondary:hover svg {
  transform: translateX(4px);
}

/* Trust indicators */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(197, 151, 58, 0.2);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.trust-icon.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.trust-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.trust-text span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Hero mockup phone */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.phone-mockup {
  position: relative;
  width: 320px;
  height: 660px;
  background: var(--text);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(26, 58, 42, 0.25),
    0 0 0 12px #1a1a1a,
    inset 0 0 0 2px #2a2a2a;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotate(-1deg) scale(1.02);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--green);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ─── PHONE SLIDER ─────────────────────────── */
.slide-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.phone-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ─── DOTS DE NAVIGATION ───────────────────── */
.phone-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 6;
}

.phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--ivory-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.phone-dot:hover {
  background: var(--gold-light);
  transform: scale(1.2);
}

.phone-dot.active {
  background: var(--green);
  width: 28px;
  border-radius: 6px;
}

.phone-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 6px;
  animation: dotProgress 4s linear forwards;
}

.phone-dot.active.paused::after {
  animation-play-state: paused;
}

@keyframes dotProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Floating cards autour du phone */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 5;
  animation: floatCard 4s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.float-card.changing {
  opacity: 0;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.float-card-1 {
  top: 60px;
  left: -40px;
  animation-delay: 0s;
}

.float-card-1 .float-card-icon {
  background: rgba(27, 107, 58, 0.12);
  color: var(--green);
}

.float-card-2 {
  bottom: 90px;
  right: -50px;
  animation-delay: 1.5s;
}

.float-card-2 .float-card-icon {
  background: rgba(197, 151, 58, 0.15);
  color: var(--gold);
}

.float-card-text strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.float-card-text span {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 400;
  margin-top: 1px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── STATS BAND ─────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 50%, var(--green) 100%);
  color: var(--ivory);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}

.stats-band::before,
.stats-band::after {
  content: '';
  position: absolute;
  height: 6px;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 24px,
    transparent 24px,
    transparent 48px
  );
  opacity: 0.7;
}

.stats-band::before { top: 0; }
.stats-band::after { bottom: 0; }

.stats-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(197, 151, 58, 0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── SECTIONS GLOBAL ─────────────────────────────────── */
.section {
  padding: 100px 32px;
  position: relative;
}

.section-container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.6;
}

/* ─── HOW IT WORKS ───────────────────────────────────── */
.how-section {
  background: var(--ivory-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.4;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(197, 151, 58, 0.2);
  transition: all 0.3s;
}

.step-card:hover .step-number {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── FOR CLIENTS / FOR ARTISANS ─────────────────────── */
.audience-section {
  background: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.audience-card {
  border-radius: var(--radius-xl);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.audience-card.client {
  background:
    radial-gradient(ellipse at top right, rgba(197, 151, 58, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--ivory);
}

.audience-card.worker {
  background:
    radial-gradient(ellipse at top right, rgba(197, 151, 58, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--ivory);
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0,
    var(--gold) 16px,
    transparent 16px,
    transparent 32px
  );
  opacity: 0.8;
}

.audience-tag {
  display: inline-block;
  background: rgba(197, 151, 58, 0.2);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.15;
}

.audience-card .lead {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.audience-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.audience-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(197, 151, 58, 0.15);
}

.audience-card li:last-child { border-bottom: none; }

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(197, 151, 58, 0.25);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.audience-card .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.2s;
}

.audience-card .cta-link:hover { gap: 16px; }

/* ─── SECTORS GRID ──────────────────────────────────── */
.sectors-section {
  background: var(--ivory-light);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.sector-pill {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.sector-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sector-emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.sector-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sectors-more {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
}

.sectors-more strong { color: var(--green); }

/* ─── TRUST PILLARS ─────────────────────────────────── */
.trust-section {
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.trust-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--ivory-light);
  border: 1px solid var(--ivory-dark);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.4s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.trust-card:hover::before { width: 100%; }

.trust-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.trust-card-icon.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}

.trust-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── APP SHOWCASE ─────────────────────────────────── */
.showcase-section {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-light) 100%);
  padding: 100px 32px;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-phone {
  text-align: center;
}

.mini-phone {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 20px;
  aspect-ratio: 9/19;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transition: transform 0.4s;
}

.mini-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

.mini-phone:hover {
  transform: translateY(-8px);
}

.mini-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--green);
}

.mini-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.showcase-phone h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.showcase-phone p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ─── FAQ ─────────────────────────────────────────── */
.faq-section {
  background: var(--white);
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ivory-light);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item[open] {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 22px 28px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-item[open] .faq-question { color: var(--green-dark); }

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ivory-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green);
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item[open] .faq-toggle {
  background: var(--green);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 22px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── FINAL CTA ─────────────────────────────────────── */
.final-cta {
  background:
    radial-gradient(ellipse at center, rgba(197, 151, 58, 0.15) 0%, transparent 70%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
  color: var(--ivory);
  padding: 100px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  height: 6px;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    90deg, var(--gold) 0, var(--gold) 24px,
    transparent 24px, transparent 48px
  );
  opacity: 0.7;
}

.final-cta::before { top: 0; }
.final-cta::after { bottom: 0; }

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.final-cta .arabic-greeting {
  display: block;
  font-family: var(--font-arabic);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.final-cta p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 44px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ivory);
  color: var(--green-dark);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  border: 1px solid var(--gold);
  min-width: 220px;
  justify-content: flex-start;
}

.store-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.store-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.store-btn-icon {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icône Apple = couleur noir officiel (sur fond ivoire) */
.store-btn .store-btn-icon svg[viewBox="0 0 384 512"] {
  color: #000;
}

.store-btn-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.3px;
}

.store-btn-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

/* ─── FOOTER ENRICHI ────────────────────────────────── */
.footer {
  background: var(--brown);
  color: rgba(245, 240, 232, 0.7);
  padding: 80px 32px 30px;
  direction: ltr;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .logo-text { color: var(--gold); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(245, 240, 232, 0.6);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(245, 240, 232, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(197, 151, 58, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-item-text strong {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.contact-item-text a,
.contact-item-text span {
  color: rgba(245, 240, 232, 0.85);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.contact-item-text a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(197, 151, 58, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
}

.social-link:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  margin-right: 16px;
}

.footer-bottom a:hover { color: var(--gold-light); }

/* ─── PAGES INTERNES (privacy, contact, etc.) ───────── */
.page-header {
  background:
    radial-gradient(ellipse at top, rgba(197, 151, 58, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--ivory);
  padding: 140px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  height: 6px;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    90deg, var(--gold) 0, var(--gold) 24px,
    transparent 24px, transparent 48px
  );
  opacity: 0.7;
}

.page-header::before { top: 0; }
.page-header::after { bottom: 0; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin-bottom: 12px;
}

.page-header .subtitle {
  font-size: 17px;
  opacity: 0.85;
}

.content-card {
  background: var(--white);
  max-width: 900px;
  margin: -60px auto 80px;
  padding: 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ivory-dark);
}

.content-card h2:first-of-type { margin-top: 0; }

.content-card p {
  margin-bottom: 14px;
  color: var(--text);
}

.content-card ul {
  margin: 0 0 16px 24px;
}

.content-card li {
  margin-bottom: 8px;
  color: var(--text);
}

.content-card a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--green-light);
}

.content-card a:hover { color: var(--green-dark); }

.content-card strong {
  color: var(--green-dark);
  font-weight: 600;
}

.intro-box {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--white) 100%);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

.intro-box p { margin-bottom: 0; }

.last-update {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--ivory-dark);
  font-style: italic;
}

/* Coming soon page */
.coming-soon-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 60px;
}

.coming-soon-content {
  text-align: center;
  max-width: 600px;
}

.coming-soon-content .icon {
  font-size: 80px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.coming-soon-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--green-dark);
  margin-bottom: 16px;
}

.coming-soon-content p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn-back:hover { color: var(--green-dark); }

/* Contact page cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.contact-card {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--white) 100%);
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.contact-card-icon.instagram {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
}

.contact-card-icon.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-card p {
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-container { gap: 48px; }
  .phone-mockup { width: 280px; height: 580px; }
  .audience-grid { gap: 24px; }
  .audience-card { padding: 44px 36px; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 32px; }
  .hero-trust { justify-content: center; }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item:nth-child(odd)::after { display: block; }
  .stat-item:nth-child(2)::after { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid::before { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-container { padding: 14px 20px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 28px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--ivory-dark);
  }
  .menu-toggle { display: block; }

  .hero { padding: 110px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 36px; }
  .hero-tagline { font-size: 17px; }
  .phone-mockup { width: 240px; height: 500px; padding: 10px; }
  .float-card { padding: 10px 14px; font-size: 12px; }
  .float-card-1 { left: -20px; top: 40px; }
  .float-card-2 { right: -20px; bottom: 60px; }

  .stats-container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-number { font-size: 40px; }

  .section { padding: 60px 20px; }
  .audience-card { padding: 36px 24px; min-height: auto; }
  .audience-card h3 { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-emoji { font-size: 24px; }

  .page-header { padding: 110px 20px 80px; }
  .content-card { padding: 32px 24px; margin: -40px 20px 60px; }
  .content-card h2 { font-size: 20px; }

  .final-cta { padding: 60px 20px; }
  .store-btn { min-width: auto; width: 100%; }

  .footer { padding: 60px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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