/* Version 54 — corrections téléphone uniquement.
   Le design ordinateur et l'identité de la version préférée restent inchangés. */

@media (max-width:800px){
 html{scroll-padding-top:88px;overflow-x:hidden}
 body.farhan-v54{width:100%;max-width:100%;overflow-x:hidden;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:#fcfcf9}
 body.farhan-v54 main,body.farhan-v54 section,body.farhan-v54 footer{max-width:100%;overflow-x:clip}
 body.farhan-v54 .wrap{width:calc(100% - 28px);max-width:none}

 /* Capsule blanche lisible, sans éléments qui se chevauchent. */
 body.farhan-v54 .site-header,
 body.farhan-v54 .site-header.is-scrolled{
  position:fixed;top:calc(6px + env(safe-area-inset-top));left:8px;right:8px;
  width:auto;height:66px;margin:0;padding:7px 7px 7px 11px;gap:7px;
  border:1px solid rgba(69,86,72,.2);border-radius:999px;
  background:linear-gradient(145deg,rgba(255,255,252,.97),rgba(242,247,239,.94));
  color:#173d2b;box-shadow:inset 0 1px 0 #fff,0 12px 34px rgba(15,46,29,.16);
  backdrop-filter:blur(22px) saturate(1.2);-webkit-backdrop-filter:blur(22px) saturate(1.2);
 }
 body.farhan-v54 .site-header>.wordmark{min-width:0;flex:1;gap:7px;color:#173d2b;overflow:hidden}
 body.farhan-v54 .site-header>.wordmark>span{display:flex!important;align-items:baseline;gap:3px;font-size:inherit!important;line-height:1!important;min-width:0}
 body.farhan-v54 .site-header>.wordmark>span::after{content:none!important}
 body.farhan-v54 .site-header .brand-emblem{width:38px;height:38px;flex:0 0 auto}
 body.farhan-v54 .site-header .brand-name b{font-size:clamp(12px,3.7vw,16px);color:#173d2b;white-space:nowrap}
 body.farhan-v54 .site-header .brand-name b:nth-child(2){color:#5f873f}
 body.farhan-v54 .site-header .brand-name small{display:none}
 body.farhan-v54 .site-header>.language-switch,body.farhan-v54 .desktop-search{display:none!important}
 body.farhan-v54 .site-header .header-quote{display:inline-grid;place-items:center;flex:0 0 47px;width:47px;min-width:47px;height:47px;min-height:47px;padding:0;border-radius:50%;margin:0;color:#fff;background:#173d2b}
 body.farhan-v54 .site-header .header-quote span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 body.farhan-v54 .site-header .header-quote .ui-icon{width:20px;height:20px}
 body.farhan-v54 #mobile-menu{display:grid;place-items:center;flex:0 0 47px;width:47px;height:47px;border:1px solid #78867b;border-radius:50%;background:#fff;color:#173d2b;box-shadow:inset 0 1px 0 #fff,0 6px 16px rgba(24,52,33,.12)}

 body.farhan-v54 .site-header nav{
  position:fixed;top:calc(79px + env(safe-area-inset-top));left:8px;right:8px;
  display:none;max-height:calc(100dvh - 92px - env(safe-area-inset-top));overflow:auto;
  padding:16px 16px calc(20px + env(safe-area-inset-bottom));
  border:1px solid rgba(69,86,72,.2);border-radius:24px;
  background:rgba(252,252,249,.985);color:#173d2b;box-shadow:0 25px 65px rgba(12,39,23,.24);
  backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);overscroll-behavior:contain;
 }
 body.farhan-v54 .site-header nav.mobile-open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 body.farhan-v54 .site-header nav>a,body.farhan-v54 .site-header nav>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:10px 3px;border-bottom:1px solid #dfe5dc;color:#173d2b;font-size:16px;text-align:left}
 body.farhan-v54 .mobile-search{display:block;width:100%;height:48px;margin-bottom:10px}
 body.farhan-v54 .mobile-search input{height:48px;background:#f2f5ef;color:#173d2b;border-color:#d5ddd2}
 body.farhan-v54 .mobile-nav-tools{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}
 body.farhan-v54 .mobile-language-switch{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;border:1px solid #cad4c8;border-radius:999px;background:#edf2ea}
 body.farhan-v54 .mobile-language-switch button{height:38px;border-radius:999px;background:transparent}
 body.farhan-v54 .mobile-language-switch button[aria-pressed=true]{background:#173d2b;color:#fff}
 body.farhan-v54 .mobile-appointment-link{display:grid;place-items:center;min-height:48px;border:0!important;border-radius:999px;background:#d0ec9d;color:#173d2b;font-size:14px!important}
 body.farhan-v54 .mega-menu{position:static!important;display:block;margin:10px 0 0;padding:10px;border:1px solid #dce4d9;border-radius:16px;background:#f5f7f2;box-shadow:none}
 body.farhan-v54 .mega-menu[hidden]{display:none}
 body.farhan-v54 .mega-intro{display:none}
 body.farhan-v54 #mega-links{grid-template-columns:1fr 1fr;gap:6px}
 body.farhan-v54 #mega-links button{min-height:48px;padding:8px;border-radius:12px;font-size:10px;line-height:1.25}

 /* Accueil : texte lisible puis scène réellement pleine largeur. */
 body.farhan-v54 .hero{min-height:auto;padding-top:calc(80px + env(safe-area-inset-top))}
 body.farhan-v54 .hero-copy{min-height:0;padding:30px 14px 22px}
 body.farhan-v54 .hero-copy>*{max-width:100%}
 body.farhan-v54 .hero-copy .eyebrow{font-size:9px;line-height:1.45}
 body.farhan-v54 .hero-copy h1{font-size:clamp(43px,13vw,61px);line-height:.9;margin:20px 0 17px;overflow-wrap:normal;word-break:normal}
 body.farhan-v54 .hero-copy>p{display:block!important;max-width:35rem;margin-bottom:0;color:#a9b8ad;font-size:14px;line-height:1.55}
 body.farhan-v54 .hero-copy .hero-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px;width:100%;margin-top:23px}
 body.farhan-v54 .hero-copy .hero-actions .button{width:100%;min-width:0;min-height:48px;padding:11px 8px!important;font-size:12px!important;white-space:normal;text-align:center}
 body.farhan-v54 .hero-specs{display:flex;width:100%;margin-top:27px;overflow-x:auto;scrollbar-width:none}
 body.farhan-v54 .hero-specs::-webkit-scrollbar{display:none}
 body.farhan-v54 .hero-specs span{flex:1 0 112px;min-width:112px}
 body.farhan-v54 .hero-visual.hero-3d{position:relative!important;top:auto!important;right:auto!important;left:auto!important;width:100vw!important;max-width:none!important;height:clamp(470px,66svh,610px)!important;margin:0 0 14px calc(50% - 50vw)!important;border-radius:0!important;border-inline:0!important;overflow:hidden}
 body.farhan-v54 .hero-visual.hero-3d .render-surface{width:100vw!important;height:100%!important;min-height:100%!important}
 body.farhan-v54 .hero-reference-cover>img{width:100%;height:100%;object-fit:cover;object-position:50% center}
 body.farhan-v54 .hero-scene-tools{left:9px;right:9px;top:9px;display:flex;justify-content:flex-start;gap:5px;padding:0;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
 body.farhan-v54 .hero-scene-tools::-webkit-scrollbar{display:none}
 body.farhan-v54 .hero-scene-tools button{flex:0 0 auto;min-height:42px;padding:9px 11px;scroll-snap-align:start}
 body.farhan-v54 .hero-scene-tools button span{display:none}
 body.farhan-v54 .hero-3d-actions{left:9px;right:9px;bottom:36px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
 body.farhan-v54 .hero-3d-actions .button{min-width:0;min-height:45px;padding:10px 7px!important;font-size:11px!important;white-space:normal;text-align:center}
 body.farhan-v54 .hero-3d-hint{left:8px;right:8px;bottom:9px;max-width:none;font-size:9px;white-space:normal;text-align:center}
 body.farhan-v54 .hero-bottom{width:calc(100% - 28px);min-height:56px;height:auto;gap:12px;padding-block:10px;font-size:9px}
 body.farhan-v54 .hero-bottom>a{display:none}
 body.farhan-v54 .hero-bottom>span:last-child{text-align:right}

 /* Toutes les sections restent dans la largeur réelle du téléphone. */
 body.farhan-v54 .section{padding-block:72px}
 body.farhan-v54 h2{font-size:clamp(38px,11vw,54px);line-height:.98;overflow-wrap:break-word}
 body.farhan-v54 .section-top,body.farhan-v54 .story-heading{display:block}
 body.farhan-v54 .section-top>p{max-width:none;margin-top:20px}
 body.farhan-v54 #maison,body.farhan-v54 .about-section,body.farhan-v54 .faq-section,body.farhan-v54 .quote-section{padding-inline:14px}
 body.farhan-v54 .explore-layout{display:flex;flex-direction:column;border-radius:20px}
 body.farhan-v54 .house-map{width:100%;min-height:0;aspect-ratio:1206/895}
 body.farhan-v54 .house-map>img.house-view-image{width:100%;height:100%;object-fit:contain}
 body.farhan-v54 .house-view-switch{top:8px;left:50%;max-width:calc(100% - 16px);transform:translateX(-50%)}
 body.farhan-v54 .house-view-switch button{min-height:38px;padding:7px 10px;font-size:10px}
 body.farhan-v54 .hotspot b{display:none}
 body.farhan-v54 .hotspot>span{width:30px;height:30px}
 body.farhan-v54 .explore-aside{padding:30px 22px}
 body.farhan-v54 .explore-aside h3{font-size:31px}
 body.farhan-v54 .explore-aside .button{width:100%}
 body.farhan-v54 .explore-foot{display:block}
 body.farhan-v54 .explore-foot span{display:block;margin-top:6px}

 body.farhan-v54 .service-grid{grid-template-columns:1fr;gap:12px}
 body.farhan-v54 .service-card,body.farhan-v54 .service-card:nth-child(n){grid-column:1;min-height:420px;padding:20px;border-radius:18px}
 body.farhan-v54 .service-card-media,body.farhan-v54 .service-card:nth-child(1) .service-card-media,body.farhan-v54 .service-card:nth-child(8) .service-card-media{width:calc(100% + 40px);height:200px;margin:-20px -20px 24px}
 body.farhan-v54 .service-card .service-icon,body.farhan-v54 .service-card:nth-child(1) .service-icon,body.farhan-v54 .service-card:nth-child(8) .service-icon{top:174px;left:18px}
 body.farhan-v54 .service-card h3{font-size:25px}
 body.farhan-v54 .service-how-step>span{-webkit-line-clamp:2;font-size:10px}
 body.farhan-v54 .service-callout{min-height:250px;padding:26px}

 body.farhan-v54 .story-layout{display:block}
 body.farhan-v54 .story-visual{position:relative;top:auto;width:100%;margin-bottom:30px;border-radius:18px}
 body.farhan-v54 .story-visual .render-surface{width:100%;min-height:0;aspect-ratio:1206/895}
 body.farhan-v54 .story-indicator{min-width:0;padding:13px 12px;font-size:10px}
 body.farhan-v54 .story-steps article{min-height:145px;padding-left:24px}
 body.farhan-v54 .about-section,body.farhan-v54 .faq-section,body.farhan-v54 .quote-section{display:block}
 body.farhan-v54 .about-facts{margin-top:48px}
 body.farhan-v54 .faq-section>div:first-child{position:static;margin-bottom:30px}
 body.farhan-v54 .faq-section #faq-list{grid-template-columns:1fr}
 body.farhan-v54 .realisations-gallery{grid-template-columns:1fr;grid-auto-rows:auto}
 body.farhan-v54 .realisations-gallery figure,body.farhan-v54 .realisations-gallery .realisation-wide,body.farhan-v54 .realisations-gallery .realisation-tall,body.farhan-v54 .realisations-gallery .realisation-ev-wide{grid-column:1;grid-row:auto;height:360px}
 body.farhan-v54 .reviews-head{display:block}
 body.farhan-v54 .google-rating{width:100%;margin-top:26px;justify-content:flex-start}
 body.farhan-v54 .reviews-glass{grid-template-columns:1fr}
 body.farhan-v54 .quote-section>div:first-child{margin-bottom:34px}
 body.farhan-v54 .quote-section form{width:100%;padding:20px 15px;border-radius:16px}
 body.farhan-v54 .quote-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;overflow:visible}
 body.farhan-v54 .quote-progress span{min-width:0;display:block;font-size:14px}
 body.farhan-v54 .quote-progress small{display:block;font-size:9px}
 body.farhan-v54 .quote-choices,body.farhan-v54 .field-row{grid-template-columns:1fr}
 body.farhan-v54 .quote-actions{display:grid;grid-template-columns:1fr;gap:7px}
 body.farhan-v54 .quote-actions .button{width:100%}
 body.farhan-v54 .appointment-layout{display:block}
 body.farhan-v54 .appointment-copy{position:static;margin-bottom:35px}
 body.farhan-v54 .appointment-card{padding:20px 15px;border-radius:17px}
 body.farhan-v54 .footer-top{grid-template-columns:1fr;gap:36px}
 body.farhan-v54 .footer-bottom{align-items:flex-start;flex-direction:column;gap:10px}

 /* La visite technique remplit l'écran sans bande blanche. */
 body.farhan-v54 #experience{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto}
 body.farhan-v54 .experience-header{position:sticky;z-index:12;top:0;padding:11px 12px;background:#fcfcf9}
 body.farhan-v54 .experience-layout,body.farhan-v54 .experience-visual,body.farhan-v54 #experience-scene{display:block;width:100%!important;max-width:none!important;min-width:0!important}
 body.farhan-v54 .experience-visual .render-surface{width:100%;height:min(54dvh,510px);min-height:370px}
 body.farhan-v54 #experience-scene>canvas,body.farhan-v54 #experience-scene>.photo-real-stage,body.farhan-v54 #experience-scene>.photo-real-stage>.photo-layer{left:0!important;right:0!important;width:100%!important;max-width:none!important}
 body.farhan-v54 .experience-controls{padding:22px 15px calc(105px + env(safe-area-inset-bottom))}
 body.farhan-v54 #house-toolbar{position:relative;top:0;left:0;right:0;width:100%;padding:7px 8px;overflow-x:auto;border-radius:0}
 body.farhan-v54 #house-toolbar button{flex:0 0 auto;min-height:40px;font-size:11px}
 body.farhan-v54 .house-caption{border-radius:0}

 /* Dock téléphone : deux actions égales, jamais superposées. */
 body.farhan-v54 .appointment-fab,body.farhan-v54 .chat-launcher{
  position:fixed;z-index:70;bottom:calc(9px + env(safe-area-inset-bottom));
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:auto;max-width:none;height:54px;min-height:54px;margin:0;padding:10px 11px;
  border:1px solid rgba(255,255,255,.7);border-radius:999px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;
  box-shadow:0 12px 28px rgba(9,31,18,.22)
 }
 body.farhan-v54 .appointment-fab{left:9px;right:calc(50% + 4px);background:#d0ec9d;color:#173d2b}
 body.farhan-v54 .chat-launcher{left:calc(50% + 4px);right:9px;background:#173d2b;color:#fff}
 body.farhan-v54 .appointment-fab>.ui-icon,body.farhan-v54 .chat-launcher .ui-icon{width:17px;height:17px;flex:0 0 auto}
 body.farhan-v54 .chat-panel{left:9px;right:9px;bottom:calc(72px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:calc(100dvh - 94px - env(safe-area-inset-bottom));border-radius:20px}
}

@media (max-width:370px){
 body.farhan-v54 .site-header .brand-emblem{width:35px;height:35px}
 body.farhan-v54 .site-header .brand-name b{font-size:11px}
 body.farhan-v54 .site-header .header-quote,body.farhan-v54 #mobile-menu{flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px}
 body.farhan-v54 .hero-copy .hero-actions,body.farhan-v54 .hero-3d-actions{grid-template-columns:1fr}
 body.farhan-v54 .hero-visual.hero-3d{height:580px!important}
 body.farhan-v54 .appointment-fab,body.farhan-v54 .chat-launcher{font-size:10px;padding-inline:7px}
}

@media (prefers-reduced-motion:reduce){
 body.farhan-v54 *{scroll-behavior:auto!important}
}
