/**
 * ======================================================
 * MOVIES.CSS - Styles de la page Films
 * ======================================================
 *
 * Design system : moodboard V3 (page_movies_cine_delices)
 * Chargé après base.css — variables CSS déjà définies
 */

/* ── FULL-BLEED : écrase le max-width/padding du body pour cette page ── */
body.movies-page {
  max-width: unset;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}
/* main garde le padding-top pour le header fixe */
body.movies-page main {
  padding-top: var(--nav-h);
}

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: linear-gradient(135deg, #08101a 0%, #142234 50%, #0b1522 100%);
  /* Flex container so page-hero__content can fill the full height
     and align-items:center on it actually centers content vertically */
  display: flex;
  flex-direction: column;
}

/* Couche décorative clippée — le hero lui-même n'a plus overflow:hidden pour laisser passer le dropdown */
.page-hero__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 55%, rgba(194, 48, 24, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 80% at 18% 28%, rgba(196, 160, 82, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 105%, rgba(20, 34, 52, 0.98) 0%, transparent 55%);
}

.page-hero__reel {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(196, 160, 82, 0.1);
  animation: rotateReel 30s linear infinite;
}
.page-hero__reel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 160, 82, 0.06);
}
.page-hero__reel::after {
  content: "";
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 160, 82, 0.05) 0%, transparent 70%);
}
.page-hero__reel--1 { width: 200px; height: 200px; right: -55px; top: -55px; }
.page-hero__reel--2 {
  width: 280px; height: 280px; left: -90px; bottom: -90px;
  animation-direction: reverse;
  animation-duration: 48s;
}
@keyframes rotateReel { to { transform: rotate(360deg); } }

.page-hero__scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.032) 2px, rgba(0,0,0,.032) 4px);
}
.page-hero__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 100% 110% at 50% 105%, var(--bleu-nuit) 0%, rgba(20,34,52,.55) 35%, transparent 65%);
}

.page-hero__content {
  position: relative; z-index: 5; flex: 1;
  display: flex; flex-direction: row; align-items: center; gap: 48px;
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto;
}

/* Colonne gauche du hero */
.page-hero__left {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}

/* Colonne droite : barre de recherche (sans encadrement) */
.page-hero__search-panel,
.page-hero__search-col {
  flex: 0 0 430px;
  padding: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
.page-hero__search-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-title); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(196, 160, 82, 0.55);
  margin-bottom: 12px;
}

/* Ligne stats + tags genre (côte à côte) */
.page-hero__meta-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}
.page-hero__meta-row .page-hero__stats {
  margin-top: 0; animation: none; flex-shrink: 0;
}
.page-hero__meta-row .quick-tags-row {
  padding-top: 0; margin-top: 0; border-top: none;
  padding-left: 20px;
  border-left: 1px solid rgba(196, 160, 82, 0.14);
}

.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-title);
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.6);
  margin-bottom: 14px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.page-hero__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 0.08em; line-height: 0.95;
  color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,.6);
  margin-bottom: 10px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.page-hero__title em { color: var(--or-titre); font-style: normal; }
.page-hero__sub {
  font-family: var(--f-editorial); font-style: italic; font-weight: 700; font-size: 1rem;
  color: rgba(232, 232, 232, 0.5);
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.page-hero__stats {
  display: flex; align-items: center; gap: 32px; margin-top: 24px;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat__num {
  font-family: var(--f-display); font-size: 2.1rem; letter-spacing: 0.06em;
  color: var(--or-titre); line-height: 1;
}
.hero-stat__label {
  font-size: 0.57rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(232, 232, 232, 0.35); font-weight: 300;
}
.hero-stat-divider { width: 1px; height: 36px; background: rgba(196, 160, 82, 0.14); }

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

.search-main-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 0;
}
/* Compatibilité movie-search-advanced.js qui cherche .search-input-wrapper */
.search-input-wrap,
.search-input-wrapper {
  flex: 1; position: relative;
}
.search-input-wrap::before {
  content: "";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none; opacity: 0.4; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4a052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Input principal */
.search__input__film,
.search-input {
  width: 100%; height: 50px;
  padding: 0 48px 0 44px;
  background: rgba(10, 18, 30, 0.65);
  border: 1px solid rgba(65, 90, 119, 0.4);
  border-radius: 12px;
  color: var(--argent); font-family: var(--f-body); font-size: 0.9rem; font-weight: 300;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search__input__film::placeholder,
.search-input::placeholder { color: rgba(232, 232, 232, 0.26); }
.search__input__film:focus,
.search-input:focus {
  border-color: rgba(196, 160, 82, 0.5);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.08);
}

/* Bouton boost (icône CPU) — doré permanent comme la djc-cta home */
.btn-search-boost {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: rgba(196, 160, 82, 0.12); border: 1.5px solid rgba(196, 160, 82, 0.45);
  cursor: pointer; color: var(--or-titre); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 0 14px rgba(196, 160, 82, 0.12);
}
.btn-search-boost:hover, .btn-search-boost.active {
  background: var(--gold-gradient);
  color: var(--bleu-nuit);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(196, 160, 82, 0.38), 0 4px 16px rgba(0,0,0,.2);
  transform: scale(1.05);
}

/* Quick tags */
.quick-tags-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(65, 90, 119, 0.15); margin-top: 18px;
}
.qt-label {
  font-family: var(--f-title); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(196, 160, 82, 0.35); flex-shrink: 0;
}
.qtag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 5px;
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid; cursor: pointer; transition: all 0.2s ease; user-select: none;
  text-decoration: none;
}
.qtag-or { color: var(--or-100); border-color: rgba(212,168,67,.28); background: rgba(212,168,67,.04); }
.qtag-or.active, .qtag-or:hover { background: rgba(212,168,67,.14); border-color: rgba(212,168,67,.6); }
.qtag-rouge { color: #e84020; border-color: rgba(194,48,24,.28); background: rgba(194,48,24,.04); }
.qtag-rouge.active, .qtag-rouge:hover { background: rgba(194,48,24,.14); border-color: rgba(194,48,24,.55); }
.qtag-bleu { color: #7ba7bc; border-color: rgba(123,167,188,.28); background: rgba(123,167,188,.04); }
.qtag-bleu.active, .qtag-bleu:hover { background: rgba(123,167,188,.14); border-color: rgba(123,167,188,.55); }
.qtag-vert { color: #4caf82; border-color: rgba(76,175,130,.28); background: rgba(76,175,130,.04); }
.qtag-vert.active, .qtag-vert:hover { background: rgba(76,175,130,.14); border-color: rgba(76,175,130,.55); }
.qtag-violet { color: #c084fc; border-color: rgba(192,132,252,.28); background: rgba(192,132,252,.04); }
.qtag-violet.active, .qtag-violet:hover { background: rgba(192,132,252,.14); border-color: rgba(192,132,252,.55); }

/* Résultats dropdown */
.search-results {
  display: none; /* caché par défaut, JS ajoute .active */
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: linear-gradient(160deg, rgba(10,20,34,.98) 0%, rgba(15,28,46,.99) 100%);
  border: 1px solid rgba(196, 160, 82, 0.2);
  border-radius: 16px; z-index: 200; overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  max-height: 480px; overflow-y: auto;
}
.search-results.active { display: block; }
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: rgba(196,160,82,.25); border-radius: 2px; }

/* Carte résultat */
.search-result-card {
  border-bottom: 1px solid rgba(65, 90, 119, 0.12);
  transition: background 0.2s ease;
}
.search-result-card:last-child { border-bottom: none; }
.search-result-card:hover,
.search-result-card.selected { background: rgba(196, 160, 82, 0.05); }
.search-result-card-link {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}
.search-result-card-poster {
  width: 64px; height: 96px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: rgba(20, 34, 52, 0.8);
  border: 1px solid rgba(65, 90, 119, 0.25);
}
.search-result-card-poster img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: saturate(0.9);
}
.search-result-card-content { min-width: 0; }
.search-result-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.search-result-card-title {
  font-family: var(--f-title); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  color: rgba(232,232,232,.92); line-height: 1.3;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.search-result-card-title-text { color: rgba(232,232,232,.92); }
.search-result-card-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(196, 160, 82, 0.15); border: 1px solid rgba(196,160,82,.35);
  color: var(--or-titre); white-space: nowrap;
}
.search-result-card-type {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 4px;
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.search-result-card-type--film {
  background: rgba(194,48,24,.15); border: 1px solid rgba(194,48,24,.35); color: #e84020;
}
.search-result-card-type--serie {
  background: rgba(123,167,188,.12); border: 1px solid rgba(123,167,188,.3); color: #7ba7bc;
}
.search-result-card-meta {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap;
}
.search-result-card-year {
  font-size: 0.65rem; font-weight: 300; color: rgba(196,160,82,.55); letter-spacing: 0.1em;
}
.search-result-card-separator { font-size: 0.6rem; color: rgba(232,232,232,.2); }
.search-result-card-genre {
  font-size: 0.6rem; font-weight: 300; color: rgba(232,232,232,.38);
  text-transform: capitalize;
}
.search-result-note {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--f-title); font-size: 0.6rem; font-weight: 700;
  color: var(--dore-clair);
}
.search-result-note svg { width: 10px; height: 10px; }
.search-result-card-overview, .search-result-card-score {
  display: none; /* masqué pour garder la liste compacte */
}
.search-result-card-arrow {
  color: rgba(196,160,82,.35); display: flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.search-result-card-arrow svg { width: 14px; height: 14px; }
.search-result-card:hover .search-result-card-arrow,
.search-result-card.selected .search-result-card-arrow {
  color: var(--or-titre); transform: translateX(3px);
}

/* Highlight du terme recherché */
.search-result-highlight {
  background: rgba(196,160,82,.22); color: var(--or-titre);
  border-radius: 2px; padding: 0 2px;
}

/* État vide / chargement / erreur */
.search-result-empty,
.search-result-loading,
.search-result-error { padding: 24px 20px; }
.search-result-empty-content,
.search-result-loading-content,
.search-result-error-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.search-result-empty-message {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 300; color: rgba(232,232,232,.5);
}
.search-result-empty-message svg { width: 18px; height: 18px; opacity: 0.5; }
.search-result-loading-content span, .search-result-error-content span {
  font-size: 0.78rem; font-weight: 300; color: rgba(232,232,232,.45);
}
/* Lien "Créer une fiche" dans la dropdown */
.search-result-empty-content .btn {
  font-size: 0.62rem; padding: 0 16px; height: 32px;
}


/* ── FILMS TOOLBAR ── */
.films-toolbar {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto 28px; padding: 52px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tb-label {
  font-size: 0.62rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(196, 160, 82, 0.82);
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.tb-label::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--or-titre); }
.tb-title {
  font-family: var(--f-display); font-size: 2.4rem; letter-spacing: 0.1em; line-height: 1;
  color: var(--or-titre); text-shadow: 0 0 28px rgba(196,160,82,.28);
}
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.view-toggle {
  display: flex; border: 1px solid rgba(65, 90, 119, 0.35); border-radius: 8px; overflow: hidden;
}
.view-btn {
  width: 36px; height: 36px; border: none; background: transparent; cursor: pointer;
  color: rgba(232, 232, 232, 0.4); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active { background: rgba(196, 160, 82, 0.12); color: var(--or-titre); }
.view-btn:hover:not(.active) { background: rgba(196,160,82,.06); color: rgba(196,160,82,.7); }

/* ── FILMS GRID ── */
.films-wrap {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto; padding: 0 0 80px;
  position: relative; z-index: 2;
}
.films-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; transition: opacity 0.3s ease;
}
.films-grid.list-view {
  grid-template-columns: 1fr 1fr; gap: 14px;
}

/* ── FCARD (vue grille) ── */
.fcard {
  position: relative; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(165deg, rgba(13,26,42,.98) 0%, rgba(20,38,58,.96) 100%) padding-box,
    rgba(65, 90, 119, 0.22) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, background 0.45s ease;
  display: flex; flex-direction: column;
}

/* Liseré doré vertical gauche */
.fcard::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 1;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(196,160,82,.10) 12%,
    rgba(196,160,82,.55) 35%,
    rgba(196,160,82,.70) 50%,
    rgba(196,160,82,.55) 65%,
    rgba(196,160,82,.10) 88%,
    transparent 100%);
  border-radius: 18px 0 0 18px;
  pointer-events: none;
}

.fcard:hover {
  transform: translateY(-8px);
  background:
    linear-gradient(165deg, rgba(13,26,42,.98) 0%, rgba(20,38,58,.96) 100%) padding-box,
    linear-gradient(135deg, #7A5A14 0%, #B8882A 18%, #F2C84B 38%, #FFE085 50%, #F2C84B 62%, #B8882A 82%, #7A5A14 100%) border-box;
  background-size: 100% 100%, 300% 300%;
  box-shadow: 0 18px 48px rgba(212,168,67,.22), 0 4px 14px rgba(0,0,0,.65);
  animation: shimmer-gold 2.5s ease infinite;
}

@keyframes shimmer-gold {
  0%   { background-position: center, 0% 50%; }
  50%  { background-position: center, 100% 50%; }
  100% { background-position: center, 200% 50%; }
}

/* ── VUE LISTE : fcard devient horizontal ── */
.films-grid.list-view .fcard {
  display: grid;
  grid-template-columns: 100px 1fr;
  flex-direction: unset;
  border-radius: 14px;
  min-height: 130px;
}
.films-grid.list-view .fcard:hover {
  transform: translateX(6px) translateY(0);
  box-shadow: 0 16px 48px rgba(0,0,0,.6), -4px 0 20px rgba(196,160,82,.07);
}
.films-grid.list-view .fcard__poster {
  aspect-ratio: unset;
  border-radius: 14px 0 0 14px;
}
.films-grid.list-view .fcard__title-area { display: none; }
.films-grid.list-view .fcard__overlay {
  background: linear-gradient(to right, transparent 55%, rgba(10,18,30,.92) 100%);
}
.films-grid.list-view .fcard__fav { top: 12px; right: 12px; }
.films-grid.list-view .fcard__body {
  padding: 13px 18px; justify-content: center; gap: 5px;
}
.films-grid.list-view .fcard__desc {
  -webkit-line-clamp: 2; margin-bottom: 0;
}
.films-grid.list-view .fcard__desc.is-expanded {
  -webkit-line-clamp: unset; overflow: visible;
}
.fcard__desc-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 0.65rem; color: rgba(196,160,82,.65);
  font-family: var(--f-title); letter-spacing: 0.06em;
  transition: color 0.2s;
}
.fcard__desc-toggle:hover { color: var(--dore-clair); }
.films-grid.list-view .fcard__desc-toggle { display: inline-block; }

/* Poster 2:3 */
.fcard__poster { position: relative; aspect-ratio: 2/3; overflow: hidden; }

.fcard__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease;
  filter: saturate(0.82) brightness(0.88);
}
.fcard:hover .fcard__img { transform: scale(2); filter: saturate(1.18) brightness(1); }

.fcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,30,1) 0%, rgba(10,18,30,.65) 35%, rgba(10,18,30,.08) 65%, transparent 100%);
}

/* Badges (Film / Nouveau / Populaire) */
.fcard__badges {
  position: absolute; top: 10px; left: 10px; z-index: 6;
  display: flex; flex-direction: column; gap: 4px;
}
.fcard__type-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  background: rgba(194,48,24,.18); border: 1px solid rgba(194,48,24,.48);
  color: #e84020; font-family: var(--f-title); font-size: 0.68rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* Padding vertical supplémentaire pour les genre tags dans les cards films */
.fcard__genres .tag { padding: 0.4rem 0.7rem; }

/* Favori */
.fcard__fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(20,34,52,.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(232,232,232,.5); font-size: 0.85rem; cursor: pointer;
  transition: all 0.25s ease; z-index: 10;
}
.fcard__fav:hover, .fcard__fav.liked {
  background: rgba(194,48,24,.28); border-color: rgba(194,48,24,.65);
}
.fcard__fav svg { width: 14px; height: 14px; }

/* Titre en bas du poster — right réduit pour ne pas chevaucher fcard__count-img (bottom-right ~80px) */
.fcard__title-area {
  position: absolute; bottom: 14px; left: 14px; right: 85px; z-index: 5;
}
.fcard__director {
  font-size: 0.68rem; font-weight: 400; font-style: italic; letter-spacing: 1px;
  color: rgba(196,160,82,.68); margin-bottom: 3px;
}
.fcard__title-main {
  font-family: var(--f-title); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.8); line-height: 1.2;
}

/* Corps card */
.fcard__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.fcard__genres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* Genre tags → .tag .tag--* depuis base.css */

/* Stars */
.fcard__stars {
  display: flex; align-items: center; gap: 6px; font-size: 0.78rem;
}

/* Label "Note" — moodboard film-card__foot-label */
.fcard__foot-label {
  font-family: var(--f-title); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(196, 160, 82, 0.32);
}
.fcard__stars .s  { color: var(--dore-clair); }
.fcard__stars .se { color: rgba(196,160,82,.25); }
.fcard__rating {
  font-family: var(--f-title); font-size: 0.7rem; font-weight: 700;
  color: var(--argent); opacity: 0.68; margin-left: 4px;
}

.fcard__desc {
  font-size: 0.74rem; font-weight: 300; line-height: 1.62;
  color: rgba(232,232,232,.44); margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.fcard__footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  padding-top: 10px; border-top: 1px solid rgba(65,90,119,.16);
}

/* Bouton "Voir les recettes" : caché sur desktop (overlay poster), visible en liste & mobile */
/* Spécificité renforcée (0,2,0) pour écraser .btn-vr (0,1,0) qui vient après dans la cascade */
.fcard .fcard__btn-mobile { display: none; }
.films-grid.list-view .fcard__btn-mobile { display: inline-flex; }
/* Bouton voir les recettes (dans fcard) */
.btn-vr {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 13px; height: 29px; border-radius: 7px;
  background: linear-gradient(135deg, rgba(139,28,19,.7), rgba(194,48,24,.8));
  border: 1px solid rgba(194,48,24,.42);
  cursor: pointer; text-decoration: none;
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; white-space: nowrap;
  transition: all 0.25s ease; box-shadow: 0 0 10px rgba(194,48,24,.22);
}
.btn-vr:hover { background: var(--gold-gradient); color: var(--bleu-nuit); border-color: rgba(212,168,67,.5); }

/* ── ONLY__DISPLAY__9__FILMS (more-views.js) ── */
.only__display__9__films article:nth-child(n+10) { display: none !important; }
@media (max-width: 900px) {
  .only__display__9__films article:nth-child(n+7) { display: none !important; }
}

/* ── NO RESULTS ── */
.no-results {
  grid-column: 1/-1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center;
}
.no-results__icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.35; }
.no-results__title {
  font-family: var(--f-display); font-size: 1.8rem; letter-spacing: 0.08em;
  color: rgba(196,160,82,.38); margin-bottom: 8px;
}
.no-results__sub { font-size: 0.8rem; font-weight: 300; color: rgba(232,232,232,.26); font-style: italic; }

/* ── LOAD MORE ── */
.load-more-wrap {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto 80px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.load-bar {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,160,82,.18) 20%, rgba(196,160,82,.32) 50%, rgba(196,160,82,.18) 80%, transparent);
  margin-bottom: 6px;
}
.load-info {
  font-size: 0.68rem; font-weight: 300; color: rgba(232,232,232,.25); letter-spacing: 0.1em;
}
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 36px; height: 48px; border-radius: 12px;
  background: transparent; border: 1.5px solid rgba(196,160,82,.26); cursor: pointer;
  font-family: var(--f-title); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-titre);
  transition: all 0.25s ease;
}
.btn-more:hover:not(:disabled) {
  background: rgba(196,160,82,.08); border-color: rgba(196,160,82,.65);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.btn-more:disabled { opacity: 0.35; cursor: default; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .page-hero { min-height: 340px; }
  .page-hero__search-panel,
  .page-hero__search-col { flex: 0 0 360px; }
  .films-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .films-grid.list-view { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .page-hero { min-height: unset; padding: 40px 0; }
  .page-hero__content { flex-direction: column; align-items: stretch; gap: 28px; }
  .page-hero__left { text-align: center; align-items: center; }
  .page-hero__meta-row { justify-content: center; }
  .page-hero__meta-row .quick-tags-row { border-left: none; padding-left: 0; border-top: 1px solid rgba(196,160,82,.1); padding-top: 12px; margin-top: 4px; }
  .page-hero__stats { justify-content: center; }
  .page-hero__search-panel,
  .page-hero__search-col { flex: unset; width: 100%; }
}

@media (max-width: 768px) {
  .page-hero { padding: 32px 0; }
  .page-hero__title { font-size: 2.6rem; }
  .page-hero__stats { gap: 14px; }
  .hero-stat__num { font-size: 1.5rem; }
  .search-main-row { flex-wrap: wrap; }
  .films-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .films-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .films-grid.list-view { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-hero__stats { flex-wrap: wrap; gap: 10px; }
  .page-hero__search-panel { padding: 18px 16px; }

  /* 3. Grid cards — 1 colonne sur mobile pour éviter les coupures */
  .films-grid { grid-template-columns: 1fr; gap: 12px; }
  .films-grid.list-view { grid-template-columns: 1fr; }
  .fcard__desc { display: none; }

  /* Bouton visible sur mobile */
  .fcard__btn-mobile { display: inline-flex; }
  .fcard__hover-overlay { display: none; }

  /* 1. List view — footer empilé verticalement, bouton pleine largeur */
  .films-grid.list-view .fcard { overflow: hidden; }
  .films-grid.list-view .fcard__body { overflow: hidden; padding: 12px 14px; }
  .films-grid.list-view .fcard__footer {
    flex-direction: column; align-items: flex-start; gap: 8px;
  }
  .films-grid.list-view .fcard__btn-mobile { width: 100%; justify-content: center; }

}

/* ── FCARD HOVER OVERLAY (lien "Voir les recettes" — dans le poster) ── */
.fcard__hover-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(160deg, rgba(8,16,28,.18) 0%, rgba(100,65,8,.30) 50%, rgba(184,136,42,.22) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; text-decoration: none;
  transition: opacity .3s ease;
}
.fcard:hover .fcard__hover-overlay,
.fcard__hover-overlay:focus-visible { opacity: 1; outline: none; }
.fcard__hover-overlay:focus-visible .fcard__cta-pill {
  transform: translateY(0) scale(1); opacity: 1;
  outline: 2px solid rgba(196,160,82,.8); outline-offset: 3px;
}
/* Invisible en vue liste (le btn-vr est dans le footer) */
.films-grid.list-view .fcard__hover-overlay { display: none; }

/* Pill "Voir les recettes" — cercle doré style icon-wrap */
.fcard__cta-pill {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateY(12px) scale(.86);
  opacity: 0;
  transition: transform .34s cubic-bezier(.34,1.56,.64,1), opacity .26s ease;
}
.fcard:hover .fcard__cta-pill { transform: translateY(0) scale(1); opacity: 1; }

/* Conteneur anneau + cercle — flottement vertical au hover */
.fcard__cta-icon-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; flex-shrink: 0;
}
.fcard:hover .fcard__cta-icon-wrap { animation: fctaFloat 2.2s ease-in-out infinite; }
@keyframes fctaFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Anneau en pointillés externe (tourne au hover) */
.fcard__cta-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(242,200,75,.45);
  transition: border-color .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
}
.fcard:hover .fcard__cta-ring { border-color: rgba(242,200,75,.9); transform: rotate(60deg); }

/* Cercle principal — gradient doré (même palette que djc-cta) */
.fcard__cta-bg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, #8b6914 0%, #b8882a 22%, #c4a052 42%, #d4a843 55%, #f2c84b 68%, #d4a843 80%, #b8882a 100%);
  border: 1.5px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 18px rgba(184,136,42,.45), inset 0 1px 0 rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  color: rgba(20,10,0,.72);
  position: relative; z-index: 1;
  transition: box-shadow .3s ease, filter .3s ease;
}
.fcard:hover .fcard__cta-bg {
  box-shadow: 0 6px 28px rgba(184,136,42,.65), inset 0 1px 0 rgba(255,255,255,.35);
  filter: brightness(1.08);
}
.fcard__cta-bg svg { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.fcard:hover .fcard__cta-bg svg { transform: scale(1.18) translateY(-1px); }

/* Anneau pulsant (rayonne au hover) */
.fcard__cta-bg::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(242,200,75,.55);
  opacity: 0;
  pointer-events: none;
}
.fcard:hover .fcard__cta-bg::after { animation: fctaPulse 1.9s ease-out infinite; }
@keyframes fctaPulse {
  0%   { transform: scale(1);    opacity: .65; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Label texte sous le cercle */
.fcard__cta-label {
  font-family: var(--f-title);
  font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--or-titre, #c4a052);
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}

/* ── COMPTEUR RECETTES DANS LE POSTER ── */
.fcard__count-img {
  position: absolute; bottom: .65rem; right: .75rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .28rem;
  font-family: var(--f-display); font-size: .68rem; letter-spacing: 1px;
  color: rgba(242,200,75,.85);
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.fcard:hover .fcard__count-img { opacity: 0; transform: translateY(4px); }
.films-grid.list-view .fcard__count-img { display: none; }

/* ── FCARD CTA (proposer un film — full-width banner, style djc-cta) ── */
.fcard.fcard--cta {
  grid-column: 1 / -1; /* garde la compatibilité si jamais dans une grille */
  margin-top: 20px;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 20px;
  overflow: visible;
}

/* Banner indépendante (hors grille) sur la page movies */
.movies-cta {
  grid-column: unset;
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 56px auto 80px;
}
.fcard.fcard--cta::before {
  display: none;
}
.fcard.fcard--cta:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.fcard--cta__link {
  display: flex; flex-direction: row; align-items: center; gap: 0;
  text-decoration: none; color: inherit;
  width: 100%; min-height: 220px; padding: 40px 0 40px 52px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5c0b05 0%, #8b1c13 28%, #c23018 58%, #d43a20 80%, #e04422 100%);
  border-radius: 20px;
  border: 1px solid rgba(194, 48, 24, 0.42);
  box-shadow: 0 20px 60px rgba(194,48,24,.30), 0 8px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.fcard--cta:hover .fcard--cta__link {
  transform: translateY(-5px);
  box-shadow: 0 32px 80px rgba(194,48,24,.42), 0 12px 32px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.11);
  border-color: rgba(194,48,24,.68);
}
/* Shimmer */
.fcard--cta__shimmer {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.fcard--cta__shimmer::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.fcard--cta:hover .fcard--cta__shimmer::after {
  animation: ctaShimmer .75s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ctaShimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(320%)  skewX(-18deg); }
}
/* Corps texte */
.fcard--cta__body {
  flex: 0 0 42%; min-width: 0; position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  padding-right: 36px;
}
.fcard--cta__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,.40);
}
.fcard--cta__title {
  font-family: var(--f-display); font-size: 2.8rem; letter-spacing: 0.06em; line-height: 0.92;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.fcard--cta__title em {
  display: block; font-style: normal;
  color: rgba(255, 210, 170, .88);
}
.fcard--cta__desc {
  font-size: 0.76rem; line-height: 1.65; font-weight: 300;
  color: rgba(255,255,255,.52); max-width: 460px;
}
.fcard--cta__action {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 22px; height: 44px; border-radius: 10px;
  background: var(--gold-gradient);
  color: var(--bleu-nuit);
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(196,160,82,.30), 0 6px 20px rgba(0,0,0,.30);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  align-self: flex-start; margin-top: 6px; border: none;
}
.fcard--cta:hover .fcard--cta__action {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(196,160,82,.48), 0 10px 28px rgba(0,0,0,.40);
}
/* ── Mini-affiches scrollantes horizontales (droite de la banner CTA) ── */
.fcard--cta__deco {
  flex: 1; min-width: 0; overflow: hidden; position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  opacity: 0.58; transition: opacity 0.4s ease;
  /* Fondu gauche → intégration naturelle avec le texte. Fondu droite → bord arrondi */
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.fcard--cta:hover .fcard--cta__deco { opacity: 0.90; }

/* Chaque rangée est un overflow:hidden indépendant */
.fcard--cta__poster-row { overflow: hidden; }
.fcard--cta__poster-track {
  display: flex; gap: 12px; width: max-content;
}
/* Rangée 1 : glisse vers la gauche */
.fcard--cta__poster-row--left  .fcard--cta__poster-track { animation: posterScrollLeft  18s linear infinite; }
/* Rangée 2 : glisse vers la droite (sens inverse, vitesse différente → effet parallaxe) */
.fcard--cta__poster-row--right .fcard--cta__poster-track { animation: posterScrollRight 24s linear infinite; }

@keyframes posterScrollLeft  { from { transform: translateX(0);   } to { transform: translateX(-50%); } }
@keyframes posterScrollRight { from { transform: translateX(-50%); } to { transform: translateX(0);   } }

/* Mini-affiche : plus grande, hover "pop" individuel */
.fcard--cta__mini {
  width: 90px; height: 127px; /* ratio 2:3 */ border-radius: 9px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.fcard--cta__mini:hover {
  transform: scale(1.12) translateY(-5px);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 16px 36px rgba(0,0,0,.65);
  z-index: 3;
}
.fcard--cta__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Toujours visible même quand la grille limite à 9 films */
.only__display__9__films .fcard--cta { display: flex !important; }
@media (max-width: 900px) {
  .fcard--cta__deco { display: none; }
  .fcard--cta__link { padding: 32px 36px; gap: 0; }
}
@media (max-width: 600px) {
  .fcard--cta__title { font-size: 2rem; }
  .fcard--cta__link { padding: 28px 24px; }
}

/* ── INJECT CARD (film non dispo — proposé par la recherche) ── */
.add-film-card-inject {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.add-film-card-inject-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(194,48,24,.08) 0%, rgba(139,28,19,.12) 50%, rgba(194,48,24,.05) 100%);
  border: 1px dashed rgba(194, 48, 24, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.add-film-card-inject-inner:hover {
  border-color: rgba(194, 48, 24, 0.55);
  background: linear-gradient(135deg, rgba(194,48,24,.14) 0%, rgba(139,28,19,.2) 50%, rgba(194,48,24,.09) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 30px rgba(194,48,24,.08);
}
.add-film-card-inject-poster {
  width: 80px; height: 120px; border-radius: 8px; overflow: hidden;
  background: rgba(20,34,52,.6); border: 1px solid rgba(65,90,119,.25);
  flex-shrink: 0;
}
.add-film-card-inject-poster img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: saturate(0.75) brightness(0.8);
}
.add-film-card-inject-body { display: flex; flex-direction: column; gap: 6px; }
.add-film-card-inject-hint {
  font-family: var(--f-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(194, 48, 24, 0.65);
}
.add-film-card-inject-title {
  font-family: var(--f-title); font-size: 1rem; font-weight: 700; letter-spacing: 0.03em;
  color: rgba(232,232,232,.85); line-height: 1.3;
}
.add-film-card-inject-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px; width: fit-content; margin-top: 4px;
  background: linear-gradient(135deg, rgba(139,28,19,.7), rgba(194,48,24,.8));
  border: 1px solid rgba(194,48,24,.45);
  font-family: var(--f-title); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  box-shadow: 0 0 12px rgba(194,48,24,.25);
  transition: all 0.25s ease;
}
.add-film-card-inject-inner:hover .add-film-card-inject-btn {
  background: var(--gold-gradient); color: var(--bleu-nuit);
  border-color: rgba(212,168,67,.5);
}

/* ══ BANNER CTA MOBILE — placé après les composants pour écraser flex:0 0 42% ══ */
@media (max-width: 480px) {
  .fcard--cta__link {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    min-height: unset;
    gap: 12px;
  }
  .fcard--cta__body {
    flex: 1 1 100% !important;
    width: 100%;
    padding-right: 0;
  }
  .fcard--cta__eyebrow { display: none; }
  .fcard--cta__title { font-size: 1.6rem; line-height: 1.1; }
  .fcard--cta__title em { display: inline; }
  .fcard--cta__desc { font-size: 0.72rem; }
  .fcard--cta__poster-row { display: none; }
  .fcard--cta__action { align-self: stretch; justify-content: center; }
}
