/* ==========================================================================
   Finangnon House — Feuille de style
   Palette inspirée du logo : fond nuit, toit vert, script orange.
   Police d'accroche : Fraunces (chaleureuse, éditoriale)
   Police de texte    : Work Sans
   Police utilitaire  : IBM Plex Mono (tarifs, repères numériques)
   ========================================================================== */

:root {
  --nuit: #16140f;
  --nuit-2: #201c15;
  --creme: #f8f4ec;
  --creme-2: #efe8d8;
  --vert-toit: #3f8f5a;
  --vert-toit-fonce: #2d6b42;
  --orange-script: #e8720c;
  --orange-clair: #f4a24d;
  --encre: #221f1a;
  --gris-texte: #6b6558;
  --blanc: #ffffff;

  --police-titre: "Fraunces", Georgia, serif;
  --police-texte: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --police-utile: "IBM Plex Mono", monospace;

  --rayon: 14px;
  --ombre: 0 12px 30px -12px rgba(22, 20, 15, 0.35);
  --marge-section: clamp(3rem, 6vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.conteneur {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-family: var(--police-utile);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--vert-toit-fonce);
  display: inline-block;
  margin-bottom: 0.8em;
}

/* ---------- Motif décoratif "ferronnerie" (inspiré des rambardes réelles) ---------- */
.motif-fer {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 18px, var(--vert-toit) 18px 20px, transparent 20px 38px),
    repeating-linear-gradient(65deg, transparent 0 18px, var(--orange-script) 18px 20px, transparent 20px 38px);
  mix-blend-mode: multiply;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 20, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--creme);
}

.marque img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.marque span {
  font-family: var(--police-titre);
  font-size: 1.15rem;
  color: var(--creme);
}

.nav-principale {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-principale a {
  text-decoration: none;
  color: var(--creme-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-principale a:hover {
  color: var(--orange-clair);
}

.bouton-menu {
  display: none;
  background: none;
  border: none;
  color: var(--creme);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bouton:hover {
  transform: translateY(-2px);
}

.bouton-whatsapp {
  background: var(--vert-toit);
  color: var(--blanc);
  box-shadow: var(--ombre);
}

.bouton-whatsapp:hover {
  background: var(--vert-toit-fonce);
}

.bouton-contour {
  background: transparent;
  border-color: rgba(248, 244, 236, 0.4);
  color: var(--creme);
}

.bouton-contour:hover {
  border-color: var(--orange-clair);
  color: var(--orange-clair);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--creme);
  overflow: hidden;
  background: var(--nuit);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-degrade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 20, 15, 0.35) 0%, rgba(22, 20, 15, 0.55) 55%, rgba(22, 20, 15, 0.95) 100%);
}

.hero-contenu {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  max-width: 720px;
}

.hero-contenu .eyebrow {
  color: var(--orange-clair);
}

.hero-contenu h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--creme);
}

.hero-contenu p {
  font-size: 1.1rem;
  color: var(--creme-2);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* ---------- Sections génériques ---------- */
section {
  padding: var(--marge-section) 0;
  position: relative;
}

.section-tete {
  max-width: 640px;
  margin-bottom: 2.6rem;
}

.section-sombre {
  background: var(--nuit);
  color: var(--creme);
}

.section-sombre .gris-texte,
.section-sombre p {
  color: var(--creme-2);
}

.section-creme-2 {
  background: var(--creme-2);
}

/* ---------- Grille équipements ---------- */
.grille-equipements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.equipement {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: rgba(248, 244, 236, 0.06);
  border: 1px solid rgba(248, 244, 236, 0.14);
  border-radius: var(--rayon);
  font-size: 0.95rem;
}

.equipement .pastille {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-clair);
  flex-shrink: 0;
}

/* ---------- Cartes unités ---------- */
.grille-unites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.carte-unite {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  text-decoration: none;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-unite:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -14px rgba(22, 20, 15, 0.45);
}

.carte-unite .vignette {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carte-unite .vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carte-unite:hover .vignette img {
  transform: scale(1.06);
}

.carte-unite-corps {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.carte-unite-corps h3 {
  font-size: 1.25rem;
}

.carte-unite-corps p {
  font-size: 0.92rem;
  color: var(--gris-texte);
  flex: 1;
}

.lien-voir {
  font-family: var(--police-utile);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert-toit-fonce);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Tarifs ---------- */
.bloc-tarifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(248, 244, 236, 0.16);
  border: 1px solid rgba(248, 244, 236, 0.16);
  border-radius: var(--rayon);
  overflow: hidden;
}

.tarif {
  background: var(--nuit-2);
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.tarif .duree {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--creme-2);
  margin-bottom: 0.6rem;
}

.tarif .prix {
  font-family: var(--police-utile);
  font-size: 1.6rem;
  color: var(--orange-clair);
}

/* ---------- Galerie espaces communs ---------- */
.galerie-communs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.galerie-communs img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.galerie-communs img:hover {
  transform: scale(1.03);
}

/* ---------- Localisation ---------- */
.bloc-localisation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.carte-info {
  background: rgba(248, 244, 236, 0.06);
  border: 1px solid rgba(248, 244, 236, 0.14);
  border-radius: var(--rayon);
  padding: 1.5rem 1.7rem;
}

.carte-info h4 {
  color: var(--orange-clair);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--police-utile);
  margin-bottom: 0.6rem;
}

/* ---------- Pied de page ---------- */
.pied {
  background: var(--nuit);
  color: var(--creme-2);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.88rem;
}

.pied .conteneur {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(248, 244, 236, 0.1);
  padding-top: 1.4rem;
}

.pied-haut {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1.4rem;
}

.pied-haut img {
  height: 34px;
  width: 34px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-flottant {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  background: var(--vert-toit);
  color: var(--blanc);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(22, 20, 15, 0.5);
  transition: transform 0.2s ease;
}

.whatsapp-flottant:hover {
  transform: scale(1.08);
}

.whatsapp-flottant svg {
  width: 28px;
  height: 28px;
}

/* ---------- Page fiche unité ---------- */
.fil-ariane {
  font-size: 0.85rem;
  color: var(--gris-texte);
  margin-bottom: 1rem;
}

.fil-ariane a {
  text-decoration: none;
  color: var(--vert-toit-fonce);
}

.entete-unite {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.entete-unite h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
}

.galerie-unite {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.galerie-unite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.galerie-unite img:hover {
  opacity: 0.88;
}

.galerie-unite a:first-child img {
  height: 100%;
}

.galerie-unite a:nth-child(1) {
  grid-row: span 2;
  grid-column: span 2;
}

.description-unite {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--gris-texte);
}

.autres-unites {
  margin-top: 3rem;
  border-top: 1px solid var(--creme-2);
  padding-top: 2.5rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.ouverte {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-fermer {
  position: absolute;
  top: 1.5rem;
  right: 1.7rem;
  background: none;
  border: none;
  color: var(--creme);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .bloc-localisation {
    grid-template-columns: 1fr;
  }

  .galerie-communs {
    grid-template-columns: repeat(3, 1fr);
  }

  .galerie-unite {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

@media (max-width: 700px) {
  .nav-principale {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nuit);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    display: none;
    border-bottom: 1px solid rgba(248, 244, 236, 0.1);
  }

  .nav-principale.ouverte {
    display: flex;
  }

  .bouton-menu {
    display: block;
  }

  .galerie-communs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galerie-unite {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .galerie-unite a:nth-child(1) {
    grid-row: span 1;
    grid-column: span 1;
  }
}
