/* Fiche projet (BRIEF-DESIGN-C §7). Aplats uniquement. */
body.page-fiche { background: var(--c-blanc); color: var(--c-texte); }
body.page-fiche .barre-wa { display: none; }   /* remplacée par la barre du bas de la fiche */
.fc { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fc-ariane { padding: 16px 0 14px; font-size: 14px; color: var(--c-texte); }
.fc-ariane a { color: var(--c-accent); text-decoration: none; }
.fc-ariane a:hover { text-decoration: underline; }
.fc-ariane [aria-current] { color: var(--c-encre); font-weight: 600; }

/* ---------- Galerie ---------- */
.fc-galerie { position: relative; }
.fc-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; height: 440px;
  grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); border-radius: 13px; overflow: hidden; }
.fc-photo:first-child { grid-row: 1 / 4; }
.fc-photo:nth-child(n + 5) { display: none; }
.fc-photos:has(.fc-photo:only-child) { grid-template-columns: 1fr; }
.fc-photo a { position: relative; display: block; width: 100%; height: 100%; background: #E7ECF3; }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-photo a:hover img { opacity: .93; }
.fc-photo a:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; }
/* Voile plein (aplat, pas de dégradé) sur la dernière vignette */
.fc-plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 35, 61, .62); color: var(--c-blanc); font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.fc-galerie-mobile { display: none; }

/* ---------- Mise en page ---------- */
.fc-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 28px; align-items: start; }
.fc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge-c-statut { background: var(--c-doux); color: var(--c-encre); border: 1px solid var(--c-bordure); }
.fc h1 { margin: 0 0 6px; color: var(--c-encre); font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -1.1px; }
.fc-lieu { margin: 0 0 22px; font-size: 16px; }

.fc-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.fc-chiffres > div { padding: 14px 16px; border: 1px solid var(--c-bordure); border-radius: 12px; background: var(--c-blanc); }
.fc-chiffres dt { font-size: 13px; color: var(--c-texte); margin-bottom: 4px; }
.fc-chiffres dd { margin: 0; color: var(--c-encre); font-size: 18px; font-weight: 800; letter-spacing: -.3px; }

.fc-texte { font-size: 16px; line-height: 1.65; margin-bottom: 8px; }
.fc-texte p { margin: 0 0 12px; }
.fc-bloc { margin-top: 36px; }
.fc-bloc h2 { margin: 0 0 14px; color: var(--c-encre); font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.fc-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fc-coches li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--c-encre); }
.fc-coches .picto { width: 20px; height: 20px; color: var(--c-accent); stroke-width: 2.6; flex: none; margin-top: 2px; }
.fc-equipements { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fc-equipements li { padding: 6px 12px; border: 1px solid var(--c-bordure); border-radius: var(--r-pastille); font-size: 14px; color: var(--c-encre); }

.fc-typos { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-bordure); border-radius: 12px; overflow: hidden; font-size: 15px; }
.fc-typos th, .fc-typos td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-bordure); }
.fc-typos thead th { background: var(--c-doux); color: var(--c-texte); font-size: 13px; font-weight: 700; }
.fc-typos tbody tr:last-child th, .fc-typos tbody tr:last-child td { border-bottom: 0; }
.fc-typos tbody th { color: var(--c-encre); font-weight: 700; }
.fc-typos td { color: var(--c-encre); font-variant-numeric: tabular-nums; }
.fc-typos small { color: var(--c-texte); font-size: 13px; }
.fc-note { margin: 10px 0 0; font-size: 13px; color: var(--c-texte); }

.fc-carte { position: relative; z-index: 0; height: 300px; border-radius: 12px; border: 1px solid var(--c-bordure); overflow: hidden; background: #E9EEF2; }
.fc-adresse { margin: 10px 0 0; color: var(--c-encre); font-weight: 600; }

.fc-calendrier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fc-etape { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 4px solid #D5DCE6; }
.fc-etape-fait, .fc-etape-en_cours { border-top-color: var(--c-accent); }
.fc-etape-etat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--c-texte); }
.fc-etape-fait .fc-etape-etat, .fc-etape-en_cours .fc-etape-etat { color: var(--c-accent); }
.fc-etape strong { color: var(--c-encre); font-size: 16px; }
.fc-etape-date { font-size: 14px; }

/* ---------- Encart collant ---------- */
.fc-encart-collant { position: sticky; top: 20px; padding: 22px; border: 1px solid var(--c-bordure); border-radius: 13px;
  background: var(--c-blanc); box-shadow: var(--ombre-c); }
.fc-encart-des { margin: 0; font-size: 14px; }
.fc-encart-prix { margin: 0; color: var(--c-encre); font-size: 30px; font-weight: 800; letter-spacing: -.9px; }
.fc-encart-eur { margin: 0 0 16px; font-size: 15px; }
.fc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--r-el); font: 700 16px "Inter", sans-serif; text-decoration: none; cursor: pointer; }
.fc-btn svg { width: 20px; height: 20px; flex: none; }
.fc-btn-plein { background: var(--c-accent); color: var(--c-blanc); border: 1px solid var(--c-accent); }
.fc-btn-plein:hover { background: #0E527A; }
.fc-btn-contour { margin-top: 10px; background: var(--c-blanc); color: var(--c-accent); border: 1px solid var(--c-accent); }
.fc-btn-contour:hover { background: var(--c-accent-pale); }
.fc-btn:focus-visible { outline: 2px solid var(--c-encre); outline-offset: 2px; }
.fc-encart-note { margin: 12px 0 16px; font-size: 14px; text-align: center; }
.fc-agent { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-bordure); }
.fc-agent .barre-logo { height: 44px; padding: 3px 9px; border: 1px solid var(--c-bordure); flex: none; }
.fc-agent .barre-logo img { height: 36px; width: auto; }
.fc-agent p { margin: 0; font-size: 13px; line-height: 1.4; }
.fc-agent strong { display: block; color: var(--c-encre); font-size: 15px; }
.fc-barre-bas { display: none; }

/* ---------- Visionneuse ---------- */
.fc-visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--c-encre); color: var(--c-blanc); }
.fc-visionneuse::backdrop { background: var(--c-encre); }
.fc-visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.fc-visionneuse img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.fc-visionneuse-n { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-weight: 700; }
.fc-visionneuse button { position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-blanc); color: var(--c-encre); cursor: pointer; }
.fc-visionneuse button:focus-visible { outline: 2px solid var(--c-decor); outline-offset: 2px; }
.fc-v-fermer { top: 14px; right: 14px; }
.fc-v-prec { left: 20px; top: 50%; transform: translateY(-50%); }
.fc-v-suiv { right: 20px; top: 50%; transform: translateY(-50%) scaleX(-1); }

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .fc { padding: 0; }
  .fc-ariane { display: none; }
  body.page-fiche .barre-recherche { display: none; }
  .fc-photos { display: flex; height: 280px; gap: 0; border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; }
  .fc-photos::-webkit-scrollbar { display: none; }
  .fc-photo, .fc-photo:nth-child(n + 5) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
  .fc-plus { display: none; }
  .fc-galerie-mobile { display: block; }
  .fc-rond { position: absolute; top: 12px; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-blanc); color: var(--c-encre);
    box-shadow: var(--ombre-c); cursor: pointer; }
  .fc-rond:first-child { left: 12px; }
  .fc-rond + .fc-rond { right: 12px; }
  .fc-rond .picto { width: 20px; height: 20px; stroke-width: 2; }
  .fc-compteur { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-pastille);
    background: var(--c-encre); color: var(--c-blanc); font-size: 13px; font-weight: 700; }

  .fc-grille { display: block; margin-top: 18px; padding: 0 16px; }
  .fc h1 { font-size: 28px; letter-spacing: -.8px; }
  .fc-lieu { margin-bottom: 16px; }
  /* Chiffres clés sur une seule ligne, séparés par des filets */
  .fc-chiffres { display: flex; gap: 0; border-top: 1px solid var(--c-bordure); border-bottom: 1px solid var(--c-bordure); }
  .fc-chiffres > div { flex: 1; min-width: 0; padding: 10px 8px; border: 0; border-radius: 0; }
  .fc-chiffres > div + div { border-left: 1px solid var(--c-bordure); }
  .fc-chiffres > div:first-child { padding-left: 0; }
  .fc-chiffres dt { font-size: 11px; }
  .fc-chiffres dd { font-size: 13px; letter-spacing: -.2px; line-height: 1.3; }
  /* Typologies en lignes */
  .fc-typos, .fc-typos tbody, .fc-typos tr, .fc-typos th, .fc-typos td { display: block; }
  .fc-typos { border: 0; border-radius: 0; }
  .fc-typos thead { display: none; }
  .fc-typos tr { padding: 12px 0; border-bottom: 1px solid var(--c-bordure); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .fc-typos tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 16px; }
  .fc-typos td { padding: 0; border: 0; font-size: 14px; }
  .fc-typos td::before { content: attr(data-libelle); display: block; font-size: 12px; color: var(--c-texte); }
  .fc-calendrier { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .fc-encart { display: none; }
  .fc-barre-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 900;
    left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--c-blanc); border-top: 1px solid var(--c-bordure); box-shadow: 0 -4px 14px rgba(18, 35, 61, .08); }
  .fc-barre-bas p { margin: 0; line-height: 1.2; }
  .fc-barre-bas span { display: block; font-size: 12px; }
  .fc-barre-bas strong { color: var(--c-encre); font-size: 18px; font-weight: 800; }
  .fc-barre-bas .fc-btn { flex: none; min-height: 48px; padding: 0 16px; font-size: 15px; }
  body.page-fiche .pied-c { padding-bottom: 80px; }
  .fc-visionneuse img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .fc-v-prec { left: 8px; } .fc-v-suiv { right: 8px; }
}
