@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:       #0A1628;
  --forest:     #0D3B2E;
  --emerald:    #1AAB6D;
  --emerald-lt: #23D48A;
  --red:        #E63946;
  --red-lt:     #FF6B74;
  --gold:       #F5C842;
  --gold-dk:    #C9A110;
  --blue:       #1E3A5F;
  --blue-lt:    #2A5298;
  --white:      #FFFFFF;
  --cold:       #F0F4FF;
  --gray:       #8899AA;
  --gray-lt:    #D8E2EF;
  --text:       #1A2A3A;
  --shadow:     0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg:  0 12px 48px rgba(10,22,40,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--navy); color: var(--text); min-height: 100vh; }

/* ─── HEADER ─── */
.site-header {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,171,109,0.2);
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-seal { width: 44px; height: 44px; animation: sealIn 1s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes sealIn { from { transform: scale(0) rotate(-20deg); opacity:0; } to { transform: scale(1) rotate(0); opacity:1; } }
.logo-text .name { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--white); line-height:1; }
.logo-text .sub  { font-size: 0.65rem; color: var(--emerald); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.header-nav { display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.65); text-decoration: none; font-size: .84rem;
  font-weight: 500; padding: 8px 16px; border-radius: 7px; transition: all .2s;
}
.nav-link:hover { background: rgba(26,171,109,.12); color: var(--emerald); }
.nav-link.active { background: var(--emerald); color: var(--navy); font-weight: 700; }

/* ─── HERO SEARCH ─── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--forest) 55%, #071A12 100%);
  padding: 72px 2rem 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(26,171,109,.15) 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,171,109,.12); border: 1px solid rgba(26,171,109,.3);
  border-radius: 999px; padding: 6px 18px; margin-bottom: 24px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald); position: relative;
}
.hero-eyebrow .dot { width: 7px; height: 7px; background: var(--emerald); border-radius: 50%; animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: var(--white); line-height: 1.1;
  margin-bottom: 14px; position: relative;
}
.hero h1 em { font-style: italic; color: var(--emerald); }

.hero-sub { font-size: 1rem; color: rgba(255,255,255,.55); margin-bottom: 44px; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ─── SEARCH BOX ─── */
.search-box {
  position: relative; max-width: 560px; margin: 0 auto 20px;
}
.search-box input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(26,171,109,.35);
  border-radius: 14px;
  padding: 18px 70px 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem; color: var(--white);
  outline: none; transition: all .25s;
  letter-spacing: .02em;
}
.search-box input::placeholder { color: rgba(255,255,255,.3); }
.search-box input:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(26,171,109,.15);
}
.search-box button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--emerald); border: none; border-radius: 9px;
  width: 48px; height: 44px; cursor: pointer; font-size: 1.1rem;
  transition: background .2s, transform .15s; display: flex; align-items: center; justify-content: center;
}
.search-box button:hover { background: var(--emerald-lt); transform: translateY(-50%) scale(1.05); }

.search-hint { font-size: .78rem; color: rgba(255,255,255,.3); position: relative; }
.search-hint a { color: rgba(26,171,109,.8); text-decoration: none; }
.search-hint a:hover { color: var(--emerald); }

/* ─── COMPTEUR ANIMÉ ─── */
.live-counter {
  display: flex; justify-content: center; gap: 32px;
  margin-top: 52px; position: relative;
}
.counter-item { text-align: center; }
.counter-item .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem; color: var(--white); line-height: 1;
  display: block;
}
.counter-item .num.green { color: var(--emerald); }
.counter-item .num.red   { color: var(--red-lt); }
.counter-item .num.gold  { color: var(--gold); }
.counter-item .lbl { font-size: .72rem; color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; display: block; }
.counter-sep { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; }

/* ─── MAIN ─── */
.main-wrap { background: var(--cold); }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 52px 2rem 80px; }
.page-wrap-sm { max-width: 760px; margin: 0 auto; padding: 52px 2rem 80px; }

/* ─── SECTION HEADER ─── */
.sec-header { margin-bottom: 32px; }
.sec-header h2 { font-family: 'DM Serif Display', serif; font-size: 1.9rem; color: var(--navy); line-height: 1.2; }
.sec-header p   { color: var(--gray); font-size: .9rem; margin-top: 6px; }
.accent-line { width: 40px; height: 3px; background: var(--emerald); border-radius: 2px; margin: 10px 0 0; }

/* ─── SESSION CARDS ─── */
.sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.session-card {
  background: var(--white); border-radius: 18px;
  border: 1.5px solid var(--gray-lt); overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; cursor: pointer;
  text-decoration: none; display: block;
}
.session-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--emerald); }
.session-card-top {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.session-card-top::after {
  content: attr(data-exam);
  position: absolute; right: -10px; bottom: -14px;
  font-size: 5rem; opacity: .08; color: var(--white);
  font-family: 'DM Serif Display', serif; font-weight: 700;
  pointer-events: none;
}
.exam-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 4px 14px; font-size: .72rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 12px;
}
.session-card-top h3 { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--white); line-height: 1.25; }
.session-card-top .session-meta { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 6px; }
.session-card-body { padding: 18px 22px; }
.result-mini-stats { display: flex; gap: 16px; }
.mini-stat { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; }
.mini-stat.green { background: #EAFBF3; }
.mini-stat.red   { background: #FEF0F0; }
.mini-stat.total { background: var(--cold); }
.mini-stat .val { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 700; display: block; line-height: 1; }
.mini-stat .val.green { color: var(--emerald); }
.mini-stat .val.red   { color: var(--red); }
.mini-stat .val.blue  { color: var(--blue); }
.mini-stat .lbl { font-size: .68rem; color: var(--gray); text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; display: block; }
.published-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; color: var(--emerald);
  background: #EAFBF3; border-radius: 999px; padding: 3px 11px; margin-top: 14px;
}
.draft-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; color: var(--gray);
  background: var(--cold); border-radius: 999px; padding: 3px 11px; margin-top: 14px;
}

/* ─── RÉSULTAT CANDIDAT ─── */
.result-hero {
  border-radius: 22px; overflow: hidden; margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}
.result-hero-top {
  padding: 36px 36px 32px;
  text-align: center; position: relative; overflow: hidden;
}
.result-hero-top.admis    { background: linear-gradient(135deg, var(--forest) 0%, #0A5C3B 100%); }
.result-hero-top.ajourn   { background: linear-gradient(135deg, #3B0A0A 0%, #5C1A1A 100%); }
.result-hero-top.mention  { background: linear-gradient(135deg, #2A2000 0%, #4A3A00 100%); }
.result-hero-top.attente  { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.result-big-icon { font-size: 4rem; margin-bottom: 12px; display: block; animation: iconPop .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes iconPop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.result-verdict {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white); line-height: 1.1; margin-bottom: 8px;
}
.result-verdict.green { color: var(--emerald-lt); }
.result-verdict.red   { color: var(--red-lt); }
.result-verdict.gold  { color: var(--gold); }
.result-etab { font-size: .88rem; color: rgba(255,255,255,.55); }
.result-hero-body { background: var(--white); padding: 28px 36px; }
.result-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.result-info-item { text-align: center; padding: 18px 12px; border-radius: 14px; background: var(--cold); }
.result-info-item .rii-val { font-family: 'DM Serif Display', serif; font-size: 1.7rem; color: var(--navy); display: block; line-height: 1; }
.result-info-item .rii-lbl { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; display: block; }

.mention-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 22px; border-radius: 999px; font-weight: 700;
  font-size: .9rem; margin-top: 18px; letter-spacing: .03em;
}
.mention-tres-honorable { background: var(--gold); color: var(--navy); }
.mention-honorable      { background: #E8F0FF; color: var(--blue); }
.mention-assez-bien     { background: #EAF7EF; color: var(--forest); }
.mention-aucune         { background: var(--cold); color: var(--gray); }
.mention-ajourn         { background: #FEF0F0; color: var(--red); }

/* ─── NOTE ADMIN / MESSAGE ─── */
.note-box {
  background: #FFF9EC; border: 1px solid #F5C842;
  border-radius: 12px; padding: 16px 20px; margin-top: 18px;
  font-size: .88rem; color: #7A5A0A; line-height: 1.6;
}
.note-box strong { color: var(--navy); }

/* ─── MATIÈRES TABLE ─── */
.matieres-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.matieres-table th {
  text-align: left; padding: 10px 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue);
  background: var(--cold); border-bottom: 2px solid var(--gray-lt);
}
.matieres-table td {
  padding: 11px 14px; font-size: .88rem; border-bottom: 1px solid var(--gray-lt);
  vertical-align: middle;
}
.matieres-table tr:last-child td { border-bottom: none; }
.matieres-table tr:hover td { background: #F8FAFE; }
.note-cell { font-weight: 700; color: var(--navy); font-size: 1rem; }
.note-cell.high { color: var(--emerald); }
.note-cell.low  { color: var(--red); }
.coeff-cell { color: var(--gray); font-size: .82rem; text-align: center; }

/* ─── ALERTS ─── */
.alert { border-radius: 12px; padding: 14px 18px; font-size: .88rem; margin-bottom: 22px; display: flex; align-items: flex-start; gap: 11px; animation: fadeUp .35s ease both; }
.alert-success { background: #EAF7EF; border: 1px solid var(--emerald); color: #1E6B3E; }
.alert-error   { background: #FEF0F0; border: 1px solid var(--red);     color: #9B1A22; }
.alert-info    { background: #EEF4FF; border: 1px solid var(--blue-lt);  color: var(--blue); }
.alert-warning { background: #FFF9EC; border: 1px solid var(--gold);    color: #7A5A0A; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: 9px; font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600; cursor: pointer; border: none;
  text-decoration: none; transition: all .2s; letter-spacing: .02em;
}
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%); color: var(--white); box-shadow: 0 4px 14px rgba(30,58,95,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,58,95,.4); }
.btn-emerald { background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%); color: var(--white); box-shadow: 0 4px 14px rgba(13,59,46,.35); }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(26,171,109,.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 4px 14px rgba(201,161,16,.3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #c0303c; }
.btn-ghost { background: transparent; border: 1.5px solid var(--gray-lt); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 7px 15px; font-size: .78rem; border-radius: 7px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── FORMS ─── */
.form-card { background: var(--white); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--gray-lt); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.span-2 { grid-column: span 2; }
label { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .05em; text-transform: uppercase; }
label .req { color: var(--red); margin-left: 3px; }
input[type=text],input[type=email],input[type=number],input[type=password],textarea,select {
  border: 1.5px solid var(--gray-lt); border-radius: 9px; padding: 10px 13px;
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text);
  background: var(--cold); transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
input:focus,textarea:focus,select:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(26,171,109,.12); background: var(--white); }
textarea { resize: vertical; min-height: 90px; }
.fsec-title {
  font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--navy);
  margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-lt);
  display: flex; align-items: center; gap: 9px;
}
.fsec-title:first-child { margin-top: 0; }

/* ─── STATUS ─── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-admis    { background: #EAF7EF; color: #1B5E20; }
.status-ajourn   { background: #FEF0F0; color: #B71C1C; }
.status-attente  { background: #FFF3E0; color: #E65100; }
.status-publie   { background: #EAF7EF; color: var(--forest); }
.status-brouillon{ background: var(--cold); color: var(--gray); }

/* ─── ADMIN LAYOUT ─── */
.admin-layout { display: flex; min-height: 100vh; background: var(--cold); }
.sidebar {
  width: 255px; min-width: 255px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, #0D2B1E 100%);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-header { padding: 22px 18px 16px; border-bottom: 1px solid rgba(26,171,109,.15); }
.sidebar-header .s-name { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--white); }
.sidebar-header .s-role { font-size: .68rem; color: var(--emerald); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-group { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.25); padding: 8px 10px 5px; margin-top: 6px; }
.s-link {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6);
  text-decoration: none; padding: 9px 11px; border-radius: 9px;
  font-size: .86rem; font-weight: 500; transition: all .18s; margin-bottom: 2px;
}
.s-link .si { font-size: .95rem; width: 20px; text-align: center; }
.s-link:hover { background: rgba(26,171,109,.12); color: var(--white); }
.s-link.active { background: var(--emerald); color: var(--navy); font-weight: 700; }
.s-link .badge-count {
  margin-left: auto; background: var(--red); color: var(--white);
  border-radius: 999px; font-size: .65rem; padding: 1px 7px; font-weight: 700;
}
.sidebar-bottom { padding: 14px 10px; border-top: 1px solid rgba(26,171,109,.1); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-lt);
  padding: 12px 32px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar .breadcrumb { font-size: .8rem; color: var(--gray); }
.admin-topbar .breadcrumb strong { color: var(--navy); }
.admin-content { padding: 28px 32px; flex: 1; }

/* ─── STATS GRID ─── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: var(--white); border-radius: 14px; padding: 20px 18px;
  box-shadow: var(--shadow); border-left: 4px solid var(--emerald); position: relative; overflow: hidden;
}
.stat-card::after { content: attr(data-icon); position: absolute; right:14px; top:14px; font-size: 1.9rem; opacity: .1; }
.stat-card.red    { border-left-color: var(--red); }
.stat-card.gold   { border-left-color: var(--gold); }
.stat-card.blue   { border-left-color: var(--blue-lt); }
.stat-card .s-label { font-size: .7rem; font-weight: 700; color: var(--gray); letter-spacing: .07em; text-transform: uppercase; }
.stat-card .s-value { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--navy); line-height: 1; margin: 5px 0 2px; }
.stat-card .s-sub   { font-size: .75rem; color: var(--gray); }

/* ─── TABLE ─── */
.table-wrap { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; }
.table-head { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-lt); }
.table-head h3 { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--cold); }
th { text-align: left; padding: 10px 14px; font-size: .72rem; font-weight: 700; color: var(--blue); letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--gray-lt); }
td { padding: 12px 14px; font-size: .86rem; color: var(--text); border-bottom: 1px solid var(--gray-lt); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFE; }
.td-bold { font-weight: 600; color: var(--navy); }
.td-mono { font-family: monospace; font-size: .8rem; color: var(--gray); }

/* ─── MODAL ─── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,22,40,.65); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 20px; max-width: 800px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: fadeUp .3s ease both; }
.modal-header { padding: 22px 26px 16px; border-bottom: 1px solid var(--gray-lt); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--navy); }
.modal-close { background: var(--cold); border: none; border-radius: 7px; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal-close:hover { background: var(--gray-lt); }
.modal-body { padding: 22px 26px; }
.modal-footer { padding: 14px 26px 22px; display: flex; gap: 9px; justify-content: flex-end; border-top: 1px solid var(--gray-lt); }

/* ─── TABS ─── */
.tabs { display: flex; gap: 3px; margin-bottom: 22px; background: var(--cold); padding: 4px; border-radius: 11px; width: fit-content; }
.tab-btn { padding: 7px 18px; border-radius: 8px; font-size: .83rem; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--gray); transition: all .2s; }
.tab-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease both; }

/* ─── DETAIL GRID ─── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item label { font-size: .7rem; font-weight: 700; color: var(--gray); letter-spacing: .09em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.detail-item p { font-size: .9rem; color: var(--text); font-weight: 500; }
.detail-item.full { grid-column: span 2; }

/* ─── LOGIN ─── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy) 0%, var(--forest) 100%); padding: 20px; }
.login-card { background: var(--white); border-radius: 20px; padding: 42px 38px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-seal { display: block; width: 60px; margin: 0 auto 18px; }
.login-card h2 { font-family: 'DM Serif Display', serif; font-size: 1.55rem; color: var(--navy); text-align: center; margin-bottom: 5px; }
.login-card p { text-align: center; color: var(--gray); font-size: .86rem; margin-bottom: 26px; }

/* ─── PROGRESS BAR ─── */
.prog-bar { height: 7px; border-radius: 999px; background: var(--gray-lt); margin-top: 5px; }
.prog-fill { height: 100%; border-radius: 999px; background: var(--emerald); transition: width .8s ease; }
.prog-fill.red { background: var(--red); }
.prog-fill.gold { background: var(--gold-dk); }

/* ─── MATIÈRE ROW ADD ─── */
.mat-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }

/* ─── EMPTY ─── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--gray); }
.empty-state .ei { font-size: 2.8rem; opacity: .35; margin-bottom: 12px; display: block; }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy); padding: 26px 2rem; text-align: center; border-top: 1px solid rgba(26,171,109,.15); }
.site-footer p { color: rgba(255,255,255,.25); font-size: .75rem; letter-spacing: .05em; }
.site-footer span { color: var(--emerald); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .result-info-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item.full { grid-column: span 1; }
  .live-counter { gap: 18px; }
  .counter-item .num { font-size: 1.9rem; }
  .admin-content { padding: 18px 16px; }
  .header-nav .nav-link:not(.active) { display: none; }
}