/* =====================================================
   article-humeur.css — Guide "Quoi regarder selon ton humeur"
   Regarde Movie — Design cinéma premium

   Signature : les blocs d'humeur utilisent un système
   de "pellicule de film" avec bandes latérales colorées
   et compteurs de films style bobine.
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Variables ── */
:root {
  --humeur-accent:    #ff00cc;
  --humeur-red:       #e50914;
  --humeur-gold:      #f5c518;
  --humeur-dark:      #0a0a0a;
  --humeur-surface:   #111111;
  --humeur-card:      #181818;
  --humeur-border:    rgba(255,255,255,0.07);
  --humeur-text:      #f0f0f0;
  --humeur-muted:     #888;
  --humeur-dim:       #bbb;
  --radius-lg:        16px;
  --radius-sm:        8px;
}

/* ── Reset article ── */
.humeur-page {
  background: var(--humeur-dark);
  color: var(--humeur-text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* =====================================================
   HERO — Ouverture cinématographique
===================================================== */
.humeur-hero {
  position: relative;
  background: var(--humeur-surface);
  padding: 100px 24px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--humeur-border);
}

/* Bandes de pellicule déco en fond */
.humeur-hero::before,
.humeur-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 18px,
    rgba(255,255,255,0.04) 18px,
    rgba(255,255,255,0.04) 32px
  );
}
.humeur-hero::before { left: 0; }
.humeur-hero::after  { right: 0; }

/* Glow accent rose */
.humeur-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,0,204,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.humeur-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.humeur-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,0,204,0.1);
  border: 1px solid rgba(255,0,204,0.25);
  color: var(--humeur-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.humeur-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--humeur-text);
  margin: 0 0 24px;
}

.humeur-hero-title em {
  font-style: normal;
  color: var(--humeur-accent);
  display: block;
}

.humeur-hero-sub {
  font-size: 1.1rem;
  color: var(--humeur-dim);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
}

.humeur-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--humeur-muted);
}

.humeur-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--humeur-muted);
}

.humeur-tag {
  background: var(--humeur-red);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Navigation rapide par humeur ── */
.humeur-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--humeur-border);
}

.humeur-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--humeur-card);
  border: 1px solid var(--humeur-border);
  color: var(--humeur-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.humeur-nav-pill:hover {
  border-color: var(--humeur-accent);
  color: var(--humeur-accent);
  background: rgba(255,0,204,0.06);
}

/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */
.humeur-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* Intro chapeau */
.humeur-intro {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  line-height: 1.75;
  color: var(--humeur-dim);
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--humeur-border);
}

.humeur-intro strong {
  color: var(--humeur-text);
  font-style: italic;
}

/* =====================================================
   BLOC HUMEUR — signature pellicule
===================================================== */
.mood-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.mood-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.mood-emoji-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  position: relative;
}

/* Couleur unique par humeur */
.mood-laugh  .mood-emoji-badge { background: rgba(245,197,24,0.12);  border: 1px solid rgba(245,197,24,0.2); }
.mood-scared .mood-emoji-badge { background: rgba(229,9,20,0.12);    border: 1px solid rgba(229,9,20,0.2); }
.mood-cry    .mood-emoji-badge { background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.2); }
.mood-action .mood-emoji-badge { background: rgba(249,115,22,0.12);  border: 1px solid rgba(249,115,22,0.2); }
.mood-think  .mood-emoji-badge { background: rgba(139,92,246,0.12);  border: 1px solid rgba(139,92,246,0.2); }
.mood-good   .mood-emoji-badge { background: rgba(34,197,94,0.12);   border: 1px solid rgba(34,197,94,0.2); }
.mood-night  .mood-emoji-badge { background: rgba(99,102,241,0.12);  border: 1px solid rgba(99,102,241,0.2); }

.mood-title-wrap h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 1px;
  color: var(--humeur-text);
  margin: 0 0 4px;
  line-height: 1;
}

.mood-title-wrap p {
  font-size: 0.88rem;
  color: var(--humeur-muted);
  margin: 0;
}

/* ── Barre de couleur signature ── */
.mood-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 28px;
  background: var(--humeur-border);
  position: relative;
  overflow: hidden;
}
.mood-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40%;
  border-radius: 2px;
  animation: barSlide 1s ease forwards;
}
@keyframes barSlide {
  from { width: 0; }
  to   { width: 40%; }
}

.mood-laugh  .mood-bar::after { background: #f5c518; }
.mood-scared .mood-bar::after { background: #e50914; }
.mood-cry    .mood-bar::after { background: #3b82f6; }
.mood-action .mood-bar::after { background: #f97316; }
.mood-think  .mood-bar::after { background: #8b5cf6; }
.mood-good   .mood-bar::after { background: #22c55e; }
.mood-night  .mood-bar::after { background: #6366f1; }

/* Texte d'intro de l'humeur */
.mood-intro-text {
  font-size: 1rem;
  color: var(--humeur-dim);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* =====================================================
   LISTE DE FILMS — style bobine
===================================================== */
.film-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.film-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--humeur-card);
  border: 1px solid var(--humeur-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.film-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.film-item:hover {
  border-color: rgba(255,255,255,0.12);
  background: #1e1e1e;
  transform: translateX(4px);
}
.film-item:hover::before { opacity: 1; }

/* Couleur de la barre left par humeur */
.mood-laugh  .film-item::before { background: #f5c518; }
.mood-scared .film-item::before { background: #e50914; }
.mood-cry    .film-item::before { background: #3b82f6; }
.mood-action .film-item::before { background: #f97316; }
.mood-think  .film-item::before { background: #8b5cf6; }
.mood-good   .film-item::before { background: #22c55e; }
.mood-night  .film-item::before { background: #6366f1; }

/* Numéro style pellicule */
.film-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  min-width: 36px;
  text-align: center;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.film-item:hover .film-num { color: rgba(255,255,255,0.2); }

.film-info {
  flex: 1;
}

.film-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--humeur-text);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.film-year {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--humeur-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.film-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.film-type.movie { background: rgba(229,9,20,0.15); color: #e50914; }
.film-type.serie { background: rgba(255,0,204,0.12); color: var(--humeur-accent); }

.film-desc {
  font-size: 0.88rem;
  color: var(--humeur-muted);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   TIP BOX — conseil Regarde Movie
===================================================== */
.tip-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 0, 204, 0.05);
  border: 1px solid rgba(255, 0, 204, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0 0;
}

.tip-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,0,204,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tip-content strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--humeur-accent);
  margin-bottom: 6px;
}

.tip-content p {
  font-size: 0.88rem;
  color: var(--humeur-dim);
  line-height: 1.6;
  margin: 0;
}

.tip-content em { color: var(--humeur-text); font-style: italic; }

/* =====================================================
   SÉPARATEUR PELLICULE
===================================================== */
.film-strip-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 64px 0;
  overflow: hidden;
  opacity: 0.15;
}

.film-strip-divider span {
  display: block;
  width: 32px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 2px;
  flex-shrink: 0;
  margin-right: 4px;
}

/* =====================================================
   CONCLUSION
===================================================== */
.humeur-conclusion {
  background: var(--humeur-surface);
  border: 1px solid var(--humeur-border);
  border-radius: 20px;
  padding: 48px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.humeur-conclusion::before {
  content: '🎬';
  position: absolute;
  right: 32px;
  top: 28px;
  font-size: 4rem;
  opacity: 0.06;
}

.humeur-conclusion-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--humeur-text);
  margin: 0 0 20px;
}

.humeur-conclusion p {
  font-size: 1rem;
  color: var(--humeur-dim);
  line-height: 1.75;
  margin: 0 0 16px;
}

.humeur-conclusion p:last-child { margin-bottom: 0; }

.humeur-conclusion strong { color: var(--humeur-accent); }

.humeur-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--humeur-accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 24px;
  transition: opacity 0.2s, transform 0.15s;
}
.humeur-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 640px) {
  .humeur-hero { padding: 80px 20px 60px; }
  .humeur-hero-title { font-size: 3.2rem; }
  .humeur-content { padding: 40px 16px 80px; }
  .humeur-nav { gap: 8px; }
  .humeur-nav-pill { font-size: 0.75rem; padding: 6px 12px; }
  .mood-title-wrap h2 { font-size: 1.8rem; }
  .film-item { padding: 16px; }
  .film-num { font-size: 1.5rem; min-width: 28px; }
  .humeur-conclusion { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .film-item { transition: none; }
  .mood-bar::after { animation: none; width: 40%; }
}
