:root{
  --bg:#f6f7fb; --card:#fff; --text:#121826; --muted:#6b7280; --border:#e5e7eb;
  --shadow:0 10px 25px rgba(17,24,39,.08);
  --radius:16px; --gap:16px;

  --cookRed:#c8102e; --cookBordeaux:#7a0019;
  --newBg:#fff1f2; --newBorder:#fecaca; --newText:#b91c1c;
  --focus: rgba(200,16,46,.25);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% 0%, rgba(200,16,46,.08) 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(122,0,25,.10) 0%, transparent 50%),
              var(--bg);
}


header{
  border:2px solid var(--cookRed);
  border-radius:10px;
  background:rgba(255,255,255,.75);
  padding: 10px 10px;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px 14px 34px; /* même base que CookStart */
}

/* ✅ bannière parfaitement alignée sur la même colonne */
.banner-wrap{
  max-width:1100px;
  margin:16px auto 8px;
  padding:0;              /* IMPORTANT : plus de padding différent */
}

.banner{
  border-radius:18px;
  overflow:hidden;
  border:2px solid var(--cookRed);
  box-shadow:0 12px 28px rgba(0,0,0,.15);
  background:#000;
  aspect-ratio: 1024 / 260;
}

.banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 43%;
  display:block;
}
@media (max-width:768px){ .banner{ aspect-ratio: 1/0.3; } }

.headerTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap; }
h1{ margin:0; font-size: clamp(22px, 3.2vw, 34px); letter-spacing:-0.02em; }
.subtitle{ margin:6px 0 0 0; color:var(--muted); font-size:13px; }
.top-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:2px; }

.btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  line-height:1;
  font: inherit;
  cursor:pointer;
  gap:8px;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); border-color:#cbd5e1; box-shadow:0 10px 18px rgba(17,24,39,.08); }
.btn.danger{ border-color: rgba(122,0,25,.35); color: var(--cookBordeaux); }
.btn.primary{ border-color: rgba(200,16,46,.35); background: rgba(200,16,46,.06); }

.searchRow{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.search{
  flex:1 1 240px;
  display:flex; gap:10px; align-items:center;
  background:#fff; border:1px solid var(--border);
  border-radius:14px; padding:10px 12px;
}
.search svg{ width:18px; height:18px; color: var(--cookBordeaux); }
.search input{ width:100%; border:none; outline:none; font-size:14px; background:transparent; }
.status{ margin-top:8px; color:var(--muted); font-size:12px; }

.grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); margin-top:12px; }
@media(min-width:900px){ .grid{ grid-template-columns:1fr 1fr; } }

.card{ background:var(--card); border:2px solid var(--cookRed); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.card__head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(200,16,46,.06), transparent);
  cursor:pointer; user-select:none;
}
.headLeft{ display:flex; align-items:center; gap:10px; min-width:0; }

.icon{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--border); background:#fff;
  display:grid; place-items:center; flex:0 0 auto;
  overflow:hidden;
  font-weight:900;
  color:var(--cookBordeaux);
}

.card__title{ margin:0; font-size:16px; font-weight:900; }
.card__sub{ margin:2px 0 0 0; color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.chev{
  width:34px; height:34px; border-radius:12px;
  border:1px solid var(--border); background:#fff;
  display:grid; place-items:center; flex:0 0 auto;
}
.chev svg{ width:18px; height:18px; stroke:var(--cookBordeaux); fill:none; stroke-width:2; }
.card__body{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:10px; }
.card[data-collapsed="true"] .card__body{ display:none; }
.card[data-collapsed="true"] .chev svg{ transform: rotate(-90deg); }

.link{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:11px 11px; border:1px solid rgba(122,0,25,.25); border-radius:12px;
  text-decoration:none; color:var(--text); background:#fff;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  outline:none;
}
.link:hover{ transform: translateY(-1px); border-color:#9ca3af; box-shadow:0 10px 18px rgba(17,24,39,.08); }
.link.isMatch{ border-color: var(--cookRed); box-shadow: 0 0 0 4px var(--focus); }

.link__left{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.link__label{
  font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:flex; align-items:center; gap:8px;
}
.link__icon{
  width:22px; height:22px; border-radius:8px;
  border:1px solid var(--border); display:grid; place-items:center;
  flex:0 0 auto; background:#fff;
  font-size:14px;
}
.link__note{
  font-size:12px; color: var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.pill{
  font-size:12px; padding:6px 10px;
  border-radius:999px; border:1px solid var(--border);
  background:#f8fafc; color:#0f172a; flex:0 0 auto;
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap;
}
.pill--new{ border-color:var(--newBorder); background:var(--newBg); color:var(--newText); font-weight:900; }

.catCount{
  font-size:12px; padding:6px 10px;
  border-radius:999px; border:1px solid var(--border);
  background:#f8fafc; color:#0f172a;
  font-weight:900; flex:0 0 auto;
  white-space:nowrap;
  display:inline-flex; align-items:center; gap:6px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.catCount--filtered{
  border-color: rgba(200,16,46,.35);
  background: rgba(200,16,46,.08);
  color: var(--cookBordeaux);
  box-shadow: 0 0 0 3px var(--focus);
}
.catCount.bump{ transform: scale(1.08); }

.error{
  border:1px solid #fecaca; background:#fff1f2; color:#991b1b;
  padding:12px 14px; border-radius:14px; box-shadow:var(--shadow); margin-top:10px;
}
mark{ background: rgba(200,16,46,.18); padding:0 4px; border-radius:6px; }

.disclaimer{
  max-width:1100px; margin: 20px auto 0; padding: 8px 12px;
  font-size: 11px; color: var(--muted); text-align: center; opacity: 0.6;
}

/* ===== MODALES ===== */
.modalOverlay{
  position: fixed; inset: 0;
  background: rgba(17,24,39,.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modalOverlay[aria-hidden="false"]{ display:flex; }
.modal{
  width: min(720px, 100%);
  background: #fff;
  border: 2px solid var(--cookRed);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(200,16,46,.06), transparent);
}
.modal__title{ margin: 0; font-size: 16px; font-weight: 900; }
.modal__close{
  border:1px solid var(--border);
  background:#fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  min-height: 38px;
}
.modal__close:hover{ transform: translateY(-1px); border-color:#cbd5e1; box-shadow:0 10px 18px rgba(17,24,39,.08); }
.modal__body{
  padding: 12px 14px 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.modal__hint{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
@media (max-width: 600px){
  .modal{ max-height: 80vh; }
  .modal__head{ padding: 10px 12px; }
  .modal__body{ padding: 10px 12px; font-size: 13px; }
  .modal__close{ padding: 6px 9px; min-height: 34px; }
}

/* ===== ADMIN extras ===== */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.list-item{
  text-align:left;
  border:1px solid rgba(122,0,25,.25);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.list-item:hover{
  transform: translateY(-1px);
  border-color:#9ca3af;
  box-shadow:0 10px 18px rgba(17,24,39,.08);
}
.li-title{ font-weight:900; }
.li-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.form label{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.form input, .form textarea, .form select{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 10px;
  font:inherit;
  background:#fff;
}
.form input:focus, .form textarea:focus, .form select:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--focus);
  border-color: rgba(200,16,46,.45);
}
.cols{ display:grid; gap:10px; grid-template-columns:1fr 1fr; }
@media(max-width:700px){ .cols{ grid-template-columns:1fr; } }
.row.gap{ display:flex; gap:10px; flex-wrap:wrap; }
