/* ==========================================================
   7000.PRO — CSS GLOBAL (OFFICIEL)
   + CM (Tournées) — layout + drag & drop
   ========================================================== */

/* -------------------------
   VARIABLES
------------------------- */
:root{
  --bg-main:#0b111b;
  --bg-2:#0f172a;
  --card:rgba(255,255,255,0.06);
  --card-soft:rgba(255,255,255,0.04);
  --stroke:rgba(255,255,255,0.10);

  --accent:#00eaff;
  --accent-2:#0ea5e9;
  --accent-hover:#33f5ff;

  --text:#e5e7eb;
  --text-2:#9ba4b4;
  --gold:#f5d370;

  --radius:14px;
  --shadow:0 10px 26px rgba(0,0,0,0.55);
}

/* -------------------------
   RESET
------------------------- */
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Arial, sans-serif;
  background: radial-gradient(circle at top, #101827, #020617 60%, #000);
  color:var(--text);
}

/* -------------------------
   NAVBAR
------------------------- */
.navbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  background: linear-gradient(180deg, rgba(10,16,28,0.95), rgba(10,16,28,0.70));
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

.navbar-logo{
  font-weight:800;
  letter-spacing:.3px;
  color:var(--accent);
  padding:6px 10px;
  border-radius:12px;
  background: rgba(0,234,255,0.08);
  border:1px solid rgba(0,234,255,0.18);
}

.navbar a{
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  font-size:14px;
  opacity:.9;
}

.navbar a:hover{
  opacity:1;
  background:rgba(255,255,255,0.05);
}

.navbar a.active{
  background:rgba(0,234,255,0.10);
  border:1px solid rgba(0,234,255,0.18);
  color:var(--accent-hover);
}

.navbar-right{
  margin-left:auto;
}

/* -------------------------
   LAYOUT PAGE
------------------------- */
.page-content{
  padding:18px 0 30px;
}

.page-title{
  margin: 6px 0 16px;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 10px 26px rgba(0,0,0,0.55);
}

/* -------------------------
   COMPOSANTS GÉNÉRIQUES
------------------------- */
.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.small-muted{color:var(--text-2); font-size:13px}

/* ==========================================================
   CM — Organisation des tournées
   (supporte tes classes cm-* ET tes classes "box/zone/client/tour")
   ========================================================== */

.cm-page .page-title{
  color: var(--gold);
}

.cm-layout{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:16px;
  align-items:start;
}

.cm-column{
  background: rgba(255,255,255,0.05);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.cm-column-title,
.cm-column h3{
  margin:0 0 6px 0;
  font-size:16px;
  font-weight:800;
  color: var(--accent);
}

.cm-column-subtitle{
  margin:0 0 12px 0;
  color:var(--text-2);
  font-size:13px;
}

.cm-agenda-days{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cm-agenda-day{
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding:10px;
}

.cm-agenda-day--ferie{
  background: rgba(127,29,29,0.85);
  border-color: rgba(248,113,113,0.35);
}

.cm-agenda-day-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
  margin-bottom:8px;
}

.cm-agenda-day-badge{
  font-size:12px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.15);
}

.cm-agenda-day-tours{
  min-height: 46px;
}

.cm-tours-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cm-tour{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding:10px;
}

.cm-tour-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.cm-tour-title{
  font-weight:900;
  color: var(--text);
}

.cm-tour-clients{
  min-height: 54px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cm-clients-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: calc(100vh - 220px);
  overflow:auto;
  padding-right:6px;
}

.cm-client{
  position:relative;
  background: rgba(14,165,233,0.95);
  border:1px solid rgba(14,165,233,0.45);
  border-radius: 10px;
  padding:10px;
  color:#001018;
  cursor:grab;
  user-select:none;
}

.cm-client:active,
.cm-tour:active{
  cursor:grabbing;
}

.cm-client-name{font-weight:900}
.cm-client-meta{opacity:.85; font-size:13px}

/* Scrollbars (webkit) */
.cm-clients-list::-webkit-scrollbar{width:8px}
.cm-clients-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.20);
  border-radius:999px;
}

/* -------------
   Compat classes (ton HTML "isolé")
-------------- */
.box{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:10px;
  margin-bottom:10px;
  box-shadow: var(--shadow);
}
.zone{min-height:48px}
.client{
  background: rgba(14,165,233,0.95);
  border:1px solid rgba(14,165,233,0.45);
  border-radius:10px;
  padding:10px;
  margin-bottom:8px;
  color:#001018;
  cursor:grab;
  user-select:none;
}
.tour{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:10px;
  margin-bottom:10px;
  cursor:grab;
}
.agenda{
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:10px;
  margin-bottom:10px;
}
.cm-agenda-day.ferie {
    opacity: 0.5;
    background: repeating-linear-gradient(
        45deg,
        #7f1d1d,
        #7f1d1d 10px,
        #991b1b 10px,
        #991b1b 20px
    );
}/* ================================
   CM – SCROLL INTERNE PAR COLONNE
   ================================ */

.cm-layout {
    height: calc(100vh - 160px); /* ajuste si besoin */
    overflow: hidden;
}

.cm-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cm-column-title {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #111827;
    padding-bottom: 8px;
}

/* zones scrollables */
#clients-base,
.cm-agenda-day-tours,
.cm-tour-clients {
    overflow-y: auto;
    flex: 1;
}

/* optionnel : scrollbar discrète */
#clients-base::-webkit-scrollbar {
    width: 6px;
}
#clients-base::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

