:root{
  --bg:#0b1220;
  --card:#101a2f;
  --text:#e8eefc;
  --muted:#a7b2cf;
  --accent:#4ee1a0;
  --link:#8fb5ff;
  --border: rgba(255,255,255,0.10);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(78,225,160,0.12), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(143,181,255,0.12), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

.wrap{max-width: 780px; margin:0 auto; padding: 18px}

.topbar{
  position: sticky;
  top:0;
  background: rgba(11,18,32,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index:100;
}
.topbar .wrap{display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{color:var(--text); text-decoration:none; font-weight:800; letter-spacing:0.2px}
.nav{display:flex; gap:14px}
.navlink{color:var(--muted); text-decoration:none}
.navlink:hover{color:var(--text)}
.disabled{opacity:0.5; pointer-events:none}

.hero{padding: 40px 0 18px}
.hero h1{margin:0 0 8px; margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); line-height:1.1}
.lead{margin:0; color:var(--muted); font-size: 1.05rem; max-width: 70ch}

.hero-label{
  font-size:0.78rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:12px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin: 14px 0;
}

.kicker{color:var(--accent); font-weight:700; font-size:0.9rem; letter-spacing:0.3px}
.title{margin: 10px 0 8px}
.title a{color:var(--text); text-decoration:none}
.title a:hover{color: var(--link)}

.excerpt{margin: 0 0 10px; color: var(--muted)}
.excerpt.big{font-size:1.1rem}

.meta{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top: 10px}

.source{color: var(--link); text-decoration:none; font-weight:600}
.source:hover{text-decoration:underline}

.list{margin-top: 10px}
.row{
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.rowtitle{margin:0 0 6px; font-size: 1.05rem}
.rowtitle a{color: var(--text); text-decoration:none}
.rowtitle a:hover{color: var(--link)}
.rowmeta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.article .title{font-size: clamp(26px, 3.5vw, 40px); line-height:1.15}
.bigsource{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  background:rgba(78,225,160,0.12);
  border:1px solid rgba(78,225,160,0.25);
  color:#8fffcf;
  font-weight:600;
  text-decoration:none;
}

.bigsource:hover{
  background:rgba(78,225,160,0.18);
}

.footer{padding-bottom: 30px}
.muted{color: var(--muted)}

.daily-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.daily-article{
  padding:26px;
  position:relative;
  transition:transform 0.15s ease;
}

.daily-article:hover{
  transform:translateY(-2px);
}

.daily-article:not(:last-child)::after{
  content:"";
  position:absolute;
  bottom:-12px;
  left:24px;
  right:24px;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
}

.daily-source{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.source-lang{
  font-size:0.82rem;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
}

.article-index{
  font-size:0.72rem;
  opacity: 0.7;
  color:var(--muted);
  margin-bottom:6px;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.article-category{
  font-size:0.82rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:8px;
  font-weight:700;
}

.daily-title{
  margin:0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height:1.15;
}

.daily-summary{
  max-width:68ch;
  line-height:1.85;
  font-size:1.08rem;
  white-space:pre-line;
}

.daily-source{
  margin-top:18px;
}

/* Footer */
.footer {
  text-align: center;
}

.footer a,
.footer a:visited {
  color: inherit;
  text-decoration: none;
}

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

/* Page mentions légales */
.legal-page a,
.legal-page a:visited {
  color: inherit;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ===== Admin Draft ===== */

.admin-draft-toolbar,
.admin-draft-topbar {
  margin-bottom: 16px;
}

.admin-draft-toolbar-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.admin-draft-toolbar label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.admin-draft-toolbar input,
.admin-draft-toolbar select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.admin-draft-toolbar option {
  color: #111;
  background: #fff;
}

.admin-draft-toolbar-actions {
  display: flex;
  align-items: end;
}

.admin-draft-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 60px;
  z-index: 20;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.admin-draft-topbar-left,
.admin-draft-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-draft-selection-counter {
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
  text-align: center;
}

.admin-draft-selection-counter.is-active {
  background: rgba(78,225,160,0.12);
  border-color: rgba(78,225,160,0.25);
  color: #8fffcf;
}

.admin-draft-selection-counter.is-high {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
  color: #ffd89a;
}

.admin-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-draft-card {
  height: 100%;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.admin-draft-card:hover {
  transform: translateY(-2px);
}

.admin-draft-card.is-selected {
  border-color: rgba(78,225,160,0.45);
  box-shadow: 0 0 0 1px rgba(78,225,160,0.12);
}

.admin-draft-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-draft-title {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.35;
  font-size: clamp(24px, 2.2vw, 32px);
}

.admin-draft-reason {
  margin-bottom: 16px;
  line-height: 1.6;
}

.reason-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 6px;
}

.reason-text {
  font-weight: 600;
}
.admin-draft-reason-block {
  margin-bottom: 18px;
}

.admin-draft-reason-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-draft-reason-text {
  line-height: 1.6;
  white-space: pre-wrap;
}

/* zone plus large uniquement pour admin draft */
body:has(.admin-draft-page) .wrap {
  max-width: 1200px;
}

/* fallback si :has n'est pas pris en charge partout */
.admin-draft-page {
  width: 100%;
}

.admin-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.admin-draft-card {
  height: 100%;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

.admin-draft-card:hover {
  transform: translateY(-2px);
}

.admin-draft-card.is-selected {
  border-color: rgba(78,225,160,0.45);
  box-shadow: 0 0 0 1px rgba(78,225,160,0.12);
}

.admin-draft-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.admin-draft-title {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.3;
  font-size: clamp(18px, 1.8vw, 28px);
}

.admin-draft-reason-block {
  margin-bottom: 16px;
}

.admin-draft-reason-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-draft-reason-text {
  line-height: 1.6;
  white-space: pre-wrap;
  font-weight: 600;
}

.admin-draft-select-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  cursor: pointer;
  font-weight: 700;
}

.admin-draft-select-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4ee1a0;
  cursor: pointer;
}

.admin-draft-title {
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.3;
  font-weight: 600;
}

@media (max-width: 980px) {
  .admin-draft-list {
    grid-template-columns: 1fr;
  }
}