/* BoulevardPlay — boulevard parisien au crépuscule */

:root {
  --navy: #0E1624;
  --navy-light: #162032;
  --navy-mid: #1C2A3E;
  --gold: #C9A84C;
  --gold-light: #E2C878;
  --gold-dim: rgba(201, 168, 76, 0.18);
  --paris-blue: #0055A4;
  --paris-blue-light: #1A6FBC;
  --cream: #F4F0E8;
  --text: #E8E4DC;
  --text-muted: #9BA8B8;
  --radius: 12px;
  --radius-pill: 999px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  padding: 1.5rem 0 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--navy-mid);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paris-blue);
  box-shadow: 0 0 8px var(--paris-blue-light);
}

/* ── Hero split ── */

.hero {
  padding: 3rem 0 4.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0, 85, 164, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.meta-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.meta-chip--line {
  background: var(--paris-blue);
  color: #fff;
}

.meta-chip--genre {
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #B8923A 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

.btn-play {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
}

.btn-play:hover {
  background: var(--gold-dim);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  position: relative;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paris-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Section titles ── */

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paris-blue-light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--cream);
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 0.65rem;
}

/* ── Ligne des Jeux (numbered list) ── */

.ligne-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--navy-mid);
  margin-left: 1.25rem;
}

.ligne-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: background var(--transition);
}

.ligne-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
}

.ligne-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ligne-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 2rem;
  opacity: 0.7;
}

.ligne-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.1rem;
  align-items: center;
}

.ligne-thumb-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ligne-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.line-badge--a { background: #EBBE00; color: #1a1a1a; }
.line-badge--b { background: #009B5C; }
.line-badge--c { background: #F58220; }
.line-badge--d { background: #009640; }
.line-badge--e { background: #BF8FCC; color: #1a1a1a; }
.line-badge--f { background: #6EC4E8; color: #1a1a1a; }
.line-badge--g { background: #8D5A2B; }

.ligne-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.ligne-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--navy-mid);
  color: var(--text-muted);
}

.tag--genre {
  color: var(--paris-blue-light);
  background: rgba(0, 85, 164, 0.15);
}

/* ── Coups de cœur (horizontal scroll) ── */

.coups-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.coups-scroll::-webkit-scrollbar {
  height: 4px;
}

.coups-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}

.coup-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  background: var(--navy-light);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.coup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.45);
}

.coup-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.coup-card-img .line-badge {
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
}

.coup-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.coup-card:hover .coup-card-img img {
  transform: scale(1.04);
}

.coup-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.coup-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.coup-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Comment jouer ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0 6rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ── Modal ── */

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(960px, 96vw);
  height: min(620px, 88vh);
  background: var(--navy-light);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.game-modal.is-open .modal-panel {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.modal-body {
  flex: 1;
  min-height: 0;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(820px, 96vw);
  margin-inline: auto;
  background: var(--navy-light);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}

.btn-cookie--accept {
  background: var(--gold);
  color: var(--navy);
}

.btn-cookie--accept:hover {
  background: var(--gold-light);
}

.btn-cookie--refuse {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.btn-cookie--refuse:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ── Legal pages ── */

.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-back:hover {
  color: var(--gold);
}

/* ── Responsive ── */

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

  .hero-visual {
    order: -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ligne-item {
    grid-template-columns: auto 1fr;
  }

  .ligne-item .btn-play {
    grid-column: 2;
    justify-self: start;
    margin-left: calc(88px + 1.1rem);
  }
}

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

  .ligne-body {
    grid-template-columns: 72px 1fr;
  }

  .ligne-item .btn-play {
    margin-left: calc(72px + 1.1rem);
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .btn-cookie {
    flex: 1;
  }
}
