/* ============================================================
   PlayDoor — Front Annuaire
   Minimaliste, typographie forte, effets 3D CSS
   ============================================================ */

:root {
  --bg:       #07080f;
  --bg2:      #0d0f1a;
  --bg3:      #121522;
  --card:     #141727;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.13);
  --orange:   #FF6B2B;
  --orange-d: #C74A10;
  --yellow:   #FFD60A;
  --green:    #22C55E;
  --purple:   #7C3AED;
  --text:     #ECEEF8;
  --muted:    #5C6180;
  --muted2:   #8890B0;
  --font:     'Plus Jakarta Sans', sans-serif;
  --radius:   14px;
  --radius-lg:22px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  background:var(--bg); color:var(--text);
  font-family:var(--font); -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none }
img { display:block; max-width:100% }

/* ── NAVBAR ────────────────────────────────────────────────── */
.f-nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:0 clamp(16px,5vw,60px);
  height:64px;
  display:flex; align-items:center; gap:20px;
  background:rgba(7,8,15,.75);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:background .3s;
}
.f-nav__logo {
  display:flex; align-items:center; gap:10px;
  font-size:18px; font-weight:800;
}
.f-nav__logo span { color:var(--orange) }
.f-nav__logo .icon {
  width:34px; height:34px; background:var(--orange);
  border-radius:9px; display:flex; align-items:center;
  justify-content:center; font-size:18px;
  box-shadow:0 4px 12px rgba(255,107,43,.4);
}
.f-nav__links {
  display:flex; gap:4px; margin-left:auto; align-items:center;
}
.f-nav__link {
  padding:7px 14px; border-radius:9px; font-size:13px; font-weight:600;
  color:var(--muted2); transition:all .15s;
}
.f-nav__link:hover { color:var(--text); background:rgba(255,255,255,.06) }
.f-nav__btn {
  padding:8px 18px; border-radius:10px;
  background:var(--orange); color:#fff;
  font-size:13px; font-weight:700;
  box-shadow:0 4px 14px rgba(255,107,43,.3);
  transition:all .15s;
}
.f-nav__btn:hover { background:var(--orange-d); transform:translateY(-1px) }
.f-nav__hamburger {
  display:none; background:none; border:none;
  color:var(--text); font-size:22px; cursor:pointer; margin-left:auto;
}

/* ── HERO ───────────────────────────────────────────────────── */
.f-hero {
  min-height:100vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:100px clamp(16px,5vw,80px) 60px;
  position:relative; overflow:hidden;
}

/* Grille de fond animée */
.f-hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,107,43,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,.04) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
  animation:gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position:60px 60px } }

/* Blur orbs */
.f-hero__orb {
  position:absolute; border-radius:50%;
  filter:blur(80px); pointer-events:none; z-index:0;
}
.f-hero__orb--1 {
  width:500px; height:500px; top:-100px; left:-100px;
  background:radial-gradient(circle, rgba(255,107,43,.15), transparent 70%);
  animation:orbFloat 8s ease-in-out infinite;
}
.f-hero__orb--2 {
  width:400px; height:400px; bottom:-80px; right:-80px;
  background:radial-gradient(circle, rgba(124,58,237,.12), transparent 70%);
  animation:orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,100% { transform:translateY(0) scale(1) }
  50%      { transform:translateY(-30px) scale(1.05) }
}

.f-hero__content { position:relative; z-index:1; max-width:760px }

.f-hero__badge {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,107,43,.1); border:1px solid rgba(255,107,43,.25);
  color:var(--orange); border-radius:100px;
  padding:6px 16px; font-size:12px; font-weight:700;
  letter-spacing:.5px; text-transform:uppercase;
  margin-bottom:28px;
  animation:fadeUp .6s ease both;
}

/* ── TEXTE 3D FLIP ─────────────────────────────────────────── */
.f-flip-title {
  font-size:clamp(40px, 8vw, 80px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-2px;
  color:var(--text);
  margin-bottom:24px;
  animation:fadeUp .6s ease .1s both;
}

/* Mot qui flip en 3D au défilement */
.f-flip-word {
  display:inline-block;
  perspective:600px;
  perspective-origin:50% 50%;
}
.f-flip-word__inner {
  display:inline-block;
  transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.68,-0.55,.265,1.55);
  color:var(--orange);
}
.f-flip-word.flipped .f-flip-word__inner {
  transform:rotateX(360deg);
}

/* Texte flottant — mots qui remontent */
.f-float-words {
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:10px; margin-bottom:40px;
  animation:fadeUp .6s ease .2s both;
}
.f-float-word {
  background:rgba(255,255,255,.05);
  border:1px solid var(--border2);
  border-radius:100px;
  padding:8px 16px;
  font-size:14px; font-weight:600; color:var(--muted2);
  animation:wordFloat linear infinite;
  animation-duration:var(--dur, 4s);
  animation-delay:var(--delay, 0s);
}
@keyframes wordFloat {
  0%,100% { transform:translateY(0) }
  50%      { transform:translateY(-6px) }
}

.f-hero__sub {
  font-size:clamp(15px,2vw,18px);
  color:var(--muted2); line-height:1.7;
  max-width:520px; margin:0 auto 40px;
  animation:fadeUp .6s ease .15s both;
}

.f-hero__cta {
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  animation:fadeUp .6s ease .25s both;
}
.f-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:14px;
  font-size:15px; font-weight:700; font-family:var(--font);
  border:none; cursor:pointer; transition:all .2s;
  text-decoration:none;
}
.f-btn--primary {
  background:var(--orange); color:#fff;
  box-shadow:0 6px 24px rgba(255,107,43,.35);
}
.f-btn--primary:hover { background:var(--orange-d); transform:translateY(-2px) }
.f-btn--outline {
  background:transparent; color:var(--muted2);
  border:1.5px solid var(--border2);
}
.f-btn--outline:hover { color:var(--text); border-color:var(--border); background:rgba(255,255,255,.04) }

/* Stats hero */
.f-hero__stats {
  display:flex; gap:clamp(24px,4vw,56px);
  justify-content:center; margin-top:56px;
  animation:fadeUp .6s ease .35s both;
  padding-bottom:60px;
}
.f-hero__stat { text-align:center }
.f-hero__stat-val {
  font-size:clamp(28px,4vw,40px);
  font-weight:800; color:var(--text); line-height:1;
  background:linear-gradient(135deg,var(--text),var(--muted2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.f-hero__stat-lbl {
  font-size:12px; color:var(--muted); margin-top:4px; font-weight:600;
}

/* Scroll indicator */
.f-scroll-hint {
  position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.5px;
  animation:fadeUp 1s ease .6s both;
}
.f-scroll-hint__arrow {
  width:22px; height:22px; border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  animation:arrowBounce 1.5s ease infinite;
}
@keyframes arrowBounce { 0%,100%{transform:rotate(45deg) translate(0,0)} 50%{transform:rotate(45deg) translate(3px,3px)} }

/* ── SECTION COMMUNE ────────────────────────────────────────── */
.f-section {
  padding:clamp(60px,8vw,100px) clamp(16px,5vw,60px);
}
.f-section__header {
  text-align:center; margin-bottom:clamp(36px,5vw,56px);
}
.f-section__tag {
  display:inline-block; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:1px;
  color:var(--orange); margin-bottom:12px;
}
.f-section__title {
  font-size:clamp(28px,4vw,44px); font-weight:800;
  letter-spacing:-1px; line-height:1.1;
}
.f-section__sub {
  font-size:16px; color:var(--muted2); margin-top:12px; line-height:1.7;
}

/* ── BARRE DE RECHERCHE ─────────────────────────────────────── */
.f-search-bar {
  max-width:640px; margin:0 auto 48px;
  background:var(--card);
  border:1px solid var(--border2);
  border-radius:18px;
  display:flex; align-items:center;
  padding:6px 6px 6px 20px;
  box-shadow:0 8px 40px rgba(0,0,0,.3);
  transition:border-color .2s, box-shadow .2s;
}
.f-search-bar:focus-within {
  border-color:rgba(255,107,43,.4);
  box-shadow:0 8px 40px rgba(255,107,43,.12);
}
.f-search-bar input {
  flex:1; background:none; border:none; outline:none;
  color:var(--text); font-size:15px; font-family:var(--font);
  padding:8px 12px 8px 0;
}
.f-search-bar input::placeholder { color:var(--muted) }
.f-search-bar button {
  background:var(--orange); color:#fff; border:none;
  border-radius:12px; padding:10px 20px;
  font-size:13px; font-weight:700; font-family:var(--font);
  cursor:pointer; white-space:nowrap; transition:background .15s;
}
.f-search-bar button:hover { background:var(--orange-d) }
.f-search-bar__icon { color:var(--muted); font-size:18px; flex-shrink:0 }

/* Filtres catégories */
.f-filters {
  display:flex; flex-wrap:wrap; gap:8px;
  justify-content:center; margin-bottom:40px;
}
.f-filter {
  padding:7px 16px; border-radius:100px;
  background:var(--card); border:1.5px solid var(--border2);
  color:var(--muted2); font-size:13px; font-weight:600;
  cursor:pointer; transition:all .15s; white-space:nowrap;
  font-family:var(--font);
}
.f-filter:hover, .f-filter.active {
  background:rgba(255,107,43,.1);
  border-color:rgba(255,107,43,.35);
  color:var(--orange);
}

/* ── GRILLE COMMERCES ───────────────────────────────────────── */
.f-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:20px;
  max-width:1200px; margin:0 auto;
}

/* Carte commerce */
.f-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .25s ease, border-color .25s, box-shadow .25s;
  cursor:pointer;
}
.f-card:hover {
  transform:translateY(-6px);
  border-color:var(--border2);
  box-shadow:0 20px 60px rgba(0,0,0,.4);
}

/* Photo principale de la carte */
.f-card__img {
  position:relative; height:180px; overflow:hidden;
  background:var(--bg3);
}
.f-card__img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.f-card:hover .f-card__img img { transform:scale(1.06) }
.f-card__img-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:56px;
  background:linear-gradient(135deg, var(--bg3), var(--card));
}

/* Badge jeu */
.f-card__game-badge {
  position:absolute; top:12px; right:12px;
  background:rgba(0,0,0,.65); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:100px; padding:4px 10px;
  font-size:11px; font-weight:700; color:#fff;
  display:flex; align-items:center; gap:5px;
}

/* Quota restant */
.f-card__quota {
  position:absolute; bottom:12px; left:12px;
  background:rgba(34,197,94,.15); backdrop-filter:blur(8px);
  border:1px solid rgba(34,197,94,.3);
  border-radius:100px; padding:3px 10px;
  font-size:11px; font-weight:700; color:#22C55E;
}
.f-card__quota.low {
  background:rgba(239,68,68,.15);
  border-color:rgba(239,68,68,.3);
  color:#EF4444;
}

/* ── NOUVELLE STRUCTURE CARTE ───────────────────────────────── */

/* Header : photo carrée + nom + badge jeu */
.f-card__top {
  display:flex; gap:12px; align-items:flex-start;
  padding:14px 14px 0;
}
.f-card__thumb {
  width:64px; height:64px; border-radius:12px;
  overflow:hidden; flex-shrink:0;
  background:var(--bg3);
  border:1px solid var(--border2);
}
.f-card__thumb img { width:100%; height:100%; object-fit:cover }
.f-card__thumb-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; font-weight:800;
}
.f-card__top-info { flex:1; min-width:0 }
.f-card__name { font-size:15px; font-weight:800; color:var(--text); margin-bottom:3px; line-height:1.2 }
.f-card__cat {
  font-size:11px; color:var(--muted2);
  display:flex; align-items:center; gap:4px; margin-bottom:6px;
}
.f-card__game-tag {
  display:inline-flex; align-items:center; gap:4px;
  background:rgba(255,107,43,.1); border:1px solid rgba(255,107,43,.2);
  border-radius:100px; padding:3px 10px;
  font-size:11px; font-weight:700; color:var(--orange);
}

/* Logo du commerce — ligne séparée */
.f-card__logo-row {
  padding:10px 14px 0;
  display:flex; align-items:center; gap:8px;
}
.f-card__logo-wrap {
  width:40px; height:40px; border-radius:10px;
  overflow:hidden; border:1px solid var(--border2);
  background:#fff;
}
.f-card__logo-wrap img { width:100%; height:100%; object-fit:contain; padding:2px }

/* Quota inline */
.f-card__quota-inline {
  display:inline-flex; align-items:center;
  margin:10px 0 8px;
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.2);
  border-radius:100px; padding:4px 12px;
  font-size:11px; font-weight:700; color:#22C55E;
}
.f-card__quota-inline.warn {
  background:rgba(245,158,11,.1); border-color:rgba(245,158,11,.25); color:#F59E0B;
}
.f-card__quota-inline.low {
  background:rgba(239,68,68,.1); border-color:rgba(239,68,68,.2); color:#EF4444;
}

/* Body carte */
.f-card__body { padding:0 14px 14px }
.f-card__header { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px }
.f-card__logo {
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  background:var(--bg3); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; color:var(--orange);
  border:1px solid var(--border2);
}
.f-card__logo img { width:100%; height:100%; object-fit:cover }

/* Lot */
.f-card__lot {
  background:rgba(255,107,43,.07);
  border:1px solid rgba(255,107,43,.15);
  border-radius:10px; padding:10px 12px;
  margin-bottom:12px;
}
.f-card__lot-label { font-size:10px; font-weight:700; color:var(--orange); text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px }
.f-card__lot-title { font-size:14px; font-weight:700; color:var(--text) }

/* Infos bas */
.f-card__footer {
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color:var(--muted);
}
.f-card__city { display:flex; align-items:center; gap:4px }
.f-card__play-btn {
  background:var(--orange); color:#fff;
  border-radius:8px; padding:6px 14px;
  font-size:12px; font-weight:700;
  transition:background .15s;
}
.f-card__play-btn:hover { background:var(--orange-d) }

/* ── SECTION 3D FLIP ───────────────────────────────────────── */
/* Section "Comment ça marche" avec cartes qui flip au scroll */
.f-how {
  background:var(--bg2);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.f-how-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:20px; max-width:960px; margin:0 auto;
}

/* Flip card */
.f-flip-card {
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  /* Pas d'opacity:0 — géré par le JS uniquement */
}
.f-flip-card__inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  position: relative;
}
/* Hover desktop — CSS pur */
/* Hover desktop */
@media (hover: hover) and (pointer: fine) {
  .f-flip-card:hover .f-flip-card__inner {
    transform: rotateY(180deg);
  }
}
/* Tap mobile — via JS is-flipped */
.f-flip-card.is-flipped .f-flip-card__inner {
  transform: rotateY(180deg);
}
.f-flip-card__front,
.f-flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.f-flip-card__front {
  background: var(--card);
  border: 1px solid var(--border2);
}
.f-flip-card__back {
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  transform: rotateY(180deg);
  border: 1px solid rgba(255,255,255,.1);
}



.f-flip-card__icon { font-size:40px; margin-bottom:12px }
.f-flip-card__step {
  font-size:10px; font-weight:700; letter-spacing:1px;
  color:var(--orange); text-transform:uppercase; margin-bottom:8px;
}
.f-flip-card__back .f-flip-card__step { color:rgba(255,255,255,.7) }
.f-flip-card__title { font-size:15px; font-weight:800; color:var(--text) }
.f-flip-card__back .f-flip-card__title { color:#fff }
.f-flip-card__desc { font-size:13px; color:var(--muted2); margin-top:6px; line-height:1.5 }
.f-flip-card__back .f-flip-card__desc { color:rgba(255,255,255,.8) }

/* ── SECTION FLOTTANTE (Pourquoi PlayDoor) ──────────────────── */
.f-float-section { max-width:1100px; margin:0 auto }
.f-float-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}
.f-float-item {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  transition:transform .3s ease, border-color .3s;
  animation:itemFloat linear infinite;
  animation-duration:var(--dur, 5s);
  animation-delay:var(--delay, 0s);
}
.f-float-item:hover {
  transform:translateY(-4px) !important;
  border-color:var(--border2);
}
@keyframes itemFloat {
  0%,100% { transform:translateY(0) }
  50%      { transform:translateY(-8px) }
}
.f-float-item__icon {
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin-bottom:14px;
  background:rgba(255,107,43,.1);
}
.f-float-item__title { font-size:15px; font-weight:800; margin-bottom:6px }
.f-float-item__desc  { font-size:13px; color:var(--muted2); line-height:1.6 }

/* ── FOOTER ────────────────────────────────────────────────── */
.f-footer {
  background:var(--bg2);
  border-top:1px solid var(--border);
  padding:40px clamp(16px,5vw,60px);
  display:flex; flex-wrap:wrap; gap:20px;
  align-items:center; justify-content:space-between;
}
.f-footer__logo { font-size:16px; font-weight:800 }
.f-footer__logo span { color:var(--orange) }
.f-footer__links { display:flex; gap:20px; flex-wrap:wrap }
.f-footer__links a { font-size:13px; color:var(--muted); transition:color .15s }
.f-footer__links a:hover { color:var(--text) }
.f-footer__copy { font-size:12px; color:var(--muted); width:100%; padding-top:16px; border-top:1px solid var(--border); text-align:center }

/* ── PAGINATION ─────────────────────────────────────────────── */
.f-pagination { display:flex; gap:6px; justify-content:center; margin-top:40px }
.f-page-btn {
  width:36px; height:36px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:var(--card); border:1px solid var(--border2);
  color:var(--muted2); font-size:13px; font-weight:700;
  cursor:pointer; transition:all .15s; font-family:var(--font);
}
.f-page-btn:hover, .f-page-btn.active {
  background:var(--orange); border-color:var(--orange); color:#fff;
}

/* ── FICHE COMMERCE ─────────────────────────────────────────── */
.f-commerce-hero {
  padding:100px clamp(16px,5vw,60px) 40px;
  max-width:900px; margin:0 auto;
}
.f-commerce-photos {
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:8px; border-radius:var(--radius-lg); overflow:hidden;
  height:320px; margin-bottom:32px;
}
.f-commerce-photos img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .3s; cursor:pointer;
}
.f-commerce-photos img:hover { transform:scale(1.03) }
.f-commerce-photos--1 { grid-template-columns:1fr }
.f-commerce-photos--2 { grid-template-columns:1fr 1fr }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px) }
  to   { opacity:1; transform:translateY(0) }
}
.reveal { opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease }
.reveal.visible { opacity:1; transform:translateY(0) }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width:768px) {
  /* Flip cards en colonne sur mobile */
  .f-how-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .f-flip-card {
    height: 200px !important;
  }

  .f-nav__links {
    display:none;
    position:fixed; top:64px; left:0; right:0;
    background:rgba(7,8,15,.98);
    flex-direction:column;
    padding:16px;
    gap:4px;
    border-bottom:1px solid var(--border);
    z-index:99;
  }
  .f-nav__links.open {
    display:flex;
  }
  .f-nav__links .f-nav__link,
  .f-nav__links .f-nav__btn {
    width:100%;
    text-align:center;
    padding:12px;
    border-radius:10px;
  }
  .f-nav__hamburger { display:block }
.f-hero__stats { gap:24px; flex-wrap:nowrap; }
  .f-commerce-photos { grid-template-columns:1fr 1fr; height:220px }
  .f-commerce-photos > img:nth-child(n+3) { display:none }
  .f-flip-card { height:auto }
}
@media (max-width:480px) {
  .f-grid { grid-template-columns:1fr }
.f-hero__stats { flex-wrap:nowrap; gap:12px; }
.f-hero__stat-val { font-size:22px; }
.f-hero__stat-lbl { font-size:10px; }
  .f-float-words { gap:6px }
}
