/* Feuille de style centralisee. */
:root {
    --bg: #e3e3e4;
    --card: rgba(250, 250, 250, 0.20);
    --text: #17202a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --dark: #111827;
    --dark-2: #1f2937;
    --warning: #d97706;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start;
}

.app-shell-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.app-shell-header,
.app-shell-footer {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.app-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.app-shell-brand,
.app-shell-nav {
    display: flex;
    align-items: center;
}

.app-shell-brand {
    gap: 10px;
    color: #17202a;
    font-weight: 800;
    text-decoration: none;
}

.app-shell-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.app-shell-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.app-shell-nav a {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-shell-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    cursor: pointer;
    margin-left: auto;
}

.app-shell-login-icon+.app-shell-menu-toggle {
    margin-left: 8px;
}

.app-shell-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #374151;
    transition: transform .2s ease, opacity .2s ease;
}

.app-shell-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.app-shell-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.app-shell-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.app-shell-login-icon {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 34px;
    padding: 0 6px;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-shell-login-icon svg {
    display: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-shell-login-icon::after {
    content: "Connexion";
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell-danger {
    color: #dc2626 !important;
}

.app-shell-footer {
    margin-top: auto;
    padding: 20px 0;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

.app-shell>header:not(.app-shell-header),
.app-shell>footer:not(.app-shell-footer) {
    display: none;
}

@media (max-width: 650px) {

    .app-shell-header,
    .app-shell-footer {
        width: min(100% - 24px, 1200px);
    }

    .app-shell-header {
        position: relative;
        align-items: center;
        flex-direction: row;
    }

    .app-shell-menu-toggle {
        display: inline-flex;
    }

    .app-shell-nav {
        position: absolute;
        z-index: 20;
        top: calc(100% - 4px);
        right: 0;
        display: flex;
        width: min(260px, 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg);
        box-shadow: 0 14px 30px rgba(15, 23, 42, .15);
    }

    html.js .app-shell-nav {
        display: none;
    }

    html.js .app-shell-nav.is-open {
        display: flex;
    }

    .app-shell-nav a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 8px;
    }

    .app-shell-nav a:hover,
    .app-shell-nav a:focus-visible {
        background: #f3f4f6;
    }

    .app-shell-login-icon {
        display: inline-flex;
        margin-left: auto;
        width: 34px;
        height: 34px;
        min-height: 0;
        padding: 0;
        border-radius: 9px;
        background: #eff6ff;
        color: var(--primary) !important;
    }

    .app-shell-login-icon svg {
        display: block;
    }

    .app-shell-login-icon::after {
        display: none;
    }

    .app-shell-login-link {
        display: none !important;
    }
}

@media print {

    .app-shell-header,
    .app-shell-footer {
        display: none !important;
    }
}

/* activate.php */

/* ============================================================
   AUTH.CSS
   Style des pages d'authentification / activation
   Assist-Immo
   ============================================================ */
body.page-activate {
    --text: #172033;
    --text-light: #64748b;

    --background: #f5f7fb;
    --border: #e2e8f0;
    --shadow:
        0 20px 50px rgba(15, 23, 42, 0.10);

    --radius: 18px;
}

/* ============================================================
   RESET
   ============================================================ */

body.page-activate * {
    box-sizing: border-box;
}

body.page-activate {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.page-activate {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 35%),
        var(--background);

    color: var(--text);
}

/* ============================================================
   PAGE
   ============================================================ */

body.page-activate .auth-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

/* ============================================================
   BRAND
   ============================================================ */

body.page-activate .auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 28px;

    font-size: 25px;
    font-weight: 800;

    color: var(--text);

    letter-spacing: -0.5px;
}

body.page-activate .auth-brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   CARD
   ============================================================ */

body.page-activate .auth-card {
    width: 100%;
    max-width: 480px;

    background: var(--card);

    border: 1px solid rgba(226, 232, 240, 0.9);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */

body.page-activate .auth-header {
    padding: 36px 36px 28px;

    text-align: center;
}

body.page-activate .auth-header h1 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.25;

    font-weight: 750;

    letter-spacing: -0.6px;

    color: var(--text);
}

body.page-activate .auth-header p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: var(--text-light);
}

/* ============================================================
   BODY
   ============================================================ */

body.page-activate .auth-body {
    padding: 0 36px 36px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

body.page-activate .btn {
    width: 100%;

    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border-radius: 10px;

    border: 1px solid transparent;

    font-family: inherit;

    font-size: 15px;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

body.page-activate .btn-primary {
    background: var(--primary);
    color: #ffffff;

    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.20);
}

body.page-activate .btn-primary:hover {
    background: var(--primary-hover);

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.28);

    transform: translateY(-1px);
}

body.page-activate .btn-primary:active {
    transform: translateY(0);
}

/* ============================================================
   STATUS
   ============================================================ */

/*
 * Tu peux utiliser ces classes si tu souhaites plus tard
 */

body.page-activate .auth-success {
    margin: 0 auto 20px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--success-bg);

    color: var(--success);

    font-size: 30px;
}

body.page-activate .auth-error {
    margin: 0 auto 20px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--danger-bg);

    color: var(--danger);

    font-size: 30px;
}

/* ============================================================
   FORMULAIRES
   Compatible avec login.php / register.php / reset_password.php
   ============================================================ */

body.page-activate .form-group {
    margin-bottom: 18px;
}

body.page-activate .form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: var(--text);
}

body.page-activate .form-control {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

body.page-activate .form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

body.page-activate .form-control::placeholder {
    color: #94a3b8;
}

/* ============================================================
   MESSAGES
   ============================================================ */

body.page-activate .alert {
    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;
}

body.page-activate .alert-danger {
    background: var(--danger-bg);

    border: 1px solid #fecaca;

    color: #991b1b;
}

body.page-activate .alert-success {
    background: var(--success-bg);

    border: 1px solid #bbf7d0;

    color: #166534;
}

/* ============================================================
   LINKS
   ============================================================ */

body.page-activate .auth-link {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}

body.page-activate .auth-link:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER / INFOS
   ============================================================ */

body.page-activate .auth-footer {
    margin-top: 22px;

    text-align: center;

    font-size: 13px;

    line-height: 1.6;

    color: var(--text-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    body.page-activate .auth-page {
        padding: 25px 15px;
    }

    body.page-activate .auth-brand {
        margin-bottom: 22px;

        font-size: 22px;
    }

    body.page-activate .auth-brand-icon {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 19px;
    }

    body.page-activate .auth-card {
        border-radius: 15px;
    }

    body.page-activate .auth-header {
        padding: 30px 24px 22px;
    }

    body.page-activate .auth-header h1 {
        font-size: 24px;
    }

    body.page-activate .auth-header p {
        font-size: 14px;
    }

    body.page-activate .auth-body {
        padding: 0 24px 28px;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

body.page-activate .btn:focus-visible,
body.page-activate .form-control:focus-visible,
body.page-activate .auth-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);

    outline-offset: 2px;
}

/* Socle d'interface commun */
body.page-activate .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-activate .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-activate .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-activate .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-activate .btn-primary {
    background: #2563eb;
    color: #fff;
}




/* edit_property.php */
body.page-edit-property {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.page-edit-property .page-back {
    margin-bottom: 18px;
}

body.page-edit-property .back-link {
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.page-edit-property .back-link:hover {
    color: var(--primary);
}

body.page-edit-property .hero {
    margin-bottom: 24px;
}

body.page-edit-property .hero-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.page-edit-property .hero h1 {
    margin: 8px 0;
}

body.page-edit-property .hero-text {
    margin: 0;
    color: #cbd5e1;
}

body.page-edit-property .edit-property-card {
    padding: 28px;
}

body.page-edit-property .edit-property-card h2 {
    margin: 0;
    font-size: 20px;
}

body.page-edit-property .form-section-title {
    margin-top: 35px !important;
}

body.page-edit-property label {
    display: block;
    margin: 15px 0 5px;
    font-size: 13px;
    font-weight: 700;
}

body.page-edit-property input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
}

body.page-edit-property input:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(37, 99, 235, .15);
    outline-offset: 0;
}

body.page-edit-property .actions {
    margin-top: 25px;
}

body.page-edit-property .error {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
}

body.page-edit-property .optional {
    color: var(--muted);
    font-size: 13px;
    font-weight: normal;
}

/* Socle d'interface commun */
body.page-edit-property .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-edit-property .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-edit-property .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-edit-property .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-edit-property .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-edit-property .edit-property-card {
        padding: 20px;
    }
}



/* forgot_password.php */

/* ============================================================
           VARIABLES
           ============================================================ */
body.page-forgot-password {
    --shadow:
        0 18px 45px rgba(15, 23, 42, 0.10);

    --radius: 18px;
}

/* ============================================================
           RESET
           ============================================================ */

body.page-forgot-password *,
body.page-forgot-password *::before,
body.page-forgot-password *::after {

    box-sizing:
        border-box;
}

body.page-forgot-password {

    margin: 0;

    padding: 0;

    min-height:
        100%;
}

body.page-forgot-password {

    margin: 0;

    min-height:
        100vh;

    min-height:
        100dvh;

    display: flex;

    align-items:
        center;

    justify-content:
        center;



    background:
        var(--bg);

    color:
        var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body.page-forgot-password a {

    color:
        inherit;
}

/* ============================================================
           CONTENEUR
           ============================================================ */

body.page-forgot-password .auth-wrapper {

    width:
        100%;

    max-width:
        440px;

    margin:
        auto;
}

/* ============================================================
           BRAND
           ============================================================ */

body.page-forgot-password .brand {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    margin-bottom:
        clamp(18px, 3vw, 24px);

    font-size:
        clamp(18px, 3vw, 20px);

    font-weight:
        800;

    text-decoration:
        none;
}

body.page-forgot-password .brand-icon {

    width:
        44px;

    height:
        44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    border-radius:
        13px;

    background:
        var(--dark);

    color:
        white;

    font-size:
        21px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.15);
}

/* ============================================================
           CARD
           ============================================================ */

body.page-forgot-password .card {

    width:
        100%;

    overflow:
        hidden;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}

/* ============================================================
           HEADER
           ============================================================ */

body.page-forgot-password .header {

    position:
        relative;

    padding:
        clamp(24px, 5vw, 30px) clamp(20px, 5vw, 30px) 10px;

    text-align:
        center;

    overflow:
        hidden;
}

body.page-forgot-password .header::after {

    content:
        "";

    position:
        absolute;

    width:
        180px;

    height:
        180px;

    right:
        -100px;

    top:
        -130px;

    border-radius:
        50%;

    background:
        rgba(37, 99, 235, 0.035);

    pointer-events:
        none;
}

body.page-forgot-password .header-icon {

    position:
        relative;

    z-index:
        1;

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        16px;

    background:
        #eff6ff;

    color:
        var(--primary);

    font-size:
        26px;
}

body.page-forgot-password h1 {

    position:
        relative;

    z-index:
        1;

    margin:
        0;

    font-size:
        clamp(22px, 5vw, 25px);

    line-height:
        1.25;

    font-weight:
        800;
}

body.page-forgot-password .subtitle {

    position:
        relative;

    z-index:
        1;

    max-width:
        390px;

    margin:
        9px auto 0;

    color:
        var(--muted);

    font-size:
        14px;

    line-height:
        1.5;
}

/* ============================================================
           BODY
           ============================================================ */

body.page-forgot-password . {

    padding:
        25px clamp(20px, 5vw, 30px) 30px;
}

/* ============================================================
           FORMULAIRE
           ============================================================ */

body.page-forgot-password .form-group {

    margin-bottom:
        18px;
}

body.page-forgot-password label {

    display:
        block;

    margin-bottom:
        7px;

    color:
        #374151;

    font-size:
        13px;

    font-weight:
        700;
}

body.page-forgot-password input {

    width:
        100%;

    height:
        46px;

    min-height:
        46px;

    padding:
        0 13px;

    border:
        1px solid #d1d5db;

    border-radius:
        10px;

    background:
        white;

    color:
        var(--text);

    font-family:
        inherit;

    font-size:
        14px;

    outline:
        none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

body.page-forgot-password input:hover {

    border-color:
        #9ca3af;
}

body.page-forgot-password input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.page-forgot-password input::placeholder {

    color:
        #9ca3af;
}

/* ============================================================
           BOUTON
           ============================================================ */

body.page-forgot-password .btn {

    width:
        100%;

    min-height:
        48px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    padding:
        11px 16px;

    border:
        0;

    border-radius:
        10px;

    background:
        var(--primary);

    color:
        white;

    font-family:
        inherit;

    font-size:
        14px;

    font-weight:
        750;

    cursor:
        pointer;

    text-decoration:
        none;

    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.20);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

    -webkit-tap-highlight-color:
        transparent;
}

body.page-forgot-password .btn:hover {

    background:
        var(--primary-hover);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}

body.page-forgot-password .btn:active {

    transform:
        translateY(0);
}

body.page-forgot-password .btn:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset:
        3px;
}

/* ============================================================
           ALERTES
           ============================================================ */

body.page-forgot-password .alert {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    margin-bottom:
        18px;

    padding:
        12px 14px;

    border-radius:
        10px;

    font-size:
        13px;

    line-height:
        1.5;

    overflow-wrap:
        anywhere;
}

body.page-forgot-password .alert-error {

    background:
        #fef2f2;

    border:
        1px solid #fecaca;

    color:
        #991b1b;
}

body.page-forgot-password .alert-success {

    background:
        #f0fdf4;

    border:
        1px solid #bbf7d0;

    color:
        #166534;
}

/* ============================================================
           FOOTER
           ============================================================ */

body.page-forgot-password .footer {

    margin-top:
        20px;

    text-align:
        center;

    font-size:
        13px;

    line-height:
        1.5;
}

body.page-forgot-password .footer a {

    color:
        var(--primary);

    font-weight:
        700;

    text-decoration:
        none;
}

body.page-forgot-password .footer a:hover {

    text-decoration:
        underline;
}

/* ============================================================
           TABLETTE
           ============================================================ */

@media (max-width: 768px) {
    body.page-forgot-password {

        padding:
            24px 18px;
    }

    body.page-forgot-password .auth-wrapper {

        max-width:
            440px;
    }
}

/* ============================================================
           MOBILE
           ============================================================ */

@media (max-width: 550px) {
    body.page-forgot-password {

        align-items:
            flex-start;

        padding:
            20px 12px;

        min-height:
            100dvh;
    }

    body.page-forgot-password .auth-wrapper {

        max-width:
            100%;
    }

    body.page-forgot-password .brand {

        margin-bottom:
            18px;
    }

    body.page-forgot-password .header {

        padding:
            24px 20px 10px;
    }

    body.page-forgot-password .header-icon {

        width:
            54px;

        height:
            54px;

        border-radius:
            15px;

        font-size:
            24px;
    }

    body.page-forgot-password h1 {

        font-size:
            23px;
    }

    body.page-forgot-password .subtitle {

        font-size:
            13px;
    }

    .body.page-forgot-password {

        padding:
            22px 20px 24px;
    }

    /*
             * des champs sur iOS.
             */

    body.page-forgot-password input {

        height:
            48px;

        min-height:
            48px;

        font-size:
            16px;
    }

    body.page-forgot-password .btn {

        min-height:
            48px;

        font-size:
            15px;
    }
}

/* ============================================================
           ============================================================ */

@media (max-width: 360px) {
    body.page-forgot-password {

        padding:
            14px 8px;
    }

    body.page-forgot-password .brand {

        font-size:
            17px;

        margin-bottom:
            14px;
    }

    body.page-forgot-password .brand-icon {

        width:
            40px;

        height:
            40px;

        font-size:
            19px;
    }

    body.page-forgot-password .header {

        padding:
            20px 16px 8px;
    }

    body.page-forgot-password .header-icon {

        width:
            48px;

        height:
            48px;

        margin-bottom:
            12px;

        border-radius:
            13px;

        font-size:
            22px;
    }

    body.page-forgot-password h1 {

        font-size:
            21px;
    }

    body.page-forgot-password .subtitle {

        font-size:
            12.5px;
    }

    .body.page-forgot-password {

        padding:
            20px 16px 22px;
    }

    body.page-forgot-password .form-group {

        margin-bottom:
            16px;
    }

    body.page-forgot-password .alert {

        font-size:
            12px;

        padding:
            11px 12px;
    }
}

/* ============================================================
           ============================================================ */

@media (max-height: 650px) and (min-width: 551px) {
    body.page-forgot-password {

        align-items:
            flex-start;

        padding-top:
            20px;

        padding-bottom:
            20px;
    }
}

/* ============================================================
           ============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.page-forgot-password *,
    body.page-forgot-password *::before,
    body.page-forgot-password *::after {

        transition:
            none !important;

        animation:
            none !important;
    }
}

/* Socle d'interface commun */
body.page-forgot-password .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-forgot-password .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-forgot-password .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-forgot-password .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-forgot-password .btn-primary {
    background: #2563eb;
    color: #fff;
}




/* login.php */

/* ============================================================
           VARIABLES
           ============================================================ */
body.page-login {
    --shadow:
        0 18px 45px rgba(15, 23, 42, 0.10);

    --radius: 18px;
}

/* ============================================================
           RESET
           ============================================================ */

body.page-login *,
body.page-login *::before,
body.page-login *::after {
    box-sizing: border-box;
}

body.page-login {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.page-login {
    margin: 0;
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;


}

body.page-login a {
    color: inherit;
}

/* ============================================================
           CONTENEUR PRINCIPAL
           ============================================================ */

body.page-login .auth-page {

    width: 100%;

    max-width: 480px;

    margin: auto;
}

/* ============================================================
           BRAND
           ============================================================ */

body.page-login .auth-brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom:
        clamp(18px, 3vw, 24px);

    text-decoration: none;

    font-size:
        clamp(18px, 3vw, 20px);

    font-weight: 800;
}

body.page-login .auth-brand-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--dark);

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.15);
}

/* ============================================================
           CARD
           ============================================================ */

body.page-login .auth-card {

    width: 100%;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

/* ============================================================
           HEADER
           ============================================================ */

body.page-login .auth-header {

    position: relative;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    color: white;

    padding:
        clamp(22px, 5vw, 30px);
}

body.page-login .auth-header::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -80px;
    top: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);

    pointer-events: none;
}

body.page-login .auth-header-content {

    position: relative;

    z-index: 1;
}

body.page-login .auth-header-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 21px;
}

body.page-login .auth-header h1 {

    margin: 0;

    font-size:
        clamp(23px, 5vw, 26px);

    line-height: 1.25;

    font-weight: 800;
}

body.page-login .auth-header p {

    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.5;

    max-width: 390px;
}

/* ============================================================
           BODY
           ============================================================ */

body.page-login .auth-body {

    padding:
        clamp(22px, 5vw, 30px);
}

body.page-login .auth-body>p {

    margin:
        20px 0 0;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;

    color: var(--muted);
}

body.page-login .auth-body>p a {

    color: var(--primary);

    font-weight: 750;

    text-decoration: none;
}

body.page-login .auth-body>p a:hover {

    text-decoration: underline;
}

/* ============================================================
           FORMULAIRE
           ============================================================ */

body.page-login .form-group {

    margin-bottom: 18px;
}

body.page-login .form-label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;

    font-weight: 700;
}

body.page-login .form-input-wrapper {

    position: relative;
}

body.page-login .form-input {

    width: 100%;

    min-height: 46px;

    height: 46px;

    padding:
        0 13px;

    border:
        1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

body.page-login .form-input:hover {

    border-color: #9ca3af;
}

body.page-login .form-input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.page-login .form-input::placeholder {

    color: #9ca3af;
}

/* ============================================================
           MOT DE PASSE
           ============================================================ */

body.page-login .password-wrapper {

    position: relative;
}

body.page-login .password-wrapper .form-input {

    padding-right: 50px;
}

body.page-login .password-toggle {

    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 17px;

    padding: 0;

    line-height: 1;

    -webkit-tap-highlight-color: transparent;
}

body.page-login .password-toggle:hover {

    background: #f3f4f6;

    color: var(--text);
}

body.page-login .password-toggle:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset:
        2px;
}

/* ============================================================
           OPTIONS
           ============================================================ */

body.page-login .form-options {

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: -4px;

    margin-bottom: 20px;
}

body.page-login .form-link {

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}

body.page-login .form-link:hover {

    color: var(--primary-hover);

    text-decoration: underline;
}

/* ============================================================
           BOUTON
           ============================================================ */

body.page-login .btn {

    width: 100%;

    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        11px 16px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    text-decoration: none;

    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.20);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

    -webkit-tap-highlight-color: transparent;
}

body.page-login .btn:hover {

    background: var(--primary-hover);

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}

body.page-login .btn:active {

    transform: translateY(0);
}

body.page-login .btn:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset:
        3px;
}

/* ============================================================
           ALERTES
           ============================================================ */

body.page-login .alert {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding:
        12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.45;
}

body.page-login .alert-error {

    background: #fef2f2;

    border:
        1px solid #fecaca;

    color: #991b1b;
}

body.page-login .alert-success {

    background: #f0fdf4;

    border:
        1px solid #bbf7d0;

    color: #166534;
}

body.page-login .alert-icon {

    flex:
        0 0 auto;
}

/* ============================================================
           FOOTER
           ============================================================ */

body.page-login .auth-footer {

    padding:
        0 clamp(20px, 5vw, 30px) clamp(22px, 5vw, 28px);

    text-align: center;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}

body.page-login .auth-footer a {

    color: var(--primary);

    font-weight: 750;

    text-decoration: none;
}

body.page-login .auth-footer a:hover {

    text-decoration: underline;
}

/* ============================================================
           TABLETTES
           ============================================================ */

@media (max-width: 768px) {
    body.page-login {

        /*     padding:
            24px 18px; */
    }

    body.page-login .auth-page {

        max-width: 460px;
    }
}

/* ============================================================
           MOBILES
           ============================================================ */

@media (max-width: 550px) {
    body.page-login {

        align-items: flex-start;

        /*  padding:
            20px 12px;

   
                 */
        min-height: 100dvh;
    }

    body.page-login .auth-page {
        margin: 20px 12px;
        max-width: 95%;
    }

    body.page-login .auth-brand {

        margin-bottom: 18px;
    }

    body.page-login .auth-header {

        padding:
            24px 20px;
    }

    body.page-login .auth-header h1 {

        font-size: 23px;
    }

    body.page-login .auth-body {

        padding:
            22px 20px;
    }

    body.page-login .auth-footer {

        padding:
            0 20px 24px;
    }

    body.page-login .form-input {

        min-height: 48px;

        height: 48px;

        font-size: 16px;
        /*
                 * sur iOS lors du focus.
                 */
    }

    body.page-login .btn {

        min-height: 48px;

        font-size: 15px;
    }

    body.page-login .password-toggle {

        width: 38px;
        height: 38px;
    }
}

/* ============================================================
           ============================================================ */

@media (max-width: 360px) {
    body.page-login {

        padding:
            14px 8px;
    }

    body.page-login .auth-brand {

        font-size: 17px;

        margin-bottom: 14px;
    }

    body.page-login .auth-brand-icon {

        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    body.page-login .auth-header {

        padding:
            20px 16px;
    }

    body.page-login .auth-header-icon {

        width: 40px;
        height: 40px;

        margin-bottom: 12px;
    }

    body.page-login .auth-header h1 {

        font-size: 21px;
    }

    body.page-login .auth-header p {

        font-size: 13px;
    }

    body.page-login .auth-body {

        padding:
            20px 16px;
    }

    body.page-login .auth-footer {

        padding:
            0 16px 20px;
    }

    body.page-login .form-group {

        margin-bottom: 16px;
    }

    body.page-login .form-options {

        margin-bottom: 18px;
    }
}

/* ============================================================
           ============================================================ */

@media (max-height: 700px) and (min-width: 551px) {
    body.page-login {

        align-items: flex-start;

        padding-top:
            20px;
        padding-bottom:
            20px;
    }
}

/* ============================================================
           ============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.page-login *,
    body.page-login *::before,
    body.page-login *::after {

        scroll-behavior: auto !important;

        transition:
            none !important;

        animation:
            none !important;
    }
}

/* Socle d'interface commun */
body.page-login .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-login .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-login .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-login .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-login .btn-primary {
    background: #2563eb;
    color: #fff;
}




/* negotiation.php */
body.page-negotiation {
    --warning-bg: #fffbeb;
}

body.page-negotiation * {
    box-sizing: border-box;
}

body.page-negotiation {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body.page-negotiation a {
    color: inherit;
}

body.page-negotiation .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-negotiation .brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 18px;

    font-weight: 800;

    text-decoration: none;
}

body.page-negotiation .brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    font-size: 20px;
}

/* =====================================================
           HERO
           ===================================================== */

body.page-negotiation .hero {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    border-radius: 22px;

    padding: 32px;

    color: white;

    margin-bottom: 24px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18);
}

body.page-negotiation .hero::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -100px;
    top: -160px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);
}

body.page-negotiation .hero-content {

    position: relative;

    z-index: 1;
}

body.page-negotiation .hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    color: #cbd5e1;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

body.page-negotiation .hero h1 {

    margin: 0;

    font-size: 30px;

    line-height: 1.2;
}

body.page-negotiation .hero-property {

    margin-top: 10px;

    color: #cbd5e1;

    font-size: 15px;
}

body.page-negotiation .hero-price {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    padding:
        8px 13px;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #f8fafc;

    font-size: 14px;
}

body.page-negotiation .hero-price strong {

    font-size: 17px;
}

/* =====================================================
           CARD
           ===================================================== */

body.page-negotiation .box {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

    margin-bottom: 24px;
}

body.page-negotiation .box-header {

    padding: 22px 24px;

    border-bottom:
        1px solid var(--border);
}

body.page-negotiation .box-body {

    padding: 24px;
}

body.page-negotiation .box h2 {

    margin: 0;

    font-size: 19px;

    font-weight: 750;
}

body.page-negotiation .box-subtitle {

    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}

/* =====================================================
           GENERATE
           ===================================================== */

body.page-negotiation .generate-box {

    padding: 24px;
}

body.page-negotiation .generate-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

body.page-negotiation .generate-text {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

body.page-negotiation .generate-text strong {

    color: var(--text);
}

body.page-negotiation .btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding:
        11px 18px;

    border: 0;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-negotiation .btn:hover {

    transform:
        translateY(-1px);
}

body.page-negotiation .btn-primary {

    background:
        var(--primary);

    color: white;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.2);
}

body.page-negotiation .btn-primary:hover {

    background:
        var(--primary-hover);
}

body.page-negotiation .negotiation-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

body.page-negotiation .negotiation-loading.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.page-negotiation .negotiation-loading-card {
    width: min(460px, 100%);
    padding: 36px 34px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .30);
    text-align: center;
}

body.page-negotiation .negotiation-loading-card h2 {
    margin: 0;
    font-size: 21px;
}

body.page-negotiation .negotiation-loading-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* =====================================================
           WARNING / ERROR
           ===================================================== */

body.page-negotiation .warning {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 16px;

    margin-bottom: 24px;

    background:
        var(--warning-bg);

    border:
        1px solid #fde68a;

    border-left:
        4px solid var(--warning);

    border-radius: 10px;

    color: #92400e;

    font-size: 13px;

    line-height: 1.6;
}

body.page-negotiation .error {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 16px;

    margin-bottom: 24px;

    background:
        var(--danger-bg);

    border:
        1px solid #fecaca;

    border-left:
        4px solid var(--danger);

    border-radius: 10px;

    color: #991b1b;

    font-size: 13px;

    line-height: 1.6;
}

/* =====================================================
           PRICE STRATEGY
           ===================================================== */

body.page-negotiation .price-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

body.page-negotiation .price-card {

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: #fafafa;
}

body.page-negotiation .price-card.featured {

    border-color:
        #bfdbfe;

    background:
        #eff6ff;
}

body.page-negotiation .price-label {

    color: var(--muted);

    font-size: 12px;

    font-weight: 650;

    margin-bottom: 9px;
}

body.page-negotiation .price-value {

    font-size: 22px;

    font-weight: 800;
}

body.page-negotiation .price-card.featured .price-value {

    color:
        var(--primary);
}

body.page-negotiation .price-justification {

    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    color: #374151;

    font-size: 14px;

    line-height: 1.7;
}

/* =====================================================
           ===================================================== */

body.page-negotiation .synthese {

    padding: 20px;

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 13px;

    color: #374151;

    font-size: 15px;

    line-height: 1.75;
}

/* =====================================================
           ARGUMENTS
           ===================================================== */

body.page-negotiation .arguments-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}

body.page-negotiation .argument {

    padding: 19px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;
}

body.page-negotiation .argument h3 {

    margin:
        0 0 14px;

    font-size: 16px;
}

body.page-negotiation .argument p {

    margin:
        9px 0;

    color: #4b5563;

    font-size: 13px;

    line-height: 1.6;
}

body.page-negotiation .argument strong {

    color: var(--text);
}

body.page-negotiation .force {

    display: inline-flex;

    align-items: center;

    padding:
        5px 9px;

    margin-top: 5px;

    border-radius: 7px;

    background:
        #f3f4f6;

    color: #374151;

    font-size: 11px;

    font-weight: 700;
}

body.page-negotiation .impact {

    margin-top: 14px;

    padding:
        10px 12px;

    border-radius: 8px;

    background:
        #f0fdf4;

    color:
        #166534;

    font-size: 12px;

    font-weight: 700;
}

/* =====================================================
           LISTS
           ===================================================== */

body.page-negotiation .simple-list {

    margin: 0;

    padding-left: 20px;

    color: #374151;

    font-size: 14px;

    line-height: 1.8;
}

/* =====================================================
           TRAVAUX
           ===================================================== */

body.page-negotiation .work-list {

    display: flex;

    flex-direction: column;
}

body.page-negotiation .work {

    padding:
        17px 0;

    border-bottom:
        1px solid var(--border);
}

body.page-negotiation .work:first-child {

    padding-top: 0;
}

body.page-negotiation .work:last-child {

    padding-bottom: 0;

    border-bottom: 0;
}

body.page-negotiation .work-title {

    font-size: 14px;

    font-weight: 750;

    margin-bottom: 7px;
}

body.page-negotiation .work-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 8px;
}

body.page-negotiation .work-badge {

    display: inline-flex;

    padding:
        5px 9px;

    border-radius: 7px;

    background:
        #f3f4f6;

    color: #4b5563;

    font-size: 11px;

    font-weight: 650;
}

/* =====================================================
           OBJECTIONS
           ===================================================== */

body.page-negotiation .objection {

    padding: 18px;

    margin-bottom: 12px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: #fafafa;
}

body.page-negotiation .objection:last-child {

    margin-bottom: 0;
}

body.page-negotiation .objection-vendeur {

    color: #374151;

    font-size: 13px;

    line-height: 1.6;
}

body.page-negotiation .objection-response {

    margin-top: 12px;

    padding-top: 12px;

    border-top:
        1px solid var(--border);

    color: #374151;

    font-size: 13px;

    line-height: 1.6;
}

/* =====================================================
           STRATEGIE
           ===================================================== */

body.page-negotiation .strategy-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}

body.page-negotiation .strategy-item {

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        #fafafa;
}

body.page-negotiation .strategy-label {

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

body.page-negotiation .strategy-value {

    color: #374151;

    font-size: 14px;

    line-height: 1.6;
}

body.page-negotiation .order-list {

    margin:
        10px 0 0;

    padding-left: 20px;

    color: #374151;

    font-size: 13px;

    line-height: 1.8;
}

/* =====================================================
           ARGUMENTAIRE
           ===================================================== */

body.page-negotiation .quote {

    position: relative;

    padding: 24px 26px;

    background:
        #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 13px;

    color: #374151;

    font-size: 15px;

    line-height: 1.8;

    white-space: pre-line;
}

body.page-negotiation .quote::before {

    content: "“";

    position: absolute;

    left: 12px;

    top: 4px;

    color: #cbd5e1;

    font-size: 38px;

    font-weight: 800;
}

/* =====================================================
           VIGILANCE
           ===================================================== */

body.page-negotiation .vigilance {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

body.page-negotiation .vigilance-item {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 13px 15px;

    border:
        1px solid #fde68a;

    border-radius: 10px;

    background:
        var(--warning-bg);

    color: #92400e;

    font-size: 13px;

    line-height: 1.5;
}

/* =====================================================
           JSON
           ===================================================== */

body.page-negotiation details.box {

    padding: 0;
}

body.page-negotiation details summary {

    padding: 20px 24px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    color: #374151;
}

body.page-negotiation details pre {

    margin: 0;

    padding: 20px 24px;

    border-top:
        1px solid var(--border);

    background:
        #111827;

    color: #e5e7eb;

    overflow-x: auto;

    font-size: 12px;

    line-height: 1.6;
}

/* =====================================================
           RESPONSIVE
           ===================================================== */

@media (max-width: 950px) {
    body.page-negotiation .price-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    body.page-negotiation .arguments-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {
    body.page-negotiation .page {

        width:
            min(100% - 24px,
                1200px);

        padding-top: 16px;
    }

    body.page-negotiation .hero {

        padding: 25px 20px;

        border-radius: 17px;
    }

    body.page-negotiation .hero h1 {

        font-size: 25px;
    }

    body.page-negotiation .box-header,
    body.page-negotiation .box-body {

        padding: 18px;
    }

    body.page-negotiation .generate-content {

        flex-direction: column;

        align-items: stretch;
    }

    body.page-negotiation .generate-content .btn {

        width: 100%;
    }

    body.page-negotiation .price-grid {

        grid-template-columns: 1fr;
    }

    body.page-negotiation .strategy-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {
    body.page-negotiation .hero-price {

        width: 100%;

        justify-content: center;
    }

}

/* Socle d'interface commun */
body.page-negotiation .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-negotiation .card,
body.page-negotiation .box {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-negotiation .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-negotiation .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-negotiation .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-negotiation .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-negotiation .hero {
        padding: 22px;
        border-radius: 17px;
    }
}




/* profile.php */
body.page-profile {}

body.page-profile * {
    box-sizing: border-box;
}

body.page-profile {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body.page-profile a {
    color: inherit;
}

/* =====================================================
           PAGE
           ===================================================== */



body.page-profile .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-profile .brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 18px;

    font-weight: 800;

    text-decoration: none;
}

body.page-profile .brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    font-size: 20px;
}

/* =====================================================
           HERO
           ===================================================== */

body.page-profile .hero {

    position: relative;

    overflow: hidden;

    margin-bottom: 24px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    color: white;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16);
}

body.page-profile .hero::after {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    top: -140px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);
}

body.page-profile .hero-content {

    position: relative;

    z-index: 1;
}

body.page-profile .hero-label {

    margin-bottom: 8px;

    color: #cbd5e1;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

body.page-profile .hero h1 {

    margin: 0;

    font-size: 30px;

    line-height: 1.2;
}

body.page-profile .hero-text {

    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 14px;
}

/* =====================================================
           GRID
           ===================================================== */

body.page-profile .profile-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr) minmax(280px, 0.8fr);

    gap: 24px;

    align-items: start;
}

/* =====================================================
           CARD
           ===================================================== */

body.page-profile .card {

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

body.page-profile .card+.card {

    margin-top: 24px;
}

body.page-profile .card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 21px 24px;

    border-bottom:
        1px solid var(--border);
}

body.page-profile .card-title {

    margin: 0;

    font-size: 17px;

    font-weight: 800;
}

body.page-profile .card-subtitle {

    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;
}

body.page-profile .card-body {

    padding: 24px;
}

/* =====================================================
           FORM
           ===================================================== */

body.page-profile .form-group {

    margin-bottom: 18px;
}

body.page-profile .form-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

body.page-profile .form-label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;

    font-weight: 700;
}

body.page-profile .form-input {

    width: 100%;

    height: 45px;

    padding: 0 13px;

    border:
        1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-profile .form-input:hover {

    border-color: #9ca3af;
}

body.page-profile .form-input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =====================================================
           PASSWORD
           ===================================================== */

body.page-profile .password-wrapper {

    position: relative;
}

body.page-profile .password-wrapper .form-input {

    padding-right: 48px;
}

body.page-profile .password-toggle {

    position: absolute;

    right: 11px;
    top: 50%;

    transform:
        translateY(-50%);

    padding: 5px;

    border: 0;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 16px;
}

body.page-profile .password-toggle:hover {

    color: var(--text);
}

/* =====================================================
           BUTTON
           ===================================================== */

body.page-profile .btn {

    min-height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.20);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

body.page-profile .btn:hover {

    background:
        var(--primary-hover);

    transform:
        translateY(-1px);
}

/* =====================================================
           ALERT
           ===================================================== */

body.page-profile .alert {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.45;
}

body.page-profile .alert-error {

    background: #fef2f2;

    border:
        1px solid #fecaca;

    color: #991b1b;
}

body.page-profile .alert-success {

    background: #f0fdf4;

    border:
        1px solid #bbf7d0;

    color: #166534;
}

/* =====================================================
           ACCOUNT INFO
           ===================================================== */

body.page-profile .account-profile {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;

    padding-bottom: 20px;

    border-bottom:
        1px solid var(--border);
}

body.page-profile .avatar {

    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 22px;

    font-weight: 800;
}

body.page-profile .account-name {

    margin: 0 0 4px;

    font-size: 16px;

    font-weight: 800;
}

body.page-profile .account-email {

    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

body.page-profile .account-details {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

body.page-profile .account-detail {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    font-size: 13px;
}

body.page-profile .account-detail-label {

    color: var(--muted);
}

body.page-profile .account-detail-value {

    font-weight: 700;

    text-align: right;
}

body.page-profile .role-badge {

    display: inline-flex;

    padding: 4px 9px;

    border-radius: 20px;

    background: #f3f4f6;

    color: #374151;

    font-size: 11px;

    font-weight: 750;

    text-transform: uppercase;
}

/* =====================================================
           SEPARATEUR
           ===================================================== */

body.page-profile .section-separator {

    height: 1px;

    margin: 26px 0;

    background:
        var(--border);
}

/* =====================================================
           RESPONSIVE
           ===================================================== */

@media (max-width: 850px) {
    body.page-profile .profile-grid {

        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {
    body.page-profile .page {

        width:
            min(100% - 24px,
                1050px);

        padding-top: 16px;
    }

    body.page-profile .hero {

        padding: 24px 20px;

        border-radius: 17px;
    }

    body.page-profile .hero h1 {

        font-size: 25px;
    }

    body.page-profile .card-header {

        padding: 18px;
    }

    body.page-profile .card-body {

        padding: 18px;
    }

    body.page-profile .form-grid {

        grid-template-columns: 1fr;

        gap: 0;
    }
}

/* Socle d'interface commun */
body.page-profile .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-profile .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-profile .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-profile .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-profile .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-profile .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-profile .hero {
        padding: 22px;
        border-radius: 17px;
    }
}




/* property.php */
body.page-property {
    --info: #0284c7;
    --radius-sm: 10px;

    --shadow:
        0 8px 30px rgba(15, 23, 42, .07);
}

body.page-property * {
    box-sizing: border-box;
}

body.page-property {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.5;
}

body.page-property a {
    color: inherit;
    text-decoration: none;
}

body.page-property button,
body.page-property input,
body.page-property select {
    font: inherit;
}

body.page-property .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-property .brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 18px;

    font-weight: 800;

    text-decoration: none;
}

body.page-property .brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    font-size: 20px;
}

/* =====================================================
           BOUTONS
           ===================================================== */

body.page-property .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 10px;

    padding: 10px 15px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

body.page-property .btn:hover {
    transform: translateY(-1px);
}

body.page-property .btn-primary {
    color: white;
    background: var(--primary);
}

body.page-property .btn-primary:hover {
    background: var(--primary-hover);
}

body.page-property .btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

body.page-property .btn-secondary:hover {
    background: #f9fafb;
}

body.page-property .btn-dark {
    color: white;
    background: var(--dark);
}

body.page-property .btn-danger {
    color: white;
    background: var(--danger);
}

/* =====================================================
           HERO
           ===================================================== */

body.page-property .hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 60%,
            #26354a 100%);

    border-radius: 22px;

    color: white;

    padding: 30px;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, .18);

    margin-bottom: 22px;
}

body.page-property .hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -130px;
    top: -170px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);
}

body.page-property .hero-content {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}

body.page-property .hero-main {
    min-width: 0;
}

body.page-property .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;

    color: #cbd5e1;

    font-weight: 700;

    margin-bottom: 8px;
}

body.page-property .hero h1 {
    margin: 0 0 7px;

    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;

    letter-spacing: -.03em;
}

body.page-property .hero-address {
    color: #cbd5e1;
    font-size: 15px;
}

body.page-property .hero-price {
    text-align: right;
    flex-shrink: 0;
}

body.page-property .hero-price-label {
    display: block;

    color: #94a3b8;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;

    margin-bottom: 3px;
}

body.page-property .hero-price-value {
    font-size: 30px;
    font-weight: 800;
}

body.page-property .hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 22px;
}

/* =====================================================
           LAYOUT
           ===================================================== */

body.page-property .dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, .85fr) minmax(0, 1.6fr);

    gap: 22px;

    align-items: start;
}

body.page-property .left-column,
body.page-property .right-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* =====================================================
           CARDS
           ===================================================== */

body.page-property .card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
    width: 100%;
}

body.page-property .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);
}

body.page-property .card-title {
    margin: 0;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: -.01em;
}

body.page-property .card-subtitle {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}

body.page-property .card-body {
    padding: 22px;
}

/* =====================================================
           INFORMATIONS DOSSIER
           ===================================================== */

body.page-property .info-list {
    display: flex;
    flex-direction: column;
}

body.page-property .info-item {
    display: grid;

    grid-template-columns: 34px minmax(0, 1fr);

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

body.page-property .info-item:first-child {
    padding-top: 0;
}

body.page-property .info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.page-property .info-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 9px;

    font-size: 16px;
}

body.page-property .info-label {
    display: block;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;

    margin-bottom: 2px;
}

body.page-property .info-value {
    font-size: 14px;
    font-weight: 600;

    word-break: break-word;
}

/* =====================================================
           CONTACT
           ===================================================== */

body.page-property .contact-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

body.page-property .contact-item:last-child {
    border-bottom: 0;
}

body.page-property .contact-icon {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-property .contact-content {
    min-width: 0;
}

body.page-property .contact-label {
    display: block;

    font-size: 11px;
    color: var(--muted);
}

body.page-property .contact-value {
    font-size: 14px;
    font-weight: 600;

    overflow-wrap: anywhere;
}

/* =====================================================
           FORMULAIRES
           ===================================================== */

body.page-property .upload-box {
    border: 1px dashed #cbd5e1;

    border-radius: 12px;

    padding: 17px;

    background: #f8fafc;
}

body.page-property .upload-form-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

html.js body.page-property .upload-section .upload-form {
    display: none;
}

html.js body.page-property .upload-section.is-upload-open .upload-form {
    display: block;
}

body.page-property .form-group {
    margin-bottom: 15px;
}

body.page-property .form-group:last-child {
    margin-bottom: 0;
}

body.page-property .form-label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;

    color: #374151;
}

body.page-property input[type="file"],
body.page-property select {
    width: 100%;

    border: 1px solid var(--border);

    background: white;

    border-radius: 9px;

    padding: 10px 11px;

    font-size: 13px;

    outline: none;

    transition: .2s;
}

body.page-property input[type="file"]:focus,
body.page-property select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .1);
}

body.page-property .upload-help {
    color: var(--muted);

    font-size: 11px;

    margin-top: 6px;
}

body.page-property .upload-button {
    width: 100%;

    margin-top: 5px;
}

body.page-property .upload-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

body.page-property .upload-fields .form-group {
    margin-bottom: 15px;
    min-width: 0;
}

body.page-property .upload-fields .form-group:last-child {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

body.page-property .upload-fields .btn {
    width: 100%;
}

/* =====================================================
           PHOTOS
           ===================================================== */

body.page-property .photo-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(160px, 1fr));

    gap: 14px;
}

body.page-property .photo-card {
    position: relative;

    overflow: hidden;

    border-radius: 12px;

    background: #f3f4f6;

    border: 1px solid var(--border);

    aspect-ratio: 4 / 3;
}

body.page-property .photo-card a {
    display: block;

    width: 100%;
    height: 100%;
}

body.page-property .photo-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

body.page-property .photo-card:hover img {
    transform: scale(1.04);
}

body.page-property .photo-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px 10px 9px;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, .7));

    color: white;

    font-size: 11px;

    pointer-events: none;
}

/* =====================================================
           DOCUMENTS
           ===================================================== */

body.page-property .document-list {
    display: flex;
    flex-direction: column;
}

body.page-property .document {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;

    gap: 13px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

body.page-property .document:first-child {
    padding-top: 0;
}

body.page-property .document:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.page-property .document-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

body.page-property .document-main {
    flex: 1;
    min-width: 0;
}

body.page-property .document-name {
    font-size: 13px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-property .document-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

body.page-property .document-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

body.page-property .document-actions a {
    padding: 7px 9px;

    border: 1px solid var(--border);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    background: white;
}

body.page-property .document-actions a:hover {
    background: #f9fafb;
}

body.page-property .document-actions form {
    margin: 0;
}

body.page-property .document-actions button {
    padding: 7px 9px;

    border: 1px solid #fecaca;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    background: #fff;
    color: var(--danger);

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}

body.page-property .document-actions button:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* =====================================================
           BADGES
           ===================================================== */

body.page-property .badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

body.page-property .badge-success {
    background: #dcfce7;
    color: #166534;
}

body.page-property .badge-warning {
    background: #fef3c7;
    color: #92400e;
}

body.page-property .badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

body.page-property .badge-info {
    background: #e0f2fe;
    color: #075985;
}

/* =====================================================
           ANALYSE
           ===================================================== */

body.page-property .analysis-wrapper {
    margin-top: 22px;
}

body.page-property .analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 23px;

    border-bottom: 1px solid var(--border);
}

body.page-property .analysis-header-main {
    display: flex;
    align-items: center;

    gap: 14px;
}

body.page-property .ai-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(135deg,
            #2563eb,
            #7c3aed);

    color: white;

    font-size: 23px;
}

body.page-property .analysis-title {
    margin: 0;

    font-size: 20px;
    font-weight: 800;
}

body.page-property .analysis-meta {
    color: var(--muted);

    font-size: 11px;

    margin-top: 3px;
}

body.page-property .summary {
    margin-bottom: 22px;

    padding: 18px 20px;

    border-radius: 13px;

    background: #f8fafc;

    border: 1px solid var(--border);
}

body.page-property .summary-title {
    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}

body.page-property .summary p {
    margin: 0;

    font-size: 14px;
    color: #374151;
}

body.page-property .analysis-section {
    padding: 22px 0;

    border-bottom: 1px solid var(--border);
}

body.page-property .analysis-section:last-child {
    border-bottom: 0;
}

body.page-property .analysis-section-title {
    display: flex;
    align-items: center;

    gap: 9px;

    margin: 0 0 16px;

    font-size: 16px;
    font-weight: 800;
}

/* =====================================================
           STATS
           ===================================================== */

body.page-property .stat-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 12px;
}

body.page-property .stat {
    padding: 14px;

    border-radius: 11px;

    background: #f8fafc;

    border: 1px solid var(--border);
}

body.page-property .stat-label {
    display: block;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: .04em;

    margin-bottom: 4px;
}

body.page-property .stat-value {
    font-size: 16px;
    font-weight: 800;
}

/* =====================================================
           DPE
           ===================================================== */

body.page-property .dpe-card {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #fafafa;
}

body.page-property .dpe-grades {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

body.page-property .dpe-grade {
    width: 125px;

    padding: 7px 12px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 800;
}

body.page-property .dpe-a {
    background: #319834;
    color: white;
}

body.page-property .dpe-b {
    background: #63b83f;
    color: white;
}

body.page-property .dpe-c {
    background: #b4cc39;
    color: white;
}

body.page-property .dpe-d {
    background: #f0c52b;
    color: #111827;
}

body.page-property .dpe-e {
    background: #ef9633;
    color: white;
}

body.page-property .dpe-f {
    background: #e86d2d;
    color: white;
}

body.page-property .dpe-g {
    background: #d7352f;
    color: white;
}

body.page-property .dpe-empty {
    background: #9ca3af;
    color: white;
}

body.page-property .dpe-details {
    flex: 1;
}

body.page-property .dpe-main {
    font-size: 18px;
    font-weight: 800;

    margin-bottom: 5px;
}

body.page-property .dpe-sub {
    color: var(--muted);

    font-size: 12px;
}

/* =====================================================
           ALERTES
           ===================================================== */

body.page-property .alert-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

body.page-property .alert {
    padding: 14px 16px;

    border-radius: 11px;

    border-left: 4px solid;
}

body.page-property .alert-title {
    font-size: 13px;
    font-weight: 800;

    margin-bottom: 4px;
}

body.page-property .alert-text {
    font-size: 12px;

    color: #4b5563;
}

body.page-property .alert-danger {
    background: #fef2f2;
    border-color: var(--danger);
}

body.page-property .alert-warning {
    background: #fffbeb;
    border-color: var(--warning);
}

body.page-property .alert-info {
    background: #eff6ff;
    border-color: var(--primary);
}

body.page-property .alert-success {
    background: #f0fdf4;
    border-color: var(--success);
}

body.page-property .anomaly-list {
    margin: 8px 0 0 18px;
    padding: 0;

    font-size: 12px;
}

body.page-property .anomaly-list li {
    margin-bottom: 4px;
}

/* =====================================================
           TRAVAUX
           ===================================================== */

body.page-property .work-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

body.page-property .work {
    padding: 16px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: white;
}

body.page-property .work-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

body.page-property .work-title {
    font-size: 14px;
    font-weight: 800;
}

body.page-property .work-cost {
    flex-shrink: 0;

    font-size: 13px;
    font-weight: 800;

    color: var(--primary);
}

body.page-property .work-description {
    font-size: 12px;
    color: #4b5563;
}

/* =====================================================
           ===================================================== */

body.page-property .negotiation-container {
    margin-top: 22px;
}

body.page-property .negotiation {
    position: relative;

    padding: 22px;

    border-radius: 15px;

    background:
        linear-gradient(135deg,
            #eff6ff,
            #eef2ff);

    border: 1px solid #dbeafe;
}

body.page-property .negotiation-title {
    margin: 0 0 5px;

    font-size: 17px;
    font-weight: 800;
}

body.page-property .negotiation-text {
    margin: 0;

    color: #475569;

    font-size: 13px;
}

body.page-property .negotiation-cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 17px;
}

body.page-property .negotiation-impact {
    font-size: 12px;
    color: var(--muted);
}

/* =====================================================
           ===================================================== */

body.page-property .negotiation-points {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

body.page-property .negotiation-point {
    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: #fff;
}

body.page-property .negotiation-point-title {
    font-weight: 800;

    font-size: 13px;

    margin-bottom: 5px;
}

body.page-property .negotiation-point-text {
    font-size: 12px;

    color: #4b5563;
}

body.page-property .impact {
    margin-top: 7px;

    font-size: 11px;

    color: var(--primary);

    font-weight: 700;
}

/* =====================================================
           RAW JSON
           ===================================================== */

body.page-property details {
    margin-top: 20px;

    border: 1px solid var(--border);

    border-radius: 11px;

    overflow: hidden;
}

body.page-property details summary {
    cursor: pointer;

    padding: 13px 15px;

    background: #f8fafc;

    font-size: 12px;
    font-weight: 800;
}

body.page-property details pre {
    margin: 0;

    padding: 15px;

    max-height: 500px;

    overflow: auto;

    background: #111827;

    color: #e5e7eb;

    font-size: 11px;

    white-space: pre-wrap;
    word-break: break-word;
}

/* =====================================================
           EMPTY
           ===================================================== */

body.page-property .empty {
    padding: 28px 15px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

body.page-property .empty-icon {
    display: block;

    font-size: 28px;

    margin-bottom: 8px;
}

/* ============================================================
   OVERLAY ANALYSE IA
   ============================================================ */

body.page-property .analysis-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, .72);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

body.page-property .analysis-loading.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ============================================================
   CARTE
   ============================================================ */

body.page-property .analysis-loading-card {
    width: min(460px, 100%);

    padding: 36px 34px;

    background: white;

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .30);

    text-align: center;

    animation:
        analysisCardIn .35s ease-out;
}

@keyframes analysisCardIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

/* ============================================================
   ANIMATION IA
   ============================================================ */

body.page-property .ai-loader {
    position: relative;

    width: 82px;
    height: 82px;

    margin: 0 auto 22px;
}

body.page-property .ai-loader-ring {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-right-color: #7c3aed;

    animation:
        analysisSpin 1.1s linear infinite;
}

@keyframes analysisSpin {

    to {
        transform: rotate(360deg);
    }

}

body.page-property .ai-loader-icon {
    position: absolute;

    inset: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            #2563eb,
            #7c3aed);

    color: white;

    font-size: 25px;

    animation:
        analysisPulse 1.8s ease-in-out infinite;
}

@keyframes analysisPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

}

/* ============================================================
   TITRE
   ============================================================ */

body.page-property .analysis-loading-card h2 {
    margin: 0;

    color: var(--text);

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -.02em;
}

body.page-property .analysis-loading-main {
    margin: 7px 0 25px;

    color: var(--muted);

    font-size: 13px;
}

/* ============================================================
   ============================================================ */

body.page-property .analysis-steps {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 24px;

    text-align: left;
}

body.page-property .analysis-step {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #9ca3af;

    font-size: 12px;
    font-weight: 600;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

body.page-property .analysis-step.active {
    color: var(--primary);

    background: #eff6ff;

    transform: translateX(3px);
}

body.page-property .analysis-step.done {
    color: var(--success);

    background: #f0fdf4;
}

body.page-property .step-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background: #f3f4f6;

    font-size: 14px;
}

body.page-property .analysis-step.active .step-icon {
    background: #dbeafe;
}

body.page-property .analysis-step.done .step-icon {
    background: #dcfce7;
}

/* ============================================================
   AVERTISSEMENT
   ============================================================ */

body.page-property .analysis-warning {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 13px;

    margin-top: 5px;

    border-radius: 11px;

    background: #fffbeb;

    border: 1px solid #fde68a;

    text-align: left;
}

body.page-property .analysis-warning>span {
    font-size: 18px;
    line-height: 1;
}

body.page-property .analysis-warning strong {
    display: block;

    margin-bottom: 2px;

    color: #92400e;

    font-size: 12px;
}

body.page-property .analysis-warning small {
    display: block;

    color: #a16207;

    font-size: 10px;

    line-height: 1.4;
}

/* ============================================================
   ============================================================ */

body.page-property .analysis-dots {
    display: flex;

    justify-content: center;

    gap: 5px;

    margin-top: 19px;
}

body.page-property .analysis-dots span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--primary);

    animation:
        analysisDot 1.2s infinite ease-in-out;
}

body.page-property .analysis-dots span:nth-child(2) {
    animation-delay: .15s;
}

body.page-property .analysis-dots span:nth-child(3) {
    animation-delay: .30s;
}

@keyframes analysisDot {

    0%,
    80%,
    100% {
        opacity: .25;
        transform: scale(.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }

}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 500px) {
    body.page-property .analysis-loading-card {
        padding: 30px 22px;

        border-radius: 18px;
    }

    body.page-property .analysis-loading-card h2 {
        font-size: 19px;
    }

}

/* =====================================================
           MOBILE
           ===================================================== */

@media (max-width: 1000px) {
    body.page-property .dashboard-grid {
        grid-template-columns: 1fr;
    }

    body.page-property .left-column {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        align-items: start;
    }

    body.page-property .left-column>* {
        min-width: 0;
    }
}


@media (max-width: 700px) {
    body.page-property .upload-fields {
        grid-template-columns: 1fr;
    }

    body.page-property .upload-fields .form-group:last-child {
        grid-column: auto;
    }

    body.page-property .document {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
    }

    body.page-property .document-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    body.page-property .page {
        width: min(100% - 24px, 1450px);

        padding-top: 14px;
    }

    body.page-property .hero {
        padding: 22px;

        border-radius: 17px;
    }

    body.page-property .hero-content {
        flex-direction: column;
    }

    body.page-property .hero-price {
        text-align: left;
    }

    body.page-property .hero-price-value {
        font-size: 26px;
    }

    body.page-property .hero-actions {
        width: 100%;
    }

    body.page-property .hero-actions .btn {
        flex: 1;
    }

    body.page-property .left-column,
    body.page-property .right-column {
        display: flex;
    }

    body.page-property .card-header,
    body.page-property .card-body {
        padding: 17px;
    }

    body.page-property .analysis-header {
        flex-direction: column;
    }

    body.page-property .dpe-card {
        flex-direction: column;

        align-items: flex-start;
    }

    body.page-property .dpe-grade {
        width: 110px;
    }

    body.page-property .negotiation-cta {
        flex-direction: column;

        align-items: stretch;
    }

    body.page-property .negotiation-cta .btn {
        width: 100%;
    }
}


@media (max-width: 500px) {
    body.page-property .top-actions {
        width: 100%;
    }

    body.page-property .top-actions .btn {
        flex: 1;
    }

    body.page-property .document {
        align-items: flex-start;
    }

    body.page-property .document-actions {
        /* flex-direction: column; */
    }

    body.page-property .document-actions a {
        text-align: center;
    }

    body.page-property .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.page-property .analysis-section {
        padding: 18px 0;
    }
}

body.page-property .print-only {
    display: none;
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    body.page-property {
        background: #fff;
        font-size: 9pt;
        line-height: 1.25;
    }

    body.page-property .page {
        width: auto;
        margin: 0;
        padding: 0;
    }

    body.page-property .hero-actions,
    body.page-property form,
    body.page-property #documents,
    body.page-property .upload-form-toggle,
    body.page-property .analysis-loading,
    body.page-property details,
    body.page-property .negotiation-container {
        display: none !important;
    }

    body.page-property .hero,
    body.page-property .card,
    body.page-property .analysis-wrapper,
    body.page-property .analysis-section {
        box-shadow: none;
        border: 0;
        background: var(--card);
    }

    body.page-property .hero {
        color: #111827;
        padding: 0 0 4mm;
        margin: 0;
    }

    body.page-property .hero::after {
        display: none;
    }

    body.page-property .dashboard-grid {
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 5mm;
        align-items: start;
    }

    body.page-property .left-column,
    body.page-property .right-column {
        display: block;
    }

    body.page-property .card {
        break-inside: avoid;
        margin: 0 0 3mm;
    }

    body.page-property .card-header,
    body.page-property .card-body {
        padding: 3mm 0;
    }

    body.page-property .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2mm;
    }

    body.page-property .photo-card {
        border-radius: 0;
        break-inside: avoid;
    }

    body.page-property #photos {
        break-inside: auto;
    }

    body.page-property #photos .card-header,
    body.page-property #photos .card-body {
        padding-top: 0;
    }

    body.page-property .photo-overlay {
        display: none;
    }

    body.page-property .analysis-section {
        break-inside: avoid;
        padding: 3mm 0;
    }

    body.page-property .print-negotiation-section {
        break-before: page;
        page-break-before: always;
        padding: 0;
    }

    body.page-property .print-only {
        display: block;
    }
}

/* Socle d'interface commun */
body.page-property .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-property .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-property .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-property .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-property .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-property .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-property .hero {
        padding: 22px;
        border-radius: 17px;
    }
}




/* reanalyze_document.php */
body.page-reanalyze-document {}

body.page-reanalyze-document * {
    box-sizing: border-box;
}

body.page-reanalyze-document {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body.page-reanalyze-document a {
    color: inherit;
}

body.page-reanalyze-document .page {

    width:
        min(1000px,
            calc(100% - 40px));

    margin: 0 auto;

    padding:
        30px 0 60px;
}

/* Navigation de retour */

body.page-reanalyze-document .page-back {

    margin-bottom: 20px;
}

body.page-reanalyze-document .back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #4b5563;

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;
}

body.page-reanalyze-document .back-link:hover {
    color: var(--primary);
}

/* =====================================================
           HERO
           ===================================================== */

body.page-reanalyze-document .hero {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    border-radius: 22px;

    padding: 32px;

    color: white;

    margin-bottom: 24px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18);
}

body.page-reanalyze-document .hero::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    top: -140px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);
}

body.page-reanalyze-document .hero-content {

    position: relative;

    z-index: 1;
}

body.page-reanalyze-document .hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    color: #cbd5e1;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

body.page-reanalyze-document .hero h1 {

    margin: 0;

    font-size: 30px;

    line-height: 1.25;

    overflow-wrap: anywhere;
}

body.page-reanalyze-document .hero-subtitle {

    margin: 10px 0 0;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.6;
}

/* =====================================================
           CARD
           ===================================================== */

body.page-reanalyze-document .card {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

body.page-reanalyze-document .card-header {

    padding: 22px 24px;

    border-bottom:
        1px solid var(--border);
}

body.page-reanalyze-document .card-title {

    margin: 0;

    font-size: 18px;

    font-weight: 750;
}

body.page-reanalyze-document .card-subtitle {

    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}

body.page-reanalyze-document .card-body {

    padding: 24px;
}

/* =====================================================
           DOCUMENT INFO
           ===================================================== */

body.page-reanalyze-document .document-info {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 16px;

    margin-bottom: 24px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: #f9fafb;
}

body.page-reanalyze-document .document-icon {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 22px;
}

body.page-reanalyze-document .document-name {

    font-size: 15px;

    font-weight: 750;

    overflow-wrap: anywhere;
}

body.page-reanalyze-document .document-property {

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;
}

/* =====================================================
           ERROR
           ===================================================== */

body.page-reanalyze-document .error {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 15px 16px;

    margin-bottom: 22px;

    border:
        1px solid #fecaca;

    border-left:
        4px solid var(--danger);

    border-radius: 10px;

    background: #fef2f2;

    color: #991b1b;

    font-size: 14px;

    line-height: 1.5;
}

/* =====================================================
           CATEGORIES
           ===================================================== */

body.page-reanalyze-document .categories-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}

body.page-reanalyze-document .category {

    position: relative;

    display: block;

    cursor: pointer;
}

body.page-reanalyze-document .category input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

body.page-reanalyze-document .category-content {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 78px;

    padding: 14px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

body.page-reanalyze-document .category:hover .category-content {

    border-color: #cbd5e1;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, 0.06);

    transform:
        translateY(-1px);
}

body.page-reanalyze-document .category-icon {

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #f3f4f6;

    font-size: 18px;
}

body.page-reanalyze-document .category-text {
    min-width: 0;
}

body.page-reanalyze-document .category-label {

    display: block;

    margin-bottom: 3px;

    font-size: 14px;

    font-weight: 750;
}

body.page-reanalyze-document .category-description {

    display: block;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.35;
}

body.page-reanalyze-document .category-check {

    margin-left: auto;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    border:
        2px solid #d1d5db;

    border-radius: 6px;

    position: relative;

    background: white;
}

body.page-reanalyze-document .category input:checked+.category-content {

    border-color:
        var(--primary);

    background:
        #eff6ff;

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.08);
}

body.page-reanalyze-document .category input:checked+.category-content .category-check {

    border-color:
        var(--primary);

    background:
        var(--primary);
}

body.page-reanalyze-document .category input:checked+.category-content .category-check::after {

    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border:
        solid white;

    border-width:
        0 2px 2px 0;

    transform:
        rotate(45deg);
}

/* =====================================================
           ACTION
           ===================================================== */

body.page-reanalyze-document .action-area {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 26px;

    padding-top: 22px;

    border-top:
        1px solid var(--border);
}

body.page-reanalyze-document .action-help {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}

body.page-reanalyze-document .btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding:
        11px 18px;

    border: 0;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-reanalyze-document .btn:hover {

    transform:
        translateY(-1px);
}

body.page-reanalyze-document .btn-primary {

    background:
        var(--primary);

    color: white;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.2);
}

body.page-reanalyze-document .btn-primary:hover {

    background:
        var(--primary-hover);
}

body.page-reanalyze-document .analysis-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

body.page-reanalyze-document .analysis-loading.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.page-reanalyze-document .analysis-loading-card {
    width: min(460px, 100%);
    padding: 36px 34px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .30);
    text-align: center;
}

body.page-reanalyze-document .analysis-loading-card h2 {
    margin: 0;
    font-size: 21px;
}

body.page-reanalyze-document .analysis-loading-main {
    margin: 7px 0 25px;
    color: var(--muted);
    font-size: 13px;
}

body.page-reanalyze-document .analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

body.page-reanalyze-document .analysis-step {
    padding: 10px 12px;
    border-radius: 9px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

body.page-reanalyze-document .analysis-step.active {
    color: var(--primary);
    background: #eff6ff;
}

body.page-reanalyze-document .analysis-step.done {
    color: #16a34a;
    background: #f0fdf4;
}

/* =====================================================
           RESPONSIVE
           ===================================================== */

@media (max-width: 800px) {
    body.page-reanalyze-document .categories-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {
    body.page-reanalyze-document .page {

        width:
            min(100% - 24px,
                1000px);

        padding-top: 16px;
    }

    body.page-reanalyze-document .hero {

        padding: 25px 20px;

        border-radius: 17px;
    }

    body.page-reanalyze-document .hero h1 {

        font-size: 25px;
    }

    body.page-reanalyze-document .card-body {

        padding: 18px;
    }

    body.page-reanalyze-document .card-header {

        padding: 18px;
    }

    body.page-reanalyze-document .categories-grid {

        grid-template-columns: 1fr;
    }

    body.page-reanalyze-document .action-area {

        flex-direction: column;

        align-items: stretch;
    }

    body.page-reanalyze-document .action-help {

        text-align: center;
    }

    body.page-reanalyze-document .btn {

        width: 100%;
    }

}


@media (max-width: 400px) {
    body.page-reanalyze-document .document-info {

        align-items: flex-start;
    }

}

/* Socle d'interface commun */
body.page-reanalyze-document .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-reanalyze-document .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-reanalyze-document .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-reanalyze-document .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-reanalyze-document .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-reanalyze-document .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-reanalyze-document .hero {
        padding: 22px;
        border-radius: 17px;
    }
}




/* register.php */

/* ============================================================
           VARIABLES
           ============================================================ */
body.page-register {
    --shadow:
        0 18px 45px rgba(15, 23, 42, 0.10);

    --radius: 18px;
}

/* ============================================================
           RESET
           ============================================================ */

body.page-register *,
body.page-register *::before,
body.page-register *::after {
    box-sizing: border-box;
}

body.page-register {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.page-register {

    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    display: flex;

    align-items: center;
    justify-content: center;

}

body.page-register a {
    color: inherit;
}

/* ============================================================
           CONTENEUR
           ============================================================ */

body.page-register .auth-page {

    width: 100%;

    max-width: 480px;

    margin: auto;
}

/* ============================================================
           BRAND
           ============================================================ */

body.page-register .auth-brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom:
        clamp(18px, 3vw, 24px);

    text-decoration: none;

    font-size:
        clamp(18px, 3vw, 20px);

    font-weight: 800;
}

body.page-register .auth-brand-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--dark);

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.15);
}

/* ============================================================
           CARD
           ============================================================ */

body.page-register .auth-card {

    width: 100%;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

/* ============================================================
           HEADER
           ============================================================ */

body.page-register .auth-header {

    position: relative;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    color: white;

    padding:
        clamp(22px, 5vw, 30px);

    overflow: hidden;
}

body.page-register .auth-header::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -80px;
    top: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);

    pointer-events: none;
}

body.page-register .auth-header-content {

    position: relative;

    z-index: 1;
}

body.page-register .auth-header-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 21px;
}

body.page-register .auth-header h1 {

    margin: 0;

    font-size:
        clamp(23px, 5vw, 26px);

    line-height: 1.25;

    font-weight: 800;
}

body.page-register .auth-header p {

    margin: 8px 0 0;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.5;

    max-width: 390px;
}

/* ============================================================
           BODY
           ============================================================ */

body.page-register .auth-body {

    padding:
        clamp(22px, 5vw, 30px);
}

/* ============================================================
           FORMULAIRE
           ============================================================ */

body.page-register .form-group {

    margin-bottom: 18px;
}

body.page-register .form-label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;

    font-weight: 700;
}

body.page-register .form-input {

    width: 100%;

    height: 46px;
    min-height: 46px;

    padding:
        0 13px;

    border:
        1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

body.page-register .form-input:hover {

    border-color: #9ca3af;
}

body.page-register .form-input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.page-register .form-input::placeholder {

    color: #9ca3af;
}

/* ============================================================
           PASSWORD
           ============================================================ */

body.page-register .password-wrapper {

    position: relative;
}

body.page-register .password-wrapper .form-input {

    padding-right: 50px;
}

body.page-register .password-toggle {

    position: absolute;

    right: 10px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 17px;

    padding: 0;

    line-height: 1;

    -webkit-tap-highlight-color:
        transparent;
}

body.page-register .password-toggle:hover {

    background: #f3f4f6;

    color: var(--text);
}

body.page-register .password-toggle:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset: 2px;
}

/* ============================================================
           CHECKBOX
           ============================================================ */

body.page-register .checkbox-group {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}

body.page-register .checkbox-group input {

    width: 17px;
    height: 17px;

    flex:
        0 0 17px;

    margin:
        1px 0 0;

    accent-color:
        var(--primary);

    cursor: pointer;
}

body.page-register .checkbox-group label {

    cursor: pointer;
}

/* ============================================================
           BOUTON
           ============================================================ */

body.page-register .btn {

    width: 100%;

    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        11px 16px;

    border: 0;

    border-radius: 10px;

    background:
        var(--primary);

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    text-decoration: none;

    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.20);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

    -webkit-tap-highlight-color:
        transparent;
}

body.page-register .btn:hover {

    background:
        var(--primary-hover);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}

body.page-register .btn:active {

    transform:
        translateY(0);
}

body.page-register .btn:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset: 3px;
}

/* ============================================================
           ALERTES
           ============================================================ */

body.page-register .alert {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding:
        12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.45;
}

body.page-register .alert-error {

    background:
        #fef2f2;

    border:
        1px solid #fecaca;

    color:
        #991b1b;
}

body.page-register .alert-icon {

    flex:
        0 0 auto;
}

/* ============================================================
           RETOUR ACCUEIL
           ============================================================ */

body.page-register .auth-back {

    margin:
        20px 0 0;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;
}

body.page-register .auth-back a {

    color:
        var(--primary);

    font-weight:
        750;

    text-decoration:
        none;
}

body.page-register .auth-back a:hover {

    text-decoration:
        underline;
}

/* ============================================================
           FOOTER
           ============================================================ */

body.page-register .auth-footer {

    padding:
        0 clamp(20px, 5vw, 30px) clamp(22px, 5vw, 28px);

    text-align: center;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.5;
}

body.page-register .auth-footer a {

    color:
        var(--primary);

    font-weight:
        750;

    text-decoration:
        none;
}

body.page-register .auth-footer a:hover {

    text-decoration:
        underline;
}

/* ============================================================
           TABLETTE
           ============================================================ */

@media (max-width: 768px) {
    body.page-register {

        /*  padding:
                24px 18px; */
    }

    body.page-register .auth-page {

        max-width:
            460px;
    }
}

/* ============================================================
           MOBILE
           ============================================================ */

@media (max-width: 550px) {
    body.page-register {

        align-items:
            flex-start;

        /*   padding:
                20px 12px; */

        min-height:
            100dvh;
    }

    body.page-register .auth-page {

        margin: 20px 12px;
        max-width: 95%;
    }

    body.page-register .auth-brand {

        margin-bottom:
            18px;
    }

    body.page-register .auth-header {

        padding:
            24px 20px;
    }

    body.page-register .auth-header h1 {

        font-size:
            23px;
    }

    body.page-register .auth-header p {

        font-size:
            13px;
    }

    body.page-register .auth-body {

        padding:
            22px 20px;
    }

    body.page-register .auth-footer {

        padding:
            0 20px 24px;
    }

    /*
             * 16px minimum sur mobile :
             */

    body.page-register .form-input {

        height:
            48px;

        min-height:
            48px;

        font-size:
            16px;
    }

    body.page-register .btn {

        min-height:
            48px;

        font-size:
            15px;
    }

    body.page-register .password-toggle {

        width:
            38px;

        height:
            38px;
    }

    body.page-register .checkbox-group {

        font-size:
            12px;
    }
}

/* ============================================================
           ============================================================ */

@media (max-width: 360px) {
    body.page-register {

        padding:
            14px 8px;
    }

    body.page-register .auth-brand {

        font-size:
            17px;

        margin-bottom:
            14px;
    }

    body.page-register .auth-brand-icon {

        width:
            40px;

        height:
            40px;

        font-size:
            19px;
    }

    body.page-register .auth-header {

        padding:
            20px 16px;
    }

    body.page-register .auth-header-icon {

        width:
            40px;

        height:
            40px;

        margin-bottom:
            12px;
    }

    body.page-register .auth-header h1 {

        font-size:
            21px;
    }

    body.page-register .auth-header p {

        font-size:
            13px;
    }

    body.page-register .auth-body {

        padding:
            20px 16px;
    }

    body.page-register .auth-footer {

        padding:
            0 16px 20px;
    }

    body.page-register .form-group {

        margin-bottom:
            16px;
    }

    body.page-register .checkbox-group {

        gap:
            8px;

        font-size:
            11.5px;
    }
}

/* ============================================================
           PETITE HAUTEUR
           ============================================================ */

@media (max-height: 700px) and (min-width: 551px) {
    body.page-register {

        align-items:
            flex-start;

        padding-top:
            20px;

        padding-bottom:
            20px;
    }
}

/* ============================================================
           ============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.page-register *,
    body.page-register *::before,
    body.page-register *::after {

        transition:
            none !important;

        animation:
            none !important;
    }
}

/* Socle d'interface commun */
body.page-register .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-register .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-register .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-register .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-register .btn-primary {
    background: #2563eb;
    color: #fff;
}




/* reset_password.php */

/* =====================================================
           VARIABLES
           ===================================================== */
body.page-reset-password {}

/* =====================================================
           RESET
           ===================================================== */

body.page-reset-password *,
body.page-reset-password *::before,
body.page-reset-password *::after {

    box-sizing: border-box;
}

body.page-reset-password {

    min-height: 100%;
}

body.page-reset-password {

    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: clamp(16px, 4vw, 32px);

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =====================================================
           WRAPPER
           ===================================================== */

body.page-reset-password .auth-wrapper {

    width: 100%;

    max-width: 440px;

    margin: 0 auto;
}

/* =====================================================
           BRAND
           ===================================================== */

body.page-reset-password .brand {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 22px;

    font-size: 20px;

    font-weight: 800;

    line-height: 1;
}

body.page-reset-password .brand-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: #ffffff;

    font-size: 19px;
}

/* =====================================================
           CARD
           ===================================================== */

body.page-reset-password .card {

    width: 100%;

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.09);
}

/* =====================================================
           HEADER
           ===================================================== */

body.page-reset-password .header {

    padding: 30px 30px 10px;

    text-align: center;
}

body.page-reset-password .header-icon {

    width: 58px;
    height: 58px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 26px;

    line-height: 1;
}

body.page-reset-password .header-icon.success {

    background: #f0fdf4;

    color: var(--success);
}

body.page-reset-password .header-icon.error {

    background: #fef2f2;

    color: var(--danger);
}

body.page-reset-password h1 {

    margin: 0;

    font-size: clamp(22px, 5vw, 25px);

    line-height: 1.25;

    letter-spacing: -0.02em;
}

body.page-reset-password .subtitle {

    max-width: 360px;

    margin: 9px auto 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}

/* =====================================================
           BODY
           ===================================================== */

body.page-reset-password . {

    padding: 25px 30px 30px;
}

/* =====================================================
           FORM
           ===================================================== */

body.page-reset-password .form-group {

    margin-bottom: 18px;
}

body.page-reset-password label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;
}

body.page-reset-password input {

    width: 100%;

    height: 46px;

    padding: 0 13px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    line-height: 1;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-reset-password input:hover {

    border-color: #9ca3af;
}

body.page-reset-password input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =====================================================
           PASSWORD INFO
           ===================================================== */

body.page-reset-password .password-info {

    margin-top: -8px;

    margin-bottom: 18px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}

/* =====================================================
           BUTTON
           ===================================================== */

body.page-reset-password .btn {

    width: 100%;

    min-height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    line-height: 1.2;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-reset-password .btn:hover {

    background: var(--primary-hover);

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.18);
}

body.page-reset-password .btn:active {

    transform: translateY(0);
}

body.page-reset-password .btn:focus-visible {

    outline: none;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.20);
}

/* =====================================================
           ALERT
           ===================================================== */

body.page-reset-password .alert {

    margin-bottom: 18px;

    padding: 13px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}

body.page-reset-password .alert-error {

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #991b1b;
}

body.page-reset-password .alert-success {

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;
}

body.page-reset-password .alert div+div {

    margin-top: 5px;
}

/* =====================================================
           FOOTER
           ===================================================== */

body.page-reset-password .footer {

    margin-top: 20px;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;
}

body.page-reset-password .footer a {

    color: var(--primary);

    font-weight: 700;

    text-decoration: none;
}

body.page-reset-password .footer a:hover {

    text-decoration: underline;
}

body.page-reset-password .footer a:focus-visible {

    outline: 2px solid var(--primary);

    outline-offset: 3px;

    border-radius: 3px;
}

/* =====================================================
           TABLETTE
           ===================================================== */

@media (max-width: 768px) {
    body.page-reset-password {

        padding: 24px;
    }

    body.page-reset-password .auth-wrapper {

        max-width: 440px;
    }
}

/* =====================================================
           MOBILE
           ===================================================== */

@media (max-width: 550px) {
    body.page-reset-password {

        align-items: flex-start;

        padding:
            max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
    }

    body.page-reset-password .auth-wrapper {

        max-width: none;

        margin-top: 10px;
    }

    body.page-reset-password .brand {

        margin-bottom: 18px;

        font-size: 19px;
    }

    body.page-reset-password .brand-icon {

        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 11px;
    }

    body.page-reset-password .card {

        border-radius: 16px;

        box-shadow:
            0 10px 30px rgba(15, 23, 42, 0.08);
    }

    body.page-reset-password .header {

        padding: 24px 20px 8px;
    }

    body.page-reset-password .header-icon {

        width: 54px;
        height: 54px;

        margin-bottom: 13px;

        border-radius: 15px;

        font-size: 24px;
    }

    body.page-reset-password h1 {

        font-size: 22px;
    }

    body.page-reset-password .subtitle {

        font-size: 13px;
    }

    .body.page-reset-password {

        padding: 20px;
    }

    body.page-reset-password input {

        height: 48px;

        font-size: 16px;

        border-radius: 10px;
    }

    body.page-reset-password .btn {

        min-height: 48px;

        font-size: 14px;

        border-radius: 10px;
    }

    body.page-reset-password .alert {

        padding: 12px 13px;

        font-size: 13px;
    }

    body.page-reset-password .footer {

        margin-top: 18px;

        font-size: 13px;
    }
}

/* =====================================================
           ===================================================== */

@media (max-width: 360px) {
    body.page-reset-password {

        padding-left: 12px;
        padding-right: 12px;
    }

    body.page-reset-password .auth-wrapper {

        margin-top: 4px;
    }

    body.page-reset-password .brand {

        margin-bottom: 15px;

        font-size: 18px;
    }

    body.page-reset-password .brand-icon {

        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    body.page-reset-password .header {

        padding: 20px 16px 6px;
    }

    .body.page-reset-password {

        padding: 18px 16px 20px;
    }

    body.page-reset-password .header-icon {

        width: 50px;
        height: 50px;

        font-size: 22px;
    }

    body.page-reset-password h1 {

        font-size: 20px;
    }
}

/* =====================================================
           ===================================================== */

@media (max-height: 650px) and (min-width: 551px) {
    body.page-reset-password {

        align-items: flex-start;

        padding-top: 20px;
        padding-bottom: 20px;
    }

    body.page-reset-password .brand {

        margin-bottom: 15px;
    }

    body.page-reset-password .header {

        padding-top: 20px;
    }

    body.page-reset-password .header-icon {

        width: 48px;
        height: 48px;

        margin-bottom: 10px;
    }

    .body.page-reset-password {

        padding-top: 18px;
        padding-bottom: 20px;
    }

    body.page-reset-password .form-group {

        margin-bottom: 14px;
    }
}

/* =====================================================
           ===================================================== */

@media (prefers-reduced-motion: reduce) {

    body.page-reset-password *,
    body.page-reset-password *::before,
    body.page-reset-password *::after {

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}

/* Socle d'interface commun */
body.page-reset-password .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-reset-password .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-reset-password .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-reset-password .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-reset-password .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-reset-password .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-reset-password .hero {
        padding: 22px;
        border-radius: 17px;
    }
}




body.page-index-authenticated {}

body.page-index-authenticated * {
    box-sizing: border-box;
}

body.page-index-authenticated {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body.page-index-authenticated a {
    color: inherit;
}

body.page-index-authenticated .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-index-authenticated .brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 18px;

    font-weight: 800;

    text-decoration: none;
}

body.page-index-authenticated .brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    font-size: 20px;
}

/* =========================================================
           HERO
           ========================================================= */

body.page-index-authenticated .hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    border-radius: 22px;
    padding: 34px;
    color: white;

    margin-bottom: 28px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18);
}

body.page-index-authenticated .hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);
}

body.page-index-authenticated .hero-content {
    position: relative;
    z-index: 1;
}

body.page-index-authenticated .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #cbd5e1;

    margin-bottom: 10px;
}

body.page-index-authenticated .hero h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

body.page-index-authenticated .hero-text {
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 15px;
}

/* =========================================================
           GRID
           ========================================================= */

body.page-index-authenticated .dashboard-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.page-index-authenticated .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

body.page-index-authenticated .card+.card {
    margin-top: 24px;
}

body.page-index-authenticated .card-header {
    padding: 22px 24px;

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

body.page-index-authenticated .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
}

body.page-index-authenticated .card-subtitle {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 13px;
}

body.page-index-authenticated .card-body {
    padding: 24px;
}

body.page-index-authenticated .create-property-toggle {
    display: none;
}

/* =========================================================
           FORMULAIRE
           ========================================================= */

body.page-index-authenticated .form-group {
    margin-bottom: 18px;
}

body.page-index-authenticated .form-group:last-child {
    margin-bottom: 0;
}

body.page-index-authenticated .form-label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 700;

    color: #374151;
}

body.page-index-authenticated input {
    width: 100%;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    padding: 12px 13px;

    background: white;

    color: var(--text);
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-index-authenticated input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.page-index-authenticated .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

body.page-index-authenticated .form-grid .form-group {
    margin-bottom: 18px;
}

body.page-index-authenticated .form-full {
    grid-column: 1 / -1;
}

/* =========================================================
           BUTTONS
           ========================================================= */

body.page-index-authenticated .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 10px 16px;

    border: 0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body.page-index-authenticated .btn:hover {
    transform: translateY(-1px);
}

body.page-index-authenticated .btn-primary {
    background: var(--primary);
    color: white;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.2);
}

body.page-index-authenticated .btn-primary:hover {
    background: var(--primary-hover);
}

body.page-index-authenticated .btn-dark {
    background: var(--dark);
    color: white;
}

body.page-index-authenticated .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

body.page-index-authenticated .btn-secondary:hover {
    background: #e5e7eb;
}

body.page-index-authenticated .btn-full {
    width: 100%;
}

/* =========================================================
           PROPERTY LIST
           ========================================================= */

body.page-index-authenticated .property-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.page-index-authenticated .property {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

body.page-index-authenticated .property:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.07);

    transform: translateY(-1px);
}

body.page-index-authenticated .property-main {
    min-width: 0;
}

body.page-index-authenticated .property-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;
    color: var(--primary);

    font-size: 21px;
}

body.page-index-authenticated .property-info {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}

body.page-index-authenticated .property-name {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-index-authenticated .property-location {
    color: var(--muted);

    font-size: 13px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-index-authenticated .property-price {
    flex-shrink: 0;

    font-size: 16px;
    font-weight: 800;

    color: var(--text);
}

body.page-index-authenticated .property-arrow {
    margin-left: 8px;

    color: #9ca3af;

    font-size: 18px;
}

/* =========================================================
           EMPTY STATE
           ========================================================= */

body.page-index-authenticated .empty {
    padding: 45px 25px;

    text-align: center;

    border: 1px dashed #d1d5db;
    border-radius: 14px;

    background: #f9fafb;
}

body.page-index-authenticated .empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

body.page-index-authenticated .empty-title {
    margin: 0 0 6px;

    font-size: 16px;
    font-weight: 750;
}

body.page-index-authenticated .empty-text {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

/* =========================================================
           STATS
           ========================================================= */

body.page-index-authenticated .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

body.page-index-authenticated .stat {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #fafafa;
}

body.page-index-authenticated .stat-label {
    color: var(--muted);

    font-size: 12px;
    font-weight: 650;

    margin-bottom: 7px;
}

body.page-index-authenticated .stat-value {
    font-size: 24px;
    font-weight: 800;
}

/* =========================================================
           RESPONSIVE
           ========================================================= */

@media (max-width: 900px) {
    body.page-index-authenticated .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {
    body.page-index-authenticated .create-property-toggle {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 9px;
        background: #eff6ff;
        color: var(--primary);
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    html.js body.page-index-authenticated .create-property-body {
        display: none;
    }

    html.js body.page-index-authenticated .create-property-card.is-open .create-property-body {
        display: block;
    }

    body.page-index-authenticated .page {
        width: min(100% - 24px, 1200px);
        padding-top: 16px;
    }

    body.page-index-authenticated .hero {
        padding: 25px 20px;
        border-radius: 17px;
    }

    body.page-index-authenticated .hero h1 {
        font-size: 26px;
    }

    body.page-index-authenticated .card-body {
        padding: 18px;
    }

    body.page-index-authenticated .card-header {
        padding: 18px;
    }

    body.page-index-authenticated .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.page-index-authenticated .form-full {
        grid-column: auto;
    }

    body.page-index-authenticated .property {
        padding: 15px;
    }

    body.page-index-authenticated .property-price {
        display: none;
    }

}

@media (max-width: 450px) {
    body.page-index-authenticated .property-info {
        gap: 10px;
    }

    body.page-index-authenticated .property-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
    }

    body.page-index-authenticated .property-name {
        font-size: 14px;
    }

    body.page-index-authenticated .property-location {
        font-size: 12px;
    }

}

/* Socle d'interface commun */
body.page-index-authenticated .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-index-authenticated .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-index-authenticated .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-index-authenticated .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-index-authenticated .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-index-authenticated .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-index-authenticated .hero {
        padding: 22px;
        border-radius: 17px;
    }
}





/* =====================================================
           VARIABLES
           ===================================================== */
body.page-index-public {}

/* =====================================================
           RESET
           ===================================================== */

body.page-index-public * {
    box-sizing: border-box;
}

body.page-index-public {
    scroll-behavior: smooth;
}

body.page-index-public {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.5;

}

body.page-index-public a {
    color: inherit;
}

/* =====================================================
           CONTAINER
           ===================================================== */

body.page-index-public .container {

    width: min(1180px,
            calc(100% - 40px));

    margin: 0 auto;

}

body.page-index-public .brand {

    display: flex;
    align-items: center;

    gap: 11px;

    font-size: 19px;
    font-weight: 800;

    text-decoration: none;

}

body.page-index-public .brand-icon {

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    font-size: 20px;

}

body.page-index-public .nav {

    display: flex;
    align-items: center;

    gap: 10px;

}

body.page-index-public .nav-link {

    padding: 9px 13px;

    color: #4b5563;

    font-size: 14px;
    font-weight: 650;

    text-decoration: none;

    border-radius: 9px;

    transition:
        background 0.15s ease,
        color 0.15s ease;

}

body.page-index-public .nav-link:hover {

    background: #e5e7eb;

    color: var(--text);

}

/* =====================================================
           BUTTONS
           ===================================================== */

body.page-index-public .btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 10px 18px;

    border: 0;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

}

body.page-index-public .btn:hover {

    transform: translateY(-1px);

}

body.page-index-public .btn-primary {

    background: var(--primary);

    color: white;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.20);

}

body.page-index-public .btn-primary:hover {

    background: var(--primary-hover);

}

body.page-index-public .btn-dark {

    background: var(--dark);

    color: white;

}

body.page-index-public .btn-dark:hover {

    background: var(--dark-2);

}

body.page-index-public .btn-light {

    background: white;

    color: var(--text);

    border: 1px solid rgba(255, 255, 255, 0.15);

}

body.page-index-public .btn-large {

    min-height: 50px;

    padding: 12px 22px;

    font-size: 15px;

}

/* =====================================================
           HERO
           ===================================================== */

body.page-index-public .hero {

    position: relative;

    overflow: hidden;

    margin-top: 14px;

    border-radius: 24px;

    background:
        linear-gradient(135deg,
            #111827 0%,
            #1f2937 100%);

    color: white;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18);

}

body.page-index-public .hero::before {

    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -160px;
    top: -220px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.045);

}

body.page-index-public .hero::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: 170px;
    bottom: -210px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.15);

}

body.page-index-public .hero-inner {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr) minmax(320px, 0.85fr);

    gap: 55px;

    align-items: center;

    padding: 70px 65px;

}

body.page-index-public .hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    padding: 7px 11px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.07);

    color: #cbd5e1;

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.07em;

}

body.page-index-public .hero h1 {

    max-width: 700px;

    margin: 0;

    font-size: clamp(36px,
            5vw,
            58px);

    line-height: 1.08;

    letter-spacing: -0.035em;

}

body.page-index-public .hero h1 span {

    color: #60a5fa;

}

body.page-index-public .hero-text {

    max-width: 620px;

    margin: 20px 0 0;

    color: #cbd5e1;

    font-size: 17px;

    line-height: 1.7;

}

body.page-index-public .hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

}

body.page-index-public .hero-note {

    margin-top: 17px;

    color: #94a3b8;

    font-size: 12px;

}

/* =====================================================
           HERO MOCKUP
           ===================================================== */

body.page-index-public .dashboard-preview {

    position: relative;

    padding: 14px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.20);

}

body.page-index-public .hero-showcase {

    position: relative;
    display: grid;
    min-height: 360px;

}

body.page-index-public .showcase-slide {

    grid-area: 1 / 1;
    align-self: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;

}

body.page-index-public .showcase-slide.is-active {

    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);

}

body.page-index-public .showcase-logo-slide {

    display: flex;
    /* align-items: center;*/
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    /* padding: 36px;*/
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .20);
    color: #fff;
    text-align: center;

}

body.page-index-public .showcase-logo-slide img {

    width: 100%;
    /*min(190px, 58%);*/
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18));

}

body.page-index-public .showcase-logo-slide strong {

    font-size: 24px;

}

body.page-index-public .showcase-logo-slide span {

    color: #cbd5e1;
    font-size: 14px;

}

body.page-index-public .showcase-controls {

    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 22px;
    display: flex;
    gap: 8px;

}

body.page-index-public .showcase-control {

    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(148, 163, 184, .7);
    cursor: pointer;

}

body.page-index-public .showcase-control.is-active {

    width: 24px;
    border-radius: 999px;
    background: #fff;

}

body.page-index-public .showcase-control:focus-visible {

    outline: 3px solid rgba(255, 255, 255, .65);
    outline-offset: 3px;

}

body.page-index-public .preview-window {

    overflow: hidden;

    background: #f8fafc;

    border-radius: 12px;

    color: var(--text);

}

body.page-index-public .preview-top {

    height: 42px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 13px;

    background: white;

    border-bottom:
        1px solid var(--border);

}

body.page-index-public .dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #d1d5db;

}

body.page-index-public .preview-body {

    padding: 18px;

}

body.page-index-public .preview-title {

    margin-bottom: 14px;

    font-size: 14px;

    font-weight: 800;

}

body.page-index-public .preview-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

}

body.page-index-public .preview-card {

    padding: 13px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 10px;

}

body.page-index-public .preview-label {

    color: var(--muted);

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

}

body.page-index-public .preview-value {

    margin-top: 4px;

    font-size: 18px;

    font-weight: 800;

}

body.page-index-public .preview-analysis {

    margin-top: 10px;

    padding: 13px;

    border-radius: 10px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

}

body.page-index-public .analysis-title {

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

}

body.page-index-public .analysis-line {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 8px;

    font-size: 11px;

}

body.page-index-public .badge {

    padding: 3px 7px;

    border-radius: 20px;

    background: #fee2e2;

    color: #991b1b;

    font-size: 9px;

    font-weight: 800;

}

/* =====================================================
           SECTION
           ===================================================== */

body.page-index-public .section {

    padding: 85px 0;

}

body.page-index-public .section-header {

    max-width: 680px;

    margin: 0 auto 45px;

    text-align: center;

}

body.page-index-public .section-label {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;

}

body.page-index-public .section-title {

    margin: 0;

    font-size: 34px;

    line-height: 1.2;

    letter-spacing: -0.025em;

}

body.page-index-public .section-text {

    margin: 13px 0 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;

}

/* =====================================================
           FEATURES
           ===================================================== */

body.page-index-public .features {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

}

body.page-index-public .feature {

    padding: 26px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;

}

body.page-index-public .feature:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.09);

}

body.page-index-public .feature-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 13px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 22px;

}

body.page-index-public .feature h3 {

    margin: 0;

    font-size: 17px;

}

body.page-index-public .feature p {

    margin: 8px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;

}

/* =====================================================
           HOW IT WORKS
           ===================================================== */

body.page-index-public .steps {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}

body.page-index-public .step {

    position: relative;

    padding: 26px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

}

body.page-index-public .step-number {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 10px;

    background: var(--dark);

    color: white;

    font-size: 14px;

    font-weight: 800;

}

body.page-index-public .step h3 {

    margin: 0;

    font-size: 17px;

}

body.page-index-public .step p {

    margin: 8px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;

}

/* =====================================================
           USE CASE
           ===================================================== */

body.page-index-public .use-case {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;

    align-items: stretch;

}

body.page-index-public .use-card {

    padding: 32px;

    border-radius: 18px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);

}

body.page-index-public .use-card.dark {

    background: var(--dark);

    color: white;

    border-color: var(--dark);

}

body.page-index-public .use-card h3 {

    margin: 0;

    font-size: 21px;

}

body.page-index-public .use-card p {

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;

}

body.page-index-public .use-card.dark p {

    color: #cbd5e1;

}

body.page-index-public .check-list {

    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: 22px;

}

body.page-index-public .check {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    font-size: 13px;

}

body.page-index-public .check-icon {

    flex: 0 0 auto;

    width: 21px;
    height: 21px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;

    color: var(--success);

    font-size: 12px;

    font-weight: 800;

}

/* =====================================================
           CTA
           ===================================================== */

body.page-index-public .cta {

    position: relative;

    overflow: hidden;

    padding: 55px 30px;

    border-radius: 22px;

    background:
        linear-gradient(135deg,
            #111827,
            #1f2937);

    color: white;

    text-align: center;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.15);

}

body.page-index-public .cta h2 {

    margin: 0;

    font-size: 32px;

    letter-spacing: -0.025em;

}

body.page-index-public .cta p {

    max-width: 570px;

    margin: 12px auto 25px;

    color: #cbd5e1;

    font-size: 14px;

    line-height: 1.7;

}

/* =====================================================
           FOOTER
           ===================================================== */

body.page-index-public footer {

    padding: 28px 0 35px;

    border-top:
        1px solid var(--border);

}

body.page-index-public .footer-inner {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

}

body.page-index-public .footer-copy {

    color: var(--muted);

    font-size: 12px;

}

body.page-index-public .footer-links {

    display: flex;

    gap: 18px;

}

body.page-index-public .footer-links a {

    color: var(--muted);

    font-size: 12px;

    text-decoration: none;

}

body.page-index-public .footer-links a:hover {

    color: var(--text);

}

/* =====================================================
           RESPONSIVE
           ===================================================== */

@media (max-width: 950px) {
    body.page-index-public .hero-inner {

        grid-template-columns: 1fr;

        padding: 55px 45px;

    }

    body.page-index-public .dashboard-preview {

        max-width: 550px;

        width: 100%;

        margin: 0 auto;

    }

    body.page-index-public .features {

        grid-template-columns:
            repeat(2, 1fr);

    }

    body.page-index-public .steps {

        grid-template-columns:
            1fr;

    }

}


@media (max-width: 700px) {
    body.page-index-public .container {

        width:
            min(100% - 24px,
                1180px);

    }

    body.page-index-public .nav-link {

        display: none;

    }

    body.page-index-public .hero {

        margin-top: 8px;

        border-radius: 18px;

    }

    body.page-index-public .hero-inner {

        padding:
            40px 24px;

        gap: 35px;

    }

    body.page-index-public .hero h1 {

        font-size: 37px;

    }

    body.page-index-public .hero-text {

        font-size: 15px;

    }

    body.page-index-public .hero-actions {

        flex-direction: column;

    }

    body.page-index-public .hero-actions .btn {

        width: 100%;

    }

    body.page-index-public .section {

        padding: 60px 0;

    }

    body.page-index-public .section-title {

        font-size: 28px;

    }

    body.page-index-public .features {

        grid-template-columns: 1fr;

    }

    body.page-index-public .use-case {

        grid-template-columns: 1fr;

    }

    body.page-index-public .cta {

        padding:
            42px 22px;

    }

    body.page-index-public .cta h2 {

        font-size: 27px;

    }

    body.page-index-public .footer-inner {

        flex-direction: column;

        text-align: center;

    }

}


@media (max-width: 450px) {
    body.page-index-public .brand {

        font-size: 17px;

    }

    body.page-index-public .brand-icon {

        width: 38px;
        height: 38px;

    }

    body.page-index-public .hero h1 {

        font-size: 33px;

    }

    body.page-index-public .preview-grid {

        grid-template-columns: 1fr;

    }

}

/* Socle d'interface commun */
body.page-index-public .page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

body.page-index-public .card {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}

body.page-index-public .hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 22px;
    color: #fff;
    padding: 30px;
    margin-bottom: 24px;
}

body.page-index-public .btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

body.page-index-public .btn-primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 700px) {
    body.page-index-public .page {
        width: calc(100% - 24px);
        padding: 16px 0 36px;
    }

    body.page-index-public .hero {
        padding: 22px;
        border-radius: 17px;
    }
}