/* ============================================================
   BizCreator — Moteur Sites Web
   Style LUXE TECHNOLOGIQUE (inspiré serveur premium)
   ============================================================ */

/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at top,
    #ffffff 0%,
    #f4f1ec 60%,
    #e9e4d8 100%);
  color: #1f2933;
}

/* ---------- VARIABLES ---------- */
:root {
  --gold: #d8b86e;
  --gold-soft: #f2e6c7;
  --gold-border: #c9a65b;

  --ivory: #fcfaf6;
  --ink: #1f2933;
  --muted: #6b7280;

  --accent: #d94a2a;

  --radius-xl: 26px;
  --radius-lg: 18px;

  --shadow-soft: rgba(0, 0, 0, 0.12);
}

/* ---------- TOP BAR ---------- */
.topbar {
  padding: 22px;
  text-align: center;
  background: linear-gradient(145deg, #fff, #f1e8d6);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.topbar h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #503b1f;
  letter-spacing: 0.04em;
}

/* ---------- SEARCH ---------- */
.search-panel {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.search-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, 95%);
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #efe6d2);
  border: 1px solid var(--gold-border);
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 22px var(--shadow-soft);
}

.search-chip input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  outline: none;
  color: var(--ink);
}

/* ---------- RESULTS LIST ---------- */
.results-list {
  padding: 30px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(1100px, 100%);
  margin: auto;
}

/* ---------- CARD ---------- */
.card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(145deg, #fcfaf6, #efe7d8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gold-border);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 16px 36px var(--shadow-soft);
  position: relative;
}

/* Ligne lumineuse */
.card::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.9;
}

/* ---------- THUMB ---------- */
.thumb {
  flex-shrink: 0;
}

.thumb img,
.logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 1px solid var(--gold-border);
  box-shadow:
    inset 0 0 0 1px #fff,
    0 8px 18px rgba(0,0,0,0.18);
  object-fit: contain;
  padding: 12px;
}

/* ---------- BODY ---------- */
.body {
  flex: 1;
}

.title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.type {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #4b361f;
  font-weight: 600;
}

.desc {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ---------- INFOS ---------- */
.infos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.info {
  font-size: 0.85rem;
  color: #3b2f1c;
}

/* ---------- TAGS ---------- */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gold-border);
}

/* ---------- ACTIONS ---------- */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions a,
.actions button {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--gold-border);
  background: linear-gradient(145deg, #fff6dc, #e7d39c);
  color: #3b2f1c;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 14px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.actions a:hover,
.actions button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 22px rgba(0,0,0,0.22);
}

.actions .delete {
  background: linear-gradient(145deg, #ffefef, #eec2c2);
  color: #7a1f1f;
}

/* ---------- EMPTY ---------- */
.empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* ---------- BOTTOM NAV ---------- */
#bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: radial-gradient(circle at top left, #ffffff, #f3e7cf);
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* Boutons + lien + select : base commune */
#bottom-nav a,
#bottom-nav button,
#bottom-nav select {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  background: #fff8ec;
  color: #4a3824;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 10px rgba(0,0,0,0.15);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    letter-spacing 0.18s ease;
}

/* Lien "← Retour Accueil" un peu plus marqué */
#bottom-nav .nav-back {
  background: linear-gradient(135deg, #fffdf7, #f4e0b8);
  font-weight: 600;
}

/* Hover général */
#bottom-nav a:hover,
#bottom-nav button:hover,
#bottom-nav select:hover {
  background: #fff2da;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 7px 16px rgba(0,0,0,0.22);
  letter-spacing: 0.02em;
}

/* Boutons "Mes sites" / "Sites publics" */
.scope-btn {
  background: #fff7ea;
}

/* Bouton actif (onglet sélectionné) */
.scope-btn.active {
  background: linear-gradient(135deg, #ffeec5, #f1d390);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 8px 18px rgba(0,0,0,0.25);
}

/* Compteur à droite = discret */
#count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 6px;
}

/* ---------- FOOTER ---------- */
.page-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

.confirm-box {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.24);
  display: none;              /* ✅ cachée par défaut */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* ✅ affichage uniquement quand JS ouvre la box */
.confirm-box.active {
  display: flex;
}

.confirm-dialog {
  background: linear-gradient(145deg, #fff, #efe6d2);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: min(420px, 90%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

.confirm-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
