/* ============================================================
   ACCUEIL REDESIGN — css/accueil-redesign.css — v4 CORRIGÉ
   Corrections : responsive, overflow, clamp(), dark mode
   ============================================================ */

/* ── FOND ANIMÉ ─────────────────────────────────────────────── */
.bg-glow-orb {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  animation: glowDrift var(--dur, 18s) ease-in-out infinite var(--dir, normal);
}
.bg-glow-orb-1 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(45,95,79,0.06), transparent 70%);
  --dur: 18s;
}
.bg-glow-orb-2 {
  width: clamp(180px, 35vw, 420px);
  height: clamp(180px, 35vw, 420px);
  bottom: 5%; left: -120px;
  background: radial-gradient(circle, rgba(201,166,97,0.07), transparent 70%);
  --dur: 24s; --dir: reverse;
}
@keyframes glowDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(25px,-18px) scale(1.06); }
  66%     { transform: translate(-18px,14px) scale(0.96); }
}

/* ── ANIMATIONS D'ENTRÉE ────────────────────────────────────── */
.anim-up {
  opacity: 0;
  transform: translateY(26px);
  animation: animUp 0.72s cubic-bezier(0.4,0,0.2,1) forwards;
}
.anim-left {
  opacity: 0;
  transform: translateX(-26px);
  animation: animLeft 0.72s cubic-bezier(0.4,0,0.2,1) forwards;
}
.anim-right {
  opacity: 0;
  transform: translateX(26px);
  animation: animRight 0.72s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes animUp   { to { opacity:1; transform:none; } }
@keyframes animLeft  { to { opacity:1; transform:none; } }
@keyframes animRight { to { opacity:1; transform:none; } }

.ad1 { animation-delay: 0.05s; }
.ad2 { animation-delay: 0.14s; }
.ad3 { animation-delay: 0.23s; }
.ad4 { animation-delay: 0.32s; }
.ad5 { animation-delay: 0.41s; }
.ad6 { animation-delay: 0.50s; }
.ad7 { animation-delay: 0.59s; }

/* ── SECTION HEADER UNIVERSEL ───────────────────────────────── */
.section-head-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.shn-label {
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light, #8896A7);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.shn-star { color: var(--accent, #C9A661); font-size: 0.85rem; }
.shn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border, #E4DDD0), transparent);
  min-width: 20px; /* Empêche la ligne de disparaître */
}

/* ── HÉRO GRID ──────────────────────────────────────────────── */
.hero-new-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  align-items: start;
  position: relative; z-index: 1;
}

/* Welcome card */
.hero-welcome-new {
  background: var(--surface, #fff);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--border, #E4DDD0);
  box-shadow: 0 8px 32px rgba(45,95,79,0.11);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
  min-width: 0; /* Fix overflow dans grid */
}
.hero-welcome-new:hover {
  box-shadow: 0 20px 60px rgba(45,95,79,0.16);
  transform: translateY(-2px);
}
/* Orbes déco internes */
.hwn-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
  animation: glowDrift 10s ease-in-out infinite;
}
.hwn-orb-1 {
  width: 260px; height: 260px;
  top: -90px; right: -70px;
  background: radial-gradient(circle, rgba(201,166,97,0.13), transparent 70%);
}
.hwn-orb-2 {
  width: 160px; height: 160px;
  bottom: -55px; left: 15%;
  background: radial-gradient(circle, rgba(45,95,79,0.09), transparent 70%);
  animation-duration: 14s; animation-direction: reverse;
}

.hwn-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hwn-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent, #C9A661);
  animation: hwDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hwDotPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,166,97,0.5); }
  50%     { transform: scale(1.35); box-shadow: 0 0 0 9px rgba(201,166,97,0); }
}
.hwn-label {
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent, #C9A661);
}

.hero-basmala-new {
  font-family: 'Amiri', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--primary, #2D5F4F);
  direction: rtl;
  margin-bottom: 0.7rem;
  line-height: 1.5;
  position: relative; z-index: 1;
}

.hero-title-new {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
  overflow-wrap: break-word;
}
.hero-title-new .htn-accent { color: var(--primary, #2D5F4F); }

.hero-desc-new {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-light, #8896A7);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
  position: relative; z-index: 1;
}

.hero-actions-new {
  display: flex; gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn-hero-primary {
  padding: 0.9rem 1.9rem;
  background: linear-gradient(135deg, var(--primary, #2D5F4F), var(--primary-light, #4A8B73));
  color: white; border: none; border-radius: 12px;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 6px 22px rgba(45,95,79,0.28);
  position: relative; overflow: hidden;
  white-space: nowrap;
  min-height: 44px; /* Touch target minimum */
}
.btn-hero-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(45,95,79,0.38); }
.btn-hero-primary:hover::after { opacity: 1; }
.btn-hero-primary:active { transform: translateY(-1px); }

.btn-hero-secondary {
  padding: 0.9rem 1.9rem;
  background: transparent;
  color: var(--primary, #2D5F4F);
  border: 2px solid var(--border, #E4DDD0);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  cursor: pointer; transition: all 0.3s;
  white-space: nowrap;
  min-height: 44px;
}
.btn-hero-secondary:hover {
  border-color: var(--primary, #2D5F4F);
  background: rgba(45,95,79,0.04);
  transform: translateY(-2px);
}

/* ── PRAYER WIDGET ──────────────────────────────────────────── */
.prayer-widget-new {
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; z-index: 1;
  min-width: 0; /* Fix overflow dans grid */
}

.npc-card {
  background: linear-gradient(145deg, #1A3D33 0%, #2D5F4F 60%, #3A7A63 100%);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: white;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 50px rgba(27,61,51,0.35);
  transition: transform 0.4s, box-shadow 0.4s;
}
.npc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(27,61,51,0.45);
}
/* Cercles déco tournants */
.npc-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
}
.npc-ring-1 { width:180px;height:180px; top:-50px;right:-50px; animation: ringRotate 20s linear infinite; }
.npc-ring-2 { width:120px;height:120px; top:-20px;right:-20px; animation: ringRotate 14s linear infinite reverse; }
.npc-ring-3 { width: 80px;height: 80px; bottom:-20px;left:-20px; animation: ringRotate 10s linear infinite; }
@keyframes ringRotate { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.npc-lbl {
  font-size: clamp(0.6rem, 1.5vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 0.4rem;
  position: relative; z-index:1;
}
.npc-name-fr {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700; margin-bottom: 0.15rem;
  position: relative; z-index:1;
}
.npc-name-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  opacity: 0.62; direction: rtl; margin-bottom: 0.55rem;
  position: relative; z-index:1;
}
.npc-time-display {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  color: #E0C07A;
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
  position: relative; z-index:1;
}
.npc-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.82rem;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px; font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  position: relative; z-index:1;
}
.npc-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: liveRing 1.5s ease-in-out infinite;
}
@keyframes liveRing {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Mini prières */
.prayers-mini-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}
.pm-new {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #E4DDD0);
  border-radius: 11px;
  padding: 0.65rem 0.3rem;
  text-align: center; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pm-new:hover { transform: translateY(-4px); border-color: var(--primary,#2D5F4F); box-shadow: 0 4px 14px rgba(45,95,79,0.1); }
.pm-new.pm-active {
  background: #FDF6E3;
  border-color: var(--accent,#C9A661);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201,166,97,0.2);
}
.pm-new-emoji { font-size: 1rem; display: block; margin-bottom: 0.25rem; }
.pm-new-name  { font-size: clamp(0.5rem, 1.2vw, 0.6rem); color: var(--text-light,#8896A7); font-weight: 500; margin-bottom: 0.15rem; }
.pm-new-time  { font-size: clamp(0.62rem, 1.5vw, 0.7rem); font-weight: 700; color: var(--text,#1A1A2E); }
.pm-new.pm-active .pm-new-time { color: var(--primary,#2D5F4F); }

/* ── VERSET DU JOUR ─────────────────────────────────────────── */
.verse-new-section { margin-bottom: 2.5rem; position: relative; z-index:1; }

.verse-new-card {
  background: var(--surface, #fff);
  border-radius: 24px;
  border: 1px solid var(--border, #E4DDD0);
  box-shadow: 0 8px 32px rgba(45,95,79,0.11);
  overflow: hidden;
  transition: box-shadow 0.4s;
}
.verse-new-card:hover { box-shadow: 0 20px 60px rgba(45,95,79,0.16); }

/* Barre top gradient animée */
.vnc-topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary,#2D5F4F), var(--accent,#C9A661), var(--primary-light,#4A8B73), var(--accent,#C9A661));
  background-size: 300% 100%;
  animation: topbarShift 6s ease infinite;
}
@keyframes topbarShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Barre de progression */
.vnc-progress {
  height: 3px;
  background: rgba(201,166,97,0.12);
}
.vnc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary,#2D5F4F), var(--accent,#C9A661));
  border-radius: 0 2px 2px 0;
  transition: width 0.15s linear;
}

/* Corps 3 colonnes */
.vnc-body {
  display: grid;
  grid-template-columns: 210px 1fr 240px;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
}

/* Gauche */
.vnc-left { display: flex; flex-direction: column; gap: 1.1rem; }
.vnc-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.36rem 0.85rem;
  background: #FDF6E3;
  border: 1.5px solid rgba(201,166,97,0.28);
  border-radius: 50px;
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--primary,#2D5F4F); width: fit-content;
}
.vnc-badge-star {
  color: var(--accent,#C9A661); display: inline-block;
  animation: starSpin 6s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }

.vnc-surah { font-size: clamp(0.88rem, 2vw, 0.98rem); font-weight: 700; color: var(--primary,#2D5F4F); }
.vnc-ref   { font-size: clamp(0.72rem, 1.5vw, 0.8rem); color: var(--text-light,#8896A7); margin-top: 0.12rem; }

.vnc-btns { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.vnc-btn {
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--border,#E4DDD0);
  background: #F3F0EA;
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  font-weight: 600;
  color: var(--text-mid,#4A5568); cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 0.3rem;
  min-height: 36px;
}
.vnc-btn:hover { border-color: var(--primary,#2D5F4F); color: var(--primary,#2D5F4F); background: rgba(45,95,79,0.04); transform: translateY(-2px); }
.vnc-btn.listening { border-color: var(--accent,#C9A661); color: var(--accent,#C9A661); background: #FDF6E3; }

/* Centre — arabe */
.vnc-center {
  text-align: center;
  padding: 1.25rem 1.5rem;
  position: relative;
}
.vnc-center::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,166,97,0.07), rgba(45,95,79,0.04));
  border: 1px solid rgba(201,166,97,0.13);
  animation: haloPulse 4s ease-in-out infinite;
}
@keyframes haloPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.015); }
}
.vnc-ornament {
  font-size: 1.2rem; opacity: 0.28;
  display: block; line-height: 1;
  position: relative; z-index: 1;
}
.vnc-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--primary,#2D5F4F);
  direction: rtl;
  line-height: 2;
  padding: 0.4rem 0;
  position: relative; z-index: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.vnc-arabic.va-out {
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
}
.vnc-arabic.va-in {
  animation: vaEnter 0.55s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes vaEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* Droite */
.vnc-right { display: flex; flex-direction: column; gap: 0.8rem; }
.vnc-translit {
  font-size: clamp(0.78rem, 1.8vw, 0.86rem);
  color: var(--text-light,#8896A7);
  font-style: italic; line-height: 1.6;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid var(--border,#E4DDD0);
  transition: opacity 0.3s;
}
.vnc-translation {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--text,#1A1A2E); line-height: 1.75;
  transition: opacity 0.3s;
}
.vnc-translation em { font-style: normal; color: var(--primary,#2D5F4F); font-weight: 600; }
.vnc-tafsir {
  font-size: clamp(0.76rem, 1.8vw, 0.84rem);
  color: var(--text-mid,#4A5568); line-height: 1.65;
  padding: 0.65rem 0.95rem;
  background: #F3F0EA;
  border-left: 3px solid var(--accent,#C9A661);
  border-radius: 0 8px 8px 0;
  transition: opacity 0.3s;
}
.vnc-text-fade { opacity: 0.15; }

/* ── ACCÈS RAPIDE ───────────────────────────────────────────── */
.quick-access-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}
.qan-card {
  background: var(--surface,#fff);
  border: 1px solid var(--border,#E4DDD0);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1.2rem);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 12px rgba(45,95,79,0.07);
  position: relative; overflow: hidden;
  min-width: 0;
}
/* Shimmer hover */
.qan-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.qan-card:hover::before { left: 155%; }
.qan-card:hover {
  transform: translateY(-7px);
  border-color: rgba(45,95,79,0.22);
  box-shadow: 0 12px 36px rgba(45,95,79,0.13);
}
.qan-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.9rem; }
.qan-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  flex-shrink: 0;
}
.qan-card:hover .qan-icon { transform: scale(1.2) rotate(-6deg); }
.qan-icon-coran  { background: rgba(45,95,79,0.09); }
.qan-icon-names  { background: rgba(201,166,97,0.12); }
.qan-icon-dhikr  { background: rgba(74,139,115,0.1); }
.qan-icon-quiz   { background: rgba(45,27,105,0.07); }
.qan-arrow { font-size: 0.92rem; color: var(--text-light,#8896A7); transition: all 0.3s; }
.qan-card:hover .qan-arrow { transform: translate(3px,-3px); color: var(--primary,#2D5F4F); }
.qan-title {
  font-size: clamp(0.82rem, 2vw, 0.96rem);
  font-weight: 700; color: var(--text,#1A1A2E);
  margin-bottom: 0.22rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qan-sub   { font-size: clamp(0.68rem, 1.5vw, 0.75rem); color: var(--text-light,#8896A7); }
.qan-badge {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.17rem 0.58rem;
  background: #FDF6E3;
  border: 1px solid rgba(201,166,97,0.28);
  border-radius: 50px;
  font-size: clamp(0.58rem, 1.2vw, 0.65rem);
  font-weight: 700; color: var(--primary,#2D5F4F);
}

/* ── ALPHABET ARABE COMPACT ─────────────────────────────────── */
.arabic-compact-new {
  background: var(--surface,#fff);
  border: 1px solid var(--border,#E4DDD0);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 2px 12px rgba(45,95,79,0.07);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  position: relative; overflow: hidden;
  transition: box-shadow 0.4s;
  margin-bottom: 2.5rem;
  z-index: 1;
}
.arabic-compact-new:hover { box-shadow: 0 8px 32px rgba(45,95,79,0.11); }
.arabic-compact-new::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,95,79,0.025), rgba(201,166,97,0.03), transparent);
  pointer-events: none;
}
.acn-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.78rem;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white; border-radius: 50px;
  font-size: clamp(0.62rem, 1.5vw, 0.69rem);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(16,185,129,0.28);
  width: fit-content;
}
.acn-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: hwDotPulse 1.5s ease-in-out infinite;
}
.acn-title {
  font-size: clamp(1.1rem, 2.5vw, 1.32rem);
  font-weight: 800; color: var(--text,#1A1A2E);
  margin-bottom: 0.4rem; letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.acn-sub   { font-size: clamp(0.78rem, 2vw, 0.87rem); color: var(--text-mid,#4A5568); margin-bottom: 1rem; line-height: 1.6; }
.acn-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.acn-chip {
  display: inline-flex; align-items: center; gap: 0.28rem;
  padding: 0.28rem 0.75rem;
  background: #F3F0EA; border: 1px solid var(--border,#E4DDD0);
  border-radius: 50px;
  font-size: clamp(0.66rem, 1.5vw, 0.74rem);
  font-weight: 600;
  color: var(--text-mid,#4A5568); transition: all 0.3s;
}
.acn-chip:hover { border-color: var(--primary,#2D5F4F); color: var(--primary,#2D5F4F); }
.acn-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primary,#2D5F4F), var(--primary-light,#4A8B73));
  color: white; border: none; border-radius: 11px;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  cursor: pointer; transition: all 0.35s;
  box-shadow: 0 5px 18px rgba(45,95,79,0.25);
  min-height: 44px;
  white-space: nowrap;
}
.acn-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(45,95,79,0.35); }
.acn-btn:hover .acn-arr { transform: translateX(5px); }
.acn-arr { transition: transform 0.3s; }

/* Lettres arabes — overflow caché sur petit écran */
.acn-letters {
  display: flex; gap: 0.85rem;
  overflow: hidden; /* Empêche le débordement */
  flex-shrink: 0;
}
.acn-letter {
  background: #F3F0EA; border: 1.5px solid var(--border,#E4DDD0);
  border-radius: 14px;
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(0.6rem, 1.5vw, 0.9rem);
  text-align: center; min-width: 60px;
  transition: all 0.45s cubic-bezier(0.68,-0.55,0.265,1.55); cursor: default;
}
.acn-letter:hover {
  transform: translateY(-10px) scale(1.1);
  border-color: var(--accent,#C9A661);
  box-shadow: 0 14px 30px rgba(201,166,97,0.22);
  background: #FDF6E3;
}
.acn-letter-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary,#2D5F4F); font-weight: 700;
  line-height: 1.2; margin-bottom: 0.3rem;
}
.acn-letter-nm { font-size: clamp(0.58rem, 1.2vw, 0.67rem); font-weight: 600; color: var(--text-light,#8896A7); }

/* ── DARK MODE COMPAT ───────────────────────────────────────── */
[data-theme="dark"] .hero-welcome-new,
[data-theme="dark"] .verse-new-card,
[data-theme="dark"] .qan-card,
[data-theme="dark"] .arabic-compact-new {
  background: var(--surface);
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .pm-new {
  background: var(--surface);
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .vnc-tafsir,
[data-theme="dark"] .acn-chip,
[data-theme="dark"] .acn-letter,
[data-theme="dark"] .btn-hero-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .vnc-tafsir { border-left-color: var(--accent); }
[data-theme="dark"] .qan-title { color: var(--text, #E5E7EB); }
[data-theme="dark"] .hero-title-new { color: var(--text, #E5E7EB); }
[data-theme="dark"] .acn-title { color: var(--text, #E5E7EB); }
[data-theme="dark"] .vnc-translation { color: var(--text, #E5E7EB); }
[data-theme="dark"] .btn-hero-secondary { color: #E5E7EB; }
[data-theme="dark"] .acn-sub { color: rgba(255,255,255,0.55); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .acn-letters {
    /* Cacher la dernière lettre sur tablette large */
    max-width: 240px;
  }
  .acn-letter:last-child { display: none; }
}

@media (max-width: 1100px) {
  .hero-new-grid { grid-template-columns: 1fr; }
  .prayer-widget-new { display: none; }
  .vnc-body { grid-template-columns: 180px 1fr 200px; gap: 1.25rem; }
}

@media (max-width: 900px) {
  .vnc-body { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .vnc-left { align-items: center; }
  .vnc-btns { justify-content: center; }
  .quick-access-new { grid-template-columns: repeat(2, 1fr); }
  .arabic-compact-new { grid-template-columns: 1fr; }
  .acn-letters { justify-content: center; flex-wrap: wrap; max-width: 100%; }
  .acn-letter:last-child { display: flex; }
  .hero-title-new { font-size: 2rem; }
  .hero-welcome-new { padding: 2rem; }
  .vnc-arabic { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .hero-title-new { font-size: 1.6rem; }
  .hero-actions-new { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%; justify-content: center; text-align: center;
  }
  .quick-access-new { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .arabic-compact-new { padding: 1.5rem; }
  .qan-title { white-space: normal; } /* Permet le retour à la ligne sur mobile */
  .acn-letters { gap: 0.5rem; }
  .acn-letter { min-width: 52px; }
  .vnc-body { padding: 1.25rem; }
  .vnc-arabic { font-size: 1.5rem; }
  .npc-time-display { font-size: 2.2rem; }
}

@media (max-width: 400px) {
  .quick-access-new { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .qan-card { padding: 0.85rem 0.7rem; }
  .qan-icon { width: 38px; height: 38px; font-size: 1.1rem; }
}