/*
Theme Name: Cafti Group
Theme URI: https://cafti-group.com
Description: Thème enfant de Hello Elementor pour le marketplace de locations Cafti Group (Bénin).
Author: Cafti Group
Template: hello-elementor
Version: 0.1.3
Text Domain: cafti-group
*/

/* fonts loaded via wp_enqueue_style in functions.php */

:root{
  --navy:#0A2540;
  --navy-2:#1B3A5C;
  --gold:#D4A24C;
  --gold-2:#E8C988;
  --gold-soft:rgba(212,162,76,.12);
  --cream:#F8F6F1;
  --ink:#0E1A2B;
  --muted:#6B7A8F;
  --line:rgba(10,37,64,.08);
  --wa:#25D366;
  --wa-2:#1ebe5a;
}
*{box-sizing:border-box}
html{overflow-x:clip}
html,body{margin:0;padding:0;max-width:100vw}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip}
body.home,body.single,body.archive,body.search,body.error404,body.page{padding:0!important;margin:0!important}

/* sections : ne jamais dépasser la largeur du viewport */
.cafti-header,.hero,.stats,.featured,.market,.how,.cta-band,.cafti-footer{width:100%;max-width:100vw}

/* la stats vient juste après la searchcard désormais — pas besoin d'un grand margin */
.stats{margin-top:80px!important}

/* H1 et p dans le hero : autoriser le wrap des mots longs */
.hero h1,.hero p,.hero-text{min-width:0;overflow-wrap:break-word;word-wrap:break-word}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
svg{display:block}

.cafti-container{max-width:1320px;margin:0 auto;padding:0 2rem}

.btn{display:inline-flex;align-items:center;gap:.55rem;padding:.85rem 1.4rem;border-radius:4px;font-weight:600;font-size:.9rem;transition:.2s;cursor:pointer;border:none;font-family:inherit;letter-spacing:.02em;line-height:1;text-decoration:none}
.btn svg{width:18px;height:18px;flex:none}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{background:var(--gold-2);color:var(--navy)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-2);color:#fff}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.4)}
.btn-ghost:hover{background:#fff;color:var(--navy);border-color:#fff}
.btn-wa{background:var(--wa);color:#fff;font-weight:700}
.btn-wa:hover{background:var(--wa-2);color:#fff}
.btn-call{background:var(--cream);color:var(--navy);font-weight:600;border:1px solid var(--line)}
.btn-call:hover{background:var(--navy);color:#fff;border-color:var(--navy)}

.eyebrow{font-size:.75rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);font-weight:700;display:inline-flex;align-items:center;gap:.8rem}
.eyebrow::before{content:"";width:36px;height:1px;background:var(--gold)}
.eyebrow.center{justify-content:center}
.eyebrow.center::after{content:"";width:36px;height:1px;background:var(--gold)}

/* ============ HEADER ============ */
.cafti-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.cafti-header .inner{max-width:1320px;margin:0 auto;padding:1.2rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.cafti-header .logo{display:flex;align-items:center;gap:.8rem;flex:none}
.cafti-header .logo img{height:48px;width:auto}
.cafti-header .logo .lk{font-family:'Playfair Display',serif;font-size:1.4rem;letter-spacing:.04em;color:var(--navy);font-weight:700;line-height:1}
.cafti-header .logo .sm{font-size:.7rem;letter-spacing:.3em;color:var(--gold);font-weight:600;display:block;margin-top:3px}
.cafti-header nav.menu ul{list-style:none;display:flex;gap:1.8rem;font-size:.86rem;font-weight:500;margin:0;padding:0}
.cafti-header nav.menu a{position:relative;padding:.4rem 0;transition:.2s;white-space:nowrap;color:var(--navy)}
.cafti-header nav.menu a:hover{color:var(--gold)}
.cafti-header nav.menu .current-menu-item > a,
.cafti-header nav.menu li.active > a{color:var(--gold)}
.cafti-header nav.menu .current-menu-item > a::after,
.cafti-header nav.menu li.active > a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--gold)}
.cafti-header .top-cta{display:flex;gap:1rem;align-items:center;flex:none}
.cafti-header .phone{font-size:.78rem;color:var(--muted);text-align:right}
.cafti-header .phone strong{color:var(--navy);display:block;font-size:.95rem;font-weight:700;letter-spacing:.02em}

.hsearch-wrap{position:relative}
.hsearch-btn{width:42px;height:42px;border-radius:50%;background:transparent;border:1px solid var(--line);color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.hsearch-btn:hover,.hsearch-wrap.open .hsearch-btn{background:var(--navy);color:#fff;border-color:var(--navy)}
.hsearch-btn svg{width:18px;height:18px}
.hsearch-pop{position:absolute;right:0;top:calc(100% + 18px);background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);box-shadow:0 20px 50px rgba(10,37,64,.18);padding:.4rem;display:none;align-items:center;width:380px;z-index:60}
.hsearch-wrap.open .hsearch-pop{display:flex}
.hsearch-pop input{flex:1;border:none;outline:none;padding:.7rem 1rem;font-size:.92rem;font-family:inherit;color:var(--navy);background:transparent;font-weight:500}
.hsearch-pop input::placeholder{color:var(--muted)}
.hsearch-pop button{width:40px;height:40px;border:none;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.hsearch-pop button:hover{background:var(--navy);color:#fff}
.hsearch-pop button svg{width:18px;height:18px}

/* ============ HERO ============ */
.hero{position:relative;min-height:680px;height:88vh;background:#000;color:#fff}
.hero::before{content:"";position:absolute;inset:0;overflow:hidden;z-index:0;background:linear-gradient(115deg,rgba(10,37,64,.82) 0%,rgba(10,37,64,.5) 45%,rgba(10,37,64,.18) 100%),url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1900&q=80') center/cover}
.hero-inner{position:relative;max-width:1320px;margin:0 auto;padding:0 2rem;height:100%;display:flex;align-items:center;min-height:680px}
.hero-text{max-width:680px}
.hero h1{font-family:'Playfair Display',serif;font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.05;font-weight:600;margin:1.6rem 0;letter-spacing:-.012em;color:#fff}
.hero h1 em{font-style:italic;color:var(--gold-2);font-weight:500}
.hero p{font-size:1.1rem;line-height:1.7;color:rgba(255,255,255,.85);margin:0 0 2.4rem;max-width:540px}
.hero-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}

/* searchcard — flex propre, label collé à l'input, pas de bande vide */
form.searchcard{
  position:relative;margin:-58px auto 0;background:#fff;
  box-shadow:0 30px 80px rgba(10,37,64,.22);border-radius:4px;
  padding:1.2rem;display:flex;gap:.9rem;
  align-items:flex-end;
  width:min(1180px,calc(100% - 4rem));z-index:5;
  border-top:3px solid var(--gold);
  color:var(--navy)
}
form.searchcard .field{
  flex:1!important;display:flex!important;flex-direction:column!important;
  gap:.45rem!important;min-width:0!important;padding:0!important;border:none!important;margin:0!important
}
form.searchcard .field label{
  display:block!important;font-size:.7rem!important;letter-spacing:.2em!important;
  text-transform:uppercase!important;color:var(--muted)!important;font-weight:700!important;
  margin:0 0 .45rem 0!important;line-height:1.2!important
}
form.searchcard input,
form.searchcard select,
form.searchcard input[type=text],
form.searchcard input[type=tel],
form.searchcard input[type=number],
form.searchcard input[type=email],
form.searchcard input[type=search]{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
  padding:0 1rem!important;margin:0!important;
  border:1.5px solid rgba(10,37,64,.22)!important;border-radius:6px!important;
  background:#FAFBFD!important;background-image:none!important;
  color:var(--navy)!important;font-family:inherit!important;
  font-size:.95rem!important;font-weight:600!important;line-height:43px!important;
  box-shadow:none!important;outline:none!important;
  box-sizing:border-box!important;text-transform:none!important;
  -webkit-appearance:auto;appearance:auto
}
form.searchcard select{
  cursor:pointer;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%230A2540'/></svg>") right .9rem center no-repeat!important;
  background-size:10px 6px!important;
  -webkit-appearance:none!important;appearance:none!important;padding-right:2rem!important
}
form.searchcard input::placeholder{color:#8895A8!important;opacity:1!important;font-weight:500!important}
form.searchcard{color:var(--navy)!important}

/* ============ Cafti Select (custom dropdown stylé) ============ */
.cafti-select{position:relative;width:100%}
.cafti-select .cs-trigger{
  display:flex!important;align-items:center;justify-content:space-between;
  width:100%;height:46px;padding:0 1rem;margin:0;
  border:1.5px solid #ccd2da;border-radius:6px;background:#FAFBFD;
  color:var(--navy);font:600 .95rem/1 Inter,system-ui,sans-serif;
  cursor:pointer;text-align:left;outline:none;transition:.2s;
  -webkit-appearance:none;appearance:none
}
.cafti-select .cs-trigger:hover{border-color:var(--gold);background:#fff}
.cafti-select.open .cs-trigger{border-color:var(--gold);background:#fff;box-shadow:0 0 0 3px rgba(212,162,76,.18)}
.cafti-select .cs-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.cafti-select .cs-label.is-placeholder{color:#8895A8;font-weight:500}
.cafti-select .cs-arrow{transition:transform .25s;flex-shrink:0;margin-left:.6rem;color:var(--navy)}
.cafti-select.open .cs-arrow{transform:rotate(180deg);color:var(--gold)}
.cafti-select .cs-options{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);
  border-radius:0 0 6px 6px;
  box-shadow:0 20px 50px rgba(10,37,64,.18);
  list-style:none;margin:0;padding:.4rem;
  max-height:320px;overflow-y:auto;
  z-index:100;
  animation:cs-fade .15s ease-out
}
.cafti-select .cs-options[hidden]{display:none}
.cafti-select .cs-options li{
  padding:.65rem .9rem;font-size:.9rem;font-weight:500;
  color:var(--navy);cursor:pointer;border-radius:4px;
  transition:.12s;display:flex;align-items:center;justify-content:space-between;gap:.6rem
}
.cafti-select .cs-options li:hover{background:var(--gold-soft);color:var(--navy)}
.cafti-select .cs-options li[aria-selected="true"]{background:var(--navy);color:#fff;font-weight:600}
.cafti-select .cs-options li[aria-selected="true"]::after{content:"✓";color:var(--gold);font-weight:700}
@keyframes cs-fade{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
/* scrollbar fine */
.cafti-select .cs-options::-webkit-scrollbar{width:6px}
.cafti-select .cs-options::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.cafti-select .cs-options::-webkit-scrollbar-thumb:hover{background:var(--muted)}
form.searchcard input:focus,form.searchcard select:focus{
  border-color:var(--gold)!important;box-shadow:0 0 0 3px rgba(212,162,76,.18)!important
}
form.searchcard button{
  height:44px!important;padding:0 1.6rem!important;
  background:var(--navy)!important;color:#fff!important;
  border:none!important;border-radius:4px!important;cursor:pointer!important;
  font-weight:600!important;font-family:inherit!important;font-size:.92rem!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important
}
form.searchcard button:hover{background:var(--navy-2)!important}
.searchcard .btn-navy{padding:1.05rem 2rem;font-size:.92rem}

/* ============ STATS ============ */
.stats{max-width:1320px;margin:130px auto 0;padding:0 2rem;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stat{padding:2.4rem 1.5rem;text-align:center;border-right:1px solid var(--line)}
.stat:last-child{border-right:none}
.stat .n{font-family:'Playfair Display',serif;font-size:2.6rem;color:var(--navy);font-weight:600;line-height:1}
.stat .l{font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-top:.6rem;font-weight:700}

/* ============ FEATURED ============ */
.featured{max-width:1320px;margin:120px auto 100px;padding:0 2rem}
.featured .head{text-align:center;max-width:680px;margin:0 auto 4rem}
.featured .head h2{font-family:'Playfair Display',serif;font-size:2.7rem;font-weight:600;margin:1.2rem 0 1rem;color:var(--navy);letter-spacing:-.01em}
.featured .head p{color:var(--muted);font-size:1.05rem;line-height:1.7}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.fcard{background:#fff;border:1px solid var(--line);transition:.3s;display:flex;flex-direction:column}
.fcard:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(10,37,64,.12)}
.fcard .ph{aspect-ratio:4/3;background-size:cover;background-position:center;position:relative}
.fcard .ph .tag{position:absolute;top:1rem;left:1rem;background:#fff;color:var(--navy);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;padding:.45rem .85rem;font-weight:700}
.fcard .ph .gold-bar{position:absolute;bottom:0;left:0;height:4px;width:60px;background:var(--gold)}
.fcard .body{padding:1.5rem 1.6rem 1.6rem;flex:1;display:flex;flex-direction:column}
.fcard h3{font-family:'Playfair Display',serif;font-size:1.25rem;margin:0 0 .35rem;color:var(--navy);font-weight:600}
.fcard h3 a{color:inherit}
.fcard .loc{font-size:.84rem;color:var(--muted);margin-bottom:1rem}
.fcard .pricerow{padding:1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:1rem}
.fcard .pricerow .p{font-family:'Playfair Display',serif;font-size:1.45rem;color:var(--navy);font-weight:700;display:block}
.fcard .pricerow .p span{font-size:.78rem;color:var(--muted);font-weight:400;font-family:'Inter';margin-left:.3rem}
.fcard .pricerow .entry{font-size:.78rem;color:var(--muted);margin-top:.3rem}
.fcard .pricerow .entry b{color:var(--navy);font-weight:700}
.fcard .agent{display:flex;align-items:center;gap:.7rem;margin-bottom:1rem}
.fcard .agent .av{width:38px;height:38px;border-radius:50%;background:var(--navy);background-size:cover;background-position:center;flex:none;border:2px solid var(--gold)}
.fcard .agent .who{font-size:.82rem;line-height:1.3}
.fcard .agent .who strong{display:block;color:var(--navy);font-weight:700;font-size:.86rem}
.fcard .agent .who small{color:var(--muted);font-size:.74rem}
.fcard .actions{display:flex;gap:.5rem;margin-top:auto}
.fcard .actions .btn-wa{flex:1;justify-content:center;padding:.85rem;font-size:.88rem}
.fcard .actions .btn-call{padding:.85rem 1rem}

/* ============ MARKETPLACE ============ */
.market{background:var(--cream);padding:6rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.market-head{max-width:1320px;margin:0 auto 3rem;padding:0 2rem;text-align:center}
.market-head h2{font-family:'Playfair Display',serif;font-size:2.5rem;font-weight:600;color:var(--navy);margin:1.2rem 0 .8rem;letter-spacing:-.01em}
.market-head p{color:var(--muted);max-width:580px;margin:0 auto;font-size:1rem}

.cats-wrap{max-width:1320px;margin:0 auto 2rem;padding:0 2rem;border-bottom:1px solid var(--line)}
.cats{display:flex;gap:1.6rem;overflow-x:auto;padding-bottom:.4rem;scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cat{flex:none;text-align:center;padding-bottom:1rem;cursor:pointer;color:var(--muted);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;border-bottom:2px solid transparent;display:flex;flex-direction:column;align-items:center;gap:.55rem;min-width:96px;transition:.2s;text-decoration:none}
.cat .ic{width:46px;height:46px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:.2s;border-radius:2px}
.cat .ic svg{width:24px;height:24px;stroke:currentColor}
.cat:hover{color:var(--navy)}
.cat:hover .ic{color:var(--navy);border-color:var(--navy)}
.cat.active{color:var(--navy);border-bottom-color:var(--gold)}
.cat.active .ic{color:var(--navy);background:#fff;border-color:var(--gold)}
.cat.star{color:var(--gold)}
.cat.star .ic{color:var(--gold);border-color:var(--gold);background:var(--gold-soft)}

.results{max-width:1320px;margin:0 auto;padding:0 2rem;display:grid;grid-template-columns:280px 1fr;gap:2.4rem}
.filters{position:sticky;top:96px;align-self:start;background:#fff;border:1px solid var(--line);padding:1.6rem 1.4rem}
.filters h3{margin:0 0 1.2rem;font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--navy);display:flex;align-items:center;justify-content:space-between;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.filters h3 small{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:700;cursor:pointer;font-family:'Inter'}
.fgroup{padding:1.2rem 0;border-top:1px solid var(--line)}
.fgroup:first-of-type{border-top:none;padding-top:.4rem}
.fgroup label.lab{display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--navy);font-weight:700;margin-bottom:.9rem}
.fgroup .opt{display:flex;align-items:center;gap:.6rem;font-size:.86rem;padding:.4rem 0;cursor:pointer;color:var(--ink);font-weight:500}
.fgroup .opt input{accent-color:var(--gold);width:14px;height:14px}
.fgroup .opt .count{margin-left:auto;color:var(--muted);font-size:.76rem;font-weight:400}
.fgroup .pricerange{display:flex;gap:.6rem}
.fgroup .pricerange input{flex:1;padding:.55rem .8rem;border:1px solid var(--line);font-size:.85rem;font-family:inherit;color:var(--navy);outline:none;transition:.2s}
.fgroup .pricerange input:focus{border-color:var(--gold)}

.resmain h3{margin:0 0 .3rem;font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:600;letter-spacing:-.01em;color:var(--navy)}
.res-sub{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem;color:var(--muted);font-size:.88rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.res-sub .sort{display:flex;align-items:center;gap:.6rem;font-weight:600;color:var(--navy)}
.res-sub .sort select{border:1px solid var(--line);background:#fff;padding:.5rem .8rem;font-family:inherit;color:var(--navy);font-weight:600;font-size:.85rem;outline:none}

.resgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.rcard{background:#fff;overflow:hidden;border:1px solid var(--line);display:grid;grid-template-columns:220px 1fr;transition:.25s;position:relative}
.rcard:hover{box-shadow:0 18px 40px rgba(10,37,64,.1);transform:translateY(-3px)}
.rcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold);opacity:0;transition:.25s}
.rcard:hover::before{opacity:1}
.rcard .ph{background-size:cover;background-position:center;position:relative;min-height:260px}
.rcard .ph .badge{position:absolute;top:.7rem;left:.7rem;background:#fff;color:var(--navy);font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;padding:.3rem .7rem;font-weight:700}
.rcard .ph .ref{position:absolute;bottom:.7rem;left:.7rem;background:rgba(10,37,64,.85);color:#fff;font-size:.66rem;padding:.25rem .55rem;letter-spacing:.08em;font-weight:600}
.rcard .body{padding:1rem 1.2rem 1.1rem;display:flex;flex-direction:column}
.rcard .top-row{display:flex;justify-content:space-between;align-items:start;gap:.6rem;margin-bottom:.3rem}
.rcard h4{margin:0;font-family:'Playfair Display',serif;font-size:1.08rem;font-weight:600;color:var(--navy);line-height:1.25}
.rcard h4 a{color:inherit}
.rcard .src{font-size:.62rem;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-weight:600;flex:none;white-space:nowrap;display:inline-flex;align-items:center;gap:.3rem}
.rcard .src svg{width:12px;height:12px;color:#1877F2}
.rcard .loc{font-size:.78rem;color:var(--muted);margin-bottom:.6rem}
.rcard .feats{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.7rem}
.rcard .feats span{background:var(--cream);font-size:.68rem;padding:.28rem .55rem;color:var(--navy);font-weight:600;letter-spacing:.02em;border:1px solid var(--line)}
.rcard .pricebox{background:var(--cream);padding:.7rem .9rem;margin:.3rem 0 .8rem;border-left:3px solid var(--gold)}
.rcard .pricebox .pr{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--navy);display:block}
.rcard .pricebox .pr small{font-size:.72rem;color:var(--muted);font-weight:400;margin-left:.2rem;font-family:'Inter'}
.rcard .pricebox .entry{font-size:.74rem;color:var(--muted);margin-top:.2rem;font-weight:500}
.rcard .pricebox .entry b{color:var(--navy);font-weight:700}
.rcard .agent{display:flex;align-items:center;gap:.55rem;padding:.5rem 0;margin-bottom:.6rem}
.rcard .agent .av{width:34px;height:34px;border-radius:50%;background:var(--navy);background-size:cover;background-position:center;flex:none;border:2px solid var(--gold)}
.rcard .agent .who{font-size:.78rem;line-height:1.3}
.rcard .agent .who strong{display:block;color:var(--navy);font-weight:700;font-size:.82rem}
.rcard .agent .who small{color:var(--muted);font-size:.7rem}
.rcard .actions{display:flex;gap:.4rem;margin-top:auto}
.rcard .actions .btn-wa{flex:1;justify-content:center;padding:.7rem;font-size:.82rem}
.rcard .actions .btn-call{padding:.7rem .85rem;font-size:.82rem}

.pagination{display:flex;justify-content:center;align-items:center;gap:.4rem;margin-top:3rem}
.pagination a,.pagination span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;font-size:.88rem;font-weight:600;color:var(--navy);transition:.2s}
.pagination a:hover,.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}

/* ============ HOW IT WORKS ============ */
.how{max-width:1320px;margin:6rem auto 0;padding:0 2rem}
.how-head{text-align:center;max-width:640px;margin:0 auto 3rem}
.how-head h2{font-family:'Playfair Display',serif;font-size:2.3rem;font-weight:600;color:var(--navy);margin:1rem 0 .6rem}
.how-head p{color:var(--muted)}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.how-step{text-align:center;padding:2.4rem 1.5rem 2rem;background:#fff;border:1px solid var(--line);position:relative}
.how-step .n{position:absolute;top:-22px;left:50%;transform:translateX(-50%);width:44px;height:44px;border-radius:50%;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-weight:700;font-size:1.2rem;border:4px solid #fff;box-shadow:0 4px 12px rgba(212,162,76,.4)}
.how-step .ic{width:60px;height:60px;margin:.6rem auto 1rem;border:1.5px solid var(--gold);display:flex;align-items:center;justify-content:center;color:var(--navy);background:var(--gold-soft)}
.how-step .ic svg{width:28px;height:28px;stroke:currentColor}
.how-step h4{font-family:'Playfair Display',serif;font-size:1.15rem;color:var(--navy);margin:0 0 .5rem;font-weight:600}
.how-step p{color:var(--muted);font-size:.9rem;margin:0;line-height:1.6}

/* ============ CTA ============ */
.cta-band{background:var(--navy);color:#fff;padding:7rem 2rem;text-align:center;margin-top:6rem;background-image:linear-gradient(rgba(10,37,64,.92),rgba(10,37,64,.92)),url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1600&q=80');background-size:cover;background-position:center}
.cta-band h2{font-family:'Playfair Display',serif;font-size:2.7rem;margin:1.2rem 0 1rem;font-weight:600;letter-spacing:-.01em}
.cta-band p{color:rgba(255,255,255,.78);max-width:560px;margin:0 auto 2.4rem;font-size:1.05rem;line-height:1.7}

/* ============ FOOTER ============ */
.cafti-footer{background:#fff;color:var(--navy);padding:4rem 2rem 2rem;border-top:1px solid var(--line)}
.cafti-footer .grid{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3rem;border-bottom:1px solid var(--line)}
.cafti-footer h5{font-family:'Playfair Display',serif;font-size:1rem;color:var(--navy);margin:0 0 1.2rem;font-weight:600}
.cafti-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.6rem;font-size:.88rem;color:var(--muted)}
.cafti-footer ul a{color:inherit}
.cafti-footer ul a:hover{color:var(--gold)}
.cafti-footer .brand p{color:var(--muted);font-size:.88rem;line-height:1.7;margin:1rem 0 1.4rem;max-width:340px}
.cafti-footer .brand .socials{display:flex;gap:.6rem}
.cafti-footer .brand .socials a{width:40px;height:40px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--navy);transition:.2s}
.cafti-footer .brand .socials a svg{width:18px;height:18px}
.cafti-footer .brand .socials a:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.cafti-footer .copy{max-width:1320px;margin:0 auto;padding-top:1.6rem;display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:var(--muted);flex-wrap:wrap;gap:1rem}

/* ============ SINGLE & ARCHIVE ============ */
.single-annonce-wrap,.archive-annonce-wrap{max-width:1320px;margin:3rem auto;padding:0 2rem}
.single-annonce-wrap h1{font-family:'Playfair Display',serif;font-size:2.4rem;color:var(--navy);font-weight:600;letter-spacing:-.01em}

/* ======================================================================
   RESPONSIVE
   Breakpoints : >1400 desktop · 1180-1400 laptop · 900-1180 tablette · <900 mobile
   ====================================================================== */

/* mobile menu toggle (hamburger) */
.mobile-toggle{display:none;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--navy);align-items:center;justify-content:center;cursor:pointer;flex:none}
.mobile-toggle svg{width:20px;height:20px}
.mobile-menu{display:none;position:fixed;inset:0;background:rgba(10,37,64,.96);z-index:200;padding:5rem 2rem 2rem;overflow-y:auto}
.mobile-menu.open{display:block}
.mobile-menu .close{position:absolute;top:1.4rem;right:1.4rem;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;border:none;cursor:pointer;font-size:1.2rem}
.mobile-menu ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem}
.mobile-menu a{color:#fff;font-size:1.3rem;font-family:'Playfair Display',serif;padding:1rem 0;display:block;border-bottom:1px solid rgba(255,255,255,.1)}
.mobile-menu a:hover{color:var(--gold)}

/* ===== Laptop : ~1180-1400px (Windows scaling 125-150%) ===== */
@media(max-width:1400px){
  .cafti-header .phone{display:none}
  .cafti-header nav.menu ul,.cafti-header nav.menu{gap:1.3rem;font-size:.82rem}
  .cafti-header .inner{gap:1.4rem;padding:1rem 1.4rem}
  .cafti-header .logo img{height:42px}
  .cafti-header .logo .lk{font-size:1.2rem}
  .cafti-header .top-cta{gap:.7rem}
  .stats{margin-top:120px}
  .featured,.market-head,.results,.how,.cafti-footer .grid{padding:0 1.4rem}
  .featured{margin:100px auto 80px}
  .featured .head h2,.market-head h2{font-size:2.2rem}
  .hero h1{font-size:clamp(2.2rem,4.4vw,3.6rem)}
  .results{grid-template-columns:240px 1fr;gap:1.6rem}
  .resgrid{gap:1.2rem}
  .rcard{grid-template-columns:170px 1fr}
  .rcard .ph{min-height:200px}
}

/* ===== Tablette : 900-1180px ===== */
@media(max-width:1180px){
  .cafti-header nav.menu ul li:nth-child(n+5),
  .cafti-header nav.menu > a:nth-child(n+5){display:none}
  .cafti-header nav.menu{font-size:.78rem;gap:1rem}
  .cafti-header .inner{gap:1rem;padding:.9rem 1.2rem}
  .feat-grid{grid-template-columns:repeat(2,1fr)}
  .results{grid-template-columns:1fr}
  .filters{position:static;margin-bottom:1rem}
  .resgrid{grid-template-columns:repeat(2,1fr)}
  .how-grid{grid-template-columns:repeat(3,1fr)}
  .cafti-footer .grid{grid-template-columns:1.2fr 1fr 1fr 1fr;gap:2rem}
  .searchcard{padding:1.2rem;gap:.3rem}
  .searchcard .field{padding:.2rem .8rem}
  .searchcard .btn-navy{padding:.9rem 1.4rem;font-size:.85rem}
}

/* ===== Mobile : <900px ===== */
@media(max-width:900px){
  .cafti-header .inner{padding:.8rem 1rem}
  .cafti-header nav.menu{display:none}
  .cafti-header .phone{display:none}
  .mobile-toggle{display:flex}
  .hsearch-wrap .phone{display:none}
  .hsearch-pop{width:calc(100vw - 2rem);right:-1rem;top:calc(100% + 12px)}
  .cafti-header .top-cta .btn-navy{display:none}

  .hero{min-height:560px;height:auto;padding:6rem 0 8rem}
  .hero-inner{min-height:0}
  .hero h1{font-size:clamp(2rem,7vw,2.8rem)}
  .hero p{font-size:1rem}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:.7rem}
  .hero-actions .btn{width:auto}

  .searchcard{position:relative;left:auto;bottom:auto;transform:none;flex-wrap:wrap;width:calc(100% - 2rem);margin:-3rem auto 0;border-radius:8px}
  .searchcard .field{flex:1 1 calc(50% - 1rem);border-right:none;border-bottom:1px solid var(--line);padding:.6rem .8rem}
  .searchcard .field:last-of-type{border-bottom:none}
  .searchcard .btn-navy{width:100%;justify-content:center;margin-top:.5rem}

  .stats{grid-template-columns:repeat(2,1fr);margin-top:2rem;padding:0 1rem}
  .stat{padding:1.6rem .8rem;border-bottom:1px solid var(--line)}
  .stat:nth-child(2){border-right:none}
  .stat:nth-child(odd){border-right:1px solid var(--line)}
  .stat:nth-child(n+3){border-bottom:none}
  .stat .n{font-size:1.9rem}

  .featured{margin:60px auto;padding:0 1rem}
  .featured .head h2,.market-head h2,.cta-band h2,.how-head h2{font-size:1.8rem}
  .feat-grid{grid-template-columns:1fr;gap:1.4rem}

  .market{padding:4rem 0}
  .market-head,.results,.cats-wrap{padding:0 1rem}
  .cats{gap:1rem}
  .cat{min-width:80px;font-size:.66rem}
  .cat .ic{width:40px;height:40px}
  .resgrid{grid-template-columns:1fr}
  .rcard{grid-template-columns:1fr}
  .rcard .ph{min-height:200px;aspect-ratio:16/10}

  .how{margin-top:4rem;padding:0 1rem}
  .how-grid{grid-template-columns:1fr;gap:2.4rem}

  .cta-band{padding:4rem 1.5rem;margin-top:4rem}
  .cta-band h2{font-size:1.8rem}

  .cafti-footer{padding:3rem 1rem 1.5rem}
  .cafti-footer .grid{grid-template-columns:1fr 1fr;gap:2rem}
  .cafti-footer .brand{grid-column:1/-1}
  .cafti-footer .copy{flex-direction:column;text-align:center}

  .single-annonce-wrap{grid-template-columns:1fr!important}
}

@media(max-width:560px){
  .searchcard .field{flex:1 1 100%}
  .cafti-footer .grid{grid-template-columns:1fr}
}
