/* Classe One Immo — agence immobilière, Hann Maristes 2, Dakar
   Structure « agence immobilière » (modèle diao-immo.com). Couleurs du logo : bleu marine, orange, bleu ciel. */
:root {
  --navy: #173f6e;
  --navy-2: #0f2d52;
  --orange: #f08132;
  --orange-2: #ff9a4f;
  --sky: #3dbbe8;
  --slate: #f4f7fb;
  --ink: #1b2533;
  --muted: #637083;
  --line: #e1e7ef;
  --green: #1f9d55;
  --shadow: 0 20px 44px -26px rgba(15, 45, 82, .45);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.o { color: var(--orange); }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.slate { background: var(--slate); }
.navy { background: var(--navy); color: #c9d7ea; }
.navy h2, .navy h3 { color: #fff; }
.over { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.navy .over { color: var(--orange-2); }
.head { margin-bottom: 40px; max-width: 720px; }
.head.center { text-align: center; margin-inline: auto; }
.head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.navy .head p { color: #a9bdd6; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.head-row .head { margin-bottom: 0; }
.more { font-weight: 700; color: var(--navy); }
.more:hover { color: var(--orange); }
p + p { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #dc6c1d; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-white:hover { background: #fff; color: var(--navy); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(15,45,82,.5); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: 8px; font-weight: 600; font-size: .94rem; color: #3b4758; }
.nav a:hover { color: var(--navy); background: var(--slate); }
.nav a.on { color: var(--navy); background: var(--slate); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: #dc6c1d; color: #fff; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--slate); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--navy); transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Héros + moteur de recherche */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 70px 0 120px; background: var(--navy-2); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(15,45,82,.93) 0%, rgba(15,45,82,.78) 50%, rgba(15,45,82,.35) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero .pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 30px; background: rgba(240,129,50,.18); border: 1px solid rgba(240,129,50,.5); color: var(--orange-2); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { color: #fff; margin: 18px 0 14px; max-width: 760px; }
.hero h1 .o { display: block; }
.hero .lead { color: #d6e2f1; max-width: 600px; font-size: 1.1rem; }
.search { margin-top: 30px; background: #fff; border-radius: 16px; padding: 18px; max-width: 820px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); color: var(--ink); }
.search .tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.search .tabs button { flex: 1; padding: 10px 14px; border-radius: 10px; border: 0; background: var(--slate); font: 600 .92rem "Inter", sans-serif; color: #4a5668; cursor: pointer; }
.search .tabs button.on { background: var(--navy); color: #fff; }
.search .fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.search select, .search input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.quick { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; color: #d6e2f1; }
.quick a:hover { color: var(--orange-2); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: 70px; }

/* Cartes de services */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; transition: .25s; }
.box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.box .ic { font-size: 1.8rem; margin-bottom: 12px; }
.box h3 { margin-bottom: 6px; }
.box p { color: var(--muted); font-size: .94rem; }
.box .link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--orange); }
.navy .box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.navy .box p { color: #a9bdd6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split .boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks li { position: relative; padding-left: 28px; margin: 9px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }

/* Cartes de biens */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--slate); }
.prop .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prop:hover .ph img { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: .74rem; font-weight: 700; background: #fff; color: var(--navy); }
.badge.t { background: var(--navy); color: #fff; }
.badge.v { margin-left: auto; background: var(--orange); color: #fff; }
.badge.ex { background: #fff3e9; color: #b4561a; }
.prop .bd { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.price { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.35rem; color: var(--orange); }
.prop h3 { font-size: 1.12rem; margin: 6px 0 4px; text-transform: uppercase; }
.prop .loc { color: var(--muted); font-size: .9rem; }
.feats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: #4a5668; }
.feats .ok { margin-left: auto; color: var(--green); font-weight: 700; }

/* Catalogue */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: sticky; top: 96px; }
.filters h3 { font-size: 1.15rem; margin-bottom: 14px; }
.filters label { display: block; font-size: .82rem; font-weight: 700; color: #4a5668; margin: 12px 0 6px; }
.filters select, .filters input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .93rem; background: #fff; }
.filters .reset { margin-top: 16px; background: none; border: 0; color: var(--orange); font-weight: 700; cursor: pointer; font: 700 .9rem "Inter", sans-serif; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); }
.catalog .cards { grid-template-columns: repeat(2, 1fr); }
.empty { padding: 40px; text-align: center; background: var(--slate); border-radius: 14px; color: var(--muted); grid-column: 1 / -1; }
.demo-note { background: #fff3e9; border: 1px dashed #f3b78a; color: #8a4615; padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }

/* Bandeau de page */
.page-top { background: var(--slate); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-top h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-top p { color: var(--muted); margin-top: 8px; max-width: 680px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--orange); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.banner { position: relative; padding: clamp(60px, 9vw, 100px) 0; background: var(--navy); color: #fff; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.banner .container { position: relative; }
.banner h1 { color: #fff; }
.banner p { color: #d0dcec; max-width: 660px; margin-top: 12px; font-size: 1.06rem; }

/* Fiche bien */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 22px 0 26px; }
.gallery .main { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--slate); }
.gallery .side { display: grid; gap: 12px; }
.gallery .side div { border-radius: 14px; overflow: hidden; position: relative; background: var(--slate); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,45,82,.55); color: #fff; font-weight: 700; }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; margin: 10px 0 6px; }
.detail .price { font-size: 2rem; margin: 14px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stats div { background: var(--slate); border-radius: 12px; padding: 16px; text-align: center; }
.stats b { display: block; font-family: "Oswald", sans-serif; font-size: 1.5rem; color: var(--navy); }
.stats span { font-size: .82rem; color: var(--muted); }
.desc h2 { font-size: 1.5rem; margin-bottom: 10px; }
.desc p, .desc li { color: #46536a; }
.aside { position: sticky; top: 96px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.form h2, .form h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form .sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: #3b4758; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .filters input:focus, .search select:focus, .search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23,63,110,.1); }
.field textarea { min-height: 100px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { width: 100%; }
.form .btn + .btn { margin-top: 10px; }
.thanks { margin-top: 12px; padding: 12px; border-radius: 10px; background: #e8f7ee; color: #17663a; font-weight: 600; font-size: .92rem; }
.hidden { display: none !important; }

/* Étapes, blog, valeurs, zones */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: "Oswald", sans-serif; font-size: 2.2rem; font-weight: 600; color: var(--orange); display: block; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .92rem; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.cats button { padding: 8px 16px; border-radius: 30px; border: 1.5px solid var(--line); background: #fff; font: 600 .88rem "Inter", sans-serif; cursor: pointer; color: #4a5668; }
.cats button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .ph { aspect-ratio: 16/9; overflow: hidden; background: var(--slate); }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }
.post .bd { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.post h3 { font-size: 1.2rem; }
.post p { color: var(--muted); font-size: .92rem; flex: 1; }
.post .meta { font-size: .82rem; color: var(--muted); }
.post.featured { grid-column: 1 / -1; flex-direction: row; }
.post.featured .ph { flex: 1.2; aspect-ratio: auto; min-height: 280px; }
.post.featured .bd { flex: 1; padding: 30px; justify-content: center; }
.post.featured h3 { font-size: 1.7rem; }
.article { max-width: 780px; margin-inline: auto; }
.article .meta { color: var(--muted); font-size: .9rem; margin: 6px 0 22px; }
.article .cover { border-radius: 14px; overflow: hidden; margin-bottom: 26px; aspect-ratio: 16/8; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: 1.5rem; margin: 26px 0 8px; }
.article p { color: #3d4a5e; font-size: 1.04rem; }
.zones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zones span { padding: 9px 18px; border-radius: 30px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; color: var(--navy); }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats-band b { display: block; font-family: "Oswald", sans-serif; font-size: 2.4rem; color: var(--orange); line-height: 1.1; }
.stats-band span { color: #c9d7ea; font-size: .92rem; }
.info { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info + .info { margin-top: 12px; }
.info .ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--slate); display: grid; place-items: center; font-size: 1.2rem; }
.info small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info b, .info a { color: var(--navy); }
.hours div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.map { width: 100%; height: 380px; border: 0; border-radius: 14px; display: block; }

/* Bandeau d'appel */
.cta { background: linear-gradient(120deg, var(--navy), #22598f); color: #d6e2f1; border-radius: 18px; padding: clamp(32px, 5vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(240,129,50,.18); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pied de page */
.trust { background: var(--slate); border-top: 1px solid var(--line); padding: 26px 0; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust div { display: flex; gap: 12px; align-items: center; }
.trust .ic { font-size: 1.5rem; }
.trust b { display: block; color: var(--navy); font-size: .95rem; }
.trust span { color: var(--muted); font-size: .85rem; }
.footer { background: var(--navy-2); color: #a9bdd6; padding: 60px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer .logo img { background: #fff; border-radius: 10px; padding: 6px; height: 64px; }
.footer p { margin-top: 14px; }
.footer .motto { color: var(--orange-2); font-weight: 600; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer li { margin: 7px 0; }
.footer a:hover { color: var(--orange-2); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--orange); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; font-size: .84rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.wa-float svg { width: 28px; height: 28px; }

.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.anim .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .g4, .steps, .trust .container, .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .burger { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 10px; }
  .nav .btn { margin: 8px 0 0; }
  .catalog, .detail, .split { grid-template-columns: 1fr; }
  .filters, .aside { position: static; }
  .post.featured { flex-direction: column; }
}
@media (max-width: 640px) {
  .cards, .catalog .cards, .g2, .g3, .g4, .steps, .row, .split .boxes, .footer-grid { grid-template-columns: 1fr; }
  .search .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .side { grid-template-columns: 1fr 1fr; }
  .gallery .side div { aspect-ratio: 4/3; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .btn { white-space: normal; text-align: center; }
  .hero::before { background: linear-gradient(180deg, rgba(15,45,82,.75), rgba(15,45,82,.95)); }
}
