
:root{
  --red:#d71920;
  --red-dark:#a50f15;
  --dark:#151515;
  --text:#222;
  --muted:#666;
  --light:#f6f6f6;
  --white:#fff;
  --border:#e4e4e4;
  --shadow:0 14px 35px rgba(0,0,0,.09);
  --radius:18px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;height: 100%;margin:0}
body{font-family:Arial,Helvetica,sans-serif;color:var(--text);line-height:1.6;background:#fff;display: flex;flex-direction: column;min-height: 100vh;}
main {flex: 1;}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{width:min(1200px,92%);margin:auto}
.topbar{background:#111;color:#fff;font-size:.9rem;padding:9px 0}
.topbar .container{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ofim-topbar{color:#fff}
.ofim-topbar__contact{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}
.ofim-topbar__link{display:inline-flex;align-items:center;gap:7px;color:#fff}
.ofim-topbar__link:hover,.ofim-topbar__link:focus{color:#fff;text-decoration:underline}
.ofim-icon{flex:0 0 auto;width:16px;height:16px;color:#fff;stroke:currentColor}
.navbar{background:#fff;position:sticky;top:0;z-index:40;box-shadow:0 3px 18px rgba(0,0,0,.06)}
.nav-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:1.2rem}
.brand-mark{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:#fff;font-size:.95rem}
.brand small{display:block;color:var(--muted);font-size:.72rem;font-weight:700}
.nav-links{display:flex;gap:22px;font-weight:800;font-size:.93rem}
.nav-links a:hover,.nav-links a.active{color:var(--red)}
.btn{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;font-weight:900;border:0;cursor:pointer;transition:.2s}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-1px)}
.btn-dark{background:var(--dark);color:#fff}
.btn-outline{border:1px solid var(--red);color:var(--red);background:#fff}
.hero{min-height:620px;display:flex;align-items:center;color:#fff;background:linear-gradient(90deg,rgba(0,0,0,.80),rgba(0,0,0,.40)),linear-gradient(135deg,#555,#171717);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:460px;height:460px;border-radius:50%;background:rgba(215,25,32,.22);right:-90px;top:-110px}
.hero-content{position:relative;z-index:2;width:min(790px,100%);padding:85px 0 145px}
.eyebrow{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:7px 14px;border-radius:999px;font-size:.86rem;font-weight:900;margin-bottom:20px}
h1{font-size:clamp(2.5rem,5vw,4.7rem);line-height:1.04;margin-bottom:20px}
.hero p{font-size:1.15rem;color:#eee;max-width:680px;margin-bottom:30px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.search-panel{position:relative;z-index:4;margin-top:-72px}
.search-box{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:26px;display:grid;grid-template-columns:1.2fr 1.2fr .8fr auto;gap:14px;align-items:end}
.field label{display:block;font-weight:900;font-size:.88rem;margin-bottom:7px}
.field select,.field input,.field textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:13px 14px;font:inherit;background:#fff}
.field select,.field input{min-height:50px}
.field textarea{min-height:120px;resize:vertical}
section{padding:80px 0 0}
section.cta,section.ofim-section, section.page-content {padding:80px 0}

.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:34px}
.section-head h2{font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.15;margin-bottom:10px}
.section-head p{color:var(--muted);max-width:700px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category-card{border:1px solid var(--border);border-radius:16px;padding:24px;background:#fff;transition:.2s}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.category-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#fff0f1;font-size:1.45rem;margin-bottom:16px}
.category-card h3{margin-bottom:5px}
.category-card span{color:var(--muted);font-size:.92rem}
.listings{background:var(--light)}
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.listing-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.07);display:flex;flex-direction:column}
.listing-visual{min-height:220px;position:relative;display:flex;align-items:flex-end;padding:18px;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#777,#272727)}
.listing-card:nth-child(2) .listing-visual{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#8a6348,#2d2118)}
.listing-card:nth-child(3) .listing-visual{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#4f746a,#1c2c28)}
.listing-card:nth-child(4) .listing-visual{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#7d556f,#2c1d27)}
.listing-card:nth-child(5) .listing-visual{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#7d6e3e,#2d2817)}
.listing-card:nth-child(6) .listing-visual{background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.74)),linear-gradient(135deg,#456583,#192735)}
.badge{position:absolute;top:16px;left:16px;background:var(--red);color:#fff;font-weight:900;font-size:.78rem;border-radius:999px;padding:7px 11px}
.listing-body{padding:20px;display:flex;flex-direction:column;flex:1}
.listing-location{color:var(--red);font-weight:900;font-size:.88rem;margin-bottom:7px}
.listing-body h3{font-size:1.2rem;line-height:1.3;margin-bottom:14px}
.listing-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;color:var(--muted);font-size:.9rem;margin-bottom:18px}
.listing-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:16px;border-top:1px solid var(--border)}
.price{font-size:1.28rem;font-weight:900}
.contat-form .field{margin-top:20px;}
.contat-form .btn{width:100%}
.wpcf7 input[type="checkbox"]{width:initial;min-height:unset}
.link{color:var(--red);font-weight:900}
.why{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
.why-visual{min-height:440px;border-radius:24px;background:linear-gradient(135deg,rgba(215,25,32,.96),rgba(94,9,13,.98));color:#fff;padding:42px;display:flex;flex-direction:column;justify-content:end}
.why-visual strong{font-size:3.2rem;line-height:1;margin-bottom:10px}
.why-content h2{font-size:clamp(2rem,3vw,2.8rem);line-height:1.15;margin-bottom:18px}
.why-content p{color:var(--muted);margin-bottom:20px}
.benefit{display:flex;gap:14px;margin:18px 0}
.benefit-check{flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eaf7f0;color:#19764b;font-weight:900}
/*.cta{background:#151515;color:#fff}*/
 .cta{background: linear-gradient(135deg, #063f75 0%, #07539a 58%, #0b67b8 100%);}
.cta-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;align-items:center}
.cta h2{font-size:clamp(2rem,3vw,3rem);line-height:1.15;margin-bottom:16px;color:#fff}
.cta p{color:#d6d6d6}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:26px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
/*.page-hero{padding:95px 0;background:linear-gradient(135deg,#202020,#111);color:#fff}
.page-hero h1{font-size:clamp(2.3rem,4vw,4rem);margin-bottom:14px}
.page-hero p{color:#ddd;max-width:760px;font-size:1.08rem}*/
.page-hero{
    position: relative;
    z-index: 2;
    /*max-width: 1180px;*/
    margin: 0 auto;
    /*padding: 74px 24px 70px;*/
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
     margin-top: -42px;
   /* left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
   
    margin-bottom: 46px;*/
    overflow: hidden;
    background: linear-gradient(135deg, #063f75 0%, #07539a 58%, #0b67b8 100%);
    color: #fff;
}
.page-hero:before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
    top: -230px;
    right: -90px;
}
.ofim-hero-accent {
    display: block;
    width: 64px;
    height: 4px;
    margin: 25px auto 0;
    border-radius: 999px;
    background: #f2c230;
}
.ofim-hero-subtitle {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .90);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
    font-weight: 400;
}
.ofim-hero-title{
    margin: 0 auto 16px;
    max-width: 950px;
    color: #fff !important;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
}
.ofim-hero-container{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 24px 70px;
    text-align: center;
}    
.filters{background:#fff;padding:24px;border-radius:18px;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;align-items:end;margin-top:-48px;position:relative;z-index:2}
.content-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:30px}
.detail-hero{border-radius:22px;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.70)),linear-gradient(135deg,#6d6d6d,#222);display:flex;align-items:flex-end;padding:28px;color:#fff;margin-bottom:28px;position:relative}
.detail-hero .badge{top:20px}
.detail-info{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}
.detail-info .card{padding:18px}
.detail-info strong{display:block;font-size:1.15rem}
.detail-info span{color:var(--muted);font-size:.9rem}
.sidebar-card{position:sticky;top:105px}
.sidebar-card h3{margin-bottom:15px}
.sidebar-card .price{display:block;font-size:2rem;margin-bottom:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.notice{background:#fff3f3;border-left:4px solid var(--red);padding:16px 18px;border-radius:12px;margin:18px 0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.step-number{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:#fff;font-weight:900;margin-bottom:14px}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden}
.blog-image{min-height:190px;background:linear-gradient(135deg,#555,#222)}
.blog-body{padding:20px}
.blog-body small{color:var(--red);font-weight:900}
.blog-body h3{margin:8px 0 10px;line-height:1.3}
.blog-body p{color:var(--muted)}
.article-detail ul{margin-left: 20px;margin-bottom:25px}
.article-detail p{margin-bottom:25px}
footer{background:#0d0d0d;color:#ccc;padding:55px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:38px;margin-bottom:35px}
footer h3{color:#fff;margin-bottom:13px}
footer a{display:block;margin:7px 0}
.copyright{border-top:1px solid #282828;padding-top:22px;font-size:.9rem}

/*PAGINATION */
.ofim-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    width: 100%;
}
.ofim-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ofim-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.ofim-pagination a.page-numbers:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}
.ofim-pagination .page-numbers.current {
    background-color: #d71920; /* Rouge charte OFIM */
    color: #ffffff;
    border-color: #d71920;
    cursor: default;
}
.ofim-pagination .page-numbers.prev,
.ofim-pagination .page-numbers.next {
    font-weight: 500;
    padding: 0 16px;
}
@media(max-width:980px){
 /* .nav-links{display:none}*/
  .search-box,.filters{grid-template-columns:1fr 1fr}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .listing-grid,.blog-grid{grid-template-columns:repeat(2,1fr)}
  .why,.cta-inner,.content-grid{grid-template-columns:1fr}
  .sidebar-card{position:static}
  .detail-info{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .hero-content{padding:70px 0 120px}
  .search-box,.filters,.category-grid,.listing-grid,.blog-grid,.footer-grid,.form-grid,.steps,.detail-info{grid-template-columns:1fr}
  section{padding:65px 0}
  .section-head{align-items:flex-start;flex-direction:column}
  .topbar .container{justify-content:center;text-align:center}
  .custom-logo{width:75px}
}

/* Sidebar */
.detail-info-sidebar{
  /*  position: sticky;*/
    top:20px;
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:16px;
    padding:28px;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    margin-bottom:25px;
}

/* Prix */
.detail-info-sidebar .price{
    display:block;
    font-size:2.4rem;
    font-weight:800;
    line-height:1;
    color:#035fac;
    margin-bottom:24px;
    letter-spacing:-1px;
}

/* Tableau infos */
.detail-info-sidebar .property-details{
    margin:0;
    padding:0;
}

.detail-info-sidebar .property-details dt{
    float:left;
    clear:left;
    width:95px;
    font-weight:600;
    color:#666;
    margin:0 0 16px;
}

.detail-info-sidebar .property-details dd{
    margin:0 0 16px 110px;
    color:#222;
    font-weight:500;
}

.detail-info-sidebar .property-details a{
    color:#035fac;
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

.detail-info-sidebar .property-details a:hover{
    color:#08552d;
}

/* Séparateur */
.detail-info-sidebar .property-details::after{
    content:"";
    display:block;
    clear:both;
}

/* Bouton */
.detail-info-sidebar .btn{
    display:block;
    width:100%;
    text-align:center;
    padding:15px 20px;
    margin-top:25px;
    border-radius:10px;
    font-weight:700;
    font-size:15px;
    text-decoration:none;
    transition:.3s;
}

.detail-info-sidebar .btn-primary{
    background:#035fac;
    border:none;
    color:#fff;
}

.detail-info-sidebar .btn-primary:hover{
    background:var(--red);
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(165,15,21,.25);
}

/* Mobile */
@media (max-width:768px){

    .detail-info-sidebar{
        padding:20px;
        border-radius:12px;
    }

    .detail-info-sidebar .price{
        font-size:2rem;
    }

    .detail-info-sidebar .property-details dt,
    .detail-info-sidebar .property-details dd{
        float:none;
        width:auto;
        margin:0;
    }

    .detail-info-sidebar .property-details dt{
        font-size:.85rem;
        color:#777;
        margin-top:12px;
    }

    .detail-info-sidebar .property-details dd{
        margin-bottom:12px;
        font-size:1rem;
    }
}
