/* ═══════════════════════════════════════════════════════════════════════════
   IMOVI+ — fiche.css
   Fiches détail des cinq métiers, dans la langue visuelle de l'accueil.
   Se charge après imovi-theme.css, home.css et catalogue.css (jetons --encre,
   --ivoire, --ocre, --ocre-fonce, --texte-2, --hp-*, --cq-*).

   Contrastes mesurés sur le fond réel :
     cuivre foncé #8E561F → 6,00:1 sur ivoire · 6,49:1 sur blanc (texte, boutons)
     vert #1F6B4A         → 6,31:1 sur blanc (confirmations)
     rgba(250,246,240,.8) → 12,2:1 sur l'encre #1A1612
   ═══════════════════════════════════════════════════════════════════════════ */

.fx { padding-bottom: 0; }

/* ═══ 1. EN-TÊTE ═════════════════════════════════════════════════════════ */
.fx-tete { padding-top: clamp(16px, 2.6vw, 32px); padding-bottom: clamp(18px, 2.4vw, 26px); }
.fx-tete .cq-fil { margin-bottom: 16px; }
.fx-tete-grille { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.fx-tete-grille > div:first-child { min-width: 0; flex: 1 1 520px; }

.fx-pastilles { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pastilles li {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--ligne); font-size: 12.5px; font-weight: 600; color: var(--encre);
}
.fx-pastilles li i { color: var(--ocre); font-size: 11px; }
.fx-pastilles li.vert { background: #EEF5F1; border-color: #CFE3D8; color: #1F5139; }
.fx-pastilles li.vert i { color: #1F6B4A; }
.fx-pastilles li.metal.or { background: #FBF1E0; border-color: #EBD3A6; color: #6B3F0A; }
.fx-pastilles li.metal.argent { background: #F1F1F2; border-color: #D9DADD; color: #3F4247; }
.fx-pastilles li.metal.bronze { background: #F7EDE3; border-color: #E4CDB6; color: #6B4424; }
.fx-pastilles li.metal i { color: currentColor; }

.fx-titre {
  font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0 0 12px;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.024em; text-wrap: balance; max-width: 24ch;
}
.fx-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--texte-2); }
.fx-meta span { display: inline-flex; align-items: center; gap: 7px; }
.fx-meta span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #BFAF98; margin-right: 11px; margin-left: -4px; }
.fx-meta i { color: var(--ocre); font-size: 12px; }
.fx-meta b { color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }

.fx-outils { display: flex; gap: 8px; flex-shrink: 0; }
.fx-outil {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--hp-ease);
}
.fx-outil:hover { border-color: #CDBFAC; background: var(--ivoire); }
.fx-outil:active { transform: scale(.97); }
.fx-outil:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.fx-outil i { font-size: 13px; color: var(--texte-2); }

.fx-apercu {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 13px 16px; border-radius: 14px;
  background: #FBF3E8; border: 1px solid #EBD6BC; color: #6B3F12; font-size: 14px; line-height: 1.55;
}
.fx-apercu i { margin-top: 3px; color: var(--ocre-fonce); }

/* ═══ 2. GALERIE ═════════════════════════════════════════════════════════ */
.fx-galerie { position: relative; margin-bottom: clamp(28px, 4vw, 48px); }
.fx-mosaique {
  display: grid; gap: 8px; height: clamp(340px, 42vw, 540px); border-radius: var(--hp-radius-lg); overflow: hidden;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.fx-tuile { position: relative; padding: 0; border: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: var(--cq-sable); display: block; }
.fx-tuile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--hp-ease), filter .4s; }
.fx-tuile::after { content: ''; position: absolute; inset: 0; background: rgba(26, 22, 18, 0); transition: background .3s; }
.fx-tuile:hover img { transform: scale(1.04); }
.fx-tuile:hover::after { background: rgba(26, 22, 18, .08); }
.fx-tuile:focus-visible { outline: 3px solid var(--ocre); outline-offset: -3px; z-index: 1; }
.fx-tuile:first-child { grid-row: 1 / 3; }

.fx-galerie[data-n="1"] .fx-mosaique { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.fx-galerie[data-n="2"] .fx-mosaique { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr; }
.fx-galerie[data-n="2"] .fx-tuile:first-child { grid-row: auto; }
.fx-galerie[data-n="3"] .fx-mosaique { grid-template-columns: 2fr 1fr; }
.fx-galerie[data-n="4"] .fx-mosaique { grid-template-columns: 2fr 1fr 1fr; }
.fx-galerie[data-n="4"] .fx-tuile:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }

.fx-carrousel { display: none; }

.fx-galerie-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; pointer-events: none; }
.fx-galerie-ui > * { pointer-events: auto; }
.fx-toutes {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(26, 22, 18, .1); background: rgba(255, 255, 255, .95); color: var(--encre);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 14px/1 var(--sans); cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45);
  transition: transform .2s var(--hp-ease), background .2s;
}
.fx-toutes:hover { transform: translateY(-2px); background: #fff; color: var(--encre); }
.fx-toutes:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fx-toutes i { font-size: 13px; color: var(--ocre-fonce); }
.fx-compteur { display: none; }
.fx-fav { position: static !important; width: 42px !important; height: 42px !important; margin-right: auto; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }

/* ── Visionneuse plein écran ── */
.fx-lb {
  position: fixed; inset: 0; z-index: 10050; background: rgba(14, 11, 9, .96); color: var(--ivoire);
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: minmax(0, 1fr) auto; align-items: center;
  padding: 56px 0 18px; opacity: 0; transition: opacity .3s var(--hp-ease);
}
.fx-lb[hidden] { display: none; }
.fx-lb.visible { opacity: 1; }
.fx-lb-scene { grid-column: 2; grid-row: 1; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
/* L'image occupe toute la scène, même quand le fichier d'origine est petit. */
.fx-lb-scene img { width: 100%; height: calc(100% - 40px); object-fit: contain; user-select: none; }
.fx-lb-scene figcaption { display: flex; gap: 14px; align-items: baseline; font-size: 14px; color: rgba(250, 246, 240, .8); max-width: 100%; }
.fx-lb-scene figcaption [data-fx-lb-titre] { font-family: var(--serif); font-size: 17px; color: var(--ivoire); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lb-scene figcaption [data-fx-lb-info] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-lb-nav, .fx-lb-fermer {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(250, 246, 240, .22); background: rgba(250, 246, 240, .08);
  color: var(--ivoire); font-size: 18px; cursor: pointer; display: grid; place-items: center; justify-self: center;
  transition: background .2s, border-color .2s;
}
.fx-lb-nav:hover, .fx-lb-fermer:hover { background: rgba(250, 246, 240, .18); border-color: rgba(250, 246, 240, .5); }
.fx-lb-nav:focus-visible, .fx-lb-fermer:focus-visible { outline: 3px solid #E0A86D; outline-offset: 2px; }
.fx-lb-prec { grid-column: 1; grid-row: 1; }
.fx-lb-suiv { grid-column: 3; grid-row: 1; }
.fx-lb-fermer { position: absolute; top: 12px; right: 14px; width: 46px; height: 46px; }
.fx-lb-vignettes { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 14px 16px 0; scrollbar-width: none; }
.fx-lb-vignettes::-webkit-scrollbar { display: none; }
.fx-lb-vignettes button { flex: 0 0 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; background: none; transition: opacity .2s, border-color .2s; }
.fx-lb-vignettes button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-lb-vignettes button:hover { opacity: .9; }
.fx-lb-vignettes button[aria-current="true"] { opacity: 1; border-color: #E0A86D; }
.fx-lb-vignettes button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ═══ 3. CORPS EN DEUX COLONNES ══════════════════════════════════════════ */
.fx-corps { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }

.fx-cles { list-style: none; margin: 0 0 8px; padding: 0 0 28px; display: flex; flex-wrap: wrap; gap: 14px 40px; border-bottom: 1px solid var(--cq-lin); }
.fx-cles li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-content: start; }
.fx-cles i { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--ligne); color: var(--ocre-fonce); font-size: 16px; }
.fx-cles b { font: 700 21px/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--encre); }
.fx-cles span { font-size: 13px; color: var(--texte-2); line-height: 1.3; }

.fx-hote { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--cq-lin); }
.fx-hote p { margin: 0; font-size: 15.5px; color: var(--encre); line-height: 1.45; }
.fx-hote a { color: var(--encre); font-weight: 700; text-decoration: none; }
.fx-hote a:hover { color: var(--ocre-fonce); }
.fx-hote p span { display: block; font-size: 13.5px; color: var(--texte-2); }
.fx-avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--encre); color: var(--ivoire); font-family: var(--serif); font-size: 20px;
  box-shadow: 0 0 0 3px var(--ivoire), 0 0 0 4px rgba(184, 115, 51, .5);
}
.fx-avatar.grand { flex-basis: 56px; width: 56px; height: 56px; font-size: 23px; }

.fx-section { padding: clamp(26px, 3.4vw, 38px) 0; border-bottom: 1px solid var(--cq-lin); scroll-margin-top: 96px; }
.fx-section:last-child { border-bottom: 0; }
.fx-section > h2 {
  font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0 0 16px;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); line-height: 1.2; letter-spacing: -.012em; text-wrap: balance;
}
.fx-sous { margin: -6px 0 18px; color: var(--texte-2); font-size: 14.5px; line-height: 1.6; max-width: 68ch; }

.fx-description { position: relative; }
.fx-description p { margin: 0; color: var(--texte); font-size: 16px; line-height: 1.78; max-width: 70ch; text-wrap: pretty; }
.js .fx-description.repliee { max-height: 13.5em; overflow: hidden; }
.js .fx-description.repliee::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(180deg, rgba(250, 246, 240, 0), var(--ivoire)); }
.fx-deplier, .fx-bouton-clair {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--encre); background: transparent; color: var(--encre); font: 600 14.5px/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s;
}
.fx-deplier:hover, .fx-bouton-clair:hover { background: var(--encre); color: var(--ivoire); }
.fx-deplier:focus-visible, .fx-bouton-clair:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.fx-deplier i { font-size: 11px; transition: transform .25s var(--hp-ease); }
.fx-deplier[aria-expanded="true"] i { transform: rotate(180deg); }
.js .fx-deplier[hidden], .js .fx-bouton-clair[hidden] { display: inline-flex; }
.fx-deplier[hidden], .fx-bouton-clair[hidden] { display: none; }

.fx-foncier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-foncier li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); }
.fx-foncier i { grid-row: 1 / 3; margin-top: 2px; font-size: 16px; }
.fx-foncier li.declare i { color: #1F6B4A; }
.fx-foncier li.absent i { color: #9C9083; }
.fx-foncier span { font-size: 13px; color: var(--texte-2); }
.fx-foncier b { font-size: 15px; color: var(--encre); font-weight: 600; }
.fx-alerte, .fx-note { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 14px; line-height: 1.6; }
.fx-alerte { padding: 14px 16px; border-radius: 14px; background: #FBF3E8; border: 1px solid #EBD6BC; color: #6B3F12; }
.fx-alerte i { margin-top: 3px; color: var(--ocre-fonce); }
.fx-note { color: var(--texte-2); }
.fx-note i { margin-top: 4px; color: var(--texte-2); }

.fx-chambres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-chambres > li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); }
.fx-chambres h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 6px; color: var(--encre); }
.fx-chambres p { margin: 0 0 10px; font-size: 14px; color: var(--texte-2); line-height: 1.55; }
.fx-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-mini li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texte-2); padding: 4px 10px; border-radius: 999px; background: var(--ivoire); border: 1px solid var(--ligne-claire); }
.fx-mini i { color: var(--texte-3); font-size: 11px; }
.fx-chambre-prix { margin: 0; text-align: right; flex-shrink: 0; }
.fx-chambre-prix b { display: block; font: 700 20px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--encre); }
.fx-chambre-prix span { font-size: 12.5px; color: var(--texte-2); }

.fx-equipements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.fx-equipements li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 15px; color: var(--encre); }
.fx-equipements i { width: 22px; text-align: center; color: var(--ocre-fonce); font-size: 16px; }
.js .fx-equipements.replie li:nth-child(n+13) { display: none; }

.fx-tableau { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.fx-tableau > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne-claire); }
.fx-tableau dt { color: var(--texte-2); font-size: 14.5px; }
.fx-tableau dd { margin: 0; color: var(--encre); font-size: 14.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fx-tableau dd.oui { color: #1F6B4A; }
.fx-tableau dd.oui i { margin-right: 6px; font-size: 12px; }

.fx-video { width: 100%; max-height: 520px; border-radius: 18px; background: #000; display: block; box-shadow: var(--cq-ombre-1); }

.fx-legende { display: flex; gap: 18px; margin: -4px 0 16px; font-size: 13px; color: var(--texte-2); }
.fx-legende span { display: inline-flex; align-items: center; gap: 7px; }
.fx-legende i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.fx-legende i.libre { background: #EEF5F1; border: 1px solid #B9D6C6; }
.fx-legende i.complet { background: var(--encre); }
.fx-legende i.passe { background: var(--cq-sable); border: 1px solid var(--ligne); }
.fx-calendriers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fx-mois { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 18px; }
.fx-mois h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; text-align: center; margin: 0 0 12px; color: var(--encre); text-transform: capitalize; }
.fx-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fx-jn { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--texte-2); padding-bottom: 4px; text-decoration: none; }
.fx-jour { aspect-ratio: 1; display: grid; place-items: center; font-size: 13px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.fx-jour.vide { background: none; }
.fx-jour.passe { color: var(--texte-2); background: var(--cq-sable); text-decoration: line-through; text-decoration-color: rgba(107, 100, 91, .45); }
.fx-jour.libre { background: #EEF5F1; color: #1F5139; font-weight: 600; }
.fx-jour.complet { background: var(--encre); color: var(--ivoire); font-weight: 600; }

/* ── Colonne d'action ── */
.fx-cote { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.fx-action {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius-lg); padding: 24px;
  box-shadow: var(--cq-ombre-2); scroll-margin-top: 96px;
}
.fx-prix { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ligne-claire); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fx-prix b { font: 700 32px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--encre); }
.fx-prix span { font-size: 14px; color: var(--texte-2); font-weight: 600; }
.fx-prix em { width: 100%; margin-top: 6px; font-style: normal; font-size: 13.5px; color: var(--texte-2); line-height: 1.5; }

.fx-form label { display: block; font-size: 13px; font-weight: 600; color: var(--texte-2); margin: 14px 0 7px; }
.fx-form label:first-of-type { margin-top: 0; }
.fx-form label span { font-weight: 400; }
.fx-form input[type=date], .fx-form input[type=number], .fx-form select, .fx-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--ivoire);
  font: 500 15px/1.4 var(--sans); color: var(--encre); transition: border-color .2s, box-shadow .2s, background .2s;
}
.fx-form textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.fx-form textarea::placeholder { color: var(--texte-3); }
.fx-form input:focus, .fx-form select:focus, .fx-form textarea:focus { outline: none; background: var(--surface); border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .16); }
.fx-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-dates label { margin-top: 0 !important; }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 18px;
  padding: 0 20px; border: 0; border-radius: 14px; background: var(--ocre-fonce); color: #fff; font: 700 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px -14px rgba(142, 86, 31, .9);
  transition: background .2s, transform .15s var(--hp-ease);
}
.fx-btn:hover { background: #74451A; color: #fff; }
.fx-btn:active { transform: scale(.985); }
.fx-btn:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }
.fx-btn.secondaire { background: transparent; color: var(--encre); border: 1px solid #CDBFAC; box-shadow: none; margin-top: 10px; }
.fx-btn.secondaire:hover { background: var(--ivoire); border-color: var(--encre); color: var(--encre); }
.fx-btn.vert { background: #1F6B4A; box-shadow: 0 12px 26px -14px rgba(31, 107, 74, .8); }
.fx-btn.vert:hover { background: #17533A; }
.fx-btn.bloque { background: var(--cq-sable); color: var(--texte-2); box-shadow: none; cursor: default; }
.fx-rassurance { display: flex; gap: 10px; margin: 14px 0 0; font-size: 13px; color: var(--texte-2); line-height: 1.55; }
.fx-rassurance i { color: #1F6B4A; margin-top: 3px; }
.fx-info { display: flex; gap: 9px; align-items: center; margin: 0; font-size: 14.5px; color: var(--texte-2); }
.fx-flash { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.fx-flash i { margin-top: 3px; }
.fx-flash.vert { background: #EEF5F1; border: 1px solid #C5DDD0; color: #1F5139; }
.fx-flash.rouge { background: #FDF4F1; border: 1px solid #EFC9BD; color: #7E2A18; }
.fx-statut { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 4px; font-size: 13px; font-weight: 700; color: #1F5139; }
.fx-statut::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2F8A61; box-shadow: 0 0 0 4px rgba(47, 138, 97, .16); }
.fx-statut.attente { color: #6B3F12; }
.fx-statut.attente::before { background: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .18); }
.fx-statut.ferme { color: #7E2A18; }
.fx-statut.ferme::before { background: #B3391F; box-shadow: 0 0 0 4px rgba(179, 57, 31, .14); }

.fx-proprio { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); padding: 20px 22px; }
.fx-proprio-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fx-proprio-tete h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; margin: 0 0 2px; color: var(--encre); }
.fx-proprio-tete p { margin: 0; font-size: 13.5px; color: var(--texte-2); }
.fx-confiance { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fx-confiance li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--encre); line-height: 1.5; }
.fx-confiance i { width: 18px; text-align: center; margin-top: 3px; color: var(--texte-2); }
.fx-confiance li.ok i, .fx-confiance li.bon i { color: #1F6B4A; }
.fx-confiance li.moyen i { color: var(--ocre-fonce); }
.fx-confiance li.lent i { color: #B3391F; }
.fx-confiance .fa-star { color: var(--ocre) !important; }
.fx-lien { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ocre-fonce); text-decoration: none; transition: gap .25s var(--hp-ease), color .2s; }
.fx-lien:hover { gap: 12px; color: #74451A; }
.fx-lien i { font-size: 11px; }
.fx-lien.clair { color: #E0A86D; }
.fx-lien.clair:hover { color: #F2C898; }

.fx-garanties { background: var(--encre); color: var(--ivoire); border-radius: var(--hp-radius); padding: 22px; }
.fx-garanties h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 14px; color: var(--ivoire); }
.fx-garanties ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fx-garanties li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: rgba(250, 246, 240, .8); }
.fx-garanties i { color: #E0A86D; width: 18px; text-align: center; margin-top: 3px; }

.fx-frais { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--hp-radius); background: #EEF5F1; border: 1px solid #CFE3D8; color: #1F5139; font-size: 14px; line-height: 1.55; }
.fx-frais i { margin-top: 3px; color: #1F6B4A; }
.fx-frais b { display: block; color: #17412D; }

/* ═══ 4. ANNONCES VOISINES ═══════════════════════════════════════════════ */
.fx-voisines { background: var(--surface); border-top: 1px solid var(--ligne); padding: clamp(52px, 7vw, 92px) 0; }
.fx-voisines-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 32px); }
.fx-voisines-tete h2 { font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.fx-voisines-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ═══ 5. BARRE MOBILE ════════════════════════════════════════════════════ */
.fx-barre { display: none; }

/* ═══ 6. VÉHICULE : blocs propres ════════════════════════════════════════ */
.fx-exigences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-exigences li { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); font-size: 14.5px; color: var(--encre); line-height: 1.5; }
.fx-exigences i { color: var(--ocre-fonce); margin-top: 3px; font-size: 13px; }
.fx-devis { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 20px; }
.fx-devis .fx-dates label { display: block; font-size: 13px; font-weight: 600; color: var(--texte-2); margin: 0 0 7px; }
.fx-devis input[type=date] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--ivoire); font: 500 15px/1.4 var(--sans); color: var(--encre); }
.fx-devis input[type=date]:focus { outline: none; border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .16); background: var(--surface); }
.fx-devis-opts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.fx-devis-opts label { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--encre); cursor: pointer; min-height: 40px; }
.fx-devis-opts input { width: 18px; height: 18px; accent-color: var(--ocre-fonce); }
.devis-alerte { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FDF4F1; border: 1px solid #EFC9BD; color: #7E2A18; font-size: 14px; line-height: 1.5; }
.devis-lignes { margin-top: 14px; display: flex; flex-direction: column; }
.devis-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ligne-claire); font-size: 14.5px; color: var(--texte-2); }
.devis-ligne strong { color: var(--encre); font-variant-numeric: tabular-nums; }
.devis-ligne.remise strong { color: #1F6B4A; }
.devis-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--encre); font-weight: 700; color: var(--encre); }
.devis-total strong { font: 700 22px/1 var(--sans); font-variant-numeric: tabular-nums; }
.devis-caution { display: flex; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--texte-2); line-height: 1.5; }
.devis-caution i { color: #1F6B4A; margin-top: 3px; }
.devis-note { margin: 12px 0 0; font-size: 13px; color: var(--texte-2); line-height: 1.55; }

/* ── Équipements véhicule : points forts, groupes, état non détaillé ── */
.fx-section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fx-section-tete h2 { font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); line-height: 1.2; letter-spacing: -.012em; }
.fx-compte { font-size: 13.5px; font-weight: 600; color: var(--texte-2); font-variant-numeric: tabular-nums; }

.fx-atouts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-atouts li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; border-radius: 16px;
  background: var(--encre); color: var(--ivoire); min-height: 112px;
}
.fx-atouts i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 168, 109, .16); color: #E0A86D; font-size: 16px; }
.fx-atouts span { font-size: 15px; font-weight: 600; line-height: 1.3; }

.fx-groupes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fx-groupe { background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 18px 20px; }
.fx-groupe h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ligne-claire); font: 700 14.5px/1.3 var(--sans); color: var(--encre); }
.fx-groupe h3 i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FBF3E8; color: var(--ocre-fonce); font-size: 13px; }
.fx-groupe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-groupe li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--encre); }
.fx-groupe li i { width: 20px; text-align: center; color: var(--ocre-fonce); font-size: 14px; }

.fx-vide { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px dashed #D8CAB6; }
.fx-vide > i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #FBF3E8; color: var(--ocre-fonce); font-size: 17px; }
.fx-vide p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--texte-2); }
.fx-vide p strong { display: block; color: var(--encre); margin-bottom: 2px; }
.fx-vide .fx-bouton-clair { margin-top: 12px; text-decoration: none; }

/* ═══ 7. RESPONSIVE ══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .fx-voisines-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .fx-corps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fx-cote { position: static; order: 2; }
  .fx-principal { order: 1; }
  .fx-mosaique { height: clamp(300px, 52vw, 460px); }
}
@media (max-width: 760px) {
  .fx-tete-grille { align-items: flex-start; }
  .fx-outils { width: 100%; }
  .fx-outil { flex: 1; justify-content: center; }
  .fx-titre { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.2rem); }
  /* Sur deux lignes, un séparateur tomberait en début de ligne : on passe à une liste aérée. */
  .fx-meta { gap: 4px 16px; font-size: 13.5px; }
  .fx-meta span + span::before { display: none; }

  /* Galerie : carrousel natif aimanté, pleine largeur. */
  .fx-galerie { margin-left: calc(-1 * clamp(16px, 4vw, 32px)); margin-right: calc(-1 * clamp(16px, 4vw, 32px)); margin-bottom: 8px; }
  .fx-mosaique { display: none; }
  .fx-carrousel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 70vh;
    background: var(--cq-sable); overscroll-behavior-x: contain;
  }
  .fx-carrousel::-webkit-scrollbar { display: none; }
  .fx-diapo { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; margin: 0; background: none; cursor: zoom-in; }
  .fx-diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .fx-carrousel:focus-visible { outline: 3px solid var(--ocre); outline-offset: -3px; }
  .fx-galerie-ui { left: 12px; right: 12px; bottom: 12px; }
  .fx-compteur {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px;
    background: rgba(26, 22, 18, .72); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .fx-compteur i { font-size: 11px; }
  .fx-toutes { display: none; }
  .fx-vers-video { display: inline-flex; min-height: 34px; padding: 0 12px; font-size: 13px; }

  .fx-cles { gap: 16px 24px; padding-bottom: 22px; }
  .fx-cles li { flex: 1 1 calc(50% - 12px); }
  .fx-cles i { width: 40px; height: 40px; font-size: 14px; }
  .fx-cles b { font-size: 18px; }
  .fx-foncier, .fx-equipements, .fx-tableau, .fx-calendriers, .fx-exigences, .fx-groupes { grid-template-columns: minmax(0, 1fr); }
  .fx-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-atouts li { min-height: 0; padding: 14px; }
  .fx-vide { flex-direction: column; }
  .fx-chambres > li { flex-direction: column; }
  .fx-chambre-prix { text-align: left; }
  .fx-voisines-grille { grid-template-columns: minmax(0, 1fr); }

  /* La barre d'action : visible quand la carte d'action n'est pas à l'écran. */
  .js .fx-barre {
    display: flex; align-items: center; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne);
    box-shadow: 0 -12px 30px -18px rgba(26, 22, 18, .35);
    transform: translateY(110%); transition: transform .35s var(--hp-ease);
  }
  .js .fx-barre[hidden] { display: flex; }
  .js .fx-barre.visible { transform: none; }
  .fx-barre-prix { margin: 0; min-width: 0; display: flex; flex-direction: column; }
  .fx-barre-prix b { font: 700 18px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }
  .fx-barre-prix span { font-size: 12.5px; color: var(--texte-2); white-space: nowrap; }
  .fx-barre .fx-btn { width: auto; flex: 1; margin: 0; min-height: 48px; font-size: 15px; padding: 0 14px; }
  /* Le chat et le retour en haut remontent au-dessus de la barre. */
  /* boutons flottants (discussion, retour en haut) : placés par assets/css/mobile-pro.css au-dessus de cette barre */
}
@media (prefers-reduced-motion: reduce) {
  .fx-tuile img, .fx-lb, .js .fx-barre { transition: none; }
}

/* ─── Affaire conclue (vitrine de 3 jours) ─────────────────────────────────── */
.fx-conclu { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px;
  background: #2b2620; color: #faf6f0; font-size: 14px; line-height: 1.5; }
.fx-conclu i { margin-top: 3px; color: #d9a46a; font-size: 18px; }
.fx-conclu a { color: #f4c78d; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fx-info-conclu { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: #f3ece1; color: #2b2620; font-size: 14px; }

.fx-stock { display: flex; gap: 10px; align-items: center; margin: -6px 0 16px; padding: 10px 12px; border-radius: 8px; background: #f3ece1; color: #2b2620; font-size: 14px; }
.fx-stock i { color: #8a5d2c; }
