/* public/assets/css/app-light.css */

/* ================= VARIABLES ================= */

:root{
  /* Fond global bleuté très clair */
  --bg: #eef3fb;

  /* Panneaux */
  --panel: #ffffff;
  --panel2: #f3f7fd;

  /* Texte */
  --text: #0f172a;
  --muted: rgba(15,23,42,.65);
  --line: rgba(15,23,42,.14);

  /* Couleurs d’accent */
  --brand: #2563eb;
  --brand2: #0ea5e9;

  --danger: #dc2626;
  --ok: #16a34a;

  --radius: 14px;
  --shadow: 0 10px 26px rgba(15,23,42,.10);
}

/* ================= BASE ================= */

*{ box-sizing:border-box; }
html,body{ height:100%; }

html, body{
  background: linear-gradient(
    180deg,
    #eef3fb 0%,
    #f6f9fe 100%
  );
  min-height: 100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

a{ color: var(--brand); text-decoration:none; }
a:hover{ text-decoration: underline; }

/* ================= LAYOUT ================= */

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.main{
  padding: 22px 0 36px;
}

/* ================= TOPBAR ================= */

.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(245,248,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 6px 14px rgba(37,99,235,.25);
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor:pointer;
  font-weight: 650;
  line-height: 1;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}

.btn:hover{
  text-decoration:none;
  background: #f1f5f9;
  border-color: rgba(15,23,42,.22);
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff;
  border-color: transparent;
}

.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  background: transparent;
}

.btn-danger{
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.25);
  color: #991b1b;
}

/* ================= PILL ================= */

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f3f7fd;
  color: var(--muted);
  font-size: 13px;
}

/* ================= PAGE HEAD ================= */

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.h1{
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.sub{
  margin: 6px 0 0;
  color: var(--muted);
}

/* ================= GRID ================= */

.grid-2{
  display:grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 16px;
}

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ================= CARDS ================= */

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h2{
  margin:0 0 10px;
  font-size: 16px;
  letter-spacing: .2px;
}

/* ================= LISTS ================= */

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.item-title{
  font-weight: 700;
  margin: 0 0 4px;
}

.item-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ================= FOOTER ================= */

.footer{
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 18px 0;
  font-size: 13px;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* ================= TRANSPARENCE CONTENEURS ================= */

.container,
.main{
  background: transparent;
}
