:root{
  --bg:#0b1220;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --text:#e8eefc;
  --muted:rgba(232,238,252,.72);
  --shadow:0 18px 40px rgba(0,0,0,.45);
  --radius:22px;
  --accent:#ff4d6d;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,77,109,.18), transparent 50%),
    radial-gradient(1000px 600px at 85% 20%, rgba(56,189,248,.14), transparent 55%),
    radial-gradient(900px 600px at 50% 90%, rgba(34,197,94,.08), transparent 55%),
    var(--bg);
}

.hero{ padding: 28px 18px 14px; }
.hero-inner{
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  backdrop-filter: blur(12px);
}
.back{
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}
.back:hover{ text-decoration: underline; }

h1{
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 950;
  letter-spacing: .2px;
}
.hero p{ margin: 0; color: var(--muted); line-height: 1.45; }

.container{ max-width: 980px; margin: 0 auto; padding: 14px 18px 40px; }

.toolbar{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  margin: 14px 0 16px;
  display: none;
}

#search, #category{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  font-weight: 800;
}
#search{ flex: 1; min-width: 240px; }
#category{ min-width: 220px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

.thumb{
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
}
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.thumb .placeholder{
  color: rgba(232,238,252,.65);
  font-weight: 900;
}

.card-body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.title-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.card-title{
  margin:0;
  font-size: 16px;
  font-weight: 950;
}

.badge{
  font-size: 12px;
  font-weight: 900;
  color: rgba(232,238,252,.9);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  white-space: nowrap;
}

.desc{
  margin:0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13.5px;
  flex: 1;
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* ✅ centre le bouton dans le pavé */
}


.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(232,238,252,.95);
  text-decoration:none;
  font-weight: 950;
  white-space: nowrap;
  transition: transform .08s ease, background .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border-color: rgba(255,195,0,.25);
  background: rgba(255,195,0,.08);
}

.legal{
  margin-top: 18px;
  color: rgba(232,238,252,.65);
  font-size: 12.5px;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}

@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  #category{ width: 100%; }
}

/* Pied de page fixe (bas droite) */
.site-footer{
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;

  font-size: 12px;
  font-weight: 800;

  color: rgba(232,238,252,.65);

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);

  padding: 6px 10px;
  border-radius: 999px;

  pointer-events: auto; /* ✅ clic actif */
}

.site-footer a{
  color: rgba(232,238,252,.75);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 24px);
  max-width: 600px;

  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;

  backdrop-filter: blur(10px);

  padding: 14px;
  z-index: 100;

  color: #fff;
  font-size: 13px;
}

.cookie-content{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-accept{
  background: #22c55e;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.btn-refuse{
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
  color: white;
}

.top-intro{
  text-align: center;
  margin: 12px 0 20px;
  font-size: 14px;
  color: rgba(232,238,252,.75);
  line-height: 1.5;
}


.card.featured{
  border: 2px solid rgba(255,170,0,.4);
  box-shadow: 0 0 25px rgba(255,170,0,.2);
}

.actions{
  justify-content: center; /* ✅ CENTRAGE */
}

.btn.primary{
  font-weight: 950;
  background: linear-gradient(
    135deg,
    rgba(255,170,0,.4),
    rgba(255,115,0,.4)
  );
  box-shadow: 0 6px 18px rgba(255,140,0,.3);
}

.btn.primary:hover{
  transform: translateY(-2px);
}
``