/* ==========================================================================
   Fred's Poker Club — page « site en construction »
   Direction : salon feutré, bleu nuit, filets dorés, logo halo centré.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs */
  --navy-deep: #081730;
  --navy: #0e2244;
  --navy-light: #1d3a6b;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, .6);
  --gold-line: rgba(201, 162, 39, .45);
  --gold-line-faint: rgba(201, 162, 39, .18);
  --cream: #f3ecdb;
  --cream-70: rgba(233, 222, 196, .72);
  --cream-75: rgba(233, 222, 196, .75);
  --cream-55: rgba(233, 222, 196, .55);
  --cream-45: rgba(233, 222, 196, .45);

  /* Typographie */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Jost, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Gabarit — valeurs « ordinateur » (partie 1 de la maquette) */
  --frame-outer: 26px;
  --frame-inner: 33px;
  --pad-block-start: clamp(56px, 8vh, 70px);
  --pad-block-end: clamp(48px, 7vh, 64px);
  --pad-inline: clamp(48px, 6vw, 80px);
  --stack-gap: clamp(18px, 3vh, 26px);
  --rows-gap: clamp(26px, 4vh, 40px);

  --logo-size: min(300px, 40vh);
  --eyebrow-size: 11px;
  --eyebrow-rule: 52px;
  --title-size: clamp(46px, 5.8vw, 68px);
  --lead-size: 18px;
  --date-size: 34px;
  --kicker-size: 10px;
  --footer-size: 12px;
  --footer-gap: 26px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

/* --------------------------------------------------------------------------
   3. Scène — fond, texture, double filet doré
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.stage__glow,
.stage__weave,
.stage__frame {
  position: absolute;
  pointer-events: none;
}

.stage__glow {
  inset: 0;
  background: radial-gradient(120% 90% at 50% 15%, var(--navy-light) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}

/* Tissage diagonal très discret, rappel du tapis de table. */
.stage__weave {
  inset: 0;
  opacity: .13;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 9px);
}

.stage__frame--outer {
  inset: var(--frame-outer);
  border: 1px solid var(--gold-line);
}

.stage__frame--inner {
  inset: var(--frame-inner);
  border: 1px solid var(--gold-line-faint);
}

.stage__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--rows-gap);
  padding: var(--pad-block-start) var(--pad-inline) var(--pad-block-end);
  animation: fpc-in .9s ease both;
}

/* --------------------------------------------------------------------------
   4. Bloc central
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--stack-gap);
  text-align: center;
}

/* Sur-titre « Club privé » encadré de deux filets. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 14px);
  margin: 0;
  font-size: var(--eyebrow-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .42em;
  text-transform: uppercase;
  text-indent: .42em; /* compense le letter-spacing final, recentre le mot */
  color: var(--cream-75);
}

.eyebrow__rule {
  display: block;
  width: var(--eyebrow-rule);
  height: 1px;
  background: var(--gold-soft);
}

/* Logo rond, halo doré respirant. */
.crest {
  position: relative;
  width: var(--logo-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: fpc-up 1s cubic-bezier(.2, .7, .3, 1) both;
}

.crest__halo {
  position: absolute;
  width: 132%;
  height: 132%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .35) 0%, rgba(201, 162, 39, 0) 62%);
  animation: fpc-halo 6s ease-in-out infinite;
}

/* Repli si le visuel du logo manque : médaillon marqué d'un pique. */
.crest__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 162, 39, .5);
  font-size: calc(var(--logo-size) * .4);
  line-height: 1;
  color: var(--gold);
}

.crest__logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 162, 39, .5);
  color: transparent; /* masque le texte alternatif si le fichier manque */
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: .01em;
  color: var(--cream);
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 620px;
  font-size: var(--lead-size);
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream-70);
  text-wrap: pretty;
}

.opening {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: clamp(4px, 1.4vh, 12px) 0 0;
}

.opening__date {
  font-family: var(--font-display);
  font-size: var(--date-size);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.opening__label {
  font-size: var(--kicker-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-indent: .32em;
  color: var(--cream-55);
}

/* --------------------------------------------------------------------------
   5. Pied de page
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--footer-gap);
  font-size: var(--footer-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.footer__pip { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   6. Adaptations — tablette puis mobile (partie 2 de la maquette)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --frame-outer: 20px;
    --frame-inner: 26px;
    --logo-size: min(260px, 32vh);
    --title-size: clamp(38px, 5.6vw, 54px);
    --eyebrow-rule: 40px;
    --date-size: 32px;
  }
}

/* Fenêtre d'ordinateur peu haute : on resserre pour rester sur un seul écran. */
@media (min-width: 641px) and (max-height: 700px) {
  :root {
    --pad-block-start: 42px;
    --pad-block-end: 38px;
    --rows-gap: 22px;
    --stack-gap: 16px;
    --logo-size: min(300px, 34vh);
    --title-size: clamp(38px, 4.8vw, 54px);
  }
}

/* iPhone 390 × 844 et petit mobile 360 × 640 : tout tient sans défilement. */
@media (max-width: 640px) {
  :root {
    --frame-outer: 14px;
    --frame-inner: 19px;
    --pad-block-start: clamp(44px, 7vh, 60px);
    --pad-block-end: clamp(40px, 5.7vh, 48px);
    --pad-inline: clamp(26px, 7.6vw, 30px);
    --stack-gap: clamp(14px, 2.4vh, 20px);
    --rows-gap: clamp(20px, 3.1vh, 26px);

    --logo-size: min(51vw, 24vh);
    --eyebrow-size: 10px;
    --eyebrow-rule: clamp(26px, 7.7vw, 30px);
    --title-size: clamp(28px, 10vw, 40px);
    --lead-size: clamp(14px, 4vw, 16px);
    --date-size: clamp(24px, 7.6vw, 30px);
    --kicker-size: 9px;
    --footer-size: 10px;
    --footer-gap: clamp(14px, 4vw, 16px);
  }
}

/* --------------------------------------------------------------------------
   7. Animations
   -------------------------------------------------------------------------- */

@keyframes fpc-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fpc-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fpc-halo {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .stage__inner,
  .crest,
  .crest__halo {
    animation: none;
  }
  .crest__halo { opacity: .45; }
}
