/* =========================================================
   Superwoman App — feuille de style partagée
   Tokens repris du site https://superwoman.ayanawebzine.com/
   ========================================================= */

:root{
  --purple:#4b0568;
  --purple-dark:#37044c;
  --orange:#ef4d16;
  --lavender:#e9ddf2;
  --peach:#f7d9cf;
  --muted:#6f666f;
  --ink:#241d24;
  --line:rgba(75,5,104,.12);
  --sans:"DM Sans", Arial, sans-serif;
  --serif:"DM Serif Display", Georgia, serif;
  --bg:#fdf8f4;
  --white:#ffffff;
  --danger:#c0392b;
  --success:#1f8a4c;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:#eee6f2;
  font-family:var(--sans);
  color:var(--ink);
}

a{ color:inherit; text-decoration:none; }

.app-shell{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  box-shadow:0 0 40px rgba(75,5,104,.15);
}

/* ---------- Top app bar ---------- */
.app-topbar{
  background:var(--purple);
  color:#fff;
  padding:16px 20px 18px;
  position:sticky;
  top:0;
  z-index:10;
}
.app-topbar .eyebrow{
  display:block;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--peach);
  margin-bottom:2px;
}
.app-topbar .title{
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:400;
  line-height:1.15;
  display:flex;
  align-items:center;
  gap:10px;
}
.app-topbar .back{
  font-size:1.1rem;
  color:#fff;
}
.app-topbar .actions{
  position:absolute;
  right:18px;
  top:18px;
  font-size:.72rem;
  font-weight:700;
}
.app-topbar .actions a{ color:var(--peach); }

/* ---------- Body / content ---------- */
.app-body{
  flex:1 1 auto;
  padding:18px 18px 90px;
}

.page-title{
  font-family:var(--serif);
  font-size:1.4rem;
  color:var(--purple);
  margin:4px 0 14px;
}

/* ---------- Bottom tab bar ---------- */
.tabbar{
  position:sticky;
  bottom:0;
  display:flex;
  justify-content:space-around;
  align-items:center;
  padding:8px 4px calc(10px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid var(--line);
}
.tabbar .tab{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  font-size:.6rem;
  font-weight:700;
  color:var(--muted);
  padding:4px 6px;
}
.tabbar .tab .dot{
  width:26px;height:26px;
  border-radius:50%;
  background:var(--lavender);
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;
}
.tabbar .tab.active{ color:var(--purple); }
.tabbar .tab.active .dot{ background:var(--purple); color:#fff; }

/* ---------- Cards & bits ---------- */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:.68rem;
  padding:5px 12px;
  border-radius:999px;
  background:var(--lavender);
  color:var(--purple);
}
.muted{ color:var(--muted); font-size:.82rem; }
.row{ display:flex; align-items:center; gap:10px; }
.avatar{
  width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,var(--peach),var(--lavender));
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;color:var(--purple);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  width:100%;
  text-align:center;
  font-family:var(--sans);
  font-weight:800;
  font-size:.85rem;
  padding:12px;
  border-radius:12px;
  background:var(--purple);
  color:#fff;
  border:none;
  cursor:pointer;
}
.btn.orange{ background:var(--orange); }
.btn.ghost{
  background:transparent;
  color:var(--purple);
  border:1px solid var(--purple);
}
.btn.small{ width:auto; padding:8px 14px; font-size:.72rem; }

/* ---------- Forms ---------- */
.field{ margin-bottom:14px; }
.field label{
  display:block;
  font-size:.78rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:6px;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field select,
.field textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  font-family:var(--sans);
  font-size:.9rem;
  background:#fff;
  color:var(--ink);
}
.field .checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.82rem;
  color:var(--muted);
}

/* ---------- Alerts ---------- */
.alert{
  padding:11px 14px;
  border-radius:10px;
  font-size:.82rem;
  margin-bottom:14px;
}
.alert.error{ background:#fbe7e4; color:var(--danger); }
.alert.success{ background:#e2f5e8; color:var(--success); }
.alert.info{ background:var(--lavender); color:var(--purple); }

/* ---------- Auth screens (login/register) ---------- */
.auth-screen{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100vh;
  padding:32px 24px;
  max-width:420px;
  margin:0 auto;
}
.auth-screen .brand{
  text-align:center;
  margin-bottom:28px;
}
.auth-screen .brand .eyebrow{
  display:block;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--orange);
}
.auth-screen .brand .title{
  font-family:var(--serif);
  font-size:2rem;
  color:var(--purple);
}
.auth-screen .switch{
  text-align:center;
  margin-top:16px;
  font-size:.85rem;
  color:var(--muted);
}
.auth-screen .switch a{
  color:var(--purple);
  font-weight:700;
}

/* Accordion (programme / faq) */
details.acc-item{
  border-bottom:1px solid var(--line);
}
details.acc-item:last-child{ border-bottom:0; }
details.acc-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 2px;
}
details.acc-item summary::-webkit-details-marker{ display:none; }
details.acc-item .acc-body{
  padding:0 2px 16px 2px;
  color:var(--muted);
  font-size:.85rem;
  line-height:1.55;
}

@media (min-width:481px){
  body{ background:#d8c7e6; }
}
