/* ============================================================
   DÉCOUVERTE LAYOUT — decouverte-layout.css
   2 onglets : Prophètes & Académie
   ============================================================ */

#page-decouverte .discovery-header,
#page-decouverte .tabs-container,
#page-decouverte .tab-content-discovery {
  display: none !important;
}

.dec-page-wrapper {
  min-height: 100vh;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

.dec-page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(45,95,79,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(201,166,97,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(74,139,115,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .dec-page-wrapper::before {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(45,95,79,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(201,166,97,0.08) 0%, transparent 50%);
}

/* ══ HERO ══ */
.dec-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 52px 24px 0;
  overflow: hidden;
}

.dec-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, rgba(45,95,79,1) 0px, rgba(45,95,79,1) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(-45deg, rgba(45,95,79,1) 0px, rgba(45,95,79,1) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
}
[data-theme="dark"] .dec-hero-pattern { opacity: 0.07; }

.dec-hero-content { position: relative; z-index: 2; }

.dec-hero-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(45,95,79,0.3);
  transform: rotate(-4deg);
  animation: dec-icon-bob 4s ease-in-out infinite;
}
@keyframes dec-icon-bob {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-6px); }
}

.dec-hero-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(16px, 2.5vw, 26px);
  color: #4A8B73;
  direction: rtl;
  margin-bottom: 6px;
}
[data-theme="dark"] .dec-hero-ar { color: #6BAF90; }

.dec-hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 12px;
  line-height: 1.1;
}
.dec-hero-title .dec-accent {
  background: linear-gradient(135deg, #2D5F4F 0%, #4A8B73 50%, #C9A661 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .dec-hero-title { color: #e8e0d0; }

.dec-hero-desc {
  color: #6B7280;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.75;
}
[data-theme="dark"] .dec-hero-desc { color: #9ca3a0; }

.dec-hero-stats {
  display: inline-flex;
  gap: 0;
  background: white;
  border: 2px solid rgba(45,95,79,0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,95,79,0.1);
}
[data-theme="dark"] .dec-hero-stats {
  background: #0e1c14;
  border-color: rgba(201,166,97,0.15);
}

.dec-stat-item {
  padding: 14px 28px;
  text-align: center;
  position: relative;
}
.dec-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(45,95,79,0.12);
}
[data-theme="dark"] .dec-stat-item:not(:last-child)::after {
  background: rgba(201,166,97,0.1);
}
.dec-stat-num {
  font-family: 'Amiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: #2D5F4F;
  line-height: 1;
  display: block;
}
[data-theme="dark"] .dec-stat-num { color: #C9A661; }
.dec-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9CA3AF;
  display: block;
  margin-top: 3px;
}

/* ══════════════════════════════════════════════════
   NAVIGATION ONGLETS — 2 BOUTONS PREMIUM
   ══════════════════════════════════════════════════ */
.dec-nav-sticky {
  position: sticky;
  top: 70px;
  z-index: 100;
  padding: 20px 24px;
  margin-top: 32px;
}

.dec-nav-inner {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border: 1.5px solid rgba(45, 95, 79, 0.12);
  border-radius: 28px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow:
    0 4px 24px rgba(45, 95, 79, 0.1),
    0 1px 4px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="dark"] .dec-nav-inner {
  background: #0e1c14;
  border-color: rgba(201, 166, 97, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ─── Bouton de base ─── */
.dec-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', sans-serif;
  color: #6B7280;
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* Effet hover fond subtil */
.dec-nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(135deg,
    rgba(45,95,79,0.07),
    rgba(201,166,97,0.04));
}
.dec-nav-btn:hover:not(.actif)::before { opacity: 1; }
.dec-nav-btn:hover:not(.actif) {
  color: #2D5F4F;
  transform: translateY(-1px);
}

[data-theme="dark"] .dec-nav-btn { color: #6B7A72; }
[data-theme="dark"] .dec-nav-btn:hover:not(.actif) { color: #C9A661; }

/* ─── Bouton ACTIF — dégradé vert profond → or ─── */
.dec-nav-btn.actif {
  background: linear-gradient(135deg,
    #2D5F4F 0%,
    #3d7a64 55%,
    #4A8B73 100%);
  color: white;
  box-shadow:
    0 6px 20px rgba(45, 95, 79, 0.38),
    0 2px 6px rgba(45, 95, 79, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

[data-theme="dark"] .dec-nav-btn.actif {
  background: linear-gradient(135deg,
    #1a3d2e 0%,
    #2D5F4F 55%,
    #3d6b50 100%);
  box-shadow:
    0 6px 20px rgba(45,95,79,0.4),
    inset 0 1px 0 rgba(201,166,97,0.15);
}

/* Emoji */
.dec-nav-emoji {
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.dec-nav-btn.actif .dec-nav-emoji {
  transform: scale(1.2) rotate(-5deg);
}
.dec-nav-btn:hover:not(.actif) .dec-nav-emoji {
  transform: scale(1.1);
}

/* Texte */
.dec-nav-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
}

.dec-nav-label {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dec-nav-sublabel {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
  line-height: 1;
}

/* Badge */
.dec-nav-badge {
  font-size: 11px;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.dec-nav-btn.actif .dec-nav-badge {
  background: rgba(255,255,255,0.22);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.dec-nav-btn:not(.actif) .dec-nav-badge {
  background: rgba(45,95,79,0.1);
  color: #2D5F4F;
}

[data-theme="dark"] .dec-nav-btn:not(.actif) .dec-nav-badge {
  background: rgba(201,166,97,0.12);
  color: #C9A661;
}

/* ══ ZONES DE CONTENU ══ */
.dec-tab-zone {
  position: relative;
  z-index: 1;
  display: none;
  animation: dec-tab-in 0.35s cubic-bezier(0.4,0,0.2,1);
}
.dec-tab-zone.actif { display: block; }

@keyframes dec-tab-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ PROPHÈTES ══ */
.dec-prophetes-section {
  padding-top: 24px;
  padding-bottom: 60px;
}
.dec-prophetes-section .proph-header {
  padding-top: 24px;
  padding-bottom: 24px;
}
.dec-prophetes-section .proph-header .proph-header-label { display: none; }
.dec-prophetes-section .proph-title-ar { font-size: clamp(16px, 2.5vw, 26px); }
.dec-prophetes-section .proph-title-fr { font-size: clamp(22px, 3.5vw, 38px); }

/* ══ ACADÉMIE ══ */
.dec-academie-section {
  padding-top: 24px;
  padding-bottom: 60px;
}
.dec-academie-section .acad-hero { display: none; }
.dec-academie-section .acad-progress-bar-section { margin-top: 24px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .dec-nav-inner {
    flex-direction: column;
    max-width: 100%;
    gap: 6px;
  }
  .dec-nav-btn {
    justify-content: flex-start;
    padding: 14px 18px;
  }
  .dec-nav-sticky { top: 60px; padding: 12px 16px; }
  .dec-hero { padding: 36px 16px 0; }
}

@media (max-width: 480px) {
  .dec-stat-item { padding: 12px 16px; }
  .dec-nav-sublabel { display: none; }
  .dec-nav-btn { padding: 13px 16px; }
  .dec-nav-label { font-size: 13px; }
}