/* ══ PAGE BASE ══ */
.page { min-height: 100dvh; }

.page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ══ HERO ══ */
.hero-wrap {
  position: relative;
  /* Le nav est inclus dans ce wrapper pour l'overlay */
}

.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Le nav absolu est positionné à l'intérieur */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #003A70 0%, #062B45 20%, #2E5E4E 55%, #6B7F2A 80%, #A6A11A 100%);
  background-size: 300% 300%;
  animation: gradientMove 14s ease infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes gradientMove {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Subject images — desktop only */
.hero-subjects {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.subject-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.subject-layer.gone { opacity: 0; pointer-events: none; }

#layer-david { transform: translateX(0); }
#layer-david.gone { transform: translateX(60px); }

#layer-david img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(-12px 0 40px rgba(0,20,60,0.4));
}

#layer-na { transform: translateX(-60px); align-items: center; justify-content: center; }
#layer-na.gone { transform: translateX(-100px); }

#layer-na img {
  width: 90%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(166,161,26,0.55));
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 44px 80px;
  max-width: 52%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  display: none;
}

.hero-eyebrow span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-title .word-light {
  opacity: 0.45;
  display: block;
  font-weight: 400;
}

.hero-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll hint — supprimé */
.hero-scroll { display: none; }

/* ══ PAGE BODY — zone de contenu sous le hero ══ */
#page-body {
  position: relative;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#page-body.switching {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* ══ ABOUT ══ */
.about-section {
  padding: 88px var(--sp-md);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--content-max);
  margin: 0 auto;
}

.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 22px; }

.about-text p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 14px;
  font-weight: 400;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  padding: 22px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: box-shadow var(--t), transform var(--t);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-num {
  font-size: 2.4rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ══ SKILLS ══ */
.skills-section {
  padding: 80px var(--sp-md);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.skills-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 40px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 30px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.skill-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.skill-icon i { font-size: 21px; color: #fff; }

.skill-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

.skill-card p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 400;
}

/* ══ NA TEASER ══ */
.na-teaser {
  padding: 60px var(--sp-md);
  max-width: var(--content-max);
  margin: 0 auto;
}

.na-teaser-inner {
  padding: 44px 40px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #062B45 0%, #1a3a2a 55%, #2c2800 100%);
  display: flex;
  align-items: center;
  gap: 36px;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.na-teaser-inner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(166,161,26,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.na-teaser-inner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.na-teaser-inner:active { transform: scale(0.99); }

.na-teaser-logo { width: 80px; flex-shrink: 0; }
.na-teaser-logo img { width: 100%; filter: brightness(0) invert(1); }

.na-teaser-text h3 { font-size: 1.6rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.na-teaser-text p  { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 360px; }

/* ══ NOUVELLE ALLIANCE — contenu intégré ══ */
.na-daily-thought {
  padding: 60px var(--sp-md) 0;
  max-width: var(--content-max);
  margin: 0 auto;
}

.na-daily-inner {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  background: var(--grad);
  position: relative;
  overflow: hidden;
}

.na-daily-inner::before {
  content: '"';
  position: absolute;
  top: -20px; left: 12px;
  font-size: 11rem;
  font-weight: 600;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.dt-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.na-daily-inner p {
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
  font-style: italic;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.na-content-block {
  padding: 60px var(--sp-md);
  max-width: var(--content-max);
  margin: 0 auto;
}

.na-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.na-section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.see-all {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity var(--t);
}

.see-all:hover { opacity: 0.65; }

.video-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.video-scroll::-webkit-scrollbar { display: none; }

.video-card {
  flex-shrink: 0;
  width: 230px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--t);
}

.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.video-thumb {
  height: 128px;
  background: linear-gradient(135deg, #062B45, #2E5E4E);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
}

.video-card:hover .video-play { background: rgba(255,255,255,0.25); transform: scale(1.08); }

.video-play i { font-size: 22px; color: #fff; }

.video-info { padding: 14px 16px; }
.video-info h4 { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.35; }
.video-info span { font-size: 11px; color: var(--text-3); }

.meditation-card {
  padding: 22px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.meditation-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  border-radius: 0 2px 2px 0;
}

.meditation-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.meditation-card h4  { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.meditation-card p   { font-size: 12px; font-weight: 400; color: var(--text-2); line-height: 1.65; }
.meditation-card .med-date {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ══ LIVRES ══ */
.livres-header {
  padding: 80px 40px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.livres-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 10px; }
.livres-header p  { font-size: 13px; font-weight: 400; color: var(--text-2); }

.livres-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--t);
}

.book-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: rgba(0,58,112,0.18); }
.book-card:active { transform: scale(0.99); }

.book-cover {
  width: 56px; height: 78px;
  border-radius: 6px;
  background: var(--grad);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 4px 12px rgba(0,0,0,0.2);
}

.book-cover i { font-size: 24px; color: rgba(255,255,255,0.75); }

.book-info { flex: 1; min-width: 0; }
.book-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-info p  { font-size: 12px; font-weight: 400; color: var(--text-2); line-height: 1.55; }
.book-meta    { font-size: 11px; color: var(--text-3); margin-top: 5px; font-style: italic; }

.book-arrow { color: var(--text-3); margin-left: auto; flex-shrink: 0; }
.book-arrow i { font-size: 20px; }

/* ══ PORTFOLIO ══ */
.portfolio-header {
  padding: 80px 40px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.portfolio-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 10px; }
.portfolio-header p  { font-size: 13px; font-weight: 400; color: var(--text-2); }

.portfolio-grid {
  max-width: var(--content-max);
  margin: 36px auto;
  padding: 0 var(--sp-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-item {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}

.portfolio-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

.portfolio-item-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-inner { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,43,69,0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  transition: background 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { background: rgba(6,43,69,0.5); }
.portfolio-overlay i { font-size: 30px; color: #fff; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover .portfolio-overlay i { opacity: 1; }

.portfolio-label {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  text-align: center;
  padding: 16px;
  line-height: 1.2;
}

/* ══ CONTACT ══ */
.contact-header {
  padding: 80px 40px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.contact-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 10px; }
.contact-header p  { font-size: 13px; font-weight: 400; color: var(--text-2); max-width: 340px; }

.contact-list {
  max-width: var(--content-max);
  margin: 36px auto;
  padding: 0 var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t);
}

.contact-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: rgba(0,58,112,0.18); }

.contact-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i { font-size: 22px; color: #fff; }

.contact-info h4  { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.contact-info span { font-size: 12px; font-weight: 400; color: var(--text-2); }

.contact-arrow { margin-left: auto; color: var(--text-3); flex-shrink: 0; }
.contact-arrow i { font-size: 20px; }


.contact-na-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: var(--content-max);
  margin: 32px auto 12px;
  padding: 0 var(--sp-md);
}

.swift-card {
  max-width: var(--content-max);
  margin: 0 auto 60px;
  padding: 0 var(--sp-md);
}

.swift-inner {
  padding: 40px 36px;
  border-radius: var(--r-lg);
  background: var(--grad);
  position: relative;
  overflow: hidden;
}

.swift-inner::before {
  content: 'SS';
  position: absolute;
  right: -8px; bottom: -18px;
  font-size: 9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.swift-inner h3 { font-size: 1.8rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.swift-inner p  { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.6); line-height: 1.75; max-width: 420px; margin-bottom: 28px; }

/* Section label */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  /* Hero mobile : pas d'images, texte seul, hauteur reduite */
  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-subjects { display: none; }

  .hero-content {
    max-width: 100%;
    padding: 48px 20px 60px;
  }

  .hero-title { font-size: 2.4rem; }

  .hero-desc { max-width: 100%; }

  /* Grids */
  .about-grid  { grid-template-columns: 1fr; gap: 36px; }
  .skills-grid { grid-template-columns: 1fr; }

  .about-section { padding: 60px var(--sp-md); }
  .skills-section { padding: 60px var(--sp-md); }

  .na-teaser-inner { flex-direction: column; gap: 22px; padding: 28px 22px; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.wide { grid-column: span 2; }

  .livres-header,
  .portfolio-header,
  .contact-header { padding: 52px 20px 28px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .na-content-block { padding: 40px var(--sp-md); }
  .na-daily-thought  { padding: 40px var(--sp-md) 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ══ CADENAS FOOTER ══ */
.lock-footer {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.lock-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 18px;
  opacity: 0.35;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
  padding: 10px;
  border-radius: var(--r-full);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-btn:hover {
  opacity: 0.7;
  color: var(--blue);
  transform: scale(1.1);
}

.lock-btn i { font-size: 18px; }

/* ══ AUTH PAGE ══ */

.auth-page {
  min-height: 100dvh;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  padding: 0 44px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.auth-back-logo {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: opacity var(--t);
}

.auth-back-logo:hover { opacity: 0.6; }

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--sp-md);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,58,112,0.22);
}

.auth-lock-icon i { font-size: 26px; color: #fff; }

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  gap: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  background: transparent;
  color: var(--text-3);
}

.auth-tab.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Fields */
.field-group { display: flex; flex-direction: column; gap: 7px; }

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  font-size: 17px;
  color: var(--text-3);
  pointer-events: none;
  z-index: 1;
}

.field-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}

.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,58,112,0.08);
  outline: none;
  background: var(--bg);
}

.field-input::placeholder { color: var(--text-3); }

.field-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t);
}

.field-eye:hover { color: var(--text); }

.btn-full { width: 100%; }

.auth-error {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t);
}

.auth-footer-link:hover { color: var(--blue); }

/* ══ ADMIN PAGE ══ */
.admin-header {
  background: var(--grad);
  padding: 60px 0 44px;
}

.admin-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-grid {
  max-width: var(--content-max);
  margin: 36px auto;
  padding: 0 var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--t);
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(0,58,112,0.18);
}

.admin-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-card-icon i { font-size: 22px; color: #fff; }

.admin-card-info { flex: 1; }
.admin-card-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.admin-card-info p  { font-size: 12px; font-weight: 400; color: var(--text-2); }

.admin-card-arrow { font-size: 20px; color: var(--text-3); margin-left: auto; flex-shrink: 0; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 22px; }
  .admin-header-inner { flex-direction: column; align-items: flex-start; }
  .admin-grid { padding: 0 var(--sp-md); }
}

/* ══════════════════════════════════════════
   ADMIN — PAGE GENERIQUE
══════════════════════════════════════════ */
.admin-page {
  min-height: 100dvh;
  background: var(--bg-soft);
}

/* ── Header ── */
.adm-header {
  background: var(--grad);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.adm-header-inner { flex: 1; }

.adm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.adm-bc-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color var(--t);
}

.adm-bc-link:hover { color: rgba(255,255,255,0.9); }

.adm-bc-sep { font-size: 12px; color: rgba(255,255,255,0.35); }

.adm-bc-current {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.adm-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 600;
}

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

.adm-logout {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border-radius: var(--r-full) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Stats bar ── */
.adm-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  flex-wrap: wrap;
}

.adm-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
}

.adm-stat-pill i { font-size: 15px; }

.adm-stat-green { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.adm-stat-grey  { color: var(--text-3); background: var(--bg-soft); }

/* ── Grille livres ── */
.adm-books-zone { padding: 0 40px 60px; }

.adm-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ── Carte livre ── */
.adm-book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}

.adm-book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.adm-book-card.adm-book-unpublished { opacity: 0.7; }
.adm-book-card.adm-book-unpublished:hover { opacity: 1; }

.adm-book-cover {
  width: 100%;
  height: 180px;
  background: var(--grad);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.adm-book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adm-book-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-book-cover-fallback i { font-size: 52px; color: rgba(255,255,255,0.35); }

.adm-book-info {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adm-book-top { margin-bottom: 10px; }

.adm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}

.adm-status-on  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.adm-status-off { background: #f8f8f8; color: var(--text-3); border: 1px solid var(--border); }

.adm-book-title  { font-size: 16px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
.adm-book-author { font-size: 12px; color: var(--text-3); font-style: italic; margin-bottom: 8px; }

.adm-book-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.adm-book-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.adm-book-meta i { font-size: 13px; vertical-align: middle; margin-right: 2px; }

/* Actions carte */
.adm-book-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-lt);
  padding-top: 14px;
  margin-top: auto;
}

.adm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
}

.adm-action-btn i { font-size: 14px; }
.adm-action-btn:hover { border-color: currentColor; background: var(--bg); }

.adm-btn-edit   { color: var(--blue); }
.adm-btn-edit:hover { background: rgba(0,58,112,0.05); }

.adm-btn-toggle { color: var(--olive); }
.adm-btn-toggle:hover { background: rgba(107,127,42,0.07); }

.adm-btn-delete { color: #dc2626; border-color: var(--border); margin-left: auto; }
.adm-btn-delete:hover { background: #fef2f2; border-color: #fca5a5; }
.adm-btn-delete:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── Vide ── */
.adm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--text-3);
  text-align: center;
}

.adm-empty i  { font-size: 56px; opacity: 0.4; }
.adm-empty p  { font-size: 14px; max-width: 320px; line-height: 1.7; }

/* ══ MODALS ADMIN ══ */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.adm-modal {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.adm-modal-sm { max-width: 400px; }

.adm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
  flex-shrink: 0;
}

.adm-modal-head h2 { font-size: 1.2rem; font-weight: 600; }

.adm-modal-close {
  background: var(--bg-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t);
}

.adm-modal-close:hover { background: var(--border); }

.adm-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.adm-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-lt);
  flex-shrink: 0;
}

/* Textarea */
.field-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--t), box-shadow var(--t);
  line-height: 1.6;
}

.field-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,58,112,0.08);
  outline: none;
  background: var(--bg);
}

.field-textarea::placeholder { color: var(--text-3); }

.req { color: #dc2626; margin-left: 2px; }

/* Preview couverture */
.adm-cover-preview {
  margin-top: 10px;
  border-radius: var(--r-md);
  overflow: hidden;
  height: 140px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.adm-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal suppression — centree et propre */
.adm-modal-delete {
  max-width: 360px;
  text-align: center;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.adm-delete-icon-wrap {
  padding: 32px 24px 16px;
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
}

.adm-delete-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.adm-delete-icon i { font-size: 26px; color: #fff; }

.adm-delete-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 24px 4px;
  color: var(--text);
}

.adm-delete-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 0 24px 16px;
}

.adm-delete-warn-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 24px 20px;
  padding: 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--r-md);
  text-align: left;
  color: #991b1b;
}

.adm-delete-warn-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.adm-delete-warn-box p { font-size: 12px; line-height: 1.6; }

.adm-delete-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-lt);
}

.adm-delete-cancel-btn { flex: 1; }

.adm-btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(220,38,38,0.3);
  gap: 8px;
}

.adm-btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }
.adm-btn-danger:active { transform: scale(0.97); }

/* Responsive */
@media (max-width: 700px) {
  .adm-header      { padding: 24px 20px; }
  .adm-stats-bar   { padding: 16px 20px; }
  .adm-books-zone  { padding: 0 16px 40px; }
  .adm-books-grid  { grid-template-columns: 1fr; }
  .adm-modal-body  { padding: 16px 18px; }
  .adm-modal-foot  { padding: 14px 18px; }
  .adm-modal-head  { padding: 18px 18px 0; }
}

/* ══ UPLOAD ZONE COUVERTURE ══ */
.adm-upload-zone {
  width: 100%;
  min-height: 140px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  position: relative;
  overflow: hidden;
}

.adm-upload-zone:hover,
.adm-upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(0,58,112,0.04);
}

.adm-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  min-height: 140px;
  text-align: center;
}

.adm-upload-placeholder i    { font-size: 36px; color: var(--text-3); }
.adm-upload-placeholder span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.adm-upload-placeholder small { font-size: 11px; color: var(--text-3); }

.adm-cover-preview {
  width: 100%;
  height: 180px;
  position: relative;
}

.adm-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--r-md) - 2px);
}

.adm-cover-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--t);
  z-index: 2;
}

.adm-cover-remove:hover { background: #dc2626; }

/* ══════════════════════════════════════════
   ADMIN — DETAIL LIVRE
══════════════════════════════════════════ */

/* Header avec cover */
.adm-book-detail-header {
  position: relative;
  min-height: 280px;
  background: var(--grad);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.adm-book-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,43,69,0.95) 0%, rgba(6,43,69,0.5) 60%, rgba(0,0,0,0.2) 100%);
}

.adm-book-detail-header-content {
  position: relative;
  z-index: 2;
  padding: 32px 40px 36px;
  width: 100%;
  max-width: 860px;
}

.adm-book-detail-meta { margin-bottom: 12px; }

.adm-book-detail-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.1;
}

.adm-book-detail-author {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 10px;
}

.adm-book-detail-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 20px;
}

.adm-book-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.adm-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--t);
}

.adm-detail-btn-edit {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.adm-detail-btn-edit:hover { background: rgba(255,255,255,0.25); }

/* Zone chapitres */
.adm-chapters-zone {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px 60px;
}

.adm-chapters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.adm-chapters-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.adm-chapters-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

/* Liste chapitres */
.adm-chapters-list { display: flex; flex-direction: column; gap: 10px; }

.adm-chapter-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}

.adm-chapter-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.adm-chapter-order {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-chapter-order span {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.adm-chapter-info { flex: 1; min-width: 0; }

.adm-chapter-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-chapter-preview {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.adm-chapter-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Etat vide chapitres */
.adm-chapters-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-3);
  text-align: center;
}

.adm-chapters-empty i { font-size: 48px; opacity: 0.35; }
.adm-chapters-empty p { font-size: 14px; }

/* Modal grande (contenu chapitre) */
.adm-modal-lg { max-width: 680px; }

/* Formulaire chapitre */
.adm-chapter-form-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.adm-chapter-content {
  min-height: 260px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

.adm-content-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 700px) {
  .adm-book-detail-header-content { padding: 24px 20px 28px; }
  .adm-chapters-zone { padding: 24px 16px 40px; }
  .adm-chapter-item { flex-wrap: wrap; }
  .adm-chapter-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--border-lt); padding-top: 10px; }
  .adm-chapter-form-row { flex-direction: column; }
  .adm-chapter-form-row > div[style*="width:120px"] { width: 100% !important; }
}

/* ══════════════════════════════════════════
   ADMIN — MEDITATIONS
══════════════════════════════════════════ */
.adm-med-zone { padding: 0 40px 60px; }

.adm-med-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-med-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}

.adm-med-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  border-radius: 0 2px 2px 0;
}

.adm-med-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }

.adm-med-card-body { flex: 1; min-width: 0; }

.adm-med-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.adm-med-date i { font-size: 13px; }

.adm-med-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.adm-med-preview {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.adm-med-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .adm-med-zone { padding: 0 16px 40px; }
  .adm-med-card { flex-direction: column; gap: 14px; }
  .adm-med-actions { flex-direction: row; width: 100%; }
}

/* ══ ADMIN THOUGHTS ══ */
.adm-thought-zone { padding: 0 40px 60px; }

.adm-thought-list { display: flex; flex-direction: column; gap: 12px; }

.adm-thought-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}

.adm-thought-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }

.adm-thought-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--grad);
  flex-shrink: 0;
  text-align: center;
}

.adm-thought-num-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  line-height: 1;
}

.adm-thought-num-val {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.adm-thought-text {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.adm-thought-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ══ ADMIN VIDEOS ══ */
.adm-video-zone { padding: 0 40px 60px; }

.adm-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.adm-video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t);
}

.adm-video-card:hover { box-shadow: var(--shadow-md); }

.adm-video-thumb {
  width: 90px;
  height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad);
  position: relative;
}

.adm-video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.adm-video-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.adm-video-thumb-fallback i { font-size: 24px; color: rgba(255,255,255,0.5); }

.adm-video-play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
}

.adm-video-play-badge i { font-size: 20px; color: rgba(255,255,255,0.9); }

.adm-video-info { flex: 1; min-width: 0; }

.adm-video-title {
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.adm-video-id { font-size: 11px; color: var(--text-3); font-family: monospace; }

.adm-video-del-btn { flex-shrink: 0; }

/* Preview miniature dans modal */
.adm-vid-thumb-preview {
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--grad);
}

.adm-vid-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }

.adm-vid-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
}

.adm-vid-thumb-overlay i { font-size: 40px; color: rgba(255,255,255,0.9); }

/* ══ ADMIN PORTFOLIO ══ */
.adm-portfolio-zone { padding: 0 40px 60px; }

.adm-pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.adm-pf-item {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.adm-pf-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.adm-pf-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}

.adm-pf-item:hover .adm-pf-overlay { background: rgba(0,0,0,0.45); }

.adm-pf-del-btn {
  background: rgba(220,38,38,0.9);
  border: none; color: #fff;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.adm-pf-item:hover .adm-pf-del-btn { opacity: 1; transform: scale(1); }
.adm-pf-del-btn:hover { background: #b91c1c; }

@media (max-width: 700px) {
  .adm-thought-zone,
  .adm-video-zone,
  .adm-portfolio-zone { padding: 0 16px 40px; }
  .adm-thought-card { flex-wrap: wrap; }
  .adm-video-grid { grid-template-columns: 1fr; }
  .adm-pf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══ PAGE MEDITATION DETAIL ══ */
.med-detail-page {
  background: var(--bg);
  min-height: 100dvh;
}

.med-detail-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.med-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  margin-bottom: 36px;
}

.med-back-btn:hover { background: var(--bg); color: var(--text); border-color: var(--text-3); }
.med-back-btn i     { font-size: 16px; }

.med-detail-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.med-detail-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
}

.med-detail-divider {
  width: 40px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-bottom: 32px;
}

.med-detail-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 18px;
}

/* ══════════════════════════════════════════
   READER — PAGE DE LECTURE
══════════════════════════════════════════ */
.reader-page {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ── Header livre ── */
.reader-book-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.reader-cover-wrap {
  width: 110px;
  height: 150px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  background: var(--grad);
}

.reader-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-cover-fallback i { font-size: 40px; color: rgba(255,255,255,0.6); }

.reader-book-meta { flex: 1; min-width: 0; }

.reader-book-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.reader-book-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.15;
}

.reader-book-author {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 12px;
}

.reader-book-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 560px;
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
}

.reader-back-btn:hover { background: var(--bg-soft); color: var(--text); }

/* ── Body : sidebar + main ── */
.reader-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100dvh - var(--nav-h) - 215px);
  min-height: 500px;
}

/* ── Sidebar ── */
.reader-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-soft);
  padding: 24px 16px;
  gap: 0;
}

.reader-sidebar::-webkit-scrollbar { width: 4px; }
.reader-sidebar::-webkit-scrollbar-track { background: transparent; }
.reader-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Contrôles */
.reader-controls {
  background: var(--bg);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.reader-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reader-duration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-ctrl-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Toggle switch */
.reader-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.reader-toggle.on { background: var(--blue); }

.reader-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  display: block;
}

.reader-toggle.on .reader-toggle-knob { transform: translateX(18px); }

/* Durée */
.reader-duration-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all var(--t);
}

.reader-duration-btn:hover { background: rgba(0,58,112,0.06); border-color: var(--blue); }

.reader-duration-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-lt);
}

.reader-duration-editor input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  margin-bottom: 8px;
}

.reader-duration-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#reader-duration-preview {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* Sommaire */
.reader-sommaire-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-left: 4px;
}

.reader-sommaire-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }

.reader-sommaire-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  color: var(--text-3);
}

.reader-sommaire-item:hover { background: var(--bg); color: var(--text-2); }

.reader-sommaire-item.active {
  background: rgba(0,58,112,0.08);
  color: var(--blue);
}

.reader-sommaire-num {
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}

.reader-sommaire-item.active .reader-sommaire-num {
  background: var(--blue);
  color: #fff;
}

.reader-sommaire-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Zone lecture principale ── */
.reader-main {
  flex: 1;
  overflow-y: auto;
  padding: 48px 60px;
  position: relative;
  scroll-behavior: smooth;
}

.reader-main::-webkit-scrollbar { width: 6px; }
.reader-main::-webkit-scrollbar-track { background: transparent; }
.reader-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.reader-chapter-inner { max-width: 680px; margin: 0 auto; }
.reader-chapter-inner.fade-in-up { animation: fadeInUp 0.5s ease; }

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

.reader-chapter-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-lt);
}

.reader-chapter-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-2);
  font-weight: 400;
}

/* ── Lecture assistée : phrases ── */
.reader-sentence {
  display: inline;
  transition: all 0.4s ease;
  border-radius: 4px;
  padding: 1px 2px;
  color: var(--text-3);
}

.reader-sentence.past {
  color: var(--text-3);
  opacity: 0.45;
}

.reader-sentence.highlighted {
  color: var(--text);
  font-weight: 600;
  font-size: 1.06em;
  background: rgba(0,58,112,0.07);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hint passage au chapitre suivant */
.reader-chapter-next-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  padding: 20px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.5;
}

.reader-chapter-next-hint i { font-size: 16px; animation: scrollBounce 2s ease infinite; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Splash chapitre ── */
.reader-splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reader-splash.visible  { opacity: 1; }
.reader-splash.hiding   { opacity: 0; }

.reader-splash-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0 40px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Fin ── */
.reader-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 24px;
  text-align: center;
}

.reader-finish-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reader-finish-line {
  width: 60px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.reader-finish-title {
  font-size: 3rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reader-finish-sub {
  font-size: 14px;
  color: var(--text-3);
}

/* ── Bouton mobile sommaire ── */
.reader-mob-summary-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 300;
  width: 50px; height: 50px;
  border-radius: var(--r-full);
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: 22px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,58,112,0.35);
  transition: transform var(--t);
}

.reader-mob-summary-btn:hover { transform: scale(1.06); }

.reader-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.reader-sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Bouton ligne suivante (lecture assistée) */
.rd-next-line-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,58,112,0.35);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  z-index: 100;
}

.rd-next-line-btn:hover {
  background: #002d5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,58,112,0.45);
}

.rd-next-line-btn:active { transform: scale(0.94); }

@media (max-width: 768px) {
  .rd-next-line-btn { bottom: 24px; right: 20px; width: 48px; height: 48px; font-size: 20px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .reader-book-header  { padding: 20px 16px; gap: 16px; }
  .reader-cover-wrap   { width: 80px; height: 110px; }
  .reader-body         { height: calc(100dvh - var(--nav-h) - 175px); }

  .reader-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: min(280px, 88vw);
    height: 100dvh;
    z-index: 300;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  }

  .reader-sidebar.mob-open { left: 0; }

  .reader-sidebar-overlay { display: block; }
  .reader-mob-summary-btn { display: flex; }

  .reader-main { padding: 28px 20px; }
  .reader-chapter-text { font-size: 15px; }
}


/* ══════════════════════════════════════════
   LECTEUR DE LIVRE
══════════════════════════════════════════ */

/* Page wrapper */
.rd-page {
  min-height: 100dvh;
  background: #F9F8F6;
  display: flex;
  flex-direction: column;
}

/* ── Hero couverture ── */
.rd-hero {
  position: relative;
  background: linear-gradient(130deg, #062B45 0%, #1a3a2a 55%, #2c2800 100%);
  overflow: hidden;
}

.rd-hero-bg {
  position: absolute; inset: 0;
  background-size: 300% 300%;
  animation: gradientMove 14s ease infinite;
  background: linear-gradient(90deg,#003A70 0%,#062B45 20%,#2E5E4E 55%,#6B7F2A 80%,#A6A11A 100%);
  opacity: 0.55;
}

.rd-hero-inner {
  position: relative; z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 52px;
  display: flex;
  gap: 44px;
  align-items: flex-start;
}

.rd-cover {
  width: 130px;
  height: 186px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #003A70, #2E5E4E);
  display: flex; align-items: center; justify-content: center;
}

.rd-cover img { width: 100%; height: 100%; object-fit: cover; }
.rd-cover-fallback i { font-size: 40px; color: rgba(255,255,255,0.4); }

.rd-hero-text { flex: 1; padding-top: 4px; }

.rd-hero-meta {
  font-size: 10px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.rd-hero-title {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 600; color: #fff;
  line-height: 1.1; margin-bottom: 8px;
}

.rd-hero-author {
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-style: italic; margin-bottom: 16px;
}

.rd-hero-desc {
  font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.7; max-width: 480px; margin-bottom: 28px;
}

.rd-btn-start {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  color: #fff; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t);
}

.rd-btn-start:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

/* ── Zone principale ── */
.rd-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: calc(100dvh - 64px);
}

/* ── Sidebar desktop ── */
.rd-sidebar {
  background: #fff;
  border-right: 1px solid #ECEAE5;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 28px 22px 40px;
  gap: 0;
}

/* ── Drawer mobile ── */
.rd-drawer {
  position: fixed;
  top: 0; left: -100%;
  width: min(300px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 1200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: left var(--t-slow);
  box-shadow: 4px 0 32px rgba(0,0,0,0.1);
}

.rd-drawer.open { left: 0; }

.rd-drawer-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #ECEAE5;
  flex-shrink: 0;
}

.rd-drawer-title {
  font-size: 15px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rd-drawer-close {
  background: #F5F4F2; border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-2); cursor: pointer;
  transition: background var(--t);
}

.rd-drawer-close:hover { background: var(--border); }

.rd-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-slow);
}

.rd-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Contenu sidebar / drawer partagé */
.rd-assist-block {
  background: #F9F8F6;
  border: 1px solid #ECEAE5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.rd-assist-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rd-assist-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}

.rd-assist-hint { font-size: 11px; color: var(--text-3); }

/* Switch */
.rd-switch {
  width: 42px; height: 22px;
  border-radius: 11px;
  background: #DDD;
  border: none; cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.rd-switch.on { background: var(--blue); }

.rd-switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rd-switch.on .rd-switch-thumb { transform: translateX(20px); }

/* Délai */
.rd-delay-row {
  display: flex; align-items: center;
  justify-content: space-between;
  opacity: 0.38;
  transition: opacity 0.3s ease;
}

.rd-delay-row.active { opacity: 1; }

.rd-delay-label { font-size: 12px; color: var(--text-3); }

.rd-delay-chip {
  font-family: var(--font);
  font-size: 13px; font-weight: 700;
  color: var(--blue);
  background: rgba(0,58,112,0.08);
  border: 1px solid rgba(0,58,112,0.15);
  border-radius: 8px;
  padding: 4px 14px;
  cursor: pointer;
  transition: background var(--t);
  display: flex; align-items: center; gap: 2px;
}

.rd-delay-chip:hover { background: rgba(0,58,112,0.14); }

/* TOC */
.rd-toc-heading {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
}

.rd-toc { display: flex; flex-direction: column; gap: 1px; }

.rd-toc-btn {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px;
  background: none; border: none; cursor: pointer;
  text-align: left; border-radius: 8px;
  transition: background var(--t);
  width: 100%;
}

.rd-toc-btn:hover { background: #F5F4F2; }

.rd-toc-btn.active { background: rgba(0,58,112,0.07); }

.rd-toc-n {
  font-size: 11px; font-weight: 700;
  color: var(--text-3); flex-shrink: 0;
  margin-top: 2px; min-width: 22px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0;
}

.rd-toc-t {
  font-size: 13px; font-weight: 400;
  color: var(--text-2); line-height: 1.4;
  transition: color var(--t), font-weight var(--t);
}

.rd-toc-btn.active .rd-toc-n { color: var(--blue); }
.rd-toc-btn.active .rd-toc-t { color: var(--blue); font-weight: 600; }

/* ── Zone de lecture ── */
.rd-reader {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}

/* Barre supérieure */
.rd-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249,248,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ECEAE5;
  display: flex; align-items: center;
  padding: 0 40px;
  height: 52px;
  gap: 16px;
  flex-shrink: 0;
}

.rd-topbar-settings {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 12px;
  font-weight: 500; color: var(--text-2);
  background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  transition: background var(--t), color var(--t);
}

.rd-topbar-settings:hover { background: #ECEAE5; color: var(--text); }
.rd-topbar-settings i { font-size: 16px; }

.rd-topbar-progress {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 500;
  color: var(--text-3); letter-spacing: 0.3px;
}

.rd-topbar-back {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-3);
  padding: 6px; border-radius: 8px;
  transition: background var(--t), color var(--t);
  display: flex; align-items: center;
}

.rd-topbar-back:hover { background: #ECEAE5; color: var(--text); }

/* Intro chapitre */
.rd-intro {
  position: absolute; inset: 0; z-index: 30;
  background: #F9F8F6;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}

.rd-intro.visible { opacity: 1; pointer-events: auto; }

.rd-intro-inner { text-align: center; padding: 0 32px; }

.rd-intro-num {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}

.rd-intro-title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 600; color: var(--text); line-height: 1.15;
  animation: rd-fadein 0.5s ease forwards;
}

@keyframes rd-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Écran Fin */
.rd-fin {
  flex: 1;
  flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px;
  gap: 0;
}

.rd-fin-inner {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 40px;
}

.rd-fin-rule {
  flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}

.rd-fin-rule:last-child {
  background: linear-gradient(to left, transparent, var(--border));
}

.rd-fin-word {
  font-size: 1.2rem; font-weight: 300;
  letter-spacing: 8px; text-transform: uppercase;
  color: var(--text-3);
}

.rd-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font); font-size: 13px;
  font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--t);
}

.rd-back-btn:hover { border-color: var(--blue); color: var(--blue); }

/* Contenu */
.rd-content {
  flex: 1;
  padding: 56px 72px 48px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Mode normal — texte bien noir et lisible */
.rd-prose p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: #000 !important;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* Mode assisté */
.rd-lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 45dvh; }

.rl {
  display: block;
  font-size: 17px;
  line-height: 1.75;
  padding: 7px 14px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.rl-active {
  font-size: 21px;
  font-weight: 700;
  color: #0D0D0D;
  background: rgba(0,58,112,0.04);
  border-left-color: var(--blue);
  padding-left: 20px;
}

.rl-past { opacity: 0.2; color: #333; }
.rl-future { opacity: 0.45; color: #555; }

/* Navigation pied */
.rd-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 72px 44px;
  max-width: 720px; margin: 0 auto; width: 100%;
  box-sizing: border-box;
}

.rd-foot-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: #fff;
  border: 1px solid #ECEAE5;
  border-radius: var(--r-full);
  padding: 10px 22px; cursor: pointer;
  transition: all var(--t);
}

.rd-foot-btn:hover { border-color: var(--blue); color: var(--blue); }
.rd-foot-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.rd-foot-btn-next { margin-left: auto; }

/* ── Modal durée ── */
.rd-modal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.rd-modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 24px;
  width: 100%; max-width: 260px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.16);
  text-align: center;
}

.rd-modal-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.rd-modal-sub   { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }

.rd-modal-input {
  width: 100%; height: 58px;
  text-align: center;
  font-family: var(--font); font-size: 30px; font-weight: 700;
  color: var(--blue);
  background: rgba(0,58,112,0.05);
  border: 2px solid rgba(0,58,112,0.18);
  border-radius: 12px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color var(--t);
}

.rd-modal-input:focus { border-color: var(--blue); }

.rd-modal-foot { display: flex; gap: 10px; }

.rd-modal-btn {
  flex: 1; padding: 10px;
  border-radius: var(--r-full);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--t);
}

.rd-modal-cancel  { background: #F5F4F2; color: var(--text-2); }
.rd-modal-cancel:hover { background: #ECEAE5; }
.rd-modal-confirm { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(0,58,112,0.28); }
.rd-modal-confirm:hover { background: #002d5a; }

/* Bouton ligne suivante (lecture assistée) */
.rd-next-line-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,58,112,0.35);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  z-index: 100;
}

.rd-next-line-btn:hover {
  background: #002d5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,58,112,0.45);
}

.rd-next-line-btn:active { transform: scale(0.94); }

@media (max-width: 768px) {
  .rd-next-line-btn { bottom: 24px; right: 20px; width: 48px; height: 48px; font-size: 20px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rd-body { grid-template-columns: 1fr; }
  .rd-sidebar { display: none; } /* drawer mobile à la place */

  .rd-reader { height: auto; min-height: calc(100dvh - 52px); }
  .rd-topbar { padding: 0 16px; }
  .rd-topbar-settings i ~ span { display: inline; }

  .rd-content  { padding: 36px 20px 40px; }
  .rd-foot     { padding: 16px 20px 36px; }
  .rd-prose p  { font-size: 16px; }
  .rl-active   { font-size: 18px; }

  .rd-hero-inner { flex-direction: column; gap: 24px; padding: 36px 20px 40px; }
  .rd-cover { width: 100px; height: 143px; }

  /* Sidebar dans le drawer mobile inclut le padding */
  .rd-drawer > .rd-assist-block,
  .rd-drawer > .rd-toc-section {
    margin: 0 16px;
  }

  .rd-drawer .rd-assist-block { margin-top: 16px; }
}

/* ══ PAGE MEDITATION DETAIL ══ */
.med-detail-page {
  background: var(--bg);
  min-height: 100dvh;
}

.med-detail-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.med-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--text-2); cursor: pointer; transition: all var(--t);
  margin-bottom: 36px;
}

.med-back-btn:hover { background: var(--bg); color: var(--text); border-color: var(--text-3); }
.med-back-btn i     { font-size: 16px; }

.med-detail-date {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}

.med-detail-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600; line-height: 1.2; color: var(--text); margin-bottom: 28px;
}

.med-detail-divider {
  width: 40px; height: 3px;
  background: var(--grad); border-radius: 2px; margin-bottom: 32px;
}

.med-detail-content p {
  font-size: 16px; font-weight: 400;
  line-height: 1.85; color: var(--text-2); margin-bottom: 18px;
}

/* ══ ADMIN SOCIALS ══ */
.adm-zone {
  padding: 24px var(--sp-md) 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.adm-socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.adm-socials-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.adm-socials-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.adm-socials-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.adm-socials-head p {
  font-size: 12px;
  color: var(--text-3);
}

.adm-socials-row {
  margin-bottom: 14px;
}

.adm-socials-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.adm-socials-label i { font-size: 14px; }

.adm-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--t);
  box-sizing: border-box;
}

.adm-input:focus {
  border-color: var(--blue);
  background: var(--bg);
}

.adm-socials-foot {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .adm-socials-grid { grid-template-columns: 1fr; }
}


/* ══ CONTACT TABBAR ══ */
.contact-tabs {
  display: flex;
  gap: 6px;
  max-width: var(--content-max);
  margin: 0 auto 4px;
  padding: 0 var(--sp-md);
}

.contact-tab {
  flex: 1;
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-soft);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t);
}

.contact-tab:hover {
  border-color: rgba(0,58,112,0.25);
  color: var(--text-2);
}

.contact-tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.contact-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text-3);
}

.contact-empty i    { font-size: 32px; opacity: 0.4; }
.contact-empty p    { font-size: 13px; }

