 /* ============================================================
   STYLE.CSS - Hommage à l'Erudit Islamique
   Imam Mouhamadou Sakhir Gaye
   Bleu nuit • Or • Parchemin • Encre
   ============================================================ */

/* ----- POLICES NOBLES ----- */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@400;700&family=Lateef:wght@400;700&family=Lora:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ----- GRAS ÉLÉGANT DANS LE TEXTE JUSTIFIÉ ----- */
strong, b {
    font-weight: 700;
    color: var(--or-pale);
    letter-spacing: 0.02em;
}

.bio-section p strong,
.bio-section p b {
    display: inline;
}

/* ----- PALETTE NOBLE & VARIABLES ----- */
:root {
  /* Nuit profonde */
  --bleu-nuit: #0A0F1A;
  --bleu-profond: #0D1525;
  --bleu-abyssal: #151E36;
  
  /* Parchemin ancien */
  --parchemin: #F4EFE6;
  --parchemin-clair: #FAF5EE;
  --parchemin-kraft: #EAE2D5;
  --encre: #2A2826;
  --encre-fonce: #1A1815;
  
  /* Or lumineux */
  --or: #D4AF37;
  --or-pale: #E8D48B;
  --or-fonce: #A68A2E;
  
  /* Accents spirituels */
  --dore-cendre: #C9A84C;
  --gris-perle: #8B8580;

  /* Alias pratiques (unification avec le style de l'accueil) */
  --dore: var(--dore-cendre);
  --dore-clair: var(--or-pale);
  --ivoire: #F8F5E7;
  --blanc: #ffffff;
  --vert-fonce: #1B5E20;
  --gris: var(--gris-perle);
  --gris-clair: #E8E0D8;
  --gris-fonce: #4A4540;

  /* Ombres portées */
  --ombre: 0 8px 32px rgba(10,15,26,0.25);
  --ombre-dore: 0 6px 24px rgba(212,175,55,0.2);
  --ombre-encre: 0 4px 16px rgba(42,40,38,0.15);
  
  --radius: 14px;
  --radius-petit: 10px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Polices */
  --font-arabe: 'Amiri', 'Traditional Arabic', serif;
  --font-calligraphy: 'Lateef', 'Traditional Arabic', cursive;
  --font-titre: 'Cormorant Garamond', Georgia, serif;
  --font-texte: 'Poppins', 'Segoe UI', sans-serif;
}

/* ----- RESET & BASE ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  background: var(--bleu-nuit);
  color: var(--ivoire);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

body.admin-page {
  background: var(--parchemin-clair);
  color: var(--encre);
}

/* ─── TEXTURE PAR CheMIN ANCIEN ----- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(212,175,55,0.025) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 30%, rgba(10,15,26,0.02) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 70%, rgba(212,175,55,0.015) 0%, transparent 40%);
  pointer-events: none;
  z-index: -2;
}

/* Motif géométrique islamique subtil */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23D4AF37' stroke-width='0.2' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
  z-index: -1;
  animation: manuscriptDrift 80s linear infinite;
}

@keyframes manuscriptDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 60px) rotate(0.5deg); }
}

/* Texture papier parchemin subtil */
.manuscript-texture {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* ----- HEADER NOBLE ----- */
header {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-profond));
  color: var(--or);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 4px 25px rgba(10,15,26,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-titre);
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--or), var(--or-pale));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--bleu-nuit);
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

.nav-links { display: flex; gap: 4px; }

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
  color: var(--or-pale);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(212,175,55,0.12);
  color: var(--or);
}

/* ----- HAMBURGER MENU ----- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--or);
  transition: 0.3s;
}

.hamburger:hover span {
  background: var(--or-pale);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--bleu-profond);
    flex-direction: column;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--ombre);
  }
  .nav-links.active { display: flex; }
}

/* ----- HERO SPIRITUEL ----- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-profond) 50%, var(--bleu-abyssal) 100%);
}

/* Lueurs dorées discrètes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 25%, rgba(212,175,55,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 75%, rgba(212,175,55,0.03) 0%, transparent 60%);
}

/* Motif géométrique islamique */
.hero-geometric {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M100 0L200 100L100 200L0 100Z' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.05'/%3E%3Cpath d='M100 20L180 100L100 180L20 100Z' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  animation: geometricFloat 60s linear infinite;
  z-index: 0;
}

@keyframes geometricFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 60px) rotate(0.5deg); }
}

/* Animation texte arabe défilant */
@keyframes textGlow {
  0% { text-shadow: 0 0 10px rgba(212,175,55,0.4); }
  50% { text-shadow: 0 0 30px rgba(212,175,55,0.8), 0 0 50px rgba(212,175,55,0.4); }
  100% { text-shadow: 0 0 10px rgba(212,175,55,0.4); }
}

/* Animation particules dorées */
@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Animation cartes au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effet hover amélioré sur cartes */
.card:hover,
.featured-card:hover,
.media-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Animation ornements */
@keyframes ornamentSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.hero-bismillah {
  font-family: var(--font-calligraphy);
  font-size: 2.8rem;
  color: var(--or);
  margin-bottom: 20px;
  opacity: 0.5;
  line-height: 1.4;
  text-shadow: 0 0 30px rgba(212,175,55,0.2);
}

.hero-floral {
  font-size: 1.1rem;
  color: var(--or-pale);
  opacity: 0.4;
  margin-bottom: 15px;
  letter-spacing: 10px;
}

.hero h1 {
  font-family: var(--font-titre);
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--or);
  text-shadow: 0 2px 20px rgba(212,175,55,0.15);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--or-pale), var(--or));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  color: var(--or-pale);
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.7;
}

.hero .description {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- BOUTONS NOBLES ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--or), var(--or-pale));
  color: var(--bleu-nuit);
  box-shadow: 0 4px 18px rgba(212,175,55,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--or);
  border: 1px solid rgba(212,175,55,0.4);
}

.btn-outline:hover {
  background: rgba(212,175,55,0.08);
  transform: translateY(-2px);
}

.btn-vert {
  background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-abyssal));
  color: var(--or);
  box-shadow: 0 4px 18px rgba(10,15,26,0.25);
}

.btn-vert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10,15,26,0.35);
}

/* ----- SECTIONS ----- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-titre);
  font-size: 2.2rem;
  color: var(--or);
  margin-bottom: 10px;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), var(--or-pale), transparent);
  margin: 12px auto 0;
}

/* ----- CARDS ÉLÉGANTES ----- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bleu-profond);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre-encre);
  transition: var(--transition);
  border: 1px solid rgba(212,175,55,0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-dore);
  border-color: rgba(212,175,55,0.2);
}

.card-image {
  height: 190px;
  background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-abyssal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

/* ----- VIGNETTE POÈME : RELIEF DORÉ 3D ----- */
.poeme-3d-icon {
  position: relative;
  overflow: hidden;
}

.poeme-3d-icon::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(212,175,55,0.35), transparent 70%);
  pointer-events: none;
}

.poeme-icon-3d {
  width: 64px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)) drop-shadow(0 -2px 4px rgba(212,175,55,0.3));
  transition: transform 0.4s ease;
  transform: perspective(400px) rotateX(8deg) rotateY(-8deg);
}

.card:hover .poeme-icon-3d {
  transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1.08);
}

.card-body { padding: 20px; }

.card-body h3 {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  color: var(--ivoire);
  margin-bottom: 8px;
}

.card-body p {
  color: var(--ivoire);
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

/* ----- BIOGRAPHIE ----- */
.bio-header {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-profond));
  color: var(--or);
  padding: 70px 24px;
  text-align: center;
}

.bio-header h1 {
  font-family: var(--font-titre);
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.bio-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 24px;
}

.bio-section {
  margin-bottom: 35px;
  background: var(--bleu-profond);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--ombre-encre);
  border-left: 3px solid var(--or);
}

.bio-section h2 {
  font-family: var(--font-titre);
  color: var(--or-pale);
  font-size: 1.4rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  display: inline-block;
}

.bio-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ivoire);
}

/* ----- TAFSIR ----- */
.tafsir-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}

.tafsir-item {
  background: var(--bleu-profond);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--ombre-encre);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(212,175,55,0.08);
}

.tafsir-item:hover {
  transform: translateX(4px);
  box-shadow: var(--ombre-dore);
}

.tafsir-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--or), var(--or-pale));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-nuit);
  font-size: 1.3rem;
}

.tafsir-info { flex: 1; }

.tafsir-info h3 {
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--or-pale);
}

.tafsir-info p {
  font-size: 0.85rem;
  color: var(--ivoire);
  opacity: 0.7;
}

/* ----- LECTEUR AUDIO ----- */
.audio-player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-abyssal));
  color: var(--or);
  padding: 14px 22px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -4px 20px rgba(10,15,26,0.3);
  border-top: 1px solid rgba(212,175,55,0.2);
}

.audio-player-container.active { transform: translateY(0); }

.audio-info .track-name {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-titre);
}

.audio-controls .play-btn {
  background: linear-gradient(135deg, var(--or), var(--or-pale));
  color: var(--bleu-nuit);
}

.progress-fill {
  background: linear-gradient(90deg, var(--or), var(--or-pale));
}

/* ----- KARAOKÉ MODE ----- */
.karaoke-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-profond));
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.karaoke-overlay.active { display: flex; }

.karaoke-title {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--or);
  margin-bottom: 25px;
}

.karaoke-verse.active {
  color: var(--ivoire);
  font-size: 1.8rem;
  text-shadow: 0 0 30px rgba(212,175,55,0.5);
}

/* ----- FOOTER ----- */
footer {
  background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-profond));
  color: var(--or);
  padding: 50px 24px 20px;
}

.footer-col h3 {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--or);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title h2 { font-size: 1.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.5rem; }
  .nav-links a { padding: 5px 8px; font-size: 0.7rem; }
}

/* ----- MEDIA GRID ----- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.media-card {
  background: var(--bleu-profond);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre-encre);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(212,175,55,0.08);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-dore);
}

.media-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,26,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--or);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover .play-overlay { opacity: 1; }

.media-body { padding: 20px; }

.media-body h3 {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  color: var(--or-pale);
  margin-bottom: 5px;
}

/* ----- LECTEUR AUDIO COMPLET ----- */
.audio-player {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audio-controls button {
  background: none;
  border: none;
  color: var(--or);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-controls button:hover { background: rgba(212,175,55,0.08); }

/* ----- KARAOKÉ COMPLET ----- */
.karaoke-verses {
  max-width: 700px;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  text-align: center;
  padding: 15px;
}

.karaoke-verse {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  line-height: 2;
  padding: 10px 18px;
  margin: 6px 0;
  border-radius: 8px;
  transition: all 0.4s ease;
  color: rgba(248,245,231,0.55);
}

.karaoke-verse.past {
  color: rgba(248,245,231,0.3);
  font-size: 1rem;
}

.karaoke-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(212,175,55,0.06);
  border: none;
  color: var(--or);
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.karaoke-close:hover { background: rgba(212,175,55,0.12); transform: rotate(90deg); }

.karaoke-timer {
  position: absolute;
  bottom: 22px;
  font-size: 0.88rem;
  color: rgba(248,245,231,0.6);
  letter-spacing: 0.2em;
  font-family: var(--font-texte);
}

/* ----- FOOTER COMPLET ----- */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col p, .footer-col a {
  font-size: 0.88rem;
  opacity: 0.6;
  line-height: 2;
  display: block;
  color: var(--or-pale);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--or-pale);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(212,175,55,0.1);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ----- BOUTON AMBiance SONORE ----- */
#soundToggle {
  position: fixed;
  bottom: 100px;
  left: 20px;
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--or);
  color: var(--or);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: var(--ombre);
  transition: 0.3s;
  z-index: 999;
}

#soundToggle:hover {
  background: rgba(212,175,55,0.3);
}

/* ----- POÉSIE - FORMAT LIVRE NOBLE ----- */
.poem-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 30px;
  background: var(--bleu-profond);
  border-radius: var(--radius);
  box-shadow: var(--ombre-encre);
  position: relative;
}

.poem-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.02) 0%, transparent 50%);
  pointer-events: none;
  border-radius: var(--radius);
}

.poem-title {
  font-family: var(--font-titre);
  font-size: 2rem;
  text-align: center;
  color: var(--ivoire);
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.poem-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 15px auto 0;
}

.poem-text {
  font-family: var(--font-arabe);
  font-size: 1.25rem;
  line-height: 2;
  color: var(--encre);
  white-space: pre-line;
  text-align: right;
  direction: rtl;
  position: relative;
  padding: 20px 0;
}

/* Respect strict du retour à la ligne - chaque vers sur une ligne */
.poem-text .verse {
  display: block;
  margin-bottom: 0.8em;
  text-indent: 0;
  letter-spacing: 0.3px;
}

/* Strophes - espacement clair et uniforme */
.poem-text .stanza {
  margin-bottom: 1.8em;
  position: relative;
}

.poem-text .stanza:not(:last-child)::after {
  content: '⁙';
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: var(--or);
  opacity: 0.3;
  margin-top: 0.8em;
  letter-spacing: 0.5em;
}

/* Alignement à gauche pour texte français */
.poem-text.left-align {
  text-align: left;
  direction: ltr;
  font-family: var(--font-titre);
}

/* Largeur limitée pour lecture concentrée (format livre) */
.poem-book-layout {
  max-width: 650px;
  margin: 0 auto;
  padding: 50px 35px;
  background: var(--bleu-profond);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  border: 1px solid rgba(212,175,55,0.08);
}

.poem-book-layout .poem-title {
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
}

.poem-book-layout .poem-title::after {
  width: 100px;
  height: 2px;
}

/* Hiérarchie typographique - interligne généreux */
.poem-book-layout .poem-content {
  font-family: var(--font-arabe);
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--ivoire);
  white-space: pre-line;
  text-align: right;
  direction: rtl;
}

.poem-book-layout .poem-content .stanza {
  margin-bottom: 2em;
}

.poem-book-layout .poem-content .stanza:last-child {
  margin-bottom: 0;
}

/* Espace entre strophes - uniformément */
.poem-book-layout .poem-content br + br {
  content: '';
  display: block;
  margin-top: 1.5em;
}

  /* Mode lecture zen pour les poèmes */
.poem-zen {
  font-size: 1.8rem;
  line-height: 2.4;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-abyssal));
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.poem-zen .verse {
  margin-bottom: 1.2em;
  color: var(--encre);
}

/* ----- FORMAT POÈME INTELLIGENT ----- */
.poeme-intelligent {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.8;
  max-width: 600px;
  margin: 20px auto;
}

.vers {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5em;
}

.numero {
  font-size: 0.8em;
  color: var(--ivoire);
  opacity: 0.7;
  margin-right: 15px;
  width: 20px;
  text-align: right;
  user-select: none;
}

.strophe-separator {
  display: block;
  height: 1.5em;
}

/* Style pour l'affichage des poèmes sans coupure */
.poem-pure {
  font-family: var(--font-arabe);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--encre);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: break-word;
}

  /* Style pour texte français (Wolof) */
.poem-latin {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--encre);
    white-space: pre-line;
    text-align: left;
    direction: ltr;
  }

/* ----- STYLE GÉNÉRAL LISIBILITÉ ----- */
.bio-content, .poeme-structure {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- STYLE JUSTIFIÉ BIOGRAPHIE ----- */
.bio-section p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5em;
}

/* ----- STYLE STRUCTURÉ POÈMES ----- */
.poeme-structure {
    font-family: 'Lora', Georgia, serif;
    line-height: 2.2;
    color: #2d3436;
    margin: 40px auto;
    white-space: pre-line;
    text-align: center;
}

/* ----- POÈME TEXTE ARABE COMPLET ----- */
.poem-full-text {
  font-family: 'Scheherazade New', 'Amiri', serif;
  font-size: 1.4rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  white-space: pre-line;
  color: var(--parchemin);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* Correction du Gras avec couleur dorée */
.bio-section p strong, 
.bio-section p b,
.poem-full-text strong, 
.poem-full-text b,
.poeme-structure strong, 
.poeme-structure b {
    font-weight: 700 !important;
    color: var(--dore-cendre) !important;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .poeme-structure {
        font-size: 17px;
        line-height: 1.9;
    }
}

  /* ----- BIOGRAPHIE JUSTIFIÉE - TIMES NEW ROMAN ----- */
  .bio-content {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.12rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--ivoire);
    max-width: 750px;
    margin: 0 auto;
    padding: 30px;
  }

  .bio-content p {
    margin-bottom: 1.2em;
    text-indent: 0;
    text-align: justify;
  }

  .bio-content .bio-section {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.12rem;
    line-height: 1.8;
    text-align: justify;
    background: var(--bleu-profond);
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    box-shadow: var(--ombre-encre);
  }

  .bio-content .bio-section h2 {
    font-family: var(--font-titre);
    color: var(--or-pale);
    margin-bottom: 15px;
    text-align: left;
  }

/* ----- GRAS ADMIN FORCÉ ----- */
.admin-preview-area strong,
.admin-preview-area b,
.bio-section strong,
.poeme-structure strong {
  font-weight: 700 !important;
  color: #000 !important;
}

/* ----- SCROLLBAR NOBLE ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bleu-profond); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--or), var(--or-fonce));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--or-pale); }


/* ----- ACTUALITÉS & POÈTE ----- */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ivoire);
  opacity: 0.8;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.poet-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.poet-directory a {
  display: block;
  background: var(--bleu-profond);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--ombre-encre);
  border: 1px solid rgba(212,175,55,0.08);
  transition: var(--transition);
  text-decoration: none;
  color: var(--ivoire);
}

.poet-directory a:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-dore);
  border-color: rgba(212,175,55,0.2);
}

.poet-directory a strong {
  font-family: var(--font-titre);
  font-size: 1.1rem;
}

.poet-directory a p {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.poet-profile {
  max-width: 1200px;
  margin: 0 auto;
}

.poet-hero {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bleu-profond);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--ombre-encre);
  margin-bottom: 30px;
}

.poet-hero-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, var(--bleu-profond), var(--bleu-abyssal));
  flex-shrink: 0;
}

.poet-hero-content {
  flex: 1;
  min-width: 240px;
  color: var(--ivoire);
}

.poet-hero-content h2 {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.poet-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.poet-link-card {
  background: var(--bleu-profond);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--ombre-encre);
  border: 1px solid rgba(212,175,55,0.08);
}

.poet-link-card h3 {
  font-family: var(--font-titre);
  color: var(--or-pale);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.poet-link-card p {
  color: var(--ivoire);
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ----- ANIMATION D'ENTRÉE (fondu au chargement) ----- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body:not(.admin-page) {
  animation: fadeIn 1.2s ease;
}

/* ----- HERO : HALO & OVERLAY (accueil) ----- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(212,175,55,0.12), transparent 60%);
  pointer-events: none;
}

.hero-halo {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

/* ----- ORNEMENTS ANIMÉS ----- */
@keyframes ornamentPulse {
  0% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.75; transform: scale(1); }
}

.hero-ornament {
  margin-bottom: 20px;
}

.hero-ornament img,
.section-ornament {
  animation: ornamentPulse 5s infinite ease-in-out;
  opacity: 0.85;
}

.hero-ornament img {
  width: 70px;
}

.section-ornament {
  width: 100px;
  margin: 0 auto 15px;
  display: block;
}

/* ----- BANDEAU HÉRITAGE ----- */
.heritage-banner {
  text-align: center;
  padding: 25px 10px;
  background: rgba(212,175,55,0.05);
  border-top: 1px solid rgba(212,175,55,0.15);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--or);
  letter-spacing: 1px;
}

/* ----- CITATION DU JOUR ----- */
.citation-section {
  padding: 60px 20px;
}

.citation-box {
  background: var(--bleu-profond);
  border-left: 4px solid var(--or);
  padding: 25px;
  max-width: 700px;
  margin: auto;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.citation-text {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ivoire);
  opacity: 0.9;
  text-align: center;
}

.citation-ornament {
  width: 80px;
  display: block;
  margin: 0 auto 15px;
  opacity: 0.85;
}

/* ----- CARTES VEDETTES (ACCUEIL) ----- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.featured-card {
  background: var(--bleu-profond);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--ombre);
  transition: var(--transition);
  text-align: center;
}

.featured-card:hover {
  box-shadow: 0 0 25px rgba(212,175,55,0.25);
  border-color: var(--or);
}

.featured-card h3 {
  font-family: var(--font-titre);
  color: var(--or-pale);
  margin-bottom: 10px;
}

.featured-card p {
  color: var(--ivoire);
  opacity: 0.85;
  margin-bottom: 15px;
}

.featured-icon {
  width: 60px;
  margin-bottom: 15px;
}

/* ----- TRANSITION MYSTIQUE ENTRE PAGES ----- */
#pageTransition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), rgba(10,15,26,0.95), rgba(10,15,26,1));
  backdrop-filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 9999;
}

#pageTransition.active {
  opacity: 1;
}

#pageTransition::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.25), transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.8s ease;
}

#pageTransition.active::after {
  opacity: 1;
}

/* ----- BOUTON RETOUR EN HAUT ----- */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--or);
  color: var(--bleu-nuit);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--ombre);
  display: none;
  transition: 0.3s;
  z-index: 999;
}

#backToTop:hover {
  background: var(--or-pale);
}
