:root {
    --pvbl-primary: #003b7a;
    --pvbl-primary-hover: #002b59;
    --pvbl-gold: #ff7200;
    --pvbl-background: #f4f7fb;
    --pvbl-text: #101820;
    --pvbl-muted: #5d6875;
    --pvbl-border: #dbe3ec;
}

body {
    min-height: 100vh;
    color: var(--pvbl-text);
    background: var(--pvbl-background);
}

.auth-page { min-height: 100vh; }

.auth-visual {
    min-height: 100vh;
    padding: 3.5rem 4.5rem;
    color: #fff;
    background-color: var(--pvbl-primary);
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.auth-brand { font-size: 1.25rem; font-weight: 700; }
.auth-content { max-width: 650px; }
.auth-title { font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.04em; }
.auth-description { max-width: 570px; color: rgba(255,255,255,.67); font-size: 1.1rem; line-height: 1.75; }
.auth-security { color: rgba(255,255,255,.42); font-size: .82rem; }

.auth-form-side { min-height: 100vh; padding: 2rem; }
.auth-form { width: 100%; max-width: 430px; }
.auth-eyebrow { color: var(--pvbl-gold); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.auth-heading { font-size: clamp(2.15rem, 5vw, 2.7rem); letter-spacing: -.035em; }
.text-muted-custom { color: var(--pvbl-muted); }

.form-control {
    min-height: 52px;
    border-color: #ccd7e3;
    border-radius: .7rem;
}

.form-control:focus {
    border-color: #ff7200;
    box-shadow: 0 0 0 .2rem rgba(255,114,0,.16);
}

.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 6rem; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: .75rem;
    padding: .25rem;
    color: var(--pvbl-gold);
    background: transparent;
    border: 0;
    transform: translateY(-50%);
    font-size: .85rem;
    font-weight: 700;
}

.btn-pvbl {
    min-height: 52px;
    color: #fff;
    background: var(--pvbl-primary);
    border-color: var(--pvbl-primary);
    border-radius: .7rem;
    font-weight: 700;
}

.btn-pvbl:hover,
.btn-pvbl:focus {
    color: #fff;
    background: var(--pvbl-primary-hover);
    border-color: var(--pvbl-primary-hover);
}

.auth-information {
    color: var(--pvbl-muted);
    background: rgba(255,255,255,.65);
    border: 1px solid var(--pvbl-border);
    border-radius: .7rem;
}

.activation-card,
.welcome-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--pvbl-border);
    border-radius: 1.1rem;
    box-shadow: 0 18px 45px rgba(0,59,122,.09);
}

.activation-card { max-width: 470px; }
.welcome-card { max-width: 580px; }
.welcome-name { color: var(--pvbl-gold); }

.site-header {
    z-index: 1030;
    background: rgba(0,59,122,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 28px rgba(0,43,89,.2);
    backdrop-filter: blur(14px);
}

.site-header .navbar { min-height: 76px; }

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-right: 2rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: var(--pvbl-primary);
    background: #ff7200;
    border-radius: .8rem;
    font-size: 1.25rem;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { margin-top: .25rem; color: rgba(255,255,255,.48); font-size: .7rem; font-weight: 400; }

.site-header .nav-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .8rem !important;
    color: rgba(255,255,255,.66);
    border-radius: .6rem;
    font-size: .9rem;
    font-weight: 600;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.09);
}

.header-dropdown {
    min-width: 280px;
    padding: .65rem;
    border: 1px solid var(--pvbl-border);
    border-radius: .85rem;
    box-shadow: 0 18px 50px rgba(0,59,122,.16);
}

.pv-document { padding: clamp(1.25rem, 4vw, 3rem); overflow: hidden; }
.pv-document-head { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1.25rem; border-bottom: 4px solid var(--pvbl-gold); color: var(--pvbl-primary); }
.pv-document-head > div { display: flex; flex-direction: column; }
.pv-document-head .pv-company { font-size: 2.2rem; line-height: 1; }
.pv-document-head small { color: #6d7b8d; }
.pv-document-head div:last-child span { font-weight: 800; }
.pv-document-head div:last-child strong { color: var(--pvbl-gold); font-size: 1.35rem; }
.pv-document-section { margin-top: 2rem; }
.pv-document-section h2 { padding-bottom: .6rem; border-bottom: 1px solid var(--pvbl-border); color: var(--pvbl-primary); font-size: .95rem; font-weight: 800; text-transform: uppercase; }
.pv-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--pvbl-border); border-left: 1px solid var(--pvbl-border); }
.pv-info-grid > div { min-height: 72px; padding: .85rem; border-right: 1px solid var(--pvbl-border); border-bottom: 1px solid var(--pvbl-border); }
.pv-info-grid .full { grid-column: 1 / -1; }
.pv-info-grid span, .pv-notes span { display: block; margin-bottom: .2rem; color: #718096; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.pv-decision-view { display: flex; align-items: center; gap: .6rem; padding: 1rem; border-left: 5px solid var(--pvbl-gold); border-radius: .4rem; background: #fff4ea; color: #9a4300; }
.pv-notes { margin-top: 1rem; padding: 1rem; border: 1px solid var(--pvbl-border); border-radius: .5rem; }
.pv-notes p { margin: 0; }
.pv-photo-view-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pv-photo-view-grid figure { margin: 0; padding: .6rem; border: 1px solid var(--pvbl-border); border-radius: .6rem; }
.pv-photo-view-grid img { width: 100%; height: 260px; object-fit: contain; border-radius: .35rem; background: #eef3f8; }
.pv-photo-view-grid figcaption { margin-top: .45rem; color: #718096; font-size: .78rem; }
.pv-signatures-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pv-signatures-view > div { display: flex; flex-direction: column; min-height: 260px; padding: 1.1rem; border: 1px solid var(--pvbl-border); border-radius: .6rem; }
.pv-signatures-view h3 { color: var(--pvbl-primary); font-size: 1rem; font-weight: 800; }
.pv-signatures-view span { color: #5d6a7b; }
.pv-signatures-view img { width: 100%; max-width: 280px; max-height: 115px; margin-top: auto; object-fit: contain; object-position: left bottom; }
.pv-no-signature { margin-top: auto; color: #8b96a5; font-style: italic; }
.pv-document-footer { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--pvbl-border); color: #7a8797; font-size: .75rem; text-align: center; }
@media (max-width: 767.98px) { .pv-document-head, .pv-signatures-view { grid-template-columns: 1fr; display: grid; } .pv-info-grid, .pv-photo-view-grid { grid-template-columns: 1fr; } .pv-info-grid .full { grid-column: auto; } }

.header-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem;
    border-radius: .6rem;
    white-space: normal;
}

.header-dropdown .dropdown-item:hover { background: #f2f6fb; }
.header-dropdown .dropdown-item span:not(.dropdown-icon) { display: flex; flex-direction: column; }
.header-dropdown .dropdown-item strong { color: var(--pvbl-text); font-size: .88rem; }
.header-dropdown .dropdown-item small { margin-top: .12rem; color: var(--pvbl-muted); font-size: .73rem; }

.dropdown-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--pvbl-gold);
    background: #fff1e5;
    border-radius: .55rem;
}

.account-button {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .35rem .55rem;
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .8rem;
}

.account-button::after { margin-left: .2rem; opacity: .55; }

.account-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--pvbl-primary);
    background: #ff7200;
    border-radius: .65rem;
    font-size: .78rem;
    font-weight: 800;
}

.account-avatar.large { width: 44px; height: 44px; }
.account-copy { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.2; }
.account-copy strong { max-width: 145px; overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { margin-top: .18rem; color: rgba(255,255,255,.5); font-size: .68rem; }

.account-menu { min-width: 290px; }
.account-menu-heading { display: flex; align-items: center; gap: .8rem; padding: .55rem; }
.account-menu-heading div { display: flex; min-width: 0; flex-direction: column; }
.account-menu-heading strong { font-size: .88rem; }
.account-menu-heading small { max-width: 190px; overflow: hidden; color: var(--pvbl-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.header-dropdown .dropdown-item.simple { gap: .65rem; font-size: .86rem; white-space: nowrap; }
.header-dropdown .dropdown-item.simple i { width: 20px; text-align: center; }

.dashboard-main { max-width: 1200px; }
.form-page { max-width: 1050px; }
.content-card { background:#fff; border:1px solid var(--pvbl-border); border-radius:1rem; box-shadow:0 12px 35px rgba(0,59,122,.07); }
.form-section-title { padding-bottom:.8rem; color:var(--pvbl-primary); border-bottom:2px solid #edf2f7; font-size:1.05rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.decision-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; }
.decision-option { display:flex; gap:.7rem; padding:1rem; border:1px solid var(--pvbl-border); border-radius:.75rem; cursor:pointer; }
.decision-option:has(input:checked) { border-color:var(--pvbl-gold); background:#fff5ed; }
.decision-option span { display:flex; flex-direction:column; }
.decision-option small { margin-top:.2rem; color:var(--pvbl-muted); }
.signature-panel { height:100%; padding:1.25rem; background:#f8fafc; border:1px solid var(--pvbl-border); border-radius:.8rem; }
.signature-panel h3 { color:var(--pvbl-primary); font-size:1rem; font-weight:800; }
.signature-canvas { width:100%; height:150px; background:#fff; border:1px dashed #9eacba; border-radius:.5rem; touch-action:none; }
.status-badge { display:inline-flex; padding:.35rem .6rem; border-radius:999px; font-size:.72rem; font-weight:700; text-transform:capitalize; }
.status-sans_reserve { color:#17633a; background:#e8f6ee; }
.status-avec_reserves { color:#8a5200; background:#fff3dc; }
.status-refusee_differee { color:#8a2525; background:#fdecec; }
.reserve-photos { padding:1.25rem; background:#fff8f2; border:1px solid #ffd4b3; border-radius:.8rem; }
.reserve-photo-icon { display:grid; place-items:center; width:42px; height:42px; color:#fff; background:var(--pvbl-gold); border-radius:.65rem; font-size:1.1rem; }
.photo-preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:.8rem; }
.photo-preview-item { position:relative; overflow:hidden; aspect-ratio:4/3; background:#e8edf3; border:1px solid var(--pvbl-border); border-radius:.6rem; }
.photo-preview-item img { width:100%; height:100%; object-fit:cover; }
.btn-camera-reserve { color:#fff; background:var(--pvbl-gold); border-color:var(--pvbl-gold); font-weight:700; }
.btn-camera-reserve:hover { color:#fff; background:#df6300; border-color:#df6300; }

.module-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--pvbl-border);
    border-radius: 1rem;
    box-shadow: 0 12px 35px rgba(0,59,122,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,59,122,.12);
}

.module-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
    color: #fff;
    background: var(--pvbl-primary);
    border-radius: .9rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.module-bl .module-icon { background: #ff7200; }
.module-intervention .module-icon { background: #0757b8; }

@media (max-width: 991.98px) {
    .auth-form-side { min-height: 100vh; padding: 1.5rem; }
    .decision-grid { grid-template-columns:1fr; }
}

@media (max-width: 1199.98px) {
    .site-header .navbar-collapse {
        padding: .5rem 0 1rem;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .account-dropdown { margin-top: .5rem; }
    .account-button { width: 100%; justify-content: flex-start; }
    .account-copy { flex: 1; }
    .account-menu { width: 100%; }
}
