/* MobiTrack V368 — couche de design chargée en dernier.
   1. Typographie Archivo (le logo garde sa police d'origine)
   2. Recherche d'accueil
   3. Accueil compact sur mobile
   4. Fiche annonce : repères de prix + barre de contact mobile
   5. Transition douce entre pages */

:root{
  --font-body:'Archivo','Segoe UI','Helvetica Neue',Arial,sans-serif;
  --font-head:'Archivo','Segoe UI','Helvetica Neue',Arial,sans-serif;
  --font-mono:'Archivo','Segoe UI','Helvetica Neue',Arial,sans-serif;
  --mt-logo-font:'Segoe UI','Segoe UI Bold','Helvetica Neue',Arial,sans-serif;
  --mt-ink:#0a2540;
  --mt-text:#40566e;
  --mt-soft:#5b6f86;
  --mt-blue:#2b4ec2;
  --mt-blue-deep:#1f3ea3;
  --mt-violet:#6063d6;
  --mt-wash:#f4f7fb;
  --mt-line:#dde5ef;
  --mt-ease:cubic-bezier(.2,.7,.25,1);
}

/* ── 1. Typographie ─────────────────────────────────────────── */
body{font-family:var(--font-body);font-optical-sizing:auto;}
/* Titres larges et bas, comme la silhouette d'un mobil-home. */
h1{font-stretch:114%!important;}
h2,.hm-title{font-stretch:108%!important;}
h3{font-stretch:103%;}
/* Chiffres alignés pour les prix et les compteurs. */
[class*="price"],[class*="prix"],[class*="Price"],[class*="Prix"],#detailPrice,[class*="count"],[class*="stat"]{font-variant-numeric:tabular-nums lining-nums!important;}
/* Le logo ne change pas : il garde sa police d'origine. */
body>nav .logo,body>nav .logo span,.footer-logo-text,.footer-logo-text span,.dc89-brand,.dc89-brand span,.mt-wordmark,.mt-wordmark span{font-family:var(--mt-logo-font)!important;font-stretch:100%!important;}

/* ── 2. Recherche d'accueil ─────────────────────────────────── */
#page-home #homeSearch{position:relative;margin:0!important;padding:34px var(--site-content-gutter,20px) 22px;}
.hs368-inner{max-width:var(--site-content-width,1190px);margin:0 auto;}
.hs368 h1{margin:0;font:800 clamp(34px,5vw,66px)/1.02 var(--font-head);font-stretch:118%!important;letter-spacing:-.028em;color:var(--mt-ink);text-wrap:balance;}
.hs368-lead{margin:14px 0 0;max-width:56ch;font:400 17px/1.55 var(--font-body);color:var(--mt-text);}
.hs368-console{margin:24px 0 0;padding:14px;background:#fff;border:1px solid var(--mt-line);border-radius:14px;box-shadow:0 1px 0 rgba(10,37,64,.04),0 22px 44px -30px rgba(10,37,64,.45);}
.hs368-top{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;}
.hs368-seg{display:inline-flex;gap:2px;padding:4px;margin:0;border:1px solid var(--mt-line);border-radius:11px;background:var(--mt-wash);}
.hs368-seg legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.hs368-seg label{position:relative;display:block;cursor:pointer;}
.hs368-seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.hs368-seg span{display:block;padding:9px 16px;border-radius:8px;font:600 14px/1.2 var(--font-body);color:var(--mt-soft);transition:background .15s,color .15s;}
.hs368-seg input:checked+span{background:var(--mt-ink);color:#fff;}
.hs368-seg input:focus-visible+span{outline:3px solid #84afea;outline-offset:2px;}
.hs368-live{display:flex;align-items:center;gap:9px;margin:0;font:500 14px/1.4 var(--font-body);color:var(--mt-soft);}
.hs368-live[hidden]{display:none;}
.hs368-live::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--mt-blue);box-shadow:0 0 0 3px #2b4ec21f;}
.hs368-fields{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr)) auto;gap:10px;margin-top:12px;}
.hs368-field{position:relative;display:flex;flex-direction:column;gap:5px;min-width:0;padding:11px 14px 9px;border:1px solid var(--mt-line);border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s;}
.hs368-field:hover{border-color:#c3d0e1;}
.hs368-field:focus-within{border-color:var(--mt-blue);box-shadow:0 0 0 3px #2b4ec21f;}
.hs368-field>span{font:600 12.5px/1.2 var(--font-body);color:var(--mt-soft);}
.hs368-field select{width:100%;margin:0;padding:0 26px 1px 0;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center/18px;font:600 16px/1.35 var(--font-body);color:var(--mt-ink);-webkit-appearance:none;appearance:none;outline:none;cursor:pointer;text-overflow:ellipsis;}
.hs368-go{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 28px;border:0;border-radius:10px;background:var(--mt-blue);color:#fff;font:700 16px/1 var(--font-body);cursor:pointer;transition:background .15s;}
.hs368-go:hover{background:var(--mt-blue-deep);}
.hs368-go svg{width:19px;height:19px;flex:none;}
.hs368-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.hs368-quick button{height:36px;padding:0 15px;border:1px solid var(--mt-line);border-radius:999px;background:#fff;color:var(--mt-ink);font:550 14px/1 var(--font-body);white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s,background .15s;}
.hs368-quick button:hover{border-color:var(--mt-blue);color:var(--mt-blue);background:#f5f8ff;}
.hs368 :is(button,select):focus-visible{outline:3px solid #84afea;outline-offset:2px;}
#page-recherche #anResults{scroll-margin-top:84px;}

@media(max-width:900px){
  .hs368-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hs368-fields>.hs368-field:first-child{grid-column:1/-1;}
  .hs368-go{grid-column:1/-1;min-height:54px;}
}
@media(max-width:560px){
  #page-home #homeSearch{padding:22px 16px 16px;}
  .hs368 h1{font-size:clamp(31px,9vw,38px);line-height:1.04;}
  .hs368-lead{margin-top:10px;font-size:15.5px;}
  .hs368-console{display:flex;flex-direction:column;margin-top:18px;padding:12px;border-radius:12px;}
  .hs368-top{display:contents;}
  .hs368-live{order:5;margin-top:12px;font-size:13px;}
  .hs368-seg{display:flex;width:100%;}
  .hs368-seg label{flex:1;}
  .hs368-seg span{text-align:center;padding:10px 8px;}
  .hs368-field{padding:10px 12px 8px;}
  .hs368-quick{flex-wrap:nowrap;overflow-x:auto;margin:12px -12px 0;padding:0 12px 2px;scrollbar-width:none;}
  .hs368-quick::-webkit-scrollbar{display:none;}
}

/* ── 3. Accueil compact sur mobile ──────────────────────────── */
@media(max-width:560px){
  #page-home #homeMosaic .hm-row1>.hm-tile.hm-card--annonces{min-height:214px;padding:22px 20px;}
  #page-home #homeMosaic .hm-card--annonces .hm-title{font-size:34px;}
  #page-home #homeMosaic .hm-row1>.hm-card--sell{min-height:168px;padding:22px 20px 18px;}
  #page-home #homeMosaic .hm-card--sell .hm-title{font-size:26px;}
  #page-home #homeMosaic .hm-card--sell .hm-action{margin-top:16px;}
  #page-home #homeMosaic .hm-row2{grid-template-columns:repeat(2,minmax(0,1fr));}
  #page-home #homeMosaic .hm-row2>.hm-tile{min-height:136px;padding:16px 14px;justify-content:flex-end;}
  #page-home #homeMosaic .hm-row2 .hm-copy{grid-template-rows:auto;}
  #page-home #homeMosaic .hm-row2 .hm-title{font-size:19px;line-height:1.12;}
  #page-home #homeMosaic .hm-row2 .hm-title br.hm-title-break{display:inline;}
  #page-home #homeMosaic .hm-row2 .hm-sub,#page-home #homeMosaic .hm-row2 .hm-action{display:none!important;}
  #page-home #homeVision .hv-pillars{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:80%;gap:12px!important;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:2px 2px 12px;scrollbar-width:none;}
  #page-home #homeVision .hv-pillars::-webkit-scrollbar{display:none;}
  #page-home #homeVision .hv-pillar{scroll-snap-align:start;min-width:0;}
}

/* Phone: compact data entry with two clear destinations. */
#page-home #homeAnalyses .ha-mobile{display:none;}
@media(max-width:680px){
  #page-home #homeAnalyses .ha-entry{display:none!important;}
  #page-home #homeAnalyses .ha-mobile{display:block;padding:26px 22px 22px;border:1px solid #294e68;border-radius:6px;background:#13344e;color:#fff;}
  #page-home #homeAnalyses .ha-mobile-label{display:block;font:650 10px/1.5 var(--font-body);letter-spacing:1.35px;color:#b6cede;}
  #page-home #homeAnalyses .ha-mobile h2{margin:18px 0 14px;font:750 30px/1.12 var(--font-head);letter-spacing:-.8px;color:#fff;}
  #page-home #homeAnalyses .ha-mobile h2 em{font-style:normal;color:#aac8ff;}
  #page-home #homeAnalyses .ha-mobile p{margin:0;font:400 14px/1.65 var(--font-body);color:#d0dfe9;max-width:32ch;}
  #page-home #homeAnalyses .ha-mobile-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;margin-top:24px;}
  #page-home #homeAnalyses .ha-mobile-actions a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:12px 11px;border:1px solid #69859a;border-radius:6px;text-decoration:none;color:#fff;font:650 12px/1.25 var(--font-body);}
  #page-home #homeAnalyses .ha-mobile-actions a:last-child{background:#fff;color:#15364c;border-color:#fff;}
  #page-home #homeAnalyses .ha-mobile-actions a:focus-visible{outline:3px solid #9ac6ff;outline-offset:3px;}
  #page-home #homeAnalyses .ha-mobile{position:relative;isolation:isolate;overflow:hidden;}
  #page-home #homeAnalyses .ha-mobile-curve{position:absolute;z-index:-1;right:-62px;top:40px;width:330px;height:165px;opacity:.55;pointer-events:none;mask-image:linear-gradient(to right,transparent 12%,#000 78%);}
  #page-home #homeAnalyses .ha-mobile-actions a{background:#13344e;}
  #page-home #homeAnalyses .ha-mobile-actions a:last-child{background:#fff;}
}

/* Phone: every explanation stays in the normal vertical reading flow. */
@media(max-width:680px){
  /* The section already supplies the shared 24px spacing to both rules. */
  #page-home #homeExplore #homeJourney{padding-block:0!important;border-block-width:0;}
  #page-home #homeExplore #homeJourney{grid-template-columns:minmax(0,1fr);gap:0;padding-inline:0!important;text-align:center;}
  #page-home #homeJourney .journey-entry-copy{display:contents;}
  #page-home #homeJourney .journey-entry-kicker{order:0;color:#66748a;font-size:10px;letter-spacing:1.2px;}
  #page-home #homeJourney #homeJourneyTitle{order:1;margin:10px 0 12px;font-size:27px;line-height:1.15;letter-spacing:-.6px;}
  #page-home #homeJourney .journey-entry-description{order:2;margin:0 auto 20px;max-width:32ch;font-size:13px;line-height:1.6;color:#52677b;}
  #page-home #homeJourney .journey-preview{order:3;display:grid;grid-template-columns:1fr;gap:8px;width:100%;max-width:none;justify-self:stretch;}
  #page-home #homeJourney .journey-preview-stop{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:14px;min-height:72px;padding:5px 14px 5px 8px;border-radius:8px;background:#edf3f8;}
  #page-home #homeJourney .journey-scene{width:84px;height:62px;max-width:none;margin:0;scale:1;}
  #page-home #homeJourney .journey-scene-image{width:84px;height:72px;top:-5px;}
  #page-home #homeJourney .journey-next{display:none;}
  #page-home #homeJourney .journey-preview-panel{margin:0;align-items:flex-start;gap:3px;text-align:left;}
  #page-home #homeJourney .journey-preview-panel strong{font-size:15px;color:#17384f;}
  #page-home #homeJourney .journey-preview-panel span{font-size:12px;line-height:1.4;color:#52677b;}
  #page-home #homeJourney .journey-entry-actions{order:4;margin-top:18px;}
  #page-home #homeJourney #openJourney{width:100%;min-height:48px;justify-content:space-between;}
  #page-home #homeVision h2{font-size:22px!important;line-height:1.15!important;letter-spacing:-.5px!important;}
  #page-home #homeVision>div>div:first-child>div span{font-size:13px!important;}
  #page-home #homeVision .hv-pillars{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row;grid-auto-columns:auto;gap:20px 14px!important;overflow:visible;scroll-snap-type:none;margin-top:20px;padding:0;text-align:center;}
  #page-home #homeVision .hv-pillar{display:block;min-width:0;}
  #page-home #homeVision .hv-ico{width:28px;height:28px;margin:0 auto 7px;}
  #page-home #homeVision .hv-ico svg{width:17px;height:17px;}
  #page-home #homeVision .hv-ptitle{margin:0;font-size:15px;line-height:1.3;letter-spacing:-.25px;}
  #page-home #homeVision .hv-ptext{margin:6px auto 0;max-width:20ch;font-size:13px;line-height:1.5;color:#52677b;text-wrap:pretty;}
}

/* ── 4a. Repères de prix (fiche annonce) ────────────────────── */
.pb368{margin-top:14px;padding:18px 20px 16px;background:#fff;border:1px solid var(--mt-line);border-radius:12px;color:var(--mt-text);}
.pb368 h3{margin:0;font:700 16px/1.3 var(--font-head);color:var(--mt-ink);letter-spacing:-.01em;}
.pb368-lead{margin:6px 0 0;font:400 14px/1.5 var(--font-body);}
.pb368-scale{position:relative;margin:12px 0 0;padding-top:30px;}
.pb368-track{position:relative;height:8px;border-radius:999px;background:#e9eef6;}
.pb368-iqr{position:absolute;top:0;bottom:0;border-radius:999px;background:#bccaf2;}
.pb368-med{position:absolute;top:-4px;width:2px;height:16px;margin-left:-1px;border-radius:2px;background:var(--mt-blue);}
.pb368-this{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--mt-violet);box-shadow:0 0 0 3px #fff,0 1px 4px rgba(10,37,64,.35);}
.pb368-tag{position:absolute;top:0;transform:translateX(-50%);padding:2px 7px;border-radius:5px;background:var(--mt-violet);color:#fff;font:650 11.5px/1.35 var(--font-body);white-space:nowrap;}
.pb368-tag.is-left{transform:none;}
.pb368-tag.is-right{transform:translateX(-100%);}
.pb368-ends{display:flex;justify-content:space-between;margin-top:8px;font:500 12px/1 var(--font-body);color:var(--mt-soft);font-variant-numeric:tabular-nums;}
.pb368-figures{margin:14px 0 0;}
.pb368-figures div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #edf1f6;}
.pb368-figures dt{min-width:0;font:500 13px/1.3 var(--font-body);color:var(--mt-soft);}
.pb368-figures dd{margin:0;font:750 16px/1.25 var(--font-head);color:var(--mt-ink);white-space:nowrap;font-variant-numeric:tabular-nums;}
.pb368-link{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:0;border:0;background:none;color:var(--mt-blue);font:650 14px/1.4 var(--font-body);cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;}
.pb368-link:hover{color:var(--mt-blue-deep);}
.pb368-link:focus-visible{outline:3px solid #84afea;outline-offset:3px;border-radius:3px;}
.pb368-note{margin:12px 0 0;font:400 12px/1.5 var(--font-body);color:#71839a;}

/* ── 4b. Barre de contact mobile (fiche annonce) ────────────── */
.cb368{position:fixed;left:0;right:0;bottom:0;z-index:900;display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.96);border-top:1px solid var(--mt-line);box-shadow:0 -10px 28px -16px rgba(10,37,64,.4);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);transform:translateY(115%);visibility:hidden;transition:transform .24s var(--mt-ease),visibility 0s linear .24s;}
.cb368.is-on{transform:none;visibility:visible;transition:transform .24s var(--mt-ease),visibility 0s;}
.cb368-price{flex:1;min-width:0;}
.cb368-price span{display:block;font:500 11.5px/1.2 var(--font-body);color:var(--mt-soft);}
.cb368-price strong{display:block;margin-top:2px;overflow:hidden;font:800 19px/1.15 var(--font-head);color:var(--mt-ink);white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;}
.cb368-call,.cb368-msg{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:46px;padding:0 15px;border-radius:10px;font:650 15px/1 var(--font-body);white-space:nowrap;cursor:pointer;}
.cb368-call{border:1.5px solid #c8d5e7;background:#fff;color:var(--mt-ink);text-decoration:none;}
.cb368-msg{border:0;background:var(--mt-blue);color:#fff;}
.cb368-call svg,.cb368-msg svg{width:18px;height:18px;flex:none;}
.cb368 [hidden]{display:none!important;}
.cb368 :is(a,button):focus-visible{outline:3px solid #84afea;outline-offset:2px;}
body>.cb368{position:fixed!important;z-index:900!important;}
body.cb368-room #page-annonce{padding-bottom:84px;}
@media(min-width:861px){.cb368{display:none!important;}body.cb368-room #page-annonce{padding-bottom:0;}}

/* ── Accessibilité : mouvement réduit ──────────────────────── */
@media(prefers-reduced-motion:reduce){
  .cb368,.cb368.is-on{transition:none;}
  .hs368-seg span,.hs368-quick button,.hs368-field{transition:none;}
}

#page-annonce .pb368.pb368-compare{display:block;width:100%;margin:14px 0 0;padding:10px 0;border:0;border-top:1px solid var(--mt-line,#dce5ee);border-radius:0;background:none;box-shadow:none;text-align:left;color:var(--ui-blue,#315ed2);font:600 14px/1.5 var(--font-body);cursor:pointer}
