/* ========================================================================== 
   BS LOCATION — Design system v2
   Refonte premium portail public + espace gestionnaire
   ========================================================================== */
:root {
    --brand-orange: #E86922;
    --brand-orange-hover: #C6561C;
    --brand-orange-deep: #974416;
    --brand-orange-soft: #FFF1E8;
    --brand-orange-faint: #FFF8F3;

    --brand-black: #231F20;
    --brand-ink: #262329;
    --brand-navy: #171A21;
    --brand-blue: #0E76BD;
    --brand-blue-hover: #0B5E97;
    --brand-blue-soft: #EAF5FC;
    --brand-amber: #F2A900;

    --surface-page: #F5F6F8;
    --surface-card: #FFFFFF;
    --surface-muted: #F9FAFB;
    --surface-dark: #16171C;
    --border-soft: #E8E9ED;
    --border-strong: #D9DBE1;
    --text-main: #262329;
    --text-muted: #777984;
    --text-soft: #A1A4AE;

    --success: #198754;
    --danger: #DC3545;
    --purple: #7C4DBD;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 2px 8px rgba(25, 26, 31, 0.04);
    --shadow-sm: 0 10px 28px rgba(25, 26, 31, 0.07);
    --shadow-md: 0 20px 50px rgba(25, 26, 31, 0.10);
    --shadow-lg: 0 32px 80px rgba(15, 16, 20, 0.18);

    --brand-font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
    --brand-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

:root,
[data-bs-theme="light"] {
    --bs-primary: var(--brand-orange);
    --bs-primary-rgb: 232, 105, 34;
    --bs-dark: var(--brand-black);
    --bs-dark-rgb: 35, 31, 32;
    --bs-link-color: var(--brand-blue);
    --bs-link-hover-color: var(--brand-blue-hover);
    --bs-body-font-family: var(--brand-font-body);
    --bs-body-color: var(--text-main);
    --bs-body-bg: var(--surface-page);
    --bs-border-color: var(--border-soft);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--brand-font-body);
    color: var(--text-main);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand {
    font-family: var(--brand-font-heading);
    letter-spacing: -0.02em;
}

a { text-decoration: none; }
.text-muted { color: var(--text-muted) !important; }
.text-primary-bs { color: var(--brand-orange-deep) !important; }
.bg-primary-bs { background: #fff !important; }

/* --------------------------------------------------------------------------
   Bootstrap polish
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 12px;
    font-weight: 700;
    padding: .68rem 1rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { border-radius: 10px; padding: .5rem .75rem; }
.btn-primary,
.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-orange);
    --bs-btn-border-color: var(--brand-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-orange-hover);
    --bs-btn-hover-border-color: var(--brand-orange-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-orange-deep);
    --bs-btn-active-border-color: var(--brand-orange-deep);
    box-shadow: 0 9px 20px rgba(232,105,34,.19);
}
.btn-primary:hover,
.btn-warning:hover { box-shadow: 0 13px 28px rgba(232,105,34,.26); }
.btn-outline-primary {
    --bs-btn-color: var(--brand-orange-deep);
    --bs-btn-border-color: #F0C4AA;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-orange);
    --bs-btn-hover-border-color: var(--brand-orange);
}
.btn-outline-secondary {
    --bs-btn-color: #51545D;
    --bs-btn-border-color: #D8DAE0;
    --bs-btn-hover-bg: #F1F2F4;
    --bs-btn-hover-border-color: #CACDD4;
    --bs-btn-hover-color: var(--brand-black);
}

.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-xs);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--brand-font-heading);
    font-weight: 700;
    padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }

.form-label {
    color: #4B4E57;
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: .45rem;
}
.form-control,
.form-select,
textarea.form-control {
    min-height: 46px;
    border-radius: 12px;
    border-color: #DADCE2;
    background-color: #fff;
    color: var(--text-main);
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
textarea.form-control { min-height: 110px; }
.form-control:focus,
.form-select:focus {
    border-color: rgba(232,105,34,.62);
    box-shadow: 0 0 0 .22rem rgba(232,105,34,.10);
}
.form-text { color: #9698A1; font-size: .78rem; }
.form-check-input:checked { background-color: var(--brand-orange); border-color: var(--brand-orange); }

.alert { border: 0; border-radius: 14px; }
.badge { border-radius: 999px; padding: .46rem .7rem; font-weight: 700; letter-spacing: .01em; }

.table { --bs-table-bg: transparent; color: var(--text-main); }
.table > :not(caption) > * > * { padding: .92rem 1rem; border-bottom-color: #EEEFF2; vertical-align: middle; }
.table thead th {
    color: #878994;
    background: #FAFAFB;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid #ECEEF1;
    white-space: nowrap;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #FFF9F5; }
.table-responsive { border-radius: 16px; }
.pagination .page-link { border-radius: 10px !important; margin: 0 .15rem; color: var(--brand-black); border-color: var(--border-soft); }
.pagination .page-item:not(.disabled) .page-link:hover { background: var(--brand-orange-soft); color: var(--brand-orange-deep); border-color: #F0C4AA; }

/* --------------------------------------------------------------------------
   Public header
   -------------------------------------------------------------------------- */
.topbar-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange) 0 64%, var(--brand-blue) 64% 100%);
}
.navbar-bs {
    min-height: 76px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(223,225,230,.78);
    box-shadow: 0 6px 20px rgba(18,19,23,.04);
}
.navbar-bs .navbar-brand img { height: 43px; width: auto; }
.navbar-bs .nav-link {
    position: relative;
    color: #45474F;
    font-size: .93rem;
    font-weight: 650;
    padding: .65rem .85rem !important;
    border-radius: 10px;
}
.navbar-bs .nav-link:hover,
.navbar-bs .nav-link:focus { color: var(--brand-orange-deep); background: var(--brand-orange-faint); }
.navbar-bs .nav-link.active { color: var(--brand-orange-deep); background: var(--brand-orange-soft); }
.navbar-bs .btn { padding: .55rem .85rem; }
.navbar-toggler { border: 0; box-shadow: none !important; }

.global-message-wrap { position: relative; z-index: 20; }

/* --------------------------------------------------------------------------
   Public hero / home
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5.4rem 0 5.8rem;
    background-image:
      linear-gradient(90deg,
        rgba(18,17,20,.89) 0%,
        rgba(20,18,21,.79) 38%,
        rgba(18,19,23,.66) 63%,
        rgba(10,29,43,.76) 100%),
      linear-gradient(135deg,
        rgba(232,105,34,.24) 0%,
        rgba(232,105,34,.04) 42%,
        rgba(14,118,189,.18) 100%),
      url("../img/hero-location-pajero.jpg");
    background-size: cover;
    background-position: center 54%;
    background-repeat: no-repeat;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -190px; bottom: -230px; border: 1px solid rgba(255,255,255,.12); }
.hero::after { width: 280px; height: 280px; right: -60px; bottom: -160px; border: 1px solid rgba(232,105,34,.25); }
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .75rem;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    border-radius: 999px;
    color: #F9C6A9;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-kicker i { color: var(--brand-orange); }
.hero-title {
    max-width: 720px;
    font-size: clamp(2.35rem, 5.2vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin-bottom: 1.3rem;
}
.hero-title .accent { color: #FF9C64; }
.hero-copy {
    max-width: 635px;
    color: rgba(255,255,255,.72);
    font-size: 1.04rem;
    line-height: 1.8;
    margin-bottom: 1.55rem;
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-actions .btn-outline-light { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.hero-actions .btn-outline-light:hover { background: #fff; color: var(--brand-black); }
.hero-stat-row { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 2rem; }
.hero-stat { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 600; }
.hero-stat i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(232,105,34,.16); color: #FFAE82; }

.booking-search-card {
    position: relative;
    background: rgba(255,255,255,.98);
    border-radius: 24px;
    padding: 1.35rem;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.7);
}
.booking-search-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.booking-search-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.booking-search-pill { color: var(--brand-orange-deep); background: var(--brand-orange-soft); border-radius: 999px; padding: .4rem .66rem; font-size: .75rem; font-weight: 800; }
.booking-search-card .form-control,
.booking-search-card .form-select { background: #F9FAFB; border-color: #E7E8EC; }
.booking-search-card .btn { min-height: 46px; }

.home-strip {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}
.home-strip-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
}
.home-strip-item { display: flex; align-items: center; gap: .8rem; }
.home-strip-icon {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--brand-orange-soft); color: var(--brand-orange-deep); font-size: 1.1rem;
}
.home-strip-title { font-size: .86rem; font-weight: 800; margin-bottom: .05rem; }
.home-strip-text { color: var(--text-muted); font-size: .76rem; }

.section-space { padding: 4.8rem 0; }
.section-space.compact { padding: 3.7rem 0; }
.section-kicker { color: var(--brand-orange-deep); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .45rem; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: .45rem; }
.section-subtitle { color: var(--text-muted); max-width: 640px; margin-bottom: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }

.category-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 18px;
    background: #fff;
    padding: 1.15rem;
    border: 1px solid var(--border-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #F0C4AA; }
.category-icon { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; }
.category-icon.orange { background: var(--brand-orange-soft); color: var(--brand-orange-deep); }
.category-icon.blue { background: var(--brand-blue-soft); color: var(--brand-blue); }
.category-title { font-weight: 800; margin-bottom: .15rem; color: var(--brand-black); }
.category-text { font-size: .78rem; color: var(--text-muted); margin: 0; }

.card-bien {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-bien:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #E6D4C8; }
.card-bien .card-img-top,
.card-bien img { height: 220px; object-fit: cover; }
.card-bien .card-body { padding: 1.15rem 1.15rem 1.25rem; }
.card-bien .card-title { font-family: var(--brand-font-heading); font-size: 1.02rem; margin-bottom: .35rem; }
.card-bien .card-text { line-height: 1.6; }
.card-media { position: relative; overflow: hidden; background: #F0F1F3; }
.card-media img { transition: transform .35s ease; }
.card-bien:hover .card-media img { transform: scale(1.035); }
.card-media-badge { position: absolute; top: .8rem; left: .8rem; background: rgba(22,23,28,.82); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: .38rem .62rem; font-size: .72rem; font-weight: 800; }
.card-price { color: var(--brand-orange-deep); font-size: 1.06rem; font-weight: 850; }
.card-meta { display: flex; gap: .65rem; flex-wrap: wrap; color: #7E8089; font-size: .76rem; }

.search-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 1.1rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.55rem;
}
.search-result-count { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-muted); font-size: .86rem; }

.property-page { padding: 2.2rem 0 4rem; }
.property-gallery-main { width: 100%; min-height: 360px; max-height: 520px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-sm); }
.property-placeholder { min-height: 380px; border-radius: 24px; background: linear-gradient(135deg,#F3F4F6,#E9EAED); display: grid; place-items: center; color: #AAADB5; }
.property-title { font-size: clamp(1.8rem,3vw,2.7rem); margin-bottom: .3rem; }
.property-meta { color: var(--text-muted); }
.property-chip { display: inline-flex; align-items: center; gap: .38rem; background: #fff; border: 1px solid var(--border-soft); padding: .55rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; margin: .2rem .2rem .2rem 0; }
.booking-side-card { border-radius: 22px; box-shadow: var(--shadow-md); }
.booking-side-card .card-body { padding: 1.5rem; }

/* --------------------------------------------------------------------------
   Authentication
   -------------------------------------------------------------------------- */
.auth-page { padding: 3.6rem 0 5rem; }
.auth-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
}
.auth-brand-panel {
    position: relative;
    min-height: 100%;
    padding: 3rem;
    color: #fff;
    background:
      radial-gradient(circle at 15% 15%, rgba(232,105,34,.42), transparent 31%),
      radial-gradient(circle at 88% 82%, rgba(14,118,189,.35), transparent 30%),
      linear-gradient(145deg,#17181D,#292327 70%,#15161A);
}
.auth-brand-panel::after { content:""; position:absolute; width:230px; height:230px; border:1px solid rgba(255,255,255,.13); border-radius:50%; right:-95px; bottom:-95px; }
.auth-brand-panel > * { position: relative; z-index: 2; }
.auth-brand-logo { height: 52px; filter: brightness(0) invert(1); margin-bottom: 3.2rem; }
.auth-brand-title { font-size: 2.25rem; line-height: 1.15; margin-bottom: 1rem; }
.auth-brand-copy { color: rgba(255,255,255,.68); line-height: 1.7; }
.auth-feature { display:flex; gap:.75rem; align-items:flex-start; margin-top:1.1rem; color:rgba(255,255,255,.82); font-size:.86rem; }
.auth-feature i { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:#FFC3A1; background:rgba(232,105,34,.16); }
.auth-form-panel { padding: 3rem; }
.auth-eyebrow { font-size: .74rem; color: var(--brand-orange-deep); text-transform: uppercase; letter-spacing: .09em; font-weight: 850; margin-bottom: .5rem; }
.auth-title { font-size: 2rem; margin-bottom: .4rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 0 !important;
    background: #15161A !important;
    border-top: 1px solid rgba(255,255,255,.05);
}
.site-footer .footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: .96; }
.site-footer .footer-copy { color: rgba(255,255,255,.56); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Status badges
   -------------------------------------------------------------------------- */
.badge-statut-disponible,
.badge-statut-terminee { background-color: #E7F5ED; color: #116B3B; }
.badge-statut-reservee,
.badge-statut-en_attente,
.badge-statut-reserve { background-color: #FFF2CC; color: #7E5A00; }
.badge-statut-en_cours,
.badge-statut-confirmee,
.badge-statut-en_location,
.badge-statut-occupe { background-color: #E7F2FA; color: #0A5B91; }
.badge-statut-annulee,
.badge-statut-refusee,
.badge-statut-indisponible { background-color: #FCE8EA; color: #A9212F; }
.badge-statut-maintenance { background-color: #F0EBF8; color: #5E3A94; }

/* --------------------------------------------------------------------------
   Dashboard shell
   -------------------------------------------------------------------------- */
.dashboard-page { background: #F3F4F6; }
.dashboard-page .topbar-accent,
.dashboard-page .navbar-bs,
.dashboard-page > .global-message-wrap { display: none !important; }
.dashboard-shell { display: flex; min-height: 100vh; }
.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: 268px;
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(circle at 0 0, rgba(232,105,34,.18), transparent 28%),
      linear-gradient(180deg,#1B1B20 0%,#121317 100%);
    border-right: 1px solid rgba(255,255,255,.05);
    box-shadow: 18px 0 45px rgba(15,16,20,.08);
}
.dashboard-sidebar-brand { height: 84px; display:flex; align-items:center; gap:.75rem; padding: 0 1.2rem; border-bottom:1px solid rgba(255,255,255,.06); }
.dashboard-sidebar-brand img { height: 40px; filter: brightness(0) invert(1); }
.dashboard-brand-meta { min-width:0; }
.dashboard-brand-name { color:#fff; font-family:var(--brand-font-heading); font-size:.92rem; font-weight:800; line-height:1.1; }
.dashboard-brand-label { color:rgba(255,255,255,.42); font-size:.68rem; margin-top:.2rem; }
.dashboard-nav-scroll { flex:1; overflow-y:auto; padding:1rem .9rem 1.3rem; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.13) transparent; }
.dashboard-nav-scroll::-webkit-scrollbar { width:5px; }
.dashboard-nav-scroll::-webkit-scrollbar-thumb { background:rgba(255,255,255,.13); border-radius:99px; }
.dash-nav-section-title {
    color: rgba(255,255,255,.35);
    font-size: .64rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .85rem .7rem .35rem;
}
.dash-nav-link {
    display:flex;
    align-items:center;
    gap:.72rem;
    min-height:43px;
    color:rgba(255,255,255,.67);
    padding:.58rem .72rem;
    border-radius:12px;
    font-size:.82rem;
    font-weight:650;
    margin:.1rem 0;
    text-decoration:none;
    transition:background .16s ease,color .16s ease,transform .16s ease;
}
.dash-nav-link i { width:20px; text-align:center; font-size:1rem; }
.dash-nav-link:hover { color:#fff; background:rgba(255,255,255,.07); transform:translateX(2px); }
.dash-nav-link.active { color:#fff; background:linear-gradient(135deg,var(--brand-orange),#D65B1B); box-shadow:0 8px 22px rgba(232,105,34,.19); }
.dashboard-nav-separator { height:1px; background:rgba(255,255,255,.07); margin:.85rem .45rem; }
.dashboard-sidebar-footer { padding:.9rem; border-top:1px solid rgba(255,255,255,.06); }
.dashboard-user-card { display:flex; align-items:center; gap:.7rem; padding:.72rem; border-radius:14px; background:rgba(255,255,255,.055); }
.dashboard-user-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:rgba(232,105,34,.18); color:#FFB68C; font-weight:800; }
.dashboard-user-name { color:#fff; font-size:.8rem; font-weight:750; line-height:1.2; }
.dashboard-user-role { color:rgba(255,255,255,.42); font-size:.67rem; margin-top:.15rem; text-transform:capitalize; }
.dashboard-workspace { width:calc(100% - 268px); margin-left:268px; min-width:0; }
.dashboard-topbar {
    position:sticky;
    top:0;
    z-index:1020;
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.8rem 1.6rem;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(16px);
    border-bottom:1px solid #E6E7EB;
}
.dashboard-topbar-left,
.dashboard-topbar-right { display:flex; align-items:center; gap:.7rem; }
.dashboard-mobile-toggle { display:none; width:42px; height:42px; border:1px solid var(--border-soft); background:#fff; border-radius:12px; place-items:center; }
.dashboard-context-label { color:#9698A1; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.dashboard-context-title { font-family:var(--brand-font-heading); font-size:.95rem; font-weight:750; color:var(--brand-black); }
.dashboard-topbar-chip { display:flex; align-items:center; gap:.5rem; min-height:40px; padding:.45rem .72rem; border:1px solid var(--border-soft); background:#fff; border-radius:12px; color:#555861; font-size:.78rem; font-weight:650; }
.dashboard-content { padding:1.65rem; max-width:1700px; margin:0 auto; }
.dashboard-alerts { margin-bottom:1rem; }
.dashboard-backdrop { display:none; }

.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.page-heading-eyebrow { color:var(--brand-orange-deep); font-size:.7rem; font-weight:850; text-transform:uppercase; letter-spacing:.09em; margin-bottom:.35rem; }
.page-heading h1 { font-size:clamp(1.55rem,2.2vw,2.15rem); margin:0; }
.page-heading p { color:var(--text-muted); margin:.35rem 0 0; }
.page-actions { display:flex; gap:.5rem; flex-wrap:wrap; }

.kpi-card {
    position:relative;
    overflow:hidden;
    min-height:132px;
    height:100%;
    border:1px solid var(--border-soft);
    border-radius:18px;
    background:#fff;
    padding:1.1rem 1.15rem;
    box-shadow:var(--shadow-xs);
    transition:transform .18s ease,box-shadow .18s ease;
}
.kpi-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.kpi-card::after { content:""; position:absolute; width:84px; height:84px; border-radius:50%; right:-32px; bottom:-38px; background:rgba(232,105,34,.05); }
.kpi-card .kpi-value { font-family:var(--brand-font-heading); font-size:1.85rem; font-weight:800; color:var(--brand-black); line-height:1.08; }
.kpi-card .kpi-value .fs-6 { font-size:.78rem!important; font-family:var(--brand-font-body); }
.kpi-card .kpi-label { color:#7D8089; font-size:.76rem; font-weight:650; margin-top:.35rem; }
.kpi-card .kpi-icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; font-size:1.08rem; color:var(--brand-orange-deep); background:var(--brand-orange-soft); }
.kpi-card.kpi-blue .kpi-icon { color:var(--brand-blue); background:var(--brand-blue-soft); }
.kpi-card.kpi-green .kpi-icon { color:#197149; background:#EAF7F0; }
.kpi-card.kpi-purple .kpi-icon { color:#68429E; background:#F0EBF8; }
.kpi-card.kpi-alert .kpi-value { color:#B52635; }
.kpi-card.kpi-alert .kpi-icon { color:#B52635; background:#FDECEF; }
.kpi-card.kpi-action { justify-content:center!important; align-items:flex-start!important; background:linear-gradient(145deg,#FFF8F3,#FFF); color:var(--brand-black); }

.dashboard-panel { background:#fff; border:1px solid var(--border-soft); border-radius:18px; box-shadow:var(--shadow-xs); overflow:hidden; }
.dashboard-panel-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid var(--border-soft); }
.dashboard-panel-title { margin:0; font-size:.98rem; }
.dashboard-panel-body { padding:1.05rem 1.15rem; }
.empty-state { text-align:center; padding:2.2rem 1rem; color:var(--text-muted); }
.empty-state i { width:48px; height:48px; display:grid; place-items:center; margin:0 auto .7rem; border-radius:15px; background:#F3F4F6; color:#9A9DA5; font-size:1.25rem; }

/* Dashboard list/form pages */
.list-toolbar { background:#fff; border:1px solid var(--border-soft); border-radius:18px; padding:1rem; box-shadow:var(--shadow-xs); margin-bottom:1rem; }
.list-card { overflow:hidden; }
.form-card { border-radius:20px; }
.form-card .card-body { padding:1.4rem; }
.form-section { padding:1.1rem; border:1px solid var(--border-soft); border-radius:16px; background:#FCFCFD; margin-bottom:1rem; }
.form-section-title { display:flex; align-items:center; gap:.55rem; font-size:.86rem; font-weight:850; margin-bottom:1rem; color:var(--brand-black); }
.form-section-title i { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--brand-orange-soft); color:var(--brand-orange-deep); }
.form-actions { display:flex; gap:.6rem; align-items:center; padding-top:.35rem; }

/* Nouvelle location */
.rental-type-picker { display:flex; flex-wrap:wrap; gap:.65rem; }
.rental-type-picker .form-check { position:relative; margin:0; padding:0; }
.rental-type-picker .form-check-input { position:absolute; opacity:0; pointer-events:none; }
.rental-type-picker .form-check-label { min-width:150px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:.8rem 1rem; border:1px solid #DCDEE4; border-radius:13px; background:#fff; font-weight:750; transition:.18s ease; }
.rental-type-picker .form-check-input:checked + .form-check-label { color:var(--brand-orange-deep); border-color:#F0B48F; background:var(--brand-orange-soft); box-shadow:0 0 0 3px rgba(232,105,34,.08); }
.rental-summary { top:94px!important; border-radius:20px; box-shadow:var(--shadow-sm); overflow:hidden; }
.rental-summary .card-header { background:linear-gradient(135deg,#1C1D22,#29242A); color:#fff; border:0; }
.rental-summary .card-body { padding:1.2rem; }
.rental-summary #details-photo { width:92px!important; height:92px!important; border-radius:14px!important; }
.rental-summary table { font-size:.75rem; }
.rental-summary .alert-primary { background:#EBF6FD; color:#095886; }

/* Calendar */
#calendrier-gestionnaire { background:#fff; border:1px solid var(--border-soft); border-radius:20px; padding:1.2rem; box-shadow:var(--shadow-xs); }
.fc .fc-button-primary { background:var(--brand-black)!important; border-color:var(--brand-black)!important; border-radius:10px!important; font-weight:700!important; font-size:.78rem!important; }
.fc .fc-button-primary:not(:disabled):hover { background:#39363A!important; }
.fc .fc-toolbar-title { font-family:var(--brand-font-heading); font-size:1.08rem!important; }
.calendrier-legende .badge { font-weight:650; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero { padding:4.1rem 0 4.8rem; background-position: 58% center; }
    .booking-search-card { margin-top:2rem; }
    .home-strip { margin-top:-20px; }
    .section-space { padding:3.8rem 0; }
    .section-head { align-items:flex-start; flex-direction:column; }
    .auth-brand-panel { padding:2.2rem; }
    .auth-form-panel { padding:2.2rem; }

    .dashboard-sidebar { transform:translateX(-105%); transition:transform .24s ease; }
    .dashboard-page.sidebar-open .dashboard-sidebar { transform:translateX(0); }
    .dashboard-workspace { width:100%; margin-left:0; }
    .dashboard-mobile-toggle { display:grid; }
    .dashboard-topbar { padding:.75rem 1rem; }
    .dashboard-content { padding:1rem; }
    .dashboard-page.sidebar-open .dashboard-backdrop { display:block; position:fixed; inset:0; z-index:1035; background:rgba(12,13,16,.48); backdrop-filter:blur(2px); }
    .dashboard-topbar-chip.hide-mobile { display:none; }
}

@media (max-width: 767.98px) {
    .navbar-bs { min-height:68px; }
    .navbar-bs .navbar-brand img { height:38px; }
    .hero {
        padding:3.3rem 0 4rem;
        background-position: 64% center;
        background-image:
          linear-gradient(90deg, rgba(18,17,20,.91) 0%, rgba(18,18,21,.78) 58%, rgba(10,29,43,.78) 100%),
          linear-gradient(135deg, rgba(232,105,34,.20) 0%, rgba(14,118,189,.14) 100%),
          url("../img/hero-location-pajero.jpg");
    }
    .hero-title { font-size:2.35rem; }
    .hero-copy { font-size:.95rem; }
    .booking-search-card { border-radius:20px; }
    .home-strip-card { padding:.8rem 1rem; }
    .home-strip-item { padding:.35rem 0; }
    .section-space { padding:3rem 0; }
    .card-bien .card-img-top,
    .card-bien img { height:210px; }
    .auth-page { padding:1.4rem 0 3rem; }
    .auth-shell { border-radius:20px; }
    .auth-brand-panel { min-height:auto; padding:1.8rem; }
    .auth-brand-logo { margin-bottom:1.8rem; }
    .auth-brand-title { font-size:1.7rem; }
    .auth-form-panel { padding:1.7rem; }
    .page-heading { align-items:flex-start; flex-direction:column; }
    .dashboard-topbar-right .btn span { display:none; }
    .dashboard-content { padding:.85rem; }
    .kpi-card { min-height:118px; }
    .table > :not(caption) > * > * { padding:.75rem .8rem; }
}

@media (max-width: 575.98px) {
    .hero-actions .btn { width:100%; }
    .hero-stat-row { display:grid; gap:.6rem; }
    .rental-type-picker { display:grid; grid-template-columns:1fr 1fr; }
    .rental-type-picker .form-check-label { min-width:0; }
    .dashboard-context-label { display:none; }
}

/* --------------------------------------------------------------------------
   Mon séjour / panier groupé
   -------------------------------------------------------------------------- */
.cart-count-badge {
    display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px;
    margin-left:3px; border-radius:999px; background:var(--brand-orange); color:#fff;
    font-size:.66rem; font-weight:850; line-height:1;
}
.stay-page { background:linear-gradient(180deg,#F7F8FA 0%,#FFFFFF 70%); min-height:70vh; }
.stay-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; }
.stay-steps { align-items:center; gap:.55rem; color:#9699A2; font-size:.76rem; font-weight:700; }
.stay-steps span { display:flex; align-items:center; gap:.45rem; }
.stay-steps span b { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:#ECEEF2; color:#6D7079; }
.stay-steps span.active { color:var(--brand-orange-deep); }
.stay-steps span.active b { color:#fff; background:var(--brand-orange); }
.stay-item-card { display:grid; grid-template-columns:180px 1fr; overflow:hidden; border:1px solid var(--border-soft); border-radius:20px; background:#fff; box-shadow:var(--shadow-xs); }
.stay-item-unavailable { border-color:#F0B9BF; background:#FFF9FA; }
.stay-item-media { min-height:190px; background:#F1F2F4; }
.stay-item-media img { width:100%; height:100%; min-height:190px; object-fit:cover; }
.stay-item-placeholder { height:100%; min-height:190px; display:grid; place-items:center; color:#A1A4AC; font-size:2.7rem; }
.stay-item-body { padding:1.2rem 1.25rem; }
.stay-item-meta { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; color:#737680; font-size:.78rem; }
.stay-item-meta span { display:flex; align-items:center; gap:.35rem; }
.stay-summary { border:1px solid var(--border-soft); border-radius:22px; box-shadow:var(--shadow-sm); overflow:hidden; }
.stay-summary .card-body { padding:1.35rem; }
.stay-trust { display:grid; gap:.7rem; }
.stay-trust > div { display:flex; gap:.65rem; align-items:flex-start; color:#686B74; font-size:.76rem; }
.stay-trust i { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:9px; background:var(--brand-orange-soft); color:var(--brand-orange-deep); }
.stay-empty { max-width:700px; margin:0 auto; }
.stay-empty p,.stay-success p { max-width:620px; }
.stay-empty-icon,.stay-success-icon { width:74px; height:74px; display:grid; place-items:center; margin:0 auto; border-radius:22px; font-size:2rem; background:var(--brand-orange-soft); color:var(--brand-orange-deep); }
.stay-success-icon { border-radius:50%; background:#EAF7F0; color:#197149; }
.stay-checkout-card { border-radius:22px!important; }
.stay-payment-option { cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.stay-payment-option:has(input:checked) { border-color:#F0A678!important; background:#FFF8F3!important; box-shadow:0 0 0 3px rgba(232,105,34,.08); }
.stay-mini-line { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:.9rem 0; border-bottom:1px solid var(--border-soft); font-size:.84rem; }
.stay-mini-line:last-of-type { border-bottom:0; }
.badge-statut-partiellement_confirme { background-color:#FFF2CC; color:#7E5A00; }
.badge-statut-confirme { background-color:#E7F5ED; color:#116B3B; }
.badge-statut-annule { background-color:#FCE8EA; color:#A9212F; }

@media (max-width:767.98px) {
    .stay-hero { align-items:flex-start; flex-direction:column; }
    .stay-item-card { grid-template-columns:1fr; }
    .stay-item-media,.stay-item-media img,.stay-item-placeholder { min-height:210px; height:210px; }
}

/* Sprint 4.2 — panier compact + continuité des critères de voyage */
.stay-item-media {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    overflow: hidden;
    align-self: start;
}
.stay-item-media img {
    display: block;
    width: 100%;
    height: 190px;
    min-height: 0;
    max-height: 190px;
    object-fit: cover;
    object-position: center;
}
.stay-item-placeholder {
    height: 190px;
    min-height: 190px;
}
.stay-context-hint,
.search-context-banner {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    border: 1px solid #F2D0BA;
    background: #FFF8F3;
    border-radius: 14px;
    padding: .85rem 1rem;
    color: #5F5149;
}
.stay-context-hint > i,
.search-context-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-deep);
}
.stay-context-hint span,
.search-context-banner .small {
    display: block;
    color: #7B716B;
    margin-top: .12rem;
}

@media (max-width: 767.98px) {
    .stay-item-media,
    .stay-item-media img,
    .stay-item-placeholder {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
}

/* ========================================================================== 
   BS LOCATION — Dashboard experience v3
   Vue d'ensemble + statistiques + tableau croisé
   ========================================================================== */
.dashboard-page,
.dashboard-workspace,
.dashboard-content {
    background: #F4F6F9;
}
.dashboard-content {
    min-height: calc(100vh - 76px);
    padding: 1.75rem 1.85rem 2.5rem;
}
.dashboard-sidebar {
    background:
      radial-gradient(circle at 12% 3%, rgba(232,105,34,.22), transparent 24%),
      linear-gradient(180deg,#1B1B20 0%,#111217 62%,#0D0E12 100%);
}
.dash-nav-section-title { margin-top:.2rem; }
.dash-nav-link.active {
    background: linear-gradient(135deg,#F0782C 0%,#D95C18 100%);
    box-shadow: 0 10px 26px rgba(232,105,34,.24);
}

.dashboard-view-tabs {
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.3rem;
    border:1px solid #E3E6EB;
    border-radius:14px;
    background:#fff;
    box-shadow:0 7px 22px rgba(15,23,42,.04);
}
.dashboard-view-tab {
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    min-height:38px;
    padding:.5rem .78rem;
    border-radius:10px;
    color:#646873;
    font-size:.78rem;
    font-weight:750;
    text-decoration:none;
    transition:.16s ease;
}
.dashboard-view-tab:hover { color:#22252B; background:#F5F6F8; }
.dashboard-view-tab.active {
    color:#fff;
    background:#202127;
    box-shadow:0 7px 16px rgba(21,22,27,.14);
}

.executive-hero {
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:1.3rem;
    min-height:210px;
    padding:1.7rem 1.8rem;
    margin-bottom:1.25rem;
    border-radius:26px;
    color:#fff;
    background:
      radial-gradient(circle at 78% 10%, rgba(232,105,34,.34), transparent 28%),
      radial-gradient(circle at 0% 100%, rgba(14,118,189,.18), transparent 30%),
      linear-gradient(135deg,#1C1D23 0%,#27242A 56%,#17191F 100%);
    box-shadow:0 20px 55px rgba(18,20,27,.16);
}
.executive-hero::after {
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    right:-130px;
    bottom:-180px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:50%;
    box-shadow:0 0 0 40px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.018);
}
.executive-hero > * { position:relative; z-index:2; }
.executive-eyebrow {
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    margin-bottom:.7rem;
    color:#FFB17E;
    font-size:.7rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.11em;
}
.executive-hero h1 {
    margin:0;
    max-width:760px;
    color:#fff;
    font-size:clamp(1.8rem,3vw,2.7rem);
    letter-spacing:-.045em;
}
.executive-hero p {
    max-width:760px;
    margin:.65rem 0 0;
    color:rgba(255,255,255,.68);
    font-size:.92rem;
    line-height:1.65;
}
.executive-actions { display:flex; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; }
.executive-actions .btn-light {
    color:#24252A;
    border:0;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.executive-actions .btn-outline-light { border-color:rgba(255,255,255,.28); color:#fff; }
.executive-actions .btn-outline-light:hover { background:#fff; color:#22242A; }

.dashboard-kpi-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1rem;
    margin-bottom:1.15rem;
}
.dashboard-kpi {
    position:relative;
    overflow:hidden;
    min-height:150px;
    padding:1.2rem 1.25rem;
    border:1px solid #E5E8ED;
    border-radius:21px;
    background:#fff;
    box-shadow:0 12px 32px rgba(15,23,42,.045);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-kpi-link {
    display:flex;
    flex-direction:column;
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}
.dashboard-kpi-link:focus-visible {
    outline:3px solid color-mix(in srgb, var(--kpi-accent,#E86922) 38%, transparent);
    outline-offset:3px;
}
.dashboard-kpi:hover { transform:translateY(-3px); border-color:#D9DDE4; box-shadow:0 18px 38px rgba(15,23,42,.075); }
.dashboard-kpi::before {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:3px;
    background:var(--kpi-accent,#E86922);
}
.dashboard-kpi::after {
    content:"";
    position:absolute;
    width:120px;
    height:120px;
    right:-58px;
    bottom:-66px;
    border-radius:50%;
    background:color-mix(in srgb, var(--kpi-accent,#E86922) 8%, transparent);
}
.dashboard-kpi-top { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.dashboard-kpi-icon {
    flex:0 0 auto;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:14px;
    color:var(--kpi-accent,#E86922);
    background:color-mix(in srgb, var(--kpi-accent,#E86922) 10%, white);
    font-size:1.1rem;
}
.dashboard-kpi-value {
    color:#212329;
    font-family:var(--brand-font-heading);
    font-size:1.95rem;
    line-height:1;
    font-weight:820;
    letter-spacing:-.04em;
    font-variant-numeric:tabular-nums;
}
.dashboard-kpi-value.money { font-size:1.55rem; }
.dashboard-kpi-label { margin-top:.45rem; color:#777B86; font-size:.78rem; font-weight:700; }
.dashboard-kpi-note { margin-top:.8rem; color:#A0A4AD; font-size:.69rem; }
.dashboard-kpi-detail {
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:.4rem;
    width:max-content;
    margin-top:auto;
    padding-top:.8rem;
    color:var(--kpi-accent,#E86922);
    font-size:.72rem;
    font-weight:800;
}
.dashboard-kpi-detail i { transition:transform .18s ease; }
.dashboard-kpi-link:hover .dashboard-kpi-detail i { transform:translateX(4px); }
.dashboard-kpi.orange { --kpi-accent:#E86922; }
.dashboard-kpi.blue { --kpi-accent:#0E76BD; }
.dashboard-kpi.green { --kpi-accent:#198754; }
.dashboard-kpi.purple { --kpi-accent:#7C4DBD; }
.dashboard-kpi.amber { --kpi-accent:#D99500; }
.dashboard-kpi.red { --kpi-accent:#C83245; }
.dashboard-kpi.navy { --kpi-accent:#252831; }
.dashboard-kpi.teal { --kpi-accent:#118A8A; }

.dashboard-section-grid {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:1rem;
}
.premium-panel {
    overflow:hidden;
    border:1px solid #E5E8ED;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 32px rgba(15,23,42,.045);
}
.premium-panel-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    padding:1.05rem 1.2rem;
    border-bottom:1px solid #ECEEF2;
}
.premium-panel-kicker { color:#A34A16; font-size:.66rem; font-weight:850; text-transform:uppercase; letter-spacing:.09em; }
.premium-panel-title { margin:.15rem 0 0; font-size:1rem; }
.premium-panel-subtitle { margin:.2rem 0 0; color:#8A8E98; font-size:.72rem; }
.premium-panel .table { --bs-table-bg:transparent; font-size:.78rem; }
.premium-panel .table thead th { padding:.8rem 1rem; color:#8A8E98; background:#FAFBFC; font-size:.66rem; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid #ECEEF2; }
.premium-panel .table tbody td { padding:.9rem 1rem; border-color:#F0F1F3; }
.premium-panel .table tbody tr:hover { background:#FFF9F5; }
.premium-empty { display:grid; place-items:center; min-height:220px; padding:2rem; text-align:center; color:#8B8F99; }
.premium-empty-icon { width:52px; height:52px; display:grid; place-items:center; margin-bottom:.75rem; border-radius:16px; background:#F2F4F7; color:#737883; font-size:1.2rem; }

.stats-hero {
    position:relative;
    overflow:hidden;
    padding:1.55rem 1.6rem;
    margin-bottom:1rem;
    border-radius:25px;
    background:
      radial-gradient(circle at 91% 0%, rgba(232,105,34,.21), transparent 30%),
      linear-gradient(135deg,#FFFFFF 0%,#FFF9F5 100%);
    border:1px solid #F0E4DB;
    box-shadow:0 14px 38px rgba(15,23,42,.05);
}
.stats-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.stats-hero h1 { margin:.15rem 0 0; font-size:clamp(1.65rem,2.4vw,2.2rem); }
.stats-filter-bar {
    display:flex;
    align-items:end;
    flex-wrap:wrap;
    gap:.65rem;
    margin-top:1.2rem;
    padding:.8rem;
    border:1px solid #E8E4E1;
    border-radius:16px;
    background:rgba(255,255,255,.83);
}
.stats-filter-bar .form-select { min-width:128px; border-radius:11px; }
.stats-period-badge {
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    padding:.48rem .7rem;
    border-radius:999px;
    color:#91400F;
    background:#FFF0E5;
    font-size:.72rem;
    font-weight:800;
}
.stats-chart-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr); gap:1rem; }
.chart-card {
    border:1px solid #E5E8ED;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 32px rgba(15,23,42,.045);
    overflow:hidden;
}
.chart-card-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; padding:1rem 1.15rem; border-bottom:1px solid #ECEEF2; }
.chart-card-title { margin:0; font-size:.96rem; }
.chart-card-note { color:#8B8F99; font-size:.7rem; margin-top:.2rem; }
.chart-card-body { padding:1.1rem 1.15rem 1.2rem; min-height:310px; }
.stats-footnote { padding:.85rem 1rem; margin-top:1rem; border-radius:14px; color:#777B86; background:#EEF1F5; font-size:.72rem; line-height:1.55; }

@media (max-width: 1199.98px) {
    .dashboard-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-section-grid, .stats-chart-grid { grid-template-columns:1fr; }
}
@media (max-width: 767.98px) {
    .dashboard-content { padding:1rem; }
    .executive-hero { min-height:auto; padding:1.35rem; align-items:flex-start; }
    .executive-actions { justify-content:flex-start; }
    .dashboard-kpi-grid { grid-template-columns:1fr; }
    .dashboard-view-tabs { width:100%; overflow-x:auto; }
    .dashboard-view-tab { white-space:nowrap; }
    .stats-hero { padding:1.2rem; }
    .stats-filter-bar { align-items:stretch; }
    .stats-filter-bar > * { flex:1 1 120px; }
}


/* ========================================================================== 
   BS LOCATION — Premium visual uplift v4.7.1
   Portail public + tableaux de bord plus séduisants
   ========================================================================== */
.portal-home {
    position: relative;
    background:
      radial-gradient(circle at 10% 0%, rgba(232,105,34,.07), transparent 22%),
      radial-gradient(circle at 100% 18%, rgba(14,118,189,.07), transparent 24%),
      linear-gradient(180deg, #F6F8FB 0%, #FFFFFF 36%, #F8F7F5 100%);
}
.portal-home-section {
    position: relative;
    z-index: 1;
}
.hero {
    padding: 5.8rem 0 6.1rem;
    background-position: center 52%;
    box-shadow: inset 0 -70px 120px rgba(8, 12, 18, .18);
}
.hero::before { width: 520px; height: 520px; right: -220px; bottom: -260px; border-color: rgba(255,255,255,.13); }
.hero::after { width: 330px; height: 330px; right: 8%; top: -110px; bottom: auto; border-color: rgba(232,105,34,.23); }
.hero-kicker {
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    backdrop-filter: blur(12px);
}
.hero-title { max-width: 760px; font-size: clamp(2.55rem, 5.5vw, 5rem); }
.hero-copy { max-width: 650px; font-size: 1.05rem; color: rgba(255,255,255,.78); }
.hero-actions .btn {
    min-height: 52px;
    padding-inline: 1.15rem;
    border-radius: 14px;
}
.hero-actions .btn-primary {
    box-shadow: 0 18px 36px rgba(232,105,34,.28);
}
.hero-stat {
    padding: .15rem 0;
    font-size: .84rem;
}
.booking-search-card {
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 30px 70px rgba(10, 14, 22, .22);
}
.booking-search-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, var(--brand-orange), #F39B63, var(--brand-blue));
}
.booking-search-head { margin-bottom: 1.15rem; }
.booking-search-title { font-size: 1.16rem; }
.booking-search-pill { padding: .44rem .72rem; box-shadow: inset 0 0 0 1px rgba(232,105,34,.06); }
.booking-search-card .form-control,
.booking-search-card .form-select {
    min-height: 50px;
    border-radius: 14px;
    background: #FCFCFD;
}
.home-strip { margin-top: -48px; }
.home-strip-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.15rem 1.3rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(15,23,42,.11);
}
.home-strip-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: rgba(232,105,34,.06);
}
.home-strip-item {
    position: relative;
    z-index: 1;
    padding: .55rem .15rem;
}
.home-strip-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(232,105,34,.08);
}
.section-space { padding: 5rem 0; }
.showcase-shell {
    position: relative;
    overflow: hidden;
    padding: 1.8rem;
    border-radius: 30px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(231,233,238,.95);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}
.showcase-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(232,105,34,.3), rgba(14,118,189,.1), transparent 85%);
}
.showcase-shell-soft {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,244,.86));
}
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    min-height: 40px;
    padding: .52rem .82rem;
    border-radius: 999px;
    background: #fff4ed;
    border: 1px solid #f6d3bd;
    color: #9b4613;
    font-size: .76rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(232,105,34,.08);
}
.category-card-premium {
    min-height: 130px;
    padding: 1.35rem;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15,23,42,.04);
}
.category-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15,23,42,.08);
}
.category-card-premium .category-title { font-size: 1.18rem; }
.category-card-premium .category-text { font-size: .84rem; line-height: 1.72; }
.category-arrow {
    font-size: 1.32rem;
    color: #8D929C;
    transition: transform .18s ease, color .18s ease;
}
.category-card-premium:hover .category-arrow {
    transform: translate(2px,-2px);
    color: var(--brand-orange-deep);
}
.cta-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 1.9rem;
    border-radius: 28px;
    color: #fff;
    background:
      radial-gradient(circle at 92% 14%, rgba(232,105,34,.34), transparent 28%),
      radial-gradient(circle at 0% 100%, rgba(14,118,189,.18), transparent 32%),
      linear-gradient(135deg, #181A20 0%, #23252C 48%, #151821 100%);
    box-shadow: 0 26px 60px rgba(15, 20, 30, .17);
}
.cta-banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -140px;
    bottom: -150px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 44px rgba(255,255,255,.018);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner-title {
    margin: 0 0 .55rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    color: #fff;
}
.cta-banner-copy {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.74);
    line-height: 1.75;
}
.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}
.cta-banner-actions .btn {
    min-height: 48px;
    padding-inline: 1rem;
    border-radius: 14px;
}
.cta-banner-actions .btn-light {
    box-shadow: 0 16px 32px rgba(0,0,0,.16);
}
.card-bien {
    border-radius: 22px;
    border-color: #EBEDF2;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .045);
}
.card-bien .card-body { padding: 1.2rem 1.2rem 1.25rem; }
.card-bien .card-title { font-size: 1.07rem; }
.card-media-badge {
    top: 1rem;
    left: 1rem;
    background: rgba(19, 20, 26, .76);
    border: 1px solid rgba(255,255,255,.09);
    padding: .42rem .68rem;
}
.empty-state {
    border-radius: 22px;
    background: #fff;
    border: 1px dashed #D7DBE3;
    box-shadow: 0 12px 30px rgba(15,23,42,.03);
}
.site-footer {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background:
      radial-gradient(circle at 15% 0%, rgba(232,105,34,.12), transparent 18%),
      linear-gradient(180deg, #111216 0%, #17181D 100%) !important;
}
.site-footer .footer-copy { max-width: 660px; }

/* Dashboard premium finishing */
.dashboard-content {
    background:
      radial-gradient(circle at 0 0, rgba(232,105,34,.055), transparent 18%),
      radial-gradient(circle at 100% 0, rgba(14,118,189,.05), transparent 22%),
      #F6F8FB;
}
.dashboard-topbar {
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}
.dashboard-view-tabs {
    padding: .34rem;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15,23,42,.05);
}
.dashboard-view-tab {
    min-height: 40px;
    padding: .55rem .88rem;
    font-size: .8rem;
}
.executive-hero {
    min-height: 230px;
    border-radius: 30px;
    box-shadow: 0 26px 64px rgba(18,20,27,.16);
}
.dashboard-kpi {
    min-height: 162px;
    border-radius: 24px;
}
.dashboard-kpi-value { font-size: 2.05rem; }
.dashboard-kpi-value.money { font-size: 1.62rem; }
.premium-panel,
.chart-card,
.stats-hero {
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(15,23,42,.055);
}
.premium-panel-head,
.chart-card-head { padding: 1.08rem 1.2rem; }
.stats-footnote {
    background: linear-gradient(135deg, #EEF3F8, #F6F8FB);
    border: 1px solid #E3E8F0;
}
@media (max-width: 991.98px) {
    .showcase-shell,
    .cta-banner { padding: 1.4rem; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .hero { padding: 3.6rem 0 4.3rem; }
    .home-strip { margin-top: -28px; }
    .showcase-shell { padding: 1.2rem; border-radius: 24px; }
    .category-card-premium { min-height: 118px; }
    .cta-banner-title { font-size: 1.55rem; }
}


/* BS LOCATION v4.7.2 — clarification panier / séjours enregistrés */
.saved-stays-panel {
    max-width: 1180px; margin-left:auto; margin-right:auto; padding:1.25rem;
    border-radius:24px; background:linear-gradient(180deg,#fff,#fffaf6);
    border:1px solid #eee6df; box-shadow:0 18px 44px rgba(15,23,42,.055);
}
.saved-stays-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding-bottom:1rem; margin-bottom:1rem; border-bottom:1px solid #eeeef1; }
.saved-stays-grid { display:grid; gap:.75rem; }
.saved-stay-card { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.05rem; border:1px solid #eceef2; border-radius:16px; background:#fff; color:var(--text-main); transition:.18s ease; }
.saved-stay-card:hover { transform:translateY(-2px); border-color:#efc6ad; box-shadow:0 12px 26px rgba(15,23,42,.06); }
.saved-stay-number { color:var(--brand-orange-deep); font-size:.76rem; font-weight:850; letter-spacing:.08em; }
.saved-stay-meta { margin-top:.22rem; color:var(--text-muted); font-size:.78rem; }
.saved-stay-amount { font-size:1rem; font-weight:850; color:var(--brand-black); margin-bottom:.25rem; }
@media(max-width:575.98px){ .saved-stay-card{align-items:flex-start; flex-direction:column;} .saved-stay-card .text-end{text-align:left!important;} }


/* ========================================================================== 
   Espace client premium v4.8
   ========================================================================== */
.client-space-page {
    background: radial-gradient(circle at top left, rgba(232,105,34,.06), transparent 20%), linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
}
.client-sidebar,
.client-main-header,
.client-panel,
.client-kpi-card,
.client-highlight,
.client-empty-state {
    border-radius: 24px;
}
.client-sidebar {
    position: sticky;
    top: 96px;
    overflow: hidden;
    background: linear-gradient(180deg, #151821 0%, #1b202b 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,.16);
}
.client-sidebar-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem 1.3rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.client-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-orange), #f59a57);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 14px 30px rgba(232,105,34,.25);
}
.client-welcome { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.62); margin-bottom: .25rem; }
.client-name { margin: 0; font-size: 1.1rem; color: #fff; }
.client-type { display: inline-flex; margin-top: .45rem; padding: .28rem .7rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #f7d2be; font-size: .75rem; font-weight: 700; }
.client-contact-list { padding: 1rem 1.3rem; display: grid; gap: .7rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.client-contact-list div { display: flex; gap: .65rem; align-items: flex-start; color: rgba(255,255,255,.78); font-size: .9rem; }
.client-contact-list i { color: #f0a06a; margin-top: .12rem; }
.client-side-nav { padding: 1rem .9rem; display: grid; gap: .35rem; }
.client-side-nav a {
    display: flex; align-items: center; gap: .75rem; padding: .84rem .95rem;
    border-radius: 16px; color: rgba(255,255,255,.78); font-weight: 600; text-decoration: none; transition: all .18s ease;
}
.client-side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.client-side-nav a.active { background: linear-gradient(90deg, var(--brand-orange), #f08535); color: #fff; box-shadow: 0 12px 30px rgba(232,105,34,.22); }
.client-side-nav a i { font-size: 1rem; }
.client-side-stats { padding: 1rem 1.3rem 1.3rem; display: grid; gap: .7rem; }
.client-mini-stat { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem .95rem; border-radius: 16px; background: rgba(255,255,255,.05); }
.client-mini-stat span { color: rgba(255,255,255,.72); font-size: .83rem; }
.client-mini-stat strong { color: #fff; font-size: 1rem; }
.client-main-header { background: linear-gradient(135deg, #ffffff 0%, #fff7f1 100%); box-shadow: 0 18px 42px rgba(15,23,42,.06); }
.client-main-header-content { padding: 1.5rem 1.6rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.client-page-title { margin: .35rem 0 .45rem; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.client-page-subtitle { color: #697586; max-width: 760px; }
.client-kpi-card { background: #fff; padding: 1.35rem 1.3rem; box-shadow: 0 16px 40px rgba(15,23,42,.05); }
.client-kpi-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.client-kpi-icon.orange { background: #fff1e7; color: #b6591d; }
.client-kpi-icon.blue { background: #edf5ff; color: #206dbf; }
.client-kpi-icon.green { background: #eefaf3; color: #1f8b4d; }
.client-kpi-value { font-size: 2rem; font-weight: 800; color: #1c2434; line-height: 1; }
.client-kpi-label { color: #697586; margin-top: .45rem; }
.client-panel { background: #fff; overflow: hidden; box-shadow: 0 16px 42px rgba(15,23,42,.055); }
.client-panel-head { padding: 1rem 1.2rem; border-bottom: 1px solid #eef1f5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.client-panel-head h2 { margin: 0; font-size: 1.03rem; }
.client-panel-head a { font-size: .9rem; font-weight: 600; }
.client-panel-body { padding: 1.2rem; }
.client-list { display: grid; }
.client-list-item { padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid #f0f2f6; }
.client-list-item:first-child { border-top: 0; }
.client-empty-mini { padding: 1.2rem; color: #7b8798; }
.client-highlight { background: linear-gradient(135deg, #171a21 0%, #222631 100%); color: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.client-highlight-content { padding: 1.5rem 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.client-highlight h3 { color: #fff; margin: .4rem 0 .5rem; }
.client-highlight p { color: rgba(255,255,255,.72); max-width: 680px; }
.client-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.client-info-grid > div { padding: 1rem; border-radius: 18px; background: #f8fafc; border: 1px solid #edf1f5; }
.client-info-grid > div.full { grid-column: 1 / -1; }
.client-info-grid span { display: block; margin-bottom: .35rem; color: #7b8798; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.client-info-grid strong { color: #172033; }
.client-stay-card { overflow: hidden; box-shadow: 0 18px 46px rgba(15,23,42,.055); }
.client-subcard { padding: 1rem; border-radius: 18px; background: #f8fafc; border: 1px solid #edf1f5; }
.client-stay-footer { border-top: 1px solid #eef1f4; }
.client-empty-state { background: #fff; }
.client-empty-icon { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto; display: grid; place-items: center; background: #fff1e7; color: var(--brand-orange-deep); font-size: 2rem; }
.client-table thead th { background: #f8fafc; color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 1rem 1rem; border-bottom-width: 1px; }
.client-table tbody td { padding: 1rem; border-color: #edf1f5; }
@media (max-width: 1199.98px) {
    .client-sidebar { position: static; }
}
@media (max-width: 991.98px) {
    .client-main-header-content, .client-highlight-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .client-info-grid { grid-template-columns: 1fr; }
    .client-main-header-content { padding: 1.2rem; }
    .client-panel-body { padding: 1rem; }
    .client-list-item { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================== 
   BS LOCATION — Premium Institutional UI v5.0 — 18/08/2026
   Déclinaison HTML/CSS des keyframes institutionnelles
   ========================================================================== */
:root {
    --brand-orange: #ff7a16;
    --brand-orange-hover: #e76508;
    --brand-orange-deep: #c94f00;
    --brand-orange-soft: rgba(255,122,22,.12);
    --brand-orange-faint: rgba(255,122,22,.06);
    --brand-dark: #05080d;
    --brand-black: #0a0e14;
    --brand-ink: #111722;
    --brand-navy: #071421;
    --surface-page: #070c12;
    --surface-card: #0f1722;
    --surface-card-2: #121c28;
    --surface-elevated: #162231;
    --surface-muted: #0b121b;
    --border-soft: rgba(255,255,255,.085);
    --border-strong: rgba(255,255,255,.14);
    --text-main: #f5f7fb;
    --text-muted: #93a0b2;
    --text-soft: #667387;
    --success: #38c98b;
    --danger: #ff5f6d;
    --warning: #f2b84b;
    --purple: #8b72ff;
    --shadow-xs: 0 8px 24px rgba(0,0,0,.18);
    --shadow-sm: 0 18px 42px rgba(0,0,0,.26);
    --shadow-md: 0 26px 64px rgba(0,0,0,.34);
    --shadow-lg: 0 38px 90px rgba(0,0,0,.42);
}

body.bs-app { background: var(--surface-page); color: var(--text-main); }
.bs-app .text-muted { color: var(--text-muted) !important; }
.bs-app .text-dark { color: var(--text-main) !important; }
.bs-app .border, .bs-app .border-top, .bs-app .border-bottom, .bs-app .border-start, .bs-app .border-end { border-color: var(--border-soft) !important; }
.bs-app .bg-light { background: #0c141e !important; }
.bs-app .bg-white { background: #101923 !important; }
.bs-app .shadow-sm { box-shadow: var(--shadow-xs) !important; }

/* --- Public navigation --------------------------------------------------- */
.public-page .topbar-accent { height: 2px; background: linear-gradient(90deg,transparent 0%,var(--brand-orange) 28%,#ff9d4f 50%,var(--brand-orange) 72%,transparent 100%); }
.public-page .navbar-bs {
    min-height: 78px;
    background: rgba(5,9,14,.86);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 16px 48px rgba(0,0,0,.24);
    backdrop-filter: blur(22px) saturate(120%);
}
.public-page .navbar-bs .navbar-brand img { height: 44px; filter: brightness(0) invert(1); }
.public-page .navbar-bs .nav-link { color: #c6ced9; }
.public-page .navbar-bs .nav-link:hover,
.public-page .navbar-bs .nav-link:focus,
.public-page .navbar-bs .nav-link.active { color:#fff; background:rgba(255,122,22,.10); }
.public-page .navbar-toggler { filter: invert(1); }
.public-page .cart-count-badge { box-shadow:0 0 0 2px #080d14; }

/* --- Home / hero --------------------------------------------------------- */
.public-page .portal-home { background: linear-gradient(180deg,#05090f 0%,#09111a 48%,#070c12 100%); }
.public-page .hero {
    min-height: 650px;
    display:flex;
    align-items:center;
    padding: 6.8rem 0 7.2rem;
    background-image:
      linear-gradient(90deg,rgba(3,7,12,.97) 0%,rgba(5,10,17,.89) 38%,rgba(6,13,21,.57) 67%,rgba(3,7,12,.38) 100%),
      linear-gradient(180deg,rgba(4,8,13,.18),rgba(4,8,13,.80)),
      url('../img/hero-location-pajero.jpg?v=2');
    background-size:cover;
    background-position:center;
    box-shadow: inset 0 -120px 160px #05090f;
}
.public-page .hero::before { width:560px; height:560px; border-color:rgba(255,122,22,.20); box-shadow:0 0 0 54px rgba(255,122,22,.025),0 0 0 112px rgba(255,255,255,.018); }
.public-page .hero::after { display:none; }
.public-page .hero-kicker,
.public-page .section-kicker { color:#ffae72; letter-spacing:.12em; }
.public-page .hero-title { max-width:800px; color:#fff; font-size:clamp(2.8rem,5vw,5rem); line-height:1.02; letter-spacing:-.055em; }
.public-page .hero-title .accent { color:var(--brand-orange); text-shadow:0 0 34px rgba(255,122,22,.18); }
.public-page .hero-copy { max-width:710px; color:#b3bdca; font-size:1.06rem; line-height:1.8; }
.public-page .hero-stat { color:#c6cfda; background:rgba(11,18,27,.62); border:1px solid rgba(255,255,255,.08); border-radius:999px; padding:.52rem .82rem; backdrop-filter:blur(12px); }
.public-page .hero-stat i { color:var(--brand-orange); }
.public-page .booking-search-card {
    background:rgba(10,18,27,.88);
    border:1px solid rgba(255,255,255,.11);
    box-shadow:0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter:blur(20px);
}
.public-page .booking-search-card::before { background:linear-gradient(90deg,var(--brand-orange),transparent); }
.public-page .booking-search-title { color:#fff; }
.public-page .booking-search-pill { color:#ffb37f; background:rgba(255,122,22,.10); border-color:rgba(255,122,22,.20); }
.public-page .booking-search-card .form-control,
.public-page .booking-search-card .form-select { background:#0b131d; border-color:rgba(255,255,255,.11); color:#eef2f7; }
.public-page .booking-search-card .form-control:focus,
.public-page .booking-search-card .form-select:focus { background:#0d1722; border-color:rgba(255,122,22,.65); box-shadow:0 0 0 .22rem rgba(255,122,22,.10); }
.public-page .booking-search-card .form-label { color:#9da9b9; }
.public-page .booking-search-card a { color:#ff9a50; }

/* Accueil : conserver le contenu, utiliser un visuel sans texte et améliorer le rendu. */
.public-page .portal-home {
    background: linear-gradient(180deg,#05090f 0%,#09111a 48%,#070c12 100%);
}
.public-page .portal-home .hero {
    min-height: 650px;
    padding: 6rem 0 7rem;
    color:#fff;
    background-image:
      linear-gradient(rgba(7,28,48,.76),rgba(7,28,48,.76)),
      url('../img/hero-location-pajero.jpg?v=4');
    background-attachment:fixed;
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    box-shadow:none;
}
.public-page .portal-home .hero::before {
    border-color:rgba(255,122,22,.22);
    box-shadow:0 0 0 54px rgba(255,122,22,.025),0 0 0 112px rgba(255,255,255,.015);
}
.public-page .portal-home .hero-title {
    max-width:760px;
    margin-top:1rem;
    padding:0;
    color:#fff;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    text-shadow:0 3px 16px rgba(0,0,0,.34);
}
.public-page .portal-home .hero-title .accent {
    color:#ff7a22;
    text-shadow:0 3px 14px rgba(0,0,0,.24);
}
.public-page .portal-home .hero-copy {
    max-width:680px;
    padding:0;
    color:#eef4f9;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    text-shadow:none;
    font-weight:600;
}
.public-page .portal-home .hero-kicker {
    color:#fff; background:rgba(11,39,67,.90); border-color:rgba(255,255,255,.72); box-shadow:0 8px 24px rgba(11,39,67,.20);
}
.public-page .portal-home .hero-actions .btn-outline-light {
    color:#102f4b; border-color:#b7c5d2; background:rgba(255,255,255,.96); box-shadow:0 8px 20px rgba(13,38,61,.10);
}
.public-page .portal-home .hero-stat {
    color:#173652; background:rgba(255,255,255,.94); border-color:rgba(255,255,255,.98); box-shadow:0 8px 22px rgba(13,38,61,.12); font-weight:700;
}
.public-page .portal-home .booking-search-card {
    background:rgba(7,28,48,.46) !important;
    border-color:rgba(255,255,255,.22) !important;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
    color:#fff !important;
    backdrop-filter:none;
}
.public-page .portal-home .booking-search-title { color:#fff !important; }
.public-page .portal-home .booking-search-card .section-kicker { color:#ff9b59 !important; }
.public-page .portal-home .booking-search-pill { color:#fff !important; background:rgba(255,122,34,.22) !important; border-color:rgba(255,162,99,.42) !important; }
.public-page .portal-home .booking-search-card label,
.public-page .portal-home .booking-search-card .form-label { color:#f3f7fb !important; font-weight:700; }
.public-page .portal-home .booking-search-card .form-control,
.public-page .portal-home .booking-search-card .form-select {
    background:#f7f9fb !important; color:#18283a !important; border-color:#cfd9e3 !important;
}
.public-page .portal-home .booking-search-card .form-control:focus,
.public-page .portal-home .booking-search-card .form-select:focus {
    background:#fff !important; color:#18283a !important; border-color:#e86922 !important;
}
.public-page .portal-home .booking-search-card .text-muted { color:#dbe5ee !important; }
.public-page .portal-home .booking-search-card a { color:#ff9b59 !important; }
.public-page .portal-home .home-strip-card,
.public-page .portal-home .showcase-shell,
.public-page .portal-home .showcase-shell-soft {
    background:#fff; border-color:#e1e8ef; box-shadow:0 20px 54px rgba(23,50,79,.10);
}
.public-page .portal-home .home-strip-title,
.public-page .portal-home .category-title,
.public-page .portal-home .section-title { color:#17283b; }
.public-page .portal-home .home-strip-text,
.public-page .portal-home .category-text,
.public-page .portal-home .section-subtitle { color:#657589; }
.public-page .portal-home .category-card-premium { background:#f8fafc; border-color:#e1e8ef; }
.public-page .portal-home .category-card-premium:hover { background:#fff; border-color:#f0b38d; box-shadow:0 20px 46px rgba(23,50,79,.12); }

@media (max-width: 991.98px) {
    .public-page .portal-home .hero {
        background-image:linear-gradient(rgba(7,28,48,.78),rgba(7,28,48,.78)),url('../img/hero-location-pajero.jpg?v=4');
        background-attachment:scroll;
        min-height:auto; padding:4rem 0 5.5rem;
    }
}

/* Contraste garanti de l'accueil lorsque le thème clair est actif. */
html[data-ui-theme="light"] .public-page .portal-home .hero {
    color:#fff !important;
    background-image:linear-gradient(rgba(7,28,48,.76),rgba(7,28,48,.76)),url('../img/hero-location-pajero.jpg?v=4') !important;
    box-shadow:none;
}
html[data-ui-theme="light"] .public-page .portal-home .hero-title {
    color:#fff !important;
    background:transparent !important;
    border:0 !important;
    text-shadow:0 3px 14px rgba(0,0,0,.28);
}
html[data-ui-theme="light"] .public-page .portal-home .hero-title .accent {
    color:#ff7a22 !important;
    text-shadow:0 3px 14px rgba(0,0,0,.24);
}
html[data-ui-theme="light"] .public-page .portal-home .hero-copy {
    color:#eef4f9 !important;
}
html[data-ui-theme="light"] .public-page .portal-home .hero-kicker {
    color:#fff !important;
    background:rgba(11,39,67,.90) !important;
    border-color:rgba(255,255,255,.72) !important;
}
html[data-ui-theme="light"] .public-page .portal-home .hero-stat {
    color:#173652 !important;
    background:rgba(255,255,255,.94) !important;
    border-color:rgba(255,255,255,.98) !important;
}
html[data-ui-theme="light"] .public-page .portal-home .hero-actions .btn-outline-light {
    color:#102f4b !important;
    background:rgba(255,255,255,.96) !important;
    border-color:#b7c5d2 !important;
}
html[data-ui-theme="light"] .public-page .portal-home .booking-search-card,
html[data-ui-theme="light"] .public-page .portal-home .booking-search-card .booking-search-title {
    color:#fff !important;
}
html[data-ui-theme="light"] .public-page .portal-home .booking-search-card .form-label,
html[data-ui-theme="light"] .public-page .portal-home .booking-search-card .text-muted {
    color:#f3f7fb !important;
}

@media (max-width: 991.98px) {
    html[data-ui-theme="light"] .public-page .portal-home .hero {
        background-image:linear-gradient(rgba(7,28,48,.78),rgba(7,28,48,.78)),url('../img/hero-location-pajero.jpg?v=4') !important;
        background-attachment:scroll;
    }
}

.public-page .home-strip { position:relative; z-index:4; margin-top:-46px; }
.public-page .home-strip-card,
.public-page .showcase-shell,
.public-page .showcase-shell-soft {
    background:linear-gradient(145deg,rgba(15,24,35,.97),rgba(10,16,24,.98));
    border:1px solid rgba(255,255,255,.075);
    box-shadow:0 24px 58px rgba(0,0,0,.30);
}
.public-page .home-strip-card::after,
.public-page .showcase-shell::before { border-color:rgba(255,122,22,.16); }
.public-page .home-strip-title,
.public-page .category-title,
.public-page .section-title { color:#f6f8fb; }
.public-page .home-strip-text,
.public-page .category-text,
.public-page .section-subtitle { color:#8e9bad; }
.public-page .home-strip-icon,
.public-page .category-icon.orange { background:rgba(255,122,22,.11); color:#ff8a33; }
.public-page .category-icon.blue { background:rgba(74,146,255,.11); color:#7eb1ff; }
.public-page .category-card-premium { background:#0c141e; border-color:rgba(255,255,255,.07); }
.public-page .category-card-premium:hover { background:#111b27; border-color:rgba(255,122,22,.30); box-shadow:0 20px 46px rgba(0,0,0,.30); }
.public-page .category-arrow { color:#ff8940; }
.public-page .section-pill { background:rgba(255,122,22,.10); border-color:rgba(255,122,22,.18); color:#ffad72; }
.public-page .cta-banner { background: radial-gradient(circle at 88% 14%,rgba(255,122,22,.23),transparent 26%), linear-gradient(135deg,#111a26,#07111b 65%,#0f151e); border:1px solid rgba(255,255,255,.09); box-shadow:0 30px 76px rgba(0,0,0,.38); }
.public-page .cta-banner-copy { color:#a9b4c2; }

/* --- Public cards / search / details ------------------------------------ */
.public-page .section-space { background:transparent; }
.public-page .search-panel,
.public-page .card-bien,
.public-page .property-page .card,
.public-page .stay-summary,
.public-page .stay-item-card,
.public-page .saved-stays-panel,
.public-page .saved-stay-card,
.public-page .empty-state {
    background:linear-gradient(145deg,#101923,#0c141e);
    border-color:rgba(255,255,255,.075);
    color:#eef2f7;
    box-shadow:0 18px 44px rgba(0,0,0,.23);
}
.public-page .search-panel { padding:1.25rem; border-radius:22px; }
.public-page .search-panel .form-control,
.public-page .search-panel .form-select,
.public-page .property-page .form-control,
.public-page .property-page .form-select,
.public-page .property-page textarea,
.public-page .stay-page .form-control,
.public-page .stay-page .form-select { background:#09121b; color:#eef2f7; border-color:rgba(255,255,255,.10); }
.public-page .search-panel label,
.public-page .property-page .form-label,
.public-page .stay-page .form-label { color:#aeb8c5; }
.public-page .search-result-count,
.public-page .search-context-banner,
.public-page .stay-context-hint { background:rgba(255,122,22,.075); border-color:rgba(255,122,22,.18); color:#d8dee6; }
.public-page .card-bien { overflow:hidden; border-radius:22px; }
.public-page .card-bien:hover { transform:translateY(-7px); border-color:rgba(255,122,22,.34); box-shadow:0 28px 60px rgba(0,0,0,.34); }
.public-page .card-bien .card-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(3,8,13,.72)); pointer-events:none; }
.public-page .card-bien .card-media-badge { z-index:2; color:#effcf6; background:rgba(7,18,15,.78); border:1px solid rgba(84,220,160,.28); backdrop-filter:blur(10px); }
.public-page .card-bien .card-title { color:#fff; }
.public-page .card-meta { color:#8e9bac; }
.public-page .card-meta i { color:#ff9043; }
.public-page .card-price { color:#ff8c3a; }
.public-page .btn-outline-primary,
.public-page .btn-outline-secondary,
.public-page .btn-outline-dark { color:#d8e0e9; border-color:rgba(255,255,255,.17); background:transparent; }
.public-page .btn-outline-primary:hover,
.public-page .btn-outline-secondary:hover,
.public-page .btn-outline-dark:hover { color:#fff; background:rgba(255,122,22,.12); border-color:rgba(255,122,22,.50); }
.public-page .property-page { padding:3.3rem 0 5rem; background:radial-gradient(circle at 100% 0,rgba(255,122,22,.08),transparent 24%),linear-gradient(180deg,#070c12,#09121b); }
.public-page .property-gallery-main,
.public-page .property-placeholder { border-radius:26px; border:1px solid rgba(255,255,255,.08); box-shadow:0 26px 64px rgba(0,0,0,.34); }
.public-page .property-title { color:#fff; font-size:clamp(2rem,4vw,3.5rem); }
.public-page .property-meta { color:#8f9bac; }
.public-page .property-chip { color:#c9d2dc; background:#0e1822; border-color:rgba(255,255,255,.09); }
.public-page .property-chip i { color:#ff8f40; }
.public-page .booking-side-card { border:1px solid rgba(255,122,22,.16) !important; box-shadow:0 30px 70px rgba(0,0,0,.40) !important; }
.public-page .booking-side-card .card-body { padding:1.5rem; }
.public-page .payment-options label { background:#0a131c !important; border-color:rgba(255,255,255,.09) !important; color:#dce3eb; transition:.18s ease; }
.public-page .payment-options label:has(input:checked) { border-color:rgba(255,122,22,.62) !important; background:rgba(255,122,22,.09) !important; box-shadow:0 0 0 3px rgba(255,122,22,.08); }
.public-page .table { color:#dce3ea; }
.public-page .table thead th { background:#0a121a; color:#7f8da0; border-color:rgba(255,255,255,.07); }
.public-page .table tbody td { border-color:rgba(255,255,255,.06); }
.public-page .table-hover > tbody > tr:hover > * { --bs-table-bg-state:rgba(255,122,22,.055); color:#fff; }

/* --- Panier / séjour ----------------------------------------------------- */
.public-page .stay-page { min-height:72vh; background:radial-gradient(circle at 12% 0,rgba(255,122,22,.075),transparent 22%),linear-gradient(180deg,#070c12,#09121b); }
.public-page .stay-item-card { border-radius:22px; }
.public-page .stay-item-body h3 { color:#fff; }
.public-page .stay-item-meta { color:#8f9bad; }
.public-page .stay-summary { background:linear-gradient(145deg,#111c28,#0a121b); border-color:rgba(255,122,22,.15); }
.public-page .stay-trust > div { color:#96a3b4; }
.public-page .stay-trust i { background:rgba(255,122,22,.10); color:#ff8d3c; }
.public-page .saved-stays-panel { background:linear-gradient(145deg,#0f1822,#0a121b); }
.public-page .saved-stay-card:hover { border-color:rgba(255,122,22,.35); }

/* --- Auth --------------------------------------------------------------- */
.public-page .auth-page { background:radial-gradient(circle at 15% 0,rgba(255,122,22,.10),transparent 22%),linear-gradient(180deg,#070c12,#09121b); }
.public-page .auth-shell { background:#0c141e; border:1px solid rgba(255,255,255,.08); box-shadow:0 34px 88px rgba(0,0,0,.43); }
.public-page .auth-brand-panel { background:radial-gradient(circle at 30% 0,rgba(255,122,22,.20),transparent 28%),linear-gradient(155deg,#101b28,#070d14); }
.public-page .auth-form-panel { background:#0e1721; }
.public-page .auth-title { color:#fff; }
.public-page .auth-form-panel .form-control,
.public-page .auth-form-panel .form-select { background:#09121b; color:#edf2f7; border-color:rgba(255,255,255,.10); }

/* --- Footer ------------------------------------------------------------- */
.public-page .site-footer { border-top:1px solid rgba(255,255,255,.06); background:radial-gradient(circle at 50% 0,rgba(255,122,22,.10),transparent 18%),#05090e !important; }

/* ========================================================================
   BACK-OFFICE — dark executive command center
   ======================================================================== */
.dashboard-page,
.dashboard-page .dashboard-workspace,
.dashboard-page .dashboard-content { background:#060b11 !important; color:#eaf0f6; }
.dashboard-page .dashboard-content { background:radial-gradient(circle at 18% 0,rgba(255,122,22,.055),transparent 22%),radial-gradient(circle at 100% 0,rgba(31,96,154,.08),transparent 24%),#060b11 !important; }
.dashboard-page .dashboard-sidebar { width:284px; background:radial-gradient(circle at 8% 0,rgba(255,122,22,.17),transparent 20%),linear-gradient(180deg,#0b1119 0%,#060a0f 100%); border-right:1px solid rgba(255,255,255,.07); box-shadow:18px 0 50px rgba(0,0,0,.20); }
.dashboard-page .dashboard-workspace { width:calc(100% - 284px); margin-left:284px; }
.dashboard-page .dashboard-sidebar-brand { height:88px; border-bottom-color:rgba(255,255,255,.07); }
.dashboard-page .dashboard-sidebar-brand img { height:41px; opacity:.98; }
.dashboard-page .dashboard-brand-name { color:#fff; }
.dashboard-page .dashboard-brand-label { color:#677588; }
.dashboard-page .dash-nav-section-title { color:#59677b; font-size:.62rem; letter-spacing:.14em; margin-top:.72rem; }
.dashboard-page .dash-nav-link { color:#8f9cac; border:1px solid transparent; }
.dashboard-page .dash-nav-link i { color:#667588; }
.dashboard-page .dash-nav-link:hover { color:#fff; background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.04); }
.dashboard-page .dash-nav-link:hover i { color:#ff9548; }
.dashboard-page .dash-nav-link.active { color:#fff; background:linear-gradient(90deg,rgba(255,122,22,.20),rgba(255,122,22,.055)); border-color:rgba(255,122,22,.18); box-shadow:inset 3px 0 0 var(--brand-orange),0 10px 28px rgba(0,0,0,.18); }
.dashboard-page .dash-nav-link.active i { color:#ff8e3d; }
.dashboard-page .dashboard-sidebar-footer { background:rgba(255,255,255,.015); border-top-color:rgba(255,255,255,.07); }
.dashboard-page .dashboard-user-card { background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.055); }
.dashboard-page .dashboard-user-avatar { background:rgba(255,122,22,.14); color:#ff9b55; }

.dashboard-page .dashboard-topbar { min-height:76px; background:rgba(7,12,18,.88); border-bottom:1px solid rgba(255,255,255,.065); box-shadow:0 14px 40px rgba(0,0,0,.22); backdrop-filter:blur(20px); }
.dashboard-page .dashboard-context-label { color:#ff8e3e; }
.dashboard-page .dashboard-context-title { color:#f5f7fa; }
.dashboard-page .dashboard-topbar-chip { color:#9ca8b7; background:#0c141d; border-color:rgba(255,255,255,.08); }
.dashboard-page .dashboard-topbar-chip:hover { color:#fff; border-color:rgba(255,122,22,.28); background:#101b27; }

.dashboard-page .dashboard-view-tabs { background:#0b121a; border-color:rgba(255,255,255,.08); box-shadow:0 14px 34px rgba(0,0,0,.18); }
.dashboard-page .dashboard-view-tab { color:#788597; }
.dashboard-page .dashboard-view-tab:hover { color:#fff; background:rgba(255,255,255,.04); }
.dashboard-page .dashboard-view-tab.active { color:#fff; background:linear-gradient(135deg,#e86812,#ff8a34); box-shadow:0 10px 24px rgba(255,122,22,.22); }

.dashboard-page .executive-hero { min-height:240px; background-image:linear-gradient(90deg,rgba(5,9,14,.94),rgba(5,10,16,.74),rgba(5,10,16,.35)),url('../img/hero-bs-premium.png'); background-size:cover; background-position:center 48%; border:1px solid rgba(255,255,255,.08); box-shadow:0 34px 80px rgba(0,0,0,.36); }
.dashboard-page .executive-hero::after { border-color:rgba(255,122,22,.15); box-shadow:0 0 0 44px rgba(255,122,22,.025),0 0 0 86px rgba(255,255,255,.018); }
.dashboard-page .executive-eyebrow { color:#ff9a55; }
.dashboard-page .executive-hero p { color:#a8b3c0; }

.dashboard-page .dashboard-kpi,
.dashboard-page .premium-panel,
.dashboard-page .chart-card,
.dashboard-page .stats-hero,
.dashboard-page .list-toolbar,
.dashboard-page .list-card,
.dashboard-page .form-card,
.dashboard-page .card,
.dashboard-page .pivot-hero,
.dashboard-page .pivot-toolbar,
.dashboard-page .pivot-card,
.dashboard-page #calendrier-gestionnaire {
    background:linear-gradient(145deg,#101923,#0b131c) !important;
    color:#e9eef5;
    border-color:rgba(255,255,255,.075) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.22) !important;
}
.dashboard-page .dashboard-kpi { min-height:158px; }
.dashboard-page .dashboard-kpi::before { height:2px; opacity:.95; }
.dashboard-page .dashboard-kpi::after { opacity:.34; }
.dashboard-page .dashboard-kpi-value { color:#fff; }
.dashboard-page .dashboard-kpi-value .text-muted { color:#647285!important; }
.dashboard-page .dashboard-kpi-label { color:#9aa7b7; }
.dashboard-page .dashboard-kpi-note { color:#637184; }
.dashboard-page .dashboard-kpi-icon { background:color-mix(in srgb,var(--kpi-accent,#ff7a16) 13%,#0c151f); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kpi-accent,#ff7a16) 26%,transparent); }
.dashboard-page .dashboard-kpi:hover { border-color:rgba(255,122,22,.20) !important; box-shadow:0 26px 54px rgba(0,0,0,.32) !important; }

.dashboard-page .premium-panel-head,
.dashboard-page .chart-card-head,
.dashboard-page .card-header { border-bottom-color:rgba(255,255,255,.07); background:transparent; }
.dashboard-page .premium-panel-kicker,
.dashboard-page .page-heading-eyebrow { color:#ff9144; }
.dashboard-page .premium-panel-title,
.dashboard-page .chart-card-title,
.dashboard-page .page-heading h1,
.dashboard-page h1,.dashboard-page h2,.dashboard-page h3,.dashboard-page h4,.dashboard-page h5 { color:#f6f8fb; }
.dashboard-page .premium-panel-subtitle,
.dashboard-page .chart-card-note,
.dashboard-page .page-heading p { color:#778699; }
.dashboard-page .premium-empty { color:#718094; }
.dashboard-page .premium-empty-icon { background:#111c27; color:#ff8d3c; }
.dashboard-page .stats-hero { background:radial-gradient(circle at 90% 0,rgba(255,122,22,.14),transparent 28%),linear-gradient(145deg,#101923,#0b131c) !important; }
.dashboard-page .stats-filter-bar { background:#09121a; border-color:rgba(255,255,255,.08); }
.dashboard-page .stats-period-badge { color:#ffad72; background:rgba(255,122,22,.10); }
.dashboard-page .stats-footnote { color:#778698; background:#0b151f; border-color:rgba(255,255,255,.07); }

/* Back-office tables */
.dashboard-page .table { color:#d8e0e8; --bs-table-bg:transparent; --bs-table-striped-bg:rgba(255,255,255,.018); }
.dashboard-page .table thead th { color:#738196; background:#09111a; border-color:rgba(255,255,255,.065); }
.dashboard-page .table tbody td { color:#cbd4df; border-color:rgba(255,255,255,.055); }
.dashboard-page .table tbody tr:hover > * { --bs-table-bg-state:rgba(255,122,22,.045); color:#fff; }
.dashboard-page .table .text-dark { color:#eaf0f6!important; }
.dashboard-page .list-card { overflow:hidden; }
.dashboard-page .pagination .page-link { background:#0d1620; border-color:rgba(255,255,255,.08); color:#9eabba; }
.dashboard-page .pagination .page-item.disabled .page-link { background:#101922; color:#5f6d7f; }

/* Back-office forms */
.dashboard-page .form-section { background:#0b141d; border-color:rgba(255,255,255,.07); }
.dashboard-page .form-section-title { color:#edf2f7; }
.dashboard-page .form-section-title i { background:rgba(255,122,22,.10); color:#ff8e3f; }
.dashboard-page .form-label { color:#9ba8b8; }
.dashboard-page .form-control,
.dashboard-page .form-select,
.dashboard-page textarea.form-control,
.dashboard-page .input-group-text { background:#08111a; color:#edf2f7; border-color:rgba(255,255,255,.10); }
.dashboard-page .form-control::placeholder { color:#526174; }
.dashboard-page .form-control:focus,
.dashboard-page .form-select:focus { background:#0a141e; border-color:rgba(255,122,22,.58); box-shadow:0 0 0 .22rem rgba(255,122,22,.10); color:#fff; }
.dashboard-page .form-text { color:#677588; }
.dashboard-page .rental-type-picker .form-check-label { background:#0a131c; color:#b9c4d0; border-color:rgba(255,255,255,.09); }
.dashboard-page .rental-type-picker .form-check-input:checked + .form-check-label { color:#fff; border-color:rgba(255,122,22,.45); background:rgba(255,122,22,.11); }
.dashboard-page .apartment-map-shell { background:#08111a !important; border-color:rgba(255,255,255,.08) !important; }
.dashboard-page #apartment-location-map { border-color:rgba(255,255,255,.08) !important; }
.dashboard-page .map-coordinate-pill { color:#aeb9c6; background:#0d1721 !important; border-color:rgba(255,255,255,.08) !important; }

/* FullCalendar dark */
.dashboard-page .fc { --fc-page-bg-color:#0c151e; --fc-neutral-bg-color:#0a121a; --fc-border-color:rgba(255,255,255,.07); --fc-list-event-hover-bg-color:rgba(255,122,22,.06); }
.dashboard-page .fc-theme-standard td,.dashboard-page .fc-theme-standard th { border-color:rgba(255,255,255,.07); }
.dashboard-page .fc .fc-col-header-cell-cushion,.dashboard-page .fc .fc-daygrid-day-number { color:#a6b2c1; }

/* Accounting / pivot generic dark cleanup */
.dashboard-page .pivot-table { color:#dce3eb !important; }
.dashboard-page .pivot-table th { background:#09121b !important; color:#8694a6 !important; border-color:rgba(255,255,255,.07) !important; }
.dashboard-page .pivot-table td { background:#0d1620 !important; color:#cad3de !important; border-color:rgba(255,255,255,.06) !important; }
.dashboard-page .pivot-table .pivot-total-row td,
.dashboard-page .pivot-table .pivot-grand-total td { background:rgba(255,122,22,.08) !important; color:#fff !important; }
.dashboard-page .pivot-chip { background:#101a25 !important; color:#a9b5c4 !important; border-color:rgba(255,255,255,.07) !important; }
.dashboard-page .pivot-chip i { color:#ff8e3f !important; }

/* ========================================================================
   CLIENT SPACE — premium dark application
   ======================================================================== */
.client-space-page { min-height:calc(100vh - 78px); background:radial-gradient(circle at 15% 0,rgba(255,122,22,.065),transparent 20%),radial-gradient(circle at 100% 0,rgba(44,112,178,.07),transparent 24%),#070c12; }
.client-space-page .client-sidebar { background:radial-gradient(circle at 0 0,rgba(255,122,22,.17),transparent 22%),linear-gradient(180deg,#0e1721,#080d13); border:1px solid rgba(255,255,255,.075) !important; box-shadow:0 28px 70px rgba(0,0,0,.34) !important; }
.client-space-page .client-sidebar-top { border-bottom-color:rgba(255,255,255,.07); }
.client-space-page .client-contact-list { border-bottom-color:rgba(255,255,255,.07); }
.client-space-page .client-avatar { border-radius:50%; background:linear-gradient(135deg,#ff7a16,#ff9a4d); box-shadow:0 0 0 6px rgba(255,122,22,.08),0 16px 34px rgba(255,122,22,.20); }
.client-space-page .client-side-nav a { color:#8896a8; }
.client-space-page .client-side-nav a:hover { color:#fff; background:rgba(255,255,255,.045); }
.client-space-page .client-side-nav a.active { background:linear-gradient(90deg,rgba(255,122,22,.22),rgba(255,122,22,.06)); box-shadow:inset 3px 0 0 var(--brand-orange); color:#fff; }
.client-space-page .client-mini-stat { background:#0f1923; border:1px solid rgba(255,255,255,.055); }
.client-space-page .client-main-header,
.client-space-page .client-panel,
.client-space-page .client-kpi-card,
.client-space-page .client-stay-card,
.client-space-page .client-empty-state,
.client-space-page .card { background:linear-gradient(145deg,#101923,#0b131c) !important; color:#edf2f7; border:1px solid rgba(255,255,255,.07) !important; box-shadow:0 20px 50px rgba(0,0,0,.24) !important; }
.client-space-page .client-main-header { background:radial-gradient(circle at 88% 0,rgba(255,122,22,.14),transparent 26%),linear-gradient(145deg,#111b26,#0b131c) !important; }
.client-space-page .client-page-title,
.client-space-page h1,.client-space-page h2,.client-space-page h3,.client-space-page h4,.client-space-page h5 { color:#f6f8fb; }
.client-space-page .client-page-subtitle,
.client-space-page .client-kpi-label { color:#8492a5; }
.client-space-page .client-kpi-value { color:#fff; }
.client-space-page .client-kpi-icon.orange { background:rgba(255,122,22,.10); color:#ff9145; }
.client-space-page .client-kpi-icon.blue { background:rgba(75,145,255,.10); color:#77a9f7; }
.client-space-page .client-kpi-icon.green { background:rgba(56,201,139,.10); color:#57d49b; }
.client-space-page .client-panel-head { border-bottom-color:rgba(255,255,255,.065); }
.client-space-page .client-list-item { border-top-color:rgba(255,255,255,.055); }
.client-space-page .client-subcard,
.client-space-page .client-info-grid > div { background:#0a141d; border-color:rgba(255,255,255,.07); }
.client-space-page .client-info-grid span { color:#6e7c8f; }
.client-space-page .client-info-grid strong { color:#e8eef5; }
.client-space-page .client-highlight { background:radial-gradient(circle at 88% 0,rgba(255,122,22,.18),transparent 30%),linear-gradient(145deg,#121d29,#090f16); border:1px solid rgba(255,122,22,.13); }
.client-space-page .client-table { color:#d7e0e9; }
.client-space-page .client-table thead th { background:#09121b; color:#768599; border-color:rgba(255,255,255,.06); }
.client-space-page .client-table tbody td { color:#cbd4df; border-color:rgba(255,255,255,.055); }
.client-space-page .client-table tbody tr:hover > * { --bs-table-bg-state:rgba(255,122,22,.04); color:#fff; }
.client-space-page .form-control,
.client-space-page .form-select,
.client-space-page textarea { background:#08111a; color:#edf2f7; border-color:rgba(255,255,255,.10); }
.client-space-page .form-label { color:#9ca8b7; }

/* Buttons, pills and badges across dark apps */
.dashboard-page .btn-outline-secondary,
.dashboard-page .btn-outline-dark,
.client-space-page .btn-outline-secondary,
.client-space-page .btn-outline-dark,
.client-space-page .btn-outline-primary { color:#c5cfda; border-color:rgba(255,255,255,.14); background:transparent; }
.dashboard-page .btn-outline-secondary:hover,
.dashboard-page .btn-outline-dark:hover,
.client-space-page .btn-outline-secondary:hover,
.client-space-page .btn-outline-dark:hover,
.client-space-page .btn-outline-primary:hover { color:#fff; background:rgba(255,122,22,.11); border-color:rgba(255,122,22,.44); }
.dashboard-page .badge.text-bg-light,
.client-space-page .badge.text-bg-light,
.public-page .badge.text-bg-light { color:#b8c4d1 !important; background:#111b26 !important; border-color:rgba(255,255,255,.09) !important; }
.dashboard-page .badge.text-bg-secondary,
.client-space-page .badge.text-bg-secondary { background:#24303e !important; color:#c6d0db !important; }
.dashboard-page .badge.text-bg-success,
.client-space-page .badge.text-bg-success { background:rgba(56,201,139,.14) !important; color:#70dcae !important; }
.dashboard-page .badge.text-bg-warning,
.client-space-page .badge.text-bg-warning { background:rgba(242,184,75,.14) !important; color:#ffd57a !important; }

/* Mobile polish */
@media (max-width:1199.98px) {
    .dashboard-page .dashboard-sidebar { width:284px; }
    .client-space-page .client-sidebar { position:static; }
}
@media (max-width:991.98px) {
    .dashboard-page .dashboard-workspace { width:100%; margin-left:0; }
    .public-page .hero { min-height:auto; padding:5rem 0 5.8rem; background-position:58% center; }
    .public-page .booking-search-card { margin-top:1rem; }
}
@media (max-width:767.98px) {
    .public-page .hero { padding:4.2rem 0 5rem; background-position:62% center; }
    .public-page .hero-title { font-size:2.55rem; }
    .public-page .home-strip { margin-top:-28px; }
    .dashboard-page .dashboard-content { padding:.9rem; }
    .dashboard-page .executive-hero { min-height:auto; border-radius:22px; }
    .dashboard-page .dashboard-kpi { min-height:130px; border-radius:18px; }
    .client-space-page .container { padding-left:14px; padding-right:14px; }
    .client-space-page .client-sidebar,
    .client-space-page .client-main-header,
    .client-space-page .client-panel,
    .client-space-page .client-kpi-card { border-radius:18px; }
}

/* v5 components added from institutional storyboard */
.platform-capabilities { position:relative; z-index:3; margin-top:1.25rem; }
.platform-capabilities-shell { padding:1.35rem; border-radius:24px; background:linear-gradient(145deg,#101923,#0b131c); border:1px solid rgba(255,255,255,.075); box-shadow:0 22px 52px rgba(0,0,0,.26); }
.platform-capabilities-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; padding:.3rem .2rem 1.15rem; border-bottom:1px solid rgba(255,255,255,.065); }
.platform-capabilities-head h2 { color:#fff; }
.platform-live-pill { display:inline-flex; align-items:center; gap:.5rem; padding:.48rem .7rem; border-radius:999px; color:#87deb6; background:rgba(56,201,139,.09); border:1px solid rgba(56,201,139,.18); font-size:.72rem; font-weight:750; white-space:nowrap; }
.platform-live-pill i { font-size:.45rem; }
.capability-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.75rem; padding-top:1.15rem; }
.capability-item { min-height:100px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:.65rem; padding:1rem; border-radius:18px; background:#0a131c; border:1px solid rgba(255,255,255,.06); color:#b7c2cf; font-weight:700; transition:.18s ease; }
.capability-item i { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; color:#ff9145; background:rgba(255,122,22,.09); font-size:1.05rem; }
.capability-item:hover { color:#fff; transform:translateY(-3px); border-color:rgba(255,122,22,.28); background:#101a25; }

.client-kpi-icon.purple { background:rgba(139,114,255,.11); color:#a995ff; }
.client-doc-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.client-doc-card { overflow:hidden; padding:.8rem; border-radius:17px; background:#09131c; border:1px solid rgba(255,255,255,.07); }
.client-doc-card.full { grid-column:1/-1; }
.client-doc-label { display:flex; align-items:center; gap:.45rem; margin-bottom:.7rem; color:#93a0b2; font-size:.74rem; font-weight:750; text-transform:uppercase; letter-spacing:.055em; }
.client-doc-label i { color:#ff8f41; }
.client-doc-card img { width:100%; height:180px; display:block; object-fit:cover; border-radius:12px; border:1px solid rgba(255,255,255,.07); transition:.18s ease; }
.client-doc-card a:hover img { transform:scale(1.012); border-color:rgba(255,122,22,.30); }
.client-doc-card.full img { height:220px; object-fit:contain; background:#070d13; }
.client-doc-empty { height:120px; display:grid; place-items:center; align-content:center; gap:.45rem; color:#536174; background:#081019; border-radius:12px; }
.client-doc-empty i { font-size:1.4rem; }
.client-mobile-nav-toggle { width:100%; min-height:48px; display:flex; align-items:center; gap:.65rem; padding:.7rem .9rem; border-radius:14px; border:1px solid rgba(255,255,255,.08); color:#dfe6ee; background:linear-gradient(145deg,#101923,#0b131c); box-shadow:0 12px 32px rgba(0,0,0,.18); font-weight:700; }
.client-mobile-nav-toggle > i:first-child { color:#ff8f42; }
@media(max-width:1199.98px){
    .client-space-page .client-sidebar { display:none; }
    .client-space-page.client-nav-open .client-sidebar { display:block; }
}
@media(max-width:991.98px){ .capability-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.platform-capabilities-head{align-items:flex-start;flex-direction:column;} }
@media(max-width:575.98px){ .capability-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.client-doc-grid{grid-template-columns:1fr}.client-doc-card.full{grid-column:auto;} }
/* preserve the official orange/white BS LOCATION logo variant on dark surfaces */
.public-page .navbar-bs .navbar-brand img,
.public-page .site-footer .footer-logo,
.dashboard-page .dashboard-sidebar-brand img { filter:none !important; }

/* --- Correctifs lisibilité tableaux + badges de disponibilité (v5.2) --- */
.dashboard-page .dashboard-panel {
    background: linear-gradient(145deg,#101923,#0b131c) !important;
    color:#e9eef5;
    border:1px solid rgba(255,255,255,.075) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.22) !important;
    border-radius:18px;
    overflow:hidden;
}
.dashboard-page .dashboard-panel .table { color:#d8e0e8; --bs-table-bg:transparent; }
.dashboard-page .dashboard-panel .table thead th { background:#09111a; color:#738196; border-color:rgba(255,255,255,.065); }
.dashboard-page .dashboard-panel .table tbody td { background:transparent; color:#cbd4df; border-color:rgba(255,255,255,.055); }
.dashboard-page .dashboard-panel .table a { color:#74aafc; }
.dashboard-page .dashboard-panel .table .text-muted { color:#8f9bab !important; }

.public-page .card-media-badge.is-available {
    color:#effcf6;
    background:rgba(7,18,15,.78);
    border:1px solid rgba(84,220,160,.28);
}
.public-page .card-media-badge.is-unavailable {
    color:#fff2ea;
    background:rgba(34,18,10,.82);
    border:1px solid rgba(255,122,22,.34);
}
.property-availability {
    display:inline-flex;
    align-items:center;
    gap:.55rem;
    padding:.62rem .9rem;
    border-radius:999px;
    font-weight:700;
    font-size:.92rem;
    border:1px solid transparent;
}
.property-availability.is-available {
    color:#d8ffea;
    background:rgba(12,58,35,.28);
    border-color:rgba(84,220,160,.18);
}
.property-availability.is-unavailable {
    color:#ffe3d2;
    background:rgba(59,28,11,.34);
    border-color:rgba(255,122,22,.22);
}
/* Fiche véhicule : conçue pour tenir sur une vue desktop standard. */
.public-page .vehicle-detail-page {
    min-height:calc(100vh - 78px);
    padding:1.35rem 0 1.55rem;
    background:radial-gradient(circle at 100% 0,rgba(255,122,22,.08),transparent 25%),linear-gradient(180deg,#070c12,#09121b);
}
.public-page .vehicle-detail-container { max-width:1500px; }
.public-page .vehicle-detail-shell {
    display:grid; grid-template-columns:minmax(0,1.08fr) minmax(440px,.92fr); gap:1.25rem;
    align-items:start;
}
.public-page .vehicle-detail-product,
.public-page .vehicle-booking-panel {
    background:linear-gradient(145deg,#101923,#0b141d);
    border:1px solid rgba(255,255,255,.075);
    border-radius:24px;
    box-shadow:0 24px 60px rgba(0,0,0,.28);
}
.public-page .vehicle-detail-product { padding:1rem; }
.public-page .vehicle-detail-media {
    height:clamp(280px,34vh,360px); border-radius:18px; overflow:hidden; position:relative;
    background:#eef0f2; border:1px solid rgba(255,255,255,.08);
}
.public-page .vehicle-detail-media img { width:100%; height:100%; object-fit:cover; display:block; }
.public-page .vehicle-detail-placeholder { height:100%; display:grid; place-items:center; color:#657485; font-size:4rem; }
.public-page .vehicle-detail-status {
    position:absolute; top:.85rem; left:.85rem; display:flex; align-items:center; gap:.4rem;
    padding:.5rem .75rem; border-radius:999px; backdrop-filter:blur(12px);
    font-size:.74rem; font-weight:800; letter-spacing:.01em;
}
.public-page .vehicle-detail-status.is-available { color:#e8fff3; background:rgba(5,41,29,.88); border:1px solid rgba(72,212,146,.32); }
.public-page .vehicle-detail-status.is-unavailable { color:#fff2e9; background:rgba(83,30,15,.9); border:1px solid rgba(255,122,22,.40); }
.public-page .vehicle-detail-heading {
    display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; padding:1rem .15rem .65rem;
}
.public-page .vehicle-detail-heading h1 { margin:0; color:#fff; font-family:var(--brand-font-heading); font-size:clamp(1.65rem,2.6vw,2.45rem); letter-spacing:-.035em; }
.public-page .vehicle-detail-specs { display:flex; flex-wrap:wrap; gap:.38rem .75rem; margin-top:.45rem; color:#93a0b0; font-size:.76rem; }
.public-page .vehicle-detail-specs span { display:flex; align-items:center; gap:.28rem; }
.public-page .vehicle-detail-specs i { color:#ff8d3c; }
.public-page .vehicle-detail-price { text-align:right; white-space:nowrap; }
.public-page .vehicle-detail-price small { display:block; color:#728093; font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; }
.public-page .vehicle-detail-price strong { display:block; color:#ff9146; font-size:1.25rem; line-height:1.1; }
.public-page .vehicle-detail-price span { color:#7f8da0; font-size:.68rem; }
.public-page .vehicle-calendar-banner {
    display:flex; gap:.65rem; align-items:center; margin:.25rem 0 .7rem; padding:.62rem .72rem;
    border-radius:14px; background:rgba(64,206,145,.06); border:1px solid rgba(64,206,145,.14);
}
.public-page .vehicle-calendar-banner > i { color:#58d69a; font-size:1.05rem; }
.public-page .vehicle-calendar-banner div { display:flex; flex-direction:column; min-width:0; }
.public-page .vehicle-calendar-banner strong { color:#e8edf3; font-size:.75rem; }
.public-page .vehicle-calendar-banner span { color:#8b99aa; font-size:.68rem; }
.public-page .vehicle-calendar-banner.is-unavailable { background:rgba(255,122,22,.065); border-color:rgba(255,122,22,.18); }
.public-page .vehicle-calendar-banner.is-unavailable > i { color:#ff9146; }
.public-page .vehicle-rate-strip { border:1px solid rgba(255,255,255,.065); border-radius:15px; overflow:hidden; background:#0a121a; }
.public-page .vehicle-rate-strip-head { display:flex; justify-content:space-between; align-items:center; padding:.55rem .7rem; border-bottom:1px solid rgba(255,255,255,.055); color:#dce3eb; font-size:.73rem; font-weight:700; }
.public-page .vehicle-rate-strip-head i { color:#ff9146; }
.public-page .vehicle-rate-strip-head small { color:#667488; font-weight:500; }
.public-page .vehicle-rate-list { max-height:116px; overflow:auto; }
.public-page .vehicle-rate-row { display:flex; justify-content:space-between; gap:1rem; padding:.48rem .7rem; border-bottom:1px solid rgba(255,255,255,.04); font-size:.69rem; }
.public-page .vehicle-rate-row:last-child { border-bottom:0; }
.public-page .vehicle-rate-row strong { color:#c9d2dd; }
.public-page .vehicle-rate-row span { color:#738195; white-space:nowrap; }
.public-page .vehicle-rate-row b { color:#ff9146; }
.public-page .vehicle-rate-empty { padding:.7rem; color:#748296; font-size:.7rem; }

.public-page .vehicle-booking-panel { padding:1rem 1.05rem; border-color:rgba(255,122,22,.16); }
.public-page .vehicle-booking-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:.7rem; }
.public-page .vehicle-booking-head h2 { margin:0; color:#fff; font-family:var(--brand-font-heading); font-size:1.4rem; }
.public-page .booking-secure { flex:0 0 auto; display:inline-flex; align-items:center; gap:.3rem; padding:.36rem .56rem; border-radius:999px; color:#9ccdb9; background:rgba(45,168,113,.07); border:1px solid rgba(54,192,130,.15); font-size:.65rem; }
.public-page .vehicle-booking-form .form-label { color:#9daabb; font-size:.7rem; margin-bottom:.25rem; font-weight:650; }
.public-page .vehicle-booking-form .form-control,
.public-page .vehicle-booking-form .form-select { min-height:42px; padding:.5rem .65rem; border-radius:12px; font-size:.78rem; background:#09121b; color:#edf2f7; border-color:rgba(255,255,255,.10); }
.public-page .vehicle-booking-form textarea.form-control { min-height:54px; max-height:58px; resize:vertical; }
.public-page .vehicle-estimation-box {
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
    margin:.65rem 0 .45rem; padding:.65rem .75rem; border-radius:14px;
    background:linear-gradient(90deg,rgba(255,122,22,.075),rgba(255,255,255,.025)); border:1px solid rgba(255,122,22,.16);
}
.public-page .vehicle-estimation-box > div { display:flex; flex-direction:column; }
.public-page .vehicle-estimation-box small { color:#8996a7; font-size:.66rem; }
.public-page .vehicle-estimation-box span { color:#aab5c2; font-size:.7rem; }
.public-page .vehicle-estimation-box > strong { color:#ff9146; font-size:1.16rem; white-space:nowrap; }
.public-page .vehicle-availability-live { display:flex; align-items:flex-start; gap:.5rem; margin:.38rem 0; padding:.55rem .65rem; border-radius:12px; font-size:.69rem; line-height:1.4; }
.public-page .vehicle-availability-live.is-available { color:#acd3bf; background:rgba(45,180,118,.065); border:1px solid rgba(55,199,135,.15); }
.public-page .vehicle-availability-live.is-available i { color:#54d194; }
.public-page .vehicle-availability-live.is-unavailable { color:#d5b4a0; background:rgba(255,122,22,.07); border:1px solid rgba(255,122,22,.20); }
.public-page .vehicle-availability-live.is-unavailable i { color:#ff8b3a; }
.public-page .vehicle-availability-live strong { color:#edf1f5; }
.public-page .booking-payment-section { margin-top:.6rem; }
.public-page .payment-options-compact { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; }
.public-page .payment-options-compact label {
    display:flex; align-items:flex-start; gap:.38rem; min-height:58px; margin:0 !important; padding:.55rem !important;
    border-radius:12px !important; font-size:.65rem; line-height:1.28; cursor:pointer;
}
.public-page .payment-options-compact input { margin-top:.08rem; flex:0 0 auto; }
.public-page .vehicle-notes-row { margin-top:.55rem; }
.public-page .vehicle-booking-actions { display:grid; grid-template-columns:1.05fr .95fr; gap:.5rem; margin-top:.6rem; }
.public-page .vehicle-booking-actions .btn { min-height:42px; display:flex; align-items:center; justify-content:center; gap:.38rem; font-size:.76rem; }
.public-page .vehicle-booking-actions .btn:disabled { opacity:.38; cursor:not-allowed; }
.public-page .vehicle-booking-foot { margin-top:.48rem; color:#69778a; font-size:.64rem; text-align:center; }
.public-page .vehicle-booking-foot i { color:#ff8c3a; }

@media (max-width:1199.98px) {
    .public-page .vehicle-detail-shell { grid-template-columns:minmax(0,1fr) minmax(390px,.92fr); }
    .public-page .vehicle-detail-media { height:300px; }
    .public-page .payment-options-compact { grid-template-columns:1fr; }
    .public-page .payment-options-compact label { min-height:44px; }
}
@media (max-width:991.98px) {
    .public-page .vehicle-detail-page { padding:1rem 0 2rem; }
    .public-page .vehicle-detail-shell { grid-template-columns:1fr; }
    .public-page .vehicle-detail-media { height:min(52vw,390px); }
    .public-page .vehicle-booking-panel { padding:1rem; }
    .public-page .payment-options-compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
    .public-page .vehicle-detail-heading { align-items:flex-start; flex-direction:column; }
    .public-page .vehicle-detail-price { text-align:left; }
    .public-page .payment-options-compact { grid-template-columns:1fr; }
    .public-page .vehicle-booking-actions { grid-template-columns:1fr; }
    .public-page .vehicle-result-summary { display:grid; gap:.45rem; }
}

/* ========================================================================== 
   BS LOCATION v5.4 — lisibilité, calendriers natifs et thème clair/sombre
   ========================================================================== */

/* Bouton thème */
.theme-toggle-btn {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:.35rem;
    min-width:42px;
    min-height:42px;
    border-radius:12px !important;
    cursor:pointer;
}
.public-page .navbar-bs .theme-toggle-btn { color:#c9d3dd; background:rgba(255,255,255,.035); }
.public-page .navbar-bs .theme-toggle-btn:hover { color:#fff; background:rgba(255,122,22,.10); }
.dashboard-page .theme-toggle-btn { appearance:none; }

/* Les contrôles date/heure natifs restent visibles sur fonds sombres. */
html[data-ui-theme="dark"] input[type="date"],
html[data-ui-theme="dark"] input[type="datetime-local"],
html[data-ui-theme="dark"] input[type="time"] { color-scheme:dark; }
html[data-ui-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter:invert(1) brightness(1.85);
    opacity:.9;
    cursor:pointer;
}
html[data-ui-theme="light"] input[type="date"],
html[data-ui-theme="light"] input[type="datetime-local"],
html[data-ui-theme="light"] input[type="time"] { color-scheme:light; }
html[data-ui-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter:none;
    opacity:.72;
    cursor:pointer;
}

/* Renforcement général des textes dans les composants sombres. */
html[data-ui-theme="dark"] .public-page .form-control,
html[data-ui-theme="dark"] .public-page .form-select,
html[data-ui-theme="dark"] .public-page textarea,
html[data-ui-theme="dark"] .dashboard-page .form-control,
html[data-ui-theme="dark"] .dashboard-page .form-select,
html[data-ui-theme="dark"] .dashboard-page textarea { color:#f1f5f9 !important; }
html[data-ui-theme="dark"] .public-page .form-control::placeholder,
html[data-ui-theme="dark"] .dashboard-page .form-control::placeholder { color:#718094 !important; opacity:1; }
html[data-ui-theme="dark"] .public-page option,
html[data-ui-theme="dark"] .dashboard-page option { background:#0a131c; color:#f1f5f9; }

/* Compact detail — évite que la fiche redevienne une longue page. */
.public-page .vehicle-detail-page { min-height:auto; }
.public-page .vehicle-detail-media { height:clamp(250px,31vh,330px); }
.public-page .vehicle-booking-panel { position:sticky; top:86px; }
.public-page .vehicle-notes-details {
    margin-top:.5rem;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
    background:#09121b;
    overflow:hidden;
}
.public-page .vehicle-notes-details summary {
    padding:.5rem .65rem;
    color:#96a4b5;
    font-size:.69rem;
    font-weight:700;
    cursor:pointer;
    list-style:none;
}
.public-page .vehicle-notes-details summary::-webkit-details-marker { display:none; }
.public-page .vehicle-notes-details summary i { color:#ff9146; margin-right:.35rem; }
.public-page .vehicle-notes-details[open] summary { border-bottom:1px solid rgba(255,255,255,.06); }
.public-page .vehicle-notes-details .vehicle-notes-row { padding:.5rem; }
.public-page .vehicle-notes-details textarea { min-height:54px !important; max-height:70px !important; }

/* --------------------------------------------------------------------------
   THÈME CLAIR — Portail public
   -------------------------------------------------------------------------- */
html[data-ui-theme="light"] body { background:#f4f6f8; color:#1b2430; }
html[data-ui-theme="light"] .public-page { background:#f4f6f8; color:#1b2430; }
html[data-ui-theme="light"] .public-page .navbar-bs {
    background:rgba(255,255,255,.94) !important;
    border-bottom-color:#e4e8ed !important;
    box-shadow:0 10px 28px rgba(18,28,38,.07);
}
html[data-ui-theme="light"] .public-page .navbar-bs .nav-link { color:#344151 !important; }
html[data-ui-theme="light"] .public-page .navbar-bs .nav-link:hover { color:#e86922 !important; }
html[data-ui-theme="light"] .public-page .navbar-bs .theme-toggle-btn { color:#475569; background:#f3f5f7; }
html[data-ui-theme="light"] .public-page .section-space,
html[data-ui-theme="light"] .public-page .portal-home,
html[data-ui-theme="light"] .public-page .property-page,
html[data-ui-theme="light"] .public-page .stay-page,
html[data-ui-theme="light"] .public-page .vehicle-detail-page {
    background:radial-gradient(circle at 100% 0,rgba(255,122,22,.055),transparent 24%),#f4f6f8 !important;
}
html[data-ui-theme="light"] .public-page .home-strip-card,
html[data-ui-theme="light"] .public-page .showcase-shell,
html[data-ui-theme="light"] .public-page .showcase-shell-soft,
html[data-ui-theme="light"] .public-page .search-panel,
html[data-ui-theme="light"] .public-page .card-bien,
html[data-ui-theme="light"] .public-page .property-page .card,
html[data-ui-theme="light"] .public-page .stay-summary,
html[data-ui-theme="light"] .public-page .stay-item-card,
html[data-ui-theme="light"] .public-page .saved-stays-panel,
html[data-ui-theme="light"] .public-page .saved-stay-card,
html[data-ui-theme="light"] .public-page .empty-state,
html[data-ui-theme="light"] .public-page .vehicle-detail-product,
html[data-ui-theme="light"] .public-page .vehicle-booking-panel {
    background:#fff !important;
    color:#1f2937 !important;
    border-color:#e3e8ee !important;
    box-shadow:0 18px 46px rgba(24,39,56,.08) !important;
}
html[data-ui-theme="light"] .public-page .section-title,
html[data-ui-theme="light"] .public-page .home-strip-title,
html[data-ui-theme="light"] .public-page .category-title,
html[data-ui-theme="light"] .public-page .card-bien .card-title,
html[data-ui-theme="light"] .public-page .property-title,
html[data-ui-theme="light"] .public-page .vehicle-detail-heading h1,
html[data-ui-theme="light"] .public-page .vehicle-booking-head h2 { color:#182230 !important; }
html[data-ui-theme="light"] .public-page .section-subtitle,
html[data-ui-theme="light"] .public-page .home-strip-text,
html[data-ui-theme="light"] .public-page .category-text,
html[data-ui-theme="light"] .public-page .property-meta,
html[data-ui-theme="light"] .public-page .vehicle-detail-specs,
html[data-ui-theme="light"] .public-page .text-muted { color:#667587 !important; }
html[data-ui-theme="light"] .public-page .search-panel .form-control,
html[data-ui-theme="light"] .public-page .search-panel .form-select,
html[data-ui-theme="light"] .public-page .property-page .form-control,
html[data-ui-theme="light"] .public-page .property-page .form-select,
html[data-ui-theme="light"] .public-page .property-page textarea,
html[data-ui-theme="light"] .public-page .vehicle-booking-form .form-control,
html[data-ui-theme="light"] .public-page .vehicle-booking-form .form-select,
html[data-ui-theme="light"] .public-page .vehicle-notes-details textarea {
    background:#f8fafc !important;
    color:#17212d !important;
    border-color:#d8e0e8 !important;
}
html[data-ui-theme="light"] .public-page .form-label,
html[data-ui-theme="light"] .public-page .vehicle-booking-form .form-label { color:#4b5b6d !important; }
html[data-ui-theme="light"] .public-page .payment-options label,
html[data-ui-theme="light"] .public-page .payment-options-compact label {
    background:#f8fafc !important;
    color:#263445 !important;
    border-color:#dce3ea !important;
}
html[data-ui-theme="light"] .public-page .payment-options label:has(input:checked),
html[data-ui-theme="light"] .public-page .payment-options-compact label:has(input:checked) {
    background:#fff3eb !important;
    color:#202a36 !important;
    border-color:#e86922 !important;
}
html[data-ui-theme="light"] .public-page .vehicle-calendar-banner,
html[data-ui-theme="light"] .public-page .vehicle-rate-strip,
html[data-ui-theme="light"] .public-page .vehicle-notes-details { background:#f8fafc; border-color:#e1e7ed; }
html[data-ui-theme="light"] .public-page .vehicle-calendar-banner strong,
html[data-ui-theme="light"] .public-page .vehicle-rate-strip-head,
html[data-ui-theme="light"] .public-page .vehicle-rate-row strong { color:#253244; }
html[data-ui-theme="light"] .public-page .vehicle-calendar-banner span,
html[data-ui-theme="light"] .public-page .vehicle-rate-row span,
html[data-ui-theme="light"] .public-page .vehicle-rate-strip-head small,
html[data-ui-theme="light"] .public-page .vehicle-notes-details summary { color:#647386; }
html[data-ui-theme="light"] .public-page .vehicle-rate-strip-head,
html[data-ui-theme="light"] .public-page .vehicle-rate-row,
html[data-ui-theme="light"] .public-page .vehicle-notes-details[open] summary { border-color:#e5e9ee; }
html[data-ui-theme="light"] .public-page .vehicle-estimation-box { background:#fff7f2; border-color:#ffd5bd; }
html[data-ui-theme="light"] .public-page .vehicle-estimation-box span,
html[data-ui-theme="light"] .public-page .vehicle-estimation-box small { color:#68778a; }
html[data-ui-theme="light"] .public-page .btn-outline-dark,
html[data-ui-theme="light"] .public-page .btn-outline-primary,
html[data-ui-theme="light"] .public-page .btn-outline-secondary { color:#344151; border-color:#cdd6df; }
html[data-ui-theme="light"] .public-page .table { color:#283647; }
html[data-ui-theme="light"] .public-page .table thead th { background:#f3f6f8; color:#667587; border-color:#e2e7ec; }
html[data-ui-theme="light"] .public-page .table tbody td { border-color:#e9edf1; }

/* --------------------------------------------------------------------------
   THÈME CLAIR — Espace client
   -------------------------------------------------------------------------- */
html[data-ui-theme="light"] .client-space-page { background:#f4f6f8 !important; color:#263445; }
html[data-ui-theme="light"] .client-space-page .client-sidebar,
html[data-ui-theme="light"] .client-space-page .client-main-header,
html[data-ui-theme="light"] .client-space-page .client-panel,
html[data-ui-theme="light"] .client-space-page .client-kpi-card,
html[data-ui-theme="light"] .client-space-page .card { background:#fff !important; border-color:#e3e8ee !important; color:#253244 !important; }
html[data-ui-theme="light"] .client-space-page h1,
html[data-ui-theme="light"] .client-space-page h2,
html[data-ui-theme="light"] .client-space-page h3,
html[data-ui-theme="light"] .client-space-page .client-kpi-value { color:#182230 !important; }
html[data-ui-theme="light"] .client-space-page .client-page-subtitle,
html[data-ui-theme="light"] .client-space-page .text-muted,
html[data-ui-theme="light"] .client-space-page .client-contact-list { color:#68778a !important; }
html[data-ui-theme="light"] .client-space-page .client-side-nav a { color:#526274; }
html[data-ui-theme="light"] .client-space-page .client-side-nav a:hover { background:#f5f7f9; color:#182230; }
html[data-ui-theme="light"] .client-space-page .client-side-nav a.active { background:#fff1e8; color:#b84f14; border-color:#f2c5a9; }
html[data-ui-theme="light"] .client-space-page .client-mobile-nav-toggle { background:#fff; color:#253244; border-color:#dfe5eb; }

/* --------------------------------------------------------------------------
   THÈME CLAIR — Back-office
   -------------------------------------------------------------------------- */
html[data-ui-theme="light"] .dashboard-page,
html[data-ui-theme="light"] .dashboard-page .dashboard-workspace,
html[data-ui-theme="light"] .dashboard-page .dashboard-content { background:#f4f6f8 !important; color:#243142; }
html[data-ui-theme="light"] .dashboard-page .dashboard-content { background:radial-gradient(circle at 100% 0,rgba(255,122,22,.045),transparent 26%),#f4f6f8 !important; }
html[data-ui-theme="light"] .dashboard-page .dashboard-sidebar { background:#fff; border-right-color:#e2e7ec; box-shadow:12px 0 34px rgba(25,38,52,.06); }
html[data-ui-theme="light"] .dashboard-page .dashboard-sidebar-brand,
html[data-ui-theme="light"] .dashboard-page .dashboard-sidebar-footer { border-color:#e7ebef; }
html[data-ui-theme="light"] .dashboard-page .dashboard-brand-name,
html[data-ui-theme="light"] .dashboard-page .dashboard-user-name { color:#17212d; }
html[data-ui-theme="light"] .dashboard-page .dashboard-brand-label,
html[data-ui-theme="light"] .dashboard-page .dashboard-user-role,
html[data-ui-theme="light"] .dashboard-page .dash-nav-section-title { color:#8290a1; }
html[data-ui-theme="light"] .dashboard-page .dash-nav-link { color:#5d6c7d; }
html[data-ui-theme="light"] .dashboard-page .dash-nav-link i { color:#7a8899; }
html[data-ui-theme="light"] .dashboard-page .dash-nav-link:hover { color:#17212d; background:#f5f7f9; border-color:#e8edf1; }
html[data-ui-theme="light"] .dashboard-page .dash-nav-link.active { color:#9f4514; background:#fff0e6; border-color:#f3c8ae; box-shadow:inset 3px 0 0 #e86922; }
html[data-ui-theme="light"] .dashboard-page .dashboard-user-card { background:#f6f8fa; border-color:#e2e7ec; }
html[data-ui-theme="light"] .dashboard-page .dashboard-topbar { background:rgba(255,255,255,.94); border-bottom-color:#e4e9ee; box-shadow:0 10px 30px rgba(20,35,50,.06); }
html[data-ui-theme="light"] .dashboard-page .dashboard-context-title { color:#182230; }
html[data-ui-theme="light"] .dashboard-page .dashboard-topbar-chip { background:#f7f9fb; color:#536274; border-color:#dde4ea; }
html[data-ui-theme="light"] .dashboard-page .dashboard-kpi,
html[data-ui-theme="light"] .dashboard-page .premium-panel,
html[data-ui-theme="light"] .dashboard-page .chart-card,
html[data-ui-theme="light"] .dashboard-page .stats-hero,
html[data-ui-theme="light"] .dashboard-page .list-toolbar,
html[data-ui-theme="light"] .dashboard-page .list-card,
html[data-ui-theme="light"] .dashboard-page .form-card,
html[data-ui-theme="light"] .dashboard-page .card,
html[data-ui-theme="light"] .dashboard-page .pivot-hero,
html[data-ui-theme="light"] .dashboard-page .pivot-toolbar,
html[data-ui-theme="light"] .dashboard-page .pivot-card,
html[data-ui-theme="light"] .dashboard-page .dashboard-panel,
html[data-ui-theme="light"] .dashboard-page #calendrier-gestionnaire {
    background:#fff !important;
    color:#243142 !important;
    border-color:#e1e7ed !important;
    box-shadow:0 16px 42px rgba(25,39,55,.07) !important;
}
html[data-ui-theme="light"] .dashboard-page h1,
html[data-ui-theme="light"] .dashboard-page h2,
html[data-ui-theme="light"] .dashboard-page h3,
html[data-ui-theme="light"] .dashboard-page h4,
html[data-ui-theme="light"] .dashboard-page h5,
html[data-ui-theme="light"] .dashboard-page .premium-panel-title,
html[data-ui-theme="light"] .dashboard-page .chart-card-title,
html[data-ui-theme="light"] .dashboard-page .page-heading h1,
html[data-ui-theme="light"] .dashboard-page .dashboard-kpi-value { color:#17212d !important; }
html[data-ui-theme="light"] .dashboard-page .page-heading p,
html[data-ui-theme="light"] .dashboard-page .premium-panel-subtitle,
html[data-ui-theme="light"] .dashboard-page .chart-card-note,
html[data-ui-theme="light"] .dashboard-page .text-muted { color:#6b798a !important; }
html[data-ui-theme="light"] .dashboard-page .form-control,
html[data-ui-theme="light"] .dashboard-page .form-select,
html[data-ui-theme="light"] .dashboard-page textarea.form-control,
html[data-ui-theme="light"] .dashboard-page .input-group-text { background:#f8fafc; color:#17212d; border-color:#dbe2e9; }
html[data-ui-theme="light"] .dashboard-page .form-label { color:#536274; }
html[data-ui-theme="light"] .dashboard-page .dashboard-panel .table,
html[data-ui-theme="light"] .dashboard-page .table { color:#263445; }
html[data-ui-theme="light"] .dashboard-page .dashboard-panel .table thead th,
html[data-ui-theme="light"] .dashboard-page .table thead th { background:#f4f7f9; color:#69788a; border-color:#e1e7ed; }
html[data-ui-theme="light"] .dashboard-page .dashboard-panel .table tbody td,
html[data-ui-theme="light"] .dashboard-page .table tbody td { background:#fff; color:#344151; border-color:#e9edf1; }
html[data-ui-theme="light"] .dashboard-page .dashboard-panel .table .text-muted { color:#788697 !important; }
html[data-ui-theme="light"] .dashboard-page .pagination .page-link { background:#fff; color:#536274; border-color:#dce3ea; }

@media (max-width: 991.98px) {
    .public-page .vehicle-booking-panel { position:static; }
}

/* Utilitaires Bootstrap qui devenaient illisibles sur les surfaces sombres. */
html[data-ui-theme="dark"] .public-page .bg-light,
html[data-ui-theme="dark"] .public-page .bg-white,
html[data-ui-theme="dark"] .public-page .text-bg-light,
html[data-ui-theme="dark"] .client-space-page .bg-light,
html[data-ui-theme="dark"] .client-space-page .bg-white,
html[data-ui-theme="dark"] .client-space-page .text-bg-light {
    background:#0a131c !important;
    color:#e7edf4 !important;
    border-color:rgba(255,255,255,.08) !important;
}
html[data-ui-theme="dark"] .public-page .text-dark,
html[data-ui-theme="dark"] .client-space-page .text-dark { color:#edf2f7 !important; }
html[data-ui-theme="dark"] .public-page .border-bottom,
html[data-ui-theme="dark"] .client-space-page .border-bottom { border-color:rgba(255,255,255,.08) !important; }

/* Le logo officiel contient du blanc : on lui conserve un écrin sombre en thème clair. */
html[data-ui-theme="light"] .public-page .navbar-brand,
html[data-ui-theme="light"] .dashboard-page .dashboard-sidebar-brand a {
    background:#09121b;
    border-radius:12px;
    padding:.34rem .52rem;
}

/* Icône calendrier explicite : visible même lorsque le navigateur fournit une icône native sombre. */
input[type="date"], input[type="datetime-local"] {
    padding-right:2.6rem !important;
    background-repeat:no-repeat !important;
    background-position:right .8rem center !important;
    background-size:17px 17px !important;
}
html[data-ui-theme="dark"] input[type="date"],
html[data-ui-theme="dark"] input[type="datetime-local"] {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dbe5ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") !important;
}
html[data-ui-theme="light"] input[type="date"],
html[data-ui-theme="light"] input[type="datetime-local"] {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23596779' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") !important;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity:0 !important;
    cursor:pointer;
    width:28px;
    height:28px;
}
.public-page .vehicle-detail-media img { object-fit:contain; background:#eef0f2; }


/* ========================================================================== 
   BS LOCATION v5.6 — picker date réellement cliquable
   ========================================================================== */
/*
   Les versions précédentes masquaient l'indicateur natif (opacity:0) et
   dessinaient un calendrier en background. C'était joli mais ce pictogramme
   décoratif ne déclenchait pas systématiquement le sélecteur Edge/Chrome.
   On conserve donc le vrai bouton natif, rendu visible dans les deux thèmes.
*/
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
    padding-right: 1rem !important;
    background-image: none !important;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    width: 20px;
    height: 20px;
    margin-left: .45rem;
}
html[data-ui-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.75) !important;
}
html[data-ui-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator,
html[data-ui-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator {
    filter: none !important;
}

/* ========================================================================
   DASHBOARDS ENRICHIS — pilotage, statistiques et finances (v5.7)
   ======================================================================== */
.overview-insight-grid {
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);
    gap:1rem;
    margin-bottom:1rem;
}
.overview-bottom-grid { grid-template-columns:minmax(330px,.72fr) minmax(0,1.58fr); }
.overview-chart-body { min-height:300px; height:300px; }
.overview-distribution-body {
    min-height:300px;
    display:grid;
    grid-template-columns:minmax(150px,.9fr) minmax(150px,1fr);
    align-items:center;
    gap:1rem;
    padding:1.1rem 1.2rem;
}
.overview-donut { height:205px; min-width:0; }
.overview-distribution-legend { display:grid; gap:.9rem; }
.overview-distribution-legend > div { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.55rem; color:#9eabb9; font-size:.86rem; }
.overview-distribution-legend strong { color:#f5f8fb; font-size:1.08rem; }
.overview-legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.overview-legend-dot.vehicle { background:#2b80c9; }
.overview-legend-dot.apartment { background:#43b98e; }
.occupancy-body { padding:1.1rem 1.2rem 1.2rem; display:grid; gap:1.25rem; }
.occupancy-item > div:first-child { color:#9aa8b8; }
.occupancy-item span { display:block; font-size:.78rem; }
.occupancy-item strong { display:block; margin-top:.15rem; color:#fff; font-size:1.65rem; line-height:1; }
.occupancy-item i { color:#ff8e3f; font-size:1.25rem; }
.occupancy-progress { height:7px; margin-top:.75rem; border-radius:999px; overflow:hidden; background:#1a2733; }
.occupancy-progress span { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#f47b20,#ff9e55); }
.occupancy-progress.apartment span { background:linear-gradient(90deg,#2b80c9,#43b98e); }
.occupancy-footnote { display:flex; gap:.45rem; color:#6f7f90; font-size:.72rem; line-height:1.5; }
.recent-activity-list { padding:.25rem 1.1rem .65rem; }
.recent-activity-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.8rem; padding:.78rem .15rem; border-bottom:1px solid rgba(255,255,255,.055); }
.recent-activity-row:last-child { border-bottom:0; }
.recent-activity-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#111d28; color:#7c8b9b; }
.recent-activity-icon.success { color:#43b98e; background:rgba(67,185,142,.10); }
.recent-activity-icon.warning { color:#f69a46; background:rgba(246,154,70,.10); }
.recent-activity-icon.info { color:#4e9bd7; background:rgba(78,155,215,.10); }
.recent-activity-main { min-width:0; }
.recent-activity-main strong { display:block; color:#eef3f8; font-size:.78rem; }
.recent-activity-main span { display:block; margin-top:.12rem; color:#8190a1; font-size:.72rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-activity-meta { text-align:right; }
.recent-activity-meta small { display:block; color:#667688; font-size:.68rem; }
.recent-activity-meta em { display:block; margin-top:.18rem; font-size:.68rem; font-style:normal; font-weight:700; }
.recent-activity-meta em.success { color:#43b98e; }
.recent-activity-meta em.warning { color:#f69a46; }
.recent-activity-meta em.info { color:#4e9bd7; }
.recent-activity-meta em.secondary { color:#8a98a8; }

.stats-kpi-trend { display:block; margin-top:.38rem; font-size:.68rem; font-weight:750; }
.stats-kpi-trend.up { color:#43b98e; }
.stats-kpi-trend.down { color:#ef6a55; }
.stats-insight-grid { display:grid; grid-template-columns:minmax(330px,.78fr) minmax(0,1.35fr); gap:1rem; margin-top:1rem; }
.stats-activity-body { padding:1.15rem; display:grid; grid-template-columns:210px minmax(0,1fr); gap:1.1rem; align-items:center; min-height:300px; }
.stats-activity-donut { height:210px; }
.stats-activity-summary { display:grid; gap:.75rem; }
.activity-summary-card { padding:.9rem 1rem; border-radius:15px; background:#0b151f; border:1px solid rgba(255,255,255,.07); }
.activity-summary-card > div { display:flex; align-items:center; gap:.5rem; color:#9ca9b8; font-size:.78rem; }
.activity-summary-card > div i { color:#2b80c9; }
.activity-summary-card.apartment > div i { color:#43b98e; }
.activity-summary-card strong { display:block; margin:.25rem 0; color:#fff; font-size:1.55rem; }
.activity-summary-card small { display:block; color:#6f7e8f; font-size:.7rem; }
.activity-summary-card b { display:block; margin-top:.35rem; color:#ff9548; font-size:.82rem; }
.stats-top-table th { font-size:.68rem!important; }
.stats-top-table td { font-size:.76rem!important; }
.stats-type-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.28rem .48rem; border-radius:999px; font-size:.66rem; font-weight:700; }
.stats-type-chip.vehicle { color:#7cb7e6; background:rgba(43,128,201,.10); }
.stats-type-chip.apartment { color:#70d1ad; background:rgba(67,185,142,.10); }

.finance-hero {
    display:flex; justify-content:space-between; align-items:flex-end; gap:1.2rem; flex-wrap:wrap;
    padding:1.4rem 1.5rem; margin-bottom:1rem; border:1px solid rgba(255,255,255,.075); border-radius:24px;
    background:radial-gradient(circle at 90% 0,rgba(255,122,22,.13),transparent 28%),linear-gradient(145deg,#101923,#0b131c);
    box-shadow:0 18px 44px rgba(0,0,0,.22);
}
.finance-hero h1 { margin:0; color:#f6f8fb; font-size:clamp(1.55rem,2.2vw,2.15rem); }
.finance-hero p { margin:.4rem 0 0; max-width:780px; color:#7b8999; }
.finance-hero-links { display:flex; gap:.5rem; }
.finance-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }
.finance-kpi { position:relative; overflow:hidden; min-height:148px; padding:1.05rem 1.1rem; border-radius:19px; background:linear-gradient(145deg,#101923,#0b131c); border:1px solid rgba(255,255,255,.075); box-shadow:0 16px 38px rgba(0,0,0,.20); }
.finance-kpi::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:var(--finance-accent,#f47b20); }
.finance-kpi.orange { --finance-accent:#f47b20; }.finance-kpi.green { --finance-accent:#43b98e; }.finance-kpi.red { --finance-accent:#ef5b4c; }.finance-kpi.blue { --finance-accent:#2b80c9; }
.finance-kpi-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:var(--finance-accent); background:color-mix(in srgb,var(--finance-accent) 11%,#0d1721); margin-bottom:.75rem; }
.finance-kpi-label { color:#8f9dad; font-size:.72rem; text-transform:uppercase; letter-spacing:.045em; font-weight:750; }
.finance-kpi-value { margin-top:.28rem; color:#fff; font-size:clamp(1.15rem,1.65vw,1.55rem); font-weight:800; line-height:1.12; }
.finance-kpi-note { margin-top:.45rem; color:#647486; font-size:.68rem; }
.finance-dashboard-grid { display:grid; gap:1rem; margin-bottom:1rem; }
.finance-dashboard-grid-top { grid-template-columns:minmax(260px,.95fr) minmax(300px,1.05fr) minmax(340px,1.25fr); }
.finance-dashboard-grid-mid { grid-template-columns:minmax(0,1.45fr) minmax(300px,.72fr); }
.finance-dashboard-grid-bottom { grid-template-columns:1.1fr 1fr .82fr; }
.finance-panel { overflow:hidden; border:1px solid rgba(255,255,255,.075); border-radius:20px; background:linear-gradient(145deg,#101923,#0b131c); box-shadow:0 16px 38px rgba(0,0,0,.19); color:#e8eef5; }
.finance-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; padding:.9rem 1rem; border-bottom:1px solid rgba(255,255,255,.07); }
.finance-panel-head h2 { margin:.12rem 0 0; color:#f4f7fa; font-size:.92rem; }
.finance-panel-head a { color:#ff9244; text-decoration:none; font-size:.68rem; font-weight:700; }
.finance-panel-kicker { color:#6e7d8f; font-size:.58rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.finance-list { padding:.15rem .95rem .5rem; }
.finance-list-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.6rem; padding:.68rem 0; border-bottom:1px solid rgba(255,255,255,.055); }
.finance-list-row:last-child { border-bottom:0; }
.finance-status-dot { width:8px; height:8px; border-radius:50%; background:#43b98e; }
.finance-list-row strong { display:block; color:#eaf0f6; font-size:.7rem; }
.finance-list-row small { display:block; margin-top:.12rem; color:#667688; font-size:.61rem; }
.finance-invoice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; padding:.75rem; }
.finance-invoice-card { display:flex; flex-direction:column; gap:.22rem; min-height:126px; padding:.68rem; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:#0b151f; }
.finance-invoice-number { color:#8695a6; font-size:.58rem; font-weight:750; }
.finance-invoice-card strong { color:#e9eef4; font-size:.66rem; }
.finance-invoice-card span { color:#fff; font-size:.77rem; font-weight:800; }
.finance-invoice-card small { color:#ff9449; font-size:.6rem; }
.finance-invoice-card em { margin-top:auto; color:#657487; font-size:.57rem; font-style:normal; }
.finance-donut-wrap { display:grid; grid-template-columns:180px minmax(0,1fr); gap:.8rem; align-items:center; padding:.85rem 1rem 1rem; }
.finance-donut { height:180px; }
.finance-donut-legend { display:grid; gap:.48rem; }
.finance-donut-legend > div { display:grid; grid-template-columns:auto 1fr; gap:.36rem .45rem; align-items:center; }
.finance-donut-legend .legend-dot { width:7px; height:7px; border-radius:50%; background:#f47b20; }
.finance-donut-legend span { color:#8897a8; font-size:.62rem; }
.finance-donut-legend strong { grid-column:2; color:#dfe7ef; font-size:.63rem; }
.finance-order-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; padding:.75rem; }
.finance-order-card { min-height:126px; display:flex; flex-direction:column; gap:.22rem; padding:.7rem; border-radius:12px; border:1px solid rgba(255,255,255,.07); background:#0b151f; text-decoration:none; }
.finance-order-card strong { color:#dce5ee; font-size:.65rem; }.finance-order-card span { color:#8796a7; font-size:.6rem; }.finance-order-card b { color:#fff; font-size:.72rem; }.finance-order-card small { color:#657487; font-size:.58rem; }.finance-order-card em { margin-top:auto; color:#f39849; font-size:.58rem; font-style:normal; font-weight:700; }
.finance-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; padding:.85rem; }
.finance-summary-grid > div { padding:.68rem; border-radius:11px; border:1px solid rgba(255,255,255,.07); background:#0b151f; }
.finance-summary-grid > div.wide { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; }
.finance-summary-grid span { display:block; color:#778798; font-size:.62rem; }.finance-summary-grid strong { display:block; margin-top:.22rem; color:#fff; font-size:1rem; }
.finance-table { --bs-table-bg:transparent!important; color:#d4dde6!important; font-size:.66rem!important; }
.finance-table thead th { background:#0a121a!important; color:#718196!important; font-size:.57rem!important; text-transform:uppercase; }
.finance-table tbody td { color:#c9d3de!important; border-color:rgba(255,255,255,.055)!important; padding:.66rem .72rem!important; }
.finance-table tbody td small { display:block; color:#667587; font-size:.56rem; }
.finance-empty { padding:1.3rem; color:#718093; font-size:.72rem; }

html[data-ui-theme="light"] .overview-distribution-legend > div,
html[data-ui-theme="light"] .occupancy-item > div:first-child { color:#69798b; }
html[data-ui-theme="light"] .overview-distribution-legend strong,
html[data-ui-theme="light"] .occupancy-item strong,
html[data-ui-theme="light"] .recent-activity-main strong,
html[data-ui-theme="light"] .activity-summary-card strong { color:#1e2d3d; }
html[data-ui-theme="light"] .occupancy-progress { background:#e9eef3; }
html[data-ui-theme="light"] .recent-activity-row { border-bottom-color:#e9edf2; }
html[data-ui-theme="light"] .recent-activity-icon { background:#eef3f7; }
html[data-ui-theme="light"] .activity-summary-card { background:#f8fafc; border-color:#e4eaf0; }

html[data-ui-theme="light"] .finance-hero,
html[data-ui-theme="light"] .finance-kpi,
html[data-ui-theme="light"] .finance-panel { background:#fff; color:#243142; border-color:#e1e7ed; box-shadow:0 16px 42px rgba(25,39,55,.07); }
html[data-ui-theme="light"] .finance-hero h1,
html[data-ui-theme="light"] .finance-kpi-value,
html[data-ui-theme="light"] .finance-panel-head h2,
html[data-ui-theme="light"] .finance-list-row strong,
html[data-ui-theme="light"] .finance-invoice-card strong,
html[data-ui-theme="light"] .finance-invoice-card span,
html[data-ui-theme="light"] .finance-order-card strong,
html[data-ui-theme="light"] .finance-order-card b,
html[data-ui-theme="light"] .finance-summary-grid strong { color:#1c2b3b; }
html[data-ui-theme="light"] .finance-panel-head { border-bottom-color:#e8edf2; }
html[data-ui-theme="light"] .finance-invoice-card,
html[data-ui-theme="light"] .finance-order-card,
html[data-ui-theme="light"] .finance-summary-grid > div { background:#f8fafc; border-color:#e3e9ef; }
html[data-ui-theme="light"] .finance-table { color:#253446!important; }
html[data-ui-theme="light"] .finance-table thead th { background:#f3f6f9!important; color:#66778a!important; }
html[data-ui-theme="light"] .finance-table tbody td { color:#334558!important; border-color:#e5eaf0!important; }

@media (max-width:1350px) {
    .finance-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .finance-dashboard-grid-top { grid-template-columns:1fr 1fr; }
    .finance-expense-panel { grid-column:1/-1; }
    .finance-dashboard-grid-bottom { grid-template-columns:1fr 1fr; }
    .finance-dashboard-grid-bottom > :last-child { grid-column:1/-1; }
}
@media (max-width:1100px) {
    .overview-insight-grid,.overview-bottom-grid,.stats-insight-grid { grid-template-columns:1fr; }
    .finance-dashboard-grid-top,.finance-dashboard-grid-mid,.finance-dashboard-grid-bottom { grid-template-columns:1fr; }
    .finance-expense-panel,.finance-dashboard-grid-bottom > :last-child { grid-column:auto; }
}
@media (max-width:767.98px) {
    .overview-distribution-body,.stats-activity-body,.finance-donut-wrap { grid-template-columns:1fr; }
    .overview-donut,.stats-activity-donut,.finance-donut { height:190px; }
    .finance-kpi-grid { grid-template-columns:1fr; }
    .finance-invoice-grid,.finance-order-grid { grid-template-columns:1fr; }
}

/* ========================================================================
   V5.8 — Période de séjour visible + lisibilité du portail clair
   ======================================================================== */
.search-context-period,
.stay-context-period {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.55rem 1rem;
    margin:.35rem 0 .25rem;
    font-weight:750;
    font-size:.92rem;
}
.search-context-period span {
    display:inline-flex;
    align-items:center;
    gap:.35rem;
}
.search-context-period i,
.stay-context-period i { color:var(--brand-orange); }

.stay-period-banner {
    display:inline-flex;
    align-items:center;
    gap:.8rem;
    padding:.8rem 1rem;
    border-radius:16px;
    border:1px solid rgba(255,122,22,.22);
    background:rgba(255,122,22,.075);
    color:#dce5ef;
}
.stay-period-icon {
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:rgba(255,122,22,.13);
    color:#ff9146;
    font-size:1.05rem;
}
.stay-period-label {
    color:#ff9b59;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.68rem;
    font-weight:800;
}
.stay-period-main {
    color:#f5f8fb;
    font-size:1rem;
    font-weight:800;
    margin-top:.05rem;
}
.stay-period-main i { margin:0 .32rem; color:#ff9146; }
.stay-period-sub {
    color:#93a2b4;
    font-size:.78rem;
    margin-top:.12rem;
}
.stay-summary-period strong { color:#edf3f8; font-size:.96rem; }
.stay-summary-period .small:last-child { color:#96a3b4; }

/* Recherche : les compteurs et états vides doivent toujours rester lisibles. */
.public-page .search-result-count {
    color:#b9c5d2;
    font-size:.92rem;
    font-weight:600;
    padding:.45rem .65rem;
    border-radius:10px;
}
.public-page .search-result-count i { color:#ff9146; }
.public-page .empty-state .fw-semibold,
.public-page .empty-state small { color:#cbd5df !important; }
.public-page .search-context-banner strong,
.public-page .stay-context-hint strong { color:#edf3f8; }
.public-page .search-context-banner .small,
.public-page .stay-context-hint span { color:#aab7c5; }

html[data-ui-theme="light"] .public-page .search-context-banner,
html[data-ui-theme="light"] .public-page .stay-context-hint,
html[data-ui-theme="light"] .public-page .search-result-count {
    background:#fff5ed !important;
    border-color:#f3caaa !important;
    color:#334155 !important;
}
html[data-ui-theme="light"] .public-page .search-context-banner strong,
html[data-ui-theme="light"] .public-page .stay-context-hint strong {
    color:#243142 !important;
}
html[data-ui-theme="light"] .public-page .search-context-banner .small,
html[data-ui-theme="light"] .public-page .stay-context-hint span {
    color:#625d59 !important;
}
html[data-ui-theme="light"] .public-page .search-context-period,
html[data-ui-theme="light"] .public-page .stay-context-period {
    color:#b44b0c !important;
}
html[data-ui-theme="light"] .public-page .search-result-count i { color:#e86922 !important; }
html[data-ui-theme="light"] .public-page .empty-state .fw-semibold { color:#253244 !important; }
html[data-ui-theme="light"] .public-page .empty-state small { color:#667587 !important; }
html[data-ui-theme="light"] .public-page .stay-period-banner {
    background:#fff4eb;
    border-color:#f3c7a7;
    color:#253244;
}
html[data-ui-theme="light"] .public-page .stay-period-icon { background:#ffe8d7; color:#d85f18; }
html[data-ui-theme="light"] .public-page .stay-period-label { color:#d85f18; }
html[data-ui-theme="light"] .public-page .stay-period-main { color:#243142; }
html[data-ui-theme="light"] .public-page .stay-period-sub { color:#667587; }
html[data-ui-theme="light"] .public-page .stay-summary-period strong { color:#253244; }
html[data-ui-theme="light"] .public-page .stay-summary-period .small:last-child { color:#667587; }
html[data-ui-theme="light"] .public-page .stay-trust > div { color:#647386 !important; }
html[data-ui-theme="light"] .public-page .stay-item-meta { color:#667587 !important; }
html[data-ui-theme="light"] .public-page .stay-item-body h3 { color:#253244 !important; }

@media (max-width: 767.98px) {
    .stay-period-banner { width:100%; }
    .search-context-period { gap:.35rem .7rem; }
}

/* ========================================================================
   V5.10 — AUDIT GLOBAL THÈME CLAIR / CONTRASTES
   Portail + espace client + back-office
   Objectif : aucune surface sombre résiduelle avec texte sombre en thème clair.
   ======================================================================== */
html[data-ui-theme="light"] { color-scheme: light; }
html[data-ui-theme="light"] body.bs-app { color:#243142; background:#f4f6f8; }

/* ------------------------------------------------------------------------
   PORTAIL PUBLIC — surfaces, textes, formulaires, panier, checkout, auth
   ------------------------------------------------------------------------ */
html[data-ui-theme="light"] .public-page .stay-checkout-card,
html[data-ui-theme="light"] .public-page .booking-side-card,
html[data-ui-theme="light"] .public-page .saved-stays-panel,
html[data-ui-theme="light"] .public-page .saved-stay-card,
html[data-ui-theme="light"] .public-page .stay-item-card,
html[data-ui-theme="light"] .public-page .stay-summary,
html[data-ui-theme="light"] .public-page .search-panel,
html[data-ui-theme="light"] .public-page .card-bien,
html[data-ui-theme="light"] .public-page .property-page .card,
html[data-ui-theme="light"] .public-page .vehicle-detail-product,
html[data-ui-theme="light"] .public-page .vehicle-booking-panel,
html[data-ui-theme="light"] .public-page .empty-state {
    background:#ffffff !important;
    color:#253244 !important;
    border-color:#e2e8ee !important;
    box-shadow:0 18px 46px rgba(28,42,58,.08) !important;
}
html[data-ui-theme="light"] .public-page .stay-item-unavailable {
    background:#fff8f8 !important;
    border-color:#efc7ca !important;
}
html[data-ui-theme="light"] .public-page .stay-payment-option,
html[data-ui-theme="light"] .public-page .payment-options label {
    background:#f7f9fb !important;
    color:#253244 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .public-page .stay-payment-option:has(input:checked),
html[data-ui-theme="light"] .public-page .payment-options label:has(input:checked) {
    background:#fff1e7 !important;
    color:#253244 !important;
    border-color:#f0a678 !important;
    box-shadow:0 0 0 3px rgba(232,105,34,.09) !important;
}
html[data-ui-theme="light"] .public-page .stay-payment-option strong,
html[data-ui-theme="light"] .public-page .payment-options label strong,
html[data-ui-theme="light"] .public-page .stay-mini-line strong,
html[data-ui-theme="light"] .public-page .saved-stay-card strong,
html[data-ui-theme="light"] .public-page .stay-summary strong { color:#1f2d3d !important; }
html[data-ui-theme="light"] .public-page .stay-payment-option small,
html[data-ui-theme="light"] .public-page .payment-options label small,
html[data-ui-theme="light"] .public-page .stay-mini-line .text-muted,
html[data-ui-theme="light"] .public-page .saved-stay-meta { color:#68778a !important; }
html[data-ui-theme="light"] .public-page .property-chip {
    background:#f4f7f9 !important;
    color:#455568 !important;
    border-color:#dde5ec !important;
}
html[data-ui-theme="light"] .public-page .vehicle-rate-strip,
html[data-ui-theme="light"] .public-page .vehicle-notes-details {
    background:#f8fafc !important;
    color:#253244 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .public-page .form-control,
html[data-ui-theme="light"] .public-page .form-select,
html[data-ui-theme="light"] .public-page textarea,
html[data-ui-theme="light"] .public-page input[type="date"],
html[data-ui-theme="light"] .public-page input[type="datetime-local"],
html[data-ui-theme="light"] .public-page input[type="time"],
html[data-ui-theme="light"] .public-page input[type="month"] {
    background:#f8fafc !important;
    color:#17212d !important;
    border-color:#d8e0e8 !important;
}
html[data-ui-theme="light"] .public-page .form-control::placeholder,
html[data-ui-theme="light"] .public-page textarea::placeholder { color:#8a97a6 !important; opacity:1; }
html[data-ui-theme="light"] .public-page .form-control:disabled,
html[data-ui-theme="light"] .public-page .form-select:disabled,
html[data-ui-theme="light"] .public-page .form-control[readonly] {
    background:#eef2f5 !important;
    color:#5a6878 !important;
}
html[data-ui-theme="light"] .public-page select option {
    background:#ffffff !important;
    color:#17212d !important;
}
html[data-ui-theme="light"] .public-page .form-label,
html[data-ui-theme="light"] .public-page label { color:#435266; }
html[data-ui-theme="light"] .public-page .form-text { color:#6e7c8d !important; }
html[data-ui-theme="light"] .public-page .alert-light {
    background:#f8fafc !important;
    color:#405063 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .public-page .bg-white { background:#fff !important; color:#253244 !important; }
html[data-ui-theme="light"] .public-page .bg-light,
html[data-ui-theme="light"] .public-page .text-bg-light {
    background:#f5f7f9 !important;
    color:#354457 !important;
    border-color:#dfe5eb !important;
}
html[data-ui-theme="light"] .public-page .badge.text-bg-light {
    background:#f2f5f8 !important;
    color:#405063 !important;
    border-color:#dce4eb !important;
}
html[data-ui-theme="light"] .public-page .btn-outline-dark,
html[data-ui-theme="light"] .public-page .btn-outline-secondary,
html[data-ui-theme="light"] .public-page .btn-outline-primary {
    color:#344151 !important;
    background:#fff !important;
    border-color:#cfd8e1 !important;
}
html[data-ui-theme="light"] .public-page .btn-outline-dark:hover,
html[data-ui-theme="light"] .public-page .btn-outline-secondary:hover,
html[data-ui-theme="light"] .public-page .btn-outline-primary:hover {
    color:#a74710 !important;
    background:#fff3eb !important;
    border-color:#efad83 !important;
}

/* Auth : panneau formulaire clair, panneau marque volontairement sombre. */
html[data-ui-theme="light"] .public-page .auth-page { background:#f4f6f8 !important; }
html[data-ui-theme="light"] .public-page .auth-shell {
    background:#fff !important;
    border-color:#e2e8ee !important;
    box-shadow:0 30px 72px rgba(26,40,55,.12) !important;
}
html[data-ui-theme="light"] .public-page .auth-form-panel { background:#fff !important; color:#253244 !important; }
html[data-ui-theme="light"] .public-page .auth-form-panel .auth-title,
html[data-ui-theme="light"] .public-page .auth-form-panel h1,
html[data-ui-theme="light"] .public-page .auth-form-panel h2 { color:#17212d !important; }
html[data-ui-theme="light"] .public-page .auth-form-panel .form-control,
html[data-ui-theme="light"] .public-page .auth-form-panel .form-select {
    background:#f8fafc !important;
    color:#17212d !important;
    border-color:#d8e0e8 !important;
}

/* ------------------------------------------------------------------------
   ESPACE CLIENT — audit complet des sous-composants sombres
   ------------------------------------------------------------------------ */
html[data-ui-theme="light"] .client-space-page .client-sidebar {
    background:#ffffff !important;
    color:#253244 !important;
    border-color:#e1e7ed !important;
    box-shadow:0 18px 46px rgba(25,39,55,.08) !important;
}
html[data-ui-theme="light"] .client-space-page .client-sidebar-top,
html[data-ui-theme="light"] .client-space-page .client-contact-list,
html[data-ui-theme="light"] .client-space-page .client-stay-footer,
html[data-ui-theme="light"] .client-space-page .client-panel-head,
html[data-ui-theme="light"] .client-space-page .client-list-item {
    border-color:#e8edf2 !important;
}
html[data-ui-theme="light"] .client-space-page .client-welcome { color:#8a96a5 !important; }
html[data-ui-theme="light"] .client-space-page .client-name { color:#1d2a39 !important; }
html[data-ui-theme="light"] .client-space-page .client-type {
    background:#fff0e6 !important;
    color:#b34d13 !important;
}
html[data-ui-theme="light"] .client-space-page .client-contact-list,
html[data-ui-theme="light"] .client-space-page .client-contact-list div,
html[data-ui-theme="light"] .client-space-page .client-contact-list span { color:#647386 !important; }
html[data-ui-theme="light"] .client-space-page .client-contact-list i { color:#e66f27 !important; }
html[data-ui-theme="light"] .client-space-page .client-mini-stat {
    background:#f6f8fa !important;
    border-color:#e1e7ed !important;
}
html[data-ui-theme="light"] .client-space-page .client-mini-stat span { color:#69788a !important; }
html[data-ui-theme="light"] .client-space-page .client-mini-stat strong { color:#1c2938 !important; }
html[data-ui-theme="light"] .client-space-page .client-main-header,
html[data-ui-theme="light"] .client-space-page .client-panel,
html[data-ui-theme="light"] .client-space-page .client-kpi-card,
html[data-ui-theme="light"] .client-space-page .client-stay-card,
html[data-ui-theme="light"] .client-space-page .client-empty-state,
html[data-ui-theme="light"] .client-space-page .card {
    background:#ffffff !important;
    color:#253244 !important;
    border-color:#e1e7ed !important;
    box-shadow:0 18px 46px rgba(25,39,55,.075) !important;
}
html[data-ui-theme="light"] .client-space-page .client-main-header {
    background:linear-gradient(135deg,#ffffff,#fff8f3) !important;
}
html[data-ui-theme="light"] .client-space-page .client-subcard,
html[data-ui-theme="light"] .client-space-page .client-info-grid > div,
html[data-ui-theme="light"] .client-space-page .payment-choice {
    background:#f7f9fb !important;
    color:#253244 !important;
    border-color:#e0e7ee !important;
}
html[data-ui-theme="light"] .client-space-page .client-subcard strong,
html[data-ui-theme="light"] .client-space-page .client-info-grid strong,
html[data-ui-theme="light"] .client-space-page .client-list-item strong,
html[data-ui-theme="light"] .client-space-page .client-stay-card strong { color:#1d2b3a; }
html[data-ui-theme="light"] .client-space-page .client-subcard .text-muted,
html[data-ui-theme="light"] .client-space-page .client-info-grid span,
html[data-ui-theme="light"] .client-space-page .client-list-item .text-muted { color:#68778a !important; }
html[data-ui-theme="light"] .client-space-page .client-highlight {
    background:linear-gradient(135deg,#fff4eb,#ffffff) !important;
    color:#253244 !important;
    border:1px solid #f1cfb8 !important;
    box-shadow:0 18px 42px rgba(217,102,31,.08) !important;
}
html[data-ui-theme="light"] .client-space-page .client-highlight h3 { color:#1d2b3a !important; }
html[data-ui-theme="light"] .client-space-page .client-highlight p { color:#637386 !important; }
html[data-ui-theme="light"] .client-space-page .client-doc-card {
    background:#f7f9fb !important;
    color:#253244 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .client-space-page .client-doc-label { color:#647386 !important; }
html[data-ui-theme="light"] .client-space-page .client-doc-card img { border-color:#dfe6ed !important; }
html[data-ui-theme="light"] .client-space-page .client-doc-card.full img { background:#eef2f5 !important; }
html[data-ui-theme="light"] .client-space-page .client-doc-empty {
    background:#eef2f5 !important;
    color:#778697 !important;
}
html[data-ui-theme="light"] .client-space-page .client-mobile-nav-toggle {
    background:#fff !important;
    color:#253244 !important;
    border-color:#dfe5eb !important;
    box-shadow:0 12px 28px rgba(25,39,55,.06) !important;
}
html[data-ui-theme="light"] .client-space-page .client-table { color:#263445 !important; }
html[data-ui-theme="light"] .client-space-page .client-table thead th {
    background:#f3f6f9 !important;
    color:#657589 !important;
    border-color:#e1e7ed !important;
}
html[data-ui-theme="light"] .client-space-page .client-table tbody td {
    background:#fff !important;
    color:#344558 !important;
    border-color:#e8edf2 !important;
}
html[data-ui-theme="light"] .client-space-page .client-table tbody tr:hover > * {
    --bs-table-bg-state:#fff6ef;
    color:#263445 !important;
}
html[data-ui-theme="light"] .client-space-page .form-control,
html[data-ui-theme="light"] .client-space-page .form-select,
html[data-ui-theme="light"] .client-space-page textarea {
    background:#f8fafc !important;
    color:#17212d !important;
    border-color:#d8e0e8 !important;
}
html[data-ui-theme="light"] .client-space-page .form-control::placeholder,
html[data-ui-theme="light"] .client-space-page textarea::placeholder { color:#8a97a6 !important; opacity:1; }
html[data-ui-theme="light"] .client-space-page select option { background:#fff !important; color:#17212d !important; }
html[data-ui-theme="light"] .client-space-page .form-label { color:#536274 !important; }
html[data-ui-theme="light"] .client-space-page .form-text { color:#6c7a8b !important; }
html[data-ui-theme="light"] .client-space-page .alert-light {
    background:#f8fafc !important;
    color:#405063 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .client-space-page .bg-light,
html[data-ui-theme="light"] .client-space-page .text-bg-light {
    background:#f4f7f9 !important;
    color:#3f5063 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .client-space-page .bg-white { background:#fff !important; color:#253244 !important; }
html[data-ui-theme="light"] .client-space-page .badge.text-bg-light {
    background:#f1f5f8 !important;
    color:#405063 !important;
    border-color:#dce4eb !important;
}
html[data-ui-theme="light"] .client-space-page .btn-outline-secondary,
html[data-ui-theme="light"] .client-space-page .btn-outline-dark,
html[data-ui-theme="light"] .client-space-page .btn-outline-primary {
    color:#344151 !important;
    background:#fff !important;
    border-color:#cfd8e1 !important;
}
html[data-ui-theme="light"] .client-space-page .btn-outline-secondary:hover,
html[data-ui-theme="light"] .client-space-page .btn-outline-dark:hover,
html[data-ui-theme="light"] .client-space-page .btn-outline-primary:hover {
    color:#a74710 !important;
    background:#fff3eb !important;
    border-color:#efad83 !important;
}

/* ------------------------------------------------------------------------
   BACK-OFFICE — composants spécialisés qui échappaient au thème global
   ------------------------------------------------------------------------ */
html[data-ui-theme="light"] .dashboard-page .dashboard-view-tabs {
    background:#ffffff !important;
    border-color:#e1e7ed !important;
    box-shadow:0 12px 30px rgba(25,39,55,.06) !important;
}
html[data-ui-theme="light"] .dashboard-page .dashboard-view-tab { color:#657487 !important; }
html[data-ui-theme="light"] .dashboard-page .dashboard-view-tab:hover { color:#253244 !important; background:#f5f7f9 !important; }
html[data-ui-theme="light"] .dashboard-page .dashboard-view-tab.active {
    color:#fff !important;
    background:linear-gradient(135deg,#e86812,#ff8a34) !important;
}
html[data-ui-theme="light"] .dashboard-page .stats-filter-bar,
html[data-ui-theme="light"] .dashboard-page .stats-footnote,
html[data-ui-theme="light"] .dashboard-page .form-section,
html[data-ui-theme="light"] .dashboard-page .rental-type-picker .form-check-label,
html[data-ui-theme="light"] .dashboard-page .apartment-map-shell,
html[data-ui-theme="light"] .dashboard-page .map-coordinate-pill {
    background:#f7f9fb !important;
    color:#435266 !important;
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .dashboard-page .premium-empty-icon {
    background:#f2f5f8 !important;
    color:#df6a22 !important;
}
html[data-ui-theme="light"] .dashboard-page .dashboard-kpi-icon {
    background:color-mix(in srgb,var(--kpi-accent,#ff7a16) 9%,#fff) !important;
}
html[data-ui-theme="light"] .dashboard-page .form-control,
html[data-ui-theme="light"] .dashboard-page .form-select,
html[data-ui-theme="light"] .dashboard-page textarea.form-control,
html[data-ui-theme="light"] .dashboard-page .input-group-text {
    background:#f8fafc !important;
    color:#17212d !important;
    border-color:#d8e0e8 !important;
}
html[data-ui-theme="light"] .dashboard-page .form-control::placeholder,
html[data-ui-theme="light"] .dashboard-page textarea::placeholder { color:#8a97a6 !important; opacity:1; }
html[data-ui-theme="light"] .dashboard-page .page-heading-eyebrow,
html[data-ui-theme="light"] .dashboard-page .form-section-title,
html[data-ui-theme="light"] .dashboard-page .form-section-title * {
    color:#2d3e51 !important;
}
html[data-ui-theme="light"] .dashboard-page .form-section-title i {
    background:#fff0e6 !important;
    color:#d7631c !important;
}
html[data-ui-theme="light"] .dashboard-page .form-label {
    color:#3d4e61 !important;
    font-weight:700 !important;
}
html[data-ui-theme="light"] .dashboard-page .form-text,
html[data-ui-theme="light"] .dashboard-page .small.text-muted,
html[data-ui-theme="light"] .dashboard-page .text-muted.small {
    color:#607185 !important;
}
html[data-ui-theme="light"] .dashboard-page .rental-summary .card-header,
html[data-ui-theme="light"] .dashboard-page .card-header {
    color:#203042 !important;
}
html[data-ui-theme="light"] .dashboard-page .rental-summary .card-header .badge {
    background:#eef3f7 !important;
    color:#415163 !important;
}
html[data-ui-theme="light"] .dashboard-page select option { background:#fff !important; color:#17212d !important; }
html[data-ui-theme="light"] .dashboard-page .form-control:disabled,
html[data-ui-theme="light"] .dashboard-page .form-select:disabled,
html[data-ui-theme="light"] .dashboard-page .form-control[readonly] {
    background:#eef2f5 !important;
    color:#5a6878 !important;
}
html[data-ui-theme="light"] .dashboard-page .bg-light,
html[data-ui-theme="light"] .dashboard-page .text-bg-light {
    background:#f3f6f9 !important;
    color:#405063 !important;
    border-color:#dce4eb !important;
}
html[data-ui-theme="light"] .dashboard-page .bg-white { background:#fff !important; color:#253244 !important; }
html[data-ui-theme="light"] .dashboard-page .badge.text-bg-light,
html[data-ui-theme="light"] .dashboard-page .badge.bg-dark-subtle {
    background:#eef3f7 !important;
    color:#405063 !important;
    border-color:#d9e2ea !important;
}
html[data-ui-theme="light"] .dashboard-page .btn-outline-secondary,
html[data-ui-theme="light"] .dashboard-page .btn-outline-dark {
    color:#435266 !important;
    background:#fff !important;
    border-color:#cfd8e1 !important;
}
html[data-ui-theme="light"] .dashboard-page .btn-outline-secondary:hover,
html[data-ui-theme="light"] .dashboard-page .btn-outline-dark:hover {
    color:#a74710 !important;
    background:#fff3eb !important;
    border-color:#efad83 !important;
}
html[data-ui-theme="light"] .dashboard-page .pagination .page-item.disabled .page-link {
    background:#f1f4f7 !important;
    color:#9aa5b2 !important;
}
html[data-ui-theme="light"] .dashboard-page .pivot-chip {
    background:#fff !important;
    color:#6d3a17 !important;
    border-color:#f0d4c2 !important;
}
html[data-ui-theme="light"] .dashboard-page .pivot-table th {
    border-color:#dfe6ed !important;
}
html[data-ui-theme="light"] .dashboard-page .pivot-table td {
    border-color:#e7edf2 !important;
}
html[data-ui-theme="light"] .dashboard-page .pivot-total-row td,
html[data-ui-theme="light"] .dashboard-page .pivot-total-row .pivot-bien {
    color:#6f2600 !important;
    background:linear-gradient(180deg,#f8e2d0,#f4d4ba) !important;
}

/* ------------------------------------------------------------------------
   Contrastes Bootstrap transversaux en thème clair
   ------------------------------------------------------------------------ */
html[data-ui-theme="light"] .public-page .text-dark,
html[data-ui-theme="light"] .client-space-page .text-dark,
html[data-ui-theme="light"] .dashboard-page .text-dark { color:#253244 !important; }
html[data-ui-theme="light"] .public-page .border,
html[data-ui-theme="light"] .client-space-page .border,
html[data-ui-theme="light"] .dashboard-page .border { border-color:#dfe6ed !important; }
html[data-ui-theme="light"] .public-page .border-bottom,
html[data-ui-theme="light"] .client-space-page .border-bottom,
html[data-ui-theme="light"] .dashboard-page .border-bottom { border-color:#e5ebf0 !important; }

/* Les textes secondaires ne doivent jamais descendre sous un contraste lisible. */
html[data-ui-theme="light"] .public-page .text-muted,
html[data-ui-theme="light"] .client-space-page .text-muted,
html[data-ui-theme="light"] .dashboard-page .text-muted { color:#667587 !important; }

/* Derniers composants premium audités en thème clair. */
html[data-ui-theme="light"] .public-page .category-card-premium,
html[data-ui-theme="light"] .capability-item {
    background:#f7f9fb !important;
    color:#334357 !important;
    border-color:#dfe6ed !important;
    box-shadow:none !important;
}
html[data-ui-theme="light"] .public-page .category-card-premium:hover,
html[data-ui-theme="light"] .capability-item:hover {
    background:#fff3eb !important;
    color:#253244 !important;
    border-color:#efb28c !important;
    box-shadow:0 16px 34px rgba(232,105,34,.08) !important;
}
html[data-ui-theme="light"] .public-page .category-card-premium .category-title { color:#1e2d3d !important; }
html[data-ui-theme="light"] .public-page .category-card-premium .category-text { color:#667587 !important; }
html[data-ui-theme="light"] .public-page .category-card-premium .category-arrow { color:#df6a22 !important; }
html[data-ui-theme="light"] .capability-item i { background:#fff0e6 !important; color:#df6a22 !important; }
html[data-ui-theme="light"] .dashboard-page .finance-kpi-icon {
    background:color-mix(in srgb,var(--finance-accent,#ff7a16) 9%,#fff) !important;
}

/* ========================================================================== 
   BS LOCATION — Espace partenaire SaaS / marketplace
   ========================================================================== */
.partner-page { background: var(--surface-page); }
.partner-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 80px); }
.partner-sidebar { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 1.15rem; background: #101721; border-right: 1px solid rgba(255,255,255,.06); color: #fff; }
.partner-brand-card { display:flex; align-items:center; gap:.85rem; padding:1rem; border:1px solid rgba(255,255,255,.10); border-radius:18px; background:rgba(255,255,255,.055); box-shadow:0 16px 34px rgba(0,0,0,.14); }
.partner-brand-icon { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; border-radius:14px; background:linear-gradient(135deg,var(--brand-orange),#ff9c61); color:#fff; font-size:1.2rem; }
.partner-kicker { color:var(--brand-orange-deep); font-size:.7rem; line-height:1.3; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.partner-sidebar .partner-kicker { color:#ffae7d; }
.partner-name { margin-top:.15rem; color:#fff; font-weight:800; font-family:var(--brand-font-heading); }
.partner-code { color:#9daabd; font-size:.76rem; }
.partner-nav { display:flex; flex-direction:column; gap:.25rem; margin-top:1.15rem; }
.partner-nav-title { margin:1.2rem .75rem .35rem; color:#75849a; font-size:.67rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.partner-nav-link { display:flex; align-items:center; gap:.72rem; min-height:44px; padding:.65rem .78rem; border-radius:12px; color:#c6d0dd; font-weight:650; transition:.18s ease; }
.partner-nav-link > i { width:20px; text-align:center; color:#8999ae; }
.partner-nav-link:hover { color:#fff; background:rgba(255,255,255,.07); }
.partner-nav-link:hover > i { color:#fff; }
.partner-nav-link.active { color:#fff; background:linear-gradient(135deg,rgba(232,105,34,.30),rgba(232,105,34,.13)); box-shadow:inset 3px 0 0 var(--brand-orange); }
.partner-nav-link.active > i { color:#ffae7d; }
.partner-nav-link.disabled { opacity:.55; pointer-events:none; }
.partner-nav-badge { margin-left:auto; display:inline-flex; min-width:24px; height:24px; align-items:center; justify-content:center; padding:0 .42rem; border-radius:999px; color:#d4deea; background:rgba(255,255,255,.08); font-size:.7rem; }
.partner-nav-badge.alert { color:#fff; background:var(--brand-orange); }
.partner-sidebar-footer { margin-top:1.2rem; padding:1rem; border-radius:14px; background:rgba(255,255,255,.04); color:#dce3ec; }
.partner-sidebar-footer .text-muted { color:#8391a5 !important; }
.partner-main { min-width:0; padding:1.55rem clamp(1rem,2.7vw,2.5rem) 3rem; }
.partner-mobile-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; padding:.85rem 1rem; border:1px solid var(--border-soft); border-radius:16px; background:var(--surface-card); }
.partner-page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1.2rem; margin-bottom:1.3rem; }
.partner-page-head h1 { margin:.12rem 0 .3rem; font-size:clamp(1.65rem,2.6vw,2.35rem); font-weight:800; }
.partner-page-head p { margin:0; color:var(--text-muted); max-width:760px; }
.partner-back { display:inline-flex; gap:.4rem; align-items:center; margin-bottom:.5rem; color:var(--text-muted); font-size:.82rem; font-weight:700; }
.partner-back:hover { color:var(--brand-orange-deep); }
.partner-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.partner-kpi { display:flex; align-items:center; gap:.85rem; min-height:122px; padding:1.05rem; border:1px solid var(--border-soft); border-radius:18px; background:var(--surface-card); box-shadow:var(--shadow-xs); }
.partner-kpi .kpi-icon { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border-radius:14px; color:var(--brand-orange-deep); background:var(--brand-orange-soft); font-size:1.15rem; }
.partner-kpi span, .partner-kpi small { display:block; color:var(--text-muted); }
.partner-kpi strong { display:block; margin:.15rem 0; color:var(--text-main); font-family:var(--brand-font-heading); font-size:1.45rem; line-height:1.2; }
.partner-kpi.money .kpi-icon { color:#0f6f4c; background:#eaf7f1; }
.partner-panel { overflow:hidden; border:1px solid var(--border-soft); border-radius:20px; background:var(--surface-card); box-shadow:var(--shadow-xs); }
.partner-panel-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 1.2rem; border-bottom:1px solid var(--border-soft); }
.partner-panel-head h2 { margin:.1rem 0 0; font-size:1.05rem; font-weight:800; }
.eyebrow { display:block; color:var(--brand-orange-deep); font-size:.67rem; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.partner-table thead th { background:var(--surface-muted); }
.partner-table td { font-size:.88rem; }
.partner-activity-list { padding:.35rem 1rem; }
.partner-activity { display:flex; align-items:center; gap:.7rem; padding:.78rem .2rem; border-bottom:1px solid var(--border-soft); color:var(--text-main); }
.partner-activity:last-child { border-bottom:0; }
.partner-activity:hover { color:var(--text-main); }
.partner-activity .activity-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color:var(--brand-orange-deep); background:var(--brand-orange-soft); }
.partner-activity span:not(.badge) { display:block; color:var(--text-muted); font-size:.77rem; }
.partner-quick-card { display:flex; align-items:center; gap:.8rem; min-height:88px; padding:1rem; border:1px solid var(--border-soft); border-radius:18px; background:var(--surface-card); color:var(--text-main); box-shadow:var(--shadow-xs); }
.partner-quick-card > i:first-child { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:#fff; background:var(--brand-orange); }
.partner-quick-card strong, .partner-quick-card span { display:block; }
.partner-quick-card span { margin-top:.1rem; color:var(--text-muted); font-size:.77rem; }
.partner-quick-card:hover { color:var(--text-main); border-color:#efc5ad; box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.partner-form-card { max-width:1040px; padding:1.35rem; border:1px solid var(--border-soft); border-radius:20px; background:var(--surface-card); box-shadow:var(--shadow-xs); }
.partner-form-card .form-label { color:var(--text-main); }
.partner-check { display:flex; align-items:flex-start; gap:.7rem; padding:.9rem 1rem; border:1px solid var(--border-soft); border-radius:14px; background:var(--surface-muted); }
.partner-check .form-check-input { flex:0 0 auto; margin-top:.15rem; }
.partner-radio-group ul { display:flex; gap:.6rem; padding:0; list-style:none; }
.partner-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.partner-asset-card { overflow:hidden; border:1px solid var(--border-soft); border-radius:20px; background:var(--surface-card); box-shadow:var(--shadow-xs); }
.partner-asset-card .asset-photo { position:relative; min-height:190px; background:#edf0f4; }
.partner-asset-card .asset-photo img { width:100%; height:190px; object-fit:cover; display:block; }
.partner-asset-card .asset-placeholder { display:grid; place-items:center; height:190px; color:#9aa3af; font-size:2rem; }
.asset-status { position:absolute; top:.75rem; right:.75rem; padding:.4rem .65rem; border-radius:999px; background:rgba(17,24,39,.8); color:#fff; font-size:.7rem; font-weight:800; backdrop-filter:blur(8px); }
.asset-body { padding:1rem; }
.asset-body h3 { margin:.1rem 0 .3rem; font-size:1.02rem; }
.asset-meta { color:var(--text-muted); font-size:.8rem; }
.asset-plate { display:inline-flex; margin-top:.55rem; padding:.28rem .55rem; border:1px solid var(--border-soft); border-radius:8px; background:var(--surface-muted); font-size:.75rem; font-weight:800; letter-spacing:.04em; }
.partner-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:220px; padding:2rem; text-align:center; color:var(--text-muted); }
.partner-empty > i { margin-bottom:.65rem; color:#a5adba; font-size:2rem; }
.partner-empty strong { color:var(--text-main); }
.partner-empty span { max-width:520px; margin-top:.25rem; }
.asset-detail-photo { overflow:hidden; min-height:270px; border-radius:18px; background:#edf0f4; }
.asset-detail-photo img { width:100%; height:100%; min-height:270px; max-height:400px; object-fit:cover; }
.detail-list { padding:.25rem 1.2rem 1rem; }
.detail-list > div, .partner-mini-row { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:.72rem 0; border-bottom:1px solid var(--border-soft); }
.detail-list > div:last-child, .partner-mini-row:last-child { border-bottom:0; }
.detail-list span, .partner-mini-row span { color:var(--text-muted); font-size:.82rem; }
.detail-list strong, .partner-mini-row strong { text-align:right; font-size:.86rem; }
.partner-mini-row.emphasis strong { color:var(--brand-orange-deep); font-size:1rem; }
.partner-filterbar { display:flex; gap:.75rem; padding:1rem 1.1rem; border-bottom:1px solid var(--border-soft); background:var(--surface-muted); }
.partner-search { min-width:260px; }
.partner-search .input-group-text { background:var(--surface-card); border-color:var(--border-strong); color:var(--text-muted); }
.partner-pagination { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1.1rem; border-top:1px solid var(--border-soft); }
.partner-detail-grid > div { min-height:84px; padding:1rem 1.2rem; border-right:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.partner-detail-grid span { display:block; margin-bottom:.25rem; color:var(--text-muted); font-size:.76rem; }
.partner-detail-grid strong { font-size:.9rem; }
.partner-note { margin:1rem 1.2rem 1.2rem; padding:1rem; border-radius:14px; background:var(--surface-muted); }
.partner-note p { margin:.35rem 0 0; color:var(--text-muted); }
.partner-money-panel { padding:1.2rem; }
.partner-money-panel .money-total { margin:.6rem 0 .5rem; padding:1rem; border-radius:16px; background:linear-gradient(135deg,var(--brand-orange-soft),#fff8f4); }
.partner-money-panel .money-total span { display:block; color:var(--text-muted); font-size:.78rem; }
.partner-money-panel .money-total strong { display:block; margin-top:.2rem; color:var(--brand-orange-deep); font-family:var(--brand-font-heading); font-size:1.65rem; }
.partner-register-wrap { min-height:calc(100vh - 90px); background:radial-gradient(circle at 0 0,rgba(232,105,34,.13),transparent 34%),linear-gradient(180deg,#f7f9fb,#f3f5f8); }
.partner-register-intro { padding:clamp(1.5rem,4vw,3.2rem); border-radius:26px; background:#101721; color:#fff; box-shadow:var(--shadow-md); }
.partner-register-intro h1 { margin:.45rem 0 .85rem; font-size:clamp(2rem,4vw,3.3rem); line-height:1.05; font-weight:850; }
.partner-register-intro .lead { color:#bdc8d7; font-size:1rem; }
.partner-register-benefits { display:grid; gap:.8rem; margin-top:1.6rem; }
.partner-register-benefits > div { display:flex; align-items:flex-start; gap:.8rem; padding:.75rem 0; }
.partner-register-benefits i { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; color:#ffae7d; background:rgba(232,105,34,.15); }
.partner-register-benefits strong,.partner-register-benefits small { display:block; }
.partner-register-benefits small { margin-top:.15rem; color:#97a5b9; }
.partner-register-note { display:flex; gap:.65rem; margin-top:1.6rem; padding:1rem; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(255,255,255,.05); color:#c2ccd9; font-size:.8rem; }
.partner-register-form { max-width:none; height:100%; }
.partner-status-wrap { min-height:70vh; display:grid; place-items:center; }
.partner-status-card { width:min(650px,100%); padding:clamp(1.5rem,4vw,2.5rem); border:1px solid var(--border-soft); border-radius:26px; background:var(--surface-card); text-align:center; box-shadow:var(--shadow-sm); }
.partner-status-logo { display:grid; place-items:center; width:50px; height:50px; margin:0 auto .8rem; border-radius:15px; background:#101721; color:#fff; }
.partner-status-icon { display:grid; place-items:center; width:76px; height:76px; margin:1.4rem auto 1rem; border-radius:50%; font-size:1.8rem; }
.partner-status-icon.waiting { color:#a65315; background:#fff0e5; }
.partner-status-icon.refused { color:#b42318; background:#feeceb; }
.partner-status-icon.suspended { color:#71570b; background:#fff5cc; }
.partner-status-card h1 { font-size:1.65rem; }
.partner-status-card > p { color:var(--text-muted); }
.partner-status-detail { display:flex; justify-content:space-between; gap:1rem; margin-top:1rem; padding:1rem; border-radius:14px; background:var(--surface-muted); text-align:left; }

[data-bs-theme="dark"] .partner-main,
[data-bs-theme="dark"] .partner-page { --surface-card:#1d2027; --surface-muted:#242831; --surface-page:#171a20; --border-soft:#313640; --border-strong:#3c424d; --text-main:#edf0f4; --text-muted:#aeb6c2; }
[data-bs-theme="dark"] .partner-register-wrap { background:#171a20; }
[data-bs-theme="dark"] .partner-form-card,[data-bs-theme="dark"] .partner-status-card { background:#1d2027; }
[data-bs-theme="dark"] .partner-money-panel .money-total { background:#2a211d; }

@media (max-width:1199.98px) { .partner-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.partner-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:991.98px) { .partner-shell{display:block;}.partner-sidebar{display:none;}.partner-main{padding-top:1rem;}.partner-page-head{flex-direction:column;}.partner-page-head > .d-flex{width:100%;}.partner-page-head > .d-flex .btn{flex:1;} }
@media (max-width:767.98px) { .partner-kpi-grid,.partner-card-grid{grid-template-columns:1fr;}.partner-filterbar form{flex-wrap:wrap;}.partner-search{min-width:0;width:100%;}.partner-detail-grid > div{border-right:0;}.partner-pagination{flex-direction:column;align-items:flex-start;}.partner-register-intro{padding:1.5rem;} }

/* Sprint Partenaires 2 — pictogramme de secours lorsqu'un bien n'a pas encore de photo. */
.partner-asset-card .asset-photo > i:first-child {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a5adba;
  font-size: 2.2rem;
  pointer-events: none;
}

/* ===== Espace partenaire — Abonnements (Sprint 3) ===== */
.partner-sub-alert{margin:1rem 0 0}.partner-subscription-hero{background:linear-gradient(135deg,#0b1723,#183047);color:#fff;border-radius:22px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 42px rgba(11,23,35,.18)}
.partner-subscription-hero h2{margin:.15rem 0 .35rem;font-size:1.7rem}.subscription-days{min-width:130px;text-align:center;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:14px 18px}.subscription-days strong{display:block;font-size:2rem;line-height:1}.subscription-days span{display:block;font-size:.78rem;opacity:.75;margin-top:5px}.subscription-plan-card{border:1px solid rgba(120,140,160,.22);background:var(--bs-body-bg,#fff);border-radius:20px;padding:22px;box-shadow:0 12px 32px rgba(11,23,35,.07);display:flex;flex-direction:column}.subscription-plan-card h2,.subscription-plan-card h3{color:var(--bs-heading-color,#0b1723)}.subscription-price{font-size:1.75rem;font-weight:800;color:#f47b20;margin:.8rem 0}.subscription-price span{font-size:.78rem;font-weight:600;color:var(--bs-secondary-color,#667587)}.subscription-features{list-style:none;padding:0;margin:0 0 1.1rem}.subscription-features li{display:flex;gap:.55rem;align-items:flex-start;padding:.35rem 0;font-size:.9rem}.subscription-features i{color:#f47b20}.h-fit{height:fit-content}@media(max-width:767px){.partner-subscription-hero{align-items:flex-start;flex-direction:column}.subscription-days{width:100%}}


/* ===== Sprint Partenaires 6 — Centre de pilotage Direction ===== */
.partner-exec-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1.2rem;margin-bottom:1.2rem}.partner-exec-head h1{margin:.1rem 0 .35rem;font-size:clamp(1.65rem,2.7vw,2.45rem);font-weight:850}.partner-exec-head p{margin:0;color:var(--text-muted);max-width:820px}.partner-exec-filter{padding:1rem 1.1rem;margin-bottom:1rem;border:1px solid var(--border-soft);border-radius:18px;background:var(--surface-card);box-shadow:var(--shadow-xs)}.partner-exec-filter .form-label,.partner-pivot-filter .form-label{font-size:.74rem;font-weight:800;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.partner-exec-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.partner-exec-kpi{position:relative;overflow:hidden;min-height:128px;padding:1.15rem 1.2rem;border:1px solid var(--border-soft);border-radius:19px;background:var(--surface-card);box-shadow:var(--shadow-xs)}.partner-exec-kpi:after{content:"";position:absolute;width:90px;height:90px;right:-35px;top:-35px;border-radius:50%;background:rgba(43,128,201,.07)}.partner-exec-kpi.revenue{background:linear-gradient(135deg,#0b1723,#183047);border-color:#183047;color:#fff}.partner-exec-kpi.revenue:after{background:rgba(244,123,32,.18)}.partner-exec-kpi.warning:after{background:rgba(244,123,32,.12)}.partner-exec-kpi span{display:block;font-size:.75rem;font-weight:750;color:var(--text-muted)}.partner-exec-kpi.revenue span,.partner-exec-kpi.revenue small{color:#becbd8}.partner-exec-kpi strong{display:block;margin:.45rem 0 .3rem;font-family:var(--brand-font-heading);font-size:clamp(1.25rem,2.1vw,1.8rem);line-height:1.1}.partner-exec-kpi small{display:block;color:var(--text-muted);font-size:.72rem}.partner-exec-model-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:1rem;border:1px solid var(--border-soft);border-radius:18px;background:var(--surface-card);overflow:hidden}.partner-exec-model-strip>div{padding:.95rem 1rem;border-right:1px solid var(--border-soft)}.partner-exec-model-strip>div:last-child{border-right:0}.partner-exec-model-strip span{display:block;color:var(--text-muted);font-size:.72rem}.partner-exec-model-strip strong{display:block;margin-top:.25rem;font-size:1rem}.partner-exec-grid{display:grid;gap:1rem}.partner-exec-grid-top{grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);margin-bottom:1rem}.partner-exec-grid-mid{grid-template-columns:minmax(0,2.1fr) minmax(260px,.75fr)}.partner-exec-panel{overflow:hidden;border:1px solid var(--border-soft);border-radius:20px;background:var(--surface-card);box-shadow:var(--shadow-xs)}.partner-exec-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.05rem 1.15rem;border-bottom:1px solid var(--border-soft)}.partner-exec-panel-head span{color:var(--brand-orange-deep);font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.partner-exec-panel-head h2{margin:.08rem 0 0;font-size:1.08rem;font-weight:850}.partner-exec-panel-head p{margin:.25rem 0 0;color:var(--text-muted);font-size:.76rem;max-width:720px}.partner-exec-panel-head>a,.partner-exec-panel-head>small{font-size:.74rem;color:var(--text-muted)}.partner-exec-chart{height:330px;padding:1rem 1.1rem}.partner-exec-donut{height:220px;padding:1rem 1.4rem .25rem}.partner-exec-legend{padding:0 1.2rem 1.1rem}.partner-exec-legend>div{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:.5rem;padding:.5rem 0;border-bottom:1px solid var(--border-soft)}.partner-exec-legend>div:last-child{border-bottom:0}.partner-exec-legend span{font-size:.78rem;color:var(--text-muted)}.partner-exec-legend strong{font-size:.8rem}.partner-exec-legend .dot{width:8px;height:8px;border-radius:50%}.dot-orange{background:#f47b20}.dot-blue{background:#2b80c9}.partner-exec-attention{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.partner-exec-attention>a{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:.7rem;padding:.85rem .95rem;border:1px solid var(--border-soft);border-radius:16px;background:var(--surface-card);color:var(--text-main);box-shadow:var(--shadow-xs)}.partner-exec-attention>a:hover{border-color:#efc5ad;color:var(--text-main)}.partner-exec-attention i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--brand-orange-deep);background:var(--brand-orange-soft)}.partner-exec-attention span{font-size:.74rem;color:var(--text-muted)}.partner-exec-attention strong{font-size:1.15rem}.partner-exec-table thead th{white-space:nowrap;background:var(--surface-muted);font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.035em}.partner-exec-table td{font-size:.82rem}.partner-exec-table td>small{display:block;color:var(--text-muted);font-size:.7rem}.partner-relation-pill{display:inline-flex;padding:.28rem .5rem;border:1px solid var(--border-soft);border-radius:999px;background:var(--surface-muted);font-size:.7rem!important;font-weight:750;text-transform:none!important;letter-spacing:0!important;color:var(--text-main)!important}.partner-exec-scroll-table{max-height:520px}.partner-plan-list{padding:.3rem 1.1rem}.partner-plan-list>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--border-soft)}.partner-plan-list>div:last-child{border-bottom:0}.partner-plan-list span{font-size:.83rem}.partner-plan-list strong{font-size:.77rem;color:var(--text-muted)}.partner-exec-empty{padding:2rem 0!important;justify-content:center!important;color:var(--text-muted)}.partner-pivot-filter{padding:.9rem 1.1rem;background:var(--surface-muted);border-bottom:1px solid var(--border-soft)}.partner-pivot-scroll{max-height:590px}.partner-pivot-table{min-width:1450px;font-variant-numeric:tabular-nums}.partner-pivot-table th,.partner-pivot-table td{white-space:nowrap;font-size:.76rem}.partner-pivot-table thead th{position:sticky;top:0;z-index:3;background:#16283a;color:#fff}.partner-pivot-table .sticky-col{position:sticky;left:0;z-index:2;min-width:220px;background:var(--surface-card);box-shadow:6px 0 10px rgba(11,23,35,.04)}.partner-pivot-table thead .sticky-col{z-index:4;background:#16283a}.partner-pivot-table td.sticky-col small{display:block;color:var(--text-muted);font-size:.67rem}.partner-pivot-table .total-col{background:var(--brand-orange-soft);color:var(--brand-orange-deep)}.partner-pivot-table tfoot th{position:sticky;bottom:0;z-index:3;background:#fff1e6;color:#9a4814;font-weight:850}.partner-pivot-table tfoot .sticky-col{z-index:4;background:#fff1e6}.partner-pivot-panel:fullscreen{width:100vw;height:100vh;border-radius:0;background:var(--surface-page);padding:1rem;overflow:auto}.partner-pivot-panel:fullscreen .partner-pivot-scroll{max-height:calc(100vh - 190px)}.partner-pivot-panel.pivot-fallback-fullscreen{position:fixed!important;inset:0!important;z-index:1090!important;width:100vw!important;height:100vh!important;margin:0!important;border-radius:0!important;background:var(--surface-page)!important;padding:1rem!important;overflow:auto!important}.partner-pivot-panel.pivot-fallback-fullscreen .partner-pivot-scroll{max-height:calc(100vh - 190px)}
[data-bs-theme="dark"] .partner-exec-kpi.revenue{background:linear-gradient(135deg,#0b1723,#14283a)}[data-bs-theme="dark"] .partner-pivot-table thead th{background:#0e1b28}[data-bs-theme="dark"] .partner-pivot-table tfoot th,[data-bs-theme="dark"] .partner-pivot-table tfoot .sticky-col{background:#322319;color:#ffc49c}[data-bs-theme="dark"] .partner-pivot-table .total-col{background:#322319;color:#ffc49c}
@media(max-width:1199.98px){.partner-exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-exec-model-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.partner-exec-model-strip>div{border-bottom:1px solid var(--border-soft)}.partner-exec-grid-top,.partner-exec-grid-mid{grid-template-columns:1fr}.partner-exec-attention{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.partner-exec-head{flex-direction:column}.partner-exec-kpis,.partner-exec-model-strip,.partner-exec-attention{grid-template-columns:1fr}.partner-exec-model-strip>div{border-right:0}.partner-exec-chart{height:280px}.partner-exec-head .page-actions{width:100%}.partner-exec-head .page-actions .btn{flex:1 1 45%}}


/* ===== BS LOCATION v5.25.2 — Partenaires premium + recalcul contractuel ===== */
.partner-admin-page .dashboard-content{background:linear-gradient(180deg,color-mix(in srgb,var(--surface-page) 92%,#f5f8fb 8%),var(--surface-page));}
.partner-admin-page .page-heading{margin-bottom:1.35rem;padding:0;}
.partner-admin-page .page-heading h1{font-size:clamp(1.75rem,2.8vw,2.65rem);font-weight:850;letter-spacing:-.035em;color:var(--text-main);}
.partner-admin-page .page-heading p{max-width:880px;color:var(--text-muted);font-size:.96rem;line-height:1.7;}
.partner-admin-page .page-heading-eyebrow{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:.35rem;color:var(--brand-orange-deep);font-size:.7rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase;}
.partner-admin-page .partner-admin-hero{position:relative;padding:1.35rem 1.45rem;border:1px solid var(--border-soft);border-radius:22px;background:linear-gradient(120deg,var(--surface-card),color-mix(in srgb,var(--brand-orange-soft) 32%,var(--surface-card)));box-shadow:var(--shadow-xs);overflow:hidden;}
.partner-admin-page .partner-admin-hero:after{content:"";position:absolute;right:-70px;top:-90px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(244,123,32,.12),rgba(244,123,32,0) 70%);pointer-events:none;}
.partner-admin-page .page-actions{position:relative;z-index:1;}
.partner-admin-page .page-actions .btn,.partner-admin-page .partner-admin-action-strip .btn{min-height:42px;border-radius:12px;padding:.56rem .85rem;font-weight:750;}
.partner-admin-action-strip{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.85rem 1rem;border:1px solid var(--border-soft);border-radius:16px;background:var(--surface-card);box-shadow:var(--shadow-xs);}
.partner-admin-page .card,.partner-admin-panel{border:1px solid var(--border-soft)!important;border-radius:20px!important;background:var(--surface-card)!important;box-shadow:0 12px 34px rgba(11,23,35,.055)!important;overflow:hidden;}
.partner-admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;}
.partner-admin-kpi{position:relative;display:flex;align-items:center;gap:.9rem;min-height:122px;padding:1.05rem 1.1rem;border:1px solid var(--border-soft);border-radius:19px;background:var(--surface-card);box-shadow:0 10px 30px rgba(11,23,35,.05);overflow:hidden;}
.partner-admin-kpi:after{content:"";position:absolute;right:-32px;top:-38px;width:100px;height:100px;border-radius:50%;background:rgba(62,125,181,.065);}
.partner-admin-kpi.accent:after,.partner-admin-kpi.warning:after{background:rgba(244,123,32,.12);}
.partner-admin-kpi.dark{color:#fff;border-color:#15283a;background:linear-gradient(135deg,#0b1723,#1b3349);}
.partner-admin-kpi.dark span,.partner-admin-kpi.dark small{color:#bdc8d5;}
.partner-admin-kpi.success:after{background:rgba(22,139,98,.10);}
.partner-admin-kpi-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:var(--brand-orange-soft);color:var(--brand-orange-deep);font-size:1.1rem;}
.partner-admin-kpi span{display:block;color:var(--text-muted);font-size:.75rem;font-weight:750;}
.partner-admin-kpi strong{display:block;margin:.22rem 0 .1rem;font-family:var(--brand-font-heading);font-size:1.55rem;line-height:1.05;color:inherit;}
.partner-admin-kpi small{display:block;color:var(--text-muted);font-size:.7rem;}
.partner-admin-note{display:flex;align-items:flex-start;gap:.9rem;padding:1rem 1.15rem;border:1px solid color-mix(in srgb,#2b80c9 22%,var(--border-soft));border-radius:18px;background:color-mix(in srgb,#2b80c9 8%,var(--surface-card));box-shadow:var(--shadow-xs);}
.partner-admin-note.warning{border-color:color-mix(in srgb,var(--brand-orange) 30%,var(--border-soft));background:color-mix(in srgb,var(--brand-orange-soft) 62%,var(--surface-card));}
.partner-admin-note-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#e9f5fc;color:#176a97;font-size:1.1rem;}
.partner-admin-note.warning .partner-admin-note-icon{background:#fff1e6;color:var(--brand-orange-deep);}
.partner-admin-note strong{display:block;margin-bottom:.12rem;font-size:.92rem;}
.partner-admin-note p{color:var(--text-muted);font-size:.8rem;line-height:1.55;}
.partner-admin-count{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:32px;padding:0 .65rem;border-radius:999px;background:var(--surface-muted);border:1px solid var(--border-soft);font-size:.76rem;font-weight:800;}
.partner-admin-count.warning{background:#fff1e6;color:#a44a13;border-color:#f2c5a8;}
.partner-admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid var(--border-soft);}
.partner-admin-panel-head>div>span{display:block;color:var(--brand-orange-deep);font-size:.67rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase;}
.partner-admin-panel-head h2{margin:.12rem 0 0;font-size:1.05rem;font-weight:850;}
.partner-admin-filterbar{padding:1rem!important;border:1px solid var(--border-soft);border-radius:17px;background:var(--surface-card);box-shadow:var(--shadow-xs);}
.partner-admin-panel .partner-admin-filterbar{margin:0!important;border:0;border-radius:0;box-shadow:none;background:var(--surface-muted);border-bottom:1px solid var(--border-soft);}
.partner-admin-page .form-control,.partner-admin-page .form-select{min-height:46px;border-radius:12px;border-color:var(--border-soft);background:var(--surface-card);box-shadow:none;}
.partner-admin-page .form-control:focus,.partner-admin-page .form-select:focus{border-color:rgba(244,123,32,.55);box-shadow:0 0 0 .22rem rgba(244,123,32,.10);}
.partner-admin-table{font-variant-numeric:tabular-nums;}
.partner-admin-table thead th{padding:.85rem .9rem;background:var(--surface-muted);color:var(--text-muted);font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap;border-bottom:1px solid var(--border-soft);}
.partner-admin-table tbody td{padding:.9rem;border-bottom:1px solid color-mix(in srgb,var(--border-soft) 75%,transparent);font-size:.82rem;vertical-align:middle;}
.partner-admin-table tbody tr:last-child td{border-bottom:0;}
.partner-admin-table tbody tr:hover{background:color-mix(in srgb,var(--brand-orange-soft) 25%,transparent);}
.partner-admin-table td small{display:block;margin-top:.15rem;color:var(--text-muted);font-size:.69rem;}
.partner-admin-table td small a{color:inherit;text-decoration:none;}
.partner-admin-link{color:#1565c0;font-weight:800;text-decoration:none;}
.partner-admin-link:hover{color:var(--brand-orange-deep);}
.partner-admin-page .badge{border-radius:999px;padding:.42rem .62rem;font-weight:750;}
.partner-admin-page .btn-sm{border-radius:10px;}
.partner-admin-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-top:1px solid var(--border-soft);color:var(--text-muted);font-size:.78rem;}
.partner-admin-page .form-card{max-width:1120px;margin-inline:auto;}
.partner-admin-page .form-card>.card-body{padding:1.45rem;}
.partner-admin-page .form-section-title{margin-bottom:1rem;padding:.85rem 1rem;border-radius:14px;background:linear-gradient(135deg,#0f2131,#1d3a52)!important;color:#fff!important;border:0!important;font-weight:800!important;}
.partner-admin-page .form-section-title i{color:#ff9a5b!important;}
.partner-admin-page .form-label{margin-bottom:.42rem;font-size:.78rem;font-weight:800;color:var(--text-main)!important;}
.partner-admin-page .form-text{font-size:.7rem;line-height:1.45;color:var(--text-muted)!important;}
.partner-admin-page #partner-remuneration-info{padding:.7rem .8rem;border-radius:11px;background:var(--surface-muted);border:1px solid var(--border-soft);}
.partner-admin-page #partner-bs-share{background:var(--brand-orange-soft)!important;border-color:#efc5ad!important;color:var(--text-main)!important;}

/* Espace partenaire : interface dédiée, sans navbar publique */
.partner-page{background:#eef3f7;}
.partner-shell{grid-template-columns:292px minmax(0,1fr);min-height:100vh;}
.partner-sidebar{top:0;height:100vh;padding:1rem;background:linear-gradient(180deg,#09131d 0%,#101e2b 58%,#0b1723 100%);border-right:1px solid rgba(255,255,255,.07);box-shadow:18px 0 45px rgba(7,16,25,.08);}
.partner-brand-card{padding:.85rem .8rem 1rem;border:0;border-radius:16px;background:rgba(255,255,255,.045);box-shadow:none;}
.partner-brand-logo{display:grid;place-items:center;flex:0 0 72px;width:72px;height:48px;padding:.25rem;border-radius:12px;background:rgba(255,255,255,.055);}
.partner-brand-logo img{width:100%;height:100%;object-fit:contain;}
.partner-name{font-size:.92rem;}
.partner-nav{gap:.18rem;margin-top:1rem;}
.partner-nav-title{margin:1.25rem .7rem .42rem;color:#718298;font-size:.62rem;letter-spacing:.15em;}
.partner-nav-link{min-height:46px;padding:.72rem .78rem;border:1px solid transparent;border-radius:13px;font-size:.84rem;}
.partner-nav-link>i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#8394aa;background:rgba(255,255,255,.035);}
.partner-nav-link:hover{border-color:rgba(255,255,255,.06);background:rgba(255,255,255,.06);}
.partner-nav-link.active{border-color:rgba(255,151,89,.18);background:linear-gradient(135deg,rgba(244,123,32,.24),rgba(244,123,32,.08));box-shadow:none;}
.partner-nav-link.active>i{color:#ffb07f;background:rgba(244,123,32,.12);}
.partner-sidebar-footer{margin-top:1rem;padding:.9rem;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.035);}
.partner-main{padding:0;background:var(--surface-page);min-height:100vh;}
.partner-topbar{position:sticky;top:0;z-index:1020;display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:.75rem clamp(1rem,2.4vw,2rem);border-bottom:1px solid var(--border-soft);background:color-mix(in srgb,var(--surface-card) 92%,transparent);backdrop-filter:blur(18px);box-shadow:0 6px 24px rgba(11,23,35,.045);}
.partner-topbar-context{display:flex;align-items:center;gap:.8rem;}
.partner-topbar-context span{display:block;color:var(--brand-orange-deep);font-size:.65rem;font-weight:850;letter-spacing:.11em;}
.partner-topbar-context strong{display:block;margin-top:.05rem;font-family:var(--brand-font-heading);font-size:1rem;}
.partner-topbar-actions{display:flex;align-items:center;gap:.55rem;}
.partner-topbar-chip{display:inline-flex;align-items:center;justify-content:center;gap:.48rem;min-height:42px;padding:.52rem .75rem;border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-muted);color:var(--text-main);font-size:.78rem;font-weight:750;text-decoration:none;}
button.partner-topbar-chip{cursor:pointer;}
.partner-topbar-chip:hover{border-color:#efc5ad;color:var(--brand-orange-deep);background:var(--brand-orange-soft);}
.partner-mobile-toggle{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-card);color:var(--text-main);}
.partner-content-frame{padding:1.5rem clamp(1rem,2.8vw,2.4rem) 3rem;}
.partner-message-stack{margin-bottom:1rem;}
.partner-mobile-head{display:none!important;}
.partner-page-head{position:relative;margin-bottom:1.4rem;padding:1.25rem 1.35rem;border:1px solid var(--border-soft);border-radius:21px;background:linear-gradient(120deg,var(--surface-card),color-mix(in srgb,var(--brand-orange-soft) 27%,var(--surface-card)));box-shadow:var(--shadow-xs);overflow:hidden;}
.partner-page-head:after{content:"";position:absolute;right:-60px;top:-80px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(244,123,32,.11),transparent 70%);}
.partner-page-head>div{position:relative;z-index:1;}
.partner-page-head h1{font-size:clamp(1.55rem,2.5vw,2.2rem);font-weight:850;letter-spacing:-.03em;}
.partner-page-head p{font-size:.87rem;line-height:1.65;}
.partner-page-head .btn{min-height:42px;border-radius:12px;font-weight:750;}
.partner-kpi-grid{gap:.85rem;}
.partner-kpi{min-height:116px;padding:1rem;border-radius:18px;box-shadow:0 10px 28px rgba(11,23,35,.045);}
.partner-kpi .kpi-icon{width:44px;height:44px;flex-basis:44px;}
.partner-kpi strong{font-size:1.55rem;}
.partner-panel{border-radius:19px;box-shadow:0 10px 30px rgba(11,23,35,.045);}
.partner-panel-head{padding:1rem 1.1rem;background:linear-gradient(180deg,var(--surface-card),color-mix(in srgb,var(--surface-muted) 55%,var(--surface-card)));}
.partner-table thead th{padding:.82rem .9rem;background:var(--surface-muted);color:var(--text-muted);font-size:.67rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;}
.partner-table tbody td{padding:.88rem .9rem;border-bottom:1px solid var(--border-soft);}
.partner-table tbody tr:hover{background:color-mix(in srgb,var(--brand-orange-soft) 22%,transparent);}
.partner-filterbar{padding:.9rem 1rem;}
.partner-filterbar .form-control,.partner-filterbar .form-select,.partner-form-card .form-control,.partner-form-card .form-select{min-height:46px;border-radius:12px;border-color:var(--border-soft);}
.partner-form-card{max-width:1120px;padding:1.25rem;border-radius:20px;}
.partner-asset-card{border-radius:20px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.partner-asset-card:hover{transform:translateY(-3px);border-color:#efc5ad;box-shadow:0 18px 40px rgba(11,23,35,.09);}
.partner-quick-card{border-radius:17px;}
.partner-sub-alert{border-radius:16px!important;}
[data-bs-theme="dark"] .partner-page{background:#071019;}
[data-bs-theme="dark"] .partner-topbar{background:rgba(10,20,30,.9);}
[data-bs-theme="dark"] .partner-admin-kpi.dark{background:linear-gradient(135deg,#071019,#132839);}
@media(max-width:1199.98px){.partner-admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.partner-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:991.98px){.partner-shell{display:block;}.partner-sidebar{display:none;}.partner-content-frame{padding-top:1rem;}.partner-mobile-head{display:none!important;}}
@media(max-width:767.98px){.partner-admin-kpi-grid{grid-template-columns:1fr;}.partner-admin-page .partner-admin-hero,.partner-page-head{padding:1rem;}.partner-admin-page .page-heading,.partner-page-head{flex-direction:column;}.partner-admin-page .page-actions,.partner-page-head>div:last-child{width:100%;}.partner-admin-page .page-actions .btn,.partner-page-head .btn{flex:1 1 auto;}.partner-admin-panel-footer{flex-direction:column;align-items:flex-start;}.partner-card-grid{grid-template-columns:1fr;}.partner-topbar{padding:.65rem .8rem;}.partner-content-frame{padding:.9rem .8rem 2rem;}.partner-topbar-chip{padding:.5rem .62rem;}}
