:root{
  --bg0:#ffffff;
  --bg1:#f4f4f7;
  --card:#f3f3f6;
  --card2:#ffffff;
  --stroke:rgba(0,0,0,.12);
  --text:#111117;
  --muted:rgba(0,0,0,.65);
  --muted2:rgba(0,0,0,.52);
  --accent:#E6007E; /* CKR pink */
  --accent2:#ff4db6;
  --danger:#d93025;
  --ok:#188038;
  --shadow: 0 12px 34px rgba(0,0,0,.10);
  --radius:18px;
  --radius2:22px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{color:inherit;text-decoration:none}
.pro-shell{min-height:100vh;display:flex;flex-direction:column}
.pro-topbar{
  display:flex;align-items:center;justify-content:center;
  padding:22px 28px;
  position:relative;
}
.pro-brand{display:flex;align-items:center;gap:12px}
.pro-brand-logo{height:48px;width:auto;display:block;filter: drop-shadow(0 6px 20px rgba(0,0,0,.35));}

/* keep the language picker accessible while centering the logo */
.pro-topbar .pro-lang{
  position:absolute;
  right:28px;
  top:50%;
  transform: translateY(-50%);
}

.pro-lang{
  display:flex;align-items:center;
  padding:0;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: #fff;
  position:relative;
}
.pro-lang::after{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  transform: translateY(-50%);
  width:16px;
  height:16px;
  opacity:.75;
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.pro-lang-select{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  padding:10px 40px 10px 12px;
  cursor:pointer;
  line-height:1;
}
.pro-lang-select option{color:#111;}
.pro-lang-item{
  font-size:12px; font-weight:700;
  letter-spacing:.02em;
  padding:8px 10px;
  border-radius:999px;
  color:var(--muted);
  transition: all .15s ease;
}
.pro-lang-item:hover{background: var(--card); color:var(--text)}
.pro-lang-item.is-active{background:rgba(230,0,126,.20); color:var(--text); border:1px solid rgba(230,0,126,.35)}

.pro-main{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 18px 60px;
  flex:1;
}

@media (max-width: 560px){
  .pro-topbar{padding:18px 16px;}
  .pro-topbar .pro-lang{right:16px;}
  .pro-brand-logo{height:40px;}
}

.pro-card{
  width:100%;
  max-width: 1080px;
  border-radius: var(--radius2);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 980px){
  .pro-card{grid-template-columns:1fr}
}

.pro-card-left{
  padding: 40px 44px;
  border-right: 1px solid var(--stroke);
}
@media (max-width: 980px){
  .pro-card-left{border-right:0;border-bottom:1px solid var(--stroke)}
}
.pro-card-right{
  padding: 40px 44px;
}

.h-title{
  margin:0 0 10px;
  font-size:28px; line-height:1.15;
  letter-spacing:-.02em;
}
.h-sub{
  margin:0 0 28px;
  font-size:14px; line-height:1.6;
  color: var(--muted);
}

.pro-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.label{
  font-size:12px;
  color: var(--muted2);
  font-weight:600;
}
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, transform .15s ease;
}
.input:focus{
  border-color: rgba(230,0,126,.45);
  box-shadow: 0 0 0 4px rgba(230,0,126,.12);
}
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width: 560px){
  .row{grid-template-columns:1fr}
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  cursor:pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight:800;
  letter-spacing:.01em;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(230,0,126,.20);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.03)}
.btn:active{transform: translateY(0)}
.btn-secondary{
  background: var(--card);
  box-shadow:none;
  border:1px solid var(--stroke);
  color: var(--text);
}
.btn-secondary:hover{background:#ececf1}
.btn-link{
  background:transparent;border:0;padding:0;color:var(--muted);cursor:pointer;
  font-weight:700;font-size:13px;
}
.btn-link:hover{color:var(--text); text-decoration: underline}
.actions{
  display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top: 6px;
}
.note{
  font-size:13px; color: var(--muted);
  line-height:1.6;
}
.help{
  font-size:12px;
  color: var(--muted2);
  line-height:1.5;
}

.alert{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height:1.6;
}
.alert.is-danger{border-color: rgba(255,91,91,.38); background: rgba(255,91,91,.10)}
.alert.is-ok{border-color: rgba(64,214,133,.38); background: rgba(64,214,133,.10)}
.alert.is-warn{border-color: rgba(255,200,62,.30); background: rgba(255,200,62,.10)}

.split{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.pro-kpis{
  display:flex; flex-wrap:wrap; gap:10px;
}
.kpi{
  border:1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.kpi strong{color:var(--text); font-size: 13px}

.pro-footer{
  padding: 14px 18px;
  color: var(--muted2);
  font-size: 12px;
}
.pro-footer-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
  display:flex;
  justify-content:center;
}

.dashboard{
  width:100%;
  max-width: 1080px;
}
.dash-top{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  margin-bottom: 22px;
}
.dash-title{
  display:flex;flex-direction:column;gap:6px;
}
.dash-title h1{
  margin:0;
  font-size:26px; letter-spacing:-.02em;
}
.dash-title p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.dash-actions{display:flex;gap:10px;align-items:center}

.tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .tiles{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 560px){
  .tiles{grid-template-columns:1fr}
}
.tile{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 16px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 122px;
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover{transform: translateY(-1px); border-color: rgba(230,0,126,.30)}
.tile .title{font-weight:900; letter-spacing:-.01em}
.tile .desc{font-size: 13px; color: var(--muted); line-height:1.5}
.tile .meta{display:flex;gap:10px;align-items:center;margin-top:auto}
.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
}


/* Accessibility */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Signup language picker (first block) */
.pro-lang-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:8px;
}
@media (max-width:820px){
  .pro-lang-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
.pro-lang-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: #fff;
  cursor:pointer;
  transition: all .15s ease;
  user-select:none;
}
.pro-lang-card:hover{background: var(--card); transform: translateY(-1px);}
.pro-lang-card.is-active{
  border-color: rgba(230,0,126,.45);
  background: rgba(230,0,126,.16);
}
.pro-lang-badge{
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background: #fff;
  border:1px solid var(--stroke);
  font-weight:900;
  letter-spacing:.02em;
  font-size:12px;
  color: var(--text);
}
.pro-lang-name{
  font-weight:800;
  letter-spacing:.01em;
  color: var(--text);
  font-size:13px;
}

/* ---- ETS #BYB locked blocks ---- */
.pro-byb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pro-byb-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(230,0,126,.35);
  background: rgba(230,0,126,.14);
  color: var(--text);
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  white-space:nowrap;
}
.pro-byb-badge img{
  width:14px;
  height:14px;
  display:block;
}
.pro-byb-lock{
  opacity:.65;
  filter: grayscale(.35);
}

/* ---- Opening hours ---- */
.pro-hours-tools{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.pro-hours-help{
  font-size:12px;
  font-weight:700;
  color: var(--muted);
}
.pro-btn-xs{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow:none;
}

.pro-hours-table{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  overflow-x:auto;
  padding-bottom:4px;
}

/* Day row: keep everything on ONE line (reduce vertical scroll) */
.pro-day{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: var(--card2);
  flex-wrap:nowrap;
  min-width: 780px;
}

/* Closed visual state (inputs stay usable: typing will auto-uncheck "Fermé") */
.pro-day.pro-day-closed{
  background: var(--bg1);
}
.pro-day.pro-day-closed .input.pro-time{
  opacity:.65;
}

.pro-day-name{
  font-weight:900;
  letter-spacing:-.01em;
  flex: 0 0 96px;
  font-size:13px;
}

.pro-slots{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 1 1 auto;
  min-width: 0;
}
.pro-slot{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.pro-slot-label{
  width:34px;
  font-size:12px;
  font-weight:900;
  color: var(--muted);
}
.input.pro-time{
  padding: 8px 10px;
  font-size: 12px;
}
.pro-time{
  max-width:92px;
}
.pro-slot-sep{
  font-weight:900;
  color: var(--muted);
}

.pro-closed{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left: 6px;
  white-space:nowrap;
}
.pro-closed input{
  width:16px;
  height:16px;
}
.pro-closed span{
  font-size:13px;
  font-weight:900;
  color: var(--text);
}

.pro-day-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}

@media (max-width: 520px){
  .pro-day{min-width: 620px;}
  .pro-day-name{flex: 0 0 86px;}
}

/* ---- Chips (multi-select) ---- */
.pro-help-small{
  margin:6px 0 8px;
  font-size:12px;
  font-weight:700;
  color: rgba(0,0,0,.55);
}
.pro-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:2px;
}
.pro-chip{
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}
.pro-chip input{
  position:absolute;
  opacity:0;
}
.pro-chip span{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  color: var(--text);
  line-height:1;
}
.pro-chip input:checked + span{
  border-color: rgba(230,0,126,.55);
  background: rgba(230,0,126,.08);
}
.pro-chip input:disabled + span{
  opacity:.75;
}

/* ---- Social links ---- */
.pro-social-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pro-social-row{
  display:grid;
  grid-template-columns: 150px 1fr 70px;
  gap:10px;
  align-items:center;
}
.pro-social-platform{ grid-column:1; grid-row:1; }
.pro-social-url{ grid-column:2; grid-row:1; }
.pro-social-remove{ grid-column:3; grid-row:1; justify-self:end; }
.pro-social-label{ grid-column:1 / span 2; grid-row:2; }
.pro-social-add{ margin-top:8px; }

@media (max-width: 820px){
  .pro-social-row{
    grid-template-columns: 1fr;
  }
  .pro-social-platform, .pro-social-url, .pro-social-remove, .pro-social-label{
    grid-column:auto;
    grid-row:auto;
    justify-self:stretch;
  }
}
