html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Aspect hero façon WebForms (overlay sombre + image de fond fixe) */
.hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    align-items: center;
    padding: 64px 0;
    background: url('/images/background_front_cylimmo.jpg') center/cover no-repeat fixed;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0);
    }

    .hero > .container {
        position: relative;
        z-index: 1;
    }

/* Carte du formulaire */
.card-cta {
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(16,24,40,.04);
}

/* Petite étiquette style “Acheteur/Vendeur” */
.badge-soft {
    background: #f3f5f7;
    border: 1px solid #e6eaf0;
}

/* ===== Header sticky ===== */
/* Hauteur stable + pas de padding qui change */
/* Header fixé au viewport */
/*.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    backface-visibility: hidden;
    transform: translateZ(0);
}*/

/* espace réservé sous le header pour ne pas écraser le contenu */
/*.header-spacer {
    height: var(--header-h, 64px);
}*/

/* Hero et barre d’onglets restent sous le header */
/*.hero {
    position: sticky;
    top: var(--header-h);
    z-index: 500;
}*/

.fixed_nav {
    position: sticky;
    top: var(--header-h);
    z-index: 1500;
}

.list-details-section {
    scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 12px);
}


:root {
    /* Palette claire CYL */
    --bg: #f8fafc; /* fond app */
    --surface: #ffffff; /* cartes/panels */
    --text: #0f172a; /* texte principal */
    --muted: #64748b; /* texte secondaire */
    --ring: #e2e8f0; /* traits / séparateurs */
    --brand: #2563eb; /* bleu CYL */
    --brand2: #f97316; /* corail */
    --ok: #10b981; /* menthe */
    --warn: #f59e0b; /* jaune */
    --violet: #7c3aed; /* violet (accents) */
    --red: #ef4444; /* erreur */
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto
}

a {
    color: inherit;
    text-decoration: none
}

.shell {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr
}

/*nav {
    position: fixed!important;
    top: 0;
    z-index: 2000;
    width: 100%;
    background: white;
    height: 70px;
}*/

body {
    padding-top: 64px;
}

@media (max-width: 767.98px) {
    body {
        padding-top: 56px;
    }
}

/* Assure que la dropdown passe au-dessus du contenu */
.navbar.fixed-top, .dropdown-menu {
    z-index: 1100;
    background-color:#fff;
    min-height:65px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--ring);
}

    .nav::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg,var(--brand),var(--brand2));
    }

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 10px 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800
}

    .brand .logo {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: conic-gradient(from 210deg at 50% 50%, var(--brand), var(--brand2));
        box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(37,99,235,.25);
    }

.menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

    .menu > .item {
        position: relative
    }

        .menu > .item > a, .menu > .item > summary {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 10px;
            color: var(--text);
            font-weight: 600;
        }

            .menu > .item > a:hover, .menu > .item > summary:hover {
                background: #f1f5f9;
            }

details {
    position: relative
}

    details summary {
        list-style: none;
        cursor: pointer
    }

    details[open] > summary {
        background: #eef2ff; /* léger violet quand ouvert */
    }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--ring);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(2,6,23,.1);
    padding: 6px;
}

    .dropdown a, .dropdown summary {
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 8px;
    }

        .dropdown a:hover, .dropdown summary:hover {
            background: #f8fafc
        }

    .dropdown details {
        padding: 0 4px
    }

.spacer {
    flex: 1
}

.secteur {
    display: flex;
    gap: 10px;
    align-items: center
}

select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--ring);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 1px 0 rgba(2,6,23,.04);
}

.content {
    max-width: 1400px;
    margin: 16px auto;
    padding: 16px
}

@media (max-width: 900px) {
    .content
    {
        padding:0px;
    }
}

    .panel {
        background: var(--surface);
        border: 1px solid var(--ring);
        border-radius: 16px;
        padding: 18px;
        box-shadow: 0 12px 24px rgba(2,6,23,.06);
    }

    .btn {        
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
        font-weight: 600;
        border: 1px solid var(--ring);        
        text-align:center;
    }

        .btn:hover {
            background-color:blue;
        }

    .logout {
        border: 1px solid var(--ring);
        background: #fff;
    }

    .logout--brand {
        border: none;
        background: linear-gradient(90deg,var(--brand),var(--brand2));
        color: #fff;
        box-shadow: 0 8px 16px rgba(249,115,22,.15);
    }

    .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        border: 1px solid var(--ring);
        background: #f8fafc;
    }

    .badge-blue {
        background: #dbeafe;
        border-color: #bfdbfe;
        color: #1e3a8a
    }

    .badge-orange {
        background: #ffedd5;
        border-color: #fed7aa;
        color: #7c2d12
    }

    .badge-green {
        background: #dcfce7;
        border-color: #bbf7d0;
        color: #065f46
    }

    .badge-violet {
        background: #ede9fe;
        border-color: #ddd6fe;
        color: #4c1d95
    }

    .badge-yellow {
        background: #fef9c3;
        border-color: #fde68a;
        color: #854d0e
    }

.box-text {
    background:rgba(120,120,120,0.4) ;
    padding:15px;
}

.bg-blue-600 {
    background-color: #2563eb;
    font-weight: bold;
}