/* =====================================================
   KEL'ONGLES Studio — Design system & layout
   Palette : crème · rose gold · or · fusain
   ===================================================== */
:root{
  --cream:#F7F0E7; --cream-deep:#EFE4D5; --ivory:#FCF8F2;
  --rose:#C99E93; --rose-light:#E4C7BE; --rose-deep:#B07E72;
  --gold:#C6A15B; --gold-light:#E3C88C; --gold-deep:#A6813F;
  --charcoal:#2B2521; --charcoal-soft:#4A4038; --text-muted:#8B7E71; --white:#fff;
  --line:#eaded0; --line-soft:#f0e7db;
  --ok:#5c9e6f; --warn:#c98a3a; --alert:#c56a5c;
  --shadow-s:0 6px 18px -10px rgba(80,55,40,.30);
  --shadow-m:0 18px 44px -22px rgba(80,55,40,.34);
  --font-display:'Playfair Display','Cormorant Garamond',serif;
  --font-serif:'Cormorant Garamond',Georgia,serif;
  --font-sans:'Jost','Segoe UI',sans-serif;
  --r:16px; --r-s:11px;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font-family:var(--font-sans);color:var(--charcoal);background:var(--cream-deep);-webkit-font-smoothing:antialiased;line-height:1.55}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:500;line-height:1.15}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#e0d2be;border-radius:8px}

.app{display:grid;grid-template-columns:248px 1fr;min-height:100vh}

/* ===== Sidebar ===== */
.side{background:linear-gradient(180deg,#fffdfa,#f7efe4);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:1.4rem 1rem;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:.7rem;padding:.2rem .4rem 1.3rem}
.brand-logo{width:46px;height:46px;flex:none;object-fit:contain;border-radius:13px;border:1px solid var(--line);background:var(--ivory);box-shadow:var(--shadow-s)}
.brand-name em{font-style:italic;color:var(--gold-deep)}
.brand-name{font-family:var(--font-display);font-size:1.2rem;color:var(--charcoal);letter-spacing:.02em;line-height:1}
.brand-name small{display:block;font-family:var(--font-sans);font-size:.6rem;letter-spacing:.34em;text-transform:uppercase;color:var(--gold-deep);margin-top:.3rem;font-weight:600}
.nav{display:flex;flex-direction:column;gap:.15rem;margin-top:.4rem;flex:1;overflow:auto}
.nav a{display:flex;align-items:center;gap:.8rem;padding:.66rem .8rem;border-radius:11px;color:var(--charcoal-soft);font-size:.92rem;font-weight:500;transition:.16s}
.nav a .ic{width:19px;height:19px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;opacity:.85}
.nav a:hover{background:#fff;color:var(--charcoal)}
.nav a.on{background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:var(--ivory);box-shadow:var(--shadow-s)}
.nav a.on .ic{opacity:1}
.nav a .badge{margin-left:auto;background:var(--rose-deep);color:#fff;font-size:.62rem;font-weight:700;padding:.05rem .4rem;border-radius:20px}
.nav a.on .badge{background:rgba(255,255,255,.28)}
.side-foot{border-top:1px solid var(--line);padding-top:.9rem;margin-top:.5rem}
.who{display:flex;align-items:center;gap:.6rem}
.who-ava{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--rose),var(--rose-deep));color:#fff;display:grid;place-items:center;font-family:var(--font-display);font-size:1.05rem}
.who-txt{font-size:.86rem;font-weight:600;color:var(--charcoal)}
.who-txt small{display:block;font-weight:400;font-size:.7rem;color:var(--text-muted)}

/* ===== Main ===== */
.main{display:flex;flex-direction:column;min-width:0}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:1rem;padding:1rem 1.6rem;background:rgba(247,240,231,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft)}
.burger{display:none;border:none;background:transparent;font-size:1.4rem;color:var(--charcoal)}
.top-title{font-family:var(--font-display);font-size:1.5rem;color:var(--charcoal)}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:.7rem}
.search{display:flex;align-items:center;gap:.5rem;background:var(--white);border:1px solid var(--line);border-radius:11px;padding:.5rem .8rem;min-width:260px}
.search span{color:var(--gold-deep)}
.search input{border:none;outline:none;background:transparent;font-family:var(--font-sans);font-size:.9rem;width:100%;color:var(--charcoal)}
.page{padding:1.6rem 2rem;max-width:1720px;width:100%;margin:0 auto}

/* ===== Composants ===== */
.hello{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.3rem}
.hello h2{font-size:1.9rem}.hello h2 em{font-style:italic;color:var(--rose-deep)}
.hello .date{font-size:.86rem;color:var(--text-muted);text-transform:capitalize}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.4rem}
.kpi{background:var(--ivory);border:1px solid var(--line);border-radius:var(--r);padding:1.1rem 1.2rem;box-shadow:var(--shadow-s);position:relative;overflow:hidden}
.kpi::after{content:"";position:absolute;right:-18px;top:-18px;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle,rgba(227,200,140,.35),transparent 70%)}
.kpi .k-ic{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#fbf3e6;color:var(--gold-deep);margin-bottom:.7rem}
.kpi .k-ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.kpi .k-val{font-family:var(--font-display);font-size:1.9rem;color:var(--charcoal);line-height:1}
.kpi .k-lbl{font-size:.76rem;color:var(--text-muted);margin-top:.25rem}
.kpi .k-trend{font-size:.72rem;font-weight:600;margin-top:.5rem;color:var(--ok)}
.kpi .k-trend.down{color:var(--alert)}

.cols{display:grid;grid-template-columns:1.35fr 1fr;gap:1.2rem}
.card{background:var(--ivory);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-s)}
.card-h{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;border-bottom:1px solid var(--line-soft)}
.card-h h3{font-size:1.15rem;color:var(--charcoal)}
.card-h a{font-size:.78rem;color:var(--gold-deep);font-weight:600}
.card-b{padding:.6rem 1.2rem 1.1rem}

/* liste RDV */
.appt{display:flex;align-items:center;gap:.9rem;padding:.7rem 0;border-bottom:1px dashed var(--line-soft)}
.appt:last-child{border-bottom:none}
.appt .t{font-family:var(--font-display);font-size:1.05rem;color:var(--gold-deep);width:52px;flex:none}
.appt .who2{flex:1;min-width:0}
.appt .who2 b{font-weight:600;color:var(--charcoal)}
.appt .who2 span{display:block;font-size:.78rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appt .pill{font-size:.68rem;font-weight:600;padding:.16rem .55rem;border-radius:20px;background:#f2e7d6;color:var(--gold-deep)}
.avatar{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-family:var(--font-display);font-size:1rem;background:linear-gradient(135deg,var(--rose),var(--rose-deep))}

/* à faire */
.todo{display:flex;align-items:flex-start;gap:.7rem;padding:.65rem 0;border-bottom:1px dashed var(--line-soft)}
.todo:last-child{border-bottom:none}
.todo .dot{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;font-size:.9rem}
.todo .dot.b{background:#fdeee9;color:var(--alert)}
.todo .dot.g{background:#f6efdc;color:var(--gold-deep)}
.todo .dot.r{background:#f3eae2;color:var(--rose-deep)}
.todo .txt{font-size:.86rem;flex:1}
.todo .txt b{color:var(--charcoal)}
.todo .txt small{display:block;color:var(--text-muted);font-size:.76rem}
.todo .go{font-size:.74rem;color:var(--gold-deep);font-weight:600;white-space:nowrap}

/* actions rapides */
.qa{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1.2rem}
.qa button{display:flex;align-items:center;gap:.7rem;justify-content:center;padding:1rem;border:1px solid var(--line);background:var(--ivory);border-radius:var(--r-s);color:var(--charcoal);font-weight:600;font-size:.9rem;box-shadow:var(--shadow-s);transition:.16s}
.qa button:hover{border-color:var(--gold);color:var(--gold-deep);transform:translateY(-1px)}
.qa button .ic{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}

/* placeholder modules */
.soon{display:grid;place-items:center;min-height:56vh;text-align:center}
.soon .badge{font-size:.68rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-deep);font-weight:700}
.soon h2{font-size:2rem;margin:.6rem 0}.soon h2 em{font-style:italic;color:var(--rose-deep)}
.soon p{color:var(--text-muted);max-width:440px;margin:0 auto}
.soon .ic-big{width:64px;height:64px;color:var(--gold-deep);stroke:currentColor;fill:none;stroke-width:1.4;margin-bottom:.6rem}

.tabbar{display:none}

/* ===== Responsive ===== */
@media (max-width:900px){
  .app{grid-template-columns:1fr}
  .side{display:none}
  .kpis{grid-template-columns:1fr 1fr}
  .cols{grid-template-columns:1fr}
  .qa{grid-template-columns:1fr}
  .search{min-width:0;width:42px;padding:.5rem}
  .search input{display:none}
  .page{padding:1.1rem;padding-bottom:5.5rem}
  .tabbar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:rgba(252,248,242,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:.4rem .3rem calc(.4rem + env(safe-area-inset-bottom));justify-content:space-around}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:.6rem;color:var(--text-muted);padding:.3rem .5rem;border-radius:10px;font-weight:600}
  .tabbar a .ic{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7}
  .tabbar a.on{color:var(--gold-deep)}
}
