/* ==========================================================================
   ImmoPilot CI : feuille de style principale (mobile-first)
   Emplacement : wp-content/themes/immopilot/assets/css/main.css
   ========================================================================== */

:root {
	--navy: #163B50;
	--navy-2: #0F2C3D;
	--teal: #167C80;
	--teal-2: #0F6366;
	--teal-soft: #E3F1F1;
	--gold: #E5AA45;
	--gold-soft: #FBF1DE;
	--white: #FFFFFF;
	--mist: #F3F6F8;
	--ink: #13232E;
	--muted: #5B6B76;
	--line: #DCE3E8;
	--wa: #128C4A;
	--wa-2: #0E7A3F;
	--danger: #B42318;
	--danger-soft: #FDECEA;
	--ok-soft: #E3F4EC;
	--ok: #0D6B47;
	--warn-soft: #FDF3E1;
	--warn: #7A4B00;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(19, 35, 46, .06), 0 6px 20px rgba(19, 35, 46, .06);
	--shadow-lg: 0 18px 50px rgba(15, 44, 61, .18);
	--gutter: 16px;
	--maxw: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.ip-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ip-container--dash { max-width: 1320px; padding-top: 20px; padding-bottom: 48px; }
.ip-main { min-height: 60vh; }
.ip-muted { color: var(--muted); }
.ip-center { text-align: center; }
.ip-icon { flex: none; vertical-align: middle; }

/* ---------- Boutons ---------- */
.ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; text-align: center; }
.ip-btn:active { transform: translateY(1px); }
.ip-btn--primary { background: var(--teal); color: #fff; }
.ip-btn--primary:hover { background: var(--teal-2); color: #fff; }
.ip-btn--accent { background: var(--gold); color: var(--navy-2); }
.ip-btn--accent:hover { background: #d99a2f; color: var(--navy-2); }
.ip-btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.ip-btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.ip-btn--whatsapp { background: var(--wa); color: #fff; }
.ip-btn--whatsapp:hover { background: var(--wa-2); color: #fff; }
.ip-btn--block { display: flex; width: 100%; }
.ip-btn--small { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.ip-btn.is-disabled { opacity: .55; cursor: default; }
.ip-linkbtn { background: none; border: 0; padding: 0; color: var(--teal-2); text-decoration: underline; cursor: pointer; }
.is-danger { color: var(--danger) !important; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__name span { color: var(--teal); margin-left: 3px; }
.custom-logo { max-height: 44px; width: auto; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--teal); }
.js .site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 20px; }
.no-js .site-nav { width: 100%; }
.site-nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--mist); }
.site-nav__cta { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.site-nav__login { display: block; text-align: center; padding: 10px; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.js .site-nav, .site-nav { display: flex !important; align-items: center; gap: 28px; position: static !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; background: transparent !important; width: auto; }
	.site-nav ul { display: flex; gap: 24px; }
	.site-nav li a { padding: 6px 0; border: 0; }
	.site-nav li a:hover { color: var(--teal); }
	.site-nav__cta { flex-direction: row; align-items: center; padding: 0; gap: 16px; }
	.site-nav__login { padding: 0; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-2); color: #C9D6DE; margin-top: 64px; }
.site-footer a { color: #E7EEF2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; }
.site-footer .brand__name span { color: var(--gold); }
.site-footer__grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__brand p { margin-top: 14px; max-width: 34ch; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 24px; font-size: 14px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.has-stickybar .site-footer { padding-bottom: 76px; }
@media (min-width: 960px) { .has-stickybar .site-footer { padding-bottom: 0; } }

/* ---------- Bandeau de page ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 32px 0 26px; margin-bottom: 28px; }
.page-hero h1 { margin: 0; }
.page-hero p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.ip-prose-wrap { max-width: 820px; }
.ip-prose { font-size: 17px; }
.ip-prose h2 { margin-top: 1.6em; }
.ip-prose ul { padding-left: 1.2em; }

/* ---------- Accueil ---------- */
.home-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(900px 420px at 85% -10%, rgba(22, 124, 128, .55), transparent 60%),
	radial-gradient(600px 300px at -10% 110%, rgba(229, 170, 69, .18), transparent 60%); pointer-events: none; }
.home-hero__inner { position: relative; padding-top: 44px; padding-bottom: 48px; }
.home-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); max-width: 17ch; margin-bottom: 14px; }
.home-hero h1 em { font-style: normal; color: var(--gold); }
.home-hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: #D3E0E7; max-width: 52ch; margin-bottom: 26px; }
.home-hero .ip-search { box-shadow: var(--shadow-lg); }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.home-chips span { color: #AFC3CE; font-size: 14px; margin-right: 4px; }
.home-chips a { color: #fff; text-decoration: none; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; }
.home-chips a:hover { border-color: var(--gold); color: var(--gold); }

.home-section { padding: 56px 0 8px; }
.home-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.home-section__head h2 { margin: 0; }
.home-section__head p { margin: 4px 0 0; color: var(--muted); }

.home-pro { margin-top: 64px; background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.home-pro__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .home-pro__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.home-pro__kicker { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.home-pro h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); max-width: 20ch; }
.home-pro__lead { color: var(--muted); font-size: 17px; max-width: 52ch; }
.home-benefits { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 18px; }
.home-benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.home-benefits__n { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 800; }
.home-benefits strong { display: block; color: var(--navy); }
.home-benefits span { color: var(--muted); font-size: 15px; }
.home-pro__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Maquette illustrative du tableau de bord (CSS pur) */
.mock { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.mock__screen { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.mock__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.mock__bar small { color: var(--gold); font-weight: 700; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.mock__stats div { background: #fff; padding: 14px 12px; }
.mock__stats b { display: block; font-size: 24px; color: var(--navy); line-height: 1.1; }
.mock__stats span { font-size: 12px; color: var(--muted); }
.mock__list { list-style: none; margin: 0; padding: 6px 0; }
.mock__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--mist); font-size: 14px; }
.mock__list li:first-child { border-top: 0; }
.mock__who b { display: block; color: var(--ink); font-size: 14px; }
.mock__who span { color: var(--muted); font-size: 12px; }
.mock__tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.mock__tag--new { background: var(--gold-soft); color: var(--warn); }
.mock__tag--visit { background: var(--teal-soft); color: var(--teal-2); }
.mock__tag--deal { background: var(--ok-soft); color: var(--ok); }
.mock__wa { position: absolute; right: -6px; bottom: -18px; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .mock__wa { right: -22px; } }

.home-steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .home-steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.home-steps li { position: relative; padding: 20px 20px 20px 64px; border-left: 3px solid var(--teal); background: #fff; }
@media (min-width: 760px) { .home-steps li { border-left: 0; border-top: 3px solid var(--teal); padding: 22px 26px 6px 0; background: none; } .home-steps li + li { padding-left: 26px; border-left: 1px solid var(--line); } }
.home-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 20px; font-weight: 800; font-size: 26px; color: var(--gold); line-height: 1; }
@media (min-width: 760px) { .home-steps li::before { position: static; display: block; margin-bottom: 8px; font-size: 34px; } }
.home-steps h3 { margin-bottom: 4px; }
.home-steps p { color: var(--muted); margin: 0; }

.home-advice { margin-top: 48px; display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #F1D9A8; }
.home-advice strong { color: var(--navy); }
.home-advice p { margin: 0; color: #5E4A21; }

/* ---------- Recherche ---------- */
.ip-search { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.ip-search__offre { display: inline-flex; background: var(--mist); border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.ip-search__offre label { position: relative; cursor: pointer; }
.ip-search__offre input { position: absolute; opacity: 0; inset: 0; }
.ip-search__offre span { display: block; padding: 7px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ip-search__offre input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ip-search__offre input:focus-visible + span { outline: 3px solid var(--gold); }
.ip-search__fields { display: grid; gap: 10px; }
.ip-search .ip-field { margin: 0; }
.ip-search .ip-field label { font-size: 13px; }
@media (min-width: 640px) { .ip-search__fields { grid-template-columns: 1fr 1fr; } .ip-field--q { grid-column: 1 / -1; } }
@media (min-width: 960px) {
	.ip-search--compact .ip-search__fields { grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: end; }
	.ip-search--compact .ip-field--q { grid-column: auto; }
	.ip-search--full .ip-search__fields { grid-template-columns: repeat(4, 1fr); align-items: end; }
}
.ip-field--submit { align-self: end; }
.ip-field--submit .ip-btn { width: 100%; }

/* ---------- Formulaires ---------- */
.ip-form fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.ip-form legend { font-weight: 800; color: var(--navy); font-size: 1.05rem; padding: 0; margin-bottom: 12px; }
fieldset.ip-panel legend { float: left; width: 100%; }
fieldset.ip-panel legend + * { clear: both; }
.ip-field { margin-bottom: 14px; min-width: 0; }
.ip-field label, .ip-label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.ip-field small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.ip-req { color: var(--danger); }
.ip-opt { color: var(--muted); font-weight: 400; }
.ip-field input[type="text"], .ip-field input[type="search"], .ip-field input[type="email"], .ip-field input[type="tel"], .ip-field input[type="password"], .ip-field input[type="number"], .ip-field input[type="date"], .ip-field input[type="url"], .ip-field input:not([type]), .ip-field select, .ip-field textarea,
.ip-lead-filters input, .ip-copy input, .ip-login input[type="text"], .ip-login input[type="password"] {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.ip-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.ip-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23163B50' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.ip-field input:focus, .ip-field select:focus, .ip-field textarea:focus, .ip-lead-filters input:focus, .ip-login input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 124, 128, .18); }
.ip-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .ip-row { grid-template-columns: 1fr 1fr; } .ip-row--3 { grid-template-columns: repeat(3, 1fr); } }
.ip-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 6px 0 16px; font-size: 14px; color: var(--muted); }
.ip-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.ip-check-inline { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-top: 8px; }
.ip-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ip-checks label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; background: #fff; }
.ip-checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.ip-checks label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.ip-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ip-seg label { position: relative; cursor: pointer; }
.ip-seg input { position: absolute; opacity: 0; }
.ip-seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--muted); }
.ip-seg input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-2); }
.ip-seg input:focus-visible + span { outline: 3px solid var(--gold); }
.ip-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ip-form__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ip-form__actions--sticky { position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.ip-form__actions--sticky .ip-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .ip-form__actions--sticky .ip-btn { flex: 0 0 auto; } }
.ip-form--narrow { max-width: 620px; }

/* ---------- Notices ---------- */
.ip-notice { padding: 13px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; font-size: 15px; }
.ip-notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.ip-notice--success { background: var(--ok-soft); border-color: #B5DEC9; color: #0B4F35; }
.ip-notice--error { background: var(--danger-soft); border-color: #F5C2BC; color: #7A1A12; }
.ip-notice--warning { background: var(--warn-soft); border-color: #F1D9A8; color: #5E3B00; }
.ip-notice--info { background: var(--teal-soft); border-color: #BFDFDF; color: #0B4A4C; }
.ip-notice a { color: inherit; font-weight: 700; }

/* ---------- Cartes de biens ---------- */
.ip-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ip-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.ip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.ip-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ip-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.ip-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ip-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ip-card__price { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.01em; }
.ip-card__title { font-size: 1rem; font-weight: 650; margin: 0; line-height: 1.35; }
.ip-card__title a { color: var(--ink); text-decoration: none; }
.ip-card__title a::after { content: ""; position: absolute; inset: 0; }
.ip-card__loc { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 14px; }
.ip-card__loc .ip-icon { width: 16px; height: 16px; color: var(--teal); }
.ip-card__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid var(--mist); font-size: 13.5px; color: var(--ink); }
.ip-card__facts li, .ip-facts li { display: inline-flex; align-items: center; gap: 6px; }
.ip-card__facts .ip-icon { width: 17px; height: 17px; color: var(--muted); }
.ip-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.ip-bien__head .ip-badges, .ip-agence__id .ip-badge { position: static; margin-bottom: 10px; }
.ip-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: #fff; color: var(--navy); }
.ip-badge--vente { background: var(--navy); color: #fff; }
.ip-badge--location { background: var(--teal); color: #fff; }
.ip-badge--etat { background: var(--gold); color: var(--navy-2); }
.ip-badge--demo { background: #fff; color: var(--warn); border: 1px dashed var(--gold); }
.ip-ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #8BA5B3; background: linear-gradient(135deg, #E7EEF2, #F6F9FA); font-size: 13px; font-weight: 600; }
.ip-ph .ip-icon { width: 44px; height: 44px; }

.ip-empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }
.ip-empty__title { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.ip-empty p { color: var(--muted); }

/* ---------- Catalogue ---------- */
.ip-filters { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; }
.ip-filters summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ip-filters summary::-webkit-details-marker { display: none; }
.ip-filters summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.ip-filters[open] summary::after { transform: rotate(-135deg); }
.ip-filters__count { background: var(--teal); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.ip-filters .ip-search { border: 0; border-radius: 0 0 14px 14px; background: transparent; padding-top: 0; }
.ip-results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--muted); }
.ip-results-head p { margin: 0; }
.ip-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; }
.ip-pagination a, .ip-pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; }
.ip-pagination span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Fiche bien ---------- */
.ip-bien { padding-top: 16px; }
.ip-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.ip-crumbs a { color: var(--muted); }
.ip-gallery { position: relative; margin: 0 calc(-1 * var(--gutter)) 20px; }
.ip-gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--mist); }
.ip-gallery__main::-webkit-scrollbar { display: none; }
.ip-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 3 / 2; max-height: 72vh; }
.ip-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.ip-gallery__slide .ip-ph { min-height: 100%; }
.ip-gallery__thumbs { display: none; }
.ip-gallery__count { position: absolute; right: calc(var(--gutter) + 8px); bottom: 12px; margin: 0; background: rgba(15, 44, 61, .78); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
@media (min-width: 760px) {
	.ip-gallery { margin: 0 0 24px; }
	.ip-gallery__main { border-radius: 16px; }
	.ip-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
	.ip-gallery__thumbs a { flex: 0 0 92px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
	.ip-gallery__thumbs a.is-active, .ip-gallery__thumbs a:hover { border-color: var(--teal); opacity: 1; }
	.ip-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
	.ip-gallery__count { right: 14px; bottom: 92px; }
}
.ip-bien__layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .ip-bien__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .ip-bien__aside { position: sticky; top: 88px; } }
.ip-bien__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 8px; }
.ip-bien__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 12px; }
.ip-bien__loc .ip-icon { color: var(--teal); }
.ip-bien__price { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.3rem); font-weight: 850; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.ip-bien__charges { color: var(--muted); margin: 2px 0 0; }
.ip-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ip-facts--big { margin: 22px 0 6px; }
.ip-facts--big li { padding: 10px 14px; background: var(--mist); border-radius: 10px; font-weight: 650; }
.ip-facts--big .ip-icon { color: var(--teal); }
.ip-section { margin-top: 32px; }
.ip-section h2 { font-size: 1.25rem; }
.ip-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.ip-features li { display: flex; align-items: center; gap: 8px; }
.ip-features .ip-icon { color: var(--teal); }
.ip-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ip-specs div { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.ip-specs dt { font-size: 13px; color: var(--muted); }
.ip-specs dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.ip-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.ip-share > span { font-weight: 700; color: var(--muted); margin-right: 4px; }
.ip-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.ip-share__btn:hover { border-color: var(--navy); }
.ip-share__btn .ip-icon { width: 18px; height: 18px; }

.ip-contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.ip-contact-card__agency { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--mist); }
.ip-contact-card__agency small { display: block; color: var(--muted); font-size: 12px; }
.ip-contact-card__agency strong { color: var(--navy); }
.ip-contact-card__actions { display: grid; gap: 10px; margin-bottom: 18px; }
.ip-form__title { font-size: 1.05rem; margin-bottom: 12px; }
.ip-lead-form .ip-field textarea { min-height: 96px; }

.ip-logo { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--mist); border: 1px solid var(--line); }
.ip-logo img { width: 100%; height: 100%; object-fit: contain; }
.ip-logo--initials { background: var(--navy); color: var(--gold); font-weight: 800; font-size: 18px; border: 0; }

.ip-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.ip-stickybar .ip-btn { padding: 8px 10px; font-size: 14px; }
@media (min-width: 960px) { .ip-stickybar { display: none; } }
.ip-more { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; }

/* ---------- Agences ---------- */
.ip-agency-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ip-agency-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ip-agency-grid { grid-template-columns: repeat(3, 1fr); } }
.ip-agency-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); position: relative; }
.ip-agency-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.ip-agency-card .ip-logo { width: 60px; height: 60px; }
.ip-agency-card__body { display: grid; gap: 2px; }
.ip-agency-card__name { font-weight: 800; color: var(--navy); }
.ip-agency-card__city, .ip-agency-card__count { font-size: 14px; color: var(--muted); }
.ip-agency-card .ip-badge--demo { position: absolute; top: 10px; right: 10px; }

.ip-agence { padding-top: 24px; }
.ip-agence__head { display: grid; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: var(--navy); color: #fff; }
@media (min-width: 720px) { .ip-agence__head { grid-template-columns: 112px 1fr; padding: 28px 32px; } }
.ip-agence__head .ip-logo { width: 96px; height: 96px; border-radius: 18px; background: #fff; }
@media (min-width: 720px) { .ip-agence__head .ip-logo { width: 112px; height: 112px; } }
.ip-agence__head .ip-logo--initials { background: var(--teal); color: #fff; font-size: 32px; }
.ip-agence__head h1 { color: #fff; margin-bottom: 6px; }
.ip-agence__zone { display: flex; align-items: center; gap: 6px; color: #C9D6DE; margin-bottom: 16px; }
.ip-agence__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-agence__head .ip-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ip-agence__head .ip-btn--ghost:hover { border-color: #fff; }
.ip-agence__about { margin-top: 28px; max-width: 760px; }
.ip-social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ip-social a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; }
.ip-count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--mist); color: var(--navy); font-size: 14px; vertical-align: middle; }

/* ---------- Tarifs ---------- */
.ip-pricing { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ip-pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ip-pricing { grid-template-columns: repeat(4, 1fr); } }
.ip-plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ip-plan--featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); }
.ip-plan--soon { background: var(--mist); }
.ip-plan__flag { position: absolute; top: -12px; left: 20px; background: var(--gold); color: var(--navy-2); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.ip-plan__name { font-size: 1.25rem; margin-bottom: 2px; }
.ip-plan__desc { color: var(--muted); font-size: 14px; min-height: 2.6em; }
.ip-plan__price { margin: 8px 0 16px; color: var(--muted); }
.ip-plan__price strong { font-size: 2rem; color: var(--navy); font-weight: 850; letter-spacing: -.02em; }
.ip-plan__price span { font-size: 14px; }
.ip-plan__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.ip-plan__list li { display: flex; gap: 8px; align-items: center; }
.ip-plan__list .ip-icon { color: var(--teal); width: 18px; height: 18px; }
.ip-pricing-note { margin-top: 32px; padding: 22px; border-radius: 14px; background: var(--mist); max-width: 860px; }
.ip-pricing-note h3 { margin-bottom: 8px; }
.ip-pricing-note p:last-child { margin: 0; }

/* ---------- Authentification ---------- */
.ip-auth { max-width: 640px; }
.ip-auth--login { max-width: 460px; margin: 40px auto; }
.ip-auth__intro { margin-bottom: 18px; }
.ip-login { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.ip-login h2 { font-size: 1.3rem; }
.ip-login p { margin-bottom: 14px; }
.ip-login label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.ip-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ip-login .button-primary, .ip-login input[type="submit"] { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.ip-login .button-primary:hover { background: var(--teal-2); }
.ip-login__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; margin: 8px 0 0 !important; }

/* ---------- 404 ---------- */
.ip-404 { text-align: center; padding: 72px var(--gutter); max-width: 640px; }
.ip-404__code { font-size: 72px; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 12px; }
.ip-404__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ==========================================================================
   Espace agence
   ========================================================================== */
.ip-dash { display: grid; gap: 20px; }
@media (min-width: 1000px) { .ip-dash { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; } }
.ip-dash__side { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px; }
@media (min-width: 1000px) { .ip-dash__side { position: sticky; top: 84px; padding: 18px; } }
.ip-dash__agency { display: flex; gap: 12px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 8px; }
.ip-dash__agency strong { display: block; color: #fff; line-height: 1.3; }
.ip-dash__agency .ip-logo { background: #fff; border: 0; }
.ip-dash__nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.ip-dash__nav::-webkit-scrollbar { display: none; }
.ip-dash__nav a { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 10px; color: #D3E0E7; text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; }
.ip-dash__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ip-dash__nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.ip-dash__logout { color: #9FB4C0 !important; }
@media (min-width: 1000px) { .ip-dash__nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; } .ip-dash__logout { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 !important; } }
.ip-dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--navy-2); font-size: 12px; font-weight: 800; }
.ip-dash__main { min-width: 0; }
.ip-dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ip-dash__head h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 0; }
.ip-link-back { font-weight: 600; }

.ip-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--mist); color: var(--navy); white-space: nowrap; }
.ip-dash__agency .ip-pill { margin-top: 4px; background: rgba(255, 255, 255, .12); color: #fff; }
.ip-pill--actif { background: var(--ok-soft); color: var(--ok); }
.ip-dash__agency .ip-pill--actif { background: rgba(70, 200, 150, .2); color: #A6EBCF; }
.ip-pill--expire, .ip-pill--expir { background: var(--warn-soft); color: var(--warn); }
.ip-pill--suspendu { background: var(--danger-soft); color: var(--danger); }
.ip-pill--brouillon { background: var(--mist); color: var(--muted); }
.ip-pill--lead-nouveau { background: var(--gold-soft); color: var(--warn); }
.ip-pill--lead-contacte { background: #E6EEF7; color: #24507A; }
.ip-pill--lead-visite { background: var(--teal-soft); color: var(--teal-2); }
.ip-pill--lead-negociation { background: #EFE8F7; color: #5B3B86; }
.ip-pill--lead-conclu { background: var(--ok-soft); color: var(--ok); }
.ip-pill--lead-perdu { background: var(--mist); color: var(--muted); }

.ip-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .ip-panel { padding: 22px 24px; } }
.ip-panel h2 { font-size: 1.1rem; }
.ip-panel--onboard { background: var(--gold-soft); border-color: #F1D9A8; }
.ip-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ip-checklist li { display: flex; align-items: center; gap: 10px; }
.ip-checklist .ip-icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; color: #C9B48A; border: 1px solid #E9D3A3; }
.ip-checklist li.is-done span { color: var(--muted); text-decoration: line-through; }
.ip-checklist li.is-done .ip-icon { background: var(--teal); color: #fff; border-color: var(--teal); }

.ip-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .ip-stats { grid-template-columns: repeat(4, 1fr); } }
.ip-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.ip-stat__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.ip-stat__value { font-size: 1.9rem; font-weight: 850; color: var(--navy); line-height: 1.1; }
.ip-stat__value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.ip-stat__sub { font-size: 13px; color: var(--muted); }
.ip-cols { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .ip-cols { grid-template-columns: 1fr 1fr; } }
.ip-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ip-bars a { display: grid; grid-template-columns: 110px 1fr 32px; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 14px; padding: 4px 0; }
.ip-bars__track { height: 10px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.ip-bars__fill { display: block; height: 100%; background: var(--teal); border-radius: 99px; min-width: 2px; }
.ip-bars__fill--nouveau { background: var(--gold); }
.ip-bars__fill--conclu { background: var(--ok); }
.ip-bars__fill--perdu { background: #A9B6BE; }
.ip-bars__n { text-align: right; font-weight: 700; }
.ip-agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ip-agenda a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--mist); }
.ip-agenda strong { color: var(--teal-2); }
.ip-agenda li.is-late strong { color: var(--danger); }
.ip-copy { display: flex; gap: 8px; }
.ip-copy input { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }

.ip-quota { margin-bottom: 14px; }
.ip-quota p { margin: 0 0 6px; }
.ip-meter { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; max-width: 420px; }
.ip-meter span { display: block; height: 100%; background: var(--teal); }
.ip-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: thin; }
.ip-chips a { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.ip-chips a span { color: var(--muted); margin-left: 4px; font-weight: 700; }
.ip-chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ip-chips a[aria-current] span { color: var(--gold); }

.ip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ip-list__item { display: grid; grid-template-columns: 76px 1fr; gap: 12px 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 760px) { .ip-list__item { grid-template-columns: 96px 1fr auto; align-items: center; } }
.ip-list__thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--mist); }
@media (min-width: 760px) { .ip-list__thumb { width: 96px; height: 80px; } }
.ip-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ip-list__thumb .ip-ph { min-height: 100%; }
.ip-list__thumb .ip-ph span { display: none; }
.ip-list__thumb .ip-ph .ip-icon { width: 28px; height: 28px; }
.ip-list__body { min-width: 0; }
.ip-list__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 4px; font-size: 13px; }
.ip-list__title { font-size: 1rem; margin: 0 0 2px; }
.ip-list__title a { color: var(--navy); text-decoration: none; }
.ip-list__sub { margin: 0; font-size: 14px; }
.ip-list__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .ip-list__actions { grid-column: auto; justify-content: flex-end; } }
.ip-menu { position: relative; }
.ip-menu summary { list-style: none; }
.ip-menu summary::-webkit-details-marker { display: none; }
.ip-menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.ip-menu__panel form { margin: 0; }
.ip-menu__panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ip-menu__panel button:hover { background: var(--mist); }

.ip-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ip-photo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 13px; }
.ip-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ip-photo label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; cursor: pointer; }
.ip-photo__remove { color: var(--danger); border-top: 1px solid var(--mist); }
.ip-upload input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed var(--teal); border-radius: 12px; background: var(--teal-soft); cursor: pointer; }
.ip-upload__preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.ip-upload__preview figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--mist); }
.ip-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.ip-upload__preview figure.is-bad { outline: 2px solid var(--danger); }
.ip-upload__preview figcaption { position: absolute; inset: auto 0 0 0; background: rgba(180, 35, 24, .9); color: #fff; font-size: 11px; padding: 2px 4px; }
.ip-logo-field { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; margin-bottom: 8px; }
.ip-logo-field .ip-logo { width: 72px; height: 72px; }

.ip-add-lead summary { cursor: pointer; font-weight: 700; color: var(--teal-2); }
.ip-add-lead[open] summary { margin-bottom: 14px; }
.ip-lead-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.ip-lead-filters input { flex: 1; min-width: 0; }
.ip-leads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ip-lead { background: #fff; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.ip-lead:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 124, 128, .15); }
.ip-lead summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
.ip-lead summary::-webkit-details-marker { display: none; }
.ip-lead__who strong { display: block; color: var(--navy); }
.ip-lead__who small { color: var(--muted); }
.ip-lead__body { padding: 0 16px 16px; border-top: 1px solid var(--mist); }
.ip-lead__bien { margin: 12px 0 8px; font-size: 14px; }
.ip-lead__msg { margin: 0 0 12px; padding: 10px 14px; background: var(--mist); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; font-size: 15px; }
.ip-lead__contact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ip-lead__form { background: #FBFCFD; border: 1px solid var(--mist); border-radius: 12px; padding: 14px; }
.ip-lead__delete { margin-top: 10px; text-align: right; font-size: 14px; }
.ip-late { color: var(--danger); font-weight: 700; font-size: 12px; }

.ip-sub__plan { font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ip-steps { padding-left: 1.2em; display: grid; gap: 6px; }
.ip-paybox { white-space: normal; padding: 14px 16px; background: var(--mist); border-radius: 10px; margin: 12px 0 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.ip-plan-mini { display: grid; gap: 10px; }
@media (min-width: 700px) { .ip-plan-mini { grid-template-columns: repeat(2, 1fr); } }
.ip-plan-mini__item { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; justify-items: start; }
.ip-plan-mini__item.is-current { border-color: var(--teal); background: var(--teal-soft); }
.ip-plan-mini__item.is-requested { border-color: var(--gold); }
.ip-plan-mini__item span { color: var(--muted); font-size: 14px; }
.ip-table-wrap { overflow-x: auto; }
.ip-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ip-table th, .ip-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.ip-table th { color: var(--muted); font-weight: 650; font-size: 13px; }
.ip-preview-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ip-preview-bar .ip-notice { flex: 1; margin: 0; }
.is-dashboard .ip-bien .ip-gallery { margin-left: 0; margin-right: 0; }

/* ---------- Ajustements après recette visuelle ---------- */
.ip-card__media, .ip-card__media:hover, .ip-contact-card__agency, .ip-contact-card__agency:hover { text-decoration: none; }
.ip-gallery__main:has(.ip-ph) .ip-gallery__slide { aspect-ratio: auto; height: 200px; }
@media (min-width: 760px) { .ip-gallery__main:has(.ip-ph) .ip-gallery__slide { height: 240px; } }
