/* ============================================================
   Cine France — Styles
   Identité : bleu nuit + or (inspiré de Copro Conseil)
   ============================================================ */
:root {
  --c-navy: #102741;
  --c-navy-darker: #0a1a2e;
  --c-navy-mid: #1b3f68;
  --c-gold: #c69a48;
  --c-gold-bright: #e0b662;
  --c-sand: #f6f3ec;
  --c-white: #ffffff;
  --c-text: #1c2b3b;
  --c-muted: #5d6f80;
  --c-line: rgba(16, 39, 65, 0.1);

  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 26, 46, 0.10);
  --shadow-lg: 0 20px 55px rgba(10, 26, 46, 0.16);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

::selection { background: var(--c-gold); color: var(--c-navy-darker); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy-darker);
  box-shadow: 0 8px 22px rgba(198, 154, 72, 0.35);
}
.btn--gold:hover { background: var(--c-gold-bright); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198, 154, 72, 0.45); }
.btn--navy { background: var(--c-navy); color: var(--c-white); box-shadow: 0 8px 22px rgba(16, 39, 65, 0.25); }
.btn--navy:hover { background: var(--c-navy-mid); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--c-white); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn--outline { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--outline:hover { background: var(--c-navy); color: var(--c-white); }
.btn--lg { padding: 1rem 2.4rem; font-size: 1.05rem; }
.btn--sm { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn--full { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--c-navy-darker);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar__inner { display: flex; justify-content: flex-end; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.topbar__link { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.topbar__link:hover { opacity: 1; color: var(--c-gold-bright); }
.topbar__hours { color: var(--c-gold); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 39, 65, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease;
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold));
  color: var(--c-navy-darker);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(198, 154, 72, 0.35);
  flex: none;
}
.logo__text { font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; color: var(--c-white); line-height: 1.15; }
.logo__text em { display: block; font-style: normal; color: var(--c-gold-bright); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__list {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  font-size: 0.96rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav__link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  font-size: 0.96rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-gold);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--c-gold-bright); }
.nav__cta { padding: 0.55rem 1.4rem; font-size: 0.9rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.burger span { width: 26px; height: 2.5px; background: var(--c-white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav ouverte sur mobile */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--c-navy-darker);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
  }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-darker) 70%); color: var(--c-white); text-align: center; padding: 6.5rem 0 8rem; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 85% 12%, rgba(198, 154, 72, 0.16), transparent 65%),
    radial-gradient(520px 280px at 8% 88%, rgba(224, 182, 98, 0.10), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.hero__kicker { display: inline-block; font-size: 0.78rem; letter-spacing: 0.32em; color: var(--c-gold-bright); font-weight: 500; margin-bottom: 1.3rem; text-transform: uppercase; }
.hero__title { font-family: var(--font-title); font-size: clamp(2.05rem, 5vw, 3.3rem); font-weight: 600; line-height: 1.18; margin-bottom: 1.3rem; }
.hero__title em { font-style: italic; color: var(--c-gold-bright); }
.hero__title { font-family: var(--font-title); font-size: clamp(2.05rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.18; margin-bottom: 0.7rem; color: var(--c-white); }
.hero__subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 680px; margin-inline: auto; margin-bottom: 1.2rem; font-weight: 300; }
.hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.hero__badges li { display: flex; align-items: center; gap: 0.45rem; }
.hero__badges li::before { content: "✔"; color: var(--c-gold); }
.hero__curve { position: absolute; bottom: -1px; left: 0; right: 0; height: 90px; background: var(--c-white); border-radius: 100% 100% 0 0 / 90px 90px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 5.2rem 0; }
.section--sand { background: var(--c-sand); }
.section--alt { background: var(--c-white); }
.section--navy { background: linear-gradient(160deg, var(--c-navy), var(--c-navy-darker)); color: var(--c-white); }
.section__kicker { display: block; width: fit-content; margin-inline: auto; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-gold); font-weight: 500; margin-bottom: 0.8rem; text-align: center; }
.section__kicker--light { color: var(--c-gold-bright); }
.section__title { font-family: var(--font-title); font-size: clamp(1.7rem, 3.5vw, 2.45rem); font-weight: 600; color: var(--c-navy); margin-bottom: 1rem; line-height: 1.25; text-align: center; }
.section__title--light { color: var(--c-white); }
.section__lead { max-width: 740px; margin-inline: auto; color: var(--c-muted); font-size: 1.05rem; margin-bottom: 2.8rem; text-align: center; }
.section--navy .section__lead { color: rgba(255, 255, 255, 0.78); }

.align-left .section__kicker, .align-left .section__title { text-align: left; margin-inline: 0; }
.align-left .section__lead { text-align: left; margin-inline: 0; }

/* ---------- Bandeau genre ---------- */
.genre-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.genre-bar__btn {
  background: var(--c-sand);
  color: var(--c-navy);
  border: 1px solid var(--c-line);
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.genre-bar__btn:hover { background: var(--c-navy); color: var(--c-white); }
.genre-bar__btn--active {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: var(--c-gold);
}

/* ---------- Cartes de films ---------- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.film-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.film-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.film-card__poster {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-mid));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  overflow: hidden;
}
.film-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.film-card__body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.film-card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.film-card__meta {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.film-card__genre {
  font-size: 0.76rem;
  background: var(--c-sand);
  color: var(--c-navy-mid);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.film-card__duree { font-size: 0.82rem; }
.film-card__entrees {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-top: auto;
  margin-bottom: 0.6rem;
}

/* ---------- Carte box-office (liste) ---------- */
.boxoffice-list { list-style: none; }
.boxoffice-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.8rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-line);
}
.boxoffice-item:last-child { border-bottom: none; }
.boxoffice-item__rank {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-gold);
  text-align: center;
}
.boxoffice-item__poster {
  width: 48px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-navy-mid);
  flex: none;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6rem;
}
.boxoffice-item__poster img { width: 100%; height: 100%; object-fit: cover; }
.boxoffice-item__title { font-weight: 500; color: var(--c-navy); font-size: 0.95rem; }
.boxoffice-item__entrees { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--c-navy); white-space: nowrap; }

/* ---------- Semaine card ---------- */
.semaine-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
  margin-bottom: 0.8rem;
}
.semaine-card__label {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 0.5rem;
}
.semaine-card__stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--c-muted);
}
.semaine-card__stats span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge--gold { background: var(--c-sand); color: var(--c-navy-mid); }
.badge--blue { background: rgba(16, 39, 65, 0.08); color: var(--c-navy); }

/* ---------- Hero date ---------- */
.hero__date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1.2rem;
}
.hero__date .generated-date {
  color: var(--c-gold-bright);
  font-weight: 600;
}

/* ---------- About ---------- */
.about p {
  color: var(--c-muted);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.7;
}
.about a { color: var(--c-gold); }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  z-index: 100;
}
.to-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-gold); color: var(--c-navy-darker); transform: translateY(-2px); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-navy-darker);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 0;
}
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__col { flex: 1; min-width: 200px; }
.footer__col h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--c-gold-bright);
  margin-bottom: 1rem;
}
.footer__link {
  display: block;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--c-gold-bright); }
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---------- Section subtitle ---------- */
.section__subtitle {
  text-align: center;
  color: var(--c-muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.section--navy .section__subtitle { color: rgba(255, 255, 255, 0.8); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.25s, transform 0.25s;
}
.stat:hover { background: rgba(198, 154, 72, 0.14); transform: translateY(-4px); }
.stat__value { display: block; font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--c-gold); line-height: 1.1; }
.stat__label { font-size: 0.87rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .hero__actions { flex-direction: column; }
  .hero__badges { gap: 1rem; }
  .align-left .section__title { text-align: center; }
  .align-left .section__lead { text-align: center; }
  .stats { grid-template-columns: 1fr; }
}
