/* =========================================================
   ATHÉNA — ui.css (UI KIT LIGHT)
   Palette STRICTE:
   #ffa6d9  #b06045  #fff44f  #2a52be
   ========================================================= */

:root{
  /* aliases (strict) */
  --pink:  var(--corinthian-pink);
  --red:   var(--etruscan-red);
  --lemon: var(--pale-lemon-yellow);
  --blue:  var(--cerulean-blue);

  /* surfaces */
  --surface: rgba(255,255,255,.78);
  --surface-2: rgba(255,255,255,.86);
  --surface-3: rgba(255,255,255,.92);

  --stroke: rgba(26,35,64,.12);
  --stroke-2: rgba(26,35,64,.18);

  --txt: var(--ink-900);
  --muted: rgba(26,35,64,.72);
  --muted-2: rgba(26,35,64,.56);

  --shadow-1: 0 12px 26px rgba(11,16,32,.10);
  --shadow-2: 0 18px 40px rgba(11,16,32,.12);

  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
}

/* ------------------------------
   Layout helpers
-------------------------------- */
.container{
  width: min(1200px, 100%);
  margin-inline: auto;
}

.page{
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 2vw, 2rem);
}

.page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;

  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);

  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.page-head::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(255,166,217,.18) 0%, transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(42,82,190,.14) 0%, transparent 58%),
    radial-gradient(900px 520px at 45% 110%, rgba(255,244,79,.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
}

.head-left,
.head-right{
  position: relative;
  z-index: 1;
}

.h1{
  margin: 0;
  font-weight: 950;
  letter-spacing: .2px;
  color: var(--txt);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.12;
}

.p-muted,
.muted{
  margin: .3rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: .5rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(42,82,190,.08);
  color: var(--txt);
  font-weight: 950;
  font-size: .9rem;
}

.badge::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(42,82,190,.12);
}

/* ------------------------------
   Cards / Panels
-------------------------------- */
.card,
.panel{
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.card-pad{ padding: 1rem 1.1rem; }

.panel-head{
  padding: .95rem 1.05rem;
  border-bottom: 1px solid rgba(26,35,64,.10);
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.panel-head h2{
  margin: 0;
  font-weight: 950;
  color: var(--txt);
  font-size: 1.05rem;
}

.panel-body{ padding: 1rem 1.05rem; }

/* ------------------------------
   Buttons
-------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .55rem;

  padding: .7rem .95rem;
  border-radius: 999px;

  border: 1px solid rgba(26,35,64,.14);
  background: rgba(255,255,255,.82);
  color: var(--txt);

  font-weight: 950;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(11,16,32,.10);
  border-color: rgba(26,35,64,.22);
}

.btn-primary{
  background: var(--blue);
  border-color: rgba(42,82,190,.35);
  color: #fff;
  box-shadow: 0 14px 24px rgba(11,16,32,.12);
}
.btn-primary:hover{ background: rgba(42,82,190,.92); }

.btn-warn{
  background: var(--lemon);
  border-color: rgba(255,244,79,.65);
  color: var(--txt);
}
.btn-warn:hover{ background: rgba(255,244,79,.92); }

.btn-danger{
  background: rgba(255,60,60,.10);
  border-color: rgba(255,60,60,.25);
}
.btn-danger:hover{ background: rgba(255,60,60,.16); }

.btn-ghost{
  background: transparent;
}

.btn-sm{
  padding: .55rem .8rem;
  border-radius: 14px;
  font-size: .92rem;
}

/* ------------------------------
   Forms
-------------------------------- */
.form{ display:grid; gap: 12px; }

.field label{
  display:block;
  margin-bottom: .45rem;
  font-weight: 950;
  color: var(--txt);
  font-size: .95rem;
}

.input,
select.input,
textarea.input{
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(26,35,64,.14);
  background: rgba(255,255,255,.86);
  color: rgba(26,35,64,.88);
  box-shadow: 0 10px 22px rgba(11,16,32,.08);
  outline: none;
}

textarea.input{ min-height: 160px; resize: vertical; }

.help{
  margin-top: .45rem;
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.4;
}

/* inline row forms */
.row{
  display:flex;
  gap: 10px;
  align-items:flex-end;
  flex-wrap: wrap;
}

.row > *{ flex: 1; min-width: 220px; }

.actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ------------------------------
   Pills / Status
-------------------------------- */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 950;
  font-size: .9rem;
  border: 1px solid rgba(26,35,64,.14);
  background: rgba(255,255,255,.82);
  color: var(--txt);
}

.pill.ok{
  border-color: rgba(50,180,110,.25);
  background: rgba(50,180,110,.10);
}
.pill.ko{
  border-color: rgba(255,60,60,.25);
  background: rgba(255,60,60,.10);
}
.pill.warn{
  border-color: rgba(255,244,79,.70);
  background: rgba(255,244,79,.22);
}

/* ------------------------------
   Flash / Alerts
-------------------------------- */
.flash-wrap{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.flash,
.alert{
  padding: .75rem .95rem;
  border-radius: 16px;
  border: 1px solid rgba(26,35,64,.12);
  background: rgba(255,255,255,.86);
  color: rgba(26,35,64,.90);
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(11,16,32,.08);
}

.alert-error{
  border-color: rgba(255,60,60,.22);
  background: rgba(255,60,60,.08);
}
.alert-warn{
  border-color: rgba(255,244,79,.75);
  background: rgba(255,244,79,.20);
}
.alert-ok{
  border-color: rgba(50,180,110,.25);
  background: rgba(50,180,110,.10);
}

/* ------------------------------
   Tables (responsive -> horizontal scroll)
-------------------------------- */
.table-wrap{ overflow:auto; }
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(26,35,64,.10);
  text-align:left;
  vertical-align: top;
  color: rgba(26,35,64,.90);
  font-weight: 800;
}
.table th{
  background: rgba(42,82,190,.06);
  font-weight: 950;
}

/* ------------------------------
   Responsive
-------------------------------- */
@media (max-width: 720px){
  .page{ padding: 1rem .95rem; }
  .actions{ justify-content: stretch; }
  .actions .btn{ width: 100%; }
  .row > *{ min-width: 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
