/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --red: #CC0000;
  --red-dark: #aa0000;
  --red-light: #ff1a1a;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-800: #333333;
  --gray-600: #666666;
  --gray-400: #999999;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===========================
   UTILITIES
   =========================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 32px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
.btn--ghost svg { width: 16px; height: 16px; }

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-ma { color: var(--gray-400); }
.logo-maison { color: var(--dark); }
.logo-avendre { color: var(--red); }
.logo-ca { color: var(--gray-400); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--red); background: var(--gray-100); }

.nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 600;
}
.nav__link--cta:hover {
  background: var(--red-dark) !important;
}

/* Groupe partage : caché sur desktop, visible dans le nav mobile */
.nav__share-group { display: none; }
@media (max-width: 640px) {
  .nav__share-group { display: block; }
}

/* Icônes contact dans le nav */
.nav__contact-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.nav__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--red-dark);
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav__contact-icon svg { width: 16px; height: 16px; }
.nav__contact-icon:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.nav__contact-icon--messenger {
  background: var(--red);
  border-color: var(--red-dark);
  color: var(--white);
}
.nav__contact-icon--messenger svg { width: 17px; height: 17px; }
.nav__contact-icon--messenger:hover {
  background: var(--red-dark);
}

/* Caché dans le menu mobile */
@media (max-width: 640px) {
  .nav__contact-icons { display: none !important; }
}

/* Groupe contact mobile (burger) */
.nav__contact-group {
  display: none;
}
@media (max-width: 640px) {
  .nav__contact-group {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    width: 100%;
  }
}

.nav__contact-row-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: background var(--transition);
  width: 100%;
}
.nav__contact-row-btn:hover { background: var(--gray-100); }

.nav__contact-row-icon {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav__contact-row-icon svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}
.nav__contact-row-btn--messenger .nav__contact-row-icon { background: var(--red); }

.nav__link--fiche {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-600) !important;
  border: 1px solid var(--gray-200);
}
.nav__link--fiche:hover {
  color: var(--red) !important;
  border-color: var(--red);
  background: rgba(204,0,0,0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 68px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero__bg.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
  padding-top: 60px;
}

.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__address {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero__price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
}

.hero__price-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Boutons contact dans le hero */
.hero__contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.75);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 11px 18px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.hero__contact-btn:hover {
  background: rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.hero__contact-btn__icon {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 6px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.hero__contact-btn__icon svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  flex-shrink: 0;
}
.hero__contact-btn--messenger .hero__contact-btn__icon { background: #0099FF; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero__scroll:hover { color: var(--white); }
.hero__scroll svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* No photo fallback */
.hero--no-photo .hero__bg {
  background: linear-gradient(135deg, var(--black) 0%, #2a0000 100%);
}

/* ===========================
   STATS
   =========================== */
.stats {
  background: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--red);
}
.stat-card__icon svg { width: 100%; height: 100%; }

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===========================
   DESCRIPTION
   =========================== */
.description {
  padding: 80px 0;
  background: var(--white);
}

.description__text {
  font-size: 1.1rem;
  color: var(--gray-800);
  line-height: 1.8;
  max-width: 760px;
}

/* ===========================
   GALLERY
   =========================== */
.gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.gallery__header .section-title { margin-bottom: 0; }

.btn-download-zip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-download-zip svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-download-zip:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.btn-download-zip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.download-progress {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.download-progress__bar {
  flex: 1;
  height: 5px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.download-progress__fill {
  height: 100%;
  background: var(--red);
  border-radius: 99px;
  width: 0%;
  transition: width 0.2s ease;
}
.download-progress__text {
  font-size: 0.78rem;
  color: var(--gray-600);
  white-space: nowrap;
  min-width: 130px;
  text-align: right;
}

.gallery {
  padding: 80px 0;
  background: var(--gray-100);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery__grid .gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}
.gallery__item:first-child { aspect-ratio: unset; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery__item-overlay svg {
  width: 36px;
  height: 36px;
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery__item:hover .gallery__item-overlay { background: rgba(0,0,0,0.3); }
.gallery__item:hover .gallery__item-overlay svg { opacity: 1; transform: scale(1); }

.gallery__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
  color: var(--gray-400);
  text-align: center;
}
.gallery__empty svg { width: 48px; height: 48px; }
.gallery__empty p { font-size: 0.95rem; }

/* ===========================
   FEATURES / CARACTÉRISTIQUES
   =========================== */
.features {
  padding: 80px 0;
  background: var(--gray-100);
}

/* ─── Accordéon Caractéristiques ─── */
.accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  background: var(--white);
}

/* Si le dernier item est seul sur sa ligne, il occupe toute la largeur */
.accordion-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.accordion-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background 0.18s;
  gap: 12px;
}
.accordion-item__header:hover { background: var(--gray-200); }
.accordion-item.open .accordion-item__header { background: var(--gray-100); }

.accordion-item__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

.accordion-item__chevron {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-item__chevron { transform: rotate(180deg); }

.accordion-item__body {
  display: none;
  padding: 24px;
  background: var(--white);
}
.accordion-item.open .accordion-item__body { display: block; }

/* Liste bullet (features libres) */
.accordion-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.4;
}
.accordion-feat-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Grille label/valeur (détails techniques) */
.accordion-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

/* Cellule label / valeur */
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-item__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.detail-item__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

@media (max-width: 860px) {
  .accordion-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .accordion-item__body  { padding: 20px; }
}
@media (max-width: 640px) {
  .accordion { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .accordion-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .accordion-item__header { padding: 15px 18px; }
  .accordion-item__body   { padding: 16px 18px; }
}

/* ===========================
   PIÈCES
   =========================== */
.rooms-section {
  padding: 80px 0;
  background: var(--white);
}

.rooms-grid { width: 100%; }

.rooms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font);
}

/* En-tête */
.rooms-table thead tr {
  background: var(--gray-100);
}
.rooms-table th {
  padding: 12px 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

/* Lignes */
.rooms-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
}
.rooms-table tbody tr:last-child td { border-bottom: none; }
.rooms-table tbody tr:hover { background: var(--gray-100); }

.rooms-table td {
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.rooms-table__name {
  font-weight: 600;
  color: var(--dark);
}

/* Mobile : masquer les colonnes secondaires, afficher en empilé */
@media (max-width: 560px) {
  .rooms-table thead { display: none; }
  .rooms-table,
  .rooms-table tbody,
  .rooms-table tr,
  .rooms-table td { display: block; width: 100%; }

  .rooms-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
  }
  .rooms-table td {
    padding: 2px 0;
    border-bottom: none;
    font-size: 0.9rem;
  }
  .rooms-table__name {
    font-size: 1rem;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--gray-200);
    display: block;
  }
  .rooms-table td:nth-child(2)::before { content: 'Niveau : ';    color: var(--gray-400); font-size: 0.75rem; }
  .rooms-table td:nth-child(3)::before { content: 'Dim. : ';      color: var(--gray-400); font-size: 0.75rem; }
  .rooms-table td:nth-child(4)::before { content: 'Couvre-sol : ';color: var(--gray-400); font-size: 0.75rem; }
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-category {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
}

.feature-category__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.feature-category__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-category__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.4;
}

.feature-category__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 7px;
}

/* ===========================
   LOCATION
   =========================== */
.location {
  padding: 80px 0;
  background: var(--gray-100);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.location__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.location__desc {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 28px;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location__map iframe {
  display: block;
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 100px 0;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Accent lumineux rouge derrière le contact */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(204,0,0,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.contact .container { position: relative; }

.contact__label { color: rgba(255,255,255,0.55); }
.contact__title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
}

.contact__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: -16px auto 48px;
  line-height: 1.65;
}

.contact__cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  min-width: 240px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: left;
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--red);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card--messenger .contact-card__icon { background: #0099FF; }
.contact-card--messenger:hover { border-color: #0099FF; }

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

/* ===========================
   FOOTER
   =========================== */

/* Logo sur fond sombre (footer & contact) */
.footer .logo-ma,
.footer .logo-ca    { color: rgba(255,255,255,0.3); }
.footer .logo-maison { color: var(--white); }
.footer .logo-avendre { color: var(--red); }

.footer {
  background: #0a0a0a;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer__address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.footer__note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

/* ===========================
   SHARE — HEADER DROPDOWN
   =========================== */
.header__share {
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
}

.header__share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.header__share-btn svg { width: 16px; height: 16px; }
.header__share-btn:hover,
.header__share.open .header__share-btn {
  border-color: var(--red);
  color: var(--red);
  background: rgba(204,0,0,0.04);
}

.header__share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 200px;
  z-index: 200;

  opacity: 0;
  transform: translateY(6px) scale(0.97);
  pointer-events: none;
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.header__share.open .header__share-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Items partagés du dropdown (réutilise .share-drop__item) */
.share-drop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.share-drop__item:hover { background: var(--gray-100); }
.share-drop__item.copied { color: #16a34a; }

.share-drop__icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-drop__icon svg { width: 15px; height: 15px; }

.share-drop__item--fb     .share-drop__icon { background: #1877f2; color: #fff; }
.share-drop__item--email  .share-drop__icon { background: var(--black); color: #fff; }
.share-drop__item--copy   .share-drop__icon { background: var(--gray-100); color: var(--dark); }
.share-drop__item--native .share-drop__icon { background: var(--gray-100); color: var(--dark); }
.share-drop__item--copy.copied .share-drop__icon { background: #16a34a; color: #fff; }

/* Masquer sur mobile (hamburger prend le relais) */
@media (max-width: 640px) {
  .header__share { display: none; }
}

/* ===========================
   CONTACT — PARTAGE INTÉGRÉ
   =========================== */
.contact__share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact__share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.contact__share-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Petits boutons de partage (pill) */
.share-small-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.share-small-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.share-small-btn__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-small-btn__icon svg { width: 12px; height: 12px; }

.share-small-btn--fb    .share-small-btn__icon { background: #1877f2; }
.share-small-btn--email .share-small-btn__icon { background: var(--red); }
.share-small-btn--copy  .share-small-btn__icon { background: rgba(255,255,255,0.15); }
.share-small-btn--native .share-small-btn__icon { background: rgba(255,255,255,0.15); }

.share-small-btn--copy.copied { border-color: #16a34a; background: rgba(22,163,74,0.15); }
.share-small-btn--copy.copied .share-small-btn__icon { background: #16a34a; }

/* Responsive */
@media (max-width: 640px) {
  .share-bar__label { display: none; }
  .share-bar__btns  { width: 100%; justify-content: center; }
  .share-bar__btn span:not(.share-copy-lbl) { display: none; }
  .share-bar__btn { padding: 8px 12px; }
  .share-section__btns { flex-wrap: wrap; }
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.22);
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox__prev svg,
.lightbox__next svg { width: 24px; height: 24px; }

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid .gallery__item:first-child { grid-column: span 2; }
  .features__grid { grid-template-columns: 1fr; }
  .location__inner { grid-template-columns: 1fr; }
  .location__map { order: -1; }
  .location__map iframe { height: 300px; }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Header / Nav */
  .nav__share-group {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    width: 100%;
  }
  .nav__share-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
    padding: 0 4px;
  }
  .nav__share-btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav__share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background var(--transition);
  }
  .nav__share-btn:hover { background: var(--gray-100); }
  .nav__share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .nav__share-btn--fb    { color: #1877f2; }
  .nav__share-btn--email { color: var(--dark); }
  .nav__share-btn--copy  { color: var(--dark); }
  .nav__share-btn--copy.copied { color: #16a34a; }
  .nav__share-btn--native { color: var(--dark); }

  /* Header / Nav */
  .nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav__link { width: 100%; padding: 12px 16px; border-radius: var(--radius); }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { min-height: 92vh; }
  .hero__content { padding-bottom: 60px; }

  /* Stats */
  .stats { padding: 48px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 24px 12px; }
  .stat-card__value { font-size: 1.3rem; }

  /* Sections */
  .description, .gallery, .features, .rooms-section, .location, .contact { padding: 60px 0; }

  /* Hero — titre plus compact sur petits écrans */
  .hero__title { font-size: clamp(2.2rem, 10vw, 6rem); }
  .hero__content { padding-bottom: 52px; padding-top: 40px; }

  /* Hero — boutons empilés sur petits écrans */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { justify-content: center; }
  .hero__contact-btn {
    white-space: normal;
    overflow: hidden;
  }

  /* Gallery */
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid .gallery__item:first-child {
    grid-column: span 1;
    aspect-ratio: 16/9; /* ratio fixe — évite hauteur imprévisible */
  }

  /* Bouton téléchargement ZIP — pleine largeur */
  .gallery__header { flex-direction: column; align-items: flex-start; }
  .btn-download-zip { width: 100%; justify-content: center; }

  /* Description — taille de texte ajustée */
  .description__text { font-size: 1rem; }

  /* Contact */
  .contact__cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 340px; }
  .contact__subtitle { font-size: 0.95rem; }

  /* Lightbox nav — cibles 44px (standard tactile) */
  .lightbox__prev { left: 8px; width: 44px; height: 44px; }
  .lightbox__next { right: 8px; width: 44px; height: 44px; }
  .lightbox__img { max-width: 96vw; max-height: 82vh; }
}

/* ===========================
   RESPONSIVE — TRÈS PETITS ÉCRANS
   =========================== */
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .hero__actions .btn { max-width: 100%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 18px 10px; }
  .stat-card__value { font-size: 1.2rem; }
  .stat-card__label { font-size: 0.72rem; }
  .contact-card { padding: 16px 20px; }
  .section-title { font-size: 1.5rem; }
}

/* ===========================
   HOVER : désactiver effets collants sur tactile
   =========================== */
@media (hover: none) {
  .stat-card:hover         { transform: none; box-shadow: none; }
  .gallery__item:hover img { transform: none; }
  .gallery__item:hover .gallery__item-overlay { background: none; }
  .gallery__item:hover .gallery__item-overlay svg { opacity: 0; }
  .contact-card:hover      { transform: none; }
  .btn:hover               { transform: none; }
  .rooms-table__row:hover  { background: none; }
}
