
:root{
  --bg:#f5f1e8;
  --panel:rgba(255,255,255,.82);
  --panel-strong:rgba(255,255,255,.92);
  --line:rgba(191,165,106,.24);
  --text:#5c503b;
  --muted:#8c7d65;
  --gold:#bfa56a;
  --gold-dark:#a88e54;
  --gold-soft:#f4edde;
  --success:#4e8962;
  --success-bg:#edf8f0;
  --danger:#b35b57;
  --danger-bg:#fff0ef;
  --shadow:0 20px 50px rgba(77,60,29,.16);
  --radius:22px;
  --radius-sm:16px;
  --header-h:68px;
  --touch:48px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.86)),
    url('bg-desktop.jpg') center/cover no-repeat fixed;
}
body.auth{
  background:
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.76)),
    url('bg-mobile.jpg') center/cover no-repeat fixed;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.app-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px}
.auth-wrap{width:100%;max-width:460px}
.brand{
  display:flex;justify-content:center;align-items:center;
  margin:0 auto 18px;
}
.brand img{width:min(100%,280px);height:auto;display:block;filter:drop-shadow(0 10px 18px rgba(191,165,106,.14))}
.card{
  background:var(--panel);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
}
.title{
  margin:0 0 8px;
  font-size:clamp(30px,4vw,36px);
  line-height:1.05;
  font-weight:800;
  color:#584b37;
}
.subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}
.stack{display:flex;flex-direction:column;gap:12px}
.mt-16{margin-top:16px}
.mt-20{margin-top:20px}
.mt-24{margin-top:24px}
.field{display:flex;flex-direction:column;gap:8px}
.label{
  font-size:13px;
  font-weight:700;
  color:#6d604a;
}
.input,.select,.textarea{
  width:100%;
  min-height:var(--touch);
  border-radius:15px;
  border:1px solid #e6ddcf;
  background:#fff;
  color:var(--text);
  padding:14px 15px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.input:focus,.select:focus,.textarea:focus{
  border-color:rgba(191,165,106,.65);
  box-shadow:0 0 0 4px rgba(191,165,106,.14);
}
.textarea{min-height:96px;resize:vertical}
.btn{
  width:100%;
  min-height:var(--touch);
  border-radius:15px;
  border:1px solid transparent;
  padding:13px 16px;
  cursor:pointer;
  font-weight:800;
  transition:transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  color:#fff;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  box-shadow:0 14px 28px rgba(168,142,84,.28);
}
.btn-secondary{
  background:#fff;
  color:var(--text);
  border-color:#e8decd;
}
.btn-danger{
  background:#fff;
  color:var(--danger);
  border-color:#efd5d4;
}
.btn-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.helper{text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
.badge-row{display:flex;flex-wrap:wrap;gap:10px}
.badge{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #eadfcd;
  background:rgba(255,255,255,.74);
  font-size:12px;
  color:#6b5e48;
  font-weight:700;
}
.kpi{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.kpi .mini{
  background:rgba(255,255,255,.84);
  border:1px solid #eadfcd;
  border-radius:16px;
  padding:14px;
}
.mini strong{display:block;font-size:13px;color:#6e614b;margin-bottom:6px}
.mini span{display:block;font-size:20px;font-weight:800}
.banner{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:16px;
  font-size:14px;
  line-height:1.45;
}
.banner .icon{
  width:32px;height:32px;flex:0 0 auto;
  display:grid;place-items:center;border-radius:50%;
  font-weight:900;
}
.banner.error{background:var(--danger-bg);border:1px solid #f0d8d6;color:#8f5550}
.banner.error .icon{background:#f5d9d7}
.banner.success{background:var(--success-bg);border:1px solid #d6ebdc;color:#4c6e57}
.banner.success .icon{background:#d8ecdf}
.progress{
  width:100%;height:10px;border-radius:999px;background:#ede4d7;overflow:hidden
}
.progress span{
  display:block;height:100%;width:72%;
  background:linear-gradient(90deg,var(--gold),var(--gold-dark));
  border-radius:999px;
}
.qr-box{
  aspect-ratio:1/1;
  border-radius:22px;
  border:1px solid #eadfcd;
  background:
    linear-gradient(45deg, rgba(191,165,106,.17) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(191,165,106,.17) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(191,165,106,.17) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(191,165,106,.17) 75%),
    #fff;
  background-size:24px 24px;
  background-position:0 0,0 12px,12px -12px,-12px 0;
  display:grid;place-items:center;
  color:var(--gold-dark);font-weight:800;font-size:18px;
}
.code-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.code-box{
  min-height:56px;
  border-radius:16px;
  border:1px solid #e7ddce;
  background:#fff;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:800;
}
.pin-pad{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.pin-key{
  min-height:58px;
  border-radius:18px;
  border:1px solid #e9dfcf;
  background:rgba(255,255,255,.92);
  display:grid;place-items:center;
  font-size:22px;font-weight:800;
}
.role-list{display:flex;flex-direction:column;gap:10px}
.role-card{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  background:rgba(255,255,255,.86);
  border:1px solid #e9dfcf;
  border-radius:18px;
  padding:14px;
}
.role-title{font-size:16px;font-weight:800;margin-bottom:4px}
.role-sub{font-size:13px;color:var(--muted)}
.role-chip{
  min-width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;color:#fff;font-size:13px;font-weight:800;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
}
.fixed-header{
  position:sticky;top:0;z-index:20;
  height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:10px 14px;
  background:rgba(255,255,255,.76);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.header-center strong{font-size:14px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-center span{font-size:12px;color:var(--muted)}
.icon-btn{
  min-width:44px;height:44px;border-radius:14px;border:1px solid #eadfcd;
  background:#fff;display:grid;place-items:center;font-size:18px;cursor:pointer;
}
.icon-row{display:flex;gap:8px;align-items:center}
.mobile-app{
  max-width:430px;margin:0 auto;min-height:100vh;background:rgba(255,255,255,.20);
  box-shadow:0 0 0 1px rgba(255,255,255,.14);
}
.app-body{
  padding:16px 16px 26px;
  display:flex;flex-direction:column;gap:14px;
}
.hero-card{
  background:var(--panel-strong);
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow);
}
.hero-card h1{
  margin:0 0 8px;font-size:28px;line-height:1.05
}
.hero-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.quick-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px
}
.quick-box{
  background:rgba(255,255,255,.88);
  border:1px solid #eadfcd;border-radius:18px;padding:14px;
}
.quick-box strong{display:block;font-size:14px;margin-bottom:6px}
.quick-box span{display:block;font-size:12px;color:var(--muted)}
.photo-preview{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px
}
.photo-tile{
  min-height:84px;border-radius:16px;border:1px dashed #d9caa6;
  background:linear-gradient(180deg, rgba(191,165,106,.10), rgba(191,165,106,.04));
  display:grid;place-items:center;text-align:center;padding:8px;font-size:12px;color:#7d6c4b;
}
.counter{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  background:var(--gold-soft);border:1px solid #ebdfc9;font-size:12px;font-weight:800;color:#7a6948;
}
.menu-drawer,.overlay,.modal{
  position:fixed;inset:0;opacity:0;pointer-events:none;transition:opacity .22s ease;
}
.overlay{
  background:rgba(31,25,16,.36);
  z-index:29;
}
.menu-drawer.open,.overlay.open,.modal.open{
  opacity:1;pointer-events:auto;
}
.drawer-panel{
  position:absolute;top:0;left:0;bottom:0;width:min(82vw,330px);
  background:#fff;transform:translateX(-100%);
  transition:transform .24s ease;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
  padding:18px;
  z-index:30;
}
.menu-drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.drawer-list{display:flex;flex-direction:column;gap:10px}
.drawer-link{
  display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;border:1px solid #eee4d2;background:#fff
}
.modal{
  display:flex;align-items:flex-end;justify-content:center;
  z-index:35;background:rgba(31,25,16,.26);
}
.modal-card{
  width:min(100%,430px);background:#fff;border-radius:24px 24px 0 0;padding:18px 18px 24px;
  transform:translateY(26px);transition:transform .22s ease;
}
.modal.open .modal-card{transform:translateY(0)}
.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px
}
.role-select-list{display:flex;flex-direction:column;gap:10px}
.role-select-btn{
  width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px;border-radius:16px;border:1px solid #eadfcd;background:#fff;cursor:pointer
}
.hidden{display:none !important}
.desktop-note{
  display:flex;justify-content:center;padding:16px;color:#6a5d47;font-size:13px
}
.desktop-wrapper{
  max-width:1240px;margin:0 auto;padding:24px
}
.desktop-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:stretch
}
.desktop-side,.desktop-panel{
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:28px;padding:28px;
  box-shadow:var(--shadow)
}
.desktop-side img{width:min(100%,360px);display:block;margin-bottom:18px}
.desktop-side h1{margin:0 0 10px;font-size:42px;line-height:1.02}
.desktop-side p{margin:0;color:var(--muted);line-height:1.6;font-size:17px}
.desktop-panel .title{font-size:34px}
@media (max-width:900px){
  .desktop-grid{grid-template-columns:1fr}
  .desktop-side h1{font-size:34px}
}
@media (max-width:640px){
  body{background:
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.76)),
    url('bg-mobile.jpg') center/cover no-repeat fixed;}
  .app-shell{padding:16px}
  .card{padding:18px}
  .btn-row,.quick-grid,.kpi{grid-template-columns:1fr}
  .brand img{width:min(100%,230px)}
}


.desktop-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px 1fr;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.78)),
    url('bg-desktop.jpg') center/cover no-repeat fixed;
}
.desktop-sidebar{
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  border-right:1px solid var(--line);
  padding:22px 18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.desktop-logo img{
  width:min(100%,220px);
  display:block;
  margin:0 auto 6px;
}
.desktop-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.desktop-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid #eadfcd;
  background:rgba(255,255,255,.86);
  font-weight:700;
}
.desktop-main{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.desktop-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  border-radius:24px;
  padding:16px 18px;
  box-shadow:var(--shadow);
}
.desktop-topbar h1{
  margin:0;
  font-size:32px;
  line-height:1.05;
}
.desktop-topbar p{
  margin:6px 0 0;
  color:var(--muted);
}
.desktop-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.desktop-grid-main{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
}
.desktop-card{
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:var(--shadow);
}
.desktop-card h2{
  margin:0 0 8px;
  font-size:24px;
}
.desktop-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.desktop-table{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
}
.desktop-table th,.desktop-table td{
  text-align:left;
  padding:12px 10px;
  border-bottom:1px solid #eee4d2;
  font-size:14px;
}
.desktop-table th{
  color:#6e614b;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.desktop-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.desktop-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
}
.desktop-footer-note{
  color:var(--muted);
  font-size:13px;
}
@media (max-width:1100px){
  .desktop-app{grid-template-columns:1fr}
  .desktop-sidebar{border-right:0;border-bottom:1px solid var(--line)}
  .desktop-grid-main{grid-template-columns:1fr}
}
@media (max-width:720px){
  .desktop-split{grid-template-columns:1fr}
  .desktop-topbar{flex-direction:column;align-items:flex-start}
}


.switch-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.switch-item{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  width:100%;padding:14px;border-radius:16px;border:1px solid #eadfcd;background:#fff;cursor:pointer
}
.switch-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.switch-item.active{border-color:rgba(191,165,106,.7);background:rgba(191,165,106,.08)}
.desktop-chip{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  background:var(--gold-soft);border:1px solid #ebdfc9;font-size:12px;font-weight:800;color:#7a6948;
}


.icon-only{
  min-width:44px;height:44px;border-radius:14px;border:1px solid #eadfcd;
  background:#fff;display:grid;place-items:center;font-size:18px;font-weight:800;cursor:pointer
}
.action-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.action-tile{
  background:rgba(255,255,255,.88);
  border:1px solid #eadfcd;
  border-radius:18px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:92px;
  text-align:center;
  cursor:pointer;
}
.action-tile .emoji{
  font-size:24px;
  line-height:1;
}
.action-tile .txt{
  font-size:12px;
  font-weight:800;
  color:#6c5f49;
}
.icon-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.icon-badge{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;background:var(--gold-soft);
  border:1px solid #ebdfc9;font-size:16px
}
.file-help{
  font-size:12px;color:var(--muted);line-height:1.45;margin-top:8px
}
@media (max-width:640px){
  .btn.with-text-mobile{
    font-size:0;
    position:relative;
  }
  .btn.with-text-mobile::before{
    font-size:18px;
    content: attr(data-icon);
  }
}

/* ===== couche v6 maquette ===== */
.role-shell{min-height:100vh}
.center-hero{display:flex;justify-content:center;margin-bottom:16px}
.center-hero img{width:min(100%,250px);height:auto;display:block}
.role-grid-2{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}
.role-box{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow);
}
.role-box h2{margin:0 0 8px;font-size:22px;color:#584b37}
.role-box p{margin:0;color:var(--muted);line-height:1.5}
.role-table{width:100%;border-collapse:collapse;margin-top:14px}
.role-table th,.role-table td{padding:12px 10px;border-bottom:1px solid #eee4d2;text-align:left;font-size:14px}
.role-table th{font-size:12px;color:#6e614b;text-transform:uppercase;letter-spacing:.06em}
.top-actions{display:flex;gap:10px;flex-wrap:wrap}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat-card{
  background:rgba(255,255,255,.86);border:1px solid #eadfcd;border-radius:18px;padding:14px
}
.stat-card strong{display:block;font-size:13px;color:#6f624d;margin-bottom:6px}
.stat-card span{display:block;font-size:24px;font-weight:800;color:#584b37}
.note-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.note-item{
  background:rgba(255,255,255,.86);border:1px solid #eadfcd;border-radius:18px;padding:14px
}
.note-item strong{display:block;margin-bottom:4px}
.small-nav{display:flex;gap:8px;flex-wrap:wrap}
.small-nav a{
  display:inline-flex;align-items:center;min-height:40px;padding:10px 12px;border-radius:14px;
  border:1px solid #eadfcd;background:#fff;font-size:13px;font-weight:700
}
.home-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.home-role{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  border:1px solid #eadfcd;background:rgba(255,255,255,.88);border-radius:18px;padding:14px
}
.home-role strong{display:block;font-size:15px;margin-bottom:4px}
.home-role span{display:block;font-size:12px;color:var(--muted)}
.home-chip{
  min-width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));color:#fff;font-weight:800
}
.mobile-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mobile-stat{
  background:rgba(255,255,255,.9);border:1px solid #eadfcd;border-radius:18px;padding:12px
}
.mobile-stat strong{display:block;font-size:12px;color:#6d604a;margin-bottom:4px}
.mobile-stat span{display:block;font-size:20px;font-weight:800}
.back-row{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:980px){
  .role-grid-2{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .home-list{grid-template-columns:1fr}
  .mobile-stats{grid-template-columns:1fr}
}


/* ===== v7 volet coulissant ===== */
.desktop-app{
  grid-template-columns:1fr;
  position:relative;
}
.desktop-sidebar{
  position:fixed;
  top:0;left:0;bottom:0;
  width:min(320px,86vw);
  z-index:60;
  transform:translateX(-100%);
  transition:transform .24s ease;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
}
.desktop-app.drawer-open .desktop-sidebar{
  transform:translateX(0);
}
.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(31,25,16,.34);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:55;
}
.desktop-app.drawer-open .drawer-overlay{
  opacity:1;
  pointer-events:auto;
}
.desktop-main{
  min-width:0;
  padding:24px;
}
.drawer-toggle{
  min-width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid #eadfcd;
  background:#fff;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
}
.topbar-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.topbar-left .txt{
  min-width:0;
}
.desktop-topbar{
  position:sticky;
  top:16px;
  z-index:20;
}
@media (max-width:720px){
  .desktop-main{padding:16px}
  .desktop-topbar{top:10px}
}



/* ===== v8 bloc toggle ===== */
.toggle-block{
  border:1px solid #eadfcd;
  border-radius:20px;
  background:rgba(255,255,255,.88);
  overflow:hidden;
}
.toggle-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  cursor:pointer;
  font-weight:800;
}
.toggle-title{
  font-size:16px;
}
.toggle-icon{
  font-size:18px;
}
.toggle-content{
  padding:16px;
  border-top:1px solid #eee4d2;
}
.toggle-hidden{
  display:none;
}


/* ===== v9 bloc occupation réel ===== */
.version-badge-ui{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:90;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  color:#6d604a;
  font-size:12px;
  font-weight:800;
  backdrop-filter:blur(8px);
  box-shadow:0 10px 20px rgba(77,60,29,.12);
}
.occ-block{
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.88);
  overflow:hidden;
}
.occ-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
}
.occ-head-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.occ-title{
  font-size:16px;
  font-weight:800;
  color:#584b37;
}
.occ-subtitle{
  font-size:13px;
  color:var(--muted);
}
.occ-toggle{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid #eadfcd;
  background:#fff;
  display:grid;
  place-items:center;
  font-size:16px;
  font-weight:800;
  color:#6b5e48;
}
.occ-content{
  padding:16px;
  border-top:1px solid #eee4d2;
}
.occ-content.is-hidden{
  display:none;
}
.occ-band{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.occ-switch{
  display:flex;
  align-items:center;
  gap:6px;
  background:rgba(255,255,255,.74);
  border:1px solid #eadfcd;
  border-radius:18px;
  padding:6px;
  flex:0 0 auto;
}
.occ-switch-btn{
  border:none;
  background:transparent;
  color:#5c503b;
  font-weight:800;
  font-size:15px;
  line-height:1;
  padding:12px 16px;
  border-radius:14px;
  cursor:pointer;
  white-space:nowrap;
}
.occ-switch-btn.is-active{
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
}
.occ-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  justify-content:flex-end;
}
.occ-btn,
.occ-main,
.occ-floor-btn{
  border:none;
  background:rgba(255,255,255,.82);
  color:#5c503b;
  font-weight:800;
  font-size:15px;
  line-height:1;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  white-space:nowrap;
  border:1px solid #eadfcd;
}
.occ-main{
  min-width:170px;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
}
.occ-floor-btn.is-active{
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
}
.occ-hidden{
  display:none !important;
}
.occ-rows{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.occ-row{
  display:grid;
  grid-template-columns:140px 62px 1fr;
  gap:10px;
  align-items:center;
  border-bottom:1px solid #eee4d2;
  padding:10px 0;
}
.occ-label{
  font-weight:800;
  color:#584b37;
}
.occ-count{
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  text-align:center;
  font-size:13px;
}
.occ-count.depart,.occ-unit.depart,.occ-tag.depart{
  background:var(--danger-bg);
  color:var(--danger);
}
.occ-count.arrivee,.occ-unit.arrivee,.occ-tag.arrivee{
  background:var(--gold-soft);
  color:var(--gold-dark);
}
.occ-count.occupe,.occ-unit.occupe,.occ-tag.occupe{
  background:var(--gray-soft, #f1f3f5);
  color:#555;
}
.occ-count.dispo,.occ-unit.dispo,.occ-tag.dispo{
  background:var(--success-bg);
  color:var(--success);
}
.occ-units{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.occ-unit{
  padding:8px 10px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  border:1px solid rgba(0,0,0,.04);
}
.occ-empty{
  color:var(--muted);
  font-size:14px;
}
.occ-popup{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.28);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:20px;
  z-index:95;
}
.occ-popup.show{
  display:flex;
}
.occ-popup-card{
  width:100%;
  max-width:560px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border-radius:22px 22px 0 0;
  box-shadow:0 -8px 24px rgba(0,0,0,.14);
  overflow:hidden;
  border:1px solid var(--line);
}
.occ-popup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid #eee4d2;
}
.occ-popup-title{
  font-size:18px;
  font-weight:800;
  margin:0;
  color:#584b37;
}
.occ-close{
  border:none;
  background:#fff;
  border:1px solid #eadfcd;
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
  color:#5c503b;
}
.occ-popup-body{
  padding:16px;
}
.occ-tag{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  margin-bottom:12px;
}
.occ-fiche-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.occ-info{
  background:rgba(255,255,255,.86);
  border:1px solid #e8edf5;
  border-radius:12px;
  padding:12px;
}
.occ-info-label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}
.occ-info-value{
  font-size:15px;
  font-weight:700;
  color:#5c503b;
}
.occ-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.occ-actions .btn{
  flex:1;
}
.mobile-occ-wrap{
  margin-top:2px;
}
@media (max-width:700px){
  .occ-row{
    grid-template-columns:1fr;
  }
  .occ-fiche-grid{
    grid-template-columns:1fr;
  }
  .occ-band{
    gap:8px;
  }
  .occ-switch{
    gap:4px;
    padding:4px;
  }
  .occ-switch-btn{
    font-size:14px;
    padding:11px 13px;
  }
  .occ-btn,.occ-main,.occ-floor-btn{
    font-size:14px;
    padding:11px 12px;
  }
  .occ-main{
    min-width:118px;
  }
  .occ-controls{
    gap:6px;
  }
}

.home-list-3{grid-template-columns:repeat(3,1fr)}
.accueil-hub .title{text-align:center}
.accueil-hub .subtitle{text-align:center;max-width:520px;margin-left:auto;margin-right:auto}
.home-role-hero{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-height:190px;padding:18px}
.home-role-copy strong{font-size:22px;line-height:1.15;margin-bottom:8px}
.home-role-copy span{font-size:14px;line-height:1.45}
.home-role-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:14px;background:linear-gradient(180deg,var(--gold),var(--gold-dark));color:#fff;font-size:13px;font-weight:800}
@media (max-width:980px){.home-list-3{grid-template-columns:1fr}.home-role-hero{min-height:auto}}


.card-inset{
  background:rgba(255,255,255,.78);
  border:1px solid #eadfcd;
  border-radius:18px;
  padding:16px;
}
.card-inset strong{display:block;font-size:15px;margin-bottom:6px}
.card-inset p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.demo-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:14px;
}
.demo-card{
  background:rgba(255,255,255,.88);
  border:1px solid #eadfcd;
  border-radius:20px;
  padding:18px;
}
.demo-card strong{display:block;font-size:16px;margin-bottom:8px}
.demo-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.demo-hero-card{display:flex;flex-direction:column;gap:14px;min-height:100%}
.demo-visual{
  min-height:220px;
  border-radius:18px;
  display:flex;
  align-items:flex-end;
  padding:18px;
  font-size:26px;
  font-weight:800;
  color:#fff;
  background:
    linear-gradient(180deg, rgba(58,48,31,.08), rgba(58,48,31,.55)),
    url('bg-desktop.jpg') center/cover no-repeat;
}
.demo-copy span{display:block;color:var(--muted);font-size:14px;line-height:1.55}
.demo-list{margin:0;padding-left:18px;color:var(--muted);display:grid;gap:8px;font-size:14px;line-height:1.45}
@media (max-width: 760px){
  .demo-grid{grid-template-columns:1fr;}
  .demo-visual{min-height:180px;font-size:22px;}
}

/* Accueil Hub — déclinaison accès par icônes officielles */
.accueil-hub .home-role-access{
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:210px;
  gap:12px;
  padding:18px 14px;
}
.accueil-hub .home-role-icon{
  width:108px;
  height:108px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
}
.accueil-hub .home-role-type{
  display:block;
  margin:0;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:var(--ink);
}
.accueil-hub .home-role-access .home-role-action{
  margin-top:2px;
}
@media (max-width:980px){
  .accueil-hub .home-role-access{
    min-height:170px;
    gap:9px;
    padding:16px 12px;
  }
  .accueil-hub .home-role-icon{
    width:86px;
    height:86px;
  }
}

/* Accueil Hub — desktop/mobile sans cartes ni fond local */
.accueil-hub.card{
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  padding:24px 24px 30px;
}
.accueil-hub .home-list-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr));
  gap:34px;
  align-items:start;
  margin-top:34px;
}
.accueil-hub .home-role-access{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:0;
  padding:0;
  gap:12px;
  text-align:center;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.accueil-hub .home-role-access:hover,
.accueil-hub .home-role-access:focus-visible{
  background:transparent;
  border:0;
  box-shadow:none;
}
.accueil-hub .home-role-icon{
  width:118px;
  height:118px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 16px rgba(64,50,30,.12));
}
.accueil-hub .home-role-type{
  display:block;
  margin:0;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:#584b37;
}
.accueil-hub .home-role-access .home-role-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  min-width:118px;
  padding:0 18px;
  margin-top:2px;
  border-radius:999px;
  background:linear-gradient(180deg,#c9b279,#a98e52);
  color:#fff;
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(98,75,32,.18);
}
.accueil-hub .home-role-access:hover .home-role-action,
.accueil-hub .home-role-access:focus-visible .home-role-action{
  background:linear-gradient(180deg,#d2bd85,#9f8449);
  box-shadow:0 10px 22px rgba(98,75,32,.22);
}

@media (max-width:980px){
  .accueil-hub.card{
    padding:18px 16px 26px;
  }
  .accueil-hub .title{
    font-size:clamp(30px,8vw,42px);
  }
  .accueil-hub .subtitle{
    font-size:14px;
  }
  .accueil-hub .home-list-3{
    grid-template-columns:1fr;
    gap:28px;
    margin-top:30px;
  }
  .accueil-hub .home-role-icon{
    width:112px;
    height:112px;
  }
  .accueil-hub .home-role-type{
    font-size:14px;
  }
  .accueil-hub .home-role-access .home-role-action{
    min-height:40px;
    min-width:132px;
    font-size:13px;
  }
}

@media (max-width:480px){
  .accueil-hub .home-list-3{
    gap:24px;
  }
  .accueil-hub .home-role-icon{
    width:98px;
    height:98px;
  }
}


/* Flow PRO — même modèle Accueil Hub, sans cadres ni fonds locaux */
.pro-flow.card{
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  padding:24px 24px 30px;
}
.pro-flow .title{text-align:center;}
.pro-flow .home-list-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:42px;
  align-items:start;
  margin-top:38px;
}
.pro-flow .home-list-roles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:30px 34px;
  align-items:start;
  margin-top:34px;
}
.pro-flow .home-role-access{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height:0;
  padding:0;
  gap:12px;
  text-align:center;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.pro-flow .home-role-access:hover,.pro-flow .home-role-access:focus-visible{
  background:transparent;
  border:0;
  box-shadow:none;
}
.pro-flow .home-role-icon{
  width:112px;
  height:112px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 16px rgba(64,50,30,.12));
}
.pro-flow .home-list-roles .home-role-icon{
  width:92px;
  height:92px;
}
.pro-flow .home-role-type{
  display:block;
  margin:0;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:#584b37;
}
.pro-flow .home-role-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  min-width:118px;
  padding:0 18px;
  margin-top:2px;
  border-radius:999px;
  background:linear-gradient(180deg,#c9b279,#a98e52);
  color:#fff;
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(98,75,32,.18);
}
.pro-flow .home-role-access:hover .home-role-action,.pro-flow .home-role-access:focus-visible .home-role-action{
  background:linear-gradient(180deg,#d2bd85,#9f8449);
  box-shadow:0 10px 22px rgba(98,75,32,.22);
}
.pro-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 0 18px;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  color:#6b5a3c;
  font-size:13px;
  font-weight:800;
  background:rgba(255,255,255,.34);
}
@media (max-width:980px){
  .pro-flow.card{padding:18px 16px 26px;}
  .pro-flow .title{font-size:clamp(30px,8vw,42px);}
  .pro-flow .home-list-2,.pro-flow .home-list-roles{grid-template-columns:1fr;gap:26px;margin-top:30px;}
  .pro-flow .home-role-icon{width:104px;height:104px;}
  .pro-flow .home-list-roles .home-role-icon{width:92px;height:92px;}
  .pro-flow .home-role-type{font-size:14px;}
  .pro-flow .home-role-action{min-height:40px;min-width:132px;font-size:13px;}
}
@media (max-width:480px){
  .pro-flow .home-list-2,.pro-flow .home-list-roles{gap:24px;}
  .pro-flow .home-role-icon{width:96px;height:96px;}
}
