/* ══════════════════════════════════════
   VARIABLES ROOT - MODE DARK AMÉLIORÉ
══════════════════════════════════════ */
:root {
  /* Mode clair (par défaut) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e5e7eb;
  --hero-gradient-start: #0a0a0b;
  --hero-gradient-mid: #1e1c1c;
  --hero-gradient-end: #111010;
}

body.dark-mode {
  /* Mode sombre amélioré */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --hero-gradient-start: #0d1117;
  --hero-gradient-mid: #1c2128;
  --hero-gradient-end: #161b22;
}

body.dark-mode .danger-hero-bg {
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
}

body.dark-mode .danger-hero-bg::before {
  background-image:
    radial-gradient(circle at 20% 40%, rgba(88, 166, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(138, 108, 238, 0.05) 0%, transparent 50%);
}

body.dark-mode .story-section,
body.dark-mode .media-section,
body.dark-mode .values-section,
body.dark-mode .text-section {
  background: var(--bg-primary);
}

body.dark-mode .story-section.alt,
body.dark-mode .media-section.alt,
body.dark-mode .values-section.alt,
body.dark-mode .text-section.alt {
  background: var(--bg-secondary);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ══ BREADCRUMB ══ */
.breadcrumb-bar {
  background: var(--section1);
  border-bottom: 1px solid var(--border);
  padding: .7rem 0;
}
.breadcrumb-inner {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-secondary);
}
.breadcrumb-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: .18s;
}
.breadcrumb-inner a:hover { color: var(--text-primary); }
.breadcrumb-sep { opacity: .4; font-size: .7rem; }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* ══════════════════════════════════════
   PAGE DANGER OCCULTISME — HERO
══════════════════════════════════════ */
.danger-hero {
  height: 62vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
.danger-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-gradient-start, #0a0a0b) 0%, var(--hero-gradient-mid, #1e1c1c) 50%, var(--hero-gradient-end, #111010) 100%);
  z-index: 0;
}
.danger-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.025) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.02)  0%, transparent 50%);
  z-index: 1;
}
.danger-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.danger-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 700px;
  width: 100%;
}
.danger-hero-eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeInUp .8s ease-out .3s forwards;
}
.danger-hero-eyebrow::before,
.danger-hero-eyebrow::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,.22);
}
.danger-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
  opacity: 0;
  animation: fadeInUp .8s ease-out .5s forwards;
}
.danger-hero-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.25);
  margin: 0 auto 1.2rem;
  opacity: 0;
  animation: fadeInUp .8s ease-out .65s forwards;
}
.danger-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.56);
  line-height: 1.8;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp .8s ease-out .8s forwards;
}
.danger-hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeInUp .8s ease-out 1.2s forwards;
  color: rgba(255,255,255,.22);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.danger-hero-scroll-line {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
}
.danger-hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.5);
  animation: scrollDown 1.6s ease-in-out infinite;
}

/* ══════════════════════════════════════
   SECTIONS GÉNÉRIQUES
══════════════════════════════════════ */
.danger-page { padding-top: 64px; }

.danger-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background .3s;
}
.danger-section.alt { background: var(--section1); }

.danger-inner {
  max-width: 90%;
  margin: 0 auto;
}

/* En-tête de section */
.danger-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}
.danger-eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .6rem;
}
.danger-eyebrow::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* ══════════════════════════════════════
   STORY SECTION  (ex .story-section)
══════════════════════════════════════ */
.story-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.story-section > * { max-width: 90%; margin-left: auto; margin-right: auto; }

.story-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--sectiontitlecolor);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary, #6f42c1);
  padding-left: 1rem;
  text-transform: uppercase;
}

.story-text {
  font-size: .96rem;
  color: var(--text-secondary);
  line-height: 1.82;
  max-width: 90%;
}
.story-text strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════
   MEDIA SECTION  (vidéos + image)
══════════════════════════════════════ */
.media-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.media-section.alt { background: var(--section1); }

.media-section > * {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.media-section-inner {
  max-width: 90%;
  margin: 0 auto;
}

/* En-tête style action-header */
.media-header {
  margin-bottom: 2.5rem;
}
.media-eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .6rem;
}
.media-eyebrow::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.media-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--sectiontitlecolor);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Layout vidéos + image */
.media-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Colonne des vidéos */
.video-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid var(--border);
}

/* Colonne image */
.image-column {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--section1);
}
.image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.image-column:hover img { transform: scale(1.03); }

/* ══════════════════════════════════════
   VALUES SECTION  (liste de superstitions)
══════════════════════════════════════ */
.values-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.values-section.alt { background: var(--section1); }

.values-section > * {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.values-section-inner {
  max-width: 90%;
  margin: 0 auto;
}

.values-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--sectiontitlecolor);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border-left: 4px solid var(--primary, #6f42c1);
  padding-left: 1rem;
}

.values-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #6f42c1);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 2rem auto 1rem;
  max-width: 90%;
}

.values-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.values-list .values-subtitle {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.values-list li {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: .45rem 0 .45rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.values-list li:last-child { border-bottom: none; }
.values-list li::before {
  content: '•';
  color: var(--primary, #6f42c1);
  font-weight: 700;
  position: absolute;
  left: .3rem;
  top: .45rem;
}

.values-text {
  font-size: .96rem;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 1.5rem;
}
.values-text strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════
   TEXT SECTION  (ex .text-section)
══════════════════════════════════════ */
.text-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.text-section.alt { background: var(--section1); }

.text-section > * {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.text-section-inner {
  max-width: 90%;
  margin: 0 auto;
}

.text-title,
.text-titlee {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--sectiontitlecolor);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  border-left: 4px solid var(--primary, #428ec1);
  padding-left: 1rem;
}

.text-paragraph {
  font-size: .96rem;
  line-height: 1.82;
  color: var(--text-secondary);
  font-family: 'Inter', 'Roboto', sans-serif;
}
.text-paragraph strong { color: var(--text-primary); font-weight: 600; }

/* Spans = éléments de liste en italic */
.text-paragraph span {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-style: italic;
  padding: .4rem 0 .4rem 1.4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.text-paragraph span:last-of-type { border-bottom: none; }
.text-paragraph span::before {
  content: '•';
  position: absolute;
  left: .2rem;
  top: .4rem;
  font-size: 1rem;
  color: var(--primary, #428ec1);
  font-style: normal;
}

/* ══════════════════════════════════════
   SEPARATEUR DE SECTION
══════════════════════════════════════ */
.section-divider-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-divider-line::before,
.section-divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .danger-header { grid-template-columns: 1fr; }
  .media-layout  { grid-template-columns: 1fr; }
  .image-column  { max-height: 340px; }
}
@media (max-width: 600px) {
  .danger-section,
  .story-section,
  .media-section,
  .values-section,
  .text-section { padding: 3.5rem 0; }
  .story-title,
  .media-title,
  .values-title,
  .text-title,
  .text-titlee { font-size: 1.5rem; }
}