/**
 * ======================================================
 * RECIPES-MOVIE.CSS - Styles de la page recettes d'un film
 * ======================================================
 *
 * Sections :
 *   1. FILM HERO (breadcrumb + hero cinématographique)
 *   2. FILM MAIN (layout principal de la fiche film)
 *   3. INFO BAR
 *   4. SYNOPSIS BLOCK
 *   5. SECTION HEADER (sec-h)
 *   6. SECTION DIVIDER
 *   7. RECIPES HEADER + TOOLBAR
 *   8. RECIPES GRID (2 colonnes)
 *   9. GOLD CTA CARD
 *  10. [existant] BANNIÈRE IMAGE FILM
 *  …reste du CSS existant inchangé
 */

/* ====================================================== */
/* ══════════ 0. FULL-BLEED BODY (vue film) ══════════════ */
/* ====================================================== */

/* Même principe que body.movies-page dans movies.css :
   on annule le max-width + padding du body global pour que
   le hero et la breadcrumb soient bord à bord, plein écran */
body.film-page {
  max-width: unset;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

body.film-page main {
  padding-top: var(--nav-h); /* compense la nav fixe */
}

/* ====================================================== */
/* ══════════ 1. BREADCRUMB ══════════════════════════════ */
/* ====================================================== */

.bc-bar {
  width: 100%;
  background: rgba(8, 14, 24, 0.55);
  border-bottom: 1px solid rgba(65, 90, 119, 0.18);
  padding: 0 var(--px, 2rem);
  /* Pas de margin-top ici : le header partiel gère son propre offset */
}

/* .bc défini dans base.css */

.bc-sep {
  color: rgba(196, 160, 82, 0.22);
  font-size: 0.7rem;
}

.bc-cur {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.6);
  font-family: var(--f-title, var(--font-h2-h6));
}

/* ====================================================== */
/* ══════════ 2. FILM HERO ════════════════════════════════ */
/* ====================================================== */

.film-hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  background: #07101c;
}

/* Fond panoramique — image du film */
.film-hero__bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.28) saturate(0.5) sepia(0.3);
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.1, 0, 0.2, 1);
}

.film-hero__bg.loaded {
  transform: scale(1);
}

/* Double overlay directionnel : gauche + bas */
.film-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(7, 16, 28, 0.99) 0%,
      rgba(7, 16, 28, 0.85) 35%,
      rgba(7, 16, 28, 0.45) 60%,
      rgba(7, 16, 28, 0.15) 80%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(7, 16, 28, 0.98) 0%,
      rgba(7, 16, 28, 0.2) 35%,
      transparent 65%
    );
}

/* Liseré pellicule gauche */
.film-hero__lisere {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(196, 160, 82, 0.15) 12%,
    rgba(196, 160, 82, 0.6) 35%,
    rgba(196, 160, 82, 0.75) 50%,
    rgba(196, 160, 82, 0.6) 65%,
    rgba(196, 160, 82, 0.15) 88%,
    transparent 100%
  );
}

/* Scanlines cinéma */
.film-hero__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

.film-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%);
}

/* Watermark titre en fond */
.film-hero__watermark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  z-index: 1;
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: clamp(5rem, 12vw, 14rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(196, 160, 82, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Grille infos + poster */
.film-hero__content {
  position: relative;
  z-index: 5;
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  padding: 52px var(--px, 2rem) 52px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 52px;
  align-items: end;
  min-height: 540px;
}

/* ── Colonne gauche : infos film ── */
.fh-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.fh-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 5px;
  font-family: var(--f-title, var(--font-h2-h6));
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.fh-badge .icon {
  width: 0.7rem;
  height: 0.7rem;
}

.fh-badge--type {
  color: #e84020;
  border-color: rgba(194, 48, 24, 0.4);
  background: rgba(194, 48, 24, 0.1);
}

.fh-badge--genre {
  color: rgba(180, 155, 228, 0.95);
  border-color: rgba(107, 79, 160, 0.45);
  background: rgba(30, 16, 62, 0.65);
  text-shadow: 0 0 10px rgba(155, 126, 208, 0.28);
}

.fh-eyebrow {
  font-family: var(--f-title, var(--font-h2-h6));
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.48);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fh-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-titre, var(--dore-popcorn)));
  flex-shrink: 0;
}

.fh-title {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.fh-title em { color: var(--or-titre); font-style: normal; }

.fh-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fh-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fh-meta__label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.36);
  font-weight: 300;
}

.fh-meta__val {
  font-family: var(--f-title, var(--font-h2-h6));
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--argent, #e8e8e8);
}

.fh-meta__val--gold {
  color: var(--or-titre, var(--dore-popcorn));
  display: flex;
  align-items: center;
  gap: 4px;
}

.fh-meta__val--gold .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.fh-meta-sep {
  width: 1px;
  height: 28px;
  background: rgba(65, 90, 119, 0.35);
  flex-shrink: 0;
}

/* Synopsis dans le hero */
.fh-synopsis {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.76;
  color: rgba(232, 232, 232, 0.52);
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Boutons d'action dans le hero */
.fh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Colonne droite : poster ── */
.fh-poster-wrap {
  align-self: end;
  position: relative;
}

.fh-poster {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(196, 160, 82, 0.07);
  border: 1px solid rgba(196, 160, 82, 0.14);
  aspect-ratio: 2 / 3;
}

.fh-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Liseré pellicule sur le poster */
.fh-poster::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 160, 82, 0.55) 35%,
    rgba(196, 160, 82, 0.72) 50%,
    rgba(196, 160, 82, 0.55) 65%,
    transparent
  );
}

/* Barres pellicule haut/bas */
.fh-poster__lbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(5, 10, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 3;
}

.fh-poster__lbox--t { top: 0; }
.fh-poster__lbox--b { bottom: 0; }

.fh-perf {
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: rgba(196, 160, 82, 0.1);
  border: 1px solid rgba(196, 160, 82, 0.08);
}

/* Badge recettes flottant */
.fh-poster__badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  z-index: 10;
  background: linear-gradient(135deg, var(--surface-card, #0f1e30), rgba(20, 38, 58, 0.98));
  border: 1px solid rgba(196, 160, 82, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fhpb-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--rouge-gradient, linear-gradient(135deg, #8b1c13, #c23018, #d43a20));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(194, 48, 24, 0.35);
  flex-shrink: 0;
}

.fhpb-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #fff;
}

.fhpb-num {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--or-titre, var(--dore-popcorn));
  line-height: 1;
}

.fhpb-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.32);
}

/* ====================================================== */
/* ══════════ 3. FILM MAIN (layout principal) ════════════ */
/* ====================================================== */

.film-main {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto;
  padding: 52px 0 100px;
  position: relative;
  z-index: 2;
}

.film-main__inner {
  /* conteneur sans layout spécial — sections empilées verticalement */
}

/* ====================================================== */
/* ══════════ 4. INFO BAR ════════════════════════════════ */
/* ====================================================== */

.info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(65, 90, 119, 0.1);
  border: 1px solid rgba(65, 90, 119, 0.18);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 44px;
}

.ib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  gap: 4px;
  background: linear-gradient(180deg, rgba(15, 30, 48, 0.88), rgba(12, 24, 40, 0.92));
  transition: background 0.2s ease;
  text-align: center;
}

.ib-item:hover {
  background: rgba(196, 160, 82, 0.06);
}

.ib-item + .ib-item {
  border-left: 1px solid rgba(65, 90, 119, 0.18);
}

.ib-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: rgba(196, 160, 82, 0.55);
}

.ib-val {
  font-family: var(--f-title, var(--font-h2-h6));
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dore-clair, #f2c84b);
}

.ib-val--gold {
  color: var(--or-titre, var(--dore-popcorn));
}

.ib-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.3);
}

/* ====================================================== */
/* ══════════ 5. SYNOPSIS BLOCK ══════════════════════════ */
/* ====================================================== */

.synopsis-block {
  margin-bottom: 40px;
}

.synopsis-text {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(232, 232, 232, 0.6);
}

/* On réutilise .banner__synopsis-text et .banner__synopsis-text--expanded déjà définis plus bas */

/* ====================================================== */
/* ══════════ 6. SECTION HEADER (sec-h) ══════════════════ */
/* ====================================================== */

.sec-h {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.sec-h__eye {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.48);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.sec-h__eye::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--or-titre, var(--dore-popcorn));
  flex-shrink: 0;
}

.sec-h__title {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--or-titre, var(--dore-popcorn));
  text-shadow: 0 0 28px rgba(196, 160, 82, 0.28);
  margin: 0;
}

/* ====================================================== */
/* ══════════ 7. SECTION DIVIDER ═════════════════════════ */
/* ====================================================== */

.sec-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 160, 82, 0.25) 20%,
    rgba(196, 160, 82, 0.45) 50%,
    rgba(196, 160, 82, 0.25) 80%,
    transparent
  );
  margin: 40px 0;
}

/* ====================================================== */
/* ══════════ 8. RECIPES HEADER + TOOLBAR ════════════════ */
/* ====================================================== */

/* Header section recettes : sec-h + toolbar côte à côte */
.fh-recipes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.fh-recipes-header .sec-h {
  margin-bottom: 0;
  flex: 1;
  min-width: 200px;
}

/* Bouton "Ajouter ma recette" dans fh-actions */
.fh-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 160, 82, 0.38);
  background: transparent;
  color: rgba(212, 220, 232, 0.85);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s, box-shadow 0.25s;
}
.fh-btn-add:hover {
  border-color: rgba(196, 160, 82, 0.65);
  color: rgba(240, 240, 248, 1);
  background: rgba(196, 160, 82, 0.06);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.08);
}

/* Sous-label film dans fh-btn-add */
.fh-btn-add__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.fh-btn-add__main {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.fh-btn-add__film {
  font-size: 0.65rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(196, 160, 82, 0.55);
  line-height: 1.1;
  transition: color 0.25s;
}
.fh-btn-add:hover .fh-btn-add__film {
  color: rgba(196, 160, 82, 0.8);
}

/* Toolbar : filtre catégorie + bouton ajouter */
.fh-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* .fh-filter__label supprimé — remplacé par .dropdown-trigger (base.css) */

/* Bouton toolbar : sous-label film */
.fh-toolbar .btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.fh-toolbar .btn__subtext {
  font-size: 0.6rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.68;
  line-height: 1.1;
}

/* .search__select__film supprimé — remplacé par .dropdown + .dd-filter-wrap (base.css) */

/* ====================================================== */
/* ══════════ 9. RECIPES GRID (2 colonnes) ════════════════ */
/* ====================================================== */

/* Grille 4 colonnes — fiche film, cohérente avec /auteur/ et /recipes-movie/ */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

/* Classe cachage 9 recettes max — même logique que .articles */
.recipes-grid.only__display__9__recipes .recipe-card:nth-child(n + 10) {
  display: none;
}

/* Gold CTA card hors de la grille — séparée des recettes */
.gold-cta-card--standalone {
  margin-top: 44px;
}

/* ====================================================== */
/* ══════════ 10. GOLD CTA CARD ══════════════════════════ */
/* ====================================================== */

.gold-cta-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1208 0%, #2a1c0a 35%, #1e150a 70%, #150f08 100%);
  border: 1.5px solid rgba(196, 160, 82, 0.38);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(184, 136, 42, 0.07);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.gold-cta-card:hover {
  border-color: rgba(196, 160, 82, 0.62);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(184, 136, 42, 0.14);
}

/* Liseré doré top */
.gold-cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 160, 82, 0.55) 30%,
    rgba(242, 200, 75, 0.8) 50%,
    rgba(196, 160, 82, 0.55) 70%,
    transparent
  );
  pointer-events: none;
}

/* Halo radial gauche */
.gold-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 100% at 10% 50%,
    rgba(196, 160, 82, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Perforations pellicule */
.gcc-perfs {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.gcc-perfs--l {
  left: 0;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(196, 160, 82, 0.1);
}

.gcc-perfs--r {
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px solid rgba(196, 160, 82, 0.1);
}

.gcc-perf {
  width: 11px;
  height: 8px;
  border-radius: 2px;
  background: rgba(196, 160, 82, 0.08);
  border: 1px solid rgba(196, 160, 82, 0.14);
}

/* Grille interne : icônes | texte | actions */
.gold-cta-card__inner {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0;
  align-items: center;
  padding: 0 40px 0 44px;
  min-height: 120px;
  position: relative;
  z-index: 1;
}

/* Icônes film + recette */
.gcc-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 16px 16px 0;
  border-right: 1px solid rgba(196, 160, 82, 0.1);
}

.gcc-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--or-titre, var(--dore-popcorn));
  filter: drop-shadow(0 0 6px rgba(196, 160, 82, 0.3));
}

.gcc-plus {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: 1rem;
  color: var(--or-titre, var(--dore-popcorn));
  opacity: 0.6;
  line-height: 1;
}

/* Corps texte */
.gcc-body {
  padding: 0 24px;
}

.gcc-eyebrow {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.48);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gcc-eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--or-titre, var(--dore-popcorn));
  flex-shrink: 0;
}

.gcc-title {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--or-titre, var(--dore-popcorn));
  text-shadow: 0 0 28px rgba(196, 160, 82, 0.28);
  line-height: 1.05;
  margin-bottom: 6px;
}

.gcc-sub {
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(232, 232, 232, 0.42);
  max-width: 420px;
}

.gcc-sub em {
  font-style: italic;
  color: rgba(196, 160, 82, 0.6);
}

/* Zone CTA */
.gcc-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 16px;
}

/* Bouton doré du CTA */
.btn-gcc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold-gradient, linear-gradient(135deg, #b8882a, #d4a843, #f2c84b, #ffe085, #d4a843));
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--f-title, var(--font-h2-h6));
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bleu-nuit, #142234);
  box-shadow: 0 2px 14px rgba(184, 136, 42, 0.28);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gcc .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.btn-gcc:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 168, 67, 0.4);
}

/* ====================================================== */
/* ══════════ RESPONSIVE — vue fiche film ════════════════ */
/* ====================================================== */

@media (max-width: 1100px) {
  .film-hero__content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fh-poster-wrap {
    display: none; /* poster masqué sur tablette / mobile */
  }

  .film-hero {
    min-height: auto;
  }

  .film-hero__content {
    min-height: auto;
    padding: 40px var(--px, 2rem) 36px;
  }

  .gold-cta-card__inner {
    grid-template-columns: 60px 1fr auto;
    padding: 0 28px 0 32px;
  }
}

@media (max-width: 1200px) {
  .recipes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .recipes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .fh-recipes-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fh-toolbar {
    width: 100%;
    flex-wrap: wrap;
  }

  .info-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .gold-cta-card__inner {
    grid-template-columns: 1fr;
    padding: 20px 28px;
    gap: 16px;
  }

  .gcc-icons {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(196, 160, 82, 0.1);
    padding: 0 0 12px 0;
  }

  .gcc-actions {
    padding-left: 0;
  }

  .btn-gcc {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .bc-bar {
    padding: 0 1rem;
  }

  .film-hero__content {
    padding: 32px 1rem 28px;
  }

  .film-main {
    padding: 32px 0 60px; /* gutters horizontaux gérés par width: min() */
  }

  .info-bar {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .ib-item + .ib-item {
    border-left: none;
    border-top: 1px solid rgba(65, 90, 119, 0.18);
  }

  .fh-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .gcc-body { padding: 0 16px; }
  .gcc-title { font-size: 1.2rem; }

  /* Masquer les perforations sur très petit écran */
  .gcc-perfs { display: none; }
  .gold-cta-card__inner { padding: 20px 20px; }
}


 *
 * Rôle : Styles spécifiques à la page qui affiche les recettes d'un film donné.
 *        Gère la bannière du film, les filtres de catégories, les cartes de recettes.
 *
 * Pages concernées : /recipes-movie/:id (page des recettes d'un film)
 *
 * Ordre de chargement : Chargé APRÈS base.css
 *                       Les styles communs (reset, typo, header, footer, boutons)
 *                       sont définis dans base.css
 *
 * Harmonisation visuelle :
 *   - Les sections et les cartes reprennent le design de movies.css
 *   - La bannière et l'image principale suivent le style hero/formulaire
 *     de add-recipes-movies.css
 */

/* ====================================================== */
/* =================== HERO IMAGE ======================= */
/* ====================================================== */
.banner__image__film {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 3rem auto;
  height: 350px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(198, 166, 100, 0.2);
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.95) 0%,
    rgba(30, 52, 76, 0.95) 100%
  );
}

.banner__image__film__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(198, 166, 100, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(255, 255, 255, 0.25),
      transparent 40%
    );
  pointer-events: none;
  z-index: 1;
}

/* Fondu cinématographique en bas de l'image bannière */
.banner__image__film::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bleu-nuit));
  pointer-events: none;
  z-index: 2;
}

.banner__image__film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.6s ease;
}

.banner__image__film:hover img {
  transform: none; /* supprime le zoom pour éviter flou */
}

/* Bouton edit bannière auteur (overlay) */
.banner__edit-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--dore-popcorn);
  background: rgba(10, 18, 32, 0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--dore-popcorn);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(198, 166, 100, 0.2),
    inset 0 1px 0 rgba(198, 166, 100, 0.12);
  animation: bannerBtnPulse 2.5s ease-in-out infinite;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
}

.banner__edit-btn:hover {
  color: var(--bleu-nuit);
  background: var(--dore-popcorn);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(198, 166, 100, 0.55);
  transform: translateY(-2px);
  animation: none;
}

.banner__edit-btn:hover svg {
  stroke: var(--bleu-nuit);
}

.banner__edit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@keyframes bannerBtnPulse {
  0%,
  100% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.55),
      0 0 10px rgba(198, 166, 100, 0.15),
      inset 0 1px 0 rgba(198, 166, 100, 0.12);
  }
  50% {
    box-shadow:
      0 4px 22px rgba(0, 0, 0, 0.55),
      0 0 24px rgba(198, 166, 100, 0.45),
      inset 0 1px 0 rgba(198, 166, 100, 0.12);
  }
}

/* Badge statut bannière (visible propriétaire uniquement) */
/* Couleurs via .media-status-badge--* dans base.css       */
/* bottom masqué par .banner { margin: -110px } → top à la place */
.banner__status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

/* ====================================================== */
/* ========= CARTE VEDETTE AUTEUR — CINÉMA PREMIUM ====== */
/* ====================================================== */

.auteur-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(27, 38, 59, 0.72) 100%
  );
  border: 1px solid rgba(198, 166, 100, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(198, 166, 100, 0.06);
}

/* Shimmer sweep on hover */
.auteur-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.045) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}

.auteur-card:hover::after {
  transform: translateX(130%);
}

/* Décoration pellicule — perforations cinéma */
.auteur-card__strip {
  align-self: stretch;
  width: 8px;
  flex-shrink: 0;
  background-color: rgba(27, 38, 59, 0.9);
  background-image: radial-gradient(
    ellipse 4px 3px at center,
    rgba(13, 27, 42, 0.95) 100%,
    transparent 100%
  );
  background-repeat: repeat-y;
  background-size: 8px 13px;
  background-position: center 4px;
  border-right: 1px solid rgba(198, 166, 100, 0.1);
}

/* Cadre photo */
.auteur-card__frame {
  flex-shrink: 0;
  padding: 0.55rem 0.55rem 0.55rem 0.5rem;
  position: relative;
  z-index: 1;
}

.auteur-card__photo-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; /* photo 80px + 8px de chaque côté */
  height: 96px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.auteur-card__photo {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Corps textuel */
.auteur-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.6rem 0.55rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  position: relative;
  z-index: 1;
}

/* Eyebrow "✦ Une création de ✦" */
.auteur-card__eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(198, 166, 100, 0.48);
  font-family: var(--font-body);
  display: block;
  margin-bottom: 0.05rem;
  white-space: nowrap;
}

/* Nom auteur */
.auteur-card__name {
  font-family: var(--font-h2-h6);
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.3s ease;
}

.auteur-card:hover .auteur-card__name {
  color: var(--dore-popcorn);
}

/* Rang badge : étoiles + tag */
.auteur-card__badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.08rem;
}

/* Étoiles pleines */
.auteur-card__stars {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--dore-popcorn);
  letter-spacing: 1.5px;
}

/* Étoiles vides */
.auteur-card__stars-empty {
  opacity: 0.14;
  color: rgba(232, 232, 232, 0.9);
}

/* Tag badge — pill doré discret */
.auteur-card__badge-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dore-popcorn);
  padding: 0.13rem 0.42rem;
  border: 1px solid rgba(198, 166, 100, 0.3);
  border-radius: 2px;
  background: rgba(198, 166, 100, 0.07);
  white-space: nowrap;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.auteur-card:hover .auteur-card__badge-tag {
  background: rgba(198, 166, 100, 0.13);
  border-color: rgba(198, 166, 100, 0.52);
}

/* Nombre de recettes */
.auteur-card__count {
  font-size: 0.62rem;
  color: rgba(232, 232, 232, 0.3);
  margin: 0.12rem 0 0;
  letter-spacing: 0.3px;
}

.auteur-card__count-num {
  font-weight: 700;
  color: rgba(232, 232, 232, 0.48);
}

/* Trophée */
.auteur-card__trophy-wrap {
  position: relative;
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0.4rem;
}

/* Spotlight derrière le trophée */
.auteur-card__spotlight {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(198, 166, 100, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.auteur-card:hover .auteur-card__spotlight {
  background: radial-gradient(
    circle,
    rgba(198, 166, 100, 0.28) 0%,
    transparent 65%
  );
}

.auteur-card__trophy {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auteur-card:hover .auteur-card__trophy {
  transform: scale(1.1) translateY(-3px);
}

/* ====================================================== */
/* ====== BADGES RECETTE — variantes couleur ============ */
/* ====================================================== */

/**
 * badge--type : catégorie de la recette (entrée / plat / dessert)
 * Hérite du .badge base (padding, font-size, border-radius dashed)
 * Palette : bleu-sapphire discret, fond foncé semi-opaque
 */
.badge--type {
  color: rgba(140, 180, 245, 0.95);
  background-color: rgba(14, 24, 52, 0.78);
  border-color: rgba(80, 120, 200, 0.4);
  backdrop-filter: blur(4px);
}

/* Gestion longs titres : badge limité à la largeur du conteneur, wrapping 2 lignes */
.recipe-card__ob .badge--film-dk {
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* ====================================================== */
/* =========== MINI BADGE CARDS RECETTE ================ */
/* ====================================================== */

/* ====================================================== */
/* ============ SYNOPSIS DANS LA BANNIÈRE =============== */
/* ====================================================== */
.banner__synopsis {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(198, 166, 100, 0.15);
  max-width: 550px;
}

.banner__synopsis-text {
  color: var(--argent-ecran);
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    margin 0.3s ease;
}

.banner__synopsis-text--expanded {
  max-height: 500px;
  margin-top: 0.4rem;
}

.banner__synopsis-toggle {
  background: none;
  border: none;
  color: var(--dore-popcorn);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-top: 0.25rem;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.banner__synopsis-toggle:hover,
.banner__synopsis-toggle:focus-visible {
  color: var(--gold-light, #e8d5a3);
}

/* ====================================================== */
/* ================== BANNIÈRE RECHERCHE ================ */
/* ====================================================== */
.banner {
  background: linear-gradient(
    135deg,
    var(--bleu-nuit) 0%,
    var(--bleu-intermediaire) 100%
  );
  border-radius: 12px;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(196, 160, 82, 0.30);
  box-shadow: 0 10px 20px rgba(0, 2, 12, 0.35);
  position: relative;
  z-index: 5;
  width: calc(100% - 4rem);
  max-width: calc(var(--max-width) - 4rem);
  margin: -110px auto 2.5rem auto;
}

.banner--recipes {
  align-items: flex-start;
}

.banner--recipes .banner__title {
  max-width: 700px;
}

.banner__title {
  flex: 0 0 auto;
  z-index: 1;
}

.banner__meta {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(236, 239, 241, 0.8);
  margin: 0 0 0.25rem 0;
}

.banner__title h2 {
  color: var(--dore-popcorn);
  font-size: 1.5rem;
  margin: 0 0 0 0;
  font-weight: 700;
  font-family: var(--font-h2-h6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.banner__subtitle {
  color: var(--argent-ecran);
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
}

.banner__reset-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  color: var(--dore-popcorn);
  font-weight: 600;
  text-decoration: none;
  gap: 0.4rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.banner__reset-link:hover,
.banner__reset-link:focus-visible {
  color: var(--or-200);
  transform: translateX(2px);
}

.banner__search__films {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  z-index: 1;
}

.search__label {
  color: var(--dore-popcorn);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
  margin-right: 1rem;
}

/* .search__select__film (legacy) supprimé — remplacé par .dropdown (base.css) */

/* ====================================================== */
/* ========== PRÉSENTATION DES RECETTES ================= */
/* ====================================================== */
#recipes {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.presentation__recipes {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 1.5rem auto;
  padding: 0;
}

/* Titre de section — Bebas Neue (identique aux pages films) */
.presentation__recipes .presentation__title {
  font-family: var(--f-display, 'Bebas Neue', cursive);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--or-titre);
  white-space: nowrap;
  margin-bottom: 0;
  letter-spacing: 3px;
}

.presentation__button__recipes {
  flex-shrink: 0;
}

.presentation__button__recipes .btn {
  white-space: nowrap;
}

/* ====================================================== */
/* ========== SECTION DES FICHES DE RECETTES ============ */
/* ====================================================== */
/* Style V2 - Identique à card-demo de la planche */

#recipes .articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto 4rem auto;
}

.only__3__recipes {
  max-width: 100%;
}

/* ====================================================== */
/* ============= RECIPE CARD — voir base.css ============ */
/* Le composant .recipe-card est centralisé dans base.css */
/* ====================================================== */


.recipe-card-rating .star {
  font-size: 1.6rem; /* étoiles plus grandes */
  line-height: 1;
  color: var(--argent-ecran);
  opacity: 0.3; /* filigrane au repos, plus perceptible */
  /* ombre subtile harmonisée avec --bleu-intermediaire */
  text-shadow: 0 0 0.6px var(--ombre-intermediaire);
}

#recipes article:hover .recipe-card-rating .star {
  opacity: 0.65; /* léger renforcement au hover */
  text-shadow: 0 0 0.8px var(--ombre-intermediaire-strong);
}
#recipes article:hover .recipe-card-rating .star.is-active {
  color: var(--dore-popcorn); /* colorées au hover */
  opacity: 1;
  text-shadow: 0 0 1px rgba(198, 166, 100, 0.5);
}
.recipe-card-rating .stars-value {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  color: var(--bleu-nuit);
  font-weight: 700;
}

.no-recipes {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--argent-ecran);
  margin: 2rem 0;
  grid-column: 1 / -1;
}

.center-button {
  margin-top: 2rem;
  text-align: center;
}

/* Afficher seulement 9 recettes quand la classe est présente (desktop) */
#recipes .only__display__9__recipes .recipe-card:nth-child(n + 10) {
  display: none;
}

/* ====================================================== */
/* ====================== ANIMATIONS ==================== */
/* ====================================================== */
/* @keyframes cinema-glow → centralisé dans base.css */

/* ====================================================== */
/* ====================== RESPONSIVE ==================== */
/* ====================================================== */
@media (max-width: 1200px) {
  #recipes .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    width: calc(100% - 3rem);
    margin: -70px 1.5rem 2rem 1.5rem;
  }

  .banner__search__films {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search__label {
    margin-right: 0;
  }

  .banner__image__film {
    height: 260px;
  }

  #recipes {
    padding: 0 1.5rem;
  }

  .presentation__recipes {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Afficher seulement 6 recettes sur tablette */
  #recipes .only__display__9__recipes .recipe-card:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 700px) {
  #recipes .articles {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .banner__title h2 {
    font-size: 1.6rem;
  }

  .search__label {
    font-size: 0.9rem;
  }

  .search__select__dish {
    width: 100%;
    min-width: auto;
  }

  .recipe-card {
    padding: 1.25rem;
  }

  .recipe-card__foot {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .recipe-card__foot { flex-direction: row; }
}

@media (max-width: 540px) {
  .banner {
    padding: 1.1rem 1.25rem;
    gap: 1rem;
    width: calc(100% - 2rem);
    margin: -45px 1rem 1.75rem 1rem;
  }

  .banner__image__film {
    height: 220px;
    margin: 0 auto 2rem auto;
  }

  .banner__synopsis-text {
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
  }


  #recipes .articles {
    gap: 1rem;
  }

  .recipe-card {
    padding: 1rem;
  }

  .recipe-card .btn-fav {
    width: 2rem;
    height: 2rem;
  }

  .recipe-card .btn-fav .icon {
    width: 1rem;
    height: 1rem;
  }

  .recipe-card__meta {
    gap: 0.3rem;
  }

.banner__edit-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* ====================================================== */
/* ================ MODALE BANNIÈRE ===================== */
/* ====================================================== */
.banner-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.banner-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.banner-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 26, 0.75);
  backdrop-filter: blur(3px);
}

.banner-modal__dialog {
  position: relative;
  background: var(--bleu-intermediaire);
  border: 1px solid rgba(198, 166, 100, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: min(600px, 92vw);
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: bannerModalIn 0.3s ease-out;
}

.banner-modal.is-visible .banner-modal__dialog {
  animation: bannerModalIn 0.3s ease-out;
}

@keyframes bannerModalIn {
  from {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.banner-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(236, 239, 241, 0.5);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.banner-modal__close:hover {
  color: var(--argent-ecran);
}

.banner-modal__title {
  font-family: var(--font-h2-h6);
  font-size: 1.1rem;
  color: var(--dore-popcorn);
  margin: 0 0 0.25rem 0;
}

.banner-modal__hint {
  font-size: 0.75rem;
  color: rgba(236, 239, 241, 0.55);
  margin: 0 0 1rem 0;
}

/* ─── Zone de recadrage (cropper) ─── */
/* Conteneur du canvas avec ratio fixe 1408:350 ≈ 4:1 */
.banner-cropper {
  width: 100%;
  aspect-ratio: 1408 / 350;
  background: rgba(13, 27, 42, 0.6);
  border: 1px dashed rgba(198, 166, 100, 0.25);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

/* Canvas de recadrage : remplit tout le conteneur */
/* Curseur main ouverte au repos, main fermée pendant le glissement */
.banner-cropper__canvas {
  width: 100%;
  height: 100%;
  display: none; /* masqué tant qu'aucune image n'est chargée */
  cursor: -webkit-grab;
  cursor: grab;
}

.banner-cropper__canvas:active,
.banner-cropper__canvas.is-dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* Placeholder (visible quand pas d'image) */
.banner-cropper__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: rgba(198, 166, 100, 0.4);
  cursor: pointer;
  transition: color 0.2s ease;
  position: absolute;
  inset: 0;
}

.banner-cropper__placeholder:hover {
  color: var(--dore-popcorn);
}

.banner-cropper__placeholder span {
  font-size: 0.8rem;
}

/* ─── Contrôle de zoom ─── */
/* Barre avec icône loupe − / slider / icône loupe + */
.banner-cropper__zoom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease;
}

.banner-cropper__zoom.is-visible {
  opacity: 1;
  max-height: 3rem;
}

.banner-cropper__zoom svg {
  color: rgba(198, 166, 100, 0.6);
  flex-shrink: 0;
}

/* Style custom du slider range (doré sur fond bleu) */
.banner-cropper__zoom input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(198, 166, 100, 0.2);
  border-radius: 2px;
  outline: none;
}

.banner-cropper__zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dore-popcorn);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.banner-cropper__zoom input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.banner-cropper__zoom input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dore-popcorn);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.banner-modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.banner-modal__footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(236, 239, 241, 0.1);
}


/* Toast notification */
.banner-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.banner-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.banner-toast--success {
  background: rgba(5, 150, 105, 0.9);
  color: white;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.banner-toast--error {
  background: rgba(215, 38, 56, 0.9);
  color: white;
  box-shadow: 0 4px 20px rgba(215, 38, 56, 0.3);
}
