/* ==========================================================================
   VONE CI — identité visuelle (v2, novembre 2026)
   Lato et bleu VONE ; barre de navigation VONE. Langage visuel : surfaces blanches, bandes gris clair,
   cartes au trait fin, boutons en pilule, grands titres de graisse normale, grandes photos arrondies,
   panneau de recherche posé sur la photo d'accueil, chiffres séparés par des filets.
   Bootstrap 5 reste la base (grille, utilitaires) ; ses composants sont réhabillés ici.
   ========================================================================== */

:root {
    --ci-ink: #0E1A33;
    --ci-primary: #1D4ED8;
    --ci-primary-hover: #1E40AF;
    --ci-primary-soft: #EEF3FF;
    --ci-muted: #5B6478;
    --ci-soft: #8A93A6;
    --ci-line: #E6E8EE;
    --ci-band: #F5F6F8;
    --ci-white: #FFFFFF;
    --ci-amber: #F5A524;
    --ci-r-xl: 28px;
    --ci-r-lg: 20px;
    --ci-r-md: 14px;
    --ci-shadow-lift: 0 24px 60px -28px rgba(14, 26, 51, .35);
    --ci-font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bs-body-font-family: var(--ci-font);
    --bs-body-color: var(--ci-ink);
    --bs-body-bg: #FFFFFF;
    --bs-primary: #1D4ED8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-dark: #0E1A33;
    --bs-dark-rgb: 14, 26, 51;
    --bs-secondary-color: #5B6478;
    --bs-border-color: #E6E8EE;
    --bs-border-radius: 14px;
    --bs-border-radius-sm: 10px;
    --bs-border-radius-lg: 20px;
    --bs-border-radius-xl: 28px;
    --bs-link-color: #1D4ED8;
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: #1E40AF;
    --bs-link-hover-color-rgb: 30, 64, 175;
    --bs-emphasis-color: #0E1A33;
}

/* ---------- Base ---------- */
html { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
body { font-family: var(--ci-font); font-size: 16px; color: var(--ci-ink); background: #fff; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 400; letter-spacing: -0.02em; color: var(--ci-ink); }
h1, .h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.06; }
h2, .h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.12; }
h3, .h3 { font-size: 1.35rem; line-height: 1.25; }
h5, h6, .h5, .h6 { font-weight: 700; letter-spacing: 0; }
.lead { font-size: 1.1rem; color: var(--ci-muted); }
.text-muted, .text-secondary { color: var(--ci-muted) !important; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ci-primary); outline-offset: 2px; }
::selection { background: var(--ci-primary-soft); }

/* ---------- Structures ---------- */
.ci-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ci-section { padding: 48px 0; }
.ci-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ci-head h2 { margin: 0; }
.ci-kicker { font-size: 15px; color: var(--ci-muted); margin: 0 0 8px; }
.ci-intro { color: var(--ci-muted); max-width: 520px; margin: 10px 0 0; }

/* Bande gris clair (sections, groupes de tuiles) */
.ci-panel { position: relative; border-radius: var(--ci-r-xl); background: var(--ci-band); padding: clamp(20px, 4vw, 44px); }
/* Seules les variantes à fond image/sombre rognent leur contenu : un panneau de formulaire doit laisser sortir les listes de suggestions */
.ci-panel--photo, .ci-panel--ink { overflow: hidden; }
.ci-panel--sky { background: var(--ci-band); }
.ci-panel--photo { padding: 0; min-height: 420px; background: #DCE5EF; }
.ci-panel--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-panel--ink { background: var(--ci-ink); color: #fff; }
.ci-panel--ink h1, .ci-panel--ink h2, .ci-panel--ink h3 { color: #fff; }

/* Carte au trait fin */
.ci-tile { position: relative; background: #fff; border: 1px solid var(--ci-line); border-radius: var(--ci-r-lg); padding: 24px; min-width: 0; }
a.ci-tile { color: inherit; text-decoration: none; display: block; transition: border-color .2s ease, box-shadow .2s ease; }
a.ci-tile:hover { border-color: #C9D3E6; box-shadow: 0 14px 30px -22px rgba(14, 26, 51, .35); }
a.ci-tile.ci-stat { display: flex; }

.ci-bento { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ci-span-12 { grid-column: span 12; } .ci-span-8 { grid-column: span 8; } .ci-span-7 { grid-column: span 7; }
.ci-span-6 { grid-column: span 6; } .ci-span-5 { grid-column: span 5; } .ci-span-4 { grid-column: span 4; } .ci-span-3 { grid-column: span 3; }
@media (max-width: 991.98px) { .ci-span-8, .ci-span-7, .ci-span-6, .ci-span-5 { grid-column: span 12; } .ci-span-4, .ci-span-3 { grid-column: span 6; } }
@media (max-width: 575.98px) { .ci-span-4, .ci-span-3 { grid-column: span 12; } }

/* Chiffre clé (tableau de bord, fiche) */
.ci-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 160px; padding-top: 64px; }
.ci-stat__label { font-size: 15px; color: var(--ci-muted); }
.ci-stat__value { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ci-ink); }
.ci-stat__value small { font-size: .42em; color: var(--ci-muted); margin-inline-start: 6px; letter-spacing: 0; }
.ci-stat .ci-dot { position: absolute; top: 18px; right: 18px; }
.ci-dot { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ci-primary-soft); color: var(--ci-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ci-dot--sm { width: 36px; height: 36px; font-size: 15px; }
.ci-dot--light { background: #fff; color: var(--ci-ink); border: 1px solid var(--ci-line); }

/* Rangée de chiffres séparés par des filets */
.ci-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ci-figure { padding: 8px 28px; border-inline-start: 1px solid var(--ci-line); }
.ci-figure:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ci-figure strong { display: block; font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.ci-figure span { display: block; margin-top: 8px; color: var(--ci-muted); font-size: 15px; }
@media (max-width: 575.98px) { .ci-figure { padding: 14px 0; border-inline-start: 0; border-top: 1px solid var(--ci-line); } .ci-figure:first-child { border-top: 0; } }

/* Pastilles et anneaux (conservés pour les pages déjà converties) */
.ci-bubble { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; transform: translate(-50%, -50%); }
.ci-bubble--primary, .ci-bubble--sky { background: var(--ci-primary); }
.ci-bubble--amber { background: var(--ci-amber); }
.ci-bubble--emerald { background: #16A34A; }
.ci-bubble--ink { background: var(--ci-ink); }
.ci-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(29, 78, 216, .35); pointer-events: none; }
.ci-ring--amber { border-color: rgba(245, 165, 36, .6); }
.ci-ring--fill-amber { background: rgba(245, 165, 36, .08); }
.ci-stack { display: flex; align-items: center; }
.ci-stack > * { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; margin-inline-start: -14px; background: var(--ci-band); display: inline-flex; align-items: center; justify-content: center; color: var(--ci-ink); font-weight: 700; }
.ci-stack > *:first-child { margin-inline-start: 0; }
.ci-gauge { position: relative; width: 100%; max-width: 280px; aspect-ratio: 2 / 1.08; }
.ci-gauge svg { width: 100%; height: 100%; display: block; }
.ci-gauge__value { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 2.4rem; font-weight: 400; line-height: 1; }
.ci-gauge__value small { display: block; font-size: 14px; color: var(--ci-muted); margin-top: 4px; }

/* Pastilles de texte (types, filtres) */
.ci-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ci-line); background: #fff; color: var(--ci-ink); font-size: 14px; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
a.ci-chip:hover, button.ci-chip:hover { border-color: var(--ci-primary); color: var(--ci-primary); }
.ci-chip--glass { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
a.ci-chip--glass:hover { background: #fff; color: var(--ci-ink); border-color: #fff; }

.ci-chip--on { background: var(--ci-primary); border-color: var(--ci-primary); color: #fff; }
a.ci-chip--on:hover { color: #fff; }

/* Article (photo, date, titre, extrait) */
.ci-article { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; height: 100%; }
.ci-article__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--ci-r-lg); overflow: hidden; background: var(--ci-band); margin-bottom: 6px; }
.ci-article__media img { width: 100%; height: 100%; object-fit: cover; }
.ci-article time { font-size: 13px; color: var(--ci-muted); }
.ci-article h2 { margin: 0; font-size: 1.3rem; }
.ci-article p { color: var(--ci-muted); margin: 0; font-size: 15px; }
.ci-article:hover h2 { color: var(--ci-primary); }

/* État vide (principe VONE) */
.ci-empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ci-empty__art { position: relative; width: 120px; height: 120px; margin-bottom: 6px; }
.ci-empty__art .ci-ring { inset: 0; }
.ci-empty__art .ci-ring + .ci-ring { inset: 16px; }
.ci-empty__art .ci-dot { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; font-size: 22px; }
.ci-empty h3 { font-size: 1.3rem; margin: 0; }
.ci-empty p { color: var(--ci-muted); max-width: 440px; margin: 0; }

/* ---------- Accueil ---------- */
.ci-hero { position: relative; border-radius: var(--ci-r-xl); overflow: hidden; min-height: clamp(520px, 70vh, 680px); color: #fff; background: #2A3B52; }
.ci-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 51, .18) 0%, rgba(14, 26, 51, .22) 40%, rgba(14, 26, 51, .66) 100%); }
.ci-hero__body { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 48px); padding-bottom: 150px; min-height: inherit; }
.ci-hero__title { max-width: 640px; }
.ci-hero__title h1 { color: #fff; font-weight: 400; margin: 14px 0 0; text-shadow: 0 2px 24px rgba(14, 26, 51, .45); }
.ci-hero__aside { max-width: 300px; font-size: 15px; color: rgba(255, 255, 255, .9); margin: 0; }
.ci-finder { position: relative; z-index: 2; margin: -112px clamp(12px, 3vw, 40px) 0; background: #fff; border-radius: var(--ci-r-lg); padding: 22px 24px; box-shadow: var(--ci-shadow-lift); }
.ci-finder h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; margin: 0 0 14px; }
.ci-finder__grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ci-finder__grid label { display: block; font-size: 13px; color: var(--ci-muted); margin-bottom: 6px; }
.ci-finder__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ci-line); }
.ci-finder__foot .ci-label { font-size: 13px; color: var(--ci-muted); margin-inline-end: 4px; }
.ci-finder__foot .btn { margin-inline-start: auto; }
@media (max-width: 991.98px) { .ci-finder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ci-finder__grid { grid-template-columns: 1fr; } .ci-finder__foot .btn { width: 100%; margin-inline-start: 0; } .ci-hero__body { padding-bottom: 130px; } }

.ci-photo { position: relative; border-radius: var(--ci-r-lg); overflow: hidden; background: var(--ci-band); }
.ci-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-photo__caption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.ci-map { position: relative; border-radius: var(--ci-r-lg); overflow: hidden; min-height: 340px; background: #EEF2EC; border: 1px solid var(--ci-line); }
.ci-tiles { filter: grayscale(.8) brightness(1.06) contrast(.92); }
.leaflet-container { font-family: var(--ci-font); background: #EEF2EC; }

.ci-faq { display: grid; gap: 10px; }
.ci-faq details { border: 1px solid var(--ci-line); border-radius: var(--ci-r-md); background: #fff; }
.ci-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.ci-faq summary::-webkit-details-marker { display: none; }
.ci-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-weight: 400; color: var(--ci-muted); transition: transform .2s ease; }
.ci-faq details[open] summary::after { transform: rotate(180deg); }
.ci-faq details > div { padding: 0 20px 18px; color: var(--ci-muted); }

.ci-post { display: block; color: inherit; text-decoration: none; }
.ci-post__media, .ci-article__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--ci-r-lg); overflow: hidden; background: var(--ci-band); margin-bottom: 12px; }
.ci-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ci-post:hover .ci-post__media img { transform: scale(1.03); }
.ci-post__media .ci-noimg, .ci-article__media .ci-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8A93A6; font-size: 34px; }
.ci-post time { font-size: 13px; color: var(--ci-muted); }
.ci-post h3 { font-size: 1.2rem; margin: 8px 0 0; }
.ci-post:hover h3 { color: var(--ci-primary); }

.ci-cta { position: relative; border-radius: var(--ci-r-xl); overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 48px 24px; background: #1F2C40; }
.ci-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-cta::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 51, .55); }
.ci-cta > div { position: relative; z-index: 1; max-width: 640px; }
.ci-cta h2 { color: #fff; font-weight: 300; }
.ci-cta p { color: rgba(255, 255, 255, .88); }

/* ---------- En-tête (barre VONE) ---------- */
.ci-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--ci-line); }
.ci-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.ci-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ci-ink); text-decoration: none; font-weight: 900; letter-spacing: .06em; font-size: 1.25rem; flex: none; }
.ci-brand:hover { color: var(--ci-ink); }
.ci-brand__market { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ci-muted); border: 1px solid var(--ci-line); border-radius: 999px; padding: 2px 8px; }
.ci-nav { display: flex; align-items: center; gap: 6px; margin: 0; list-style: none; padding: 0; }
.ci-nav a { position: relative; display: inline-flex; align-items: center; height: 76px; padding: 0 14px; color: var(--ci-ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.ci-nav a:hover { color: var(--ci-primary); }
.ci-nav a[aria-current="page"] { color: var(--ci-primary); }
.ci-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; border-radius: 2px; background: var(--ci-primary); }
.ci-header__actions { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.ci-iconbtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ci-line); background: #fff; color: var(--ci-ink); position: relative; text-decoration: none; font-size: 17px; font-weight: 700; }
.ci-iconbtn:hover { border-color: var(--ci-primary); color: var(--ci-primary); }
.ci-iconbtn--light { background: #fff; }
.ci-iconbtn .ci-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ci-primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ci-iconbtn .ci-count:empty { display: none; }
.ci-lang { height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--ci-muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.ci-lang span + span { color: var(--ci-soft); font-weight: 400; }
.ci-lang:hover { color: var(--ci-primary); }
@media (max-width: 991.98px) {
    .ci-nav { display: none; }
    .ci-header__bar.is-open { flex-wrap: wrap; padding-bottom: 12px; }
    .ci-header__bar.is-open .ci-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 10; }
    .ci-header__bar.is-open .ci-nav a { height: 48px; }
    .ci-header__bar.is-open .ci-nav a[aria-current="page"]::after { display: none; }
}
@media (min-width: 992px) { .ci-menu-toggle { display: none !important; } }
@media (max-width: 575.98px) {
    .ci-wrap { padding: 0 16px; }
    .ci-brand__market { display: none; }
    .ci-header__bar { gap: 10px; min-height: 64px; }
    .ci-header__actions { gap: 4px; }
    .ci-header__actions .btn { --bs-btn-padding-x: .9rem; }
    .ci-tile { padding: 18px; }
    .ci-hero, .ci-cta, .ci-panel { border-radius: 22px; }
}

/* ---------- Pied de page ---------- */
.ci-footer { margin-top: 64px; border-top: 1px solid var(--ci-line); padding: 56px 0 28px; background: #fff; }
.ci-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.ci-footer__claim { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; max-width: 560px; margin: 0; }
.ci-footer__contact { color: var(--ci-muted); font-size: 15px; display: grid; gap: 4px; align-content: start; max-width: 340px; }
.ci-footer__contact a { color: var(--ci-ink); text-decoration: none; }
.ci-footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ci-line); }
.ci-footer__links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0; }
.ci-footer__links a { color: var(--ci-ink); text-decoration: none; font-size: 14px; }
.ci-footer__links a:hover { color: var(--ci-primary); }
.ci-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--ci-muted); font-size: 13px; }
.ci-footer__bottom a { color: var(--ci-muted); text-decoration: none; }

/* ---------- Composants Bootstrap réhabillés ---------- */
.container, .container-lg, .container-xl, .container-xxl { max-width: 1280px; }
.btn { --bs-btn-font-weight: 700; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.3rem; --bs-btn-padding-y: .68rem; --bs-btn-font-size: .94rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .85rem; }
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1rem; }
.btn-primary { --bs-btn-bg: #1D4ED8; --bs-btn-border-color: #1D4ED8; --bs-btn-hover-bg: #1E40AF; --bs-btn-hover-border-color: #1E40AF; --bs-btn-active-bg: #1E3A8A; --bs-btn-active-border-color: #1E3A8A; --bs-btn-disabled-bg: #93A9E8; --bs-btn-disabled-border-color: #93A9E8; }
.btn-dark { --bs-btn-bg: #1D4ED8; --bs-btn-border-color: #1D4ED8; --bs-btn-hover-bg: #1E40AF; --bs-btn-hover-border-color: #1E40AF; --bs-btn-active-bg: #1E3A8A; --bs-btn-active-border-color: #1E3A8A; }
.btn-outline-primary { --bs-btn-color: #1D4ED8; --bs-btn-border-color: #1D4ED8; --bs-btn-hover-bg: #1D4ED8; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #1D4ED8; }
.btn-outline-secondary, .btn-outline-dark { --bs-btn-color: #0E1A33; --bs-btn-border-color: #CDD3DD; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #1D4ED8; --bs-btn-hover-border-color: #1D4ED8; --bs-btn-active-bg: #fff; --bs-btn-active-color: #1D4ED8; background: #fff; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #0E1A33; --bs-btn-hover-bg: #F5F6F8; --bs-btn-hover-border-color: #F5F6F8; }
.btn-success { --bs-btn-bg: #1D4ED8; --bs-btn-border-color: #1D4ED8; --bs-btn-hover-bg: #1E40AF; --bs-btn-hover-border-color: #1E40AF; }

.card { --bs-card-border-width: 1px; --bs-card-border-color: #E6E8EE; --bs-card-border-radius: 20px; --bs-card-inner-border-radius: 19px; --bs-card-bg: #fff; --bs-card-spacer-x: 1.4rem; --bs-card-spacer-y: 1.3rem; --bs-card-cap-bg: transparent; overflow: hidden; }
.card.shadow, .card.shadow-sm, .shadow-sm { box-shadow: none !important; }
.card-header { border-bottom: 1px solid var(--ci-line); font-weight: 700; }
.card-footer { border-top: 1px solid var(--ci-line); }
a.card { transition: border-color .2s ease, box-shadow .2s ease; }
a.card:hover { border-color: #C9D3E6; box-shadow: 0 14px 30px -22px rgba(14, 26, 51, .35); }

.form-control, .form-select { border-radius: var(--ci-r-md); border-color: #D8DDE6; min-height: 48px; padding: .65rem 1rem; font-size: 1rem; background-color: #fff; }
textarea.form-control { min-height: 96px; }
.form-control:focus, .form-select:focus { border-color: var(--ci-primary); box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); }
.form-control-sm, .form-select-sm { min-height: 38px; border-radius: 10px; padding: .35rem .75rem; font-size: .9rem; }
.form-control-lg, .form-select-lg { min-height: 56px; border-radius: 16px; }
.form-label, .col-form-label { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.form-text { color: var(--ci-muted); }
.form-check-input:checked { background-color: var(--ci-primary); border-color: var(--ci-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); border-color: var(--ci-primary); }
.input-group > .form-control, .input-group > .form-select { min-height: 48px; }
.input-group-text { border-radius: var(--ci-r-md); background: #fff; border-color: #D8DDE6; color: var(--ci-muted); }

.badge { font-weight: 700; border-radius: 999px; padding: .4em .75em; }
.badge.bg-primary { background: var(--ci-primary-soft) !important; color: var(--ci-primary) !important; }
.badge.bg-success { background: #E3F4EC !important; color: #12744B !important; }
.badge.bg-warning { background: #FDF1D8 !important; color: #8A5A00 !important; }
.badge.bg-danger { background: #FDE7E7 !important; color: #A61B1B !important; }
.badge.bg-secondary { background: #EEF0F4 !important; color: #3B4558 !important; }
.badge.bg-info { background: #E1F0FB !important; color: #0B5E8E !important; }
.badge.bg-dark { background: var(--ci-ink) !important; color: #fff !important; }

.alert { border: 1px solid transparent; border-radius: 16px; padding: 1rem 1.25rem; }
.alert-info { background: var(--ci-primary-soft); border-color: #D7E2FB; color: #1E3A8A; }
.alert-success { background: #E9F7EF; border-color: #CDEBD9; color: #12603F; }
.alert-warning { background: #FDF6E6; border-color: #F6E2B5; color: #6E4A00; }
.alert-danger { background: #FDECEC; border-color: #F6CFCF; color: #8B1717; }

.nav-tabs, .nav-pills { border: 0; gap: 6px; flex-wrap: wrap; }
.nav-tabs .nav-link, .nav-pills .nav-link { border: 1px solid var(--ci-line); border-radius: 999px; color: var(--ci-ink); font-weight: 700; padding: .5rem 1rem; margin: 0; background: #fff; }
.nav-tabs .nav-link:hover, .nav-pills .nav-link:hover { border-color: var(--ci-primary); color: var(--ci-primary); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link, .nav-pills .nav-link.active { background: var(--ci-primary); border-color: var(--ci-primary); color: #fff; }

.dropdown-menu { border: 1px solid var(--ci-line); border-radius: 16px; padding: 8px; box-shadow: 0 20px 50px -24px rgba(14, 26, 51, .35); --bs-dropdown-link-active-bg: var(--ci-primary-soft); --bs-dropdown-link-active-color: var(--ci-ink); }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; }
.dropdown-item:hover { background: var(--ci-band); }

.modal-content { border: 0; border-radius: 24px; box-shadow: 0 30px 80px -30px rgba(14, 26, 51, .45); }
.modal-header, .modal-footer { border-color: var(--ci-line); padding: 1.1rem 1.5rem; }
.modal-body { padding: 1.5rem; }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--ci-line); }
.table > thead th { font-size: .8rem; font-weight: 700; color: var(--ci-muted); }
.table > :not(caption) > * > * { padding: .85rem .75rem; }
.list-group { --bs-list-group-border-color: var(--ci-line); --bs-list-group-border-radius: 20px; }
.list-group-item { padding: 1rem 1.25rem; }
.pagination { --bs-pagination-color: var(--ci-ink); --bs-pagination-active-bg: var(--ci-primary); --bs-pagination-active-border-color: var(--ci-primary); --bs-pagination-border-color: var(--ci-line); --bs-pagination-bg: #fff; gap: 6px; }
.pagination .page-link { border-radius: 999px !important; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.progress { border-radius: 999px; background: #EEF0F4; height: 10px; }
.progress-bar { background: var(--ci-primary); border-radius: 999px; }
.border, .border-top, .border-bottom { border-color: var(--ci-line) !important; }
.bg-light { background-color: var(--ci-band) !important; }
.bg-primary { background-color: var(--ci-primary) !important; }
.text-primary { color: var(--ci-primary) !important; }
hr { border-color: var(--ci-line); opacity: 1; }

/* ---------- Espace compte : menu latéral ---------- */
.ci-side { display: flex; flex-direction: column; gap: 2px; }
.ci-side .list-group-item { border: 0; border-radius: 12px; padding: .7rem .9rem; color: var(--ci-ink); font-weight: 700; font-size: 15px; background: transparent; }
.ci-side .list-group-item svg { color: var(--ci-muted); }
.ci-side .list-group-item:hover { background: var(--ci-band); color: var(--ci-ink); }
.ci-side .list-group-item.active { background: var(--ci-primary-soft); color: var(--ci-primary); }
.ci-side .list-group-item.active svg { color: var(--ci-primary); }

/* ---------- Cartes de biens ---------- */
.ci-prop { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; height: 100%; }
.ci-prop:hover { color: inherit; }
.ci-prop__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--ci-r-lg); overflow: hidden; background: #DDE5EF; }
.ci-prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ci-prop:hover .ci-prop__media img { transform: scale(1.03); }
.ci-prop__media .ci-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8A93A6; font-size: 40px; background: var(--ci-band); }
.ci-prop__tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ci-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 11px; }
.ci-prop__price { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-prop__dot { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ci-ink); }
.ci-prop__title { font-size: 1.05rem; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.ci-prop__meta { color: var(--ci-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ci-prop__meta i { margin-inline-end: 4px; }
.ci-prop__place { color: var(--ci-muted); font-size: 14px; }

/* ---------- Divers ---------- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }
.img-placeholder { background: var(--ci-band); display: flex; align-items: center; justify-content: center; color: #8A93A6; }
.ts-wrapper .ts-control { border-radius: var(--ci-r-md) !important; border-color: #D8DDE6 !important; min-height: 48px; padding: .65rem 1rem !important; box-shadow: none !important; }
.ts-dropdown { z-index: 1020 !important; border-radius: 14px !important; border: 1px solid var(--ci-line) !important; box-shadow: 0 20px 50px -24px rgba(14, 26, 51, .35) !important; overflow: hidden; }
/* Une carte qui contient un champ ville laisse déborder la liste de suggestions */
.card:has(.ts-wrapper, [data-widget="city-dropdown"]) { overflow: visible; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Règles reprises de l'ancienne feuille (toujours utilisées par les vues) ---------- */
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--ci-muted); padding: 0; z-index: 5; }
.password-toggle:hover { color: var(--ci-ink); }
.btn-busy { position: relative; }
.btn-busy .spinner-border { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1.2rem; height: 1.2rem; }
.list-group-item-action:hover:not(.active) { background-color: var(--ci-band); }
.property-img { opacity: 0; transition: opacity .3s ease-in; }
.border-dashed { border-style: dashed !important; }
.photo-item { cursor: grab; transition: transform .15s; }
.photo-item.opacity-50 { opacity: .5; }
.photo-card .btn { font-size: .75rem; padding: .15rem .35rem; }
