/* ============================================
   Aurel Academy — /pflege/inscription/
   Light palette (matches home) + Inter + Playfair italic orange
   ============================================ */

:root {
  --bg-primary: #FFFFFF;
  --bg-section: #F5F5F2;
  --bg-card: #FFFFFF;
  --bg-card-soft: #FAFAF7;

  --brand-orange: #F97316;
  --brand-orange-dark: #EA580C;
  --brand-orange-soft: #FFEDD5;
  --brand-orange-glow: rgba(249, 115, 22, 0.28);

  --brand-green: #10B981;
  --brand-green-dark: #059669;
  --brand-green-soft: #D1FAE5;
  --brand-green-glow: rgba(16, 185, 129, 0.25);

  --brand-red: #DC2626;
  --brand-red-soft: #FEE2E2;

  --whatsapp: #25D366;

  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  --border: #E5E7EB;
  --border-hover: #D1D5DB;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) { :root { --header-h: 60px; } }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Kill horizontal scroll permanently */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', 'Noto Sans Arabic', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* RTL — Arabic typography */
html[lang="ar"] body { font-family: 'Noto Sans Arabic', 'Inter', -apple-system, sans-serif; line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; line-height: 1.25; }
html[lang="ar"] .h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
html[lang="ar"] .h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
html[lang="ar"] .italic-accent {
  font-family: 'Reem Kufi', 'Noto Sans Arabic', sans-serif;
  font-style: normal;
  font-weight: 700;
  color: var(--brand-orange);
}

/* ambient blush — same convention as home */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(249,115,22,0.06), rgba(249,115,22,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  bottom: -250px;
  left: -250px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(16,185,129,0.05), rgba(16,185,129,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

img, svg, canvas, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h3, h4 { font-weight: 700; }

.h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }

/* the only place Playfair Display is used */
.italic-accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--brand-orange);
}
em, i { font-style: italic; color: var(--brand-orange); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: var(--container-narrow); }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-muted { background: var(--bg-section); }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.12rem);
  line-height: 1.6;
  margin-top: 16px;
}

.center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-orange-glow);
}
.btn-primary:hover { background: var(--brand-orange-dark); box-shadow: 0 12px 32px var(--brand-orange-glow); }

.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.btn-outline:hover { background: var(--brand-orange); color: #fff; }

.btn-green {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-green-glow);
}
.btn-green:hover { background: var(--brand-green-dark); }

.btn-outline-green {
  background: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}
.btn-outline-green:hover { background: var(--brand-green); color: #fff; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #1DA851; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-section); border-color: var(--text-primary); }

.btn-sm { padding: 9px 18px; min-height: 38px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { padding: 17px 30px; min-height: 54px; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s var(--ease);
}
.header.is-scrolled .logo { transform: scale(0.96); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 16px var(--brand-orange-glow);
}
.logo-text {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav {
  display: none;
  gap: 4px;
  align-items: center;
}
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--brand-orange); background: var(--bg-section); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
  letter-spacing: 0.02em;
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
}
.lang-btn.is-active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover:not(.is-active) { color: var(--text-primary); }
@media (max-width: 480px) { .lang-toggle .lang-btn { padding: 5px 9px; } }

/* ---------- Burger menu ---------- */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 40px; height: 40px;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

.mobile-menu {
  position: fixed;
  top: var(--header-h); right: 0;
  width: min(320px, 85vw);
  height: calc(100vh - var(--header-h));
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  z-index: 99;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.mobile-menu nav a:hover { background: var(--bg-section); }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 70%, #FFFFFF 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-orange-glow), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 22px auto 28px;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.hero-stats strong { color: var(--brand-orange); font-weight: 700; }
.hero-stats .sep { color: var(--text-muted); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.hero-proof strong { color: var(--text-primary); }
.stars { color: #FBBF24; letter-spacing: 2px; }

/* ---------- Pain cards ---------- */
.pain-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }

.pain-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pain-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--brand-red-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.pain-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.pain-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.pain-card em {
  color: var(--brand-orange);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
}

/* ---------- Compare (avant/après & pour qui / pas pour qui) ---------- */
.compare {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare-col {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.compare-before { background: #FFF1F1; border-color: rgba(220, 38, 38, 0.3); }
.compare-after  { background: #ECFDF5; border-color: rgba(16, 185, 129, 0.3); }

.compare-head {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.compare-before .compare-head { color: var(--brand-red); }
.compare-after  .compare-head { color: var(--brand-green-dark); }

.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-col li {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* ---------- Modules accordion ---------- */
.modules {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}
.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.module[open] {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
}
.module summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 54px 18px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.15s;
}
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: var(--bg-section); }
.module summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.module[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--brand-orange);
  color: #fff;
}

.module-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 40px;
}
.module-title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.module-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) { .module-meta { display: none; } }

.module-lessons {
  padding: 4px 24px 22px 74px;
  display: grid;
  gap: 8px;
}
.module-lessons li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}
.module-lessons li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}

.bonus-box {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, #FFF7ED, #FEFCE8);
  border: 1px dashed var(--brand-orange);
  border-radius: var(--radius-md);
}
.bonus-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--brand-orange);
}
.bonus-list { display: grid; gap: 8px; }
.bonus-list li { color: var(--text-primary); font-size: 0.95rem; }

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 768px) { .tiers { grid-template-columns: 1fr 1fr; } }

.tier {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tier-autonome { border-top: 4px solid var(--brand-green); }
.tier-autonome:hover { border-color: var(--brand-green); border-top-color: var(--brand-green); }

.tier-accompagne {
  border: 2px solid var(--brand-orange);
  background: linear-gradient(180deg, #FFF7ED, #FFFFFF 60%);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.06), 0 16px 48px rgba(249, 115, 22, 0.18);
}
.tier-accompagne:hover {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10), 0 24px 60px rgba(249, 115, 22, 0.28);
}

.tier-ribbon {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--brand-orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px var(--brand-orange-glow);
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid;
}
.tier-pill-teal {
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
  border-color: var(--brand-green);
}
.tier-pill-gold {
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
  border-color: var(--brand-orange);
}
.tier-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tier-price {
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.tier-price strong { font-weight: 800; }
.tier-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 6px;
}

.tier-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tier-sub-strong { color: var(--brand-orange); font-weight: 600; }

.tier-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 8px;
}
.tier-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-green);
  font-weight: 700;
}
.tier-accompagne .tier-list li::before { color: var(--brand-orange); }
.tier-list li strong { color: var(--text-primary); }

.tier-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-top: 4px;
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 768px) { .story { grid-template-columns: 280px 1fr; gap: 48px; } }

.story-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #FFF7ED, var(--bg-section));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.story-photo::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, var(--brand-orange-glow), transparent 60%);
  opacity: 0.5;
}
.story-photo-inner {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 4rem;
  box-shadow: 0 16px 48px var(--brand-orange-glow);
}

.story-text h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.story-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.story-stats li {
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.story-stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: -0.02em;
}
.story-stats span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---------- Carousel / Testimonials ---------- */
.carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  min-height: 380px;
}
@media (max-width: 640px) { .carousel-track { min-height: 460px; } }

.testimonial {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.testimonial.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 90px;
  line-height: 1;
  color: var(--brand-orange);
  opacity: 0.12;
  pointer-events: none;
}
.testimonial-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
}
.testimonial .stars { font-size: 1rem; margin-bottom: 14px; display: inline-block; }
.testimonial blockquote {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 560px;
  margin: 12px auto;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 14px;
}
.testimonial cite strong { color: var(--text-primary); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.carousel-dot.is-active {
  background: var(--brand-orange);
  transform: scale(1.2);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--text-primary);
  transition: background-color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-section); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand-orange);
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--brand-orange);
  color: #fff;
}
.faq-body {
  padding: 0 20px 22px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-body strong { color: var(--text-primary); }
.faq-body a { color: var(--brand-orange); text-decoration: underline; }

/* ---------- Booking form ---------- */
.booking-form {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}

.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label-block {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.req { color: var(--brand-orange); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-hover); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.field textarea { resize: vertical; min-height: 96px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { color: var(--text-primary); }

.field-error {
  display: none;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}
.field-error.is-visible { display: block; }

/* Tier radio cards in the form */
.tier-radio-group {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 6px;
}
@media (min-width: 640px) { .tier-radio-group { grid-template-columns: 1fr 1fr; } }

.tier-radio { position: relative; display: block; cursor: pointer; }
.tier-radio input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.tier-radio-body {
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.tier-radio:hover .tier-radio-body { border-color: var(--border-hover); }
.tier-radio input:checked + .tier-radio-body {
  border-color: var(--brand-orange);
  background: var(--brand-orange-soft);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.tier-radio input:focus-visible + .tier-radio-body {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}
.tier-radio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.tier-radio-head strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.tier-radio-head span {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.95rem;
}
.tier-radio-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-radio-eyebrow {
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.tier-radio-price {
  color: var(--brand-orange);
  font-weight: 800;
  font-size: 1rem;
}

/* ── Premium luxury treatment ── */
.tier-radio-premium .tier-radio-body {
  background: linear-gradient(155deg, #FFFFFF 0%, #FFF7ED 60%, #FFEFD5 100%);
  border-color: var(--brand-orange);
  border-width: 2px;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.06),
    0 18px 48px rgba(249, 115, 22, 0.18);
}
.tier-radio-premium input:checked + .tier-radio-body {
  background: linear-gradient(155deg, #FFF7ED 0%, var(--brand-orange-soft) 100%);
  border-color: var(--brand-orange);
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.18),
    0 22px 56px rgba(249, 115, 22, 0.28);
}
.tier-radio-premium .tier-radio-head strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.tier-radio-premium .tier-radio-price {
  font-size: 1.05rem;
}
.tier-radio-ribbon {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--brand-orange);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-text, .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.btn-loading { display: none; }
.btn.is-loading .btn-text { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  list-style: none;
  margin: 0;
}

.booking-success,
.booking-error {
  max-width: 680px;
  margin: 24px auto 0;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--brand-green);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.5s var(--ease);
}
.booking-error {
  border-color: var(--brand-red);
  background: #FFF1F1;
}
.booking-success-icon { font-size: 3rem; margin-bottom: 10px; }
.booking-success h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--brand-green-dark); }
.booking-success p { color: var(--text-secondary); margin-bottom: 18px; }
.booking-error p { color: var(--text-primary); margin-bottom: 14px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-primary);
  color: #D1D5DB;
  padding: 64px 0 0;
}
.footer a { color: #D1D5DB; transition: color 0.15s; }
.footer a:hover { color: var(--brand-orange); }
.footer h4, .footer .logo-text { color: #fff; }
.footer .italic-accent { color: var(--brand-orange); }

.footer-inner {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-tag {
  margin-top: 14px;
  color: #9CA3AF;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 8px; font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #9CA3AF;
  text-align: center;
}
.footer-bottom .footer-legal { display: inline-block; }
.footer-bottom .footer-legal a {
  color: #9CA3AF;
  text-decoration: none;
  margin: 0 4px;
}
.footer-bottom .footer-legal a:hover { color: #F4B860; }
@media (max-width: 600px) {
  .footer-bottom .footer-legal { display: block; margin-top: 6px; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  animation: waEntry 0.7s var(--ease) both, waPulse 3s ease-in-out 1s infinite;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes waEntry {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════
   DUAL LEAD FORMS (side by side)
   ═══════════════════════════════════════════════ */
.dual-forms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .dual-forms { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
}

.booking-form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.25s var(--ease);
}

/* Premium: gold gradient + ribbon + halo */
.booking-form-card--premium {
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF7ED 55%, #FFEFD5 100%);
  border: 2px solid var(--brand-orange);
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.08),
    0 22px 60px rgba(249, 115, 22, 0.18);
  padding-top: clamp(36px, 4vw, 48px);
}
.booking-form-card--premium:hover {
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.14),
    0 28px 72px rgba(249, 115, 22, 0.28);
}
/* Mobile (<768px): Standard first, Premium second (less intimidating start) */
.booking-form-card--standard { order: 1; }
.booking-form-card--premium  { order: 2; }
/* Desktop (≥768px): Premium first (anchor highlight) */
@media (min-width: 768px) {
  .booking-form-card--premium  { order: 1; }
  .booking-form-card--standard { order: 2; }
}

/* Big TARIFS section — same logic */
.tier-autonome   { order: 1; }
.tier-accompagne { order: 2; }
@media (min-width: 768px) {
  .tier-accompagne { order: 1; }
  .tier-autonome   { order: 2; }
}
.tiers, .dual-forms { display: grid; }

.bf-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 22px var(--brand-orange-glow);
  white-space: nowrap;
}

.bf-head {
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.booking-form-card--premium .bf-head { border-bottom-color: rgba(249,115,22,0.25); }

.bf-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.booking-form-card--premium .bf-title { font-size: clamp(1.55rem, 2.2vw, 1.9rem); }

.bf-price {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-orange);
  line-height: 1;
  margin-top: 4px;
  /* Force LTR rendering even in RTL pages so "12 900 DA" stays in correct order */
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

.bf-exclusive {
  display: inline-block;
  margin: 6px auto 4px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}

.bf-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 4px 0 0;
}

.bf-feats {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  text-align: left;
  list-style: none;
  padding: 0;
}
[dir="rtl"] .bf-feats { text-align: right; }
.bf-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}
.bf-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-orange);
  font-weight: 800;
}
[dir="rtl"] .bf-feats li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .bf-feats li::before { left: auto; right: 0; }

.bf-body {
  display: grid;
  gap: 14px;
}
.bf-body .field { gap: 5px; }
.bf-body .field label { font-size: 0.83rem; }
.bf-body .field input,
.bf-body .field select,
.bf-body .field textarea {
  padding: 12px 14px;
  font-size: 0.96rem;
}
.bf-body .field textarea { min-height: 64px; }

.bf-submit { margin-top: 6px; }
.booking-form-card--premium .bf-submit {
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

.trust-badges-shared {
  margin: 28px auto 0;
  max-width: 720px;
}

/* Disable the original .tier-radio-group rules indirectly by hiding it (still in CSS for legacy) */

/* ---------- Reveal baseline (GSAP targets) ---------- */
.fade-up { opacity: 0; transform: translateY(40px); will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- Hero entry animation (CSS, not GSAP) ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .badge,
.hero .h1,
.hero .hero-sub,
.hero .hero-stats,
.hero .hero-ctas,
.hero .hero-proof {
  opacity: 0;
  animation: heroFadeUp 0.7s var(--ease) forwards;
}
.hero .badge      { animation-delay: 0.05s; }
.hero .h1         { animation-delay: 0.20s; }
.hero .hero-sub   { animation-delay: 0.40s; }
.hero .hero-stats { animation-delay: 0.60s; }
.hero .hero-ctas  { animation-delay: 0.80s; }
.hero .hero-proof { animation-delay: 1.00s; }
@media (prefers-reduced-motion: reduce) {
  .hero .badge, .hero .h1, .hero .hero-sub,
  .hero .hero-stats, .hero .hero-ctas, .hero .hero-proof {
    animation: none;
    opacity: 1;
  }
}

/* MOBILE PERF: disable animations entirely on mobile (<768px) */
@media (max-width: 767px) {
  /* Hero entry: show content instantly, no CSS keyframes */
  .hero .badge, .hero .h1, .hero .hero-sub,
  .hero .hero-stats, .hero .hero-ctas, .hero .hero-proof {
    animation: none !important;
    opacity: 1 !important;
  }
  /* Disable .fade-up GSAP scroll-trigger reveals on mobile */
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Reduce shadows / animations on hover (no hover on mobile anyway) */
  .booking-form-card, .tier, .pain-card, .module {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════
   RTL OVERRIDES (Arabic)
   ═══════════════════════════════════════════════ */
[dir="rtl"] .nav { flex-direction: row-reverse; }

[dir="rtl"] .mobile-menu {
  right: auto; left: 0;
  border-left: 0; border-right: 1px solid var(--border);
  box-shadow: 10px 0 40px rgba(0,0,0,0.08);
  transform: translateX(-100%);
}
[dir="rtl"] .mobile-menu.is-open { transform: translateX(0); }

[dir="rtl"] .module summary { padding: 18px 18px 18px 54px; }
[dir="rtl"] .module summary::after { right: auto; left: 18px; }

[dir="rtl"] .faq-item summary { padding: 18px 20px 18px 54px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 20px; }

[dir="rtl"] .module-lessons { padding: 4px 74px 22px 24px; }
[dir="rtl"] .module-lessons li { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .module-lessons li::before { left: auto; right: 0; }

[dir="rtl"] .tier-list li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .tier-list li::before { left: auto; right: 0; }

[dir="rtl"] .tier-ribbon { right: auto; left: 22px; }
[dir="rtl"] .tier-radio-ribbon { right: auto; left: 12px; }

[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-right: 16px; padding-left: 44px;
}

[dir="rtl"] .req { margin-left: 0; margin-right: 2px; }

[dir="rtl"] .compare-col,
[dir="rtl"] .booking-form,
[dir="rtl"] .pain-card { text-align: right; }

[dir="rtl"] .field input,
[dir="rtl"] .field textarea,
[dir="rtl"] .field select { text-align: right; }

[dir="rtl"] .compare-col li::marker { unicode-bidi: isolate; }

/* Arrows direction: → in LTR becomes ← in RTL via JS-injected text or rotate */
[dir="rtl"] .arrow-flip { display: inline-block; transform: scaleX(-1); }

/* Story block stays photo-left text-right in LTR; flip on RTL */
[dir="rtl"] .story-photo { order: 2; }
[dir="rtl"] .story-text  { order: 1; }

/* Hero badge / pills naturally render correctly RTL */
[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] .trust-badges { direction: rtl; }

[dir="rtl"] .whatsapp-float { right: auto; left: 20px; }

/* ═════════════════════════════════════════════════════════════════════
   POURQUOI AUREL ACADEMY — features grid (Sprint 2 cleanup)
   ═════════════════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 24px; }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #FFFFFF;
  border: 1px solid rgba(20, 23, 31, 0.06);
  border-radius: 16px;
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 2px 12px rgba(20, 23, 31, 0.04);
}

.features { gap: 20px; }
.feature { text-align: left; }

.feature__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 48px;
}
.feature__icon--orange { background: #FFEDD5; color: var(--brand-orange);     box-shadow: 0 6px 16px rgba(249,115,22,0.15); }
.feature__icon--green  { background: #D1FAE5; color: var(--brand-green-dark); box-shadow: 0 6px 16px rgba(16,185,129,0.15); }
.feature__icon--blue   { background: #DBEAFE; color: #1D4ED8;                 box-shadow: 0 6px 16px rgba(29,78,216,0.12); }
.feature__icon--red    { background: #FEE2E2; color: var(--brand-red);        box-shadow: 0 6px 16px rgba(220,38,38,0.12); }
.feature__icon--purple { background: #EDE9FE; color: #7C3AED;                 box-shadow: 0 6px 16px rgba(124,58,237,0.12); }
.feature__icon--teal   { background: #CCFBF1; color: #0D9488;                 box-shadow: 0 6px 16px rgba(13,148,136,0.12); }
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.08); }

.feature h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.feature p { font-size: 0.95rem; line-height: 1.55; color: var(--text-muted, #6B7280); }

/* ═════════════════════════════════════════════════════════════════════
   HEADER MOBILE FIX — Réserver ma place coupé (Sprint 2 item 3)
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .header .header-actions .btn-primary,
  .header [data-i18n="cta.reserve"] {
    display: none !important;
  }
  .header .lang { transform: scale(0.92); transform-origin: right center; }
}

.mobile-sticky-cta { display: none; }
@media (max-width: 767px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 95;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(20, 23, 31, 0.08);
    box-shadow: 0 -4px 16px rgba(20, 23, 31, 0.06);
  }
  .mobile-sticky-cta .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* ═════════════════════════════════════════════════════════════════════
   CTA WHATSAPP INLINE — fix mobile tronqué (Sprint 2 item 4)
   ═════════════════════════════════════════════════════════════════════ */
.btn-whatsapp { white-space: normal; }
@media (max-width: 767px) {
  .btn-whatsapp {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.98rem;
    line-height: 1.3;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   WHATSAPP FLOAT — masqué quand CTA inline visible (Sprint 2 item 5)
   ═════════════════════════════════════════════════════════════════════ */
.whatsapp-float.is-near-cta {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 767px) {
  .whatsapp-float {
    width: 52px; height: 52px;
    bottom: 88px;
  }
}
