/* ============================================================
   Fiche bien Orpi Mandelieu — refonte 2026
   CSS scopé sous .fiche-orpi (n'affecte QUE la fiche détail bien)
   Basé sur la maquette client. Police Orpi et taille de base (15px) héritées du site.
   ============================================================ */

/* Police Orpi : fournie par le site (css/style.css). Pas de @font-face ici. */

/* --- Base wrapper (remplace le body de la maquette) --- */
.fiche-orpi {
  font-family: 'Orpi', sans-serif; font-weight: 400;
  background: #F5F4F0; color: #595959;
  padding: 20px 0;
}
.fiche-orpi *, .fiche-orpi *::before, .fiche-orpi *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
/* Police Orpi forcée sur tout le contenu de la fiche uniquement */
.fiche-orpi, .fiche-orpi h1, .fiche-orpi h2, .fiche-orpi h3, .fiche-orpi h4,
.fiche-orpi h5, .fiche-orpi h6, .fiche-orpi p, .fiche-orpi div, .fiche-orpi span,
.fiche-orpi a, .fiche-orpi button, .fiche-orpi input, .fiche-orpi textarea, .fiche-orpi select {
  font-family: 'Orpi', sans-serif;
}
.fiche-orpi a { text-decoration: none; color: inherit; }

/* Conteneur de largeur max */
.fo-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Cartes --- */
.fiche-orpi .fb-card { background: #FFFFFF; border-radius: 16px; }
.fiche-orpi .fb-red { color: #E30513; }
.fiche-orpi .fb-darkgrey { color: #595959; }
.fiche-orpi .bg-fb-pink { background: #FFEBDF; }
.fiche-orpi .bg-fb-lightgrey { background: #FAFAFA; }

/* --- Boutons liens galerie --- */
.fiche-orpi .btn-link { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s; }
.fiche-orpi a.btn-link:hover { background: #FFFFFF !important; border-color: #E30513 !important; }
.fiche-orpi a.btn-link:hover svg { stroke: #E30513 !important; }

/* --- Galerie Airbnb --- */
.fiche-orpi .galerie-img { display: block; cursor: pointer; transition: transform 0.4s ease; }
.fiche-orpi .galerie-cell { overflow: hidden; }
.fiche-orpi .fo-gallery-mob { display: none; }
.fiche-orpi .galerie-cell:hover .galerie-img { transform: scale(1.04); }

/* --- Titres de section --- */
.fiche-orpi .section-title { font-size: 20px; font-weight: 700; color: #595959; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.fiche-orpi .section-title svg { flex-shrink: 0; }
.fiche-orpi .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.fiche-orpi .section-header .section-title { margin-bottom: 0; }
.fiche-orpi .section-link { font-size: 15px; color: #E30513; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* ============ LIGHTBOX ============ */
.fiche-orpi .lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; animation: foFadeIn 0.2s ease; }
.fiche-orpi .lightbox-overlay.active { display: flex; }
@keyframes foFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fiche-orpi .lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.fiche-orpi .lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 27px; transition: background 0.2s; }
.fiche-orpi .lightbox-close:hover { background: rgba(255,255,255,0.3); }
.fiche-orpi .lightbox-prev, .fiche-orpi .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 36px; transition: background 0.2s; }
.fiche-orpi .lightbox-prev:hover, .fiche-orpi .lightbox-next:hover { background: #E30513; }
.fiche-orpi .lightbox-prev { left: 20px; }
.fiche-orpi .lightbox-next { right: 20px; }
.fiche-orpi .lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 16px; background: rgba(0,0,0,0.6); padding: 8px 16px; border-radius: 20px; }

/* ============ TOAST ============ */
.fiche-orpi .toast { position: fixed; top: 24px; right: 24px; z-index: 10000; background: #1a1a1a; color: #FFFFFF; padding: 14px 20px; border-radius: 10px; font-family: 'Orpi', sans-serif; font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; transform: translateX(400px); opacity: 0; transition: all 0.3s ease; border-left: 4px solid #E30513; max-width: 360px; }
.fiche-orpi .toast.show { transform: translateX(0); opacity: 1; }
.fiche-orpi .toast .toast-icon { color: #E30513; flex-shrink: 0; }

/* ============ MODAL VISITE VIRTUELLE ============ */
.fiche-orpi .modal-vv { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9998; display: none; align-items: center; justify-content: center; padding: 20px; }
.fiche-orpi .modal-vv.active { display: flex; }
.fiche-orpi .modal-vv-content { background: #FFFFFF; border-radius: 16px; padding: 32px; max-width: 640px; width: 100%; text-align: center; position: relative; }
/* Variante grande pour la visite virtuelle / vidéo (iframe) */
.fiche-orpi .modal-vv-content.modal-media { max-width: 1200px; width: 94vw; padding: 14px; }
.fiche-orpi .modal-vv-content.modal-media iframe { aspect-ratio: 16/9; max-height: 82vh; }
.fiche-orpi .modal-vv-content h3 { font-size: 23px; color: #595959; margin-bottom: 12px; font-weight: 700; }
.fiche-orpi .modal-vv-content p { font-size: 16px; color: #888780; line-height: 1.6; margin-bottom: 20px; }
.fiche-orpi .modal-vv-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.fiche-orpi .modal-vv-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: #FAFAFA; border: none; cursor: pointer; font-size: 20px; z-index: 2; }

/* ============ BLOC 2 : DESCRIPTION ============ */
.fiche-orpi .desc-content p { font-size: 16px; line-height: 1.75; color: #595959; font-weight: 400; margin-bottom: 14px; }
.fiche-orpi .desc-content p:last-child { margin-bottom: 0; }
.fiche-orpi .desc-collapsed { max-height: 200px; overflow: hidden; position: relative; transition: max-height 0.4s ease; }
.fiche-orpi .desc-collapsed.expanded { max-height: 4000px; }
.fiche-orpi .desc-collapsed:not(.expanded)::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, #FFFFFF); pointer-events: none; }
.fiche-orpi .desc-toggle { background: none; border: 1.5px solid #E30513; color: #E30513; padding: 9px 20px; border-radius: 24px; font-family: 'Orpi', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 14px; transition: all 0.2s; }
.fiche-orpi .desc-toggle:hover { background: #E30513; color: #FFFFFF; }

/* ============ SIMULATEUR ============ */
.fiche-orpi .simu-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.fiche-orpi .simu-form { display: flex; flex-direction: column; gap: 18px; }
.fiche-orpi .simu-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; color: #888780; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.fiche-orpi .simu-field label .value { font-size: 17px; color: #E30513; font-weight: 700; text-transform: none; letter-spacing: 0; }
.fiche-orpi .simu-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: linear-gradient(to right, #E30513 var(--progress), #ECEAE6 var(--progress)); border-radius: 3px; outline: none; }
.fiche-orpi .simu-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 3px solid #E30513; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.fiche-orpi .simu-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 3px solid #E30513; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.fiche-orpi .simu-bounds { display: flex; justify-content: space-between; font-size: 12px; color: #888780; margin-top: 6px; }
.fiche-orpi .simu-result { background: linear-gradient(135deg, #FFEBDF 0%, #FFF5EE 100%); border-radius: 16px; padding: 24px; text-align: center; position: sticky; top: 20px; }
.fiche-orpi .simu-result-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(227,5,19,0.12); }
/* Logo en JPG (fond blanc) : multiply fait disparaître le blanc sur le dégradé rosé */
.fiche-orpi .simu-result-logo img { height: 50px; width: auto; display: block; mix-blend-mode: multiply; }
/* Logo AB en PNG transparent : pas de multiply, sinon le vert se teinte */
.fiche-orpi .simu-result-logo img[src*="logo-ab-financement"] { mix-blend-mode: normal; }
.fiche-orpi .simu-result-label { font-size: 14px; color: #888780; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.fiche-orpi .simu-result-value { font-size: 43px; font-weight: 700; color: #E30513; line-height: 1; margin-bottom: 4px; }
.fiche-orpi .simu-result-unit { font-size: 15px; color: #888780; }
.fiche-orpi .simu-result-detail { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(227,5,19,0.3); text-align: left; }
.fiche-orpi .simu-detail-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: #595959; }
.fiche-orpi .simu-detail-row strong { color: #595959; font-weight: 700; }
.fiche-orpi .simu-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: #E30513; color: #FFFFFF; padding: 14px; border-radius: 24px; border: none; cursor: pointer; font-family: 'Orpi', sans-serif; font-size: 16px; font-weight: 500; margin-top: 16px; width: 100%; transition: background 0.2s; }
.fiche-orpi .simu-cta:hover { background: #A32135; }
.fiche-orpi .simu-cta svg { stroke: #FFFFFF; }
.fiche-orpi .simu-mention { font-size: 11px; color: #888780; margin-top: 10px; line-height: 1.5; text-align: left; }

/* ============ LOCALISATION ============ */
.fiche-orpi .loc-content { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: stretch; }
/* min-width:0 : sans lui, aspect-ratio 16/10 combine a min-height 300px fait
   deduire une largeur de 480px qui gonfle la colonne de grille et fait
   deborder toute la page sur mobile. */
.fiche-orpi .loc-map-wrap { border-radius: 12px; overflow: hidden; background: #ECEAE6; aspect-ratio: 16/10; min-height: 300px; min-width: 0; position: relative; }
.fiche-orpi .loc-map-iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.fiche-orpi .loc-map-google, .fiche-orpi #map { width: 100%; height: 100%; }
.fiche-orpi .loc-map-overlay { position: absolute; bottom: 12px; left: 12px; z-index: 5; pointer-events: none; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 20px; font-size: 12px; color: #595959; display: flex; align-items: center; gap: 6px; }
.fiche-orpi .loc-map-overlay svg { stroke: #E30513; }
.fiche-orpi .loc-info { background: #FAFAFA; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.fiche-orpi .loc-info-block { display: flex; gap: 12px; align-items: flex-start; }
.fiche-orpi .loc-info-icon { width: 32px; height: 32px; border-radius: 50%; background: #FFEBDF; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fiche-orpi .loc-info-icon svg { stroke: #E30513; }
.fiche-orpi .loc-info-text strong { font-size: 15px; color: #595959; font-weight: 700; display: block; margin-bottom: 2px; }
.fiche-orpi .loc-info-text span { font-size: 14px; color: #888780; line-height: 1.4; }

/* ============ BIENS SIMILAIRES ============ */
.fiche-orpi .bs-wrap { position: relative; }
.fiche-orpi .bs-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-top: 12px; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: #E30513 #ECEAE6; }
.fiche-orpi .bs-track::-webkit-scrollbar { height: 8px; }
.fiche-orpi .bs-track::-webkit-scrollbar-track { background: #ECEAE6; border-radius: 4px; }
.fiche-orpi .bs-track::-webkit-scrollbar-thumb { background: #E30513; border-radius: 4px; }
.fiche-orpi .bs-card { scroll-snap-align: start; background: #FFFFFF; border-radius: 12px; border: 1px solid #ECEAE6; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.fiche-orpi .bs-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #E30513; }
.fiche-orpi .bs-photo { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.fiche-orpi .bs-badge { position: absolute; top: 10px; left: 10px; background: #E30513; color: #FFFFFF; font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 14px; }
.fiche-orpi .bs-fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #595959; transition: color 0.2s; }
.fiche-orpi .bs-fav.active { color: #E30513; }
.fiche-orpi .bs-fav.active svg { fill: #E30513; }
.fiche-orpi .bs-content { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fiche-orpi .bs-prix { font-size: 20px; font-weight: 700; color: #E30513; }
.fiche-orpi .bs-titre { font-size: 15px; font-weight: 500; color: #595959; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 8px; min-height: 36px; }
.fiche-orpi .bs-meta { font-size: 14px; color: #595959; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.fiche-orpi .bs-meta-sep { color: #ECEAE6; }
.fiche-orpi .bs-ville { font-size: 12px; color: #888780; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.fiche-orpi .bs-nav { position: absolute; top: 102px; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; border: 1px solid #ECEAE6; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.2s; }
.fiche-orpi .bs-nav:hover { background: #E30513; border-color: #E30513; }
.fiche-orpi .bs-nav:hover svg { stroke: #FFFFFF; }
.fiche-orpi .bs-nav svg { stroke: #595959; transition: stroke 0.2s; }
.fiche-orpi .bs-nav-prev { left: -20px; }
.fiche-orpi .bs-nav-next { right: -20px; }

/* ============ INSTAGRAM ============ */
.fiche-orpi .ig-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fiche-orpi .ig-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); padding: 2px; flex-shrink: 0; }
.fiche-orpi .ig-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #E30513; }
.fiche-orpi .ig-handle { font-size: 16px; font-weight: 700; color: #595959; display: flex; align-items: center; gap: 6px; }
.fiche-orpi .ig-handle svg { width: 14px; height: 14px; }
.fiche-orpi .ig-sub { font-size: 14px; color: #888780; }
.fiche-orpi .ig-follow { margin-left: auto; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); color: #FFFFFF; padding: 8px 18px; border-radius: 20px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.fiche-orpi .ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.fiche-orpi .ig-tile { aspect-ratio: 1/1; position: relative; overflow: hidden; display: block; }
.fiche-orpi .ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fiche-orpi .ig-tile:hover img { transform: scale(1.08); }
.fiche-orpi .ig-type-icon { position: absolute; top: 8px; right: 8px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.fiche-orpi .ig-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.fiche-orpi .ig-tile:hover .ig-overlay { opacity: 1; }
.fiche-orpi .ig-stats { display: flex; gap: 16px; color: #FFFFFF; font-weight: 700; font-size: 16px; }
.fiche-orpi .ig-stats span { display: flex; align-items: center; gap: 5px; }
.fiche-orpi .ig-cta { display: flex; justify-content: center; margin-top: 18px; }
.fiche-orpi .ig-cta-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888); color: #FFFFFF; padding: 10px 24px; border-radius: 24px; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* ============ BLOC 4 : ENCARTS CTA ============ */
.fiche-orpi .bloc4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fiche-orpi .esti-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 320px; background: #FFFFFF; border: 3px solid #E30513; display: flex; flex-direction: column; padding: 32px; color: #595959; transition: box-shadow 0.3s, transform 0.3s; }
.fiche-orpi .esti-card:hover { box-shadow: 0 12px 32px rgba(227, 5, 19, 0.18); transform: translateY(-3px); }
.fiche-orpi .esti-icon-bg { position: absolute; top: -50px; left: -50px; width: 220px; height: 220px; border-radius: 50%; background: rgba(227, 5, 19, 0.05); z-index: 1; }
.fiche-orpi .esti-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.fiche-orpi .esti-icon { width: 64px; height: 64px; border-radius: 18px; background: #E30513; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(227, 5, 19, 0.3); }
.fiche-orpi .esti-icon svg { stroke: #FFFFFF; }
.fiche-orpi .esti-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(227, 5, 19, 0.1); color: #E30513; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 16px; align-self: flex-start; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.fiche-orpi .esti-title { font-size: 29px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.5px; color: #1a1a1a; }
.fiche-orpi .esti-title strong { color: #E30513; }
.fiche-orpi .esti-sub { font-size: 15px; color: #888780; line-height: 1.6; font-weight: 400; margin-bottom: 22px; }
.fiche-orpi .esti-features { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.fiche-orpi .esti-feature { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #595959; font-weight: 500; }
.fiche-orpi .esti-feature svg { color: #E30513; flex-shrink: 0; }
.fiche-orpi .esti-cta { display: inline-flex; align-items: center; gap: 8px; background: #E30513; color: #FFFFFF; padding: 14px 26px; border-radius: 28px; font-family: 'Orpi', sans-serif; font-size: 16px; font-weight: 500; align-self: flex-start; transition: transform 0.2s, background 0.2s; margin-top: auto; }
.fiche-orpi .esti-cta:hover { background: #C00016; transform: translateX(4px); }
.fiche-orpi .alerte-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 320px; background: linear-gradient(135deg, #FFEBDF 0%, #FFF5EE 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 32px; color: #595959; }
.fiche-orpi .alerte-icon-bg { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(227, 5, 19, 0.06); z-index: 1; }
.fiche-orpi .alerte-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.fiche-orpi .alerte-icon { width: 56px; height: 56px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 4px 16px rgba(227, 5, 19, 0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.fiche-orpi .alerte-icon svg { stroke: #E30513; }
.fiche-orpi .alerte-title { font-size: 27px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.5px; color: #1a1a1a; }
.fiche-orpi .alerte-title strong { color: #E30513; }
.fiche-orpi .alerte-sub { font-size: 15px; color: #888780; line-height: 1.6; font-weight: 400; margin-bottom: 22px; }
.fiche-orpi .alerte-bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.fiche-orpi .alerte-bullet { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #595959; }
.fiche-orpi .alerte-bullet-icon { width: 18px; height: 18px; border-radius: 50%; background: #E30513; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fiche-orpi .alerte-bullet-icon svg { stroke: #FFFFFF; }
.fiche-orpi .alerte-cta { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 2px solid #E30513; color: #E30513; padding: 13px 24px; border-radius: 28px; font-family: 'Orpi', sans-serif; font-size: 16px; font-weight: 500; align-self: flex-start; transition: all 0.2s; margin-top: auto; }
.fiche-orpi .alerte-cta:hover { background: #E30513; color: #FFFFFF; transform: translateX(4px); }

/* ============ FORMULAIRE CONTACT (inline) ============ */
.fiche-orpi .fo-form-field { background: #FAFAFA; border: 0.5px solid #ECEAE6; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #595959; width: 100%; font-family: 'Orpi', sans-serif; outline: none; }
.fiche-orpi .fo-form-field::placeholder { color: #888780; }
.fiche-orpi .fo-form-field:focus { border-color: #E30513; }
.fiche-orpi textarea.fo-form-field { min-height: 64px; resize: vertical; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .fiche-orpi .simu-grid { grid-template-columns: 1fr; }
  .fiche-orpi .loc-content { grid-template-columns: 1fr; }
  /* La carte : en une seule colonne, aspect-ratio 16/10 et min-height 300px
     entrent en conflit, le navigateur en deduit une largeur de 480px qui
     faisait deborder toute la page. On fixe simplement la hauteur. */
  .fiche-orpi .loc-map-wrap { aspect-ratio: auto; height: 300px; min-height: 0; }
  .fiche-orpi .bs-track { grid-auto-columns: 70%; }
  .fiche-orpi .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .fiche-orpi .bloc4-grid { grid-template-columns: 1fr; }
  .fiche-orpi .fo-hero-grid { grid-template-columns: 1fr !important; }
  .fiche-orpi .fo-pictos { grid-template-columns: repeat(4, 1fr) !important; }
  .fiche-orpi .fo-gallery { aspect-ratio: 1.4/1 !important; }
  .fiche-orpi .bs-nav { display: none; }
}
@media (max-width: 560px) {
  .fiche-orpi .fo-pictos { grid-template-columns: repeat(2, 1fr) !important; }

  /* Galerie mobile : une photo a la fois, glissement tactile natif */
  /* scope a .fo-gal-card : sans le bloc mobile, la galerie desktop reste affichee */
  .fiche-orpi .fo-gal-card .fo-gallery { display: none !important; }
  .fiche-orpi .fo-gallery-mob { display: block; position: relative; }
  .fiche-orpi .fo-mob-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .fiche-orpi .fo-mob-track::-webkit-scrollbar { display: none; }
  .fiche-orpi .fo-mob-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: block;
    position: relative;
  }
  .fiche-orpi .fo-mob-slide img {
    display: block;
    width: 100%;
    height: 62vw;          /* repli si aspect-ratio non supporte */
    max-height: 320px;
    object-fit: cover;
  }
  @supports (aspect-ratio: 4 / 3) {
    .fiche-orpi .fo-mob-slide img { height: auto; aspect-ratio: 4 / 3; }
  }
  .fiche-orpi .fo-mob-excl {
    position: absolute; top: 12px; left: 12px;
    background: #E30513; color: #FFFFFF; font-size: 12px;
    padding: 5px 12px; border-radius: 16px; font-weight: 500;
  }
  .fiche-orpi .fo-mob-count {
    position: absolute; left: 10px; bottom: 10px;   /* a gauche : reste visible meme si la page deborde */
    background: rgba(0,0,0,0.6); color: #FFFFFF;
    font-size: 12px; line-height: 1; padding: 5px 10px; border-radius: 999px;
    pointer-events: none;
  }
  .fiche-orpi .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .fiche-orpi .fo-hero-price { font-size: 29px !important; }
}
