/* ————— Strasbourg Poker ————— */

:root {
  --bg: #0B0E0D;
  --panel: #121715;
  --line: rgba(235, 245, 240, .09);
  --text: #EEF4F0;
  --muted: #9DAAA3;
  --green: #35D488;
  --green-deep: #1FA968;
  --gold: #E9C46A;
  --red: #FF5566;
  --card-face: #F8F6F0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(53, 212, 136, .09), transparent 65%),
    radial-gradient(900px 500px at -5% 12%, rgba(233, 196, 106, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(53, 212, 136, .35); }

a { color: inherit; text-decoration: none; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

.su-spade { color: var(--green); }
.su-heart { color: var(--red); }
.su-diamond { color: var(--gold); }
.su-club { color: var(--text); }

/* ————— Navigation ————— */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 13, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3BE18F, #1FA968);
  color: #06110C;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(53, 212, 136, .35);
}

.brand-name em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.12em;
}

.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav-links > a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.site-nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ————— Boutons ————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}

.btn-primary {
  background: linear-gradient(135deg, #3BE18F, #1FA968);
  color: #06110C;
  box-shadow: 0 8px 30px rgba(53, 212, 136, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(53, 212, 136, .45); }

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(53, 212, 136, .5); transform: translateY(-2px); }

.btn-small { padding: 9px 20px; font-size: .9rem; background: linear-gradient(135deg, #3BE18F, #1FA968); color: #06110C; }
.btn-small:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(53, 212, 136, .35); }

/* ————— Hero ————— */

.hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 20px 110px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 50% 24%, rgba(53, 212, 136, .13), transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco .fs {
  position: absolute;
  font-size: clamp(90px, 14vw, 190px);
  opacity: .07;
  filter: blur(1px);
  animation: float 12s ease-in-out infinite alternate;
}
.fs-spade { top: 8%; right: 8%; color: var(--green); animation-duration: 13s; }
.fs-heart { bottom: 14%; left: 6%; color: var(--red); animation-duration: 10s; animation-delay: -3s; }
.fs-diamond { bottom: 6%; right: 16%; color: var(--gold); animation-duration: 15s; animation-delay: -6s; }
.fs-club { top: 14%; left: 10%; color: var(--text); animation-duration: 11s; animation-delay: -8s; }

@keyframes float {
  from { transform: translateY(-14px) rotate(-7deg); }
  to { transform: translateY(16px) rotate(6deg); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(53, 212, 136, .35);
  background: rgba(53, 212, 136, .08);
  color: var(--green);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 212, 136, .5); }
  70% { box-shadow: 0 0 0 8px rgba(53, 212, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 212, 136, 0); }
}

h1 {
  font-size: clamp(3rem, 9.5vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 28px 0 24px;
}

h1 em, h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--gold), #F6E3A8 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .05em;
}

.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 17px;
  font-size: .88rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
}

/* ————— Sections ————— */

section { padding: 105px 0; }
.hero { padding-top: 90px; }

.band {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .022) 10%, rgba(255, 255, 255, .022) 90%, transparent);
}

.section-head { max-width: 640px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-top: 16px;
}
.section-head .sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--green);
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--green); }

/* ————— Le club ————— */

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.club-card {
  padding: 28px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.club-card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 212, 136, .4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.club-card .suit {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 26px;
  margin-bottom: 20px;
}

.club-card h3 { font-size: 1.14rem; margin-bottom: 10px; letter-spacing: -.01em; }
.club-card p { color: var(--muted); font-size: .94rem; line-height: 1.65; }

/* ————— Les mains ————— */

.hands { display: grid; gap: 13px; margin-top: 52px; }

.hand {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .25s, background .25s, transform .25s;
}
.hand:hover {
  border-color: rgba(53, 212, 136, .38);
  background: rgba(255, 255, 255, .035);
  transform: translateX(5px);
}

.hand:first-child { border-color: rgba(233, 196, 106, .4); background: rgba(233, 196, 106, .05); }
.hand:first-child:hover { border-color: rgba(233, 196, 106, .65); }

.hand-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
  opacity: .92;
}

.hand-info h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.hand-info p { color: var(--muted); font-size: .9rem; margin-top: 4px; line-height: 1.55; }

.hand-cards { display: flex; gap: 7px; }

.pcard {
  position: relative;
  width: 44px;
  height: 60px;
  background: linear-gradient(160deg, #FCFAF5, #EDEBE1);
  border-radius: 8px;
  color: #1A1C1E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  flex-shrink: 0;
}
.pcard b { position: absolute; top: 5px; left: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: -.03em; }
.pcard i { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8px; font-style: normal; font-size: 21px; }
.pcard.red { color: #D2333F; }

.hand-cards .pcard:nth-child(odd) { transform: rotate(-2.5deg); }
.hand-cards .pcard:nth-child(even) { transform: rotate(2deg); }
.hand:hover .pcard { transform: rotate(0); transition: transform .3s; }

/* ————— Lexique ————— */

.lex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 52px;
}

.lex {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .015);
  transition: border-color .25s, transform .25s;
}
.lex:hover { border-color: rgba(53, 212, 136, .38); transform: translateY(-3px); }

.lex dt { font-weight: 600; font-size: 1.02rem; margin-bottom: 9px; display: flex; align-items: baseline; gap: 10px; }
.lex dt::before { font-size: .72em; }
.lex:nth-child(4n+1) dt::before { content: "♠"; color: var(--green); }
.lex:nth-child(4n+2) dt::before { content: "♥"; color: var(--red); }
.lex:nth-child(4n+3) dt::before { content: "♦"; color: var(--gold); }
.lex:nth-child(4n+4) dt::before { content: "♣"; color: var(--text); }
.lex dd { color: var(--muted); font-size: .92rem; line-height: 1.62; }

/* ————— Footer ————— */

footer { border-top: 1px solid var(--line); padding: 30px 0 38px; }

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.foot-brand { font-weight: 600; font-size: .95rem; }
.foot-note { color: var(--muted); font-size: .84rem; }

.legal { margin-top: 18px; }
.legal summary { color: var(--muted); font-size: .82rem; cursor: pointer; width: fit-content; }
.legal summary:hover { color: var(--text); }
.legal p { color: var(--muted); font-size: .82rem; line-height: 1.7; margin-top: 10px; }

/* ————— Animations d'apparition ————— */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-deco .fs, .badge::before { animation: none; }
}

/* ————— Responsive ————— */

@media (max-width: 800px) {
  .burger { display: flex; }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 4px;
    padding: 14px;
    background: rgba(11, 14, 13, .97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px; border-radius: 12px; }
  .nav-links > a:not(.btn):hover { background: rgba(255, 255, 255, .04); }
  .nav-links .btn { margin-top: 8px; }

  section { padding: 78px 0; }

  .hand { grid-template-columns: 52px 1fr; padding: 18px 20px; }
  .hand-num { font-size: 1.6rem; }
  .hand-cards { grid-column: 1 / -1; flex-wrap: wrap; }

  .pcard { width: 40px; height: 55px; }

  .foot-row { flex-direction: column; align-items: flex-start; }
}
